Advertisement
Guest User

configure

a guest
Mar 27th, 2015
612
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 241.89 KB | None
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.67 for OTXServer 2.X.Series.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16.  
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34.  
  35.  
  36. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. # Prefer a ksh shell builtin over an external printf program on Solaris,
  44. # but without wasting forks for bash or zsh.
  45. if test -z "$BASH_VERSION$ZSH_VERSION" \
  46. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='print -r --'
  48. as_echo_n='print -rn --'
  49. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50. as_echo='printf %s\n'
  51. as_echo_n='printf %s'
  52. else
  53. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55. as_echo_n='/usr/ucb/echo -n'
  56. else
  57. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58. as_echo_n_body='eval
  59. arg=$1;
  60. case $arg in #(
  61. *"$as_nl"*)
  62. expr "X$arg" : "X\\(.*\\)$as_nl";
  63. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64. esac;
  65. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66. '
  67. export as_echo_n_body
  68. as_echo_n='sh -c $as_echo_n_body as_echo'
  69. fi
  70. export as_echo_body
  71. as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73.  
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. PATH_SEPARATOR=:
  77. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  78. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  79. PATH_SEPARATOR=';'
  80. }
  81. fi
  82.  
  83.  
  84. # IFS
  85. # We need space, tab and new line, in precisely that order. Quoting is
  86. # there to prevent editors from complaining about space-tab.
  87. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  88. # splitting by setting IFS to empty value.)
  89. IFS=" "" $as_nl"
  90.  
  91. # Find who we are. Look in the path if we contain no directory separator.
  92. case $0 in #((
  93. *[\\/]* ) as_myself=$0 ;;
  94. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  95. for as_dir in $PATH
  96. do
  97. IFS=$as_save_IFS
  98. test -z "$as_dir" && as_dir=.
  99. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  100. done
  101. IFS=$as_save_IFS
  102.  
  103. ;;
  104. esac
  105. # We did not find ourselves, most probably we were run as `sh COMMAND'
  106. # in which case we are not to be found in the path.
  107. if test "x$as_myself" = x; then
  108. as_myself=$0
  109. fi
  110. if test ! -f "$as_myself"; then
  111. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  112. exit 1
  113. fi
  114.  
  115. # Unset variables that we do not need and which cause bugs (e.g. in
  116. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  117. # suppresses any "Segmentation fault" message there. '((' could
  118. # trigger a bug in pdksh 5.2.14.
  119. for as_var in BASH_ENV ENV MAIL MAILPATH
  120. do eval test x\${$as_var+set} = xset \
  121. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  122. done
  123. PS1='$ '
  124. PS2='> '
  125. PS4='+ '
  126.  
  127. # NLS nuisances.
  128. LC_ALL=C
  129. export LC_ALL
  130. LANGUAGE=C
  131. export LANGUAGE
  132.  
  133. # CDPATH.
  134. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  135.  
  136. if test "x$CONFIG_SHELL" = x; then
  137. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  138. emulate sh
  139. NULLCMD=:
  140. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  141. # is contrary to our usage. Disable this feature.
  142. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  143. setopt NO_GLOB_SUBST
  144. else
  145. case \`(set -o) 2>/dev/null\` in #(
  146. *posix*) :
  147. set -o posix ;; #(
  148. *) :
  149. ;;
  150. esac
  151. fi
  152. "
  153. as_required="as_fn_return () { (exit \$1); }
  154. as_fn_success () { as_fn_return 0; }
  155. as_fn_failure () { as_fn_return 1; }
  156. as_fn_ret_success () { return 0; }
  157. as_fn_ret_failure () { return 1; }
  158.  
  159. exitcode=0
  160. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  161. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  162. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  163. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  164. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  165.  
  166. else
  167. exitcode=1; echo positional parameters were not saved.
  168. fi
  169. test x\$exitcode = x0 || exit 1"
  170. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  171. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  172. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  173. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null; then :
  176. as_have_required=yes
  177. else
  178. as_have_required=no
  179. fi
  180. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  181.  
  182. else
  183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  184. as_found=false
  185. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  186. do
  187. IFS=$as_save_IFS
  188. test -z "$as_dir" && as_dir=.
  189. as_found=:
  190. case $as_dir in #(
  191. /*)
  192. for as_base in sh bash ksh sh5; do
  193. # Try only shells that exist, to save several forks.
  194. as_shell=$as_dir/$as_base
  195. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  196. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  197. CONFIG_SHELL=$as_shell as_have_required=yes
  198. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  199. break 2
  200. fi
  201. fi
  202. done;;
  203. esac
  204. as_found=false
  205. done
  206. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  207. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  208. CONFIG_SHELL=$SHELL as_have_required=yes
  209. fi; }
  210. IFS=$as_save_IFS
  211.  
  212.  
  213. if test "x$CONFIG_SHELL" != x; then :
  214. # We cannot yet assume a decent shell, so we have to provide a
  215. # neutralization value for shells without unset; and this also
  216. # works around shells that cannot unset nonexistent variables.
  217. BASH_ENV=/dev/null
  218. ENV=/dev/null
  219. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  220. export CONFIG_SHELL
  221. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  222. fi
  223.  
  224. if test x$as_have_required = xno; then :
  225. $as_echo "$0: This script requires a shell more modern than all"
  226. $as_echo "$0: the shells that I found on your system."
  227. if test x${ZSH_VERSION+set} = xset ; then
  228. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  229. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  230. else
  231. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  232. $0: including any error possibly output before this
  233. $0: message. Then install a modern shell, or manually run
  234. $0: the script under such a shell if you do have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245.  
  246. ## --------------------- ##
  247. ## M4sh Shell Functions. ##
  248. ## --------------------- ##
  249. # as_fn_unset VAR
  250. # ---------------
  251. # Portably unset VAR.
  252. as_fn_unset ()
  253. {
  254. { eval $1=; unset $1;}
  255. }
  256. as_unset=as_fn_unset
  257.  
  258. # as_fn_set_status STATUS
  259. # -----------------------
  260. # Set $? to STATUS, without forking.
  261. as_fn_set_status ()
  262. {
  263. return $1
  264. } # as_fn_set_status
  265.  
  266. # as_fn_exit STATUS
  267. # -----------------
  268. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  269. as_fn_exit ()
  270. {
  271. set +e
  272. as_fn_set_status $1
  273. exit $1
  274. } # as_fn_exit
  275.  
  276. # as_fn_mkdir_p
  277. # -------------
  278. # Create "$as_dir" as a directory, including parents if necessary.
  279. as_fn_mkdir_p ()
  280. {
  281.  
  282. case $as_dir in #(
  283. -*) as_dir=./$as_dir;;
  284. esac
  285. test -d "$as_dir" || eval $as_mkdir_p || {
  286. as_dirs=
  287. while :; do
  288. case $as_dir in #(
  289. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  290. *) as_qdir=$as_dir;;
  291. esac
  292. as_dirs="'$as_qdir' $as_dirs"
  293. as_dir=`$as_dirname -- "$as_dir" ||
  294. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  295. X"$as_dir" : 'X\(//\)[^/]' \| \
  296. X"$as_dir" : 'X\(//\)$' \| \
  297. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  298. $as_echo X"$as_dir" |
  299. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  300. s//\1/
  301. q
  302. }
  303. /^X\(\/\/\)[^/].*/{
  304. s//\1/
  305. q
  306. }
  307. /^X\(\/\/\)$/{
  308. s//\1/
  309. q
  310. }
  311. /^X\(\/\).*/{
  312. s//\1/
  313. q
  314. }
  315. s/.*/./; q'`
  316. test -d "$as_dir" && break
  317. done
  318. test -z "$as_dirs" || eval "mkdir $as_dirs"
  319. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  320.  
  321.  
  322. } # as_fn_mkdir_p
  323. # as_fn_append VAR VALUE
  324. # ----------------------
  325. # Append the text in VALUE to the end of the definition contained in VAR. Take
  326. # advantage of any shell optimizations that allow amortized linear growth over
  327. # repeated appends, instead of the typical quadratic growth present in naive
  328. # implementations.
  329. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  330. eval 'as_fn_append ()
  331. {
  332. eval $1+=\$2
  333. }'
  334. else
  335. as_fn_append ()
  336. {
  337. eval $1=\$$1\$2
  338. }
  339. fi # as_fn_append
  340.  
  341. # as_fn_arith ARG...
  342. # ------------------
  343. # Perform arithmetic evaluation on the ARGs, and store the result in the
  344. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  345. # must be portable across $(()) and expr.
  346. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  347. eval 'as_fn_arith ()
  348. {
  349. as_val=$(( $* ))
  350. }'
  351. else
  352. as_fn_arith ()
  353. {
  354. as_val=`expr "$@" || test $? -eq 1`
  355. }
  356. fi # as_fn_arith
  357.  
  358.  
  359. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  360. # ----------------------------------------
  361. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  362. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  363. # script with STATUS, using 1 if that was 0.
  364. as_fn_error ()
  365. {
  366. as_status=$1; test $as_status -eq 0 && as_status=1
  367. if test "$4"; then
  368. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  369. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  370. fi
  371. $as_echo "$as_me: error: $2" >&2
  372. as_fn_exit $as_status
  373. } # as_fn_error
  374.  
  375. if expr a : '\(a\)' >/dev/null 2>&1 &&
  376. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  377. as_expr=expr
  378. else
  379. as_expr=false
  380. fi
  381.  
  382. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  383. as_basename=basename
  384. else
  385. as_basename=false
  386. fi
  387.  
  388. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  389. as_dirname=dirname
  390. else
  391. as_dirname=false
  392. fi
  393.  
  394. as_me=`$as_basename -- "$0" ||
  395. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  396. X"$0" : 'X\(//\)$' \| \
  397. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  398. $as_echo X/"$0" |
  399. sed '/^.*\/\([^/][^/]*\)\/*$/{
  400. s//\1/
  401. q
  402. }
  403. /^X\/\(\/\/\)$/{
  404. s//\1/
  405. q
  406. }
  407. /^X\/\(\/\).*/{
  408. s//\1/
  409. q
  410. }
  411. s/.*/./; q'`
  412.  
  413. # Avoid depending upon Character Ranges.
  414. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  415. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  416. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  417. as_cr_digits='0123456789'
  418. as_cr_alnum=$as_cr_Letters$as_cr_digits
  419.  
  420.  
  421. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  422. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  423. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  424. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  425. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  426. sed -n '
  427. p
  428. /[$]LINENO/=
  429. ' <$as_myself |
  430. sed '
  431. s/[$]LINENO.*/&-/
  432. t lineno
  433. b
  434. :lineno
  435. N
  436. :loop
  437. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  438. t loop
  439. s/-\n.*//
  440. ' >$as_me.lineno &&
  441. chmod +x "$as_me.lineno" ||
  442. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  443.  
  444. # Don't try to exec as it changes $[0], causing all sort of problems
  445. # (the dirname of $[0] is not the place where we might find the
  446. # original and so on. Autoconf is especially sensitive to this).
  447. . "./$as_me.lineno"
  448. # Exit status is that of the last command.
  449. exit
  450. }
  451.  
  452. ECHO_C= ECHO_N= ECHO_T=
  453. case `echo -n x` in #(((((
  454. -n*)
  455. case `echo 'xy\c'` in
  456. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  457. xy) ECHO_C='\c';;
  458. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  459. ECHO_T=' ';;
  460. esac;;
  461. *)
  462. ECHO_N='-n';;
  463. esac
  464.  
  465. rm -f conf$$ conf$$.exe conf$$.file
  466. if test -d conf$$.dir; then
  467. rm -f conf$$.dir/conf$$.file
  468. else
  469. rm -f conf$$.dir
  470. mkdir conf$$.dir 2>/dev/null
  471. fi
  472. if (echo >conf$$.file) 2>/dev/null; then
  473. if ln -s conf$$.file conf$$ 2>/dev/null; then
  474. as_ln_s='ln -s'
  475. # ... but there are two gotchas:
  476. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  477. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  478. # In both cases, we have to default to `cp -p'.
  479. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  480. as_ln_s='cp -p'
  481. elif ln conf$$.file conf$$ 2>/dev/null; then
  482. as_ln_s=ln
  483. else
  484. as_ln_s='cp -p'
  485. fi
  486. else
  487. as_ln_s='cp -p'
  488. fi
  489. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  490. rmdir conf$$.dir 2>/dev/null
  491.  
  492. if mkdir -p . 2>/dev/null; then
  493. as_mkdir_p='mkdir -p "$as_dir"'
  494. else
  495. test -d ./-p && rmdir ./-p
  496. as_mkdir_p=false
  497. fi
  498.  
  499. if test -x / >/dev/null 2>&1; then
  500. as_test_x='test -x'
  501. else
  502. if ls -dL / >/dev/null 2>&1; then
  503. as_ls_L_option=L
  504. else
  505. as_ls_L_option=
  506. fi
  507. as_test_x='
  508. eval sh -c '\''
  509. if test -d "$1"; then
  510. test -d "$1/.";
  511. else
  512. case $1 in #(
  513. -*)set "./$1";;
  514. esac;
  515. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  516. ???[sx]*):;;*)false;;esac;fi
  517. '\'' sh
  518. '
  519. fi
  520. as_executable_p=$as_test_x
  521.  
  522. # Sed expression to map a string onto a valid CPP name.
  523. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  524.  
  525. # Sed expression to map a string onto a valid variable name.
  526. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  527.  
  528.  
  529. test -n "$DJDIR" || exec 7<&0 </dev/null
  530. exec 6>&1
  531.  
  532. # Name of the host.
  533. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  534. # so uname gets run too.
  535. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  536.  
  537. #
  538. # Initializations.
  539. #
  540. ac_default_prefix=/usr/local
  541. ac_clean_files=
  542. ac_config_libobj_dir=.
  543. LIBOBJS=
  544. cross_compiling=no
  545. subdirs=
  546. MFLAGS=
  547. MAKEFLAGS=
  548.  
  549. # Identity of this package.
  550. PACKAGE_NAME='OTXServer'
  551. PACKAGE_TARNAME='otxserver'
  552. PACKAGE_VERSION='2.X.Series'
  553. PACKAGE_STRING='OTXServer 2.X.Series'
  554. PACKAGE_BUGREPORT=''
  555. PACKAGE_URL=''
  556.  
  557. ac_unique_file="account.h"
  558. # Factoring default headers for most tests.
  559. ac_includes_default="\
  560. #include <stdio.h>
  561. #ifdef HAVE_SYS_TYPES_H
  562. # include <sys/types.h>
  563. #endif
  564. #ifdef HAVE_SYS_STAT_H
  565. # include <sys/stat.h>
  566. #endif
  567. #ifdef STDC_HEADERS
  568. # include <stdlib.h>
  569. # include <stddef.h>
  570. #else
  571. # ifdef HAVE_STDLIB_H
  572. # include <stdlib.h>
  573. # endif
  574. #endif
  575. #ifdef HAVE_STRING_H
  576. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  577. # include <memory.h>
  578. # endif
  579. # include <string.h>
  580. #endif
  581. #ifdef HAVE_STRINGS_H
  582. # include <strings.h>
  583. #endif
  584. #ifdef HAVE_INTTYPES_H
  585. # include <inttypes.h>
  586. #endif
  587. #ifdef HAVE_STDINT_H
  588. # include <stdint.h>
  589. #endif
  590. #ifdef HAVE_UNISTD_H
  591. # include <unistd.h>
  592. #endif"
  593.  
  594. ac_subst_vars='am__EXEEXT_FALSE
  595. am__EXEEXT_TRUE
  596. LTLIBOBJS
  597. SQLITE_LIBS
  598. PGSQL_LIBS
  599. MYSQLPP_LIBS
  600. MYSQL_LIBS
  601. OPTIONAL_FLAGS
  602. LUA_LIBS
  603. LUA_CFLAGS
  604. PKG_CONFIG_LIBDIR
  605. PKG_CONFIG_PATH
  606. PKG_CONFIG
  607. XML_LIBS
  608. XML_CPPFLAGS
  609. XML2_CONFIG
  610. LIBOBJS
  611. EGREP
  612. GREP
  613. CXXCPP
  614. PROFILER_FLAGS
  615. SQLITE_FLAGS
  616. PGSQL_FLAGS
  617. MYSQLPP_FLAGS
  618. MYSQL_FLAGS
  619. USE_SQLITE_FALSE
  620. USE_SQLITE_TRUE
  621. USE_PGSQL_FALSE
  622. USE_PGSQL_TRUE
  623. USE_MYSQLPP_FALSE
  624. USE_MYSQLPP_TRUE
  625. USE_MYSQL_FALSE
  626. USE_MYSQL_TRUE
  627. DEBUG_FLAGS
  628. OT_ADMIN_FALSE
  629. OT_ADMIN_TRUE
  630. LOGIN_SERVER_FALSE
  631. LOGIN_SERVER_TRUE
  632. am__fastdepCXX_FALSE
  633. am__fastdepCXX_TRUE
  634. CXXDEPMODE
  635. AMDEPBACKSLASH
  636. AMDEP_FALSE
  637. AMDEP_TRUE
  638. am__quote
  639. am__include
  640. DEPDIR
  641. OBJEXT
  642. EXEEXT
  643. ac_ct_CXX
  644. CPPFLAGS
  645. LDFLAGS
  646. CXXFLAGS
  647. CXX
  648. AM_BACKSLASH
  649. AM_DEFAULT_VERBOSITY
  650. am__untar
  651. am__tar
  652. AMTAR
  653. am__leading_dot
  654. SET_MAKE
  655. AWK
  656. mkdir_p
  657. MKDIR_P
  658. INSTALL_STRIP_PROGRAM
  659. STRIP
  660. install_sh
  661. MAKEINFO
  662. AUTOHEADER
  663. AUTOMAKE
  664. AUTOCONF
  665. ACLOCAL
  666. VERSION
  667. PACKAGE
  668. CYGPATH_W
  669. am__isrc
  670. INSTALL_DATA
  671. INSTALL_SCRIPT
  672. INSTALL_PROGRAM
  673. target_alias
  674. host_alias
  675. build_alias
  676. LIBS
  677. ECHO_T
  678. ECHO_N
  679. ECHO_C
  680. DEFS
  681. mandir
  682. localedir
  683. libdir
  684. psdir
  685. pdfdir
  686. dvidir
  687. htmldir
  688. infodir
  689. docdir
  690. oldincludedir
  691. includedir
  692. localstatedir
  693. sharedstatedir
  694. sysconfdir
  695. datadir
  696. datarootdir
  697. libexecdir
  698. sbindir
  699. bindir
  700. program_transform_name
  701. prefix
  702. exec_prefix
  703. PACKAGE_URL
  704. PACKAGE_BUGREPORT
  705. PACKAGE_STRING
  706. PACKAGE_VERSION
  707. PACKAGE_TARNAME
  708. PACKAGE_NAME
  709. PATH_SEPARATOR
  710. SHELL'
  711. ac_subst_files=''
  712. ac_user_opts='
  713. enable_option_checking
  714. enable_silent_rules
  715. enable_dependency_tracking
  716. enable_server_diag
  717. enable_login_server
  718. enable_ot_admin
  719. enable_otserv_allocator
  720. enable_homedir_conf
  721. enable_root_permission
  722. enable_luajit
  723. enable_groundcache
  724. enable_debug
  725. enable_mysql
  726. enable_mysqlpp
  727. enable_pgsql
  728. enable_sqlite
  729. enable_profiler
  730. with_xml_prefix
  731. with_xml_exec_prefix
  732. enable_xmltest
  733. '
  734. ac_precious_vars='build_alias
  735. host_alias
  736. target_alias
  737. CXX
  738. CXXFLAGS
  739. LDFLAGS
  740. LIBS
  741. CPPFLAGS
  742. CCC
  743. CXXCPP
  744. PKG_CONFIG
  745. PKG_CONFIG_PATH
  746. PKG_CONFIG_LIBDIR
  747. LUA_CFLAGS
  748. LUA_LIBS'
  749.  
  750.  
  751. # Initialize some variables set by options.
  752. ac_init_help=
  753. ac_init_version=false
  754. ac_unrecognized_opts=
  755. ac_unrecognized_sep=
  756. # The variables have the same names as the options, with
  757. # dashes changed to underlines.
  758. cache_file=/dev/null
  759. exec_prefix=NONE
  760. no_create=
  761. no_recursion=
  762. prefix=NONE
  763. program_prefix=NONE
  764. program_suffix=NONE
  765. program_transform_name=s,x,x,
  766. silent=
  767. site=
  768. srcdir=
  769. verbose=
  770. x_includes=NONE
  771. x_libraries=NONE
  772.  
  773. # Installation directory options.
  774. # These are left unexpanded so users can "make install exec_prefix=/foo"
  775. # and all the variables that are supposed to be based on exec_prefix
  776. # by default will actually change.
  777. # Use braces instead of parens because sh, perl, etc. also accept them.
  778. # (The list follows the same order as the GNU Coding Standards.)
  779. bindir='${exec_prefix}/bin'
  780. sbindir='${exec_prefix}/sbin'
  781. libexecdir='${exec_prefix}/libexec'
  782. datarootdir='${prefix}/share'
  783. datadir='${datarootdir}'
  784. sysconfdir='${prefix}/etc'
  785. sharedstatedir='${prefix}/com'
  786. localstatedir='${prefix}/var'
  787. includedir='${prefix}/include'
  788. oldincludedir='/usr/include'
  789. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  790. infodir='${datarootdir}/info'
  791. htmldir='${docdir}'
  792. dvidir='${docdir}'
  793. pdfdir='${docdir}'
  794. psdir='${docdir}'
  795. libdir='${exec_prefix}/lib'
  796. localedir='${datarootdir}/locale'
  797. mandir='${datarootdir}/man'
  798.  
  799. ac_prev=
  800. ac_dashdash=
  801. for ac_option
  802. do
  803. # If the previous option needs an argument, assign it.
  804. if test -n "$ac_prev"; then
  805. eval $ac_prev=\$ac_option
  806. ac_prev=
  807. continue
  808. fi
  809.  
  810. case $ac_option in
  811. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  812. *=) ac_optarg= ;;
  813. *) ac_optarg=yes ;;
  814. esac
  815.  
  816. # Accept the important Cygnus configure options, so we can diagnose typos.
  817.  
  818. case $ac_dashdash$ac_option in
  819. --)
  820. ac_dashdash=yes ;;
  821.  
  822. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  823. ac_prev=bindir ;;
  824. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  825. bindir=$ac_optarg ;;
  826.  
  827. -build | --build | --buil | --bui | --bu)
  828. ac_prev=build_alias ;;
  829. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  830. build_alias=$ac_optarg ;;
  831.  
  832. -cache-file | --cache-file | --cache-fil | --cache-fi \
  833. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  834. ac_prev=cache_file ;;
  835. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  836. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  837. cache_file=$ac_optarg ;;
  838.  
  839. --config-cache | -C)
  840. cache_file=config.cache ;;
  841.  
  842. -datadir | --datadir | --datadi | --datad)
  843. ac_prev=datadir ;;
  844. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  845. datadir=$ac_optarg ;;
  846.  
  847. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  848. | --dataroo | --dataro | --datar)
  849. ac_prev=datarootdir ;;
  850. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  851. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  852. datarootdir=$ac_optarg ;;
  853.  
  854. -disable-* | --disable-*)
  855. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  856. # Reject names that are not valid shell variable names.
  857. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  858. as_fn_error $? "invalid feature name: $ac_useropt"
  859. ac_useropt_orig=$ac_useropt
  860. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  861. case $ac_user_opts in
  862. *"
  863. "enable_$ac_useropt"
  864. "*) ;;
  865. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  866. ac_unrecognized_sep=', ';;
  867. esac
  868. eval enable_$ac_useropt=no ;;
  869.  
  870. -docdir | --docdir | --docdi | --doc | --do)
  871. ac_prev=docdir ;;
  872. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  873. docdir=$ac_optarg ;;
  874.  
  875. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  876. ac_prev=dvidir ;;
  877. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  878. dvidir=$ac_optarg ;;
  879.  
  880. -enable-* | --enable-*)
  881. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  882. # Reject names that are not valid shell variable names.
  883. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  884. as_fn_error $? "invalid feature name: $ac_useropt"
  885. ac_useropt_orig=$ac_useropt
  886. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  887. case $ac_user_opts in
  888. *"
  889. "enable_$ac_useropt"
  890. "*) ;;
  891. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  892. ac_unrecognized_sep=', ';;
  893. esac
  894. eval enable_$ac_useropt=\$ac_optarg ;;
  895.  
  896. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  897. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  898. | --exec | --exe | --ex)
  899. ac_prev=exec_prefix ;;
  900. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  901. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  902. | --exec=* | --exe=* | --ex=*)
  903. exec_prefix=$ac_optarg ;;
  904.  
  905. -gas | --gas | --ga | --g)
  906. # Obsolete; use --with-gas.
  907. with_gas=yes ;;
  908.  
  909. -help | --help | --hel | --he | -h)
  910. ac_init_help=long ;;
  911. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  912. ac_init_help=recursive ;;
  913. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  914. ac_init_help=short ;;
  915.  
  916. -host | --host | --hos | --ho)
  917. ac_prev=host_alias ;;
  918. -host=* | --host=* | --hos=* | --ho=*)
  919. host_alias=$ac_optarg ;;
  920.  
  921. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  922. ac_prev=htmldir ;;
  923. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  924. | --ht=*)
  925. htmldir=$ac_optarg ;;
  926.  
  927. -includedir | --includedir | --includedi | --included | --include \
  928. | --includ | --inclu | --incl | --inc)
  929. ac_prev=includedir ;;
  930. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  931. | --includ=* | --inclu=* | --incl=* | --inc=*)
  932. includedir=$ac_optarg ;;
  933.  
  934. -infodir | --infodir | --infodi | --infod | --info | --inf)
  935. ac_prev=infodir ;;
  936. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  937. infodir=$ac_optarg ;;
  938.  
  939. -libdir | --libdir | --libdi | --libd)
  940. ac_prev=libdir ;;
  941. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  942. libdir=$ac_optarg ;;
  943.  
  944. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  945. | --libexe | --libex | --libe)
  946. ac_prev=libexecdir ;;
  947. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  948. | --libexe=* | --libex=* | --libe=*)
  949. libexecdir=$ac_optarg ;;
  950.  
  951. -localedir | --localedir | --localedi | --localed | --locale)
  952. ac_prev=localedir ;;
  953. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  954. localedir=$ac_optarg ;;
  955.  
  956. -localstatedir | --localstatedir | --localstatedi | --localstated \
  957. | --localstate | --localstat | --localsta | --localst | --locals)
  958. ac_prev=localstatedir ;;
  959. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  960. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  961. localstatedir=$ac_optarg ;;
  962.  
  963. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  964. ac_prev=mandir ;;
  965. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  966. mandir=$ac_optarg ;;
  967.  
  968. -nfp | --nfp | --nf)
  969. # Obsolete; use --without-fp.
  970. with_fp=no ;;
  971.  
  972. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  973. | --no-cr | --no-c | -n)
  974. no_create=yes ;;
  975.  
  976. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  977. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  978. no_recursion=yes ;;
  979.  
  980. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  981. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  982. | --oldin | --oldi | --old | --ol | --o)
  983. ac_prev=oldincludedir ;;
  984. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  985. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  986. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  987. oldincludedir=$ac_optarg ;;
  988.  
  989. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  990. ac_prev=prefix ;;
  991. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  992. prefix=$ac_optarg ;;
  993.  
  994. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  995. | --program-pre | --program-pr | --program-p)
  996. ac_prev=program_prefix ;;
  997. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  998. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  999. program_prefix=$ac_optarg ;;
  1000.  
  1001. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1002. | --program-suf | --program-su | --program-s)
  1003. ac_prev=program_suffix ;;
  1004. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1005. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1006. program_suffix=$ac_optarg ;;
  1007.  
  1008. -program-transform-name | --program-transform-name \
  1009. | --program-transform-nam | --program-transform-na \
  1010. | --program-transform-n | --program-transform- \
  1011. | --program-transform | --program-transfor \
  1012. | --program-transfo | --program-transf \
  1013. | --program-trans | --program-tran \
  1014. | --progr-tra | --program-tr | --program-t)
  1015. ac_prev=program_transform_name ;;
  1016. -program-transform-name=* | --program-transform-name=* \
  1017. | --program-transform-nam=* | --program-transform-na=* \
  1018. | --program-transform-n=* | --program-transform-=* \
  1019. | --program-transform=* | --program-transfor=* \
  1020. | --program-transfo=* | --program-transf=* \
  1021. | --program-trans=* | --program-tran=* \
  1022. | --progr-tra=* | --program-tr=* | --program-t=*)
  1023. program_transform_name=$ac_optarg ;;
  1024.  
  1025. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1026. ac_prev=pdfdir ;;
  1027. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1028. pdfdir=$ac_optarg ;;
  1029.  
  1030. -psdir | --psdir | --psdi | --psd | --ps)
  1031. ac_prev=psdir ;;
  1032. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1033. psdir=$ac_optarg ;;
  1034.  
  1035. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1036. | -silent | --silent | --silen | --sile | --sil)
  1037. silent=yes ;;
  1038.  
  1039. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1040. ac_prev=sbindir ;;
  1041. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1042. | --sbi=* | --sb=*)
  1043. sbindir=$ac_optarg ;;
  1044.  
  1045. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1046. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1047. | --sharedst | --shareds | --shared | --share | --shar \
  1048. | --sha | --sh)
  1049. ac_prev=sharedstatedir ;;
  1050. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1051. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1052. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1053. | --sha=* | --sh=*)
  1054. sharedstatedir=$ac_optarg ;;
  1055.  
  1056. -site | --site | --sit)
  1057. ac_prev=site ;;
  1058. -site=* | --site=* | --sit=*)
  1059. site=$ac_optarg ;;
  1060.  
  1061. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1062. ac_prev=srcdir ;;
  1063. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1064. srcdir=$ac_optarg ;;
  1065.  
  1066. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1067. | --syscon | --sysco | --sysc | --sys | --sy)
  1068. ac_prev=sysconfdir ;;
  1069. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1070. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1071. sysconfdir=$ac_optarg ;;
  1072.  
  1073. -target | --target | --targe | --targ | --tar | --ta | --t)
  1074. ac_prev=target_alias ;;
  1075. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1076. target_alias=$ac_optarg ;;
  1077.  
  1078. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1079. verbose=yes ;;
  1080.  
  1081. -version | --version | --versio | --versi | --vers | -V)
  1082. ac_init_version=: ;;
  1083.  
  1084. -with-* | --with-*)
  1085. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1086. # Reject names that are not valid shell variable names.
  1087. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1088. as_fn_error $? "invalid package name: $ac_useropt"
  1089. ac_useropt_orig=$ac_useropt
  1090. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1091. case $ac_user_opts in
  1092. *"
  1093. "with_$ac_useropt"
  1094. "*) ;;
  1095. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1096. ac_unrecognized_sep=', ';;
  1097. esac
  1098. eval with_$ac_useropt=\$ac_optarg ;;
  1099.  
  1100. -without-* | --without-*)
  1101. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1102. # Reject names that are not valid shell variable names.
  1103. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1104. as_fn_error $? "invalid package name: $ac_useropt"
  1105. ac_useropt_orig=$ac_useropt
  1106. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1107. case $ac_user_opts in
  1108. *"
  1109. "with_$ac_useropt"
  1110. "*) ;;
  1111. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1112. ac_unrecognized_sep=', ';;
  1113. esac
  1114. eval with_$ac_useropt=no ;;
  1115.  
  1116. --x)
  1117. # Obsolete; use --with-x.
  1118. with_x=yes ;;
  1119.  
  1120. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1121. | --x-incl | --x-inc | --x-in | --x-i)
  1122. ac_prev=x_includes ;;
  1123. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1124. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1125. x_includes=$ac_optarg ;;
  1126.  
  1127. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1128. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1129. ac_prev=x_libraries ;;
  1130. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1131. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1132. x_libraries=$ac_optarg ;;
  1133.  
  1134. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1135. Try \`$0 --help' for more information"
  1136. ;;
  1137.  
  1138. *=*)
  1139. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1140. # Reject names that are not valid shell variable names.
  1141. case $ac_envvar in #(
  1142. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1143. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1144. esac
  1145. eval $ac_envvar=\$ac_optarg
  1146. export $ac_envvar ;;
  1147.  
  1148. *)
  1149. # FIXME: should be removed in autoconf 3.0.
  1150. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1151. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1152. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1153. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1154. ;;
  1155.  
  1156. esac
  1157. done
  1158.  
  1159. if test -n "$ac_prev"; then
  1160. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1161. as_fn_error $? "missing argument to $ac_option"
  1162. fi
  1163.  
  1164. if test -n "$ac_unrecognized_opts"; then
  1165. case $enable_option_checking in
  1166. no) ;;
  1167. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1168. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1169. esac
  1170. fi
  1171.  
  1172. # Check all directory arguments for consistency.
  1173. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1174. datadir sysconfdir sharedstatedir localstatedir includedir \
  1175. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1176. libdir localedir mandir
  1177. do
  1178. eval ac_val=\$$ac_var
  1179. # Remove trailing slashes.
  1180. case $ac_val in
  1181. */ )
  1182. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1183. eval $ac_var=\$ac_val;;
  1184. esac
  1185. # Be sure to have absolute directory names.
  1186. case $ac_val in
  1187. [\\/$]* | ?:[\\/]* ) continue;;
  1188. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1189. esac
  1190. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1191. done
  1192.  
  1193. # There might be people who depend on the old broken behavior: `$host'
  1194. # used to hold the argument of --host etc.
  1195. # FIXME: To remove some day.
  1196. build=$build_alias
  1197. host=$host_alias
  1198. target=$target_alias
  1199.  
  1200. # FIXME: To remove some day.
  1201. if test "x$host_alias" != x; then
  1202. if test "x$build_alias" = x; then
  1203. cross_compiling=maybe
  1204. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1205. If a cross compiler is detected then cross compile mode will be used" >&2
  1206. elif test "x$build_alias" != "x$host_alias"; then
  1207. cross_compiling=yes
  1208. fi
  1209. fi
  1210.  
  1211. ac_tool_prefix=
  1212. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1213.  
  1214. test "$silent" = yes && exec 6>/dev/null
  1215.  
  1216.  
  1217. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1218. ac_ls_di=`ls -di .` &&
  1219. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1220. as_fn_error $? "working directory cannot be determined"
  1221. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1222. as_fn_error $? "pwd does not report name of working directory"
  1223.  
  1224.  
  1225. # Find the source files, if location was not specified.
  1226. if test -z "$srcdir"; then
  1227. ac_srcdir_defaulted=yes
  1228. # Try the directory containing this script, then the parent directory.
  1229. ac_confdir=`$as_dirname -- "$as_myself" ||
  1230. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1231. X"$as_myself" : 'X\(//\)[^/]' \| \
  1232. X"$as_myself" : 'X\(//\)$' \| \
  1233. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1234. $as_echo X"$as_myself" |
  1235. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1236. s//\1/
  1237. q
  1238. }
  1239. /^X\(\/\/\)[^/].*/{
  1240. s//\1/
  1241. q
  1242. }
  1243. /^X\(\/\/\)$/{
  1244. s//\1/
  1245. q
  1246. }
  1247. /^X\(\/\).*/{
  1248. s//\1/
  1249. q
  1250. }
  1251. s/.*/./; q'`
  1252. srcdir=$ac_confdir
  1253. if test ! -r "$srcdir/$ac_unique_file"; then
  1254. srcdir=..
  1255. fi
  1256. else
  1257. ac_srcdir_defaulted=no
  1258. fi
  1259. if test ! -r "$srcdir/$ac_unique_file"; then
  1260. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1261. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1262. fi
  1263. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1264. ac_abs_confdir=`(
  1265. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1266. pwd)`
  1267. # When building in place, set srcdir=.
  1268. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1269. srcdir=.
  1270. fi
  1271. # Remove unnecessary trailing slashes from srcdir.
  1272. # Double slashes in file names in object file debugging info
  1273. # mess up M-x gdb in Emacs.
  1274. case $srcdir in
  1275. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1276. esac
  1277. for ac_var in $ac_precious_vars; do
  1278. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1279. eval ac_env_${ac_var}_value=\$${ac_var}
  1280. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1281. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1282. done
  1283.  
  1284. #
  1285. # Report the --help message.
  1286. #
  1287. if test "$ac_init_help" = "long"; then
  1288. # Omit some internal or obsolete options to make the list less imposing.
  1289. # This message is too long to be a string in the A/UX 3.1 sh.
  1290. cat <<_ACEOF
  1291. \`configure' configures OTXServer 2.X.Series to adapt to many kinds of systems.
  1292.  
  1293. Usage: $0 [OPTION]... [VAR=VALUE]...
  1294.  
  1295. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1296. VAR=VALUE. See below for descriptions of some of the useful variables.
  1297.  
  1298. Defaults for the options are specified in brackets.
  1299.  
  1300. Configuration:
  1301. -h, --help display this help and exit
  1302. --help=short display options specific to this package
  1303. --help=recursive display the short help of all the included packages
  1304. -V, --version display version information and exit
  1305. -q, --quiet, --silent do not print \`checking ...' messages
  1306. --cache-file=FILE cache test results in FILE [disabled]
  1307. -C, --config-cache alias for \`--cache-file=config.cache'
  1308. -n, --no-create do not create output files
  1309. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1310.  
  1311. Installation directories:
  1312. --prefix=PREFIX install architecture-independent files in PREFIX
  1313. [$ac_default_prefix]
  1314. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1315. [PREFIX]
  1316.  
  1317. By default, \`make install' will install all the files in
  1318. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1319. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1320. for instance \`--prefix=\$HOME'.
  1321.  
  1322. For better control, use the options below.
  1323.  
  1324. Fine tuning of the installation directories:
  1325. --bindir=DIR user executables [EPREFIX/bin]
  1326. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1327. --libexecdir=DIR program executables [EPREFIX/libexec]
  1328. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1329. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1330. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1331. --libdir=DIR object code libraries [EPREFIX/lib]
  1332. --includedir=DIR C header files [PREFIX/include]
  1333. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1334. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1335. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1336. --infodir=DIR info documentation [DATAROOTDIR/info]
  1337. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1338. --mandir=DIR man documentation [DATAROOTDIR/man]
  1339. --docdir=DIR documentation root [DATAROOTDIR/doc/otxserver]
  1340. --htmldir=DIR html documentation [DOCDIR]
  1341. --dvidir=DIR dvi documentation [DOCDIR]
  1342. --pdfdir=DIR pdf documentation [DOCDIR]
  1343. --psdir=DIR ps documentation [DOCDIR]
  1344. _ACEOF
  1345.  
  1346. cat <<\_ACEOF
  1347.  
  1348. Program names:
  1349. --program-prefix=PREFIX prepend PREFIX to installed program names
  1350. --program-suffix=SUFFIX append SUFFIX to installed program names
  1351. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1352. _ACEOF
  1353. fi
  1354.  
  1355. if test -n "$ac_init_help"; then
  1356. case $ac_init_help in
  1357. short | recursive ) echo "Configuration of OTXServer 2.X.Series:";;
  1358. esac
  1359. cat <<\_ACEOF
  1360.  
  1361. Optional Features:
  1362. --disable-option-checking ignore unrecognized --enable/--with options
  1363. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1364. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1365. --enable-silent-rules less verbose build output (undo: `make V=1')
  1366. --disable-silent-rules verbose build output (undo: `make V=0')
  1367. --disable-dependency-tracking speeds up one-time build
  1368. --enable-dependency-tracking do not reject slow dependency extractors
  1369. --enable-server-diag enable server diagnostic
  1370. --enable-login-server enable login server mode
  1371. --enable-ot-admin enable OTAdmin protocol
  1372. --enable-otserv-allocator enable otserv custom allocator
  1373. --enable-homedir-conf enable home directory configuration
  1374. --enable-root-permission enable running on root user
  1375. --enable-luajit enable luajit instead of lua
  1376. --enable-groundcache enable caching of ground items
  1377. --enable-debug enable debuging
  1378. --enable-mysql enable MySQL support
  1379. --enable-mysqlpp enable MySQL++Connector support
  1380. --enable-pgsql enable PostgreSQL support
  1381. --enable-sqlite enable SQLite support
  1382. --enable-profiler enable profiler support
  1383. --disable-xmltest Do not try to compile and run a test LIBXML program
  1384.  
  1385. Optional Packages:
  1386. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1387. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1388. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1389. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1390.  
  1391. Some influential environment variables:
  1392. CXX C++ compiler command
  1393. CXXFLAGS C++ compiler flags
  1394. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1395. nonstandard directory <lib dir>
  1396. LIBS libraries to pass to the linker, e.g. -l<library>
  1397. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1398. you have headers in a nonstandard directory <include dir>
  1399. CXXCPP C++ preprocessor
  1400. PKG_CONFIG path to pkg-config utility
  1401. PKG_CONFIG_PATH
  1402. directories to add to pkg-config's search path
  1403. PKG_CONFIG_LIBDIR
  1404. path overriding pkg-config's built-in search path
  1405. LUA_CFLAGS C compiler flags for LUA, overriding pkg-config
  1406. LUA_LIBS linker flags for LUA, overriding pkg-config
  1407.  
  1408. Use these variables to override the choices made by `configure' or to help
  1409. it to find libraries and programs with nonstandard names/locations.
  1410.  
  1411. Report bugs to the package provider.
  1412. _ACEOF
  1413. ac_status=$?
  1414. fi
  1415.  
  1416. if test "$ac_init_help" = "recursive"; then
  1417. # If there are subdirs, report their specific --help.
  1418. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1419. test -d "$ac_dir" ||
  1420. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1421. continue
  1422. ac_builddir=.
  1423.  
  1424. case "$ac_dir" in
  1425. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1426. *)
  1427. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1428. # A ".." for each directory in $ac_dir_suffix.
  1429. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1430. case $ac_top_builddir_sub in
  1431. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1432. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1433. esac ;;
  1434. esac
  1435. ac_abs_top_builddir=$ac_pwd
  1436. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1437. # for backward compatibility:
  1438. ac_top_builddir=$ac_top_build_prefix
  1439.  
  1440. case $srcdir in
  1441. .) # We are building in place.
  1442. ac_srcdir=.
  1443. ac_top_srcdir=$ac_top_builddir_sub
  1444. ac_abs_top_srcdir=$ac_pwd ;;
  1445. [\\/]* | ?:[\\/]* ) # Absolute name.
  1446. ac_srcdir=$srcdir$ac_dir_suffix;
  1447. ac_top_srcdir=$srcdir
  1448. ac_abs_top_srcdir=$srcdir ;;
  1449. *) # Relative name.
  1450. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1451. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1452. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1453. esac
  1454. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1455.  
  1456. cd "$ac_dir" || { ac_status=$?; continue; }
  1457. # Check for guested configure.
  1458. if test -f "$ac_srcdir/configure.gnu"; then
  1459. echo &&
  1460. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1461. elif test -f "$ac_srcdir/configure"; then
  1462. echo &&
  1463. $SHELL "$ac_srcdir/configure" --help=recursive
  1464. else
  1465. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1466. fi || ac_status=$?
  1467. cd "$ac_pwd" || { ac_status=$?; break; }
  1468. done
  1469. fi
  1470.  
  1471. test -n "$ac_init_help" && exit $ac_status
  1472. if $ac_init_version; then
  1473. cat <<\_ACEOF
  1474. OTXServer configure 2.X.Series
  1475. generated by GNU Autoconf 2.67
  1476.  
  1477. Copyright (C) 2010 Free Software Foundation, Inc.
  1478. This configure script is free software; the Free Software Foundation
  1479. gives unlimited permission to copy, distribute and modify it.
  1480. _ACEOF
  1481. exit
  1482. fi
  1483.  
  1484. ## ------------------------ ##
  1485. ## Autoconf initialization. ##
  1486. ## ------------------------ ##
  1487.  
  1488. # ac_fn_cxx_try_compile LINENO
  1489. # ----------------------------
  1490. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1491. ac_fn_cxx_try_compile ()
  1492. {
  1493. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1494. rm -f conftest.$ac_objext
  1495. if { { ac_try="$ac_compile"
  1496. case "(($ac_try" in
  1497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1498. *) ac_try_echo=$ac_try;;
  1499. esac
  1500. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1501. $as_echo "$ac_try_echo"; } >&5
  1502. (eval "$ac_compile") 2>conftest.err
  1503. ac_status=$?
  1504. if test -s conftest.err; then
  1505. grep -v '^ *+' conftest.err >conftest.er1
  1506. cat conftest.er1 >&5
  1507. mv -f conftest.er1 conftest.err
  1508. fi
  1509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1510. test $ac_status = 0; } && {
  1511. test -z "$ac_cxx_werror_flag" ||
  1512. test ! -s conftest.err
  1513. } && test -s conftest.$ac_objext; then :
  1514. ac_retval=0
  1515. else
  1516. $as_echo "$as_me: failed program was:" >&5
  1517. sed 's/^/| /' conftest.$ac_ext >&5
  1518.  
  1519. ac_retval=1
  1520. fi
  1521. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1522. as_fn_set_status $ac_retval
  1523.  
  1524. } # ac_fn_cxx_try_compile
  1525.  
  1526. # ac_fn_cxx_try_cpp LINENO
  1527. # ------------------------
  1528. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1529. ac_fn_cxx_try_cpp ()
  1530. {
  1531. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1532. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1533. case "(($ac_try" in
  1534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1535. *) ac_try_echo=$ac_try;;
  1536. esac
  1537. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1538. $as_echo "$ac_try_echo"; } >&5
  1539. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1540. ac_status=$?
  1541. if test -s conftest.err; then
  1542. grep -v '^ *+' conftest.err >conftest.er1
  1543. cat conftest.er1 >&5
  1544. mv -f conftest.er1 conftest.err
  1545. fi
  1546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1547. test $ac_status = 0; } > conftest.i && {
  1548. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1549. test ! -s conftest.err
  1550. }; then :
  1551. ac_retval=0
  1552. else
  1553. $as_echo "$as_me: failed program was:" >&5
  1554. sed 's/^/| /' conftest.$ac_ext >&5
  1555.  
  1556. ac_retval=1
  1557. fi
  1558. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1559. as_fn_set_status $ac_retval
  1560.  
  1561. } # ac_fn_cxx_try_cpp
  1562.  
  1563. # ac_fn_cxx_try_run LINENO
  1564. # ------------------------
  1565. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1566. # that executables *can* be run.
  1567. ac_fn_cxx_try_run ()
  1568. {
  1569. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1570. if { { ac_try="$ac_link"
  1571. case "(($ac_try" in
  1572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1573. *) ac_try_echo=$ac_try;;
  1574. esac
  1575. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1576. $as_echo "$ac_try_echo"; } >&5
  1577. (eval "$ac_link") 2>&5
  1578. ac_status=$?
  1579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1580. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1581. { { case "(($ac_try" in
  1582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1583. *) ac_try_echo=$ac_try;;
  1584. esac
  1585. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1586. $as_echo "$ac_try_echo"; } >&5
  1587. (eval "$ac_try") 2>&5
  1588. ac_status=$?
  1589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1590. test $ac_status = 0; }; }; then :
  1591. ac_retval=0
  1592. else
  1593. $as_echo "$as_me: program exited with status $ac_status" >&5
  1594. $as_echo "$as_me: failed program was:" >&5
  1595. sed 's/^/| /' conftest.$ac_ext >&5
  1596.  
  1597. ac_retval=$ac_status
  1598. fi
  1599. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1600. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1601. as_fn_set_status $ac_retval
  1602.  
  1603. } # ac_fn_cxx_try_run
  1604.  
  1605. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1606. # ---------------------------------------------------------
  1607. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1608. # the include files in INCLUDES and setting the cache variable VAR
  1609. # accordingly.
  1610. ac_fn_cxx_check_header_mongrel ()
  1611. {
  1612. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1613. if eval "test \"\${$3+set}\"" = set; then :
  1614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1615. $as_echo_n "checking for $2... " >&6; }
  1616. if eval "test \"\${$3+set}\"" = set; then :
  1617. $as_echo_n "(cached) " >&6
  1618. fi
  1619. eval ac_res=\$$3
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1621. $as_echo "$ac_res" >&6; }
  1622. else
  1623. # Is the header compilable?
  1624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1625. $as_echo_n "checking $2 usability... " >&6; }
  1626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1627. /* end confdefs.h. */
  1628. $4
  1629. #include <$2>
  1630. _ACEOF
  1631. if ac_fn_cxx_try_compile "$LINENO"; then :
  1632. ac_header_compiler=yes
  1633. else
  1634. ac_header_compiler=no
  1635. fi
  1636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1638. $as_echo "$ac_header_compiler" >&6; }
  1639.  
  1640. # Is the header present?
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1642. $as_echo_n "checking $2 presence... " >&6; }
  1643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1644. /* end confdefs.h. */
  1645. #include <$2>
  1646. _ACEOF
  1647. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1648. ac_header_preproc=yes
  1649. else
  1650. ac_header_preproc=no
  1651. fi
  1652. rm -f conftest.err conftest.i conftest.$ac_ext
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1654. $as_echo "$ac_header_preproc" >&6; }
  1655.  
  1656. # So? What about this header?
  1657. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1658. yes:no: )
  1659. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1660. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1661. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1662. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1663. ;;
  1664. no:yes:* )
  1665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1666. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1668. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1670. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1672. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1674. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1675. ;;
  1676. esac
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1678. $as_echo_n "checking for $2... " >&6; }
  1679. if eval "test \"\${$3+set}\"" = set; then :
  1680. $as_echo_n "(cached) " >&6
  1681. else
  1682. eval "$3=\$ac_header_compiler"
  1683. fi
  1684. eval ac_res=\$$3
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1686. $as_echo "$ac_res" >&6; }
  1687. fi
  1688. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1689.  
  1690. } # ac_fn_cxx_check_header_mongrel
  1691.  
  1692. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1693. # ---------------------------------------------------------
  1694. # Tests whether HEADER exists and can be compiled using the include files in
  1695. # INCLUDES, setting the cache variable VAR accordingly.
  1696. ac_fn_cxx_check_header_compile ()
  1697. {
  1698. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1700. $as_echo_n "checking for $2... " >&6; }
  1701. if eval "test \"\${$3+set}\"" = set; then :
  1702. $as_echo_n "(cached) " >&6
  1703. else
  1704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1705. /* end confdefs.h. */
  1706. $4
  1707. #include <$2>
  1708. _ACEOF
  1709. if ac_fn_cxx_try_compile "$LINENO"; then :
  1710. eval "$3=yes"
  1711. else
  1712. eval "$3=no"
  1713. fi
  1714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1715. fi
  1716. eval ac_res=\$$3
  1717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1718. $as_echo "$ac_res" >&6; }
  1719. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1720.  
  1721. } # ac_fn_cxx_check_header_compile
  1722.  
  1723. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1724. # ---------------------------------------------
  1725. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1726. # variable VAR accordingly.
  1727. ac_fn_cxx_check_type ()
  1728. {
  1729. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1731. $as_echo_n "checking for $2... " >&6; }
  1732. if eval "test \"\${$3+set}\"" = set; then :
  1733. $as_echo_n "(cached) " >&6
  1734. else
  1735. eval "$3=no"
  1736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1737. /* end confdefs.h. */
  1738. $4
  1739. int
  1740. main ()
  1741. {
  1742. if (sizeof ($2))
  1743. return 0;
  1744. ;
  1745. return 0;
  1746. }
  1747. _ACEOF
  1748. if ac_fn_cxx_try_compile "$LINENO"; then :
  1749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1750. /* end confdefs.h. */
  1751. $4
  1752. int
  1753. main ()
  1754. {
  1755. if (sizeof (($2)))
  1756. return 0;
  1757. ;
  1758. return 0;
  1759. }
  1760. _ACEOF
  1761. if ac_fn_cxx_try_compile "$LINENO"; then :
  1762.  
  1763. else
  1764. eval "$3=yes"
  1765. fi
  1766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1767. fi
  1768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1769. fi
  1770. eval ac_res=\$$3
  1771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1772. $as_echo "$ac_res" >&6; }
  1773. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1774.  
  1775. } # ac_fn_cxx_check_type
  1776.  
  1777. # ac_fn_c_find_intX_t LINENO BITS VAR
  1778. # -----------------------------------
  1779. # Finds a signed integer type with width BITS, setting cache variable VAR
  1780. # accordingly.
  1781. ac_fn_c_find_intX_t ()
  1782. {
  1783. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1785. $as_echo_n "checking for int$2_t... " >&6; }
  1786. if eval "test \"\${$3+set}\"" = set; then :
  1787. $as_echo_n "(cached) " >&6
  1788. else
  1789. eval "$3=no"
  1790. # Order is important - never check a type that is potentially smaller
  1791. # than half of the expected target width.
  1792. for ac_type in int$2_t 'int' 'long int' \
  1793. 'long long int' 'short int' 'signed char'; do
  1794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1795. /* end confdefs.h. */
  1796. $ac_includes_default
  1797. enum { N = $2 / 2 - 1 };
  1798. int
  1799. main ()
  1800. {
  1801. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1802. test_array [0] = 0
  1803.  
  1804. ;
  1805. return 0;
  1806. }
  1807. _ACEOF
  1808. if ac_fn_cxx_try_compile "$LINENO"; then :
  1809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1810. /* end confdefs.h. */
  1811. $ac_includes_default
  1812. enum { N = $2 / 2 - 1 };
  1813. int
  1814. main ()
  1815. {
  1816. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1817. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1818. test_array [0] = 0
  1819.  
  1820. ;
  1821. return 0;
  1822. }
  1823. _ACEOF
  1824. if ac_fn_cxx_try_compile "$LINENO"; then :
  1825.  
  1826. else
  1827. case $ac_type in #(
  1828. int$2_t) :
  1829. eval "$3=yes" ;; #(
  1830. *) :
  1831. eval "$3=\$ac_type" ;;
  1832. esac
  1833. fi
  1834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1835. fi
  1836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1837. if eval test \"x\$"$3"\" = x"no"; then :
  1838.  
  1839. else
  1840. break
  1841. fi
  1842. done
  1843. fi
  1844. eval ac_res=\$$3
  1845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1846. $as_echo "$ac_res" >&6; }
  1847. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1848.  
  1849. } # ac_fn_c_find_intX_t
  1850.  
  1851. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1852. # ------------------------------------
  1853. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1854. # accordingly.
  1855. ac_fn_c_find_uintX_t ()
  1856. {
  1857. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1859. $as_echo_n "checking for uint$2_t... " >&6; }
  1860. if eval "test \"\${$3+set}\"" = set; then :
  1861. $as_echo_n "(cached) " >&6
  1862. else
  1863. eval "$3=no"
  1864. # Order is important - never check a type that is potentially smaller
  1865. # than half of the expected target width.
  1866. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1867. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1869. /* end confdefs.h. */
  1870. $ac_includes_default
  1871. int
  1872. main ()
  1873. {
  1874. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1875. test_array [0] = 0
  1876.  
  1877. ;
  1878. return 0;
  1879. }
  1880. _ACEOF
  1881. if ac_fn_cxx_try_compile "$LINENO"; then :
  1882. case $ac_type in #(
  1883. uint$2_t) :
  1884. eval "$3=yes" ;; #(
  1885. *) :
  1886. eval "$3=\$ac_type" ;;
  1887. esac
  1888. fi
  1889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1890. if eval test \"x\$"$3"\" = x"no"; then :
  1891.  
  1892. else
  1893. break
  1894. fi
  1895. done
  1896. fi
  1897. eval ac_res=\$$3
  1898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1899. $as_echo "$ac_res" >&6; }
  1900. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1901.  
  1902. } # ac_fn_c_find_uintX_t
  1903.  
  1904. # ac_fn_cxx_try_link LINENO
  1905. # -------------------------
  1906. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1907. ac_fn_cxx_try_link ()
  1908. {
  1909. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1910. rm -f conftest.$ac_objext conftest$ac_exeext
  1911. if { { ac_try="$ac_link"
  1912. case "(($ac_try" in
  1913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1914. *) ac_try_echo=$ac_try;;
  1915. esac
  1916. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1917. $as_echo "$ac_try_echo"; } >&5
  1918. (eval "$ac_link") 2>conftest.err
  1919. ac_status=$?
  1920. if test -s conftest.err; then
  1921. grep -v '^ *+' conftest.err >conftest.er1
  1922. cat conftest.er1 >&5
  1923. mv -f conftest.er1 conftest.err
  1924. fi
  1925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1926. test $ac_status = 0; } && {
  1927. test -z "$ac_cxx_werror_flag" ||
  1928. test ! -s conftest.err
  1929. } && test -s conftest$ac_exeext && {
  1930. test "$cross_compiling" = yes ||
  1931. $as_test_x conftest$ac_exeext
  1932. }; then :
  1933. ac_retval=0
  1934. else
  1935. $as_echo "$as_me: failed program was:" >&5
  1936. sed 's/^/| /' conftest.$ac_ext >&5
  1937.  
  1938. ac_retval=1
  1939. fi
  1940. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1941. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1942. # interfere with the next link command; also delete a directory that is
  1943. # left behind by Apple's compiler. We do this before executing the actions.
  1944. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1945. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1946. as_fn_set_status $ac_retval
  1947.  
  1948. } # ac_fn_cxx_try_link
  1949.  
  1950. # ac_fn_cxx_check_func LINENO FUNC VAR
  1951. # ------------------------------------
  1952. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1953. ac_fn_cxx_check_func ()
  1954. {
  1955. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1957. $as_echo_n "checking for $2... " >&6; }
  1958. if eval "test \"\${$3+set}\"" = set; then :
  1959. $as_echo_n "(cached) " >&6
  1960. else
  1961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1962. /* end confdefs.h. */
  1963. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1964. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1965. #define $2 innocuous_$2
  1966.  
  1967. /* System header to define __stub macros and hopefully few prototypes,
  1968. which can conflict with char $2 (); below.
  1969. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1970. <limits.h> exists even on freestanding compilers. */
  1971.  
  1972. #ifdef __STDC__
  1973. # include <limits.h>
  1974. #else
  1975. # include <assert.h>
  1976. #endif
  1977.  
  1978. #undef $2
  1979.  
  1980. /* Override any GCC internal prototype to avoid an error.
  1981. Use char because int might match the return type of a GCC
  1982. builtin and then its argument prototype would still apply. */
  1983. #ifdef __cplusplus
  1984. extern "C"
  1985. #endif
  1986. char $2 ();
  1987. /* The GNU C library defines this for functions which it implements
  1988. to always fail with ENOSYS. Some functions are actually named
  1989. something starting with __ and the normal name is an alias. */
  1990. #if defined __stub_$2 || defined __stub___$2
  1991. choke me
  1992. #endif
  1993.  
  1994. int
  1995. main ()
  1996. {
  1997. return $2 ();
  1998. ;
  1999. return 0;
  2000. }
  2001. _ACEOF
  2002. if ac_fn_cxx_try_link "$LINENO"; then :
  2003. eval "$3=yes"
  2004. else
  2005. eval "$3=no"
  2006. fi
  2007. rm -f core conftest.err conftest.$ac_objext \
  2008. conftest$ac_exeext conftest.$ac_ext
  2009. fi
  2010. eval ac_res=\$$3
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2012. $as_echo "$ac_res" >&6; }
  2013. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2014.  
  2015. } # ac_fn_cxx_check_func
  2016. cat >config.log <<_ACEOF
  2017. This file contains any messages produced by compilers while
  2018. running configure, to aid debugging if configure makes a mistake.
  2019.  
  2020. It was created by OTXServer $as_me 2.X.Series, which was
  2021. generated by GNU Autoconf 2.67. Invocation command line was
  2022.  
  2023. $ $0 $@
  2024.  
  2025. _ACEOF
  2026. exec 5>>config.log
  2027. {
  2028. cat <<_ASUNAME
  2029. ## --------- ##
  2030. ## Platform. ##
  2031. ## --------- ##
  2032.  
  2033. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2034. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2035. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2036. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2037. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2038.  
  2039. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2040. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2041.  
  2042. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2043. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2044. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2045. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2046. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2047. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2048. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2049.  
  2050. _ASUNAME
  2051.  
  2052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2053. for as_dir in $PATH
  2054. do
  2055. IFS=$as_save_IFS
  2056. test -z "$as_dir" && as_dir=.
  2057. $as_echo "PATH: $as_dir"
  2058. done
  2059. IFS=$as_save_IFS
  2060.  
  2061. } >&5
  2062.  
  2063. cat >&5 <<_ACEOF
  2064.  
  2065.  
  2066. ## ----------- ##
  2067. ## Core tests. ##
  2068. ## ----------- ##
  2069.  
  2070. _ACEOF
  2071.  
  2072.  
  2073. # Keep a trace of the command line.
  2074. # Strip out --no-create and --no-recursion so they do not pile up.
  2075. # Strip out --silent because we don't want to record it for future runs.
  2076. # Also quote any args containing shell meta-characters.
  2077. # Make two passes to allow for proper duplicate-argument suppression.
  2078. ac_configure_args=
  2079. ac_configure_args0=
  2080. ac_configure_args1=
  2081. ac_must_keep_next=false
  2082. for ac_pass in 1 2
  2083. do
  2084. for ac_arg
  2085. do
  2086. case $ac_arg in
  2087. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2088. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2089. | -silent | --silent | --silen | --sile | --sil)
  2090. continue ;;
  2091. *\'*)
  2092. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2093. esac
  2094. case $ac_pass in
  2095. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2096. 2)
  2097. as_fn_append ac_configure_args1 " '$ac_arg'"
  2098. if test $ac_must_keep_next = true; then
  2099. ac_must_keep_next=false # Got value, back to normal.
  2100. else
  2101. case $ac_arg in
  2102. *=* | --config-cache | -C | -disable-* | --disable-* \
  2103. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2104. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2105. | -with-* | --with-* | -without-* | --without-* | --x)
  2106. case "$ac_configure_args0 " in
  2107. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2108. esac
  2109. ;;
  2110. -* ) ac_must_keep_next=true ;;
  2111. esac
  2112. fi
  2113. as_fn_append ac_configure_args " '$ac_arg'"
  2114. ;;
  2115. esac
  2116. done
  2117. done
  2118. { ac_configure_args0=; unset ac_configure_args0;}
  2119. { ac_configure_args1=; unset ac_configure_args1;}
  2120.  
  2121. # When interrupted or exit'd, cleanup temporary files, and complete
  2122. # config.log. We remove comments because anyway the quotes in there
  2123. # would cause problems or look ugly.
  2124. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2125. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2126. trap 'exit_status=$?
  2127. # Save into config.log some information that might help in debugging.
  2128. {
  2129. echo
  2130.  
  2131. $as_echo "## ---------------- ##
  2132. ## Cache variables. ##
  2133. ## ---------------- ##"
  2134. echo
  2135. # The following way of writing the cache mishandles newlines in values,
  2136. (
  2137. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2138. eval ac_val=\$$ac_var
  2139. case $ac_val in #(
  2140. *${as_nl}*)
  2141. case $ac_var in #(
  2142. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2143. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2144. esac
  2145. case $ac_var in #(
  2146. _ | IFS | as_nl) ;; #(
  2147. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2148. *) { eval $ac_var=; unset $ac_var;} ;;
  2149. esac ;;
  2150. esac
  2151. done
  2152. (set) 2>&1 |
  2153. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2154. *${as_nl}ac_space=\ *)
  2155. sed -n \
  2156. "s/'\''/'\''\\\\'\'''\''/g;
  2157. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2158. ;; #(
  2159. *)
  2160. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2161. ;;
  2162. esac |
  2163. sort
  2164. )
  2165. echo
  2166.  
  2167. $as_echo "## ----------------- ##
  2168. ## Output variables. ##
  2169. ## ----------------- ##"
  2170. echo
  2171. for ac_var in $ac_subst_vars
  2172. do
  2173. eval ac_val=\$$ac_var
  2174. case $ac_val in
  2175. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2176. esac
  2177. $as_echo "$ac_var='\''$ac_val'\''"
  2178. done | sort
  2179. echo
  2180.  
  2181. if test -n "$ac_subst_files"; then
  2182. $as_echo "## ------------------- ##
  2183. ## File substitutions. ##
  2184. ## ------------------- ##"
  2185. echo
  2186. for ac_var in $ac_subst_files
  2187. do
  2188. eval ac_val=\$$ac_var
  2189. case $ac_val in
  2190. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2191. esac
  2192. $as_echo "$ac_var='\''$ac_val'\''"
  2193. done | sort
  2194. echo
  2195. fi
  2196.  
  2197. if test -s confdefs.h; then
  2198. $as_echo "## ----------- ##
  2199. ## confdefs.h. ##
  2200. ## ----------- ##"
  2201. echo
  2202. cat confdefs.h
  2203. echo
  2204. fi
  2205. test "$ac_signal" != 0 &&
  2206. $as_echo "$as_me: caught signal $ac_signal"
  2207. $as_echo "$as_me: exit $exit_status"
  2208. } >&5
  2209. rm -f core *.core core.conftest.* &&
  2210. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2211. exit $exit_status
  2212. ' 0
  2213. for ac_signal in 1 2 13 15; do
  2214. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2215. done
  2216. ac_signal=0
  2217.  
  2218. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2219. rm -f -r conftest* confdefs.h
  2220.  
  2221. $as_echo "/* confdefs.h */" > confdefs.h
  2222.  
  2223. # Predefined preprocessor variables.
  2224.  
  2225. cat >>confdefs.h <<_ACEOF
  2226. #define PACKAGE_NAME "$PACKAGE_NAME"
  2227. _ACEOF
  2228.  
  2229. cat >>confdefs.h <<_ACEOF
  2230. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2231. _ACEOF
  2232.  
  2233. cat >>confdefs.h <<_ACEOF
  2234. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2235. _ACEOF
  2236.  
  2237. cat >>confdefs.h <<_ACEOF
  2238. #define PACKAGE_STRING "$PACKAGE_STRING"
  2239. _ACEOF
  2240.  
  2241. cat >>confdefs.h <<_ACEOF
  2242. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2243. _ACEOF
  2244.  
  2245. cat >>confdefs.h <<_ACEOF
  2246. #define PACKAGE_URL "$PACKAGE_URL"
  2247. _ACEOF
  2248.  
  2249.  
  2250. # Let the site file select an alternate cache file if it wants to.
  2251. # Prefer an explicitly selected file to automatically selected ones.
  2252. ac_site_file1=NONE
  2253. ac_site_file2=NONE
  2254. if test -n "$CONFIG_SITE"; then
  2255. # We do not want a PATH search for config.site.
  2256. case $CONFIG_SITE in #((
  2257. -*) ac_site_file1=./$CONFIG_SITE;;
  2258. */*) ac_site_file1=$CONFIG_SITE;;
  2259. *) ac_site_file1=./$CONFIG_SITE;;
  2260. esac
  2261. elif test "x$prefix" != xNONE; then
  2262. ac_site_file1=$prefix/share/config.site
  2263. ac_site_file2=$prefix/etc/config.site
  2264. else
  2265. ac_site_file1=$ac_default_prefix/share/config.site
  2266. ac_site_file2=$ac_default_prefix/etc/config.site
  2267. fi
  2268. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2269. do
  2270. test "x$ac_site_file" = xNONE && continue
  2271. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2273. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2274. sed 's/^/| /' "$ac_site_file" >&5
  2275. . "$ac_site_file" \
  2276. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2277. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2278. as_fn_error $? "failed to load site script $ac_site_file
  2279. See \`config.log' for more details" "$LINENO" 5 ; }
  2280. fi
  2281. done
  2282.  
  2283. if test -r "$cache_file"; then
  2284. # Some versions of bash will fail to source /dev/null (special files
  2285. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2286. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2288. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2289. case $cache_file in
  2290. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2291. *) . "./$cache_file";;
  2292. esac
  2293. fi
  2294. else
  2295. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2296. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2297. >$cache_file
  2298. fi
  2299.  
  2300. # Check that the precious variables saved in the cache have kept the same
  2301. # value.
  2302. ac_cache_corrupted=false
  2303. for ac_var in $ac_precious_vars; do
  2304. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2305. eval ac_new_set=\$ac_env_${ac_var}_set
  2306. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2307. eval ac_new_val=\$ac_env_${ac_var}_value
  2308. case $ac_old_set,$ac_new_set in
  2309. set,)
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2311. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2312. ac_cache_corrupted=: ;;
  2313. ,set)
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2315. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2316. ac_cache_corrupted=: ;;
  2317. ,);;
  2318. *)
  2319. if test "x$ac_old_val" != "x$ac_new_val"; then
  2320. # differences in whitespace do not lead to failure.
  2321. ac_old_val_w=`echo x $ac_old_val`
  2322. ac_new_val_w=`echo x $ac_new_val`
  2323. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2325. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2326. ac_cache_corrupted=:
  2327. else
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2329. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2330. eval $ac_var=\$ac_old_val
  2331. fi
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2333. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2335. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2336. fi;;
  2337. esac
  2338. # Pass precious variables to config.status.
  2339. if test "$ac_new_set" = set; then
  2340. case $ac_new_val in
  2341. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2342. *) ac_arg=$ac_var=$ac_new_val ;;
  2343. esac
  2344. case " $ac_configure_args " in
  2345. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2346. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2347. esac
  2348. fi
  2349. done
  2350. if $ac_cache_corrupted; then
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2352. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2354. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2355. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2356. fi
  2357. ## -------------------- ##
  2358. ## Main body of script. ##
  2359. ## -------------------- ##
  2360.  
  2361. ac_ext=c
  2362. ac_cpp='$CPP $CPPFLAGS'
  2363. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2364. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2365. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2366.  
  2367.  
  2368. am__api_version='1.11'
  2369.  
  2370. ac_aux_dir=
  2371. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2372. if test -f "$ac_dir/install-sh"; then
  2373. ac_aux_dir=$ac_dir
  2374. ac_install_sh="$ac_aux_dir/install-sh -c"
  2375. break
  2376. elif test -f "$ac_dir/install.sh"; then
  2377. ac_aux_dir=$ac_dir
  2378. ac_install_sh="$ac_aux_dir/install.sh -c"
  2379. break
  2380. elif test -f "$ac_dir/shtool"; then
  2381. ac_aux_dir=$ac_dir
  2382. ac_install_sh="$ac_aux_dir/shtool install -c"
  2383. break
  2384. fi
  2385. done
  2386. if test -z "$ac_aux_dir"; then
  2387. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2388. fi
  2389.  
  2390. # These three variables are undocumented and unsupported,
  2391. # and are intended to be withdrawn in a future Autoconf release.
  2392. # They can cause serious problems if a builder's source tree is in a directory
  2393. # whose full name contains unusual characters.
  2394. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2395. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2396. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2397.  
  2398.  
  2399. # Find a good install program. We prefer a C program (faster),
  2400. # so one script is as good as another. But avoid the broken or
  2401. # incompatible versions:
  2402. # SysV /etc/install, /usr/sbin/install
  2403. # SunOS /usr/etc/install
  2404. # IRIX /sbin/install
  2405. # AIX /bin/install
  2406. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2407. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2408. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2409. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2410. # OS/2's system install, which has a completely different semantic
  2411. # ./install, which can be erroneously created by make from ./install.sh.
  2412. # Reject install programs that cannot install multiple files.
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2414. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2415. if test -z "$INSTALL"; then
  2416. if test "${ac_cv_path_install+set}" = set; then :
  2417. $as_echo_n "(cached) " >&6
  2418. else
  2419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2420. for as_dir in $PATH
  2421. do
  2422. IFS=$as_save_IFS
  2423. test -z "$as_dir" && as_dir=.
  2424. # Account for people who put trailing slashes in PATH elements.
  2425. case $as_dir/ in #((
  2426. ./ | .// | /[cC]/* | \
  2427. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2428. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2429. /usr/ucb/* ) ;;
  2430. *)
  2431. # OSF1 and SCO ODT 3.0 have their own names for install.
  2432. # Don't use installbsd from OSF since it installs stuff as root
  2433. # by default.
  2434. for ac_prog in ginstall scoinst install; do
  2435. for ac_exec_ext in '' $ac_executable_extensions; do
  2436. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2437. if test $ac_prog = install &&
  2438. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2439. # AIX install. It has an incompatible calling convention.
  2440. :
  2441. elif test $ac_prog = install &&
  2442. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2443. # program-specific install script used by HP pwplus--don't use.
  2444. :
  2445. else
  2446. rm -rf conftest.one conftest.two conftest.dir
  2447. echo one > conftest.one
  2448. echo two > conftest.two
  2449. mkdir conftest.dir
  2450. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2451. test -s conftest.one && test -s conftest.two &&
  2452. test -s conftest.dir/conftest.one &&
  2453. test -s conftest.dir/conftest.two
  2454. then
  2455. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2456. break 3
  2457. fi
  2458. fi
  2459. fi
  2460. done
  2461. done
  2462. ;;
  2463. esac
  2464.  
  2465. done
  2466. IFS=$as_save_IFS
  2467.  
  2468. rm -rf conftest.one conftest.two conftest.dir
  2469.  
  2470. fi
  2471. if test "${ac_cv_path_install+set}" = set; then
  2472. INSTALL=$ac_cv_path_install
  2473. else
  2474. # As a last resort, use the slow shell script. Don't cache a
  2475. # value for INSTALL within a source directory, because that will
  2476. # break other packages using the cache if that directory is
  2477. # removed, or if the value is a relative name.
  2478. INSTALL=$ac_install_sh
  2479. fi
  2480. fi
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2482. $as_echo "$INSTALL" >&6; }
  2483.  
  2484. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2485. # It thinks the first close brace ends the variable substitution.
  2486. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2487.  
  2488. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2489.  
  2490. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2491.  
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2493. $as_echo_n "checking whether build environment is sane... " >&6; }
  2494. # Just in case
  2495. sleep 1
  2496. echo timestamp > conftest.file
  2497. # Reject unsafe characters in $srcdir or the absolute working directory
  2498. # name. Accept space and tab only in the latter.
  2499. am_lf='
  2500. '
  2501. case `pwd` in
  2502. *[\\\"\#\$\&\'\`$am_lf]*)
  2503. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  2504. esac
  2505. case $srcdir in
  2506. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2507. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  2508. esac
  2509.  
  2510. # Do `set' in a subshell so we don't clobber the current shell's
  2511. # arguments. Must try -L first in case configure is actually a
  2512. # symlink; some systems play weird games with the mod time of symlinks
  2513. # (eg FreeBSD returns the mod time of the symlink's containing
  2514. # directory).
  2515. if (
  2516. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2517. if test "$*" = "X"; then
  2518. # -L didn't work.
  2519. set X `ls -t "$srcdir/configure" conftest.file`
  2520. fi
  2521. rm -f conftest.file
  2522. if test "$*" != "X $srcdir/configure conftest.file" \
  2523. && test "$*" != "X conftest.file $srcdir/configure"; then
  2524.  
  2525. # If neither matched, then we have a broken ls. This can happen
  2526. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2527. # broken ls alias from the environment. This has actually
  2528. # happened. Such a system could not be considered "sane".
  2529. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2530. alias in your environment" "$LINENO" 5
  2531. fi
  2532.  
  2533. test "$2" = conftest.file
  2534. )
  2535. then
  2536. # Ok.
  2537. :
  2538. else
  2539. as_fn_error $? "newly created file is older than distributed files!
  2540. Check your system clock" "$LINENO" 5
  2541. fi
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2543. $as_echo "yes" >&6; }
  2544. test "$program_prefix" != NONE &&
  2545. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2546. # Use a double $ so make ignores it.
  2547. test "$program_suffix" != NONE &&
  2548. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2549. # Double any \ or $.
  2550. # By default was `s,x,x', remove it if useless.
  2551. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2552. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2553.  
  2554. # expand $ac_aux_dir to an absolute path
  2555. am_aux_dir=`cd $ac_aux_dir && pwd`
  2556.  
  2557. if test x"${MISSING+set}" != xset; then
  2558. case $am_aux_dir in
  2559. *\ * | *\ *)
  2560. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2561. *)
  2562. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2563. esac
  2564. fi
  2565. # Use eval to expand $SHELL
  2566. if eval "$MISSING --run true"; then
  2567. am_missing_run="$MISSING --run "
  2568. else
  2569. am_missing_run=
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2571. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2572. fi
  2573.  
  2574. if test x"${install_sh}" != xset; then
  2575. case $am_aux_dir in
  2576. *\ * | *\ *)
  2577. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2578. *)
  2579. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2580. esac
  2581. fi
  2582.  
  2583. # Installed binaries are usually stripped using `strip' when the user
  2584. # run `make install-strip'. However `strip' might not be the right
  2585. # tool to use in cross-compilation environments, therefore Automake
  2586. # will honor the `STRIP' environment variable to overrule this program.
  2587. if test "$cross_compiling" != no; then
  2588. if test -n "$ac_tool_prefix"; then
  2589. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2590. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2592. $as_echo_n "checking for $ac_word... " >&6; }
  2593. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2594. $as_echo_n "(cached) " >&6
  2595. else
  2596. if test -n "$STRIP"; then
  2597. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2598. else
  2599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2600. for as_dir in $PATH
  2601. do
  2602. IFS=$as_save_IFS
  2603. test -z "$as_dir" && as_dir=.
  2604. for ac_exec_ext in '' $ac_executable_extensions; do
  2605. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2606. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2608. break 2
  2609. fi
  2610. done
  2611. done
  2612. IFS=$as_save_IFS
  2613.  
  2614. fi
  2615. fi
  2616. STRIP=$ac_cv_prog_STRIP
  2617. if test -n "$STRIP"; then
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2619. $as_echo "$STRIP" >&6; }
  2620. else
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2622. $as_echo "no" >&6; }
  2623. fi
  2624.  
  2625.  
  2626. fi
  2627. if test -z "$ac_cv_prog_STRIP"; then
  2628. ac_ct_STRIP=$STRIP
  2629. # Extract the first word of "strip", so it can be a program name with args.
  2630. set dummy strip; ac_word=$2
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2632. $as_echo_n "checking for $ac_word... " >&6; }
  2633. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2634. $as_echo_n "(cached) " >&6
  2635. else
  2636. if test -n "$ac_ct_STRIP"; then
  2637. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2638. else
  2639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2640. for as_dir in $PATH
  2641. do
  2642. IFS=$as_save_IFS
  2643. test -z "$as_dir" && as_dir=.
  2644. for ac_exec_ext in '' $ac_executable_extensions; do
  2645. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2646. ac_cv_prog_ac_ct_STRIP="strip"
  2647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2648. break 2
  2649. fi
  2650. done
  2651. done
  2652. IFS=$as_save_IFS
  2653.  
  2654. fi
  2655. fi
  2656. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2657. if test -n "$ac_ct_STRIP"; then
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2659. $as_echo "$ac_ct_STRIP" >&6; }
  2660. else
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2662. $as_echo "no" >&6; }
  2663. fi
  2664.  
  2665. if test "x$ac_ct_STRIP" = x; then
  2666. STRIP=":"
  2667. else
  2668. case $cross_compiling:$ac_tool_warned in
  2669. yes:)
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2671. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2672. ac_tool_warned=yes ;;
  2673. esac
  2674. STRIP=$ac_ct_STRIP
  2675. fi
  2676. else
  2677. STRIP="$ac_cv_prog_STRIP"
  2678. fi
  2679.  
  2680. fi
  2681. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2682.  
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2684. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2685. if test -z "$MKDIR_P"; then
  2686. if test "${ac_cv_path_mkdir+set}" = set; then :
  2687. $as_echo_n "(cached) " >&6
  2688. else
  2689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2690. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2691. do
  2692. IFS=$as_save_IFS
  2693. test -z "$as_dir" && as_dir=.
  2694. for ac_prog in mkdir gmkdir; do
  2695. for ac_exec_ext in '' $ac_executable_extensions; do
  2696. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2697. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2698. 'mkdir (GNU coreutils) '* | \
  2699. 'mkdir (coreutils) '* | \
  2700. 'mkdir (fileutils) '4.1*)
  2701. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2702. break 3;;
  2703. esac
  2704. done
  2705. done
  2706. done
  2707. IFS=$as_save_IFS
  2708.  
  2709. fi
  2710.  
  2711. test -d ./--version && rmdir ./--version
  2712. if test "${ac_cv_path_mkdir+set}" = set; then
  2713. MKDIR_P="$ac_cv_path_mkdir -p"
  2714. else
  2715. # As a last resort, use the slow shell script. Don't cache a
  2716. # value for MKDIR_P within a source directory, because that will
  2717. # break other packages using the cache if that directory is
  2718. # removed, or if the value is a relative name.
  2719. MKDIR_P="$ac_install_sh -d"
  2720. fi
  2721. fi
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2723. $as_echo "$MKDIR_P" >&6; }
  2724.  
  2725. mkdir_p="$MKDIR_P"
  2726. case $mkdir_p in
  2727. [\\/$]* | ?:[\\/]*) ;;
  2728. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2729. esac
  2730.  
  2731. for ac_prog in gawk mawk nawk awk
  2732. do
  2733. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2734. set dummy $ac_prog; ac_word=$2
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2736. $as_echo_n "checking for $ac_word... " >&6; }
  2737. if test "${ac_cv_prog_AWK+set}" = set; then :
  2738. $as_echo_n "(cached) " >&6
  2739. else
  2740. if test -n "$AWK"; then
  2741. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2742. else
  2743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2744. for as_dir in $PATH
  2745. do
  2746. IFS=$as_save_IFS
  2747. test -z "$as_dir" && as_dir=.
  2748. for ac_exec_ext in '' $ac_executable_extensions; do
  2749. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2750. ac_cv_prog_AWK="$ac_prog"
  2751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2752. break 2
  2753. fi
  2754. done
  2755. done
  2756. IFS=$as_save_IFS
  2757.  
  2758. fi
  2759. fi
  2760. AWK=$ac_cv_prog_AWK
  2761. if test -n "$AWK"; then
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2763. $as_echo "$AWK" >&6; }
  2764. else
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2766. $as_echo "no" >&6; }
  2767. fi
  2768.  
  2769.  
  2770. test -n "$AWK" && break
  2771. done
  2772.  
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2774. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2775. set x ${MAKE-make}
  2776. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2777. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  2778. $as_echo_n "(cached) " >&6
  2779. else
  2780. cat >conftest.make <<\_ACEOF
  2781. SHELL = /bin/sh
  2782. all:
  2783. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2784. _ACEOF
  2785. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2786. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2787. *@@@%%%=?*=@@@%%%*)
  2788. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2789. *)
  2790. eval ac_cv_prog_make_${ac_make}_set=no;;
  2791. esac
  2792. rm -f conftest.make
  2793. fi
  2794. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2796. $as_echo "yes" >&6; }
  2797. SET_MAKE=
  2798. else
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2800. $as_echo "no" >&6; }
  2801. SET_MAKE="MAKE=${MAKE-make}"
  2802. fi
  2803.  
  2804. rm -rf .tst 2>/dev/null
  2805. mkdir .tst 2>/dev/null
  2806. if test -d .tst; then
  2807. am__leading_dot=.
  2808. else
  2809. am__leading_dot=_
  2810. fi
  2811. rmdir .tst 2>/dev/null
  2812.  
  2813. # Check whether --enable-silent-rules was given.
  2814. if test "${enable_silent_rules+set}" = set; then :
  2815. enableval=$enable_silent_rules;
  2816. fi
  2817.  
  2818. case $enable_silent_rules in
  2819. yes) AM_DEFAULT_VERBOSITY=0;;
  2820. no) AM_DEFAULT_VERBOSITY=1;;
  2821. *) AM_DEFAULT_VERBOSITY=1;;
  2822. esac
  2823. AM_BACKSLASH='\'
  2824.  
  2825. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2826. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2827. # is not polluted with repeated "-I."
  2828. am__isrc=' -I$(srcdir)'
  2829. # test to see if srcdir already configured
  2830. if test -f $srcdir/config.status; then
  2831. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2832. fi
  2833. fi
  2834.  
  2835. # test whether we have cygpath
  2836. if test -z "$CYGPATH_W"; then
  2837. if (cygpath --version) >/dev/null 2>/dev/null; then
  2838. CYGPATH_W='cygpath -w'
  2839. else
  2840. CYGPATH_W=echo
  2841. fi
  2842. fi
  2843.  
  2844.  
  2845. # Define the identity of the package.
  2846. PACKAGE='otxserver'
  2847. VERSION='2.X.Series'
  2848.  
  2849.  
  2850. cat >>confdefs.h <<_ACEOF
  2851. #define PACKAGE "$PACKAGE"
  2852. _ACEOF
  2853.  
  2854.  
  2855. cat >>confdefs.h <<_ACEOF
  2856. #define VERSION "$VERSION"
  2857. _ACEOF
  2858.  
  2859. # Some tools Automake needs.
  2860.  
  2861. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2862.  
  2863.  
  2864. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2865.  
  2866.  
  2867. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2868.  
  2869.  
  2870. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2871.  
  2872.  
  2873. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2874.  
  2875. # We need awk for the "check" target. The system "awk" is bad on
  2876. # some platforms.
  2877. # Always define AMTAR for backward compatibility.
  2878.  
  2879. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2880.  
  2881. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2882.  
  2883.  
  2884.  
  2885.  
  2886.  
  2887.  
  2888. ac_config_headers="$ac_config_headers config.h"
  2889.  
  2890. # Check whether --enable-silent-rules was given.
  2891. if test "${enable_silent_rules+set}" = set; then :
  2892. enableval=$enable_silent_rules;
  2893. fi
  2894.  
  2895. case $enable_silent_rules in
  2896. yes) AM_DEFAULT_VERBOSITY=0;;
  2897. no) AM_DEFAULT_VERBOSITY=1;;
  2898. *) AM_DEFAULT_VERBOSITY=0;;
  2899. esac
  2900. AM_BACKSLASH='\'
  2901.  
  2902.  
  2903. ac_ext=cpp
  2904. ac_cpp='$CXXCPP $CPPFLAGS'
  2905. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2906. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2907. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2908. if test -z "$CXX"; then
  2909. if test -n "$CCC"; then
  2910. CXX=$CCC
  2911. else
  2912. if test -n "$ac_tool_prefix"; then
  2913. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2914. do
  2915. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2916. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2918. $as_echo_n "checking for $ac_word... " >&6; }
  2919. if test "${ac_cv_prog_CXX+set}" = set; then :
  2920. $as_echo_n "(cached) " >&6
  2921. else
  2922. if test -n "$CXX"; then
  2923. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2924. else
  2925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2926. for as_dir in $PATH
  2927. do
  2928. IFS=$as_save_IFS
  2929. test -z "$as_dir" && as_dir=.
  2930. for ac_exec_ext in '' $ac_executable_extensions; do
  2931. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2932. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2934. break 2
  2935. fi
  2936. done
  2937. done
  2938. IFS=$as_save_IFS
  2939.  
  2940. fi
  2941. fi
  2942. CXX=$ac_cv_prog_CXX
  2943. if test -n "$CXX"; then
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2945. $as_echo "$CXX" >&6; }
  2946. else
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2948. $as_echo "no" >&6; }
  2949. fi
  2950.  
  2951.  
  2952. test -n "$CXX" && break
  2953. done
  2954. fi
  2955. if test -z "$CXX"; then
  2956. ac_ct_CXX=$CXX
  2957. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2958. do
  2959. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2960. set dummy $ac_prog; ac_word=$2
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2962. $as_echo_n "checking for $ac_word... " >&6; }
  2963. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  2964. $as_echo_n "(cached) " >&6
  2965. else
  2966. if test -n "$ac_ct_CXX"; then
  2967. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2968. else
  2969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2970. for as_dir in $PATH
  2971. do
  2972. IFS=$as_save_IFS
  2973. test -z "$as_dir" && as_dir=.
  2974. for ac_exec_ext in '' $ac_executable_extensions; do
  2975. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2976. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2978. break 2
  2979. fi
  2980. done
  2981. done
  2982. IFS=$as_save_IFS
  2983.  
  2984. fi
  2985. fi
  2986. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2987. if test -n "$ac_ct_CXX"; then
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2989. $as_echo "$ac_ct_CXX" >&6; }
  2990. else
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2992. $as_echo "no" >&6; }
  2993. fi
  2994.  
  2995.  
  2996. test -n "$ac_ct_CXX" && break
  2997. done
  2998.  
  2999. if test "x$ac_ct_CXX" = x; then
  3000. CXX="g++"
  3001. else
  3002. case $cross_compiling:$ac_tool_warned in
  3003. yes:)
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3005. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3006. ac_tool_warned=yes ;;
  3007. esac
  3008. CXX=$ac_ct_CXX
  3009. fi
  3010. fi
  3011.  
  3012. fi
  3013. fi
  3014. # Provide some information about the compiler.
  3015. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3016. set X $ac_compile
  3017. ac_compiler=$2
  3018. for ac_option in --version -v -V -qversion; do
  3019. { { ac_try="$ac_compiler $ac_option >&5"
  3020. case "(($ac_try" in
  3021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3022. *) ac_try_echo=$ac_try;;
  3023. esac
  3024. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3025. $as_echo "$ac_try_echo"; } >&5
  3026. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3027. ac_status=$?
  3028. if test -s conftest.err; then
  3029. sed '10a\
  3030. ... rest of stderr output deleted ...
  3031. 10q' conftest.err >conftest.er1
  3032. cat conftest.er1 >&5
  3033. fi
  3034. rm -f conftest.er1 conftest.err
  3035. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3036. test $ac_status = 0; }
  3037. done
  3038.  
  3039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3040. /* end confdefs.h. */
  3041.  
  3042. int
  3043. main ()
  3044. {
  3045.  
  3046. ;
  3047. return 0;
  3048. }
  3049. _ACEOF
  3050. ac_clean_files_save=$ac_clean_files
  3051. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3052. # Try to create an executable without -o first, disregard a.out.
  3053. # It will help us diagnose broken compilers, and finding out an intuition
  3054. # of exeext.
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3056. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3057. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3058.  
  3059. # The possible output files:
  3060. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3061.  
  3062. ac_rmfiles=
  3063. for ac_file in $ac_files
  3064. do
  3065. case $ac_file in
  3066. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3067. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3068. esac
  3069. done
  3070. rm -f $ac_rmfiles
  3071.  
  3072. if { { ac_try="$ac_link_default"
  3073. case "(($ac_try" in
  3074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3075. *) ac_try_echo=$ac_try;;
  3076. esac
  3077. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3078. $as_echo "$ac_try_echo"; } >&5
  3079. (eval "$ac_link_default") 2>&5
  3080. ac_status=$?
  3081. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3082. test $ac_status = 0; }; then :
  3083. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3084. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3085. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3086. # so that the user can short-circuit this test for compilers unknown to
  3087. # Autoconf.
  3088. for ac_file in $ac_files ''
  3089. do
  3090. test -f "$ac_file" || continue
  3091. case $ac_file in
  3092. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3093. ;;
  3094. [ab].out )
  3095. # We found the default executable, but exeext='' is most
  3096. # certainly right.
  3097. break;;
  3098. *.* )
  3099. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3100. then :; else
  3101. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3102. fi
  3103. # We set ac_cv_exeext here because the later test for it is not
  3104. # safe: cross compilers may not add the suffix if given an `-o'
  3105. # argument, so we may need to know it at that point already.
  3106. # Even if this section looks crufty: it has the advantage of
  3107. # actually working.
  3108. break;;
  3109. * )
  3110. break;;
  3111. esac
  3112. done
  3113. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3114.  
  3115. else
  3116. ac_file=''
  3117. fi
  3118. if test -z "$ac_file"; then :
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3120. $as_echo "no" >&6; }
  3121. $as_echo "$as_me: failed program was:" >&5
  3122. sed 's/^/| /' conftest.$ac_ext >&5
  3123.  
  3124. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3125. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3126. as_fn_error 77 "C++ compiler cannot create executables
  3127. See \`config.log' for more details" "$LINENO" 5 ; }
  3128. else
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3130. $as_echo "yes" >&6; }
  3131. fi
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3133. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3135. $as_echo "$ac_file" >&6; }
  3136. ac_exeext=$ac_cv_exeext
  3137.  
  3138. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3139. ac_clean_files=$ac_clean_files_save
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3141. $as_echo_n "checking for suffix of executables... " >&6; }
  3142. if { { ac_try="$ac_link"
  3143. case "(($ac_try" in
  3144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3145. *) ac_try_echo=$ac_try;;
  3146. esac
  3147. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3148. $as_echo "$ac_try_echo"; } >&5
  3149. (eval "$ac_link") 2>&5
  3150. ac_status=$?
  3151. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3152. test $ac_status = 0; }; then :
  3153. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3154. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3155. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3156. # `rm'.
  3157. for ac_file in conftest.exe conftest conftest.*; do
  3158. test -f "$ac_file" || continue
  3159. case $ac_file in
  3160. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3161. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3162. break;;
  3163. * ) break;;
  3164. esac
  3165. done
  3166. else
  3167. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3168. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3169. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3170. See \`config.log' for more details" "$LINENO" 5 ; }
  3171. fi
  3172. rm -f conftest conftest$ac_cv_exeext
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3174. $as_echo "$ac_cv_exeext" >&6; }
  3175.  
  3176. rm -f conftest.$ac_ext
  3177. EXEEXT=$ac_cv_exeext
  3178. ac_exeext=$EXEEXT
  3179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3180. /* end confdefs.h. */
  3181. #include <stdio.h>
  3182. int
  3183. main ()
  3184. {
  3185. FILE *f = fopen ("conftest.out", "w");
  3186. return ferror (f) || fclose (f) != 0;
  3187.  
  3188. ;
  3189. return 0;
  3190. }
  3191. _ACEOF
  3192. ac_clean_files="$ac_clean_files conftest.out"
  3193. # Check that the compiler produces executables we can run. If not, either
  3194. # the compiler is broken, or we cross compile.
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3196. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3197. if test "$cross_compiling" != yes; then
  3198. { { ac_try="$ac_link"
  3199. case "(($ac_try" in
  3200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3201. *) ac_try_echo=$ac_try;;
  3202. esac
  3203. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3204. $as_echo "$ac_try_echo"; } >&5
  3205. (eval "$ac_link") 2>&5
  3206. ac_status=$?
  3207. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3208. test $ac_status = 0; }
  3209. if { ac_try='./conftest$ac_cv_exeext'
  3210. { { case "(($ac_try" in
  3211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3212. *) ac_try_echo=$ac_try;;
  3213. esac
  3214. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3215. $as_echo "$ac_try_echo"; } >&5
  3216. (eval "$ac_try") 2>&5
  3217. ac_status=$?
  3218. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3219. test $ac_status = 0; }; }; then
  3220. cross_compiling=no
  3221. else
  3222. if test "$cross_compiling" = maybe; then
  3223. cross_compiling=yes
  3224. else
  3225. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3226. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3227. as_fn_error $? "cannot run C++ compiled programs.
  3228. If you meant to cross compile, use \`--host'.
  3229. See \`config.log' for more details" "$LINENO" 5 ; }
  3230. fi
  3231. fi
  3232. fi
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3234. $as_echo "$cross_compiling" >&6; }
  3235.  
  3236. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3237. ac_clean_files=$ac_clean_files_save
  3238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3239. $as_echo_n "checking for suffix of object files... " >&6; }
  3240. if test "${ac_cv_objext+set}" = set; then :
  3241. $as_echo_n "(cached) " >&6
  3242. else
  3243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3244. /* end confdefs.h. */
  3245.  
  3246. int
  3247. main ()
  3248. {
  3249.  
  3250. ;
  3251. return 0;
  3252. }
  3253. _ACEOF
  3254. rm -f conftest.o conftest.obj
  3255. if { { ac_try="$ac_compile"
  3256. case "(($ac_try" in
  3257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3258. *) ac_try_echo=$ac_try;;
  3259. esac
  3260. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3261. $as_echo "$ac_try_echo"; } >&5
  3262. (eval "$ac_compile") 2>&5
  3263. ac_status=$?
  3264. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3265. test $ac_status = 0; }; then :
  3266. for ac_file in conftest.o conftest.obj conftest.*; do
  3267. test -f "$ac_file" || continue;
  3268. case $ac_file in
  3269. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3270. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3271. break;;
  3272. esac
  3273. done
  3274. else
  3275. $as_echo "$as_me: failed program was:" >&5
  3276. sed 's/^/| /' conftest.$ac_ext >&5
  3277.  
  3278. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3279. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3280. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3281. See \`config.log' for more details" "$LINENO" 5 ; }
  3282. fi
  3283. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3284. fi
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3286. $as_echo "$ac_cv_objext" >&6; }
  3287. OBJEXT=$ac_cv_objext
  3288. ac_objext=$OBJEXT
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3290. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3291. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3292. $as_echo_n "(cached) " >&6
  3293. else
  3294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3295. /* end confdefs.h. */
  3296.  
  3297. int
  3298. main ()
  3299. {
  3300. #ifndef __GNUC__
  3301. choke me
  3302. #endif
  3303.  
  3304. ;
  3305. return 0;
  3306. }
  3307. _ACEOF
  3308. if ac_fn_cxx_try_compile "$LINENO"; then :
  3309. ac_compiler_gnu=yes
  3310. else
  3311. ac_compiler_gnu=no
  3312. fi
  3313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3314. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3315.  
  3316. fi
  3317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3318. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3319. if test $ac_compiler_gnu = yes; then
  3320. GXX=yes
  3321. else
  3322. GXX=
  3323. fi
  3324. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3325. ac_save_CXXFLAGS=$CXXFLAGS
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3327. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3328. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3329. $as_echo_n "(cached) " >&6
  3330. else
  3331. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3332. ac_cxx_werror_flag=yes
  3333. ac_cv_prog_cxx_g=no
  3334. CXXFLAGS="-g"
  3335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3336. /* end confdefs.h. */
  3337.  
  3338. int
  3339. main ()
  3340. {
  3341.  
  3342. ;
  3343. return 0;
  3344. }
  3345. _ACEOF
  3346. if ac_fn_cxx_try_compile "$LINENO"; then :
  3347. ac_cv_prog_cxx_g=yes
  3348. else
  3349. CXXFLAGS=""
  3350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3351. /* end confdefs.h. */
  3352.  
  3353. int
  3354. main ()
  3355. {
  3356.  
  3357. ;
  3358. return 0;
  3359. }
  3360. _ACEOF
  3361. if ac_fn_cxx_try_compile "$LINENO"; then :
  3362.  
  3363. else
  3364. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3365. CXXFLAGS="-g"
  3366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3367. /* end confdefs.h. */
  3368.  
  3369. int
  3370. main ()
  3371. {
  3372.  
  3373. ;
  3374. return 0;
  3375. }
  3376. _ACEOF
  3377. if ac_fn_cxx_try_compile "$LINENO"; then :
  3378. ac_cv_prog_cxx_g=yes
  3379. fi
  3380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3381. fi
  3382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3383. fi
  3384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3385. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3386. fi
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3388. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3389. if test "$ac_test_CXXFLAGS" = set; then
  3390. CXXFLAGS=$ac_save_CXXFLAGS
  3391. elif test $ac_cv_prog_cxx_g = yes; then
  3392. if test "$GXX" = yes; then
  3393. CXXFLAGS="-g -O2"
  3394. else
  3395. CXXFLAGS="-g"
  3396. fi
  3397. else
  3398. if test "$GXX" = yes; then
  3399. CXXFLAGS="-O2"
  3400. else
  3401. CXXFLAGS=
  3402. fi
  3403. fi
  3404. ac_ext=c
  3405. ac_cpp='$CPP $CPPFLAGS'
  3406. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3407. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3408. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3409. DEPDIR="${am__leading_dot}deps"
  3410.  
  3411. ac_config_commands="$ac_config_commands depfiles"
  3412.  
  3413.  
  3414. am_make=${MAKE-make}
  3415. cat > confinc << 'END'
  3416. am__doit:
  3417. @echo this is the am__doit target
  3418. .PHONY: am__doit
  3419. END
  3420. # If we don't find an include directive, just comment out the code.
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3422. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3423. am__include="#"
  3424. am__quote=
  3425. _am_result=none
  3426. # First try GNU make style include.
  3427. echo "include confinc" > confmf
  3428. # Ignore all kinds of additional output from `make'.
  3429. case `$am_make -s -f confmf 2> /dev/null` in #(
  3430. *the\ am__doit\ target*)
  3431. am__include=include
  3432. am__quote=
  3433. _am_result=GNU
  3434. ;;
  3435. esac
  3436. # Now try BSD make style include.
  3437. if test "$am__include" = "#"; then
  3438. echo '.include "confinc"' > confmf
  3439. case `$am_make -s -f confmf 2> /dev/null` in #(
  3440. *the\ am__doit\ target*)
  3441. am__include=.include
  3442. am__quote="\""
  3443. _am_result=BSD
  3444. ;;
  3445. esac
  3446. fi
  3447.  
  3448.  
  3449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3450. $as_echo "$_am_result" >&6; }
  3451. rm -f confinc confmf
  3452.  
  3453. # Check whether --enable-dependency-tracking was given.
  3454. if test "${enable_dependency_tracking+set}" = set; then :
  3455. enableval=$enable_dependency_tracking;
  3456. fi
  3457.  
  3458. if test "x$enable_dependency_tracking" != xno; then
  3459. am_depcomp="$ac_aux_dir/depcomp"
  3460. AMDEPBACKSLASH='\'
  3461. fi
  3462. if test "x$enable_dependency_tracking" != xno; then
  3463. AMDEP_TRUE=
  3464. AMDEP_FALSE='#'
  3465. else
  3466. AMDEP_TRUE='#'
  3467. AMDEP_FALSE=
  3468. fi
  3469.  
  3470.  
  3471.  
  3472. depcc="$CXX" am_compiler_list=
  3473.  
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3475. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3476. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3477. $as_echo_n "(cached) " >&6
  3478. else
  3479. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3480. # We make a subdir and do the tests there. Otherwise we can end up
  3481. # making bogus files that we don't know about and never remove. For
  3482. # instance it was reported that on HP-UX the gcc test will end up
  3483. # making a dummy file named `D' -- because `-MD' means `put the output
  3484. # in D'.
  3485. mkdir conftest.dir
  3486. # Copy depcomp to subdir because otherwise we won't find it if we're
  3487. # using a relative directory.
  3488. cp "$am_depcomp" conftest.dir
  3489. cd conftest.dir
  3490. # We will build objects and dependencies in a subdirectory because
  3491. # it helps to detect inapplicable dependency modes. For instance
  3492. # both Tru64's cc and ICC support -MD to output dependencies as a
  3493. # side effect of compilation, but ICC will put the dependencies in
  3494. # the current directory while Tru64 will put them in the object
  3495. # directory.
  3496. mkdir sub
  3497.  
  3498. am_cv_CXX_dependencies_compiler_type=none
  3499. if test "$am_compiler_list" = ""; then
  3500. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3501. fi
  3502. am__universal=false
  3503. case " $depcc " in #(
  3504. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3505. esac
  3506.  
  3507. for depmode in $am_compiler_list; do
  3508. # Setup a source with many dependencies, because some compilers
  3509. # like to wrap large dependency lists on column 80 (with \), and
  3510. # we should not choose a depcomp mode which is confused by this.
  3511. #
  3512. # We need to recreate these files for each test, as the compiler may
  3513. # overwrite some of them when testing with obscure command lines.
  3514. # This happens at least with the AIX C compiler.
  3515. : > sub/conftest.c
  3516. for i in 1 2 3 4 5 6; do
  3517. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3518. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3519. # Solaris 8's {/usr,}/bin/sh.
  3520. touch sub/conftst$i.h
  3521. done
  3522. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3523.  
  3524. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3525. # mode. It turns out that the SunPro C++ compiler does not properly
  3526. # handle `-M -o', and we need to detect this. Also, some Intel
  3527. # versions had trouble with output in subdirs
  3528. am__obj=sub/conftest.${OBJEXT-o}
  3529. am__minus_obj="-o $am__obj"
  3530. case $depmode in
  3531. gcc)
  3532. # This depmode causes a compiler race in universal mode.
  3533. test "$am__universal" = false || continue
  3534. ;;
  3535. nosideeffect)
  3536. # after this tag, mechanisms are not by side-effect, so they'll
  3537. # only be used when explicitly requested
  3538. if test "x$enable_dependency_tracking" = xyes; then
  3539. continue
  3540. else
  3541. break
  3542. fi
  3543. ;;
  3544. msvisualcpp | msvcmsys)
  3545. # This compiler won't grok `-c -o', but also, the minuso test has
  3546. # not run yet. These depmodes are late enough in the game, and
  3547. # so weak that their functioning should not be impacted.
  3548. am__obj=conftest.${OBJEXT-o}
  3549. am__minus_obj=
  3550. ;;
  3551. none) break ;;
  3552. esac
  3553. if depmode=$depmode \
  3554. source=sub/conftest.c object=$am__obj \
  3555. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3556. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3557. >/dev/null 2>conftest.err &&
  3558. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3559. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3560. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3561. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3562. # icc doesn't choke on unknown options, it will just issue warnings
  3563. # or remarks (even with -Werror). So we grep stderr for any message
  3564. # that says an option was ignored or not supported.
  3565. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3566. # icc: Command line warning: ignoring option '-M'; no argument required
  3567. # The diagnosis changed in icc 8.0:
  3568. # icc: Command line remark: option '-MP' not supported
  3569. if (grep 'ignoring option' conftest.err ||
  3570. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3571. am_cv_CXX_dependencies_compiler_type=$depmode
  3572. break
  3573. fi
  3574. fi
  3575. done
  3576.  
  3577. cd ..
  3578. rm -rf conftest.dir
  3579. else
  3580. am_cv_CXX_dependencies_compiler_type=none
  3581. fi
  3582.  
  3583. fi
  3584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3585. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3586. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3587.  
  3588. if
  3589. test "x$enable_dependency_tracking" != xno \
  3590. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3591. am__fastdepCXX_TRUE=
  3592. am__fastdepCXX_FALSE='#'
  3593. else
  3594. am__fastdepCXX_TRUE='#'
  3595. am__fastdepCXX_FALSE=
  3596. fi
  3597.  
  3598.  
  3599. ac_ext=cpp
  3600. ac_cpp='$CXXCPP $CPPFLAGS'
  3601. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3602. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3603. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3604.  
  3605.  
  3606. OPTIONAL_FLAGS="-D__WAR_SYSTEM__"
  3607.  
  3608. # Config for 32Bits
  3609. #DEBUG_FLAGS="-O0 -march=native -fomit-frame-pointer"
  3610. #DEBUG_FLAGS="-O3 -march=native -fomit-frame-pointer"
  3611. #DEBUG_FLAGS="-Ofast -march=native -fomit-frame-pointer"
  3612.  
  3613. # Config for 64Bits
  3614. #DEBUG_FLAGS="-O0 -march=core2 -fomit-frame-pointer"
  3615. DEBUG_FLAGS="-O3 -march=core2 -fomit-frame-pointer"
  3616. #DEBUG_FLAGS="-Ofast -march=core2 -fomit-frame-pointer"
  3617.  
  3618. # check if we want server diag enabled
  3619. serverDiag=no
  3620. # Check whether --enable-server-diag was given.
  3621. if test "${enable_server_diag+set}" = set; then :
  3622. enableval=$enable_server_diag; OPTIONAL_FLAGS="$OPTIONAL_FLAGS -D__ENABLE_SERVER_DIAGNOSTIC__"
  3623. serverDiag=yes
  3624.  
  3625. fi
  3626.  
  3627.  
  3628. # check if we want login server mode
  3629. if false; then
  3630. LOGIN_SERVER_TRUE=
  3631. LOGIN_SERVER_FALSE='#'
  3632. else
  3633. LOGIN_SERVER_TRUE='#'
  3634. LOGIN_SERVER_FALSE=
  3635. fi
  3636.  
  3637. loginServer=no
  3638. # Check whether --enable-login-server was given.
  3639. if test "${enable_login_server+set}" = set; then :
  3640. enableval=$enable_login_server; OPTIONAL_FLAGS="$OPTIONAL_FLAGS -D__LOGIN_SERVER__"
  3641. if true; then
  3642. LOGIN_SERVER_TRUE=
  3643. LOGIN_SERVER_FALSE='#'
  3644. else
  3645. LOGIN_SERVER_TRUE='#'
  3646. LOGIN_SERVER_FALSE=
  3647. fi
  3648.  
  3649. loginServer=yes
  3650.  
  3651. fi
  3652.  
  3653.  
  3654. # check if we want OTAdmin protocol
  3655. if false; then
  3656. OT_ADMIN_TRUE=
  3657. OT_ADMIN_FALSE='#'
  3658. else
  3659. OT_ADMIN_TRUE='#'
  3660. OT_ADMIN_FALSE=
  3661. fi
  3662.  
  3663. otAdmin=no
  3664. # Check whether --enable-ot-admin was given.
  3665. if test "${enable_ot_admin+set}" = set; then :
  3666. enableval=$enable_ot_admin; OPTIONAL_FLAGS="$OPTIONAL_FLAGS -D__OTADMIN__"
  3667. if true; then
  3668. OT_ADMIN_TRUE=
  3669. OT_ADMIN_FALSE='#'
  3670. else
  3671. OT_ADMIN_TRUE='#'
  3672. OT_ADMIN_FALSE=
  3673. fi
  3674.  
  3675. otAdmin=yes
  3676.  
  3677. fi
  3678.  
  3679.  
  3680. # check if we want otserv allocator enabled
  3681. otservAllocator=no
  3682. # Check whether --enable-otserv-allocator was given.
  3683. if test "${enable_otserv_allocator+set}" = set; then :
  3684. enableval=$enable_otserv_allocator; OPTIONAL_FLAGS="$OPTIONAL_FLAGS -D__OTSERV_ALLOCATOR__"
  3685. otservAllocator=yes
  3686.  
  3687. fi
  3688.  
  3689.  
  3690. # check if we want homedir conf enabled
  3691. homedirConf=no
  3692. # Check whether --enable-homedir-conf was given.
  3693. if test "${enable_homedir_conf+set}" = set; then :
  3694. enableval=$enable_homedir_conf; OPTIONAL_FLAGS="$OPTIONAL_FLAGS -D__HOMEDIR_CONF__"
  3695. homedirConf=yes
  3696.  
  3697. fi
  3698.  
  3699.  
  3700. # check do we want to allow running on root user
  3701. rootPermission=no
  3702. # Check whether --enable-root-permission was given.
  3703. if test "${enable_root_permission+set}" = set; then :
  3704. enableval=$enable_root_permission; OPTIONAL_FLAGS="$OPTIONAL_FLAGS -D__ROOT_PERMISSION__"
  3705. rootPermission=yes
  3706.  
  3707. fi
  3708.  
  3709.  
  3710. # check if we want to use luajit instead of lua
  3711. luaJIT=no
  3712. # Check whether --enable-luajit was given.
  3713. if test "${enable_luajit+set}" = set; then :
  3714. enableval=$enable_luajit; OPTIONAL_FLAGS="$OPTIONAL_FLAGS -D__LUAJIT__"
  3715. luaJIT=yes
  3716.  
  3717. fi
  3718.  
  3719.  
  3720. # check if we want to cache ground items
  3721. groundCache=no
  3722. # Check whether --enable-groundcache was given.
  3723. if test "${enable_groundcache+set}" = set; then :
  3724. enableval=$enable_groundcache; OPTIONAL_FLAGS="$OPTIONAL_FLAGS -D__GROUND_CACHE__"
  3725. groundCache=yes
  3726.  
  3727. fi
  3728.  
  3729.  
  3730. # check if we want a debug build
  3731. debugBuild=no
  3732. # Check whether --enable-debug was given.
  3733. if test "${enable_debug+set}" = set; then :
  3734. enableval=$enable_debug; DEBUG_FLAGS="-D__DEBUG__ -D__DEBUG_MOVESYS__ -D__DEBUG_CHAT__ -D__DEBUG_HOUSES__ -D__DEBUG_LUASCRIPTS__ -D__DEBUG_MAILBOX__ -D__DEBUG_NET__ -D__DEBUG_NET_DETAIL__ -D__DEBUG_RAID__ -D__DEBUG_SCHEDULER__ -D__DEBUG_SPAWN__ -D__SQL_QUERY_DEBUG__ -O0 -g3"
  3735. debugBuild=yes
  3736.  
  3737. fi
  3738.  
  3739.  
  3740.  
  3741. if false; then
  3742. USE_MYSQL_TRUE=
  3743. USE_MYSQL_FALSE='#'
  3744. else
  3745. USE_MYSQL_TRUE='#'
  3746. USE_MYSQL_FALSE=
  3747. fi
  3748.  
  3749. useMySQL=no
  3750. if false; then
  3751. USE_MYSQLPP_TRUE=
  3752. USE_MYSQLPP_FALSE='#'
  3753. else
  3754. USE_MYSQLPP_TRUE='#'
  3755. USE_MYSQLPP_FALSE=
  3756. fi
  3757.  
  3758. useMySQLpp=no
  3759. if false; then
  3760. USE_PGSQL_TRUE=
  3761. USE_PGSQL_FALSE='#'
  3762. else
  3763. USE_PGSQL_TRUE='#'
  3764. USE_PGSQL_FALSE=
  3765. fi
  3766.  
  3767. usePostgreSQL=no
  3768. if false; then
  3769. USE_SQLITE_TRUE=
  3770. USE_SQLITE_FALSE='#'
  3771. else
  3772. USE_SQLITE_TRUE='#'
  3773. USE_SQLITE_FALSE=
  3774. fi
  3775.  
  3776. useSQLite=no
  3777.  
  3778. # check if we want mysql enabled
  3779. # Check whether --enable-mysql was given.
  3780. if test "${enable_mysql+set}" = set; then :
  3781. enableval=$enable_mysql;
  3782. if true; then
  3783. USE_MYSQL_TRUE=
  3784. USE_MYSQL_FALSE='#'
  3785. else
  3786. USE_MYSQL_TRUE='#'
  3787. USE_MYSQL_FALSE=
  3788. fi
  3789.  
  3790. MYSQL_FLAGS=-D__USE_MYSQL__
  3791.  
  3792. useMySQL=yes
  3793.  
  3794. fi
  3795.  
  3796.  
  3797. # check if we want mysql++ enabled
  3798. # Check whether --enable-mysqlpp was given.
  3799. if test "${enable_mysqlpp+set}" = set; then :
  3800. enableval=$enable_mysqlpp;
  3801. if true; then
  3802. USE_MYSQLPP_TRUE=
  3803. USE_MYSQLPP_FALSE='#'
  3804. else
  3805. USE_MYSQLPP_TRUE='#'
  3806. USE_MYSQLPP_FALSE=
  3807. fi
  3808.  
  3809. MYSQLPP_FLAGS=-D__USE_MYSQLPP__
  3810.  
  3811. useMySQLpp=yes
  3812.  
  3813. fi
  3814.  
  3815.  
  3816. # check if we want postgresql enabled
  3817. # Check whether --enable-pgsql was given.
  3818. if test "${enable_pgsql+set}" = set; then :
  3819. enableval=$enable_pgsql;
  3820. if true; then
  3821. USE_PGSQL_TRUE=
  3822. USE_PGSQL_FALSE='#'
  3823. else
  3824. USE_PGSQL_TRUE='#'
  3825. USE_PGSQL_FALSE=
  3826. fi
  3827.  
  3828. PGSQL_FLAGS="-D__USE_PGSQL__ -I`pg_config --includedir`"
  3829.  
  3830. usePostgreSQL=yes
  3831.  
  3832. fi
  3833.  
  3834.  
  3835. # check if we want sqlite enabled
  3836. # Check whether --enable-sqlite was given.
  3837. if test "${enable_sqlite+set}" = set; then :
  3838. enableval=$enable_sqlite;
  3839. if true; then
  3840. USE_SQLITE_TRUE=
  3841. USE_SQLITE_FALSE='#'
  3842. else
  3843. USE_SQLITE_TRUE='#'
  3844. USE_SQLITE_FALSE=
  3845. fi
  3846.  
  3847. SQLITE_FLAGS=-D__USE_SQLITE__
  3848.  
  3849. useSQLite=yes
  3850.  
  3851. fi
  3852.  
  3853.  
  3854. # check if we want the profiler
  3855. # Check whether --enable-profiler was given.
  3856. if test "${enable_profiler+set}" = set; then :
  3857. enableval=$enable_profiler; PROFILER_FLAGS=-pg
  3858. fi
  3859.  
  3860.  
  3861.  
  3862. # Checks for header files.
  3863.  
  3864. ac_ext=cpp
  3865. ac_cpp='$CXXCPP $CPPFLAGS'
  3866. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3867. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3868. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  3870. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  3871. if test -z "$CXXCPP"; then
  3872. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  3873. $as_echo_n "(cached) " >&6
  3874. else
  3875. # Double quotes because CXXCPP needs to be expanded
  3876. for CXXCPP in "$CXX -E" "/lib/cpp"
  3877. do
  3878. ac_preproc_ok=false
  3879. for ac_cxx_preproc_warn_flag in '' yes
  3880. do
  3881. # Use a header file that comes with gcc, so configuring glibc
  3882. # with a fresh cross-compiler works.
  3883. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3884. # <limits.h> exists even on freestanding compilers.
  3885. # On the NeXT, cc -E runs the code through the compiler's parser,
  3886. # not just through cpp. "Syntax error" is here to catch this case.
  3887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3888. /* end confdefs.h. */
  3889. #ifdef __STDC__
  3890. # include <limits.h>
  3891. #else
  3892. # include <assert.h>
  3893. #endif
  3894. Syntax error
  3895. _ACEOF
  3896. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3897.  
  3898. else
  3899. # Broken: fails on valid input.
  3900. continue
  3901. fi
  3902. rm -f conftest.err conftest.i conftest.$ac_ext
  3903.  
  3904. # OK, works on sane cases. Now check whether nonexistent headers
  3905. # can be detected and how.
  3906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3907. /* end confdefs.h. */
  3908. #include <ac_nonexistent.h>
  3909. _ACEOF
  3910. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3911. # Broken: success on invalid input.
  3912. continue
  3913. else
  3914. # Passes both tests.
  3915. ac_preproc_ok=:
  3916. break
  3917. fi
  3918. rm -f conftest.err conftest.i conftest.$ac_ext
  3919.  
  3920. done
  3921. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3922. rm -f conftest.i conftest.err conftest.$ac_ext
  3923. if $ac_preproc_ok; then :
  3924. break
  3925. fi
  3926.  
  3927. done
  3928. ac_cv_prog_CXXCPP=$CXXCPP
  3929.  
  3930. fi
  3931. CXXCPP=$ac_cv_prog_CXXCPP
  3932. else
  3933. ac_cv_prog_CXXCPP=$CXXCPP
  3934. fi
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  3936. $as_echo "$CXXCPP" >&6; }
  3937. ac_preproc_ok=false
  3938. for ac_cxx_preproc_warn_flag in '' yes
  3939. do
  3940. # Use a header file that comes with gcc, so configuring glibc
  3941. # with a fresh cross-compiler works.
  3942. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3943. # <limits.h> exists even on freestanding compilers.
  3944. # On the NeXT, cc -E runs the code through the compiler's parser,
  3945. # not just through cpp. "Syntax error" is here to catch this case.
  3946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3947. /* end confdefs.h. */
  3948. #ifdef __STDC__
  3949. # include <limits.h>
  3950. #else
  3951. # include <assert.h>
  3952. #endif
  3953. Syntax error
  3954. _ACEOF
  3955. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3956.  
  3957. else
  3958. # Broken: fails on valid input.
  3959. continue
  3960. fi
  3961. rm -f conftest.err conftest.i conftest.$ac_ext
  3962.  
  3963. # OK, works on sane cases. Now check whether nonexistent headers
  3964. # can be detected and how.
  3965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3966. /* end confdefs.h. */
  3967. #include <ac_nonexistent.h>
  3968. _ACEOF
  3969. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3970. # Broken: success on invalid input.
  3971. continue
  3972. else
  3973. # Passes both tests.
  3974. ac_preproc_ok=:
  3975. break
  3976. fi
  3977. rm -f conftest.err conftest.i conftest.$ac_ext
  3978.  
  3979. done
  3980. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3981. rm -f conftest.i conftest.err conftest.$ac_ext
  3982. if $ac_preproc_ok; then :
  3983.  
  3984. else
  3985. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3986. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3987. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  3988. See \`config.log' for more details" "$LINENO" 5 ; }
  3989. fi
  3990.  
  3991. ac_ext=cpp
  3992. ac_cpp='$CXXCPP $CPPFLAGS'
  3993. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3994. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3995. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3996.  
  3997.  
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3999. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4000. if test "${ac_cv_path_GREP+set}" = set; then :
  4001. $as_echo_n "(cached) " >&6
  4002. else
  4003. if test -z "$GREP"; then
  4004. ac_path_GREP_found=false
  4005. # Loop through the user's path and test for each of PROGNAME-LIST
  4006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4007. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4008. do
  4009. IFS=$as_save_IFS
  4010. test -z "$as_dir" && as_dir=.
  4011. for ac_prog in grep ggrep; do
  4012. for ac_exec_ext in '' $ac_executable_extensions; do
  4013. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4014. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4015. # Check for GNU ac_path_GREP and select it if it is found.
  4016. # Check for GNU $ac_path_GREP
  4017. case `"$ac_path_GREP" --version 2>&1` in
  4018. *GNU*)
  4019. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4020. *)
  4021. ac_count=0
  4022. $as_echo_n 0123456789 >"conftest.in"
  4023. while :
  4024. do
  4025. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4026. mv "conftest.tmp" "conftest.in"
  4027. cp "conftest.in" "conftest.nl"
  4028. $as_echo 'GREP' >> "conftest.nl"
  4029. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4030. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4031. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4032. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4033. # Best one so far, save it but keep looking for a better one
  4034. ac_cv_path_GREP="$ac_path_GREP"
  4035. ac_path_GREP_max=$ac_count
  4036. fi
  4037. # 10*(2^10) chars as input seems more than enough
  4038. test $ac_count -gt 10 && break
  4039. done
  4040. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4041. esac
  4042.  
  4043. $ac_path_GREP_found && break 3
  4044. done
  4045. done
  4046. done
  4047. IFS=$as_save_IFS
  4048. if test -z "$ac_cv_path_GREP"; then
  4049. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4050. fi
  4051. else
  4052. ac_cv_path_GREP=$GREP
  4053. fi
  4054.  
  4055. fi
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4057. $as_echo "$ac_cv_path_GREP" >&6; }
  4058. GREP="$ac_cv_path_GREP"
  4059.  
  4060.  
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4062. $as_echo_n "checking for egrep... " >&6; }
  4063. if test "${ac_cv_path_EGREP+set}" = set; then :
  4064. $as_echo_n "(cached) " >&6
  4065. else
  4066. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4067. then ac_cv_path_EGREP="$GREP -E"
  4068. else
  4069. if test -z "$EGREP"; then
  4070. ac_path_EGREP_found=false
  4071. # Loop through the user's path and test for each of PROGNAME-LIST
  4072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4073. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4074. do
  4075. IFS=$as_save_IFS
  4076. test -z "$as_dir" && as_dir=.
  4077. for ac_prog in egrep; do
  4078. for ac_exec_ext in '' $ac_executable_extensions; do
  4079. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4080. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4081. # Check for GNU ac_path_EGREP and select it if it is found.
  4082. # Check for GNU $ac_path_EGREP
  4083. case `"$ac_path_EGREP" --version 2>&1` in
  4084. *GNU*)
  4085. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4086. *)
  4087. ac_count=0
  4088. $as_echo_n 0123456789 >"conftest.in"
  4089. while :
  4090. do
  4091. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4092. mv "conftest.tmp" "conftest.in"
  4093. cp "conftest.in" "conftest.nl"
  4094. $as_echo 'EGREP' >> "conftest.nl"
  4095. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4096. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4097. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4098. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4099. # Best one so far, save it but keep looking for a better one
  4100. ac_cv_path_EGREP="$ac_path_EGREP"
  4101. ac_path_EGREP_max=$ac_count
  4102. fi
  4103. # 10*(2^10) chars as input seems more than enough
  4104. test $ac_count -gt 10 && break
  4105. done
  4106. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4107. esac
  4108.  
  4109. $ac_path_EGREP_found && break 3
  4110. done
  4111. done
  4112. done
  4113. IFS=$as_save_IFS
  4114. if test -z "$ac_cv_path_EGREP"; then
  4115. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4116. fi
  4117. else
  4118. ac_cv_path_EGREP=$EGREP
  4119. fi
  4120.  
  4121. fi
  4122. fi
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4124. $as_echo "$ac_cv_path_EGREP" >&6; }
  4125. EGREP="$ac_cv_path_EGREP"
  4126.  
  4127.  
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4129. $as_echo_n "checking for ANSI C header files... " >&6; }
  4130. if test "${ac_cv_header_stdc+set}" = set; then :
  4131. $as_echo_n "(cached) " >&6
  4132. else
  4133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4134. /* end confdefs.h. */
  4135. #include <stdlib.h>
  4136. #include <stdarg.h>
  4137. #include <string.h>
  4138. #include <float.h>
  4139.  
  4140. int
  4141. main ()
  4142. {
  4143.  
  4144. ;
  4145. return 0;
  4146. }
  4147. _ACEOF
  4148. if ac_fn_cxx_try_compile "$LINENO"; then :
  4149. ac_cv_header_stdc=yes
  4150. else
  4151. ac_cv_header_stdc=no
  4152. fi
  4153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4154.  
  4155. if test $ac_cv_header_stdc = yes; then
  4156. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4158. /* end confdefs.h. */
  4159. #include <string.h>
  4160.  
  4161. _ACEOF
  4162. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4163. $EGREP "memchr" >/dev/null 2>&1; then :
  4164.  
  4165. else
  4166. ac_cv_header_stdc=no
  4167. fi
  4168. rm -f conftest*
  4169.  
  4170. fi
  4171.  
  4172. if test $ac_cv_header_stdc = yes; then
  4173. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4175. /* end confdefs.h. */
  4176. #include <stdlib.h>
  4177.  
  4178. _ACEOF
  4179. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4180. $EGREP "free" >/dev/null 2>&1; then :
  4181.  
  4182. else
  4183. ac_cv_header_stdc=no
  4184. fi
  4185. rm -f conftest*
  4186.  
  4187. fi
  4188.  
  4189. if test $ac_cv_header_stdc = yes; then
  4190. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4191. if test "$cross_compiling" = yes; then :
  4192. :
  4193. else
  4194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4195. /* end confdefs.h. */
  4196. #include <ctype.h>
  4197. #include <stdlib.h>
  4198. #if ((' ' & 0x0FF) == 0x020)
  4199. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4200. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4201. #else
  4202. # define ISLOWER(c) \
  4203. (('a' <= (c) && (c) <= 'i') \
  4204. || ('j' <= (c) && (c) <= 'r') \
  4205. || ('s' <= (c) && (c) <= 'z'))
  4206. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4207. #endif
  4208.  
  4209. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4210. int
  4211. main ()
  4212. {
  4213. int i;
  4214. for (i = 0; i < 256; i++)
  4215. if (XOR (islower (i), ISLOWER (i))
  4216. || toupper (i) != TOUPPER (i))
  4217. return 2;
  4218. return 0;
  4219. }
  4220. _ACEOF
  4221. if ac_fn_cxx_try_run "$LINENO"; then :
  4222.  
  4223. else
  4224. ac_cv_header_stdc=no
  4225. fi
  4226. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4227. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4228. fi
  4229.  
  4230. fi
  4231. fi
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4233. $as_echo "$ac_cv_header_stdc" >&6; }
  4234. if test $ac_cv_header_stdc = yes; then
  4235.  
  4236. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4237.  
  4238. fi
  4239.  
  4240. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4241. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4242. inttypes.h stdint.h unistd.h
  4243. do :
  4244. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4245. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4246. "
  4247. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4248. cat >>confdefs.h <<_ACEOF
  4249. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4250. _ACEOF
  4251.  
  4252. fi
  4253.  
  4254. done
  4255.  
  4256.  
  4257. for ac_header in arpa/inet.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h sys/socket.h sys/timeb.h
  4258. do :
  4259. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4260. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4261. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4262. cat >>confdefs.h <<_ACEOF
  4263. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4264. _ACEOF
  4265.  
  4266. fi
  4267.  
  4268. done
  4269.  
  4270.  
  4271. # Checks for typedefs, structures, and compiler characteristics.
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  4273. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  4274. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  4275. $as_echo_n "(cached) " >&6
  4276. else
  4277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4278. /* end confdefs.h. */
  4279.  
  4280. #include <stdbool.h>
  4281. #ifndef bool
  4282. "error: bool is not defined"
  4283. #endif
  4284. #ifndef false
  4285. "error: false is not defined"
  4286. #endif
  4287. #if false
  4288. "error: false is not 0"
  4289. #endif
  4290. #ifndef true
  4291. "error: true is not defined"
  4292. #endif
  4293. #if true != 1
  4294. "error: true is not 1"
  4295. #endif
  4296. #ifndef __bool_true_false_are_defined
  4297. "error: __bool_true_false_are_defined is not defined"
  4298. #endif
  4299.  
  4300. struct s { _Bool s: 1; _Bool t; } s;
  4301.  
  4302. char a[true == 1 ? 1 : -1];
  4303. char b[false == 0 ? 1 : -1];
  4304. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  4305. char d[(bool) 0.5 == true ? 1 : -1];
  4306. bool e = &s;
  4307. char f[(_Bool) 0.0 == false ? 1 : -1];
  4308. char g[true];
  4309. char h[sizeof (_Bool)];
  4310. char i[sizeof s.t];
  4311. enum { j = false, k = true, l = false * true, m = true * 256 };
  4312. /* The following fails for
  4313. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  4314. _Bool n[m];
  4315. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  4316. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  4317. # if defined __xlc__ || defined __GNUC__
  4318. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  4319. reported by James Lemley on 2005-10-05; see
  4320. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  4321. This test is not quite right, since xlc is allowed to
  4322. reject this program, as the initializer for xlcbug is
  4323. not one of the forms that C requires support for.
  4324. However, doing the test right would require a runtime
  4325. test, and that would make cross-compilation harder.
  4326. Let us hope that IBM fixes the xlc bug, and also adds
  4327. support for this kind of constant expression. In the
  4328. meantime, this test will reject xlc, which is OK, since
  4329. our stdbool.h substitute should suffice. We also test
  4330. this with GCC, where it should work, to detect more
  4331. quickly whether someone messes up the test in the
  4332. future. */
  4333. char digs[] = "0123456789";
  4334. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  4335. # endif
  4336. /* Catch a bug in an HP-UX C compiler. See
  4337. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  4338. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  4339. */
  4340. _Bool q = true;
  4341. _Bool *pq = &q;
  4342.  
  4343. int
  4344. main ()
  4345. {
  4346.  
  4347. *pq |= q;
  4348. *pq |= ! q;
  4349. /* Refer to every declared value, to avoid compiler optimizations. */
  4350. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  4351. + !m + !n + !o + !p + !q + !pq);
  4352.  
  4353. ;
  4354. return 0;
  4355. }
  4356. _ACEOF
  4357. if ac_fn_cxx_try_compile "$LINENO"; then :
  4358. ac_cv_header_stdbool_h=yes
  4359. else
  4360. ac_cv_header_stdbool_h=no
  4361. fi
  4362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4363. fi
  4364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  4365. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  4366. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  4367. if test "x$ac_cv_type__Bool" = x""yes; then :
  4368.  
  4369. cat >>confdefs.h <<_ACEOF
  4370. #define HAVE__BOOL 1
  4371. _ACEOF
  4372.  
  4373.  
  4374. fi
  4375.  
  4376. if test $ac_cv_header_stdbool_h = yes; then
  4377.  
  4378. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  4379.  
  4380. fi
  4381.  
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4383. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4384. if test "${ac_cv_c_const+set}" = set; then :
  4385. $as_echo_n "(cached) " >&6
  4386. else
  4387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4388. /* end confdefs.h. */
  4389.  
  4390. int
  4391. main ()
  4392. {
  4393. /* FIXME: Include the comments suggested by Paul. */
  4394. #ifndef __cplusplus
  4395. /* Ultrix mips cc rejects this. */
  4396. typedef int charset[2];
  4397. const charset cs;
  4398. /* SunOS 4.1.1 cc rejects this. */
  4399. char const *const *pcpcc;
  4400. char **ppc;
  4401. /* NEC SVR4.0.2 mips cc rejects this. */
  4402. struct point {int x, y;};
  4403. static struct point const zero = {0,0};
  4404. /* AIX XL C 1.02.0.0 rejects this.
  4405. It does not let you subtract one const X* pointer from another in
  4406. an arm of an if-expression whose if-part is not a constant
  4407. expression */
  4408. const char *g = "string";
  4409. pcpcc = &g + (g ? g-g : 0);
  4410. /* HPUX 7.0 cc rejects these. */
  4411. ++pcpcc;
  4412. ppc = (char**) pcpcc;
  4413. pcpcc = (char const *const *) ppc;
  4414. { /* SCO 3.2v4 cc rejects this. */
  4415. char *t;
  4416. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4417.  
  4418. *t++ = 0;
  4419. if (s) return 0;
  4420. }
  4421. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4422. int x[] = {25, 17};
  4423. const int *foo = &x[0];
  4424. ++foo;
  4425. }
  4426. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4427. typedef const int *iptr;
  4428. iptr p = 0;
  4429. ++p;
  4430. }
  4431. { /* AIX XL C 1.02.0.0 rejects this saying
  4432. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4433. struct s { int j; const int *ap[3]; };
  4434. struct s *b; b->j = 5;
  4435. }
  4436. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4437. const int foo = 10;
  4438. if (!foo) return 0;
  4439. }
  4440. return !cs[0] && !zero.x;
  4441. #endif
  4442.  
  4443. ;
  4444. return 0;
  4445. }
  4446. _ACEOF
  4447. if ac_fn_cxx_try_compile "$LINENO"; then :
  4448. ac_cv_c_const=yes
  4449. else
  4450. ac_cv_c_const=no
  4451. fi
  4452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4453. fi
  4454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4455. $as_echo "$ac_cv_c_const" >&6; }
  4456. if test $ac_cv_c_const = no; then
  4457.  
  4458. $as_echo "#define const /**/" >>confdefs.h
  4459.  
  4460. fi
  4461.  
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4463. $as_echo_n "checking for inline... " >&6; }
  4464. if test "${ac_cv_c_inline+set}" = set; then :
  4465. $as_echo_n "(cached) " >&6
  4466. else
  4467. ac_cv_c_inline=no
  4468. for ac_kw in inline __inline__ __inline; do
  4469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4470. /* end confdefs.h. */
  4471. #ifndef __cplusplus
  4472. typedef int foo_t;
  4473. static $ac_kw foo_t static_foo () {return 0; }
  4474. $ac_kw foo_t foo () {return 0; }
  4475. #endif
  4476.  
  4477. _ACEOF
  4478. if ac_fn_cxx_try_compile "$LINENO"; then :
  4479. ac_cv_c_inline=$ac_kw
  4480. fi
  4481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4482. test "$ac_cv_c_inline" != no && break
  4483. done
  4484.  
  4485. fi
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4487. $as_echo "$ac_cv_c_inline" >&6; }
  4488.  
  4489. case $ac_cv_c_inline in
  4490. inline | yes) ;;
  4491. *)
  4492. case $ac_cv_c_inline in
  4493. no) ac_val=;;
  4494. *) ac_val=$ac_cv_c_inline;;
  4495. esac
  4496. cat >>confdefs.h <<_ACEOF
  4497. #ifndef __cplusplus
  4498. #define inline $ac_val
  4499. #endif
  4500. _ACEOF
  4501. ;;
  4502. esac
  4503.  
  4504. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  4505. case $ac_cv_c_int16_t in #(
  4506. no|yes) ;; #(
  4507. *)
  4508.  
  4509. cat >>confdefs.h <<_ACEOF
  4510. #define int16_t $ac_cv_c_int16_t
  4511. _ACEOF
  4512. ;;
  4513. esac
  4514.  
  4515. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  4516. case $ac_cv_c_int32_t in #(
  4517. no|yes) ;; #(
  4518. *)
  4519.  
  4520. cat >>confdefs.h <<_ACEOF
  4521. #define int32_t $ac_cv_c_int32_t
  4522. _ACEOF
  4523. ;;
  4524. esac
  4525.  
  4526. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  4527. case $ac_cv_c_int64_t in #(
  4528. no|yes) ;; #(
  4529. *)
  4530.  
  4531. cat >>confdefs.h <<_ACEOF
  4532. #define int64_t $ac_cv_c_int64_t
  4533. _ACEOF
  4534. ;;
  4535. esac
  4536.  
  4537. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4538. if test "x$ac_cv_type_size_t" = x""yes; then :
  4539.  
  4540. else
  4541.  
  4542. cat >>confdefs.h <<_ACEOF
  4543. #define size_t unsigned int
  4544. _ACEOF
  4545.  
  4546. fi
  4547.  
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  4549. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  4550. if test "${ac_cv_struct_tm+set}" = set; then :
  4551. $as_echo_n "(cached) " >&6
  4552. else
  4553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4554. /* end confdefs.h. */
  4555. #include <sys/types.h>
  4556. #include <time.h>
  4557.  
  4558. int
  4559. main ()
  4560. {
  4561. struct tm tm;
  4562. int *p = &tm.tm_sec;
  4563. return !p;
  4564. ;
  4565. return 0;
  4566. }
  4567. _ACEOF
  4568. if ac_fn_cxx_try_compile "$LINENO"; then :
  4569. ac_cv_struct_tm=time.h
  4570. else
  4571. ac_cv_struct_tm=sys/time.h
  4572. fi
  4573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4574. fi
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  4576. $as_echo "$ac_cv_struct_tm" >&6; }
  4577. if test $ac_cv_struct_tm = sys/time.h; then
  4578.  
  4579. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  4580.  
  4581. fi
  4582.  
  4583. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  4584. case $ac_cv_c_uint16_t in #(
  4585. no|yes) ;; #(
  4586. *)
  4587.  
  4588.  
  4589. cat >>confdefs.h <<_ACEOF
  4590. #define uint16_t $ac_cv_c_uint16_t
  4591. _ACEOF
  4592. ;;
  4593. esac
  4594.  
  4595. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  4596. case $ac_cv_c_uint32_t in #(
  4597. no|yes) ;; #(
  4598. *)
  4599.  
  4600. $as_echo "#define _UINT32_T 1" >>confdefs.h
  4601.  
  4602.  
  4603. cat >>confdefs.h <<_ACEOF
  4604. #define uint32_t $ac_cv_c_uint32_t
  4605. _ACEOF
  4606. ;;
  4607. esac
  4608.  
  4609. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  4610. case $ac_cv_c_uint64_t in #(
  4611. no|yes) ;; #(
  4612. *)
  4613.  
  4614. $as_echo "#define _UINT64_T 1" >>confdefs.h
  4615.  
  4616.  
  4617. cat >>confdefs.h <<_ACEOF
  4618. #define uint64_t $ac_cv_c_uint64_t
  4619. _ACEOF
  4620. ;;
  4621. esac
  4622.  
  4623. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  4624. case $ac_cv_c_uint8_t in #(
  4625. no|yes) ;; #(
  4626. *)
  4627.  
  4628. $as_echo "#define _UINT8_T 1" >>confdefs.h
  4629.  
  4630.  
  4631. cat >>confdefs.h <<_ACEOF
  4632. #define uint8_t $ac_cv_c_uint8_t
  4633. _ACEOF
  4634. ;;
  4635. esac
  4636.  
  4637. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  4638. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  4639.  
  4640. cat >>confdefs.h <<_ACEOF
  4641. #define HAVE_PTRDIFF_T 1
  4642. _ACEOF
  4643.  
  4644.  
  4645. fi
  4646.  
  4647.  
  4648. # Checks for library functions.
  4649. for ac_header in stdlib.h
  4650. do :
  4651. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  4652. if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  4653. cat >>confdefs.h <<_ACEOF
  4654. #define HAVE_STDLIB_H 1
  4655. _ACEOF
  4656.  
  4657. fi
  4658.  
  4659. done
  4660.  
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  4662. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  4663. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
  4664. $as_echo_n "(cached) " >&6
  4665. else
  4666. if test "$cross_compiling" = yes; then :
  4667. ac_cv_func_malloc_0_nonnull=no
  4668. else
  4669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4670. /* end confdefs.h. */
  4671. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  4672. # include <stdlib.h>
  4673. #else
  4674. char *malloc ();
  4675. #endif
  4676.  
  4677. int
  4678. main ()
  4679. {
  4680. return ! malloc (0);
  4681. ;
  4682. return 0;
  4683. }
  4684. _ACEOF
  4685. if ac_fn_cxx_try_run "$LINENO"; then :
  4686. ac_cv_func_malloc_0_nonnull=yes
  4687. else
  4688. ac_cv_func_malloc_0_nonnull=no
  4689. fi
  4690. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4691. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4692. fi
  4693.  
  4694. fi
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  4696. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  4697. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  4698.  
  4699. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  4700.  
  4701. else
  4702. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  4703.  
  4704. case " $LIBOBJS " in
  4705. *" malloc.$ac_objext "* ) ;;
  4706. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  4707. ;;
  4708. esac
  4709.  
  4710.  
  4711. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  4712.  
  4713. fi
  4714.  
  4715.  
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  4717. $as_echo_n "checking for working memcmp... " >&6; }
  4718. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  4719. $as_echo_n "(cached) " >&6
  4720. else
  4721. if test "$cross_compiling" = yes; then :
  4722. ac_cv_func_memcmp_working=no
  4723. else
  4724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4725. /* end confdefs.h. */
  4726. $ac_includes_default
  4727. int
  4728. main ()
  4729. {
  4730.  
  4731. /* Some versions of memcmp are not 8-bit clean. */
  4732. char c0 = '\100', c1 = '\200', c2 = '\201';
  4733. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  4734. return 1;
  4735.  
  4736. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  4737. or more and with at least one buffer not starting on a 4-byte boundary.
  4738. William Lewis provided this test program. */
  4739. {
  4740. char foo[21];
  4741. char bar[21];
  4742. int i;
  4743. for (i = 0; i < 4; i++)
  4744. {
  4745. char *a = foo + i;
  4746. char *b = bar + i;
  4747. strcpy (a, "--------01111111");
  4748. strcpy (b, "--------10000000");
  4749. if (memcmp (a, b, 16) >= 0)
  4750. return 1;
  4751. }
  4752. return 0;
  4753. }
  4754.  
  4755. ;
  4756. return 0;
  4757. }
  4758. _ACEOF
  4759. if ac_fn_cxx_try_run "$LINENO"; then :
  4760. ac_cv_func_memcmp_working=yes
  4761. else
  4762. ac_cv_func_memcmp_working=no
  4763. fi
  4764. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4765. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4766. fi
  4767.  
  4768. fi
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  4770. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  4771. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  4772. *" memcmp.$ac_objext "* ) ;;
  4773. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  4774. ;;
  4775. esac
  4776.  
  4777.  
  4778. for ac_header in stdlib.h
  4779. do :
  4780. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  4781. if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  4782. cat >>confdefs.h <<_ACEOF
  4783. #define HAVE_STDLIB_H 1
  4784. _ACEOF
  4785.  
  4786. fi
  4787.  
  4788. done
  4789.  
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  4791. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  4792. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
  4793. $as_echo_n "(cached) " >&6
  4794. else
  4795. if test "$cross_compiling" = yes; then :
  4796. ac_cv_func_realloc_0_nonnull=no
  4797. else
  4798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4799. /* end confdefs.h. */
  4800. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  4801. # include <stdlib.h>
  4802. #else
  4803. char *realloc ();
  4804. #endif
  4805.  
  4806. int
  4807. main ()
  4808. {
  4809. return ! realloc (0, 0);
  4810. ;
  4811. return 0;
  4812. }
  4813. _ACEOF
  4814. if ac_fn_cxx_try_run "$LINENO"; then :
  4815. ac_cv_func_realloc_0_nonnull=yes
  4816. else
  4817. ac_cv_func_realloc_0_nonnull=no
  4818. fi
  4819. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4820. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4821. fi
  4822.  
  4823. fi
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  4825. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  4826. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  4827.  
  4828. $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
  4829.  
  4830. else
  4831. $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
  4832.  
  4833. case " $LIBOBJS " in
  4834. *" realloc.$ac_objext "* ) ;;
  4835. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  4836. ;;
  4837. esac
  4838.  
  4839.  
  4840. $as_echo "#define realloc rpl_realloc" >>confdefs.h
  4841.  
  4842. fi
  4843.  
  4844.  
  4845. for ac_func in ceil floor ftime gethostbyname gethostname memset pow sqrt strcasecmp strncasecmp strstr strtol
  4846. do :
  4847. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4848. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4849. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4850. cat >>confdefs.h <<_ACEOF
  4851. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4852. _ACEOF
  4853.  
  4854. fi
  4855. done
  4856.  
  4857.  
  4858. # check for xml2
  4859.  
  4860.  
  4861. # Check whether --with-xml-prefix was given.
  4862. if test "${with_xml_prefix+set}" = set; then :
  4863. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4864. else
  4865. xml_config_prefix=""
  4866. fi
  4867.  
  4868.  
  4869. # Check whether --with-xml-exec-prefix was given.
  4870. if test "${with_xml_exec_prefix+set}" = set; then :
  4871. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4872. else
  4873. xml_config_exec_prefix=""
  4874. fi
  4875.  
  4876. # Check whether --enable-xmltest was given.
  4877. if test "${enable_xmltest+set}" = set; then :
  4878. enableval=$enable_xmltest;
  4879. else
  4880. enable_xmltest=yes
  4881. fi
  4882.  
  4883.  
  4884. if test x$xml_config_exec_prefix != x ; then
  4885. xml_config_args="$xml_config_args"
  4886. if test x${XML2_CONFIG+set} != xset ; then
  4887. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4888. fi
  4889. fi
  4890. if test x$xml_config_prefix != x ; then
  4891. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4892. if test x${XML2_CONFIG+set} != xset ; then
  4893. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4894. fi
  4895. fi
  4896.  
  4897. # Extract the first word of "xml2-config", so it can be a program name with args.
  4898. set dummy xml2-config; ac_word=$2
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4900. $as_echo_n "checking for $ac_word... " >&6; }
  4901. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  4902. $as_echo_n "(cached) " >&6
  4903. else
  4904. case $XML2_CONFIG in
  4905. [\\/]* | ?:[\\/]*)
  4906. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4907. ;;
  4908. *)
  4909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4910. for as_dir in $PATH
  4911. do
  4912. IFS=$as_save_IFS
  4913. test -z "$as_dir" && as_dir=.
  4914. for ac_exec_ext in '' $ac_executable_extensions; do
  4915. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4916. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4918. break 2
  4919. fi
  4920. done
  4921. done
  4922. IFS=$as_save_IFS
  4923.  
  4924. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4925. ;;
  4926. esac
  4927. fi
  4928. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4929. if test -n "$XML2_CONFIG"; then
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  4931. $as_echo "$XML2_CONFIG" >&6; }
  4932. else
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4934. $as_echo "no" >&6; }
  4935. fi
  4936.  
  4937.  
  4938. min_xml_version=2.6.5
  4939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  4940. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  4941. no_xml=""
  4942. if test "$XML2_CONFIG" = "no" ; then
  4943. no_xml=yes
  4944. else
  4945. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4946. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4947. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4948. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4949. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4950. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4951. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4952. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4953. if test "x$enable_xmltest" = "xyes" ; then
  4954. ac_save_CPPFLAGS="$CPPFLAGS"
  4955. ac_save_LIBS="$LIBS"
  4956. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4957. LIBS="$XML_LIBS $LIBS"
  4958. rm -f conf.xmltest
  4959. if test "$cross_compiling" = yes; then :
  4960. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4961. else
  4962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4963. /* end confdefs.h. */
  4964.  
  4965. #include <stdlib.h>
  4966. #include <stdio.h>
  4967. #include <string.h>
  4968. #include <libxml/xmlversion.h>
  4969.  
  4970. int
  4971. main()
  4972. {
  4973. int xml_major_version, xml_minor_version, xml_micro_version;
  4974. int major, minor, micro;
  4975. char *tmp_version;
  4976.  
  4977. system("touch conf.xmltest");
  4978.  
  4979. /* Capture xml2-config output via autoconf/configure variables */
  4980. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4981. tmp_version = (char *)strdup("$min_xml_version");
  4982. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4983. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4984. exit(1);
  4985. }
  4986. free(tmp_version);
  4987.  
  4988. /* Capture the version information from the header files */
  4989. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  4990. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  4991. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  4992. exit(1);
  4993. }
  4994. free(tmp_version);
  4995.  
  4996. /* Compare xml2-config output to the libxml headers */
  4997. if ((xml_major_version != $xml_config_major_version) ||
  4998. (xml_minor_version != $xml_config_minor_version) ||
  4999. (xml_micro_version != $xml_config_micro_version))
  5000. {
  5001. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5002. xml_major_version, xml_minor_version, xml_micro_version);
  5003. printf("*** xml2-config (version %d.%d.%d)\n",
  5004. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5005. return 1;
  5006. }
  5007. /* Compare the headers to the library to make sure we match */
  5008. /* Less than ideal -- doesn't provide us with return value feedback,
  5009. * only exits if there's a serious mismatch between header and library.
  5010. */
  5011. LIBXML_TEST_VERSION;
  5012.  
  5013. /* Test that the library is greater than our minimum version */
  5014. if ((xml_major_version > major) ||
  5015. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5016. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5017. (xml_micro_version >= micro)))
  5018. {
  5019. return 0;
  5020. }
  5021. else
  5022. {
  5023. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5024. xml_major_version, xml_minor_version, xml_micro_version);
  5025. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5026. major, minor, micro);
  5027. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5028. printf("***\n");
  5029. printf("*** If you have already installed a sufficiently new version, this error\n");
  5030. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5031. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5032. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5033. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5034. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5035. printf("*** so that the correct libraries are found at run-time))\n");
  5036. }
  5037. return 1;
  5038. }
  5039.  
  5040. _ACEOF
  5041. if ac_fn_cxx_try_run "$LINENO"; then :
  5042.  
  5043. else
  5044. no_xml=yes
  5045. fi
  5046. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5047. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5048. fi
  5049.  
  5050. CPPFLAGS="$ac_save_CPPFLAGS"
  5051. LIBS="$ac_save_LIBS"
  5052. fi
  5053. fi
  5054.  
  5055. if test "x$no_xml" = x ; then
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5057. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5058. :
  5059. else
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5061. $as_echo "no" >&6; }
  5062. if test "$XML2_CONFIG" = "no" ; then
  5063. echo "*** The xml2-config script installed by LIBXML could not be found"
  5064. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5065. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5066. echo "*** full path to xml2-config."
  5067. else
  5068. if test -f conf.xmltest ; then
  5069. :
  5070. else
  5071. echo "*** Could not run libxml test program, checking why..."
  5072. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5073. LIBS="$LIBS $XML_LIBS"
  5074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5075. /* end confdefs.h. */
  5076.  
  5077. #include <libxml/xmlversion.h>
  5078. #include <stdio.h>
  5079.  
  5080. int
  5081. main ()
  5082. {
  5083. LIBXML_TEST_VERSION; return 0;
  5084. ;
  5085. return 0;
  5086. }
  5087. _ACEOF
  5088. if ac_fn_cxx_try_link "$LINENO"; then :
  5089. echo "*** The test program compiled, but did not run. This usually means"
  5090. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5091. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5092. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5093. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5094. echo "*** is required on your system"
  5095. echo "***"
  5096. echo "*** If you have an old version installed, it is best to remove it, although"
  5097. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5098. else
  5099. echo "*** The test program failed to compile or link. See the file config.log for the"
  5100. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5101. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5102. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5103. fi
  5104. rm -f core conftest.err conftest.$ac_objext \
  5105. conftest$ac_exeext conftest.$ac_ext
  5106. CPPFLAGS="$ac_save_CPPFLAGS"
  5107. LIBS="$ac_save_LIBS"
  5108. fi
  5109. fi
  5110.  
  5111. XML_CPPFLAGS=""
  5112. XML_LIBS=""
  5113. as_fn_error $? "You need libxml2 >= 2.6.5 to compile otxserver!" "$LINENO" 5
  5114. fi
  5115.  
  5116.  
  5117. rm -f conf.xmltest
  5118.  
  5119. LIBS="$LIBS $XML_LIBS"
  5120.  
  5121. # check for zlib
  5122. for ac_header in zlib.h
  5123. do :
  5124. ac_fn_cxx_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  5125. if test "x$ac_cv_header_zlib_h" = x""yes; then :
  5126. cat >>confdefs.h <<_ACEOF
  5127. #define HAVE_ZLIB_H 1
  5128. _ACEOF
  5129.  
  5130. else
  5131. as_fn_error $? "\"zlib header not found.\"" "$LINENO" 5
  5132. fi
  5133.  
  5134. done
  5135.  
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
  5137. $as_echo_n "checking for main in -lz... " >&6; }
  5138. if test "${ac_cv_lib_z_main+set}" = set; then :
  5139. $as_echo_n "(cached) " >&6
  5140. else
  5141. ac_check_lib_save_LIBS=$LIBS
  5142. LIBS="-lz $LIBS"
  5143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5144. /* end confdefs.h. */
  5145.  
  5146.  
  5147. int
  5148. main ()
  5149. {
  5150. return main ();
  5151. ;
  5152. return 0;
  5153. }
  5154. _ACEOF
  5155. if ac_fn_cxx_try_link "$LINENO"; then :
  5156. ac_cv_lib_z_main=yes
  5157. else
  5158. ac_cv_lib_z_main=no
  5159. fi
  5160. rm -f core conftest.err conftest.$ac_objext \
  5161. conftest$ac_exeext conftest.$ac_ext
  5162. LIBS=$ac_check_lib_save_LIBS
  5163. fi
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
  5165. $as_echo "$ac_cv_lib_z_main" >&6; }
  5166. if test "x$ac_cv_lib_z_main" = x""yes; then :
  5167. cat >>confdefs.h <<_ACEOF
  5168. #define HAVE_LIBZ 1
  5169. _ACEOF
  5170.  
  5171. LIBS="-lz $LIBS"
  5172.  
  5173. else
  5174. as_fn_error $? "\"Linking against zlib library failed.\"" "$LINENO" 5
  5175. fi
  5176.  
  5177.  
  5178. # check for pthread
  5179. for ac_header in pthread.h
  5180. do :
  5181. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  5182. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  5183. cat >>confdefs.h <<_ACEOF
  5184. #define HAVE_PTHREAD_H 1
  5185. _ACEOF
  5186.  
  5187. else
  5188. as_fn_error $? "\"pthread header not found.\"" "$LINENO" 5
  5189. fi
  5190.  
  5191. done
  5192.  
  5193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
  5194. $as_echo_n "checking for main in -lpthread... " >&6; }
  5195. if test "${ac_cv_lib_pthread_main+set}" = set; then :
  5196. $as_echo_n "(cached) " >&6
  5197. else
  5198. ac_check_lib_save_LIBS=$LIBS
  5199. LIBS="-lpthread $LIBS"
  5200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5201. /* end confdefs.h. */
  5202.  
  5203.  
  5204. int
  5205. main ()
  5206. {
  5207. return main ();
  5208. ;
  5209. return 0;
  5210. }
  5211. _ACEOF
  5212. if ac_fn_cxx_try_link "$LINENO"; then :
  5213. ac_cv_lib_pthread_main=yes
  5214. else
  5215. ac_cv_lib_pthread_main=no
  5216. fi
  5217. rm -f core conftest.err conftest.$ac_objext \
  5218. conftest$ac_exeext conftest.$ac_ext
  5219. LIBS=$ac_check_lib_save_LIBS
  5220. fi
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
  5222. $as_echo "$ac_cv_lib_pthread_main" >&6; }
  5223. if test "x$ac_cv_lib_pthread_main" = x""yes; then :
  5224. cat >>confdefs.h <<_ACEOF
  5225. #define HAVE_LIBPTHREAD 1
  5226. _ACEOF
  5227.  
  5228. LIBS="-lpthread $LIBS"
  5229.  
  5230. else
  5231. as_fn_error $? "\"Linking against pthread library failed" "$LINENO" 5
  5232. fi
  5233.  
  5234.  
  5235. # check for OpenSSL
  5236. for ac_header in openssl/rsa.h openssl/bn.h openssl/err.h openssl/sha.h openssl/md5.h
  5237. do :
  5238. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5239. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5240. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5241. cat >>confdefs.h <<_ACEOF
  5242. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5243. _ACEOF
  5244.  
  5245. else
  5246. as_fn_error $? "\"Required OpenSSL headers not found.\"" "$LINENO" 5
  5247. fi
  5248.  
  5249. done
  5250.  
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  5252. $as_echo_n "checking for main in -lcrypto... " >&6; }
  5253. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  5254. $as_echo_n "(cached) " >&6
  5255. else
  5256. ac_check_lib_save_LIBS=$LIBS
  5257. LIBS="-lcrypto $LIBS"
  5258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5259. /* end confdefs.h. */
  5260.  
  5261.  
  5262. int
  5263. main ()
  5264. {
  5265. return main ();
  5266. ;
  5267. return 0;
  5268. }
  5269. _ACEOF
  5270. if ac_fn_cxx_try_link "$LINENO"; then :
  5271. ac_cv_lib_crypto_main=yes
  5272. else
  5273. ac_cv_lib_crypto_main=no
  5274. fi
  5275. rm -f core conftest.err conftest.$ac_objext \
  5276. conftest$ac_exeext conftest.$ac_ext
  5277. LIBS=$ac_check_lib_save_LIBS
  5278. fi
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  5280. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  5281. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  5282. cat >>confdefs.h <<_ACEOF
  5283. #define HAVE_LIBCRYPTO 1
  5284. _ACEOF
  5285.  
  5286. LIBS="-lcrypto $LIBS"
  5287.  
  5288. else
  5289. as_fn_error $? "\"Linking against OpenSSL library failed\"" "$LINENO" 5
  5290. fi
  5291.  
  5292.  
  5293. # check for boost
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_thread-gcc-mt" >&5
  5295. $as_echo_n "checking for main in -lboost_thread-gcc-mt... " >&6; }
  5296. if test "${ac_cv_lib_boost_thread_gcc_mt_main+set}" = set; then :
  5297. $as_echo_n "(cached) " >&6
  5298. else
  5299. ac_check_lib_save_LIBS=$LIBS
  5300. LIBS="-lboost_thread-gcc-mt $LIBS"
  5301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5302. /* end confdefs.h. */
  5303.  
  5304.  
  5305. int
  5306. main ()
  5307. {
  5308. return main ();
  5309. ;
  5310. return 0;
  5311. }
  5312. _ACEOF
  5313. if ac_fn_cxx_try_link "$LINENO"; then :
  5314. ac_cv_lib_boost_thread_gcc_mt_main=yes
  5315. else
  5316. ac_cv_lib_boost_thread_gcc_mt_main=no
  5317. fi
  5318. rm -f core conftest.err conftest.$ac_objext \
  5319. conftest$ac_exeext conftest.$ac_ext
  5320. LIBS=$ac_check_lib_save_LIBS
  5321. fi
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_thread_gcc_mt_main" >&5
  5323. $as_echo "$ac_cv_lib_boost_thread_gcc_mt_main" >&6; }
  5324. if test "x$ac_cv_lib_boost_thread_gcc_mt_main" = x""yes; then :
  5325. cat >>confdefs.h <<_ACEOF
  5326. #define HAVE_LIBBOOST_THREAD_GCC_MT 1
  5327. _ACEOF
  5328.  
  5329. LIBS="-lboost_thread-gcc-mt $LIBS"
  5330.  
  5331. else
  5332.  
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_thread-mt" >&5
  5334. $as_echo_n "checking for main in -lboost_thread-mt... " >&6; }
  5335. if test "${ac_cv_lib_boost_thread_mt_main+set}" = set; then :
  5336. $as_echo_n "(cached) " >&6
  5337. else
  5338. ac_check_lib_save_LIBS=$LIBS
  5339. LIBS="-lboost_thread-mt $LIBS"
  5340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5341. /* end confdefs.h. */
  5342.  
  5343.  
  5344. int
  5345. main ()
  5346. {
  5347. return main ();
  5348. ;
  5349. return 0;
  5350. }
  5351. _ACEOF
  5352. if ac_fn_cxx_try_link "$LINENO"; then :
  5353. ac_cv_lib_boost_thread_mt_main=yes
  5354. else
  5355. ac_cv_lib_boost_thread_mt_main=no
  5356. fi
  5357. rm -f core conftest.err conftest.$ac_objext \
  5358. conftest$ac_exeext conftest.$ac_ext
  5359. LIBS=$ac_check_lib_save_LIBS
  5360. fi
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_thread_mt_main" >&5
  5362. $as_echo "$ac_cv_lib_boost_thread_mt_main" >&6; }
  5363. if test "x$ac_cv_lib_boost_thread_mt_main" = x""yes; then :
  5364. cat >>confdefs.h <<_ACEOF
  5365. #define HAVE_LIBBOOST_THREAD_MT 1
  5366. _ACEOF
  5367.  
  5368. LIBS="-lboost_thread-mt $LIBS"
  5369.  
  5370. else
  5371.  
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_thread" >&5
  5373. $as_echo_n "checking for main in -lboost_thread... " >&6; }
  5374. if test "${ac_cv_lib_boost_thread_main+set}" = set; then :
  5375. $as_echo_n "(cached) " >&6
  5376. else
  5377. ac_check_lib_save_LIBS=$LIBS
  5378. LIBS="-lboost_thread $LIBS"
  5379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5380. /* end confdefs.h. */
  5381.  
  5382.  
  5383. int
  5384. main ()
  5385. {
  5386. return main ();
  5387. ;
  5388. return 0;
  5389. }
  5390. _ACEOF
  5391. if ac_fn_cxx_try_link "$LINENO"; then :
  5392. ac_cv_lib_boost_thread_main=yes
  5393. else
  5394. ac_cv_lib_boost_thread_main=no
  5395. fi
  5396. rm -f core conftest.err conftest.$ac_objext \
  5397. conftest$ac_exeext conftest.$ac_ext
  5398. LIBS=$ac_check_lib_save_LIBS
  5399. fi
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_thread_main" >&5
  5401. $as_echo "$ac_cv_lib_boost_thread_main" >&6; }
  5402. if test "x$ac_cv_lib_boost_thread_main" = x""yes; then :
  5403. cat >>confdefs.h <<_ACEOF
  5404. #define HAVE_LIBBOOST_THREAD 1
  5405. _ACEOF
  5406.  
  5407. LIBS="-lboost_thread $LIBS"
  5408.  
  5409. else
  5410.  
  5411. as_fn_error $? "\"Linking against boost::thread library failed.\"" "$LINENO" 5
  5412.  
  5413. fi
  5414.  
  5415.  
  5416. fi
  5417.  
  5418.  
  5419. fi
  5420.  
  5421.  
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_regex-gcc-mt" >&5
  5423. $as_echo_n "checking for main in -lboost_regex-gcc-mt... " >&6; }
  5424. if test "${ac_cv_lib_boost_regex_gcc_mt_main+set}" = set; then :
  5425. $as_echo_n "(cached) " >&6
  5426. else
  5427. ac_check_lib_save_LIBS=$LIBS
  5428. LIBS="-lboost_regex-gcc-mt $LIBS"
  5429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5430. /* end confdefs.h. */
  5431.  
  5432.  
  5433. int
  5434. main ()
  5435. {
  5436. return main ();
  5437. ;
  5438. return 0;
  5439. }
  5440. _ACEOF
  5441. if ac_fn_cxx_try_link "$LINENO"; then :
  5442. ac_cv_lib_boost_regex_gcc_mt_main=yes
  5443. else
  5444. ac_cv_lib_boost_regex_gcc_mt_main=no
  5445. fi
  5446. rm -f core conftest.err conftest.$ac_objext \
  5447. conftest$ac_exeext conftest.$ac_ext
  5448. LIBS=$ac_check_lib_save_LIBS
  5449. fi
  5450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_regex_gcc_mt_main" >&5
  5451. $as_echo "$ac_cv_lib_boost_regex_gcc_mt_main" >&6; }
  5452. if test "x$ac_cv_lib_boost_regex_gcc_mt_main" = x""yes; then :
  5453. cat >>confdefs.h <<_ACEOF
  5454. #define HAVE_LIBBOOST_REGEX_GCC_MT 1
  5455. _ACEOF
  5456.  
  5457. LIBS="-lboost_regex-gcc-mt $LIBS"
  5458.  
  5459. else
  5460.  
  5461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_regex-mt" >&5
  5462. $as_echo_n "checking for main in -lboost_regex-mt... " >&6; }
  5463. if test "${ac_cv_lib_boost_regex_mt_main+set}" = set; then :
  5464. $as_echo_n "(cached) " >&6
  5465. else
  5466. ac_check_lib_save_LIBS=$LIBS
  5467. LIBS="-lboost_regex-mt $LIBS"
  5468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5469. /* end confdefs.h. */
  5470.  
  5471.  
  5472. int
  5473. main ()
  5474. {
  5475. return main ();
  5476. ;
  5477. return 0;
  5478. }
  5479. _ACEOF
  5480. if ac_fn_cxx_try_link "$LINENO"; then :
  5481. ac_cv_lib_boost_regex_mt_main=yes
  5482. else
  5483. ac_cv_lib_boost_regex_mt_main=no
  5484. fi
  5485. rm -f core conftest.err conftest.$ac_objext \
  5486. conftest$ac_exeext conftest.$ac_ext
  5487. LIBS=$ac_check_lib_save_LIBS
  5488. fi
  5489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_regex_mt_main" >&5
  5490. $as_echo "$ac_cv_lib_boost_regex_mt_main" >&6; }
  5491. if test "x$ac_cv_lib_boost_regex_mt_main" = x""yes; then :
  5492. cat >>confdefs.h <<_ACEOF
  5493. #define HAVE_LIBBOOST_REGEX_MT 1
  5494. _ACEOF
  5495.  
  5496. LIBS="-lboost_regex-mt $LIBS"
  5497.  
  5498. else
  5499.  
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_regex" >&5
  5501. $as_echo_n "checking for main in -lboost_regex... " >&6; }
  5502. if test "${ac_cv_lib_boost_regex_main+set}" = set; then :
  5503. $as_echo_n "(cached) " >&6
  5504. else
  5505. ac_check_lib_save_LIBS=$LIBS
  5506. LIBS="-lboost_regex $LIBS"
  5507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5508. /* end confdefs.h. */
  5509.  
  5510.  
  5511. int
  5512. main ()
  5513. {
  5514. return main ();
  5515. ;
  5516. return 0;
  5517. }
  5518. _ACEOF
  5519. if ac_fn_cxx_try_link "$LINENO"; then :
  5520. ac_cv_lib_boost_regex_main=yes
  5521. else
  5522. ac_cv_lib_boost_regex_main=no
  5523. fi
  5524. rm -f core conftest.err conftest.$ac_objext \
  5525. conftest$ac_exeext conftest.$ac_ext
  5526. LIBS=$ac_check_lib_save_LIBS
  5527. fi
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_regex_main" >&5
  5529. $as_echo "$ac_cv_lib_boost_regex_main" >&6; }
  5530. if test "x$ac_cv_lib_boost_regex_main" = x""yes; then :
  5531. cat >>confdefs.h <<_ACEOF
  5532. #define HAVE_LIBBOOST_REGEX 1
  5533. _ACEOF
  5534.  
  5535. LIBS="-lboost_regex $LIBS"
  5536.  
  5537. else
  5538.  
  5539. as_fn_error $? "\"Linking against boost::regex library failed.\"" "$LINENO" 5
  5540.  
  5541. fi
  5542.  
  5543.  
  5544. fi
  5545.  
  5546.  
  5547. fi
  5548.  
  5549.  
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_system-gcc-mt" >&5
  5551. $as_echo_n "checking for main in -lboost_system-gcc-mt... " >&6; }
  5552. if test "${ac_cv_lib_boost_system_gcc_mt_main+set}" = set; then :
  5553. $as_echo_n "(cached) " >&6
  5554. else
  5555. ac_check_lib_save_LIBS=$LIBS
  5556. LIBS="-lboost_system-gcc-mt $LIBS"
  5557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5558. /* end confdefs.h. */
  5559.  
  5560.  
  5561. int
  5562. main ()
  5563. {
  5564. return main ();
  5565. ;
  5566. return 0;
  5567. }
  5568. _ACEOF
  5569. if ac_fn_cxx_try_link "$LINENO"; then :
  5570. ac_cv_lib_boost_system_gcc_mt_main=yes
  5571. else
  5572. ac_cv_lib_boost_system_gcc_mt_main=no
  5573. fi
  5574. rm -f core conftest.err conftest.$ac_objext \
  5575. conftest$ac_exeext conftest.$ac_ext
  5576. LIBS=$ac_check_lib_save_LIBS
  5577. fi
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_system_gcc_mt_main" >&5
  5579. $as_echo "$ac_cv_lib_boost_system_gcc_mt_main" >&6; }
  5580. if test "x$ac_cv_lib_boost_system_gcc_mt_main" = x""yes; then :
  5581. cat >>confdefs.h <<_ACEOF
  5582. #define HAVE_LIBBOOST_SYSTEM_GCC_MT 1
  5583. _ACEOF
  5584.  
  5585. LIBS="-lboost_system-gcc-mt $LIBS"
  5586.  
  5587. else
  5588.  
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_system-mt" >&5
  5590. $as_echo_n "checking for main in -lboost_system-mt... " >&6; }
  5591. if test "${ac_cv_lib_boost_system_mt_main+set}" = set; then :
  5592. $as_echo_n "(cached) " >&6
  5593. else
  5594. ac_check_lib_save_LIBS=$LIBS
  5595. LIBS="-lboost_system-mt $LIBS"
  5596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5597. /* end confdefs.h. */
  5598.  
  5599.  
  5600. int
  5601. main ()
  5602. {
  5603. return main ();
  5604. ;
  5605. return 0;
  5606. }
  5607. _ACEOF
  5608. if ac_fn_cxx_try_link "$LINENO"; then :
  5609. ac_cv_lib_boost_system_mt_main=yes
  5610. else
  5611. ac_cv_lib_boost_system_mt_main=no
  5612. fi
  5613. rm -f core conftest.err conftest.$ac_objext \
  5614. conftest$ac_exeext conftest.$ac_ext
  5615. LIBS=$ac_check_lib_save_LIBS
  5616. fi
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_system_mt_main" >&5
  5618. $as_echo "$ac_cv_lib_boost_system_mt_main" >&6; }
  5619. if test "x$ac_cv_lib_boost_system_mt_main" = x""yes; then :
  5620. cat >>confdefs.h <<_ACEOF
  5621. #define HAVE_LIBBOOST_SYSTEM_MT 1
  5622. _ACEOF
  5623.  
  5624. LIBS="-lboost_system-mt $LIBS"
  5625.  
  5626. else
  5627.  
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_system" >&5
  5629. $as_echo_n "checking for main in -lboost_system... " >&6; }
  5630. if test "${ac_cv_lib_boost_system_main+set}" = set; then :
  5631. $as_echo_n "(cached) " >&6
  5632. else
  5633. ac_check_lib_save_LIBS=$LIBS
  5634. LIBS="-lboost_system $LIBS"
  5635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5636. /* end confdefs.h. */
  5637.  
  5638.  
  5639. int
  5640. main ()
  5641. {
  5642. return main ();
  5643. ;
  5644. return 0;
  5645. }
  5646. _ACEOF
  5647. if ac_fn_cxx_try_link "$LINENO"; then :
  5648. ac_cv_lib_boost_system_main=yes
  5649. else
  5650. ac_cv_lib_boost_system_main=no
  5651. fi
  5652. rm -f core conftest.err conftest.$ac_objext \
  5653. conftest$ac_exeext conftest.$ac_ext
  5654. LIBS=$ac_check_lib_save_LIBS
  5655. fi
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_system_main" >&5
  5657. $as_echo "$ac_cv_lib_boost_system_main" >&6; }
  5658. if test "x$ac_cv_lib_boost_system_main" = x""yes; then :
  5659. cat >>confdefs.h <<_ACEOF
  5660. #define HAVE_LIBBOOST_SYSTEM 1
  5661. _ACEOF
  5662.  
  5663. LIBS="-lboost_system $LIBS"
  5664.  
  5665. else
  5666.  
  5667. as_fn_error $? "\"Linking against boost::system library failed.\"" "$LINENO" 5
  5668.  
  5669. fi
  5670.  
  5671.  
  5672. fi
  5673.  
  5674.  
  5675. fi
  5676.  
  5677.  
  5678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_date_time-gcc-mt" >&5
  5679. $as_echo_n "checking for main in -lboost_date_time-gcc-mt... " >&6; }
  5680. if test "${ac_cv_lib_boost_date_time_gcc_mt_main+set}" = set; then :
  5681. $as_echo_n "(cached) " >&6
  5682. else
  5683. ac_check_lib_save_LIBS=$LIBS
  5684. LIBS="-lboost_date_time-gcc-mt $LIBS"
  5685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5686. /* end confdefs.h. */
  5687.  
  5688.  
  5689. int
  5690. main ()
  5691. {
  5692. return main ();
  5693. ;
  5694. return 0;
  5695. }
  5696. _ACEOF
  5697. if ac_fn_cxx_try_link "$LINENO"; then :
  5698. ac_cv_lib_boost_date_time_gcc_mt_main=yes
  5699. else
  5700. ac_cv_lib_boost_date_time_gcc_mt_main=no
  5701. fi
  5702. rm -f core conftest.err conftest.$ac_objext \
  5703. conftest$ac_exeext conftest.$ac_ext
  5704. LIBS=$ac_check_lib_save_LIBS
  5705. fi
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_date_time_gcc_mt_main" >&5
  5707. $as_echo "$ac_cv_lib_boost_date_time_gcc_mt_main" >&6; }
  5708. if test "x$ac_cv_lib_boost_date_time_gcc_mt_main" = x""yes; then :
  5709. cat >>confdefs.h <<_ACEOF
  5710. #define HAVE_LIBBOOST_DATE_TIME_GCC_MT 1
  5711. _ACEOF
  5712.  
  5713. LIBS="-lboost_date_time-gcc-mt $LIBS"
  5714.  
  5715. else
  5716.  
  5717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_date_time-mt" >&5
  5718. $as_echo_n "checking for main in -lboost_date_time-mt... " >&6; }
  5719. if test "${ac_cv_lib_boost_date_time_mt_main+set}" = set; then :
  5720. $as_echo_n "(cached) " >&6
  5721. else
  5722. ac_check_lib_save_LIBS=$LIBS
  5723. LIBS="-lboost_date_time-mt $LIBS"
  5724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5725. /* end confdefs.h. */
  5726.  
  5727.  
  5728. int
  5729. main ()
  5730. {
  5731. return main ();
  5732. ;
  5733. return 0;
  5734. }
  5735. _ACEOF
  5736. if ac_fn_cxx_try_link "$LINENO"; then :
  5737. ac_cv_lib_boost_date_time_mt_main=yes
  5738. else
  5739. ac_cv_lib_boost_date_time_mt_main=no
  5740. fi
  5741. rm -f core conftest.err conftest.$ac_objext \
  5742. conftest$ac_exeext conftest.$ac_ext
  5743. LIBS=$ac_check_lib_save_LIBS
  5744. fi
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_date_time_mt_main" >&5
  5746. $as_echo "$ac_cv_lib_boost_date_time_mt_main" >&6; }
  5747. if test "x$ac_cv_lib_boost_date_time_mt_main" = x""yes; then :
  5748. cat >>confdefs.h <<_ACEOF
  5749. #define HAVE_LIBBOOST_DATE_TIME_MT 1
  5750. _ACEOF
  5751.  
  5752. LIBS="-lboost_date_time-mt $LIBS"
  5753.  
  5754. else
  5755.  
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_date_time" >&5
  5757. $as_echo_n "checking for main in -lboost_date_time... " >&6; }
  5758. if test "${ac_cv_lib_boost_date_time_main+set}" = set; then :
  5759. $as_echo_n "(cached) " >&6
  5760. else
  5761. ac_check_lib_save_LIBS=$LIBS
  5762. LIBS="-lboost_date_time $LIBS"
  5763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5764. /* end confdefs.h. */
  5765.  
  5766.  
  5767. int
  5768. main ()
  5769. {
  5770. return main ();
  5771. ;
  5772. return 0;
  5773. }
  5774. _ACEOF
  5775. if ac_fn_cxx_try_link "$LINENO"; then :
  5776. ac_cv_lib_boost_date_time_main=yes
  5777. else
  5778. ac_cv_lib_boost_date_time_main=no
  5779. fi
  5780. rm -f core conftest.err conftest.$ac_objext \
  5781. conftest$ac_exeext conftest.$ac_ext
  5782. LIBS=$ac_check_lib_save_LIBS
  5783. fi
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_date_time_main" >&5
  5785. $as_echo "$ac_cv_lib_boost_date_time_main" >&6; }
  5786. if test "x$ac_cv_lib_boost_date_time_main" = x""yes; then :
  5787. cat >>confdefs.h <<_ACEOF
  5788. #define HAVE_LIBBOOST_DATE_TIME 1
  5789. _ACEOF
  5790.  
  5791. LIBS="-lboost_date_time $LIBS"
  5792.  
  5793. else
  5794.  
  5795. as_fn_error $? "\"Linking against boost::date-time library failed.\"" "$LINENO" 5
  5796.  
  5797. fi
  5798.  
  5799.  
  5800. fi
  5801.  
  5802.  
  5803. fi
  5804.  
  5805.  
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_filesystem-gcc-mt" >&5
  5807. $as_echo_n "checking for main in -lboost_filesystem-gcc-mt... " >&6; }
  5808. if test "${ac_cv_lib_boost_filesystem_gcc_mt_main+set}" = set; then :
  5809. $as_echo_n "(cached) " >&6
  5810. else
  5811. ac_check_lib_save_LIBS=$LIBS
  5812. LIBS="-lboost_filesystem-gcc-mt $LIBS"
  5813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5814. /* end confdefs.h. */
  5815.  
  5816.  
  5817. int
  5818. main ()
  5819. {
  5820. return main ();
  5821. ;
  5822. return 0;
  5823. }
  5824. _ACEOF
  5825. if ac_fn_cxx_try_link "$LINENO"; then :
  5826. ac_cv_lib_boost_filesystem_gcc_mt_main=yes
  5827. else
  5828. ac_cv_lib_boost_filesystem_gcc_mt_main=no
  5829. fi
  5830. rm -f core conftest.err conftest.$ac_objext \
  5831. conftest$ac_exeext conftest.$ac_ext
  5832. LIBS=$ac_check_lib_save_LIBS
  5833. fi
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_filesystem_gcc_mt_main" >&5
  5835. $as_echo "$ac_cv_lib_boost_filesystem_gcc_mt_main" >&6; }
  5836. if test "x$ac_cv_lib_boost_filesystem_gcc_mt_main" = x""yes; then :
  5837. cat >>confdefs.h <<_ACEOF
  5838. #define HAVE_LIBBOOST_FILESYSTEM_GCC_MT 1
  5839. _ACEOF
  5840.  
  5841. LIBS="-lboost_filesystem-gcc-mt $LIBS"
  5842.  
  5843. else
  5844.  
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_filesystem-mt" >&5
  5846. $as_echo_n "checking for main in -lboost_filesystem-mt... " >&6; }
  5847. if test "${ac_cv_lib_boost_filesystem_mt_main+set}" = set; then :
  5848. $as_echo_n "(cached) " >&6
  5849. else
  5850. ac_check_lib_save_LIBS=$LIBS
  5851. LIBS="-lboost_filesystem-mt $LIBS"
  5852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5853. /* end confdefs.h. */
  5854.  
  5855.  
  5856. int
  5857. main ()
  5858. {
  5859. return main ();
  5860. ;
  5861. return 0;
  5862. }
  5863. _ACEOF
  5864. if ac_fn_cxx_try_link "$LINENO"; then :
  5865. ac_cv_lib_boost_filesystem_mt_main=yes
  5866. else
  5867. ac_cv_lib_boost_filesystem_mt_main=no
  5868. fi
  5869. rm -f core conftest.err conftest.$ac_objext \
  5870. conftest$ac_exeext conftest.$ac_ext
  5871. LIBS=$ac_check_lib_save_LIBS
  5872. fi
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_filesystem_mt_main" >&5
  5874. $as_echo "$ac_cv_lib_boost_filesystem_mt_main" >&6; }
  5875. if test "x$ac_cv_lib_boost_filesystem_mt_main" = x""yes; then :
  5876. cat >>confdefs.h <<_ACEOF
  5877. #define HAVE_LIBBOOST_FILESYSTEM_MT 1
  5878. _ACEOF
  5879.  
  5880. LIBS="-lboost_filesystem-mt $LIBS"
  5881.  
  5882. else
  5883.  
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_filesystem" >&5
  5885. $as_echo_n "checking for main in -lboost_filesystem... " >&6; }
  5886. if test "${ac_cv_lib_boost_filesystem_main+set}" = set; then :
  5887. $as_echo_n "(cached) " >&6
  5888. else
  5889. ac_check_lib_save_LIBS=$LIBS
  5890. LIBS="-lboost_filesystem $LIBS"
  5891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5892. /* end confdefs.h. */
  5893.  
  5894.  
  5895. int
  5896. main ()
  5897. {
  5898. return main ();
  5899. ;
  5900. return 0;
  5901. }
  5902. _ACEOF
  5903. if ac_fn_cxx_try_link "$LINENO"; then :
  5904. ac_cv_lib_boost_filesystem_main=yes
  5905. else
  5906. ac_cv_lib_boost_filesystem_main=no
  5907. fi
  5908. rm -f core conftest.err conftest.$ac_objext \
  5909. conftest$ac_exeext conftest.$ac_ext
  5910. LIBS=$ac_check_lib_save_LIBS
  5911. fi
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_filesystem_main" >&5
  5913. $as_echo "$ac_cv_lib_boost_filesystem_main" >&6; }
  5914. if test "x$ac_cv_lib_boost_filesystem_main" = x""yes; then :
  5915. cat >>confdefs.h <<_ACEOF
  5916. #define HAVE_LIBBOOST_FILESYSTEM 1
  5917. _ACEOF
  5918.  
  5919. LIBS="-lboost_filesystem $LIBS"
  5920.  
  5921. else
  5922.  
  5923. as_fn_error $? "\"Linking against boost::filesystem library failed.\"" "$LINENO" 5
  5924.  
  5925. fi
  5926.  
  5927.  
  5928. fi
  5929.  
  5930.  
  5931. fi
  5932.  
  5933.  
  5934. # check for boost::unordered_set (should only check if gnu compiler version is below 4)
  5935. # AC_CHECK_HEADERS([boost/tr1/unordered_set.hpp], , [AC_MSG_ERROR("boost::unordered_set header not found. Please update your boost to at least 1.40.")])
  5936.  
  5937. # check for Lua
  5938. if test "$luaJIT" = "yes" ; then
  5939.  
  5940.  
  5941.  
  5942.  
  5943.  
  5944.  
  5945. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5946. if test -n "$ac_tool_prefix"; then
  5947. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5948. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5950. $as_echo_n "checking for $ac_word... " >&6; }
  5951. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5952. $as_echo_n "(cached) " >&6
  5953. else
  5954. case $PKG_CONFIG in
  5955. [\\/]* | ?:[\\/]*)
  5956. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5957. ;;
  5958. *)
  5959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5960. for as_dir in $PATH
  5961. do
  5962. IFS=$as_save_IFS
  5963. test -z "$as_dir" && as_dir=.
  5964. for ac_exec_ext in '' $ac_executable_extensions; do
  5965. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5966. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5968. break 2
  5969. fi
  5970. done
  5971. done
  5972. IFS=$as_save_IFS
  5973.  
  5974. ;;
  5975. esac
  5976. fi
  5977. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5978. if test -n "$PKG_CONFIG"; then
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5980. $as_echo "$PKG_CONFIG" >&6; }
  5981. else
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5983. $as_echo "no" >&6; }
  5984. fi
  5985.  
  5986.  
  5987. fi
  5988. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5989. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5990. # Extract the first word of "pkg-config", so it can be a program name with args.
  5991. set dummy pkg-config; ac_word=$2
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5993. $as_echo_n "checking for $ac_word... " >&6; }
  5994. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5995. $as_echo_n "(cached) " >&6
  5996. else
  5997. case $ac_pt_PKG_CONFIG in
  5998. [\\/]* | ?:[\\/]*)
  5999. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  6000. ;;
  6001. *)
  6002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6003. for as_dir in $PATH
  6004. do
  6005. IFS=$as_save_IFS
  6006. test -z "$as_dir" && as_dir=.
  6007. for ac_exec_ext in '' $ac_executable_extensions; do
  6008. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6009. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6010. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6011. break 2
  6012. fi
  6013. done
  6014. done
  6015. IFS=$as_save_IFS
  6016.  
  6017. ;;
  6018. esac
  6019. fi
  6020. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  6021. if test -n "$ac_pt_PKG_CONFIG"; then
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  6023. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  6024. else
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6026. $as_echo "no" >&6; }
  6027. fi
  6028.  
  6029. if test "x$ac_pt_PKG_CONFIG" = x; then
  6030. PKG_CONFIG=""
  6031. else
  6032. case $cross_compiling:$ac_tool_warned in
  6033. yes:)
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6035. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6036. ac_tool_warned=yes ;;
  6037. esac
  6038. PKG_CONFIG=$ac_pt_PKG_CONFIG
  6039. fi
  6040. else
  6041. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  6042. fi
  6043.  
  6044. fi
  6045. if test -n "$PKG_CONFIG"; then
  6046. _pkg_min_version=0.9.0
  6047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  6048. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  6049. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6051. $as_echo "yes" >&6; }
  6052. else
  6053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6054. $as_echo "no" >&6; }
  6055. PKG_CONFIG=""
  6056. fi
  6057. fi
  6058.  
  6059. pkg_failed=no
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  6061. $as_echo_n "checking for LUA... " >&6; }
  6062.  
  6063. if test -n "$LUA_CFLAGS"; then
  6064. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  6065. elif test -n "$PKG_CONFIG"; then
  6066. if test -n "$PKG_CONFIG" && \
  6067. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"luajit\""; } >&5
  6068. ($PKG_CONFIG --exists --print-errors "luajit") 2>&5
  6069. ac_status=$?
  6070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6071. test $ac_status = 0; }; then
  6072. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "luajit" 2>/dev/null`
  6073. else
  6074. pkg_failed=yes
  6075. fi
  6076. else
  6077. pkg_failed=untried
  6078. fi
  6079. if test -n "$LUA_LIBS"; then
  6080. pkg_cv_LUA_LIBS="$LUA_LIBS"
  6081. elif test -n "$PKG_CONFIG"; then
  6082. if test -n "$PKG_CONFIG" && \
  6083. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"luajit\""; } >&5
  6084. ($PKG_CONFIG --exists --print-errors "luajit") 2>&5
  6085. ac_status=$?
  6086. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6087. test $ac_status = 0; }; then
  6088. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "luajit" 2>/dev/null`
  6089. else
  6090. pkg_failed=yes
  6091. fi
  6092. else
  6093. pkg_failed=untried
  6094. fi
  6095.  
  6096.  
  6097.  
  6098. if test $pkg_failed = yes; then
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6100. $as_echo "no" >&6; }
  6101.  
  6102. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6103. _pkg_short_errors_supported=yes
  6104. else
  6105. _pkg_short_errors_supported=no
  6106. fi
  6107. if test $_pkg_short_errors_supported = yes; then
  6108. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "luajit" 2>&1`
  6109. else
  6110. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "luajit" 2>&1`
  6111. fi
  6112. # Put the nasty error message in config.log where it belongs
  6113. echo "$LUA_PKG_ERRORS" >&5
  6114.  
  6115.  
  6116. for ac_header in luajit-2.0/lua.hpp
  6117. do :
  6118. ac_fn_cxx_check_header_mongrel "$LINENO" "luajit-2.0/lua.hpp" "ac_cv_header_luajit_2_0_lua_hpp" "$ac_includes_default"
  6119. if test "x$ac_cv_header_luajit_2_0_lua_hpp" = x""yes; then :
  6120. cat >>confdefs.h <<_ACEOF
  6121. #define HAVE_LUAJIT_2_0_LUA_HPP 1
  6122. _ACEOF
  6123.  
  6124. else
  6125. as_fn_error $? "\"LuaJIT header not found.\"" "$LINENO" 5
  6126. fi
  6127.  
  6128. done
  6129.  
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lluajit" >&5
  6131. $as_echo_n "checking for main in -lluajit... " >&6; }
  6132. if test "${ac_cv_lib_luajit_main+set}" = set; then :
  6133. $as_echo_n "(cached) " >&6
  6134. else
  6135. ac_check_lib_save_LIBS=$LIBS
  6136. LIBS="-lluajit $LIBS"
  6137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6138. /* end confdefs.h. */
  6139.  
  6140.  
  6141. int
  6142. main ()
  6143. {
  6144. return main ();
  6145. ;
  6146. return 0;
  6147. }
  6148. _ACEOF
  6149. if ac_fn_cxx_try_link "$LINENO"; then :
  6150. ac_cv_lib_luajit_main=yes
  6151. else
  6152. ac_cv_lib_luajit_main=no
  6153. fi
  6154. rm -f core conftest.err conftest.$ac_objext \
  6155. conftest$ac_exeext conftest.$ac_ext
  6156. LIBS=$ac_check_lib_save_LIBS
  6157. fi
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_luajit_main" >&5
  6159. $as_echo "$ac_cv_lib_luajit_main" >&6; }
  6160. if test "x$ac_cv_lib_luajit_main" = x""yes; then :
  6161. cat >>confdefs.h <<_ACEOF
  6162. #define HAVE_LIBLUAJIT 1
  6163. _ACEOF
  6164.  
  6165. LIBS="-lluajit $LIBS"
  6166.  
  6167. else
  6168.  
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lluajit-5.1" >&5
  6170. $as_echo_n "checking for main in -lluajit-5.1... " >&6; }
  6171. if test "${ac_cv_lib_luajit_5_1_main+set}" = set; then :
  6172. $as_echo_n "(cached) " >&6
  6173. else
  6174. ac_check_lib_save_LIBS=$LIBS
  6175. LIBS="-lluajit-5.1 $LIBS"
  6176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6177. /* end confdefs.h. */
  6178.  
  6179.  
  6180. int
  6181. main ()
  6182. {
  6183. return main ();
  6184. ;
  6185. return 0;
  6186. }
  6187. _ACEOF
  6188. if ac_fn_cxx_try_link "$LINENO"; then :
  6189. ac_cv_lib_luajit_5_1_main=yes
  6190. else
  6191. ac_cv_lib_luajit_5_1_main=no
  6192. fi
  6193. rm -f core conftest.err conftest.$ac_objext \
  6194. conftest$ac_exeext conftest.$ac_ext
  6195. LIBS=$ac_check_lib_save_LIBS
  6196. fi
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_luajit_5_1_main" >&5
  6198. $as_echo "$ac_cv_lib_luajit_5_1_main" >&6; }
  6199. if test "x$ac_cv_lib_luajit_5_1_main" = x""yes; then :
  6200. cat >>confdefs.h <<_ACEOF
  6201. #define HAVE_LIBLUAJIT_5_1 1
  6202. _ACEOF
  6203.  
  6204. LIBS="-lluajit-5.1 $LIBS"
  6205.  
  6206. else
  6207. as_fn_error $? "\"Linking against LuaJIT library failed.\"" "$LINENO" 5
  6208. fi
  6209.  
  6210.  
  6211. fi
  6212.  
  6213.  
  6214. elif test $pkg_failed = untried; then
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6216. $as_echo "no" >&6; }
  6217.  
  6218. for ac_header in luajit-2.0/lua.hpp
  6219. do :
  6220. ac_fn_cxx_check_header_mongrel "$LINENO" "luajit-2.0/lua.hpp" "ac_cv_header_luajit_2_0_lua_hpp" "$ac_includes_default"
  6221. if test "x$ac_cv_header_luajit_2_0_lua_hpp" = x""yes; then :
  6222. cat >>confdefs.h <<_ACEOF
  6223. #define HAVE_LUAJIT_2_0_LUA_HPP 1
  6224. _ACEOF
  6225.  
  6226. else
  6227. as_fn_error $? "\"LuaJIT header not found.\"" "$LINENO" 5
  6228. fi
  6229.  
  6230. done
  6231.  
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lluajit" >&5
  6233. $as_echo_n "checking for main in -lluajit... " >&6; }
  6234. if test "${ac_cv_lib_luajit_main+set}" = set; then :
  6235. $as_echo_n "(cached) " >&6
  6236. else
  6237. ac_check_lib_save_LIBS=$LIBS
  6238. LIBS="-lluajit $LIBS"
  6239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6240. /* end confdefs.h. */
  6241.  
  6242.  
  6243. int
  6244. main ()
  6245. {
  6246. return main ();
  6247. ;
  6248. return 0;
  6249. }
  6250. _ACEOF
  6251. if ac_fn_cxx_try_link "$LINENO"; then :
  6252. ac_cv_lib_luajit_main=yes
  6253. else
  6254. ac_cv_lib_luajit_main=no
  6255. fi
  6256. rm -f core conftest.err conftest.$ac_objext \
  6257. conftest$ac_exeext conftest.$ac_ext
  6258. LIBS=$ac_check_lib_save_LIBS
  6259. fi
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_luajit_main" >&5
  6261. $as_echo "$ac_cv_lib_luajit_main" >&6; }
  6262. if test "x$ac_cv_lib_luajit_main" = x""yes; then :
  6263. cat >>confdefs.h <<_ACEOF
  6264. #define HAVE_LIBLUAJIT 1
  6265. _ACEOF
  6266.  
  6267. LIBS="-lluajit $LIBS"
  6268.  
  6269. else
  6270.  
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lluajit-5.1" >&5
  6272. $as_echo_n "checking for main in -lluajit-5.1... " >&6; }
  6273. if test "${ac_cv_lib_luajit_5_1_main+set}" = set; then :
  6274. $as_echo_n "(cached) " >&6
  6275. else
  6276. ac_check_lib_save_LIBS=$LIBS
  6277. LIBS="-lluajit-5.1 $LIBS"
  6278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6279. /* end confdefs.h. */
  6280.  
  6281.  
  6282. int
  6283. main ()
  6284. {
  6285. return main ();
  6286. ;
  6287. return 0;
  6288. }
  6289. _ACEOF
  6290. if ac_fn_cxx_try_link "$LINENO"; then :
  6291. ac_cv_lib_luajit_5_1_main=yes
  6292. else
  6293. ac_cv_lib_luajit_5_1_main=no
  6294. fi
  6295. rm -f core conftest.err conftest.$ac_objext \
  6296. conftest$ac_exeext conftest.$ac_ext
  6297. LIBS=$ac_check_lib_save_LIBS
  6298. fi
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_luajit_5_1_main" >&5
  6300. $as_echo "$ac_cv_lib_luajit_5_1_main" >&6; }
  6301. if test "x$ac_cv_lib_luajit_5_1_main" = x""yes; then :
  6302. cat >>confdefs.h <<_ACEOF
  6303. #define HAVE_LIBLUAJIT_5_1 1
  6304. _ACEOF
  6305.  
  6306. LIBS="-lluajit-5.1 $LIBS"
  6307.  
  6308. else
  6309. as_fn_error $? "\"Linking against LuaJIT library failed.\"" "$LINENO" 5
  6310. fi
  6311.  
  6312.  
  6313. fi
  6314.  
  6315.  
  6316. else
  6317. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  6318. LUA_LIBS=$pkg_cv_LUA_LIBS
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6320. $as_echo "yes" >&6; }
  6321.  
  6322. fi
  6323. else
  6324.  
  6325. pkg_failed=no
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  6327. $as_echo_n "checking for LUA... " >&6; }
  6328.  
  6329. if test -n "$LUA_CFLAGS"; then
  6330. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  6331. elif test -n "$PKG_CONFIG"; then
  6332. if test -n "$PKG_CONFIG" && \
  6333. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
  6334. ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
  6335. ac_status=$?
  6336. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6337. test $ac_status = 0; }; then
  6338. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
  6339. else
  6340. pkg_failed=yes
  6341. fi
  6342. else
  6343. pkg_failed=untried
  6344. fi
  6345. if test -n "$LUA_LIBS"; then
  6346. pkg_cv_LUA_LIBS="$LUA_LIBS"
  6347. elif test -n "$PKG_CONFIG"; then
  6348. if test -n "$PKG_CONFIG" && \
  6349. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
  6350. ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
  6351. ac_status=$?
  6352. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6353. test $ac_status = 0; }; then
  6354. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
  6355. else
  6356. pkg_failed=yes
  6357. fi
  6358. else
  6359. pkg_failed=untried
  6360. fi
  6361.  
  6362.  
  6363.  
  6364. if test $pkg_failed = yes; then
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6366. $as_echo "no" >&6; }
  6367.  
  6368. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6369. _pkg_short_errors_supported=yes
  6370. else
  6371. _pkg_short_errors_supported=no
  6372. fi
  6373. if test $_pkg_short_errors_supported = yes; then
  6374. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
  6375. else
  6376. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
  6377. fi
  6378. # Put the nasty error message in config.log where it belongs
  6379. echo "$LUA_PKG_ERRORS" >&5
  6380.  
  6381.  
  6382. for ac_header in lua.h
  6383. do :
  6384. ac_fn_cxx_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
  6385. if test "x$ac_cv_header_lua_h" = x""yes; then :
  6386. cat >>confdefs.h <<_ACEOF
  6387. #define HAVE_LUA_H 1
  6388. _ACEOF
  6389.  
  6390. else
  6391.  
  6392. OPTIONAL_FLAGS="$OPTIONAL_FLAGS -D__ALT_LUA_PATH__"
  6393. for ac_header in lua5.1/lua.h
  6394. do :
  6395. ac_fn_cxx_check_header_mongrel "$LINENO" "lua5.1/lua.h" "ac_cv_header_lua5_1_lua_h" "$ac_includes_default"
  6396. if test "x$ac_cv_header_lua5_1_lua_h" = x""yes; then :
  6397. cat >>confdefs.h <<_ACEOF
  6398. #define HAVE_LUA5_1_LUA_H 1
  6399. _ACEOF
  6400.  
  6401. else
  6402. as_fn_error $? "\"Lua header not found.\"" "$LINENO" 5
  6403. fi
  6404.  
  6405. done
  6406.  
  6407.  
  6408. fi
  6409.  
  6410. done
  6411.  
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llua" >&5
  6413. $as_echo_n "checking for main in -llua... " >&6; }
  6414. if test "${ac_cv_lib_lua_main+set}" = set; then :
  6415. $as_echo_n "(cached) " >&6
  6416. else
  6417. ac_check_lib_save_LIBS=$LIBS
  6418. LIBS="-llua $LIBS"
  6419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6420. /* end confdefs.h. */
  6421.  
  6422.  
  6423. int
  6424. main ()
  6425. {
  6426. return main ();
  6427. ;
  6428. return 0;
  6429. }
  6430. _ACEOF
  6431. if ac_fn_cxx_try_link "$LINENO"; then :
  6432. ac_cv_lib_lua_main=yes
  6433. else
  6434. ac_cv_lib_lua_main=no
  6435. fi
  6436. rm -f core conftest.err conftest.$ac_objext \
  6437. conftest$ac_exeext conftest.$ac_ext
  6438. LIBS=$ac_check_lib_save_LIBS
  6439. fi
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_main" >&5
  6441. $as_echo "$ac_cv_lib_lua_main" >&6; }
  6442. if test "x$ac_cv_lib_lua_main" = x""yes; then :
  6443. cat >>confdefs.h <<_ACEOF
  6444. #define HAVE_LIBLUA 1
  6445. _ACEOF
  6446.  
  6447. LIBS="-llua $LIBS"
  6448.  
  6449. else
  6450.  
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llua5.1" >&5
  6452. $as_echo_n "checking for main in -llua5.1... " >&6; }
  6453. if test "${ac_cv_lib_lua5_1_main+set}" = set; then :
  6454. $as_echo_n "(cached) " >&6
  6455. else
  6456. ac_check_lib_save_LIBS=$LIBS
  6457. LIBS="-llua5.1 $LIBS"
  6458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6459. /* end confdefs.h. */
  6460.  
  6461.  
  6462. int
  6463. main ()
  6464. {
  6465. return main ();
  6466. ;
  6467. return 0;
  6468. }
  6469. _ACEOF
  6470. if ac_fn_cxx_try_link "$LINENO"; then :
  6471. ac_cv_lib_lua5_1_main=yes
  6472. else
  6473. ac_cv_lib_lua5_1_main=no
  6474. fi
  6475. rm -f core conftest.err conftest.$ac_objext \
  6476. conftest$ac_exeext conftest.$ac_ext
  6477. LIBS=$ac_check_lib_save_LIBS
  6478. fi
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1_main" >&5
  6480. $as_echo "$ac_cv_lib_lua5_1_main" >&6; }
  6481. if test "x$ac_cv_lib_lua5_1_main" = x""yes; then :
  6482. cat >>confdefs.h <<_ACEOF
  6483. #define HAVE_LIBLUA5_1 1
  6484. _ACEOF
  6485.  
  6486. LIBS="-llua5.1 $LIBS"
  6487.  
  6488. else
  6489. as_fn_error $? "\"Linking against Lua library failed.\"" "$LINENO" 5
  6490. fi
  6491.  
  6492.  
  6493. fi
  6494.  
  6495.  
  6496. elif test $pkg_failed = untried; then
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6498. $as_echo "no" >&6; }
  6499.  
  6500. for ac_header in lua.h
  6501. do :
  6502. ac_fn_cxx_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
  6503. if test "x$ac_cv_header_lua_h" = x""yes; then :
  6504. cat >>confdefs.h <<_ACEOF
  6505. #define HAVE_LUA_H 1
  6506. _ACEOF
  6507.  
  6508. else
  6509.  
  6510. OPTIONAL_FLAGS="$OPTIONAL_FLAGS -D__ALT_LUA_PATH__"
  6511. for ac_header in lua5.1/lua.h
  6512. do :
  6513. ac_fn_cxx_check_header_mongrel "$LINENO" "lua5.1/lua.h" "ac_cv_header_lua5_1_lua_h" "$ac_includes_default"
  6514. if test "x$ac_cv_header_lua5_1_lua_h" = x""yes; then :
  6515. cat >>confdefs.h <<_ACEOF
  6516. #define HAVE_LUA5_1_LUA_H 1
  6517. _ACEOF
  6518.  
  6519. else
  6520. as_fn_error $? "\"Lua header not found.\"" "$LINENO" 5
  6521. fi
  6522.  
  6523. done
  6524.  
  6525.  
  6526. fi
  6527.  
  6528. done
  6529.  
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llua" >&5
  6531. $as_echo_n "checking for main in -llua... " >&6; }
  6532. if test "${ac_cv_lib_lua_main+set}" = set; then :
  6533. $as_echo_n "(cached) " >&6
  6534. else
  6535. ac_check_lib_save_LIBS=$LIBS
  6536. LIBS="-llua $LIBS"
  6537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6538. /* end confdefs.h. */
  6539.  
  6540.  
  6541. int
  6542. main ()
  6543. {
  6544. return main ();
  6545. ;
  6546. return 0;
  6547. }
  6548. _ACEOF
  6549. if ac_fn_cxx_try_link "$LINENO"; then :
  6550. ac_cv_lib_lua_main=yes
  6551. else
  6552. ac_cv_lib_lua_main=no
  6553. fi
  6554. rm -f core conftest.err conftest.$ac_objext \
  6555. conftest$ac_exeext conftest.$ac_ext
  6556. LIBS=$ac_check_lib_save_LIBS
  6557. fi
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_main" >&5
  6559. $as_echo "$ac_cv_lib_lua_main" >&6; }
  6560. if test "x$ac_cv_lib_lua_main" = x""yes; then :
  6561. cat >>confdefs.h <<_ACEOF
  6562. #define HAVE_LIBLUA 1
  6563. _ACEOF
  6564.  
  6565. LIBS="-llua $LIBS"
  6566.  
  6567. else
  6568.  
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llua5.1" >&5
  6570. $as_echo_n "checking for main in -llua5.1... " >&6; }
  6571. if test "${ac_cv_lib_lua5_1_main+set}" = set; then :
  6572. $as_echo_n "(cached) " >&6
  6573. else
  6574. ac_check_lib_save_LIBS=$LIBS
  6575. LIBS="-llua5.1 $LIBS"
  6576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6577. /* end confdefs.h. */
  6578.  
  6579.  
  6580. int
  6581. main ()
  6582. {
  6583. return main ();
  6584. ;
  6585. return 0;
  6586. }
  6587. _ACEOF
  6588. if ac_fn_cxx_try_link "$LINENO"; then :
  6589. ac_cv_lib_lua5_1_main=yes
  6590. else
  6591. ac_cv_lib_lua5_1_main=no
  6592. fi
  6593. rm -f core conftest.err conftest.$ac_objext \
  6594. conftest$ac_exeext conftest.$ac_ext
  6595. LIBS=$ac_check_lib_save_LIBS
  6596. fi
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1_main" >&5
  6598. $as_echo "$ac_cv_lib_lua5_1_main" >&6; }
  6599. if test "x$ac_cv_lib_lua5_1_main" = x""yes; then :
  6600. cat >>confdefs.h <<_ACEOF
  6601. #define HAVE_LIBLUA5_1 1
  6602. _ACEOF
  6603.  
  6604. LIBS="-llua5.1 $LIBS"
  6605.  
  6606. else
  6607. as_fn_error $? "\"Linking against Lua library failed.\"" "$LINENO" 5
  6608. fi
  6609.  
  6610.  
  6611. fi
  6612.  
  6613.  
  6614. else
  6615. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  6616. LUA_LIBS=$pkg_cv_LUA_LIBS
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6618. $as_echo "yes" >&6; }
  6619.  
  6620. fi
  6621. fi
  6622.  
  6623.  
  6624.  
  6625.  
  6626.  
  6627. if test "$useMySQL" = "no" ; then
  6628. if test "$useMySQLpp" = "no" ; then
  6629. if test "$useSQLite" = "no" ; then
  6630. if test "$usePostgreSQL" = "no" ; then
  6631. if true; then
  6632. USE_SQLITE_TRUE=
  6633. USE_SQLITE_FALSE='#'
  6634. else
  6635. USE_SQLITE_TRUE='#'
  6636. USE_SQLITE_FALSE=
  6637. fi
  6638.  
  6639. SQLITE_FLAGS=-D__USE_SQLITE__
  6640.  
  6641. useSQLite=yes
  6642.  
  6643. echo WARNING: Any of available database drivers was enabled, using SQLite as default. To enable a database driver, configure with --enable-\<driver\> \(example: --enable-mysqlpp\)
  6644. echo
  6645. fi
  6646. fi
  6647. fi
  6648. fi
  6649.  
  6650. # check for mysql if it is enabled
  6651. if test -n "$MYSQL_FLAGS"; then
  6652. for ac_header in mysql/mysql.h
  6653. do :
  6654. ac_fn_cxx_check_header_mongrel "$LINENO" "mysql/mysql.h" "ac_cv_header_mysql_mysql_h" "$ac_includes_default"
  6655. if test "x$ac_cv_header_mysql_mysql_h" = x""yes; then :
  6656. cat >>confdefs.h <<_ACEOF
  6657. #define HAVE_MYSQL_MYSQL_H 1
  6658. _ACEOF
  6659. MYSQL_LIBS=-lmysqlclient
  6660. else
  6661. as_fn_error $? "\"MySQL headers missing.\"" "$LINENO" 5
  6662. fi
  6663.  
  6664. done
  6665.  
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
  6667. $as_echo_n "checking for main in -lmysqlclient... " >&6; }
  6668. if test "${ac_cv_lib_mysqlclient_main+set}" = set; then :
  6669. $as_echo_n "(cached) " >&6
  6670. else
  6671. ac_check_lib_save_LIBS=$LIBS
  6672. LIBS="-lmysqlclient $LIBS"
  6673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6674. /* end confdefs.h. */
  6675.  
  6676.  
  6677. int
  6678. main ()
  6679. {
  6680. return main ();
  6681. ;
  6682. return 0;
  6683. }
  6684. _ACEOF
  6685. if ac_fn_cxx_try_link "$LINENO"; then :
  6686. ac_cv_lib_mysqlclient_main=yes
  6687. else
  6688. ac_cv_lib_mysqlclient_main=no
  6689. fi
  6690. rm -f core conftest.err conftest.$ac_objext \
  6691. conftest$ac_exeext conftest.$ac_ext
  6692. LIBS=$ac_check_lib_save_LIBS
  6693. fi
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
  6695. $as_echo "$ac_cv_lib_mysqlclient_main" >&6; }
  6696. if test "x$ac_cv_lib_mysqlclient_main" = x""yes; then :
  6697. cat >>confdefs.h <<_ACEOF
  6698. #define HAVE_LIBMYSQLCLIENT 1
  6699. _ACEOF
  6700.  
  6701. LIBS="-lmysqlclient $LIBS"
  6702.  
  6703. else
  6704.  
  6705. if test -d /usr/lib64/mysql ; then
  6706. echo "NOTICE -- Copying mysqlclient files into the /usr/lib64 directory."
  6707. echo "NOTICE -- If mysqlclient is not found, please re-run the configure script."
  6708. cp -Rsf /usr/lib64/mysql/libmysqlclient* /usr/lib64
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
  6710. $as_echo_n "checking for main in -lmysqlclient... " >&6; }
  6711. if test "${ac_cv_lib_mysqlclient_main+set}" = set; then :
  6712. $as_echo_n "(cached) " >&6
  6713. else
  6714. ac_check_lib_save_LIBS=$LIBS
  6715. LIBS="-lmysqlclient $LIBS"
  6716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6717. /* end confdefs.h. */
  6718.  
  6719.  
  6720. int
  6721. main ()
  6722. {
  6723. return main ();
  6724. ;
  6725. return 0;
  6726. }
  6727. _ACEOF
  6728. if ac_fn_cxx_try_link "$LINENO"; then :
  6729. ac_cv_lib_mysqlclient_main=yes
  6730. else
  6731. ac_cv_lib_mysqlclient_main=no
  6732. fi
  6733. rm -f core conftest.err conftest.$ac_objext \
  6734. conftest$ac_exeext conftest.$ac_ext
  6735. LIBS=$ac_check_lib_save_LIBS
  6736. fi
  6737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
  6738. $as_echo "$ac_cv_lib_mysqlclient_main" >&6; }
  6739. if test "x$ac_cv_lib_mysqlclient_main" = x""yes; then :
  6740. cat >>confdefs.h <<_ACEOF
  6741. #define HAVE_LIBMYSQLCLIENT 1
  6742. _ACEOF
  6743.  
  6744. LIBS="-lmysqlclient $LIBS"
  6745.  
  6746. else
  6747. as_fn_error $? "\"Linking against mysqlclient failed.\"" "$LINENO" 5
  6748. fi
  6749.  
  6750. elif test -d /usr/lib/mysql ; then
  6751. echo "NOTICE -- Copying mysqlclient files into the /usr/lib directory."
  6752. echo "NOTICE -- If mysqlclient is not found, please re-run the configure script."
  6753. cp -Rsf /usr/lib/mysql/libmysqlclient* /usr/lib
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
  6755. $as_echo_n "checking for main in -lmysqlclient... " >&6; }
  6756. if test "${ac_cv_lib_mysqlclient_main+set}" = set; then :
  6757. $as_echo_n "(cached) " >&6
  6758. else
  6759. ac_check_lib_save_LIBS=$LIBS
  6760. LIBS="-lmysqlclient $LIBS"
  6761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6762. /* end confdefs.h. */
  6763.  
  6764.  
  6765. int
  6766. main ()
  6767. {
  6768. return main ();
  6769. ;
  6770. return 0;
  6771. }
  6772. _ACEOF
  6773. if ac_fn_cxx_try_link "$LINENO"; then :
  6774. ac_cv_lib_mysqlclient_main=yes
  6775. else
  6776. ac_cv_lib_mysqlclient_main=no
  6777. fi
  6778. rm -f core conftest.err conftest.$ac_objext \
  6779. conftest$ac_exeext conftest.$ac_ext
  6780. LIBS=$ac_check_lib_save_LIBS
  6781. fi
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
  6783. $as_echo "$ac_cv_lib_mysqlclient_main" >&6; }
  6784. if test "x$ac_cv_lib_mysqlclient_main" = x""yes; then :
  6785. cat >>confdefs.h <<_ACEOF
  6786. #define HAVE_LIBMYSQLCLIENT 1
  6787. _ACEOF
  6788.  
  6789. LIBS="-lmysqlclient $LIBS"
  6790.  
  6791. else
  6792. as_fn_error $? "\"Linking against mysqlclient failed.\"" "$LINENO" 5
  6793. fi
  6794.  
  6795. else
  6796. as_fn_error $? "\"Linking against mysql-client failed.\"" "$LINENO" 5
  6797. fi
  6798.  
  6799. fi
  6800.  
  6801.  
  6802.  
  6803. fi
  6804.  
  6805. # check for mysqlcppconn if it is enabled
  6806. if test -n "$MYSQLPP_FLAGS"; then
  6807. for ac_header in cppconn/config.h
  6808. do :
  6809. ac_fn_cxx_check_header_mongrel "$LINENO" "cppconn/config.h" "ac_cv_header_cppconn_config_h" "$ac_includes_default"
  6810. if test "x$ac_cv_header_cppconn_config_h" = x""yes; then :
  6811. cat >>confdefs.h <<_ACEOF
  6812. #define HAVE_CPPCONN_CONFIG_H 1
  6813. _ACEOF
  6814. MYSQLPP_LIBS=-lmysqlcppconn
  6815. else
  6816. as_fn_error $? "\"MySQL++Connector headers missing.\"" "$LINENO" 5
  6817. fi
  6818.  
  6819. done
  6820.  
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlcppconn" >&5
  6822. $as_echo_n "checking for main in -lmysqlcppconn... " >&6; }
  6823. if test "${ac_cv_lib_mysqlcppconn_main+set}" = set; then :
  6824. $as_echo_n "(cached) " >&6
  6825. else
  6826. ac_check_lib_save_LIBS=$LIBS
  6827. LIBS="-lmysqlcppconn $LIBS"
  6828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6829. /* end confdefs.h. */
  6830.  
  6831.  
  6832. int
  6833. main ()
  6834. {
  6835. return main ();
  6836. ;
  6837. return 0;
  6838. }
  6839. _ACEOF
  6840. if ac_fn_cxx_try_link "$LINENO"; then :
  6841. ac_cv_lib_mysqlcppconn_main=yes
  6842. else
  6843. ac_cv_lib_mysqlcppconn_main=no
  6844. fi
  6845. rm -f core conftest.err conftest.$ac_objext \
  6846. conftest$ac_exeext conftest.$ac_ext
  6847. LIBS=$ac_check_lib_save_LIBS
  6848. fi
  6849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlcppconn_main" >&5
  6850. $as_echo "$ac_cv_lib_mysqlcppconn_main" >&6; }
  6851. if test "x$ac_cv_lib_mysqlcppconn_main" = x""yes; then :
  6852. cat >>confdefs.h <<_ACEOF
  6853. #define HAVE_LIBMYSQLCPPCONN 1
  6854. _ACEOF
  6855.  
  6856. LIBS="-lmysqlcppconn $LIBS"
  6857.  
  6858. else
  6859. as_fn_error $? "\"Linking against libmysqlcppconn failed.\"" "$LINENO" 5
  6860. fi
  6861.  
  6862.  
  6863. fi
  6864.  
  6865. # check for postgresql if it is enabled
  6866. if test -n "$PGSQL_FLAGS"; then
  6867. for ac_header in `pg_config --includedir`/libpq-fe.h
  6868. do :
  6869. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6870. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6871. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6872. cat >>confdefs.h <<_ACEOF
  6873. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6874. _ACEOF
  6875. PGSQL_LIBS=-lpg
  6876. else
  6877. as_fn_error $? "\"PostgreSQL headers missing.\"" "$LINENO" 5
  6878. fi
  6879.  
  6880. done
  6881.  
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpq" >&5
  6883. $as_echo_n "checking for main in -lpq... " >&6; }
  6884. if test "${ac_cv_lib_pq_main+set}" = set; then :
  6885. $as_echo_n "(cached) " >&6
  6886. else
  6887. ac_check_lib_save_LIBS=$LIBS
  6888. LIBS="-lpq $LIBS"
  6889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6890. /* end confdefs.h. */
  6891.  
  6892.  
  6893. int
  6894. main ()
  6895. {
  6896. return main ();
  6897. ;
  6898. return 0;
  6899. }
  6900. _ACEOF
  6901. if ac_fn_cxx_try_link "$LINENO"; then :
  6902. ac_cv_lib_pq_main=yes
  6903. else
  6904. ac_cv_lib_pq_main=no
  6905. fi
  6906. rm -f core conftest.err conftest.$ac_objext \
  6907. conftest$ac_exeext conftest.$ac_ext
  6908. LIBS=$ac_check_lib_save_LIBS
  6909. fi
  6910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_main" >&5
  6911. $as_echo "$ac_cv_lib_pq_main" >&6; }
  6912. if test "x$ac_cv_lib_pq_main" = x""yes; then :
  6913. cat >>confdefs.h <<_ACEOF
  6914. #define HAVE_LIBPQ 1
  6915. _ACEOF
  6916.  
  6917. LIBS="-lpq $LIBS"
  6918.  
  6919. else
  6920. as_fn_error $? "\"Linking against libpq failed.\"" "$LINENO" 5
  6921. fi
  6922.  
  6923.  
  6924. fi
  6925.  
  6926. # check for sqlite if it is enabled
  6927. if test -n "$SQLITE_FLAGS"; then
  6928. for ac_header in sqlite3.h
  6929. do :
  6930. ac_fn_cxx_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
  6931. if test "x$ac_cv_header_sqlite3_h" = x""yes; then :
  6932. cat >>confdefs.h <<_ACEOF
  6933. #define HAVE_SQLITE3_H 1
  6934. _ACEOF
  6935. SQLITE_LIBS=-lsqlite3
  6936. else
  6937. as_fn_error $? "\"SQLite3 headers missing.\"" "$LINENO" 5
  6938. fi
  6939.  
  6940. done
  6941.  
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsqlite3" >&5
  6943. $as_echo_n "checking for main in -lsqlite3... " >&6; }
  6944. if test "${ac_cv_lib_sqlite3_main+set}" = set; then :
  6945. $as_echo_n "(cached) " >&6
  6946. else
  6947. ac_check_lib_save_LIBS=$LIBS
  6948. LIBS="-lsqlite3 $LIBS"
  6949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6950. /* end confdefs.h. */
  6951.  
  6952.  
  6953. int
  6954. main ()
  6955. {
  6956. return main ();
  6957. ;
  6958. return 0;
  6959. }
  6960. _ACEOF
  6961. if ac_fn_cxx_try_link "$LINENO"; then :
  6962. ac_cv_lib_sqlite3_main=yes
  6963. else
  6964. ac_cv_lib_sqlite3_main=no
  6965. fi
  6966. rm -f core conftest.err conftest.$ac_objext \
  6967. conftest$ac_exeext conftest.$ac_ext
  6968. LIBS=$ac_check_lib_save_LIBS
  6969. fi
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_main" >&5
  6971. $as_echo "$ac_cv_lib_sqlite3_main" >&6; }
  6972. if test "x$ac_cv_lib_sqlite3_main" = x""yes; then :
  6973. cat >>confdefs.h <<_ACEOF
  6974. #define HAVE_LIBSQLITE3 1
  6975. _ACEOF
  6976.  
  6977. LIBS="-lsqlite3 $LIBS"
  6978.  
  6979. else
  6980. as_fn_error $? "\"Linking against sqlite3 failed.\"" "$LINENO" 5
  6981. fi
  6982.  
  6983.  
  6984. fi
  6985.  
  6986. ac_config_files="$ac_config_files Makefile"
  6987.  
  6988. cat >confcache <<\_ACEOF
  6989. # This file is a shell script that caches the results of configure
  6990. # tests run on this system so they can be shared between configure
  6991. # scripts and configure runs, see configure's option --config-cache.
  6992. # It is not useful on other systems. If it contains results you don't
  6993. # want to keep, you may remove or edit it.
  6994. #
  6995. # config.status only pays attention to the cache file if you give it
  6996. # the --recheck option to rerun configure.
  6997. #
  6998. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6999. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7000. # following values.
  7001.  
  7002. _ACEOF
  7003.  
  7004. # The following way of writing the cache mishandles newlines in values,
  7005. # but we know of no workaround that is simple, portable, and efficient.
  7006. # So, we kill variables containing newlines.
  7007. # Ultrix sh set writes to stderr and can't be redirected directly,
  7008. # and sets the high bit in the cache file unless we assign to the vars.
  7009. (
  7010. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7011. eval ac_val=\$$ac_var
  7012. case $ac_val in #(
  7013. *${as_nl}*)
  7014. case $ac_var in #(
  7015. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7016. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7017. esac
  7018. case $ac_var in #(
  7019. _ | IFS | as_nl) ;; #(
  7020. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7021. *) { eval $ac_var=; unset $ac_var;} ;;
  7022. esac ;;
  7023. esac
  7024. done
  7025.  
  7026. (set) 2>&1 |
  7027. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7028. *${as_nl}ac_space=\ *)
  7029. # `set' does not quote correctly, so add quotes: double-quote
  7030. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7031. sed -n \
  7032. "s/'/'\\\\''/g;
  7033. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7034. ;; #(
  7035. *)
  7036. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7037. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7038. ;;
  7039. esac |
  7040. sort
  7041. ) |
  7042. sed '
  7043. /^ac_cv_env_/b end
  7044. t clear
  7045. :clear
  7046. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7047. t end
  7048. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7049. :end' >>confcache
  7050. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7051. if test -w "$cache_file"; then
  7052. test "x$cache_file" != "x/dev/null" &&
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7054. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7055. cat confcache >$cache_file
  7056. else
  7057. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7058. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7059. fi
  7060. fi
  7061. rm -f confcache
  7062.  
  7063. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7064. # Let make expand exec_prefix.
  7065. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7066.  
  7067. DEFS=-DHAVE_CONFIG_H
  7068.  
  7069. ac_libobjs=
  7070. ac_ltlibobjs=
  7071. U=
  7072. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7073. # 1. Remove the extension, and $U if already installed.
  7074. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7075. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7076. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7077. # will be set to the directory where LIBOBJS objects are built.
  7078. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7079. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7080. done
  7081. LIBOBJS=$ac_libobjs
  7082.  
  7083. LTLIBOBJS=$ac_ltlibobjs
  7084.  
  7085.  
  7086. if test -n "$EXEEXT"; then
  7087. am__EXEEXT_TRUE=
  7088. am__EXEEXT_FALSE='#'
  7089. else
  7090. am__EXEEXT_TRUE='#'
  7091. am__EXEEXT_FALSE=
  7092. fi
  7093.  
  7094. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  7095. as_fn_error $? "conditional \"AMDEP\" was never defined.
  7096. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7097. fi
  7098. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  7099. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  7100. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7101. fi
  7102. if test -z "${LOGIN_SERVER_TRUE}" && test -z "${LOGIN_SERVER_FALSE}"; then
  7103. as_fn_error $? "conditional \"LOGIN_SERVER\" was never defined.
  7104. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7105. fi
  7106. if test -z "${LOGIN_SERVER_TRUE}" && test -z "${LOGIN_SERVER_FALSE}"; then
  7107. as_fn_error $? "conditional \"LOGIN_SERVER\" was never defined.
  7108. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7109. fi
  7110. if test -z "${OT_ADMIN_TRUE}" && test -z "${OT_ADMIN_FALSE}"; then
  7111. as_fn_error $? "conditional \"OT_ADMIN\" was never defined.
  7112. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7113. fi
  7114. if test -z "${OT_ADMIN_TRUE}" && test -z "${OT_ADMIN_FALSE}"; then
  7115. as_fn_error $? "conditional \"OT_ADMIN\" was never defined.
  7116. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7117. fi
  7118. if test -z "${USE_MYSQL_TRUE}" && test -z "${USE_MYSQL_FALSE}"; then
  7119. as_fn_error $? "conditional \"USE_MYSQL\" was never defined.
  7120. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7121. fi
  7122. if test -z "${USE_MYSQLPP_TRUE}" && test -z "${USE_MYSQLPP_FALSE}"; then
  7123. as_fn_error $? "conditional \"USE_MYSQLPP\" was never defined.
  7124. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7125. fi
  7126. if test -z "${USE_PGSQL_TRUE}" && test -z "${USE_PGSQL_FALSE}"; then
  7127. as_fn_error $? "conditional \"USE_PGSQL\" was never defined.
  7128. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7129. fi
  7130. if test -z "${USE_SQLITE_TRUE}" && test -z "${USE_SQLITE_FALSE}"; then
  7131. as_fn_error $? "conditional \"USE_SQLITE\" was never defined.
  7132. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7133. fi
  7134. if test -z "${USE_MYSQL_TRUE}" && test -z "${USE_MYSQL_FALSE}"; then
  7135. as_fn_error $? "conditional \"USE_MYSQL\" was never defined.
  7136. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7137. fi
  7138. if test -z "${USE_MYSQLPP_TRUE}" && test -z "${USE_MYSQLPP_FALSE}"; then
  7139. as_fn_error $? "conditional \"USE_MYSQLPP\" was never defined.
  7140. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7141. fi
  7142. if test -z "${USE_PGSQL_TRUE}" && test -z "${USE_PGSQL_FALSE}"; then
  7143. as_fn_error $? "conditional \"USE_PGSQL\" was never defined.
  7144. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7145. fi
  7146. if test -z "${USE_SQLITE_TRUE}" && test -z "${USE_SQLITE_FALSE}"; then
  7147. as_fn_error $? "conditional \"USE_SQLITE\" was never defined.
  7148. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7149. fi
  7150. if test -z "${USE_SQLITE_TRUE}" && test -z "${USE_SQLITE_FALSE}"; then
  7151. as_fn_error $? "conditional \"USE_SQLITE\" was never defined.
  7152. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7153. fi
  7154.  
  7155. : ${CONFIG_STATUS=./config.status}
  7156. ac_write_fail=0
  7157. ac_clean_files_save=$ac_clean_files
  7158. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7159. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7160. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7161. as_write_fail=0
  7162. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7163. #! $SHELL
  7164. # Generated by $as_me.
  7165. # Run this file to recreate the current configuration.
  7166. # Compiler output produced by configure, useful for debugging
  7167. # configure, is in config.log if it exists.
  7168.  
  7169. debug=false
  7170. ac_cs_recheck=false
  7171. ac_cs_silent=false
  7172.  
  7173. SHELL=\${CONFIG_SHELL-$SHELL}
  7174. export SHELL
  7175. _ASEOF
  7176. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7177. ## -------------------- ##
  7178. ## M4sh Initialization. ##
  7179. ## -------------------- ##
  7180.  
  7181. # Be more Bourne compatible
  7182. DUALCASE=1; export DUALCASE # for MKS sh
  7183. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7184. emulate sh
  7185. NULLCMD=:
  7186. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7187. # is contrary to our usage. Disable this feature.
  7188. alias -g '${1+"$@"}'='"$@"'
  7189. setopt NO_GLOB_SUBST
  7190. else
  7191. case `(set -o) 2>/dev/null` in #(
  7192. *posix*) :
  7193. set -o posix ;; #(
  7194. *) :
  7195. ;;
  7196. esac
  7197. fi
  7198.  
  7199.  
  7200. as_nl='
  7201. '
  7202. export as_nl
  7203. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  7204. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7205. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7206. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7207. # Prefer a ksh shell builtin over an external printf program on Solaris,
  7208. # but without wasting forks for bash or zsh.
  7209. if test -z "$BASH_VERSION$ZSH_VERSION" \
  7210. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  7211. as_echo='print -r --'
  7212. as_echo_n='print -rn --'
  7213. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  7214. as_echo='printf %s\n'
  7215. as_echo_n='printf %s'
  7216. else
  7217. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  7218. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  7219. as_echo_n='/usr/ucb/echo -n'
  7220. else
  7221. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  7222. as_echo_n_body='eval
  7223. arg=$1;
  7224. case $arg in #(
  7225. *"$as_nl"*)
  7226. expr "X$arg" : "X\\(.*\\)$as_nl";
  7227. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  7228. esac;
  7229. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  7230. '
  7231. export as_echo_n_body
  7232. as_echo_n='sh -c $as_echo_n_body as_echo'
  7233. fi
  7234. export as_echo_body
  7235. as_echo='sh -c $as_echo_body as_echo'
  7236. fi
  7237.  
  7238. # The user is always right.
  7239. if test "${PATH_SEPARATOR+set}" != set; then
  7240. PATH_SEPARATOR=:
  7241. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  7242. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  7243. PATH_SEPARATOR=';'
  7244. }
  7245. fi
  7246.  
  7247.  
  7248. # IFS
  7249. # We need space, tab and new line, in precisely that order. Quoting is
  7250. # there to prevent editors from complaining about space-tab.
  7251. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7252. # splitting by setting IFS to empty value.)
  7253. IFS=" "" $as_nl"
  7254.  
  7255. # Find who we are. Look in the path if we contain no directory separator.
  7256. case $0 in #((
  7257. *[\\/]* ) as_myself=$0 ;;
  7258. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7259. for as_dir in $PATH
  7260. do
  7261. IFS=$as_save_IFS
  7262. test -z "$as_dir" && as_dir=.
  7263. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7264. done
  7265. IFS=$as_save_IFS
  7266.  
  7267. ;;
  7268. esac
  7269. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7270. # in which case we are not to be found in the path.
  7271. if test "x$as_myself" = x; then
  7272. as_myself=$0
  7273. fi
  7274. if test ! -f "$as_myself"; then
  7275. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7276. exit 1
  7277. fi
  7278.  
  7279. # Unset variables that we do not need and which cause bugs (e.g. in
  7280. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  7281. # suppresses any "Segmentation fault" message there. '((' could
  7282. # trigger a bug in pdksh 5.2.14.
  7283. for as_var in BASH_ENV ENV MAIL MAILPATH
  7284. do eval test x\${$as_var+set} = xset \
  7285. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  7286. done
  7287. PS1='$ '
  7288. PS2='> '
  7289. PS4='+ '
  7290.  
  7291. # NLS nuisances.
  7292. LC_ALL=C
  7293. export LC_ALL
  7294. LANGUAGE=C
  7295. export LANGUAGE
  7296.  
  7297. # CDPATH.
  7298. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7299.  
  7300.  
  7301. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  7302. # ----------------------------------------
  7303. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  7304. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  7305. # script with STATUS, using 1 if that was 0.
  7306. as_fn_error ()
  7307. {
  7308. as_status=$1; test $as_status -eq 0 && as_status=1
  7309. if test "$4"; then
  7310. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7311. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  7312. fi
  7313. $as_echo "$as_me: error: $2" >&2
  7314. as_fn_exit $as_status
  7315. } # as_fn_error
  7316.  
  7317.  
  7318. # as_fn_set_status STATUS
  7319. # -----------------------
  7320. # Set $? to STATUS, without forking.
  7321. as_fn_set_status ()
  7322. {
  7323. return $1
  7324. } # as_fn_set_status
  7325.  
  7326. # as_fn_exit STATUS
  7327. # -----------------
  7328. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  7329. as_fn_exit ()
  7330. {
  7331. set +e
  7332. as_fn_set_status $1
  7333. exit $1
  7334. } # as_fn_exit
  7335.  
  7336. # as_fn_unset VAR
  7337. # ---------------
  7338. # Portably unset VAR.
  7339. as_fn_unset ()
  7340. {
  7341. { eval $1=; unset $1;}
  7342. }
  7343. as_unset=as_fn_unset
  7344. # as_fn_append VAR VALUE
  7345. # ----------------------
  7346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  7347. # advantage of any shell optimizations that allow amortized linear growth over
  7348. # repeated appends, instead of the typical quadratic growth present in naive
  7349. # implementations.
  7350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  7351. eval 'as_fn_append ()
  7352. {
  7353. eval $1+=\$2
  7354. }'
  7355. else
  7356. as_fn_append ()
  7357. {
  7358. eval $1=\$$1\$2
  7359. }
  7360. fi # as_fn_append
  7361.  
  7362. # as_fn_arith ARG...
  7363. # ------------------
  7364. # Perform arithmetic evaluation on the ARGs, and store the result in the
  7365. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  7366. # must be portable across $(()) and expr.
  7367. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  7368. eval 'as_fn_arith ()
  7369. {
  7370. as_val=$(( $* ))
  7371. }'
  7372. else
  7373. as_fn_arith ()
  7374. {
  7375. as_val=`expr "$@" || test $? -eq 1`
  7376. }
  7377. fi # as_fn_arith
  7378.  
  7379.  
  7380. if expr a : '\(a\)' >/dev/null 2>&1 &&
  7381. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  7382. as_expr=expr
  7383. else
  7384. as_expr=false
  7385. fi
  7386.  
  7387. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  7388. as_basename=basename
  7389. else
  7390. as_basename=false
  7391. fi
  7392.  
  7393. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  7394. as_dirname=dirname
  7395. else
  7396. as_dirname=false
  7397. fi
  7398.  
  7399. as_me=`$as_basename -- "$0" ||
  7400. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7401. X"$0" : 'X\(//\)$' \| \
  7402. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7403. $as_echo X/"$0" |
  7404. sed '/^.*\/\([^/][^/]*\)\/*$/{
  7405. s//\1/
  7406. q
  7407. }
  7408. /^X\/\(\/\/\)$/{
  7409. s//\1/
  7410. q
  7411. }
  7412. /^X\/\(\/\).*/{
  7413. s//\1/
  7414. q
  7415. }
  7416. s/.*/./; q'`
  7417.  
  7418. # Avoid depending upon Character Ranges.
  7419. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7420. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7421. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7422. as_cr_digits='0123456789'
  7423. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7424.  
  7425. ECHO_C= ECHO_N= ECHO_T=
  7426. case `echo -n x` in #(((((
  7427. -n*)
  7428. case `echo 'xy\c'` in
  7429. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  7430. xy) ECHO_C='\c';;
  7431. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7432. ECHO_T=' ';;
  7433. esac;;
  7434. *)
  7435. ECHO_N='-n';;
  7436. esac
  7437.  
  7438. rm -f conf$$ conf$$.exe conf$$.file
  7439. if test -d conf$$.dir; then
  7440. rm -f conf$$.dir/conf$$.file
  7441. else
  7442. rm -f conf$$.dir
  7443. mkdir conf$$.dir 2>/dev/null
  7444. fi
  7445. if (echo >conf$$.file) 2>/dev/null; then
  7446. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7447. as_ln_s='ln -s'
  7448. # ... but there are two gotchas:
  7449. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  7450. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  7451. # In both cases, we have to default to `cp -p'.
  7452. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  7453. as_ln_s='cp -p'
  7454. elif ln conf$$.file conf$$ 2>/dev/null; then
  7455. as_ln_s=ln
  7456. else
  7457. as_ln_s='cp -p'
  7458. fi
  7459. else
  7460. as_ln_s='cp -p'
  7461. fi
  7462. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  7463. rmdir conf$$.dir 2>/dev/null
  7464.  
  7465.  
  7466. # as_fn_mkdir_p
  7467. # -------------
  7468. # Create "$as_dir" as a directory, including parents if necessary.
  7469. as_fn_mkdir_p ()
  7470. {
  7471.  
  7472. case $as_dir in #(
  7473. -*) as_dir=./$as_dir;;
  7474. esac
  7475. test -d "$as_dir" || eval $as_mkdir_p || {
  7476. as_dirs=
  7477. while :; do
  7478. case $as_dir in #(
  7479. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7480. *) as_qdir=$as_dir;;
  7481. esac
  7482. as_dirs="'$as_qdir' $as_dirs"
  7483. as_dir=`$as_dirname -- "$as_dir" ||
  7484. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7485. X"$as_dir" : 'X\(//\)[^/]' \| \
  7486. X"$as_dir" : 'X\(//\)$' \| \
  7487. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7488. $as_echo X"$as_dir" |
  7489. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7490. s//\1/
  7491. q
  7492. }
  7493. /^X\(\/\/\)[^/].*/{
  7494. s//\1/
  7495. q
  7496. }
  7497. /^X\(\/\/\)$/{
  7498. s//\1/
  7499. q
  7500. }
  7501. /^X\(\/\).*/{
  7502. s//\1/
  7503. q
  7504. }
  7505. s/.*/./; q'`
  7506. test -d "$as_dir" && break
  7507. done
  7508. test -z "$as_dirs" || eval "mkdir $as_dirs"
  7509. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  7510.  
  7511.  
  7512. } # as_fn_mkdir_p
  7513. if mkdir -p . 2>/dev/null; then
  7514. as_mkdir_p='mkdir -p "$as_dir"'
  7515. else
  7516. test -d ./-p && rmdir ./-p
  7517. as_mkdir_p=false
  7518. fi
  7519.  
  7520. if test -x / >/dev/null 2>&1; then
  7521. as_test_x='test -x'
  7522. else
  7523. if ls -dL / >/dev/null 2>&1; then
  7524. as_ls_L_option=L
  7525. else
  7526. as_ls_L_option=
  7527. fi
  7528. as_test_x='
  7529. eval sh -c '\''
  7530. if test -d "$1"; then
  7531. test -d "$1/.";
  7532. else
  7533. case $1 in #(
  7534. -*)set "./$1";;
  7535. esac;
  7536. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  7537. ???[sx]*):;;*)false;;esac;fi
  7538. '\'' sh
  7539. '
  7540. fi
  7541. as_executable_p=$as_test_x
  7542.  
  7543. # Sed expression to map a string onto a valid CPP name.
  7544. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7545.  
  7546. # Sed expression to map a string onto a valid variable name.
  7547. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7548.  
  7549.  
  7550. exec 6>&1
  7551. ## ----------------------------------- ##
  7552. ## Main body of $CONFIG_STATUS script. ##
  7553. ## ----------------------------------- ##
  7554. _ASEOF
  7555. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  7556.  
  7557. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7558. # Save the log message, to keep $0 and so on meaningful, and to
  7559. # report actual input values of CONFIG_FILES etc. instead of their
  7560. # values after options handling.
  7561. ac_log="
  7562. This file was extended by OTXServer $as_me 2.X.Series, which was
  7563. generated by GNU Autoconf 2.67. Invocation command line was
  7564.  
  7565. CONFIG_FILES = $CONFIG_FILES
  7566. CONFIG_HEADERS = $CONFIG_HEADERS
  7567. CONFIG_LINKS = $CONFIG_LINKS
  7568. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7569. $ $0 $@
  7570.  
  7571. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  7572. "
  7573.  
  7574. _ACEOF
  7575.  
  7576. case $ac_config_files in *"
  7577. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  7578. esac
  7579.  
  7580. case $ac_config_headers in *"
  7581. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  7582. esac
  7583.  
  7584.  
  7585. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7586. # Files that config.status was made for.
  7587. config_files="$ac_config_files"
  7588. config_headers="$ac_config_headers"
  7589. config_commands="$ac_config_commands"
  7590.  
  7591. _ACEOF
  7592.  
  7593. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7594. ac_cs_usage="\
  7595. \`$as_me' instantiates files and other configuration actions
  7596. from templates according to the current configuration. Unless the files
  7597. and actions are specified as TAGs, all are instantiated by default.
  7598.  
  7599. Usage: $0 [OPTION]... [TAG]...
  7600.  
  7601. -h, --help print this help, then exit
  7602. -V, --version print version number and configuration settings, then exit
  7603. --config print configuration, then exit
  7604. -q, --quiet, --silent
  7605. do not print progress messages
  7606. -d, --debug don't remove temporary files
  7607. --recheck update $as_me by reconfiguring in the same conditions
  7608. --file=FILE[:TEMPLATE]
  7609. instantiate the configuration file FILE
  7610. --header=FILE[:TEMPLATE]
  7611. instantiate the configuration header FILE
  7612.  
  7613. Configuration files:
  7614. $config_files
  7615.  
  7616. Configuration headers:
  7617. $config_headers
  7618.  
  7619. Configuration commands:
  7620. $config_commands
  7621.  
  7622. Report bugs to the package provider."
  7623.  
  7624. _ACEOF
  7625. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7626. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  7627. ac_cs_version="\\
  7628. OTXServer config.status 2.X.Series
  7629. configured by $0, generated by GNU Autoconf 2.67,
  7630. with options \\"\$ac_cs_config\\"
  7631.  
  7632. Copyright (C) 2010 Free Software Foundation, Inc.
  7633. This config.status script is free software; the Free Software Foundation
  7634. gives unlimited permission to copy, distribute and modify it."
  7635.  
  7636. ac_pwd='$ac_pwd'
  7637. srcdir='$srcdir'
  7638. INSTALL='$INSTALL'
  7639. MKDIR_P='$MKDIR_P'
  7640. AWK='$AWK'
  7641. test -n "\$AWK" || AWK=awk
  7642. _ACEOF
  7643.  
  7644. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7645. # The default lists apply if the user does not specify any file.
  7646. ac_need_defaults=:
  7647. while test $# != 0
  7648. do
  7649. case $1 in
  7650. --*=?*)
  7651. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7652. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7653. ac_shift=:
  7654. ;;
  7655. --*=)
  7656. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7657. ac_optarg=
  7658. ac_shift=:
  7659. ;;
  7660. *)
  7661. ac_option=$1
  7662. ac_optarg=$2
  7663. ac_shift=shift
  7664. ;;
  7665. esac
  7666.  
  7667. case $ac_option in
  7668. # Handling of the options.
  7669. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7670. ac_cs_recheck=: ;;
  7671. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  7672. $as_echo "$ac_cs_version"; exit ;;
  7673. --config | --confi | --conf | --con | --co | --c )
  7674. $as_echo "$ac_cs_config"; exit ;;
  7675. --debug | --debu | --deb | --de | --d | -d )
  7676. debug=: ;;
  7677. --file | --fil | --fi | --f )
  7678. $ac_shift
  7679. case $ac_optarg in
  7680. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7681. '') as_fn_error $? "missing file argument" ;;
  7682. esac
  7683. as_fn_append CONFIG_FILES " '$ac_optarg'"
  7684. ac_need_defaults=false;;
  7685. --header | --heade | --head | --hea )
  7686. $ac_shift
  7687. case $ac_optarg in
  7688. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7689. esac
  7690. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  7691. ac_need_defaults=false;;
  7692. --he | --h)
  7693. # Conflict between --help and --header
  7694. as_fn_error $? "ambiguous option: \`$1'
  7695. Try \`$0 --help' for more information.";;
  7696. --help | --hel | -h )
  7697. $as_echo "$ac_cs_usage"; exit ;;
  7698. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7699. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7700. ac_cs_silent=: ;;
  7701.  
  7702. # This is an error.
  7703. -*) as_fn_error $? "unrecognized option: \`$1'
  7704. Try \`$0 --help' for more information." ;;
  7705.  
  7706. *) as_fn_append ac_config_targets " $1"
  7707. ac_need_defaults=false ;;
  7708.  
  7709. esac
  7710. shift
  7711. done
  7712.  
  7713. ac_configure_extra_args=
  7714.  
  7715. if $ac_cs_silent; then
  7716. exec 6>/dev/null
  7717. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7718. fi
  7719.  
  7720. _ACEOF
  7721. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7722. if \$ac_cs_recheck; then
  7723. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7724. shift
  7725. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7726. CONFIG_SHELL='$SHELL'
  7727. export CONFIG_SHELL
  7728. exec "\$@"
  7729. fi
  7730.  
  7731. _ACEOF
  7732. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7733. exec 5>>config.log
  7734. {
  7735. echo
  7736. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7737. ## Running $as_me. ##
  7738. _ASBOX
  7739. $as_echo "$ac_log"
  7740. } >&5
  7741.  
  7742. _ACEOF
  7743. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7744. #
  7745. # INIT-COMMANDS
  7746. #
  7747. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  7748.  
  7749. _ACEOF
  7750.  
  7751. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7752.  
  7753. # Handling of arguments.
  7754. for ac_config_target in $ac_config_targets
  7755. do
  7756. case $ac_config_target in
  7757. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  7758. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  7759. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7760.  
  7761. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  7762. esac
  7763. done
  7764.  
  7765.  
  7766. # If the user did not use the arguments to specify the items to instantiate,
  7767. # then the envvar interface is used. Set only those that are not.
  7768. # We use the long form for the default assignment because of an extremely
  7769. # bizarre bug on SunOS 4.1.3.
  7770. if $ac_need_defaults; then
  7771. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7772. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7773. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  7774. fi
  7775.  
  7776. # Have a temporary directory for convenience. Make it in the build tree
  7777. # simply because there is no reason against having it here, and in addition,
  7778. # creating and moving files from /tmp can sometimes cause problems.
  7779. # Hook for its removal unless debugging.
  7780. # Note that there is a small window in which the directory will not be cleaned:
  7781. # after its creation but before its name has been assigned to `$tmp'.
  7782. $debug ||
  7783. {
  7784. tmp=
  7785. trap 'exit_status=$?
  7786. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  7787. ' 0
  7788. trap 'as_fn_exit 1' 1 2 13 15
  7789. }
  7790. # Create a (secure) tmp directory for tmp files.
  7791.  
  7792. {
  7793. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7794. test -n "$tmp" && test -d "$tmp"
  7795. } ||
  7796. {
  7797. tmp=./conf$$-$RANDOM
  7798. (umask 077 && mkdir "$tmp")
  7799. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  7800.  
  7801. # Set up the scripts for CONFIG_FILES section.
  7802. # No need to generate them if there are no CONFIG_FILES.
  7803. # This happens for instance with `./config.status config.h'.
  7804. if test -n "$CONFIG_FILES"; then
  7805.  
  7806.  
  7807. ac_cr=`echo X | tr X '\015'`
  7808. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7809. # But we know of no other shell where ac_cr would be empty at this
  7810. # point, so we can use a bashism as a fallback.
  7811. if test "x$ac_cr" = x; then
  7812. eval ac_cr=\$\'\\r\'
  7813. fi
  7814. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7815. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7816. ac_cs_awk_cr='\\r'
  7817. else
  7818. ac_cs_awk_cr=$ac_cr
  7819. fi
  7820.  
  7821. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  7822. _ACEOF
  7823.  
  7824.  
  7825. {
  7826. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7827. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7828. echo "_ACEOF"
  7829. } >conf$$subs.sh ||
  7830. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7831. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7832. ac_delim='%!_!# '
  7833. for ac_last_try in false false false false false :; do
  7834. . ./conf$$subs.sh ||
  7835. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7836.  
  7837. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7838. if test $ac_delim_n = $ac_delim_num; then
  7839. break
  7840. elif $ac_last_try; then
  7841. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7842. else
  7843. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7844. fi
  7845. done
  7846. rm -f conf$$subs.sh
  7847.  
  7848. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7849. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  7850. _ACEOF
  7851. sed -n '
  7852. h
  7853. s/^/S["/; s/!.*/"]=/
  7854. p
  7855. g
  7856. s/^[^!]*!//
  7857. :repl
  7858. t repl
  7859. s/'"$ac_delim"'$//
  7860. t delim
  7861. :nl
  7862. h
  7863. s/\(.\{148\}\)..*/\1/
  7864. t more1
  7865. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7866. p
  7867. n
  7868. b repl
  7869. :more1
  7870. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7871. p
  7872. g
  7873. s/.\{148\}//
  7874. t nl
  7875. :delim
  7876. h
  7877. s/\(.\{148\}\)..*/\1/
  7878. t more2
  7879. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7880. p
  7881. b
  7882. :more2
  7883. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7884. p
  7885. g
  7886. s/.\{148\}//
  7887. t delim
  7888. ' <conf$$subs.awk | sed '
  7889. /^[^""]/{
  7890. N
  7891. s/\n//
  7892. }
  7893. ' >>$CONFIG_STATUS || ac_write_fail=1
  7894. rm -f conf$$subs.awk
  7895. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7896. _ACAWK
  7897. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  7898. for (key in S) S_is_set[key] = 1
  7899. FS = ""
  7900.  
  7901. }
  7902. {
  7903. line = $ 0
  7904. nfields = split(line, field, "@")
  7905. substed = 0
  7906. len = length(field[1])
  7907. for (i = 2; i < nfields; i++) {
  7908. key = field[i]
  7909. keylen = length(key)
  7910. if (S_is_set[key]) {
  7911. value = S[key]
  7912. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7913. len += length(value) + length(field[++i])
  7914. substed = 1
  7915. } else
  7916. len += 1 + keylen
  7917. }
  7918.  
  7919. print line
  7920. }
  7921.  
  7922. _ACAWK
  7923. _ACEOF
  7924. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7925. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7926. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7927. else
  7928. cat
  7929. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  7930. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  7931. _ACEOF
  7932.  
  7933. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  7934. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  7935. # trailing colons and then remove the whole line if VPATH becomes empty
  7936. # (actually we leave an empty line to preserve line numbers).
  7937. if test "x$srcdir" = x.; then
  7938. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  7939. h
  7940. s///
  7941. s/^/:/
  7942. s/[ ]*$/:/
  7943. s/:\$(srcdir):/:/g
  7944. s/:\${srcdir}:/:/g
  7945. s/:@srcdir@:/:/g
  7946. s/^:*//
  7947. s/:*$//
  7948. x
  7949. s/\(=[ ]*\).*/\1/
  7950. G
  7951. s/\n//
  7952. s/^[^=]*=[ ]*$//
  7953. }'
  7954. fi
  7955.  
  7956. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7957. fi # test -n "$CONFIG_FILES"
  7958.  
  7959. # Set up the scripts for CONFIG_HEADERS section.
  7960. # No need to generate them if there are no CONFIG_HEADERS.
  7961. # This happens for instance with `./config.status Makefile'.
  7962. if test -n "$CONFIG_HEADERS"; then
  7963. cat >"$tmp/defines.awk" <<\_ACAWK ||
  7964. BEGIN {
  7965. _ACEOF
  7966.  
  7967. # Transform confdefs.h into an awk script `defines.awk', embedded as
  7968. # here-document in config.status, that substitutes the proper values into
  7969. # config.h.in to produce config.h.
  7970.  
  7971. # Create a delimiter string that does not exist in confdefs.h, to ease
  7972. # handling of long lines.
  7973. ac_delim='%!_!# '
  7974. for ac_last_try in false false :; do
  7975. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  7976. if test -z "$ac_t"; then
  7977. break
  7978. elif $ac_last_try; then
  7979. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  7980. else
  7981. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7982. fi
  7983. done
  7984.  
  7985. # For the awk script, D is an array of macro values keyed by name,
  7986. # likewise P contains macro parameters if any. Preserve backslash
  7987. # newline sequences.
  7988.  
  7989. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7990. sed -n '
  7991. s/.\{148\}/&'"$ac_delim"'/g
  7992. t rset
  7993. :rset
  7994. s/^[ ]*#[ ]*define[ ][ ]*/ /
  7995. t def
  7996. d
  7997. :def
  7998. s/\\$//
  7999. t bsnl
  8000. s/["\\]/\\&/g
  8001. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8002. D["\1"]=" \3"/p
  8003. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8004. d
  8005. :bsnl
  8006. s/["\\]/\\&/g
  8007. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8008. D["\1"]=" \3\\\\\\n"\\/p
  8009. t cont
  8010. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8011. t cont
  8012. d
  8013. :cont
  8014. n
  8015. s/.\{148\}/&'"$ac_delim"'/g
  8016. t clear
  8017. :clear
  8018. s/\\$//
  8019. t bsnlc
  8020. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8021. d
  8022. :bsnlc
  8023. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8024. b cont
  8025. ' <confdefs.h | sed '
  8026. s/'"$ac_delim"'/"\\\
  8027. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8028.  
  8029. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8030. for (key in D) D_is_set[key] = 1
  8031. FS = ""
  8032. }
  8033. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8034. line = \$ 0
  8035. split(line, arg, " ")
  8036. if (arg[1] == "#") {
  8037. defundef = arg[2]
  8038. mac1 = arg[3]
  8039. } else {
  8040. defundef = substr(arg[1], 2)
  8041. mac1 = arg[2]
  8042. }
  8043. split(mac1, mac2, "(") #)
  8044. macro = mac2[1]
  8045. prefix = substr(line, 1, index(line, defundef) - 1)
  8046. if (D_is_set[macro]) {
  8047. # Preserve the white space surrounding the "#".
  8048. print prefix "define", macro P[macro] D[macro]
  8049. next
  8050. } else {
  8051. # Replace #undef with comments. This is necessary, for example,
  8052. # in the case of _POSIX_SOURCE, which is predefined and required
  8053. # on some systems where configure will not decide to define it.
  8054. if (defundef == "undef") {
  8055. print "/*", prefix defundef, macro, "*/"
  8056. next
  8057. }
  8058. }
  8059. }
  8060. { print }
  8061. _ACAWK
  8062. _ACEOF
  8063. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8064. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8065. fi # test -n "$CONFIG_HEADERS"
  8066.  
  8067.  
  8068. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  8069. shift
  8070. for ac_tag
  8071. do
  8072. case $ac_tag in
  8073. :[FHLC]) ac_mode=$ac_tag; continue;;
  8074. esac
  8075. case $ac_mode$ac_tag in
  8076. :[FHL]*:*);;
  8077. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  8078. :[FH]-) ac_tag=-:-;;
  8079. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8080. esac
  8081. ac_save_IFS=$IFS
  8082. IFS=:
  8083. set x $ac_tag
  8084. IFS=$ac_save_IFS
  8085. shift
  8086. ac_file=$1
  8087. shift
  8088.  
  8089. case $ac_mode in
  8090. :L) ac_source=$1;;
  8091. :[FH])
  8092. ac_file_inputs=
  8093. for ac_f
  8094. do
  8095. case $ac_f in
  8096. -) ac_f="$tmp/stdin";;
  8097. *) # Look for the file first in the build tree, then in the source tree
  8098. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8099. # because $ac_f cannot contain `:'.
  8100. test -f "$ac_f" ||
  8101. case $ac_f in
  8102. [\\/$]*) false;;
  8103. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8104. esac ||
  8105. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  8106. esac
  8107. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8108. as_fn_append ac_file_inputs " '$ac_f'"
  8109. done
  8110.  
  8111. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8112. # use $as_me), people would be surprised to read:
  8113. # /* config.h. Generated by config.status. */
  8114. configure_input='Generated from '`
  8115. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8116. `' by configure.'
  8117. if test x"$ac_file" != x-; then
  8118. configure_input="$ac_file. $configure_input"
  8119. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8120. $as_echo "$as_me: creating $ac_file" >&6;}
  8121. fi
  8122. # Neutralize special characters interpreted by sed in replacement strings.
  8123. case $configure_input in #(
  8124. *\&* | *\|* | *\\* )
  8125. ac_sed_conf_input=`$as_echo "$configure_input" |
  8126. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8127. *) ac_sed_conf_input=$configure_input;;
  8128. esac
  8129.  
  8130. case $ac_tag in
  8131. *:-:* | *:-) cat >"$tmp/stdin" \
  8132. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8133. esac
  8134. ;;
  8135. esac
  8136.  
  8137. ac_dir=`$as_dirname -- "$ac_file" ||
  8138. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8139. X"$ac_file" : 'X\(//\)[^/]' \| \
  8140. X"$ac_file" : 'X\(//\)$' \| \
  8141. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8142. $as_echo X"$ac_file" |
  8143. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8144. s//\1/
  8145. q
  8146. }
  8147. /^X\(\/\/\)[^/].*/{
  8148. s//\1/
  8149. q
  8150. }
  8151. /^X\(\/\/\)$/{
  8152. s//\1/
  8153. q
  8154. }
  8155. /^X\(\/\).*/{
  8156. s//\1/
  8157. q
  8158. }
  8159. s/.*/./; q'`
  8160. as_dir="$ac_dir"; as_fn_mkdir_p
  8161. ac_builddir=.
  8162.  
  8163. case "$ac_dir" in
  8164. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8165. *)
  8166. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8167. # A ".." for each directory in $ac_dir_suffix.
  8168. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8169. case $ac_top_builddir_sub in
  8170. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8171. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8172. esac ;;
  8173. esac
  8174. ac_abs_top_builddir=$ac_pwd
  8175. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8176. # for backward compatibility:
  8177. ac_top_builddir=$ac_top_build_prefix
  8178.  
  8179. case $srcdir in
  8180. .) # We are building in place.
  8181. ac_srcdir=.
  8182. ac_top_srcdir=$ac_top_builddir_sub
  8183. ac_abs_top_srcdir=$ac_pwd ;;
  8184. [\\/]* | ?:[\\/]* ) # Absolute name.
  8185. ac_srcdir=$srcdir$ac_dir_suffix;
  8186. ac_top_srcdir=$srcdir
  8187. ac_abs_top_srcdir=$srcdir ;;
  8188. *) # Relative name.
  8189. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8190. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8191. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8192. esac
  8193. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8194.  
  8195.  
  8196. case $ac_mode in
  8197. :F)
  8198. #
  8199. # CONFIG_FILE
  8200. #
  8201.  
  8202. case $INSTALL in
  8203. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  8204. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  8205. esac
  8206. ac_MKDIR_P=$MKDIR_P
  8207. case $MKDIR_P in
  8208. [\\/$]* | ?:[\\/]* ) ;;
  8209. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  8210. esac
  8211. _ACEOF
  8212.  
  8213. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8214. # If the template does not know about datarootdir, expand it.
  8215. # FIXME: This hack should be removed a few years after 2.60.
  8216. ac_datarootdir_hack=; ac_datarootdir_seen=
  8217. ac_sed_dataroot='
  8218. /datarootdir/ {
  8219. p
  8220. q
  8221. }
  8222. /@datadir@/p
  8223. /@docdir@/p
  8224. /@infodir@/p
  8225. /@localedir@/p
  8226. /@mandir@/p'
  8227. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8228. *datarootdir*) ac_datarootdir_seen=yes;;
  8229. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8230. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8231. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8232. _ACEOF
  8233. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8234. ac_datarootdir_hack='
  8235. s&@datadir@&$datadir&g
  8236. s&@docdir@&$docdir&g
  8237. s&@infodir@&$infodir&g
  8238. s&@localedir@&$localedir&g
  8239. s&@mandir@&$mandir&g
  8240. s&\\\${datarootdir}&$datarootdir&g' ;;
  8241. esac
  8242. _ACEOF
  8243.  
  8244. # Neutralize VPATH when `$srcdir' = `.'.
  8245. # Shell code in configure.ac might set extrasub.
  8246. # FIXME: do we really want to maintain this feature?
  8247. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8248. ac_sed_extra="$ac_vpsub
  8249. $extrasub
  8250. _ACEOF
  8251. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8252. :t
  8253. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8254. s|@configure_input@|$ac_sed_conf_input|;t t
  8255. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8256. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8257. s&@srcdir@&$ac_srcdir&;t t
  8258. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8259. s&@top_srcdir@&$ac_top_srcdir&;t t
  8260. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8261. s&@builddir@&$ac_builddir&;t t
  8262. s&@abs_builddir@&$ac_abs_builddir&;t t
  8263. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8264. s&@INSTALL@&$ac_INSTALL&;t t
  8265. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  8266. $ac_datarootdir_hack
  8267. "
  8268. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  8269. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8270.  
  8271. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8272. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  8273. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  8274. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8275. which seems to be undefined. Please make sure it is defined" >&5
  8276. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8277. which seems to be undefined. Please make sure it is defined" >&2;}
  8278.  
  8279. rm -f "$tmp/stdin"
  8280. case $ac_file in
  8281. -) cat "$tmp/out" && rm -f "$tmp/out";;
  8282. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  8283. esac \
  8284. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8285. ;;
  8286. :H)
  8287. #
  8288. # CONFIG_HEADER
  8289. #
  8290. if test x"$ac_file" != x-; then
  8291. {
  8292. $as_echo "/* $configure_input */" \
  8293. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  8294. } >"$tmp/config.h" \
  8295. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8296. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  8297. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  8298. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  8299. else
  8300. rm -f "$ac_file"
  8301. mv "$tmp/config.h" "$ac_file" \
  8302. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8303. fi
  8304. else
  8305. $as_echo "/* $configure_input */" \
  8306. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  8307. || as_fn_error $? "could not create -" "$LINENO" 5
  8308. fi
  8309. # Compute "$ac_file"'s index in $config_headers.
  8310. _am_arg="$ac_file"
  8311. _am_stamp_count=1
  8312. for _am_header in $config_headers :; do
  8313. case $_am_header in
  8314. $_am_arg | $_am_arg:* )
  8315. break ;;
  8316. * )
  8317. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8318. esac
  8319. done
  8320. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  8321. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8322. X"$_am_arg" : 'X\(//\)[^/]' \| \
  8323. X"$_am_arg" : 'X\(//\)$' \| \
  8324. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  8325. $as_echo X"$_am_arg" |
  8326. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8327. s//\1/
  8328. q
  8329. }
  8330. /^X\(\/\/\)[^/].*/{
  8331. s//\1/
  8332. q
  8333. }
  8334. /^X\(\/\/\)$/{
  8335. s//\1/
  8336. q
  8337. }
  8338. /^X\(\/\).*/{
  8339. s//\1/
  8340. q
  8341. }
  8342. s/.*/./; q'`/stamp-h$_am_stamp_count
  8343. ;;
  8344.  
  8345. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  8346. $as_echo "$as_me: executing $ac_file commands" >&6;}
  8347. ;;
  8348. esac
  8349.  
  8350.  
  8351. case $ac_file$ac_mode in
  8352. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  8353. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  8354. # are listed without --file. Let's play safe and only enable the eval
  8355. # if we detect the quoting.
  8356. case $CONFIG_FILES in
  8357. *\'*) eval set x "$CONFIG_FILES" ;;
  8358. *) set x $CONFIG_FILES ;;
  8359. esac
  8360. shift
  8361. for mf
  8362. do
  8363. # Strip MF so we end up with the name of the file.
  8364. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8365. # Check whether this is an Automake generated Makefile or not.
  8366. # We used to match only the files named `Makefile.in', but
  8367. # some people rename them; so instead we look at the file content.
  8368. # Grep'ing the first line is not enough: some people post-process
  8369. # each Makefile.in and add a new line on top of each file to say so.
  8370. # Grep'ing the whole file is not good either: AIX grep has a line
  8371. # limit of 2048, but all sed's we know have understand at least 4000.
  8372. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  8373. dirpart=`$as_dirname -- "$mf" ||
  8374. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8375. X"$mf" : 'X\(//\)[^/]' \| \
  8376. X"$mf" : 'X\(//\)$' \| \
  8377. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  8378. $as_echo X"$mf" |
  8379. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8380. s//\1/
  8381. q
  8382. }
  8383. /^X\(\/\/\)[^/].*/{
  8384. s//\1/
  8385. q
  8386. }
  8387. /^X\(\/\/\)$/{
  8388. s//\1/
  8389. q
  8390. }
  8391. /^X\(\/\).*/{
  8392. s//\1/
  8393. q
  8394. }
  8395. s/.*/./; q'`
  8396. else
  8397. continue
  8398. fi
  8399. # Extract the definition of DEPDIR, am__include, and am__quote
  8400. # from the Makefile without running `make'.
  8401. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8402. test -z "$DEPDIR" && continue
  8403. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8404. test -z "am__include" && continue
  8405. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8406. # When using ansi2knr, U may be empty or an underscore; expand it
  8407. U=`sed -n 's/^U = //p' < "$mf"`
  8408. # Find all dependency output files, they are included files with
  8409. # $(DEPDIR) in their names. We invoke sed twice because it is the
  8410. # simplest approach to changing $(DEPDIR) to its actual value in the
  8411. # expansion.
  8412. for file in `sed -n "
  8413. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8414. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  8415. # Make sure the directory exists.
  8416. test -f "$dirpart/$file" && continue
  8417. fdir=`$as_dirname -- "$file" ||
  8418. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8419. X"$file" : 'X\(//\)[^/]' \| \
  8420. X"$file" : 'X\(//\)$' \| \
  8421. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  8422. $as_echo X"$file" |
  8423. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8424. s//\1/
  8425. q
  8426. }
  8427. /^X\(\/\/\)[^/].*/{
  8428. s//\1/
  8429. q
  8430. }
  8431. /^X\(\/\/\)$/{
  8432. s//\1/
  8433. q
  8434. }
  8435. /^X\(\/\).*/{
  8436. s//\1/
  8437. q
  8438. }
  8439. s/.*/./; q'`
  8440. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  8441. # echo "creating $dirpart/$file"
  8442. echo '# dummy' > "$dirpart/$file"
  8443. done
  8444. done
  8445. }
  8446. ;;
  8447.  
  8448. esac
  8449. done # for ac_tag
  8450.  
  8451.  
  8452. as_fn_exit 0
  8453. _ACEOF
  8454. ac_clean_files=$ac_clean_files_save
  8455.  
  8456. test $ac_write_fail = 0 ||
  8457. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  8458.  
  8459.  
  8460. # configure is writing to config.log, and then calls config.status.
  8461. # config.status does its own redirection, appending to config.log.
  8462. # Unfortunately, on DOS this fails, as config.log is still kept open
  8463. # by configure, so config.status won't be able to write to it; its
  8464. # output is simply discarded. So we exec the FD to /dev/null,
  8465. # effectively closing config.log, so it can be properly (re)opened and
  8466. # appended to by config.status. When coming back to configure, we
  8467. # need to make the FD available again.
  8468. if test "$no_create" != yes; then
  8469. ac_cs_success=:
  8470. ac_config_status_args=
  8471. test "$silent" = yes &&
  8472. ac_config_status_args="$ac_config_status_args --quiet"
  8473. exec 5>/dev/null
  8474. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8475. exec 5>>config.log
  8476. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8477. # would make configure fail if this is the last instruction.
  8478. $ac_cs_success || as_fn_exit 1
  8479. fi
  8480. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  8481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  8482. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  8483. fi
  8484.  
  8485.  
  8486. echo
  8487. #echo The OTX Server 2.X.Series
  8488. echo $PACKAGE $VERSION
  8489. echo
  8490. echo Using LuaJIT................ : $luaJIT
  8491. echo Using ground cache.......... : $groundCache
  8492. echo Server diagnostics.......... : $serverDiag
  8493. echo Home-directory configuration : $homedirConf
  8494. echo Root run permission......... : $rootPermission
  8495. echo Login server mode........... : $loginServer
  8496. echo OTAdmin protocol............ : $otAdmin
  8497. echo OTServ custom allocator..... : $otservAllocator
  8498. echo Debug build................. : $debugBuild
  8499. echo
  8500. echo Build with MySQL............ : $useMySQL
  8501. echo Build with MySQL++Connector. : $useMySQLpp
  8502. echo Build with SQLite........... : $useSQLite
  8503. echo Build with PostgreSQL....... : $usePostgreSQL
  8504. echo
  8505.  
  8506. echo Configure complete, now you may type \'./build.sh\'.
Advertisement
RAW Paste Data Copied
Advertisement