viewing paste configure | Bash

Posted on the
  1. #! /bin/sh
  2. # From configure.in Revision: 16200 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.67.
  5. #
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  9. # Foundation, Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17.  
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21.   emulate sh
  22.   NULLCMD=:
  23.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24.   # is contrary to our usage.  Disable this feature.
  25.   alias -g '${1+"$@"}'='"$@"'
  26.   setopt NO_GLOB_SUBST
  27. else
  28.   case `(set -o) 2>/dev/null` in #(
  29.   *posix*) :
  30.     set -o posix ;; #(
  31.   *) :
  32.      ;;
  33. esac
  34. fi
  35.  
  36.  
  37. as_nl='
  38. '
  39. export as_nl
  40. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  41. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  43. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  44. # Prefer a ksh shell builtin over an external printf program on Solaris,
  45. # but without wasting forks for bash or zsh.
  46. if test -z "$BASH_VERSION$ZSH_VERSION" \
  47.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  48.   as_echo='print -r --'
  49.   as_echo_n='print -rn --'
  50. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  51.   as_echo='printf %s\n'
  52.   as_echo_n='printf %s'
  53. else
  54.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  55.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  56.     as_echo_n='/usr/ucb/echo -n'
  57.   else
  58.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  59.     as_echo_n_body='eval
  60.       arg=$1;
  61.       case $arg in #(
  62.       *"$as_nl"*)
  63. 	expr "X$arg" : "X\\(.*\\)$as_nl";
  64. 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  65.       esac;
  66.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  67.     '
  68.     export as_echo_n_body
  69.     as_echo_n='sh -c $as_echo_n_body as_echo'
  70.   fi
  71.   export as_echo_body
  72.   as_echo='sh -c $as_echo_body as_echo'
  73. fi
  74.  
  75. # The user is always right.
  76. if test "${PATH_SEPARATOR+set}" != set; then
  77.   PATH_SEPARATOR=:
  78.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  79.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  80.       PATH_SEPARATOR=';'
  81.   }
  82. fi
  83.  
  84.  
  85. # IFS
  86. # We need space, tab and new line, in precisely that order.  Quoting is
  87. # there to prevent editors from complaining about space-tab.
  88. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  89. # splitting by setting IFS to empty value.)
  90. IFS=" ""	$as_nl"
  91.  
  92. # Find who we are.  Look in the path if we contain no directory separator.
  93. case $0 in #((
  94.   *[\\/]* ) as_myself=$0 ;;
  95.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98.   IFS=$as_save_IFS
  99.   test -z "$as_dir" && as_dir=.
  100.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101.   done
  102. IFS=$as_save_IFS
  103.  
  104.      ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109.   as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  113.   exit 1
  114. fi
  115.  
  116. # Unset variables that we do not need and which cause bugs (e.g. in
  117. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  118. # suppresses any "Segmentation fault" message there.  '((' could
  119. # trigger a bug in pdksh 5.2.14.
  120. for as_var in BASH_ENV ENV MAIL MAILPATH
  121. do eval test x\${$as_var+set} = xset \
  122.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  123. done
  124. PS1='$ '
  125. PS2='> '
  126. PS4='+ '
  127.  
  128. # NLS nuisances.
  129. LC_ALL=C
  130. export LC_ALL
  131. LANGUAGE=C
  132. export LANGUAGE
  133.  
  134. # CDPATH.
  135. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  136.  
  137. if test "x$CONFIG_SHELL" = x; then
  138.   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  139.   emulate sh
  140.   NULLCMD=:
  141.   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  142.   # is contrary to our usage.  Disable this feature.
  143.   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  144.   setopt NO_GLOB_SUBST
  145. else
  146.   case \`(set -o) 2>/dev/null\` in #(
  147.   *posix*) :
  148.     set -o posix ;; #(
  149.   *) :
  150.      ;;
  151. esac
  152. fi
  153. "
  154.   as_required="as_fn_return () { (exit \$1); }
  155. as_fn_success () { as_fn_return 0; }
  156. as_fn_failure () { as_fn_return 1; }
  157. as_fn_ret_success () { return 0; }
  158. as_fn_ret_failure () { return 1; }
  159.  
  160. exitcode=0
  161. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  162. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  163. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  164. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  165. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  166.  
  167. else
  168.   exitcode=1; echo positional parameters were not saved.
  169. fi
  170. test x\$exitcode = x0 || exit 1"
  171.   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  172.   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  173.   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  174.   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  175. test \$(( 1 + 1 )) = 2 || exit 1"
  176.   if (eval "$as_required") 2>/dev/null; then :
  177.   as_have_required=yes
  178. else
  179.   as_have_required=no
  180. fi
  181.   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  182.  
  183. else
  184.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188.   IFS=$as_save_IFS
  189.   test -z "$as_dir" && as_dir=.
  190.   as_found=:
  191.   case $as_dir in #(
  192. 	 /*)
  193. 	   for as_base in sh bash ksh sh5; do
  194. 	     # Try only shells that exist, to save several forks.
  195. 	     as_shell=$as_dir/$as_base
  196. 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  197. 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  198.   CONFIG_SHELL=$as_shell as_have_required=yes
  199. 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  200.   break 2
  201. fi
  202. fi
  203. 	   done;;
  204.        esac
  205.   as_found=false
  206. done
  207. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  208. 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  209.   CONFIG_SHELL=$SHELL as_have_required=yes
  210. fi; }
  211. IFS=$as_save_IFS
  212.  
  213.  
  214.       if test "x$CONFIG_SHELL" != x; then :
  215.   # We cannot yet assume a decent shell, so we have to provide a
  216. 	# neutralization value for shells without unset; and this also
  217. 	# works around shells that cannot unset nonexistent variables.
  218. 	BASH_ENV=/dev/null
  219. 	ENV=/dev/null
  220. 	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  221. 	export CONFIG_SHELL
  222. 	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  223. fi
  224.  
  225.     if test x$as_have_required = xno; then :
  226.   $as_echo "$0: This script requires a shell more modern than all"
  227.   $as_echo "$0: the shells that I found on your system."
  228.   if test x${ZSH_VERSION+set} = xset ; then
  229.     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  230.     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  231.   else
  232.     $as_echo "$0: Please tell [email protected] about your system,
  233. $0: including any error possibly output before this
  234. $0: message. Then install a modern shell, or manually run
  235. $0: the script under such a shell if you do have one."
  236.   fi
  237.   exit 1
  238. fi
  239. fi
  240. fi
  241. SHELL=${CONFIG_SHELL-/bin/sh}
  242. export SHELL
  243. # Unset more variables known to interfere with behavior of common tools.
  244. CLICOLOR_FORCE= GREP_OPTIONS=
  245. unset CLICOLOR_FORCE GREP_OPTIONS
  246.  
  247. ## --------------------- ##
  248. ## M4sh Shell Functions. ##
  249. ## --------------------- ##
  250. # as_fn_unset VAR
  251. # ---------------
  252. # Portably unset VAR.
  253. as_fn_unset ()
  254. {
  255.   { eval $1=; unset $1;}
  256. }
  257. as_unset=as_fn_unset
  258.  
  259. # as_fn_set_status STATUS
  260. # -----------------------
  261. # Set $? to STATUS, without forking.
  262. as_fn_set_status ()
  263. {
  264.   return $1
  265. } # as_fn_set_status
  266.  
  267. # as_fn_exit STATUS
  268. # -----------------
  269. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  270. as_fn_exit ()
  271. {
  272.   set +e
  273.   as_fn_set_status $1
  274.   exit $1
  275. } # as_fn_exit
  276.  
  277. # as_fn_mkdir_p
  278. # -------------
  279. # Create "$as_dir" as a directory, including parents if necessary.
  280. as_fn_mkdir_p ()
  281. {
  282.  
  283.   case $as_dir in #(
  284.   -*) as_dir=./$as_dir;;
  285.   esac
  286.   test -d "$as_dir" || eval $as_mkdir_p || {
  287.     as_dirs=
  288.     while :; do
  289.       case $as_dir in #(
  290.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  291.       *) as_qdir=$as_dir;;
  292.       esac
  293.       as_dirs="'$as_qdir' $as_dirs"
  294.       as_dir=`$as_dirname -- "$as_dir" ||
  295. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  296. 	 X"$as_dir" : 'X\(//\)[^/]' \| \
  297. 	 X"$as_dir" : 'X\(//\)$' \| \
  298. 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  299. $as_echo X"$as_dir" |
  300.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  301. 	    s//\1/
  302. 	    q
  303. 	  }
  304. 	  /^X\(\/\/\)[^/].*/{
  305. 	    s//\1/
  306. 	    q
  307. 	  }
  308. 	  /^X\(\/\/\)$/{
  309. 	    s//\1/
  310. 	    q
  311. 	  }
  312. 	  /^X\(\/\).*/{
  313. 	    s//\1/
  314. 	    q
  315. 	  }
  316. 	  s/.*/./; q'`
  317.       test -d "$as_dir" && break
  318.     done
  319.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  320.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  321.  
  322.  
  323. } # as_fn_mkdir_p
  324. # as_fn_append VAR VALUE
  325. # ----------------------
  326. # Append the text in VALUE to the end of the definition contained in VAR. Take
  327. # advantage of any shell optimizations that allow amortized linear growth over
  328. # repeated appends, instead of the typical quadratic growth present in naive
  329. # implementations.
  330. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  331.   eval 'as_fn_append ()
  332.   {
  333.     eval $1+=\$2
  334.   }'
  335. else
  336.   as_fn_append ()
  337.   {
  338.     eval $1=\$$1\$2
  339.   }
  340. fi # as_fn_append
  341.  
  342. # as_fn_arith ARG...
  343. # ------------------
  344. # Perform arithmetic evaluation on the ARGs, and store the result in the
  345. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  346. # must be portable across $(()) and expr.
  347. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  348.   eval 'as_fn_arith ()
  349.   {
  350.     as_val=$(( $* ))
  351.   }'
  352. else
  353.   as_fn_arith ()
  354.   {
  355.     as_val=`expr "$@" || test $? -eq 1`
  356.   }
  357. fi # as_fn_arith
  358.  
  359.  
  360. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  361. # ----------------------------------------
  362. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  363. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  364. # script with STATUS, using 1 if that was 0.
  365. as_fn_error ()
  366. {
  367.   as_status=$1; test $as_status -eq 0 && as_status=1
  368.   if test "$4"; then
  369.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  370.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  371.   fi
  372.   $as_echo "$as_me: error: $2" >&2
  373.   as_fn_exit $as_status
  374. } # as_fn_error
  375.  
  376. if expr a : '\(a\)' >/dev/null 2>&1 &&
  377.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  378.   as_expr=expr
  379. else
  380.   as_expr=false
  381. fi
  382.  
  383. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  384.   as_basename=basename
  385. else
  386.   as_basename=false
  387. fi
  388.  
  389. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  390.   as_dirname=dirname
  391. else
  392.   as_dirname=false
  393. fi
  394.  
  395. as_me=`$as_basename -- "$0" ||
  396. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  397. 	 X"$0" : 'X\(//\)$' \| \
  398. 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  399. $as_echo X/"$0" |
  400.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  401. 	    s//\1/
  402. 	    q
  403. 	  }
  404. 	  /^X\/\(\/\/\)$/{
  405. 	    s//\1/
  406. 	    q
  407. 	  }
  408. 	  /^X\/\(\/\).*/{
  409. 	    s//\1/
  410. 	    q
  411. 	  }
  412. 	  s/.*/./; q'`
  413.  
  414. # Avoid depending upon Character Ranges.
  415. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  416. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  417. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  418. as_cr_digits='0123456789'
  419. as_cr_alnum=$as_cr_Letters$as_cr_digits
  420.  
  421.  
  422.   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  423.   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  424.   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  425.   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  426.   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  427.   sed -n '
  428.     p
  429.     /[$]LINENO/=
  430.   ' <$as_myself |
  431.     sed '
  432.       s/[$]LINENO.*/&-/
  433.       t lineno
  434.       b
  435.       :lineno
  436.       N
  437.       :loop
  438.       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  439.       t loop
  440.       s/-\n.*//
  441.     ' >$as_me.lineno &&
  442.   chmod +x "$as_me.lineno" ||
  443.     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  444.  
  445.   # Don't try to exec as it changes $[0], causing all sort of problems
  446.   # (the dirname of $[0] is not the place where we might find the
  447.   # original and so on.  Autoconf is especially sensitive to this).
  448.   . "./$as_me.lineno"
  449.   # Exit status is that of the last command.
  450.   exit
  451. }
  452.  
  453. ECHO_C= ECHO_N= ECHO_T=
  454. case `echo -n x` in #(((((
  455. -n*)
  456.   case `echo 'xy\c'` in
  457.   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  458.   xy)  ECHO_C='\c';;
  459.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  460.        ECHO_T='	';;
  461.   esac;;
  462. *)
  463.   ECHO_N='-n';;
  464. esac
  465.  
  466. rm -f conf$$ conf$$.exe conf$$.file
  467. if test -d conf$$.dir; then
  468.   rm -f conf$$.dir/conf$$.file
  469. else
  470.   rm -f conf$$.dir
  471.   mkdir conf$$.dir 2>/dev/null
  472. fi
  473. if (echo >conf$$.file) 2>/dev/null; then
  474.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  475.     as_ln_s='ln -s'
  476.     # ... but there are two gotchas:
  477.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  478.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  479.     # In both cases, we have to default to `cp -p'.
  480.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  481.       as_ln_s='cp -p'
  482.   elif ln conf$$.file conf$$ 2>/dev/null; then
  483.     as_ln_s=ln
  484.   else
  485.     as_ln_s='cp -p'
  486.   fi
  487. else
  488.   as_ln_s='cp -p'
  489. fi
  490. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  491. rmdir conf$$.dir 2>/dev/null
  492.  
  493. if mkdir -p . 2>/dev/null; then
  494.   as_mkdir_p='mkdir -p "$as_dir"'
  495. else
  496.   test -d ./-p && rmdir ./-p
  497.   as_mkdir_p=false
  498. fi
  499.  
  500. if test -x / >/dev/null 2>&1; then
  501.   as_test_x='test -x'
  502. else
  503.   if ls -dL / >/dev/null 2>&1; then
  504.     as_ls_L_option=L
  505.   else
  506.     as_ls_L_option=
  507.   fi
  508.   as_test_x='
  509.     eval sh -c '\''
  510.       if test -d "$1"; then
  511. 	test -d "$1/.";
  512.       else
  513. 	case $1 in #(
  514. 	-*)set "./$1";;
  515. 	esac;
  516. 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  517. 	???[sx]*):;;*)false;;esac;fi
  518.     '\'' sh
  519.   '
  520. fi
  521. as_executable_p=$as_test_x
  522.  
  523. # Sed expression to map a string onto a valid CPP name.
  524. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  525.  
  526. # Sed expression to map a string onto a valid variable name.
  527. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  528.  
  529.  
  530. test -n "$DJDIR" || exec 7<&0 </dev/null
  531. exec 6>&1
  532.  
  533. # Name of the host.
  534. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  535. # so uname gets run too.
  536. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  537.  
  538. #
  539. # Initializations.
  540. #
  541. ac_default_prefix=/usr/local
  542. ac_clean_files=
  543. ac_config_libobj_dir=.
  544. LIBOBJS=
  545. cross_compiling=no
  546. subdirs=
  547. MFLAGS=
  548. MAKEFLAGS=
  549.  
  550. # Identity of this package.
  551. PACKAGE_NAME=
  552. PACKAGE_TARNAME=
  553. PACKAGE_VERSION=
  554. PACKAGE_STRING=
  555. PACKAGE_BUGREPORT=
  556. PACKAGE_URL=
  557.  
  558. ac_unique_file="rAthena"
  559. ac_unique_file="src/common/cbasetypes.h"
  560. # Factoring default headers for most tests.
  561. ac_includes_default="\
  562. #include <stdio.h>
  563. #ifdef HAVE_SYS_TYPES_H
  564. # include <sys/types.h>
  565. #endif
  566. #ifdef HAVE_SYS_STAT_H
  567. # include <sys/stat.h>
  568. #endif
  569. #ifdef STDC_HEADERS
  570. # include <stdlib.h>
  571. # include <stddef.h>
  572. #else
  573. # ifdef HAVE_STDLIB_H
  574. #  include <stdlib.h>
  575. # endif
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  579. #  include <memory.h>
  580. # endif
  581. # include <string.h>
  582. #endif
  583. #ifdef HAVE_STRINGS_H
  584. # include <strings.h>
  585. #endif
  586. #ifdef HAVE_INTTYPES_H
  587. # include <inttypes.h>
  588. #endif
  589. #ifdef HAVE_STDINT_H
  590. # include <stdint.h>
  591. #endif
  592. #ifdef HAVE_UNISTD_H
  593. # include <unistd.h>
  594. #endif"
  595.  
  596. ac_subst_vars='LTLIBOBJS
  597. LIBOBJS
  598. DLLEXT
  599. PCRE_CFLAGS
  600. PCRE_LIBS
  601. HAVE_PCRE
  602. MYSQL_LIBS
  603. MYSQL_CFLAGS
  604. MYSQL_VERSION
  605. HAVE_MYSQL
  606. MYSQL_CONFIG_HOME
  607. AR
  608. SET_MAKE
  609. EGREP
  610. GREP
  611. CPP
  612. OBJEXT
  613. EXEEXT
  614. ac_ct_CC
  615. CPPFLAGS
  616. LDFLAGS
  617. CFLAGS
  618. CC
  619. target_alias
  620. host_alias
  621. build_alias
  622. LIBS
  623. ECHO_T
  624. ECHO_N
  625. ECHO_C
  626. DEFS
  627. mandir
  628. localedir
  629. libdir
  630. psdir
  631. pdfdir
  632. dvidir
  633. htmldir
  634. infodir
  635. docdir
  636. oldincludedir
  637. includedir
  638. localstatedir
  639. sharedstatedir
  640. sysconfdir
  641. datadir
  642. datarootdir
  643. libexecdir
  644. sbindir
  645. bindir
  646. program_transform_name
  647. prefix
  648. exec_prefix
  649. PACKAGE_URL
  650. PACKAGE_BUGREPORT
  651. PACKAGE_STRING
  652. PACKAGE_VERSION
  653. PACKAGE_TARNAME
  654. PACKAGE_NAME
  655. PATH_SEPARATOR
  656. SHELL'
  657. ac_subst_files=''
  658. ac_user_opts='
  659. enable_option_checking
  660. enable_manager
  661. enable_packetver
  662. enable_debug
  663. enable_buildbot
  664. enable_rdtsc
  665. enable_profiler
  666. enable_64bit
  667. enable_lto
  668. with_mysql
  669. with_MYSQL_CFLAGS
  670. with_MYSQL_LIBS
  671. with_pcre
  672. with_zlib
  673. '
  674.       ac_precious_vars='build_alias
  675. host_alias
  676. target_alias
  677. CC
  678. CFLAGS
  679. LDFLAGS
  680. LIBS
  681. CPPFLAGS
  682. CPP'
  683.  
  684.  
  685. # Initialize some variables set by options.
  686. ac_init_help=
  687. ac_init_version=false
  688. ac_unrecognized_opts=
  689. ac_unrecognized_sep=
  690. # The variables have the same names as the options, with
  691. # dashes changed to underlines.
  692. cache_file=/dev/null
  693. exec_prefix=NONE
  694. no_create=
  695. no_recursion=
  696. prefix=NONE
  697. program_prefix=NONE
  698. program_suffix=NONE
  699. program_transform_name=s,x,x,
  700. silent=
  701. site=
  702. srcdir=
  703. verbose=
  704. x_includes=NONE
  705. x_libraries=NONE
  706.  
  707. # Installation directory options.
  708. # These are left unexpanded so users can "make install exec_prefix=/foo"
  709. # and all the variables that are supposed to be based on exec_prefix
  710. # by default will actually change.
  711. # Use braces instead of parens because sh, perl, etc. also accept them.
  712. # (The list follows the same order as the GNU Coding Standards.)
  713. bindir='${exec_prefix}/bin'
  714. sbindir='${exec_prefix}/sbin'
  715. libexecdir='${exec_prefix}/libexec'
  716. datarootdir='${prefix}/share'
  717. datadir='${datarootdir}'
  718. sysconfdir='${prefix}/etc'
  719. sharedstatedir='${prefix}/com'
  720. localstatedir='${prefix}/var'
  721. includedir='${prefix}/include'
  722. oldincludedir='/usr/include'
  723. docdir='${datarootdir}/doc/${PACKAGE}'
  724. infodir='${datarootdir}/info'
  725. htmldir='${docdir}'
  726. dvidir='${docdir}'
  727. pdfdir='${docdir}'
  728. psdir='${docdir}'
  729. libdir='${exec_prefix}/lib'
  730. localedir='${datarootdir}/locale'
  731. mandir='${datarootdir}/man'
  732.  
  733. ac_prev=
  734. ac_dashdash=
  735. for ac_option
  736. do
  737.   # If the previous option needs an argument, assign it.
  738.   if test -n "$ac_prev"; then
  739.     eval $ac_prev=\$ac_option
  740.     ac_prev=
  741.     continue
  742.   fi
  743.  
  744.   case $ac_option in
  745.   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  746.   *=)   ac_optarg= ;;
  747.   *)    ac_optarg=yes ;;
  748.   esac
  749.  
  750.   # Accept the important Cygnus configure options, so we can diagnose typos.
  751.  
  752.   case $ac_dashdash$ac_option in
  753.   --)
  754.     ac_dashdash=yes ;;
  755.  
  756.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  757.     ac_prev=bindir ;;
  758.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  759.     bindir=$ac_optarg ;;
  760.  
  761.   -build | --build | --buil | --bui | --bu)
  762.     ac_prev=build_alias ;;
  763.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  764.     build_alias=$ac_optarg ;;
  765.  
  766.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  767.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  768.     ac_prev=cache_file ;;
  769.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  770.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  771.     cache_file=$ac_optarg ;;
  772.  
  773.   --config-cache | -C)
  774.     cache_file=config.cache ;;
  775.  
  776.   -datadir | --datadir | --datadi | --datad)
  777.     ac_prev=datadir ;;
  778.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  779.     datadir=$ac_optarg ;;
  780.  
  781.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  782.   | --dataroo | --dataro | --datar)
  783.     ac_prev=datarootdir ;;
  784.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  785.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  786.     datarootdir=$ac_optarg ;;
  787.  
  788.   -disable-* | --disable-*)
  789.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  790.     # Reject names that are not valid shell variable names.
  791.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  792.       as_fn_error $? "invalid feature name: $ac_useropt"
  793.     ac_useropt_orig=$ac_useropt
  794.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  795.     case $ac_user_opts in
  796.       *"
  797. "enable_$ac_useropt"
  798. "*) ;;
  799.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  800. 	 ac_unrecognized_sep=', ';;
  801.     esac
  802.     eval enable_$ac_useropt=no ;;
  803.  
  804.   -docdir | --docdir | --docdi | --doc | --do)
  805.     ac_prev=docdir ;;
  806.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  807.     docdir=$ac_optarg ;;
  808.  
  809.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  810.     ac_prev=dvidir ;;
  811.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  812.     dvidir=$ac_optarg ;;
  813.  
  814.   -enable-* | --enable-*)
  815.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  816.     # Reject names that are not valid shell variable names.
  817.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  818.       as_fn_error $? "invalid feature name: $ac_useropt"
  819.     ac_useropt_orig=$ac_useropt
  820.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  821.     case $ac_user_opts in
  822.       *"
  823. "enable_$ac_useropt"
  824. "*) ;;
  825.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  826. 	 ac_unrecognized_sep=', ';;
  827.     esac
  828.     eval enable_$ac_useropt=\$ac_optarg ;;
  829.  
  830.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  831.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  832.   | --exec | --exe | --ex)
  833.     ac_prev=exec_prefix ;;
  834.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  835.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  836.   | --exec=* | --exe=* | --ex=*)
  837.     exec_prefix=$ac_optarg ;;
  838.  
  839.   -gas | --gas | --ga | --g)
  840.     # Obsolete; use --with-gas.
  841.     with_gas=yes ;;
  842.  
  843.   -help | --help | --hel | --he | -h)
  844.     ac_init_help=long ;;
  845.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  846.     ac_init_help=recursive ;;
  847.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  848.     ac_init_help=short ;;
  849.  
  850.   -host | --host | --hos | --ho)
  851.     ac_prev=host_alias ;;
  852.   -host=* | --host=* | --hos=* | --ho=*)
  853.     host_alias=$ac_optarg ;;
  854.  
  855.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  856.     ac_prev=htmldir ;;
  857.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  858.   | --ht=*)
  859.     htmldir=$ac_optarg ;;
  860.  
  861.   -includedir | --includedir | --includedi | --included | --include \
  862.   | --includ | --inclu | --incl | --inc)
  863.     ac_prev=includedir ;;
  864.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  865.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  866.     includedir=$ac_optarg ;;
  867.  
  868.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  869.     ac_prev=infodir ;;
  870.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  871.     infodir=$ac_optarg ;;
  872.  
  873.   -libdir | --libdir | --libdi | --libd)
  874.     ac_prev=libdir ;;
  875.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  876.     libdir=$ac_optarg ;;
  877.  
  878.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  879.   | --libexe | --libex | --libe)
  880.     ac_prev=libexecdir ;;
  881.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  882.   | --libexe=* | --libex=* | --libe=*)
  883.     libexecdir=$ac_optarg ;;
  884.  
  885.   -localedir | --localedir | --localedi | --localed | --locale)
  886.     ac_prev=localedir ;;
  887.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  888.     localedir=$ac_optarg ;;
  889.  
  890.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  891.   | --localstate | --localstat | --localsta | --localst | --locals)
  892.     ac_prev=localstatedir ;;
  893.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  894.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  895.     localstatedir=$ac_optarg ;;
  896.  
  897.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  898.     ac_prev=mandir ;;
  899.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  900.     mandir=$ac_optarg ;;
  901.  
  902.   -nfp | --nfp | --nf)
  903.     # Obsolete; use --without-fp.
  904.     with_fp=no ;;
  905.  
  906.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  907.   | --no-cr | --no-c | -n)
  908.     no_create=yes ;;
  909.  
  910.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  911.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  912.     no_recursion=yes ;;
  913.  
  914.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  915.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  916.   | --oldin | --oldi | --old | --ol | --o)
  917.     ac_prev=oldincludedir ;;
  918.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  919.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  920.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  921.     oldincludedir=$ac_optarg ;;
  922.  
  923.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  924.     ac_prev=prefix ;;
  925.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  926.     prefix=$ac_optarg ;;
  927.  
  928.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  929.   | --program-pre | --program-pr | --program-p)
  930.     ac_prev=program_prefix ;;
  931.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  932.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  933.     program_prefix=$ac_optarg ;;
  934.  
  935.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  936.   | --program-suf | --program-su | --program-s)
  937.     ac_prev=program_suffix ;;
  938.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  939.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  940.     program_suffix=$ac_optarg ;;
  941.  
  942.   -program-transform-name | --program-transform-name \
  943.   | --program-transform-nam | --program-transform-na \
  944.   | --program-transform-n | --program-transform- \
  945.   | --program-transform | --program-transfor \
  946.   | --program-transfo | --program-transf \
  947.   | --program-trans | --program-tran \
  948.   | --progr-tra | --program-tr | --program-t)
  949.     ac_prev=program_transform_name ;;
  950.   -program-transform-name=* | --program-transform-name=* \
  951.   | --program-transform-nam=* | --program-transform-na=* \
  952.   | --program-transform-n=* | --program-transform-=* \
  953.   | --program-transform=* | --program-transfor=* \
  954.   | --program-transfo=* | --program-transf=* \
  955.   | --program-trans=* | --program-tran=* \
  956.   | --progr-tra=* | --program-tr=* | --program-t=*)
  957.     program_transform_name=$ac_optarg ;;
  958.  
  959.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  960.     ac_prev=pdfdir ;;
  961.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  962.     pdfdir=$ac_optarg ;;
  963.  
  964.   -psdir | --psdir | --psdi | --psd | --ps)
  965.     ac_prev=psdir ;;
  966.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  967.     psdir=$ac_optarg ;;
  968.  
  969.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  970.   | -silent | --silent | --silen | --sile | --sil)
  971.     silent=yes ;;
  972.  
  973.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  974.     ac_prev=sbindir ;;
  975.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  976.   | --sbi=* | --sb=*)
  977.     sbindir=$ac_optarg ;;
  978.  
  979.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  980.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  981.   | --sharedst | --shareds | --shared | --share | --shar \
  982.   | --sha | --sh)
  983.     ac_prev=sharedstatedir ;;
  984.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  985.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  986.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  987.   | --sha=* | --sh=*)
  988.     sharedstatedir=$ac_optarg ;;
  989.  
  990.   -site | --site | --sit)
  991.     ac_prev=site ;;
  992.   -site=* | --site=* | --sit=*)
  993.     site=$ac_optarg ;;
  994.  
  995.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  996.     ac_prev=srcdir ;;
  997.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  998.     srcdir=$ac_optarg ;;
  999.  
  1000.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1001.   | --syscon | --sysco | --sysc | --sys | --sy)
  1002.     ac_prev=sysconfdir ;;
  1003.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1004.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1005.     sysconfdir=$ac_optarg ;;
  1006.  
  1007.   -target | --target | --targe | --targ | --tar | --ta | --t)
  1008.     ac_prev=target_alias ;;
  1009.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1010.     target_alias=$ac_optarg ;;
  1011.  
  1012.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1013.     verbose=yes ;;
  1014.  
  1015.   -version | --version | --versio | --versi | --vers | -V)
  1016.     ac_init_version=: ;;
  1017.  
  1018.   -with-* | --with-*)
  1019.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1020.     # Reject names that are not valid shell variable names.
  1021.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1022.       as_fn_error $? "invalid package name: $ac_useropt"
  1023.     ac_useropt_orig=$ac_useropt
  1024.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1025.     case $ac_user_opts in
  1026.       *"
  1027. "with_$ac_useropt"
  1028. "*) ;;
  1029.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1030. 	 ac_unrecognized_sep=', ';;
  1031.     esac
  1032.     eval with_$ac_useropt=\$ac_optarg ;;
  1033.  
  1034.   -without-* | --without-*)
  1035.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1036.     # Reject names that are not valid shell variable names.
  1037.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1038.       as_fn_error $? "invalid package name: $ac_useropt"
  1039.     ac_useropt_orig=$ac_useropt
  1040.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1041.     case $ac_user_opts in
  1042.       *"
  1043. "with_$ac_useropt"
  1044. "*) ;;
  1045.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1046. 	 ac_unrecognized_sep=', ';;
  1047.     esac
  1048.     eval with_$ac_useropt=no ;;
  1049.  
  1050.   --x)
  1051.     # Obsolete; use --with-x.
  1052.     with_x=yes ;;
  1053.  
  1054.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1055.   | --x-incl | --x-inc | --x-in | --x-i)
  1056.     ac_prev=x_includes ;;
  1057.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1058.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1059.     x_includes=$ac_optarg ;;
  1060.  
  1061.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1062.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1063.     ac_prev=x_libraries ;;
  1064.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1065.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1066.     x_libraries=$ac_optarg ;;
  1067.  
  1068.   -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1069. Try \`$0 --help' for more information"
  1070.     ;;
  1071.  
  1072.   *=*)
  1073.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1074.     # Reject names that are not valid shell variable names.
  1075.     case $ac_envvar in #(
  1076.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1077.       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1078.     esac
  1079.     eval $ac_envvar=\$ac_optarg
  1080.     export $ac_envvar ;;
  1081.  
  1082.   *)
  1083.     # FIXME: should be removed in autoconf 3.0.
  1084.     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1085.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1086.       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1087.     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1088.     ;;
  1089.  
  1090.   esac
  1091. done
  1092.  
  1093. if test -n "$ac_prev"; then
  1094.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1095.   as_fn_error $? "missing argument to $ac_option"
  1096. fi
  1097.  
  1098. if test -n "$ac_unrecognized_opts"; then
  1099.   case $enable_option_checking in
  1100.     no) ;;
  1101.     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1102.     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1103.   esac
  1104. fi
  1105.  
  1106. # Check all directory arguments for consistency.
  1107. for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1108. 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1109. 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1110. 		libdir localedir mandir
  1111. do
  1112.   eval ac_val=\$$ac_var
  1113.   # Remove trailing slashes.
  1114.   case $ac_val in
  1115.     */ )
  1116.       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1117.       eval $ac_var=\$ac_val;;
  1118.   esac
  1119.   # Be sure to have absolute directory names.
  1120.   case $ac_val in
  1121.     [\\/$]* | ?:[\\/]* )  continue;;
  1122.     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1123.   esac
  1124.   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1125. done
  1126.  
  1127. # There might be people who depend on the old broken behavior: `$host'
  1128. # used to hold the argument of --host etc.
  1129. # FIXME: To remove some day.
  1130. build=$build_alias
  1131. host=$host_alias
  1132. target=$target_alias
  1133.  
  1134. # FIXME: To remove some day.
  1135. if test "x$host_alias" != x; then
  1136.   if test "x$build_alias" = x; then
  1137.     cross_compiling=maybe
  1138.     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1139.     If a cross compiler is detected then cross compile mode will be used" >&2
  1140.   elif test "x$build_alias" != "x$host_alias"; then
  1141.     cross_compiling=yes
  1142.   fi
  1143. fi
  1144.  
  1145. ac_tool_prefix=
  1146. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1147.  
  1148. test "$silent" = yes && exec 6>/dev/null
  1149.  
  1150.  
  1151. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1152. ac_ls_di=`ls -di .` &&
  1153. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1154.   as_fn_error $? "working directory cannot be determined"
  1155. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1156.   as_fn_error $? "pwd does not report name of working directory"
  1157.  
  1158.  
  1159. # Find the source files, if location was not specified.
  1160. if test -z "$srcdir"; then
  1161.   ac_srcdir_defaulted=yes
  1162.   # Try the directory containing this script, then the parent directory.
  1163.   ac_confdir=`$as_dirname -- "$as_myself" ||
  1164. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1165. 	 X"$as_myself" : 'X\(//\)[^/]' \| \
  1166. 	 X"$as_myself" : 'X\(//\)$' \| \
  1167. 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1168. $as_echo X"$as_myself" |
  1169.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1170. 	    s//\1/
  1171. 	    q
  1172. 	  }
  1173. 	  /^X\(\/\/\)[^/].*/{
  1174. 	    s//\1/
  1175. 	    q
  1176. 	  }
  1177. 	  /^X\(\/\/\)$/{
  1178. 	    s//\1/
  1179. 	    q
  1180. 	  }
  1181. 	  /^X\(\/\).*/{
  1182. 	    s//\1/
  1183. 	    q
  1184. 	  }
  1185. 	  s/.*/./; q'`
  1186.   srcdir=$ac_confdir
  1187.   if test ! -r "$srcdir/$ac_unique_file"; then
  1188.     srcdir=..
  1189.   fi
  1190. else
  1191.   ac_srcdir_defaulted=no
  1192. fi
  1193. if test ! -r "$srcdir/$ac_unique_file"; then
  1194.   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1195.   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1196. fi
  1197. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1198. ac_abs_confdir=`(
  1199. 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1200. 	pwd)`
  1201. # When building in place, set srcdir=.
  1202. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1203.   srcdir=.
  1204. fi
  1205. # Remove unnecessary trailing slashes from srcdir.
  1206. # Double slashes in file names in object file debugging info
  1207. # mess up M-x gdb in Emacs.
  1208. case $srcdir in
  1209. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1210. esac
  1211. for ac_var in $ac_precious_vars; do
  1212.   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1213.   eval ac_env_${ac_var}_value=\$${ac_var}
  1214.   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1215.   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1216. done
  1217.  
  1218. #
  1219. # Report the --help message.
  1220. #
  1221. if test "$ac_init_help" = "long"; then
  1222.   # Omit some internal or obsolete options to make the list less imposing.
  1223.   # This message is too long to be a string in the A/UX 3.1 sh.
  1224.   cat <<_ACEOF
  1225. \`configure' configures this package to adapt to many kinds of systems.
  1226.  
  1227. Usage: $0 [OPTION]... [VAR=VALUE]...
  1228.  
  1229. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1230. VAR=VALUE.  See below for descriptions of some of the useful variables.
  1231.  
  1232. Defaults for the options are specified in brackets.
  1233.  
  1234. Configuration:
  1235.   -h, --help              display this help and exit
  1236.       --help=short        display options specific to this package
  1237.       --help=recursive    display the short help of all the included packages
  1238.   -V, --version           display version information and exit
  1239.   -q, --quiet, --silent   do not print \`checking ...' messages
  1240.       --cache-file=FILE   cache test results in FILE [disabled]
  1241.   -C, --config-cache      alias for \`--cache-file=config.cache'
  1242.   -n, --no-create         do not create output files
  1243.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1244.  
  1245. Installation directories:
  1246.   --prefix=PREFIX         install architecture-independent files in PREFIX
  1247.                           [$ac_default_prefix]
  1248.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1249.                           [PREFIX]
  1250.  
  1251. By default, \`make install' will install all the files in
  1252. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1253. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1254. for instance \`--prefix=\$HOME'.
  1255.  
  1256. For better control, use the options below.
  1257.  
  1258. Fine tuning of the installation directories:
  1259.   --bindir=DIR            user executables [EPREFIX/bin]
  1260.   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1261.   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1262.   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1263.   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1264.   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1265.   --libdir=DIR            object code libraries [EPREFIX/lib]
  1266.   --includedir=DIR        C header files [PREFIX/include]
  1267.   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1268.   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1269.   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1270.   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1271.   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1272.   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1273.   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  1274.   --htmldir=DIR           html documentation [DOCDIR]
  1275.   --dvidir=DIR            dvi documentation [DOCDIR]
  1276.   --pdfdir=DIR            pdf documentation [DOCDIR]
  1277.   --psdir=DIR             ps documentation [DOCDIR]
  1278. _ACEOF
  1279.  
  1280.   cat <<\_ACEOF
  1281. _ACEOF
  1282. fi
  1283.  
  1284. if test -n "$ac_init_help"; then
  1285.  
  1286.   cat <<\_ACEOF
  1287.  
  1288. Optional Features:
  1289.   --disable-option-checking  ignore unrecognized --enable/--with options
  1290.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1291.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1292.   --enable-manager=ARG    memory managers: no, builtin, memwatch, dmalloc,
  1293.                           gcollect, bcheck (defaults to builtin)
  1294.   --enable-packetver=ARG  Sets the PACKETVER define of the map-server. (see
  1295.                           src/map/clif.h)
  1296.   --enable-debug[=ARG]    Compiles extra debug code. (disabled by default)
  1297.                           (available options: yes, no, gdb)
  1298.   --enable-buildbot[=ARG] (available options: yes, no)
  1299.   --enable-rdtsc          Uses rdtsc as timing source (disabled by default)
  1300.                           Enable it when you've timing issues. (For example:
  1301.                           in conjunction with XEN or Other Virtualization
  1302.                           mechanisms) Note: Please ensure that you've disabled
  1303.                           dynamic CPU-Frequencys, such as power saving
  1304.                           options. (On the most modern Dedicated Servers
  1305.                           cpufreq is preconfigured, see your distribution's
  1306.                           manual how to disable it)
  1307.   --enable-profiler=ARG   Profilers: no, gprof (disabled by default)
  1308.   --disable-64bit         Enforce 32bit output on x86_64 systems.
  1309.   --enable-lto            Enables or Disables Linktime Code Optimization (LTO
  1310.                           is enabled by default)
  1311.  
  1312. Optional Packages:
  1313.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1314.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1315.   --with-mysql[=ARG]      optionally specify the path to the mysql_config
  1316.                           executable
  1317.   --with-MYSQL_CFLAGS=ARG specify MYSQL_CFLAGS manually (instead of using
  1318.                           "mysql_config --include")
  1319.   --with-MYSQL_LIBS=ARG   specify MYSQL_LIBS manually (instead of using
  1320.                           "mysql_config --libs")
  1321.   --with-pcre[=ARG]       use PCRE library, optionally specify the full path
  1322.                           of pcre installation directory (by default pcre is
  1323.                           used if found)
  1324.   --with-zlib=DIR         root directory path of zlib installation (defaults
  1325.                           to /usr/local or /usr if not found in /usr/local).
  1326.                           Assumes that the header files are in DIR/include and
  1327.                           the library files are in DIR/lib
  1328.  
  1329. Some influential environment variables:
  1330.   CC          C compiler command
  1331.   CFLAGS      C compiler flags
  1332.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1333.               nonstandard directory <lib dir>
  1334.   LIBS        libraries to pass to the linker, e.g. -l<library>
  1335.   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1336.               you have headers in a nonstandard directory <include dir>
  1337.   CPP         C preprocessor
  1338.  
  1339. Use these variables to override the choices made by `configure' or to help
  1340. it to find libraries and programs with nonstandard names/locations.
  1341.  
  1342. Report bugs to the package provider.
  1343. _ACEOF
  1344. ac_status=$?
  1345. fi
  1346.  
  1347. if test "$ac_init_help" = "recursive"; then
  1348.   # If there are subdirs, report their specific --help.
  1349.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1350.     test -d "$ac_dir" ||
  1351.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1352.       continue
  1353.     ac_builddir=.
  1354.  
  1355. case "$ac_dir" in
  1356. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1357. *)
  1358.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1359.   # A ".." for each directory in $ac_dir_suffix.
  1360.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1361.   case $ac_top_builddir_sub in
  1362.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1363.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1364.   esac ;;
  1365. esac
  1366. ac_abs_top_builddir=$ac_pwd
  1367. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1368. # for backward compatibility:
  1369. ac_top_builddir=$ac_top_build_prefix
  1370.  
  1371. case $srcdir in
  1372.   .)  # We are building in place.
  1373.     ac_srcdir=.
  1374.     ac_top_srcdir=$ac_top_builddir_sub
  1375.     ac_abs_top_srcdir=$ac_pwd ;;
  1376.   [\\/]* | ?:[\\/]* )  # Absolute name.
  1377.     ac_srcdir=$srcdir$ac_dir_suffix;
  1378.     ac_top_srcdir=$srcdir
  1379.     ac_abs_top_srcdir=$srcdir ;;
  1380.   *) # Relative name.
  1381.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1382.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1383.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1384. esac
  1385. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1386.  
  1387.     cd "$ac_dir" || { ac_status=$?; continue; }
  1388.     # Check for guested configure.
  1389.     if test -f "$ac_srcdir/configure.gnu"; then
  1390.       echo &&
  1391.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1392.     elif test -f "$ac_srcdir/configure"; then
  1393.       echo &&
  1394.       $SHELL "$ac_srcdir/configure" --help=recursive
  1395.     else
  1396.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1397.     fi || ac_status=$?
  1398.     cd "$ac_pwd" || { ac_status=$?; break; }
  1399.   done
  1400. fi
  1401.  
  1402. test -n "$ac_init_help" && exit $ac_status
  1403. if $ac_init_version; then
  1404.   cat <<\_ACEOF
  1405. configure
  1406. generated by GNU Autoconf 2.67
  1407.  
  1408. Copyright (C) 2010 Free Software Foundation, Inc.
  1409. This configure script is free software; the Free Software Foundation
  1410. gives unlimited permission to copy, distribute and modify it.
  1411. _ACEOF
  1412.   exit
  1413. fi
  1414.  
  1415. ## ------------------------ ##
  1416. ## Autoconf initialization. ##
  1417. ## ------------------------ ##
  1418.  
  1419. # ac_fn_c_try_compile LINENO
  1420. # --------------------------
  1421. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1422. ac_fn_c_try_compile ()
  1423. {
  1424.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1425.   rm -f conftest.$ac_objext
  1426.   if { { ac_try="$ac_compile"
  1427. case "(($ac_try" in
  1428.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1429.   *) ac_try_echo=$ac_try;;
  1430. esac
  1431. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1432. $as_echo "$ac_try_echo"; } >&5
  1433.   (eval "$ac_compile") 2>conftest.err
  1434.   ac_status=$?
  1435.   if test -s conftest.err; then
  1436.     grep -v '^ *+' conftest.err >conftest.er1
  1437.     cat conftest.er1 >&5
  1438.     mv -f conftest.er1 conftest.err
  1439.   fi
  1440.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1441.   test $ac_status = 0; } && {
  1442. 	 test -z "$ac_c_werror_flag" ||
  1443. 	 test ! -s conftest.err
  1444.        } && test -s conftest.$ac_objext; then :
  1445.   ac_retval=0
  1446. else
  1447.   $as_echo "$as_me: failed program was:" >&5
  1448. sed 's/^/| /' conftest.$ac_ext >&5
  1449.  
  1450. 	ac_retval=1
  1451. fi
  1452.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1453.   as_fn_set_status $ac_retval
  1454.  
  1455. } # ac_fn_c_try_compile
  1456.  
  1457. # ac_fn_c_try_cpp LINENO
  1458. # ----------------------
  1459. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1460. ac_fn_c_try_cpp ()
  1461. {
  1462.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1463.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1464. case "(($ac_try" in
  1465.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1466.   *) ac_try_echo=$ac_try;;
  1467. esac
  1468. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1469. $as_echo "$ac_try_echo"; } >&5
  1470.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1471.   ac_status=$?
  1472.   if test -s conftest.err; then
  1473.     grep -v '^ *+' conftest.err >conftest.er1
  1474.     cat conftest.er1 >&5
  1475.     mv -f conftest.er1 conftest.err
  1476.   fi
  1477.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1478.   test $ac_status = 0; } > conftest.i && {
  1479. 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1480. 	 test ! -s conftest.err
  1481.        }; then :
  1482.   ac_retval=0
  1483. else
  1484.   $as_echo "$as_me: failed program was:" >&5
  1485. sed 's/^/| /' conftest.$ac_ext >&5
  1486.  
  1487.     ac_retval=1
  1488. fi
  1489.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1490.   as_fn_set_status $ac_retval
  1491.  
  1492. } # ac_fn_c_try_cpp
  1493.  
  1494. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1495. # -------------------------------------------------------
  1496. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1497. # the include files in INCLUDES and setting the cache variable VAR
  1498. # accordingly.
  1499. ac_fn_c_check_header_mongrel ()
  1500. {
  1501.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1502.   if eval "test \"\${$3+set}\"" = set; then :
  1503.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1504. $as_echo_n "checking for $2... " >&6; }
  1505. if eval "test \"\${$3+set}\"" = set; then :
  1506.   $as_echo_n "(cached) " >&6
  1507. fi
  1508. eval ac_res=\$$3
  1509. 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1510. $as_echo "$ac_res" >&6; }
  1511. else
  1512.   # Is the header compilable?
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1514. $as_echo_n "checking $2 usability... " >&6; }
  1515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1516. /* end confdefs.h.  */
  1517. $4
  1518. #include <$2>
  1519. _ACEOF
  1520. if ac_fn_c_try_compile "$LINENO"; then :
  1521.   ac_header_compiler=yes
  1522. else
  1523.   ac_header_compiler=no
  1524. fi
  1525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1527. $as_echo "$ac_header_compiler" >&6; }
  1528.  
  1529. # Is the header present?
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1531. $as_echo_n "checking $2 presence... " >&6; }
  1532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1533. /* end confdefs.h.  */
  1534. #include <$2>
  1535. _ACEOF
  1536. if ac_fn_c_try_cpp "$LINENO"; then :
  1537.   ac_header_preproc=yes
  1538. else
  1539.   ac_header_preproc=no
  1540. fi
  1541. rm -f conftest.err conftest.i conftest.$ac_ext
  1542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1543. $as_echo "$ac_header_preproc" >&6; }
  1544.  
  1545. # So?  What about this header?
  1546. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1547.   yes:no: )
  1548.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1549. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1550.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1551. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1552.     ;;
  1553.   no:yes:* )
  1554.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1555. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1556.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  1557. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  1558.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1559. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1560.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  1561. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  1562.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1563. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1564.     ;;
  1565. esac
  1566.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1567. $as_echo_n "checking for $2... " >&6; }
  1568. if eval "test \"\${$3+set}\"" = set; then :
  1569.   $as_echo_n "(cached) " >&6
  1570. else
  1571.   eval "$3=\$ac_header_compiler"
  1572. fi
  1573. eval ac_res=\$$3
  1574. 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1575. $as_echo "$ac_res" >&6; }
  1576. fi
  1577.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1578.  
  1579. } # ac_fn_c_check_header_mongrel
  1580.  
  1581. # ac_fn_c_try_run LINENO
  1582. # ----------------------
  1583. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1584. # that executables *can* be run.
  1585. ac_fn_c_try_run ()
  1586. {
  1587.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1588.   if { { ac_try="$ac_link"
  1589. case "(($ac_try" in
  1590.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1591.   *) ac_try_echo=$ac_try;;
  1592. esac
  1593. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1594. $as_echo "$ac_try_echo"; } >&5
  1595.   (eval "$ac_link") 2>&5
  1596.   ac_status=$?
  1597.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1598.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1599.   { { case "(($ac_try" in
  1600.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1601.   *) ac_try_echo=$ac_try;;
  1602. esac
  1603. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1604. $as_echo "$ac_try_echo"; } >&5
  1605.   (eval "$ac_try") 2>&5
  1606.   ac_status=$?
  1607.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1608.   test $ac_status = 0; }; }; then :
  1609.   ac_retval=0
  1610. else
  1611.   $as_echo "$as_me: program exited with status $ac_status" >&5
  1612.        $as_echo "$as_me: failed program was:" >&5
  1613. sed 's/^/| /' conftest.$ac_ext >&5
  1614.  
  1615.        ac_retval=$ac_status
  1616. fi
  1617.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1618.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1619.   as_fn_set_status $ac_retval
  1620.  
  1621. } # ac_fn_c_try_run
  1622.  
  1623. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1624. # -------------------------------------------------------
  1625. # Tests whether HEADER exists and can be compiled using the include files in
  1626. # INCLUDES, setting the cache variable VAR accordingly.
  1627. ac_fn_c_check_header_compile ()
  1628. {
  1629.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1630.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1631. $as_echo_n "checking for $2... " >&6; }
  1632. if eval "test \"\${$3+set}\"" = set; then :
  1633.   $as_echo_n "(cached) " >&6
  1634. else
  1635.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1636. /* end confdefs.h.  */
  1637. $4
  1638. #include <$2>
  1639. _ACEOF
  1640. if ac_fn_c_try_compile "$LINENO"; then :
  1641.   eval "$3=yes"
  1642. else
  1643.   eval "$3=no"
  1644. fi
  1645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1646. fi
  1647. eval ac_res=\$$3
  1648. 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1649. $as_echo "$ac_res" >&6; }
  1650.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1651.  
  1652. } # ac_fn_c_check_header_compile
  1653.  
  1654. # ac_fn_c_try_link LINENO
  1655. # -----------------------
  1656. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1657. ac_fn_c_try_link ()
  1658. {
  1659.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1660.   rm -f conftest.$ac_objext conftest$ac_exeext
  1661.   if { { ac_try="$ac_link"
  1662. case "(($ac_try" in
  1663.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1664.   *) ac_try_echo=$ac_try;;
  1665. esac
  1666. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1667. $as_echo "$ac_try_echo"; } >&5
  1668.   (eval "$ac_link") 2>conftest.err
  1669.   ac_status=$?
  1670.   if test -s conftest.err; then
  1671.     grep -v '^ *+' conftest.err >conftest.er1
  1672.     cat conftest.er1 >&5
  1673.     mv -f conftest.er1 conftest.err
  1674.   fi
  1675.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1676.   test $ac_status = 0; } && {
  1677. 	 test -z "$ac_c_werror_flag" ||
  1678. 	 test ! -s conftest.err
  1679.        } && test -s conftest$ac_exeext && {
  1680. 	 test "$cross_compiling" = yes ||
  1681. 	 $as_test_x conftest$ac_exeext
  1682.        }; then :
  1683.   ac_retval=0
  1684. else
  1685.   $as_echo "$as_me: failed program was:" >&5
  1686. sed 's/^/| /' conftest.$ac_ext >&5
  1687.  
  1688. 	ac_retval=1
  1689. fi
  1690.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1691.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1692.   # interfere with the next link command; also delete a directory that is
  1693.   # left behind by Apple's compiler.  We do this before executing the actions.
  1694.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1695.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1696.   as_fn_set_status $ac_retval
  1697.  
  1698. } # ac_fn_c_try_link
  1699.  
  1700. # ac_fn_c_check_func LINENO FUNC VAR
  1701. # ----------------------------------
  1702. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1703. ac_fn_c_check_func ()
  1704. {
  1705.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1706.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1707. $as_echo_n "checking for $2... " >&6; }
  1708. if eval "test \"\${$3+set}\"" = set; then :
  1709.   $as_echo_n "(cached) " >&6
  1710. else
  1711.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1712. /* end confdefs.h.  */
  1713. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1714.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  1715. #define $2 innocuous_$2
  1716.  
  1717. /* System header to define __stub macros and hopefully few prototypes,
  1718.     which can conflict with char $2 (); below.
  1719.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1720.     <limits.h> exists even on freestanding compilers.  */
  1721.  
  1722. #ifdef __STDC__
  1723. # include <limits.h>
  1724. #else
  1725. # include <assert.h>
  1726. #endif
  1727.  
  1728. #undef $2
  1729.  
  1730. /* Override any GCC internal prototype to avoid an error.
  1731.    Use char because int might match the return type of a GCC
  1732.    builtin and then its argument prototype would still apply.  */
  1733. #ifdef __cplusplus
  1734. extern "C"
  1735. #endif
  1736. char $2 ();
  1737. /* The GNU C library defines this for functions which it implements
  1738.     to always fail with ENOSYS.  Some functions are actually named
  1739.     something starting with __ and the normal name is an alias.  */
  1740. #if defined __stub_$2 || defined __stub___$2
  1741. choke me
  1742. #endif
  1743.  
  1744. int
  1745. main ()
  1746. {
  1747. return $2 ();
  1748.   ;
  1749.   return 0;
  1750. }
  1751. _ACEOF
  1752. if ac_fn_c_try_link "$LINENO"; then :
  1753.   eval "$3=yes"
  1754. else
  1755.   eval "$3=no"
  1756. fi
  1757. rm -f core conftest.err conftest.$ac_objext \
  1758.     conftest$ac_exeext conftest.$ac_ext
  1759. fi
  1760. eval ac_res=\$$3
  1761. 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1762. $as_echo "$ac_res" >&6; }
  1763.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1764.  
  1765. } # ac_fn_c_check_func
  1766. cat >config.log <<_ACEOF
  1767. This file contains any messages produced by compilers while
  1768. running configure, to aid debugging if configure makes a mistake.
  1769.  
  1770. It was created by $as_me, which was
  1771. generated by GNU Autoconf 2.67.  Invocation command line was
  1772.  
  1773.   $ $0 $@
  1774.  
  1775. _ACEOF
  1776. exec 5>>config.log
  1777. {
  1778. cat <<_ASUNAME
  1779. ## --------- ##
  1780. ## Platform. ##
  1781. ## --------- ##
  1782.  
  1783. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1784. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1785. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1786. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1787. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1788.  
  1789. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1790. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1791.  
  1792. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1793. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1794. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1795. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1796. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1797. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1798. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1799.  
  1800. _ASUNAME
  1801.  
  1802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1803. for as_dir in $PATH
  1804. do
  1805.   IFS=$as_save_IFS
  1806.   test -z "$as_dir" && as_dir=.
  1807.     $as_echo "PATH: $as_dir"
  1808.   done
  1809. IFS=$as_save_IFS
  1810.  
  1811. } >&5
  1812.  
  1813. cat >&5 <<_ACEOF
  1814.  
  1815.  
  1816. ## ----------- ##
  1817. ## Core tests. ##
  1818. ## ----------- ##
  1819.  
  1820. _ACEOF
  1821.  
  1822.  
  1823. # Keep a trace of the command line.
  1824. # Strip out --no-create and --no-recursion so they do not pile up.
  1825. # Strip out --silent because we don't want to record it for future runs.
  1826. # Also quote any args containing shell meta-characters.
  1827. # Make two passes to allow for proper duplicate-argument suppression.
  1828. ac_configure_args=
  1829. ac_configure_args0=
  1830. ac_configure_args1=
  1831. ac_must_keep_next=false
  1832. for ac_pass in 1 2
  1833. do
  1834.   for ac_arg
  1835.   do
  1836.     case $ac_arg in
  1837.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1838.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1839.     | -silent | --silent | --silen | --sile | --sil)
  1840.       continue ;;
  1841.     *\'*)
  1842.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1843.     esac
  1844.     case $ac_pass in
  1845.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1846.     2)
  1847.       as_fn_append ac_configure_args1 " '$ac_arg'"
  1848.       if test $ac_must_keep_next = true; then
  1849. 	ac_must_keep_next=false # Got value, back to normal.
  1850.       else
  1851. 	case $ac_arg in
  1852. 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1853. 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1854. 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1855. 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1856. 	    case "$ac_configure_args0 " in
  1857. 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1858. 	    esac
  1859. 	    ;;
  1860. 	  -* ) ac_must_keep_next=true ;;
  1861. 	esac
  1862.       fi
  1863.       as_fn_append ac_configure_args " '$ac_arg'"
  1864.       ;;
  1865.     esac
  1866.   done
  1867. done
  1868. { ac_configure_args0=; unset ac_configure_args0;}
  1869. { ac_configure_args1=; unset ac_configure_args1;}
  1870.  
  1871. # When interrupted or exit'd, cleanup temporary files, and complete
  1872. # config.log.  We remove comments because anyway the quotes in there
  1873. # would cause problems or look ugly.
  1874. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1875. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1876. trap 'exit_status=$?
  1877.   # Save into config.log some information that might help in debugging.
  1878.   {
  1879.     echo
  1880.  
  1881.     $as_echo "## ---------------- ##
  1882. ## Cache variables. ##
  1883. ## ---------------- ##"
  1884.     echo
  1885.     # The following way of writing the cache mishandles newlines in values,
  1886. (
  1887.   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1888.     eval ac_val=\$$ac_var
  1889.     case $ac_val in #(
  1890.     *${as_nl}*)
  1891.       case $ac_var in #(
  1892.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1893. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1894.       esac
  1895.       case $ac_var in #(
  1896.       _ | IFS | as_nl) ;; #(
  1897.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1898.       *) { eval $ac_var=; unset $ac_var;} ;;
  1899.       esac ;;
  1900.     esac
  1901.   done
  1902.   (set) 2>&1 |
  1903.     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1904.     *${as_nl}ac_space=\ *)
  1905.       sed -n \
  1906. 	"s/'\''/'\''\\\\'\'''\''/g;
  1907. 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1908.       ;; #(
  1909.     *)
  1910.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1911.       ;;
  1912.     esac |
  1913.     sort
  1914. )
  1915.     echo
  1916.  
  1917.     $as_echo "## ----------------- ##
  1918. ## Output variables. ##
  1919. ## ----------------- ##"
  1920.     echo
  1921.     for ac_var in $ac_subst_vars
  1922.     do
  1923.       eval ac_val=\$$ac_var
  1924.       case $ac_val in
  1925.       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1926.       esac
  1927.       $as_echo "$ac_var='\''$ac_val'\''"
  1928.     done | sort
  1929.     echo
  1930.  
  1931.     if test -n "$ac_subst_files"; then
  1932.       $as_echo "## ------------------- ##
  1933. ## File substitutions. ##
  1934. ## ------------------- ##"
  1935.       echo
  1936.       for ac_var in $ac_subst_files
  1937.       do
  1938. 	eval ac_val=\$$ac_var
  1939. 	case $ac_val in
  1940. 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1941. 	esac
  1942. 	$as_echo "$ac_var='\''$ac_val'\''"
  1943.       done | sort
  1944.       echo
  1945.     fi
  1946.  
  1947.     if test -s confdefs.h; then
  1948.       $as_echo "## ----------- ##
  1949. ## confdefs.h. ##
  1950. ## ----------- ##"
  1951.       echo
  1952.       cat confdefs.h
  1953.       echo
  1954.     fi
  1955.     test "$ac_signal" != 0 &&
  1956.       $as_echo "$as_me: caught signal $ac_signal"
  1957.     $as_echo "$as_me: exit $exit_status"
  1958.   } >&5
  1959.   rm -f core *.core core.conftest.* &&
  1960.     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1961.     exit $exit_status
  1962. ' 0
  1963. for ac_signal in 1 2 13 15; do
  1964.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1965. done
  1966. ac_signal=0
  1967.  
  1968. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1969. rm -f -r conftest* confdefs.h
  1970.  
  1971. $as_echo "/* confdefs.h */" > confdefs.h
  1972.  
  1973. # Predefined preprocessor variables.
  1974.  
  1975. cat >>confdefs.h <<_ACEOF
  1976. #define PACKAGE_NAME "$PACKAGE_NAME"
  1977. _ACEOF
  1978.  
  1979. cat >>confdefs.h <<_ACEOF
  1980. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1981. _ACEOF
  1982.  
  1983. cat >>confdefs.h <<_ACEOF
  1984. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1985. _ACEOF
  1986.  
  1987. cat >>confdefs.h <<_ACEOF
  1988. #define PACKAGE_STRING "$PACKAGE_STRING"
  1989. _ACEOF
  1990.  
  1991. cat >>confdefs.h <<_ACEOF
  1992. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1993. _ACEOF
  1994.  
  1995. cat >>confdefs.h <<_ACEOF
  1996. #define PACKAGE_URL "$PACKAGE_URL"
  1997. _ACEOF
  1998.  
  1999.  
  2000. # Let the site file select an alternate cache file if it wants to.
  2001. # Prefer an explicitly selected file to automatically selected ones.
  2002. ac_site_file1=NONE
  2003. ac_site_file2=NONE
  2004. if test -n "$CONFIG_SITE"; then
  2005.   # We do not want a PATH search for config.site.
  2006.   case $CONFIG_SITE in #((
  2007.     -*)  ac_site_file1=./$CONFIG_SITE;;
  2008.     */*) ac_site_file1=$CONFIG_SITE;;
  2009.     *)   ac_site_file1=./$CONFIG_SITE;;
  2010.   esac
  2011. elif test "x$prefix" != xNONE; then
  2012.   ac_site_file1=$prefix/share/config.site
  2013.   ac_site_file2=$prefix/etc/config.site
  2014. else
  2015.   ac_site_file1=$ac_default_prefix/share/config.site
  2016.   ac_site_file2=$ac_default_prefix/etc/config.site
  2017. fi
  2018. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2019. do
  2020.   test "x$ac_site_file" = xNONE && continue
  2021.   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2022.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2023. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2024.     sed 's/^/| /' "$ac_site_file" >&5
  2025.     . "$ac_site_file" \
  2026.       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2027. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2028. as_fn_error $? "failed to load site script $ac_site_file
  2029. See \`config.log' for more details" "$LINENO" 5 ; }
  2030.   fi
  2031. done
  2032.  
  2033. if test -r "$cache_file"; then
  2034.   # Some versions of bash will fail to source /dev/null (special files
  2035.   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2036.   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2037.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2038. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2039.     case $cache_file in
  2040.       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2041.       *)                      . "./$cache_file";;
  2042.     esac
  2043.   fi
  2044. else
  2045.   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2046. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2047.   >$cache_file
  2048. fi
  2049.  
  2050. # Check that the precious variables saved in the cache have kept the same
  2051. # value.
  2052. ac_cache_corrupted=false
  2053. for ac_var in $ac_precious_vars; do
  2054.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2055.   eval ac_new_set=\$ac_env_${ac_var}_set
  2056.   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2057.   eval ac_new_val=\$ac_env_${ac_var}_value
  2058.   case $ac_old_set,$ac_new_set in
  2059.     set,)
  2060.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2061. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2062.       ac_cache_corrupted=: ;;
  2063.     ,set)
  2064.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2065. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2066.       ac_cache_corrupted=: ;;
  2067.     ,);;
  2068.     *)
  2069.       if test "x$ac_old_val" != "x$ac_new_val"; then
  2070. 	# differences in whitespace do not lead to failure.
  2071. 	ac_old_val_w=`echo x $ac_old_val`
  2072. 	ac_new_val_w=`echo x $ac_new_val`
  2073. 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2074. 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2075. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2076. 	  ac_cache_corrupted=:
  2077. 	else
  2078. 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2079. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2080. 	  eval $ac_var=\$ac_old_val
  2081. 	fi
  2082. 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2083. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2084. 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2085. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2086.       fi;;
  2087.   esac
  2088.   # Pass precious variables to config.status.
  2089.   if test "$ac_new_set" = set; then
  2090.     case $ac_new_val in
  2091.     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2092.     *) ac_arg=$ac_var=$ac_new_val ;;
  2093.     esac
  2094.     case " $ac_configure_args " in
  2095.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2096.       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2097.     esac
  2098.   fi
  2099. done
  2100. if $ac_cache_corrupted; then
  2101.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2102. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2103.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2104. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2105.   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2106. fi
  2107. ## -------------------- ##
  2108. ## Main body of script. ##
  2109. ## -------------------- ##
  2110.  
  2111. ac_ext=c
  2112. ac_cpp='$CPP $CPPFLAGS'
  2113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121. ac_config_files="$ac_config_files Makefile src/common/Makefile"
  2122.  
  2123. ac_config_files="$ac_config_files 3rdparty/mt19937ar/Makefile 3rdparty/libconfig/Makefile"
  2124.  
  2125. ac_config_files="$ac_config_files src/char/Makefile src/login/Makefile"
  2126.  
  2127. ac_config_files="$ac_config_files src/map/Makefile src/tool/Makefile"
  2128.  
  2129.  
  2130. ac_ext=c
  2131. ac_cpp='$CPP $CPPFLAGS'
  2132. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2133. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2134. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2135. if test -n "$ac_tool_prefix"; then
  2136.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2137. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2139. $as_echo_n "checking for $ac_word... " >&6; }
  2140. if test "${ac_cv_prog_CC+set}" = set; then :
  2141.   $as_echo_n "(cached) " >&6
  2142. else
  2143.   if test -n "$CC"; then
  2144.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2145. else
  2146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2147. for as_dir in $PATH
  2148. do
  2149.   IFS=$as_save_IFS
  2150.   test -z "$as_dir" && as_dir=.
  2151.     for ac_exec_ext in '' $ac_executable_extensions; do
  2152.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2153.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2154.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2155.     break 2
  2156.   fi
  2157. done
  2158.   done
  2159. IFS=$as_save_IFS
  2160.  
  2161. fi
  2162. fi
  2163. CC=$ac_cv_prog_CC
  2164. if test -n "$CC"; then
  2165.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2166. $as_echo "$CC" >&6; }
  2167. else
  2168.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2169. $as_echo "no" >&6; }
  2170. fi
  2171.  
  2172.  
  2173. fi
  2174. if test -z "$ac_cv_prog_CC"; then
  2175.   ac_ct_CC=$CC
  2176.   # Extract the first word of "gcc", so it can be a program name with args.
  2177. set dummy gcc; ac_word=$2
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2179. $as_echo_n "checking for $ac_word... " >&6; }
  2180. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2181.   $as_echo_n "(cached) " >&6
  2182. else
  2183.   if test -n "$ac_ct_CC"; then
  2184.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2185. else
  2186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2187. for as_dir in $PATH
  2188. do
  2189.   IFS=$as_save_IFS
  2190.   test -z "$as_dir" && as_dir=.
  2191.     for ac_exec_ext in '' $ac_executable_extensions; do
  2192.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2193.     ac_cv_prog_ac_ct_CC="gcc"
  2194.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2195.     break 2
  2196.   fi
  2197. done
  2198.   done
  2199. IFS=$as_save_IFS
  2200.  
  2201. fi
  2202. fi
  2203. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2204. if test -n "$ac_ct_CC"; then
  2205.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2206. $as_echo "$ac_ct_CC" >&6; }
  2207. else
  2208.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2209. $as_echo "no" >&6; }
  2210. fi
  2211.  
  2212.   if test "x$ac_ct_CC" = x; then
  2213.     CC=""
  2214.   else
  2215.     case $cross_compiling:$ac_tool_warned in
  2216. yes:)
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2218. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2219. ac_tool_warned=yes ;;
  2220. esac
  2221.     CC=$ac_ct_CC
  2222.   fi
  2223. else
  2224.   CC="$ac_cv_prog_CC"
  2225. fi
  2226.  
  2227. if test -z "$CC"; then
  2228.           if test -n "$ac_tool_prefix"; then
  2229.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2230. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2232. $as_echo_n "checking for $ac_word... " >&6; }
  2233. if test "${ac_cv_prog_CC+set}" = set; then :
  2234.   $as_echo_n "(cached) " >&6
  2235. else
  2236.   if test -n "$CC"; then
  2237.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2238. else
  2239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2240. for as_dir in $PATH
  2241. do
  2242.   IFS=$as_save_IFS
  2243.   test -z "$as_dir" && as_dir=.
  2244.     for ac_exec_ext in '' $ac_executable_extensions; do
  2245.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2246.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2247.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2248.     break 2
  2249.   fi
  2250. done
  2251.   done
  2252. IFS=$as_save_IFS
  2253.  
  2254. fi
  2255. fi
  2256. CC=$ac_cv_prog_CC
  2257. if test -n "$CC"; then
  2258.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2259. $as_echo "$CC" >&6; }
  2260. else
  2261.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2262. $as_echo "no" >&6; }
  2263. fi
  2264.  
  2265.  
  2266.   fi
  2267. fi
  2268. if test -z "$CC"; then
  2269.   # Extract the first word of "cc", so it can be a program name with args.
  2270. set dummy cc; ac_word=$2
  2271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2272. $as_echo_n "checking for $ac_word... " >&6; }
  2273. if test "${ac_cv_prog_CC+set}" = set; then :
  2274.   $as_echo_n "(cached) " >&6
  2275. else
  2276.   if test -n "$CC"; then
  2277.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2278. else
  2279.   ac_prog_rejected=no
  2280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2281. for as_dir in $PATH
  2282. do
  2283.   IFS=$as_save_IFS
  2284.   test -z "$as_dir" && as_dir=.
  2285.     for ac_exec_ext in '' $ac_executable_extensions; do
  2286.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2287.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2288.        ac_prog_rejected=yes
  2289.        continue
  2290.      fi
  2291.     ac_cv_prog_CC="cc"
  2292.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2293.     break 2
  2294.   fi
  2295. done
  2296.   done
  2297. IFS=$as_save_IFS
  2298.  
  2299. if test $ac_prog_rejected = yes; then
  2300.   # We found a bogon in the path, so make sure we never use it.
  2301.   set dummy $ac_cv_prog_CC
  2302.   shift
  2303.   if test $# != 0; then
  2304.     # We chose a different compiler from the bogus one.
  2305.     # However, it has the same basename, so the bogon will be chosen
  2306.     # first if we set CC to just the basename; use the full file name.
  2307.     shift
  2308.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2309.   fi
  2310. fi
  2311. fi
  2312. fi
  2313. CC=$ac_cv_prog_CC
  2314. if test -n "$CC"; then
  2315.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2316. $as_echo "$CC" >&6; }
  2317. else
  2318.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2319. $as_echo "no" >&6; }
  2320. fi
  2321.  
  2322.  
  2323. fi
  2324. if test -z "$CC"; then
  2325.   if test -n "$ac_tool_prefix"; then
  2326.   for ac_prog in cl.exe
  2327.   do
  2328.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2329. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2331. $as_echo_n "checking for $ac_word... " >&6; }
  2332. if test "${ac_cv_prog_CC+set}" = set; then :
  2333.   $as_echo_n "(cached) " >&6
  2334. else
  2335.   if test -n "$CC"; then
  2336.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2337. else
  2338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2339. for as_dir in $PATH
  2340. do
  2341.   IFS=$as_save_IFS
  2342.   test -z "$as_dir" && as_dir=.
  2343.     for ac_exec_ext in '' $ac_executable_extensions; do
  2344.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2345.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2346.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2347.     break 2
  2348.   fi
  2349. done
  2350.   done
  2351. IFS=$as_save_IFS
  2352.  
  2353. fi
  2354. fi
  2355. CC=$ac_cv_prog_CC
  2356. if test -n "$CC"; then
  2357.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2358. $as_echo "$CC" >&6; }
  2359. else
  2360.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2361. $as_echo "no" >&6; }
  2362. fi
  2363.  
  2364.  
  2365.     test -n "$CC" && break
  2366.   done
  2367. fi
  2368. if test -z "$CC"; then
  2369.   ac_ct_CC=$CC
  2370.   for ac_prog in cl.exe
  2371. do
  2372.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2373. set dummy $ac_prog; ac_word=$2
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2375. $as_echo_n "checking for $ac_word... " >&6; }
  2376. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2377.   $as_echo_n "(cached) " >&6
  2378. else
  2379.   if test -n "$ac_ct_CC"; then
  2380.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2381. else
  2382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2383. for as_dir in $PATH
  2384. do
  2385.   IFS=$as_save_IFS
  2386.   test -z "$as_dir" && as_dir=.
  2387.     for ac_exec_ext in '' $ac_executable_extensions; do
  2388.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2389.     ac_cv_prog_ac_ct_CC="$ac_prog"
  2390.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2391.     break 2
  2392.   fi
  2393. done
  2394.   done
  2395. IFS=$as_save_IFS
  2396.  
  2397. fi
  2398. fi
  2399. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2400. if test -n "$ac_ct_CC"; then
  2401.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2402. $as_echo "$ac_ct_CC" >&6; }
  2403. else
  2404.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2405. $as_echo "no" >&6; }
  2406. fi
  2407.  
  2408.  
  2409.   test -n "$ac_ct_CC" && break
  2410. done
  2411.  
  2412.   if test "x$ac_ct_CC" = x; then
  2413.     CC=""
  2414.   else
  2415.     case $cross_compiling:$ac_tool_warned in
  2416. yes:)
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2418. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2419. ac_tool_warned=yes ;;
  2420. esac
  2421.     CC=$ac_ct_CC
  2422.   fi
  2423. fi
  2424.  
  2425. fi
  2426.  
  2427.  
  2428. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2429. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2430. as_fn_error $? "no acceptable C compiler found in \$PATH
  2431. See \`config.log' for more details" "$LINENO" 5 ; }
  2432.  
  2433. # Provide some information about the compiler.
  2434. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2435. set X $ac_compile
  2436. ac_compiler=$2
  2437. for ac_option in --version -v -V -qversion; do
  2438.   { { ac_try="$ac_compiler $ac_option >&5"
  2439. case "(($ac_try" in
  2440.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2441.   *) ac_try_echo=$ac_try;;
  2442. esac
  2443. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2444. $as_echo "$ac_try_echo"; } >&5
  2445.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2446.   ac_status=$?
  2447.   if test -s conftest.err; then
  2448.     sed '10a\
  2449. ... rest of stderr output deleted ...
  2450.          10q' conftest.err >conftest.er1
  2451.     cat conftest.er1 >&5
  2452.   fi
  2453.   rm -f conftest.er1 conftest.err
  2454.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2455.   test $ac_status = 0; }
  2456. done
  2457.  
  2458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2459. /* end confdefs.h.  */
  2460.  
  2461. int
  2462. main ()
  2463. {
  2464.  
  2465.   ;
  2466.   return 0;
  2467. }
  2468. _ACEOF
  2469. ac_clean_files_save=$ac_clean_files
  2470. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2471. # Try to create an executable without -o first, disregard a.out.
  2472. # It will help us diagnose broken compilers, and finding out an intuition
  2473. # of exeext.
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2475. $as_echo_n "checking whether the C compiler works... " >&6; }
  2476. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2477.  
  2478. # The possible output files:
  2479. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2480.  
  2481. ac_rmfiles=
  2482. for ac_file in $ac_files
  2483. do
  2484.   case $ac_file in
  2485.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2486.     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2487.   esac
  2488. done
  2489. rm -f $ac_rmfiles
  2490.  
  2491. if { { ac_try="$ac_link_default"
  2492. case "(($ac_try" in
  2493.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2494.   *) ac_try_echo=$ac_try;;
  2495. esac
  2496. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2497. $as_echo "$ac_try_echo"; } >&5
  2498.   (eval "$ac_link_default") 2>&5
  2499.   ac_status=$?
  2500.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2501.   test $ac_status = 0; }; then :
  2502.   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2503. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2504. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2505. # so that the user can short-circuit this test for compilers unknown to
  2506. # Autoconf.
  2507. for ac_file in $ac_files ''
  2508. do
  2509.   test -f "$ac_file" || continue
  2510.   case $ac_file in
  2511.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2512. 	;;
  2513.     [ab].out )
  2514. 	# We found the default executable, but exeext='' is most
  2515. 	# certainly right.
  2516. 	break;;
  2517.     *.* )
  2518. 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2519. 	then :; else
  2520. 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2521. 	fi
  2522. 	# We set ac_cv_exeext here because the later test for it is not
  2523. 	# safe: cross compilers may not add the suffix if given an `-o'
  2524. 	# argument, so we may need to know it at that point already.
  2525. 	# Even if this section looks crufty: it has the advantage of
  2526. 	# actually working.
  2527. 	break;;
  2528.     * )
  2529. 	break;;
  2530.   esac
  2531. done
  2532. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2533.  
  2534. else
  2535.   ac_file=''
  2536. fi
  2537. if test -z "$ac_file"; then :
  2538.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2539. $as_echo "no" >&6; }
  2540. $as_echo "$as_me: failed program was:" >&5
  2541. sed 's/^/| /' conftest.$ac_ext >&5
  2542.  
  2543. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2544. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2545. as_fn_error 77 "C compiler cannot create executables
  2546. See \`config.log' for more details" "$LINENO" 5 ; }
  2547. else
  2548.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2549. $as_echo "yes" >&6; }
  2550. fi
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2552. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2554. $as_echo "$ac_file" >&6; }
  2555. ac_exeext=$ac_cv_exeext
  2556.  
  2557. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2558. ac_clean_files=$ac_clean_files_save
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2560. $as_echo_n "checking for suffix of executables... " >&6; }
  2561. if { { ac_try="$ac_link"
  2562. case "(($ac_try" in
  2563.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2564.   *) ac_try_echo=$ac_try;;
  2565. esac
  2566. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2567. $as_echo "$ac_try_echo"; } >&5
  2568.   (eval "$ac_link") 2>&5
  2569.   ac_status=$?
  2570.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2571.   test $ac_status = 0; }; then :
  2572.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2573. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2574. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2575. # `rm'.
  2576. for ac_file in conftest.exe conftest conftest.*; do
  2577.   test -f "$ac_file" || continue
  2578.   case $ac_file in
  2579.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2580.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2581. 	  break;;
  2582.     * ) break;;
  2583.   esac
  2584. done
  2585. else
  2586.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2587. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2588. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2589. See \`config.log' for more details" "$LINENO" 5 ; }
  2590. fi
  2591. rm -f conftest conftest$ac_cv_exeext
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2593. $as_echo "$ac_cv_exeext" >&6; }
  2594.  
  2595. rm -f conftest.$ac_ext
  2596. EXEEXT=$ac_cv_exeext
  2597. ac_exeext=$EXEEXT
  2598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2599. /* end confdefs.h.  */
  2600. #include <stdio.h>
  2601. int
  2602. main ()
  2603. {
  2604. FILE *f = fopen ("conftest.out", "w");
  2605.  return ferror (f) || fclose (f) != 0;
  2606.  
  2607.   ;
  2608.   return 0;
  2609. }
  2610. _ACEOF
  2611. ac_clean_files="$ac_clean_files conftest.out"
  2612. # Check that the compiler produces executables we can run.  If not, either
  2613. # the compiler is broken, or we cross compile.
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2615. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2616. if test "$cross_compiling" != yes; then
  2617.   { { ac_try="$ac_link"
  2618. case "(($ac_try" in
  2619.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2620.   *) ac_try_echo=$ac_try;;
  2621. esac
  2622. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2623. $as_echo "$ac_try_echo"; } >&5
  2624.   (eval "$ac_link") 2>&5
  2625.   ac_status=$?
  2626.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2627.   test $ac_status = 0; }
  2628.   if { ac_try='./conftest$ac_cv_exeext'
  2629.   { { case "(($ac_try" in
  2630.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2631.   *) ac_try_echo=$ac_try;;
  2632. esac
  2633. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2634. $as_echo "$ac_try_echo"; } >&5
  2635.   (eval "$ac_try") 2>&5
  2636.   ac_status=$?
  2637.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2638.   test $ac_status = 0; }; }; then
  2639.     cross_compiling=no
  2640.   else
  2641.     if test "$cross_compiling" = maybe; then
  2642. 	cross_compiling=yes
  2643.     else
  2644. 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2645. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2646. as_fn_error $? "cannot run C compiled programs.
  2647. If you meant to cross compile, use \`--host'.
  2648. See \`config.log' for more details" "$LINENO" 5 ; }
  2649.     fi
  2650.   fi
  2651. fi
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2653. $as_echo "$cross_compiling" >&6; }
  2654.  
  2655. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2656. ac_clean_files=$ac_clean_files_save
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2658. $as_echo_n "checking for suffix of object files... " >&6; }
  2659. if test "${ac_cv_objext+set}" = set; then :
  2660.   $as_echo_n "(cached) " >&6
  2661. else
  2662.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2663. /* end confdefs.h.  */
  2664.  
  2665. int
  2666. main ()
  2667. {
  2668.  
  2669.   ;
  2670.   return 0;
  2671. }
  2672. _ACEOF
  2673. rm -f conftest.o conftest.obj
  2674. if { { ac_try="$ac_compile"
  2675. case "(($ac_try" in
  2676.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2677.   *) ac_try_echo=$ac_try;;
  2678. esac
  2679. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2680. $as_echo "$ac_try_echo"; } >&5
  2681.   (eval "$ac_compile") 2>&5
  2682.   ac_status=$?
  2683.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2684.   test $ac_status = 0; }; then :
  2685.   for ac_file in conftest.o conftest.obj conftest.*; do
  2686.   test -f "$ac_file" || continue;
  2687.   case $ac_file in
  2688.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2689.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2690.        break;;
  2691.   esac
  2692. done
  2693. else
  2694.   $as_echo "$as_me: failed program was:" >&5
  2695. sed 's/^/| /' conftest.$ac_ext >&5
  2696.  
  2697. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2698. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2699. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2700. See \`config.log' for more details" "$LINENO" 5 ; }
  2701. fi
  2702. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2703. fi
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2705. $as_echo "$ac_cv_objext" >&6; }
  2706. OBJEXT=$ac_cv_objext
  2707. ac_objext=$OBJEXT
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2709. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2710. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2711.   $as_echo_n "(cached) " >&6
  2712. else
  2713.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2714. /* end confdefs.h.  */
  2715.  
  2716. int
  2717. main ()
  2718. {
  2719. #ifndef __GNUC__
  2720.        choke me
  2721. #endif
  2722.  
  2723.   ;
  2724.   return 0;
  2725. }
  2726. _ACEOF
  2727. if ac_fn_c_try_compile "$LINENO"; then :
  2728.   ac_compiler_gnu=yes
  2729. else
  2730.   ac_compiler_gnu=no
  2731. fi
  2732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2733. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2734.  
  2735. fi
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2737. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2738. if test $ac_compiler_gnu = yes; then
  2739.   GCC=yes
  2740. else
  2741.   GCC=
  2742. fi
  2743. ac_test_CFLAGS=${CFLAGS+set}
  2744. ac_save_CFLAGS=$CFLAGS
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2746. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2747. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2748.   $as_echo_n "(cached) " >&6
  2749. else
  2750.   ac_save_c_werror_flag=$ac_c_werror_flag
  2751.    ac_c_werror_flag=yes
  2752.    ac_cv_prog_cc_g=no
  2753.    CFLAGS="-g"
  2754.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2755. /* end confdefs.h.  */
  2756.  
  2757. int
  2758. main ()
  2759. {
  2760.  
  2761.   ;
  2762.   return 0;
  2763. }
  2764. _ACEOF
  2765. if ac_fn_c_try_compile "$LINENO"; then :
  2766.   ac_cv_prog_cc_g=yes
  2767. else
  2768.   CFLAGS=""
  2769.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2770. /* end confdefs.h.  */
  2771.  
  2772. int
  2773. main ()
  2774. {
  2775.  
  2776.   ;
  2777.   return 0;
  2778. }
  2779. _ACEOF
  2780. if ac_fn_c_try_compile "$LINENO"; then :
  2781.  
  2782. else
  2783.   ac_c_werror_flag=$ac_save_c_werror_flag
  2784. 	 CFLAGS="-g"
  2785. 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2786. /* end confdefs.h.  */
  2787.  
  2788. int
  2789. main ()
  2790. {
  2791.  
  2792.   ;
  2793.   return 0;
  2794. }
  2795. _ACEOF
  2796. if ac_fn_c_try_compile "$LINENO"; then :
  2797.   ac_cv_prog_cc_g=yes
  2798. fi
  2799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2800. fi
  2801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2802. fi
  2803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2804.    ac_c_werror_flag=$ac_save_c_werror_flag
  2805. fi
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2807. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2808. if test "$ac_test_CFLAGS" = set; then
  2809.   CFLAGS=$ac_save_CFLAGS
  2810. elif test $ac_cv_prog_cc_g = yes; then
  2811.   if test "$GCC" = yes; then
  2812.     CFLAGS="-g -O2"
  2813.   else
  2814.     CFLAGS="-g"
  2815.   fi
  2816. else
  2817.   if test "$GCC" = yes; then
  2818.     CFLAGS="-O2"
  2819.   else
  2820.     CFLAGS=
  2821.   fi
  2822. fi
  2823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2824. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2825. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  2826.   $as_echo_n "(cached) " >&6
  2827. else
  2828.   ac_cv_prog_cc_c89=no
  2829. ac_save_CC=$CC
  2830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2831. /* end confdefs.h.  */
  2832. #include <stdarg.h>
  2833. #include <stdio.h>
  2834. #include <sys/types.h>
  2835. #include <sys/stat.h>
  2836. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  2837. struct buf { int x; };
  2838. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2839. static char *e (p, i)
  2840.      char **p;
  2841.      int i;
  2842. {
  2843.   return p[i];
  2844. }
  2845. static char *f (char * (*g) (char **, int), char **p, ...)
  2846. {
  2847.   char *s;
  2848.   va_list v;
  2849.   va_start (v,p);
  2850.   s = g (p, va_arg (v,int));
  2851.   va_end (v);
  2852.   return s;
  2853. }
  2854.  
  2855. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  2856.    function prototypes and stuff, but not '\xHH' hex character constants.
  2857.    These don't provoke an error unfortunately, instead are silently treated
  2858.    as 'x'.  The following induces an error, until -std is added to get
  2859.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  2860.    array size at least.  It's necessary to write '\x00'==0 to get something
  2861.    that's true only with -std.  */
  2862. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2863.  
  2864. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2865.    inside strings and character constants.  */
  2866. #define FOO(x) 'x'
  2867. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2868.  
  2869. int test (int i, double x);
  2870. struct s1 {int (*f) (int a);};
  2871. struct s2 {int (*f) (double a);};
  2872. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2873. int argc;
  2874. char **argv;
  2875. int
  2876. main ()
  2877. {
  2878. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  2879.   ;
  2880.   return 0;
  2881. }
  2882. _ACEOF
  2883. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2884. 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2885. do
  2886.   CC="$ac_save_CC $ac_arg"
  2887.   if ac_fn_c_try_compile "$LINENO"; then :
  2888.   ac_cv_prog_cc_c89=$ac_arg
  2889. fi
  2890. rm -f core conftest.err conftest.$ac_objext
  2891.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  2892. done
  2893. rm -f conftest.$ac_ext
  2894. CC=$ac_save_CC
  2895.  
  2896. fi
  2897. # AC_CACHE_VAL
  2898. case "x$ac_cv_prog_cc_c89" in
  2899.   x)
  2900.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2901. $as_echo "none needed" >&6; } ;;
  2902.   xno)
  2903.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2904. $as_echo "unsupported" >&6; } ;;
  2905.   *)
  2906.     CC="$CC $ac_cv_prog_cc_c89"
  2907.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2908. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2909. esac
  2910. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2911.  
  2912. fi
  2913.  
  2914. ac_ext=c
  2915. ac_cpp='$CPP $CPPFLAGS'
  2916. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2917. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2918. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2919.  
  2920.  
  2921. ac_ext=c
  2922. ac_cpp='$CPP $CPPFLAGS'
  2923. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2924. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2925. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2927. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2928. # On Suns, sometimes $CPP names a directory.
  2929. if test -n "$CPP" && test -d "$CPP"; then
  2930.   CPP=
  2931. fi
  2932. if test -z "$CPP"; then
  2933.   if test "${ac_cv_prog_CPP+set}" = set; then :
  2934.   $as_echo_n "(cached) " >&6
  2935. else
  2936.       # Double quotes because CPP needs to be expanded
  2937.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2938.     do
  2939.       ac_preproc_ok=false
  2940. for ac_c_preproc_warn_flag in '' yes
  2941. do
  2942.   # Use a header file that comes with gcc, so configuring glibc
  2943.   # with a fresh cross-compiler works.
  2944.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2945.   # <limits.h> exists even on freestanding compilers.
  2946.   # On the NeXT, cc -E runs the code through the compiler's parser,
  2947.   # not just through cpp. "Syntax error" is here to catch this case.
  2948.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2949. /* end confdefs.h.  */
  2950. #ifdef __STDC__
  2951. # include <limits.h>
  2952. #else
  2953. # include <assert.h>
  2954. #endif
  2955. 		     Syntax error
  2956. _ACEOF
  2957. if ac_fn_c_try_cpp "$LINENO"; then :
  2958.  
  2959. else
  2960.   # Broken: fails on valid input.
  2961. continue
  2962. fi
  2963. rm -f conftest.err conftest.i conftest.$ac_ext
  2964.  
  2965.   # OK, works on sane cases.  Now check whether nonexistent headers
  2966.   # can be detected and how.
  2967.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2968. /* end confdefs.h.  */
  2969. #include <ac_nonexistent.h>
  2970. _ACEOF
  2971. if ac_fn_c_try_cpp "$LINENO"; then :
  2972.   # Broken: success on invalid input.
  2973. continue
  2974. else
  2975.   # Passes both tests.
  2976. ac_preproc_ok=:
  2977. break
  2978. fi
  2979. rm -f conftest.err conftest.i conftest.$ac_ext
  2980.  
  2981. done
  2982. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2983. rm -f conftest.i conftest.err conftest.$ac_ext
  2984. if $ac_preproc_ok; then :
  2985.   break
  2986. fi
  2987.  
  2988.     done
  2989.     ac_cv_prog_CPP=$CPP
  2990.  
  2991. fi
  2992.   CPP=$ac_cv_prog_CPP
  2993. else
  2994.   ac_cv_prog_CPP=$CPP
  2995. fi
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2997. $as_echo "$CPP" >&6; }
  2998. ac_preproc_ok=false
  2999. for ac_c_preproc_warn_flag in '' yes
  3000. do
  3001.   # Use a header file that comes with gcc, so configuring glibc
  3002.   # with a fresh cross-compiler works.
  3003.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3004.   # <limits.h> exists even on freestanding compilers.
  3005.   # On the NeXT, cc -E runs the code through the compiler's parser,
  3006.   # not just through cpp. "Syntax error" is here to catch this case.
  3007.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3008. /* end confdefs.h.  */
  3009. #ifdef __STDC__
  3010. # include <limits.h>
  3011. #else
  3012. # include <assert.h>
  3013. #endif
  3014. 		     Syntax error
  3015. _ACEOF
  3016. if ac_fn_c_try_cpp "$LINENO"; then :
  3017.  
  3018. else
  3019.   # Broken: fails on valid input.
  3020. continue
  3021. fi
  3022. rm -f conftest.err conftest.i conftest.$ac_ext
  3023.  
  3024.   # OK, works on sane cases.  Now check whether nonexistent headers
  3025.   # can be detected and how.
  3026.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3027. /* end confdefs.h.  */
  3028. #include <ac_nonexistent.h>
  3029. _ACEOF
  3030. if ac_fn_c_try_cpp "$LINENO"; then :
  3031.   # Broken: success on invalid input.
  3032. continue
  3033. else
  3034.   # Passes both tests.
  3035. ac_preproc_ok=:
  3036. break
  3037. fi
  3038. rm -f conftest.err conftest.i conftest.$ac_ext
  3039.  
  3040. done
  3041. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3042. rm -f conftest.i conftest.err conftest.$ac_ext
  3043. if $ac_preproc_ok; then :
  3044.  
  3045. else
  3046.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3047. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3048. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3049. See \`config.log' for more details" "$LINENO" 5 ; }
  3050. fi
  3051.  
  3052. ac_ext=c
  3053. ac_cpp='$CPP $CPPFLAGS'
  3054. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3055. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3056. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3057.  
  3058.  
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3060. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3061. if test "${ac_cv_path_GREP+set}" = set; then :
  3062.   $as_echo_n "(cached) " >&6
  3063. else
  3064.   if test -z "$GREP"; then
  3065.   ac_path_GREP_found=false
  3066.   # Loop through the user's path and test for each of PROGNAME-LIST
  3067.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3068. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3069. do
  3070.   IFS=$as_save_IFS
  3071.   test -z "$as_dir" && as_dir=.
  3072.     for ac_prog in grep ggrep; do
  3073.     for ac_exec_ext in '' $ac_executable_extensions; do
  3074.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3075.       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3076. # Check for GNU ac_path_GREP and select it if it is found.
  3077.   # Check for GNU $ac_path_GREP
  3078. case `"$ac_path_GREP" --version 2>&1` in
  3079. *GNU*)
  3080.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3081. *)
  3082.   ac_count=0
  3083.   $as_echo_n 0123456789 >"conftest.in"
  3084.   while :
  3085.   do
  3086.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  3087.     mv "conftest.tmp" "conftest.in"
  3088.     cp "conftest.in" "conftest.nl"
  3089.     $as_echo 'GREP' >> "conftest.nl"
  3090.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3091.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3092.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  3093.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3094.       # Best one so far, save it but keep looking for a better one
  3095.       ac_cv_path_GREP="$ac_path_GREP"
  3096.       ac_path_GREP_max=$ac_count
  3097.     fi
  3098.     # 10*(2^10) chars as input seems more than enough
  3099.     test $ac_count -gt 10 && break
  3100.   done
  3101.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3102. esac
  3103.  
  3104.       $ac_path_GREP_found && break 3
  3105.     done
  3106.   done
  3107.   done
  3108. IFS=$as_save_IFS
  3109.   if test -z "$ac_cv_path_GREP"; then
  3110.     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3111.   fi
  3112. else
  3113.   ac_cv_path_GREP=$GREP
  3114. fi
  3115.  
  3116. fi
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3118. $as_echo "$ac_cv_path_GREP" >&6; }
  3119.  GREP="$ac_cv_path_GREP"
  3120.  
  3121.  
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3123. $as_echo_n "checking for egrep... " >&6; }
  3124. if test "${ac_cv_path_EGREP+set}" = set; then :
  3125.   $as_echo_n "(cached) " >&6
  3126. else
  3127.   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3128.    then ac_cv_path_EGREP="$GREP -E"
  3129.    else
  3130.      if test -z "$EGREP"; then
  3131.   ac_path_EGREP_found=false
  3132.   # Loop through the user's path and test for each of PROGNAME-LIST
  3133.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3134. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3135. do
  3136.   IFS=$as_save_IFS
  3137.   test -z "$as_dir" && as_dir=.
  3138.     for ac_prog in egrep; do
  3139.     for ac_exec_ext in '' $ac_executable_extensions; do
  3140.       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3141.       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3142. # Check for GNU ac_path_EGREP and select it if it is found.
  3143.   # Check for GNU $ac_path_EGREP
  3144. case `"$ac_path_EGREP" --version 2>&1` in
  3145. *GNU*)
  3146.   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3147. *)
  3148.   ac_count=0
  3149.   $as_echo_n 0123456789 >"conftest.in"
  3150.   while :
  3151.   do
  3152.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  3153.     mv "conftest.tmp" "conftest.in"
  3154.     cp "conftest.in" "conftest.nl"
  3155.     $as_echo 'EGREP' >> "conftest.nl"
  3156.     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3157.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3158.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  3159.     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3160.       # Best one so far, save it but keep looking for a better one
  3161.       ac_cv_path_EGREP="$ac_path_EGREP"
  3162.       ac_path_EGREP_max=$ac_count
  3163.     fi
  3164.     # 10*(2^10) chars as input seems more than enough
  3165.     test $ac_count -gt 10 && break
  3166.   done
  3167.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3168. esac
  3169.  
  3170.       $ac_path_EGREP_found && break 3
  3171.     done
  3172.   done
  3173.   done
  3174. IFS=$as_save_IFS
  3175.   if test -z "$ac_cv_path_EGREP"; then
  3176.     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3177.   fi
  3178. else
  3179.   ac_cv_path_EGREP=$EGREP
  3180. fi
  3181.  
  3182.    fi
  3183. fi
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3185. $as_echo "$ac_cv_path_EGREP" >&6; }
  3186.  EGREP="$ac_cv_path_EGREP"
  3187.  
  3188.  
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3190. $as_echo_n "checking for ANSI C header files... " >&6; }
  3191. if test "${ac_cv_header_stdc+set}" = set; then :
  3192.   $as_echo_n "(cached) " >&6
  3193. else
  3194.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3195. /* end confdefs.h.  */
  3196. #include <stdlib.h>
  3197. #include <stdarg.h>
  3198. #include <string.h>
  3199. #include <float.h>
  3200.  
  3201. int
  3202. main ()
  3203. {
  3204.  
  3205.   ;
  3206.   return 0;
  3207. }
  3208. _ACEOF
  3209. if ac_fn_c_try_compile "$LINENO"; then :
  3210.   ac_cv_header_stdc=yes
  3211. else
  3212.   ac_cv_header_stdc=no
  3213. fi
  3214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3215.  
  3216. if test $ac_cv_header_stdc = yes; then
  3217.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3218.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3219. /* end confdefs.h.  */
  3220. #include <string.h>
  3221.  
  3222. _ACEOF
  3223. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3224.   $EGREP "memchr" >/dev/null 2>&1; then :
  3225.  
  3226. else
  3227.   ac_cv_header_stdc=no
  3228. fi
  3229. rm -f conftest*
  3230.  
  3231. fi
  3232.  
  3233. if test $ac_cv_header_stdc = yes; then
  3234.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3235.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3236. /* end confdefs.h.  */
  3237. #include <stdlib.h>
  3238.  
  3239. _ACEOF
  3240. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3241.   $EGREP "free" >/dev/null 2>&1; then :
  3242.  
  3243. else
  3244.   ac_cv_header_stdc=no
  3245. fi
  3246. rm -f conftest*
  3247.  
  3248. fi
  3249.  
  3250. if test $ac_cv_header_stdc = yes; then
  3251.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3252.   if test "$cross_compiling" = yes; then :
  3253.   :
  3254. else
  3255.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3256. /* end confdefs.h.  */
  3257. #include <ctype.h>
  3258. #include <stdlib.h>
  3259. #if ((' ' & 0x0FF) == 0x020)
  3260. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3261. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3262. #else
  3263. # define ISLOWER(c) \
  3264. 		   (('a' <= (c) && (c) <= 'i') \
  3265. 		     || ('j' <= (c) && (c) <= 'r') \
  3266. 		     || ('s' <= (c) && (c) <= 'z'))
  3267. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3268. #endif
  3269.  
  3270. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3271. int
  3272. main ()
  3273. {
  3274.   int i;
  3275.   for (i = 0; i < 256; i++)
  3276.     if (XOR (islower (i), ISLOWER (i))
  3277. 	|| toupper (i) != TOUPPER (i))
  3278.       return 2;
  3279.   return 0;
  3280. }
  3281. _ACEOF
  3282. if ac_fn_c_try_run "$LINENO"; then :
  3283.  
  3284. else
  3285.   ac_cv_header_stdc=no
  3286. fi
  3287. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3288.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  3289. fi
  3290.  
  3291. fi
  3292. fi
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3294. $as_echo "$ac_cv_header_stdc" >&6; }
  3295. if test $ac_cv_header_stdc = yes; then
  3296.  
  3297. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3298.  
  3299. fi
  3300.  
  3301. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3302. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3303. 		  inttypes.h stdint.h unistd.h
  3304. do :
  3305.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3306. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3307. "
  3308. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3309.   cat >>confdefs.h <<_ACEOF
  3310. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3311. _ACEOF
  3312.  
  3313. fi
  3314.  
  3315. done
  3316.  
  3317.  
  3318.  
  3319.   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3320. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  3321.   MINIX=yes
  3322. else
  3323.   MINIX=
  3324. fi
  3325.  
  3326.  
  3327.   if test "$MINIX" = yes; then
  3328.  
  3329. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3330.  
  3331.  
  3332. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3333.  
  3334.  
  3335. $as_echo "#define _MINIX 1" >>confdefs.h
  3336.  
  3337.   fi
  3338.  
  3339.  
  3340.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3341. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3342. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  3343.   $as_echo_n "(cached) " >&6
  3344. else
  3345.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3346. /* end confdefs.h.  */
  3347.  
  3348. #	  define __EXTENSIONS__ 1
  3349. 	  $ac_includes_default
  3350. int
  3351. main ()
  3352. {
  3353.  
  3354.   ;
  3355.   return 0;
  3356. }
  3357. _ACEOF
  3358. if ac_fn_c_try_compile "$LINENO"; then :
  3359.   ac_cv_safe_to_define___extensions__=yes
  3360. else
  3361.   ac_cv_safe_to_define___extensions__=no
  3362. fi
  3363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3364. fi
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3366. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3367.   test $ac_cv_safe_to_define___extensions__ = yes &&
  3368.     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3369.  
  3370.   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3371.  
  3372.   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3373.  
  3374.   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3375.  
  3376.   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3377.  
  3378.  
  3379.  
  3380.  
  3381. #
  3382. # Memory managers
  3383. #
  3384. # Check whether --enable-manager was given.
  3385. if test "${enable_manager+set}" = set; then :
  3386.   enableval=$enable_manager;
  3387. 		enable_manager="$enableval"
  3388. 		case $enableval in
  3389. 			"no");;
  3390. 			"builtin");;
  3391. 			"memwatch");;
  3392. 			"dmalloc");;
  3393. 			"gcollect");;
  3394. 			"bcheck");;
  3395. 			*) as_fn_error $? "unknown memory manager '$enableval'... stopping" "$LINENO" 5 ;;
  3396. 		esac
  3397.  
  3398. else
  3399.   enable_manager="builtin"
  3400.  
  3401. fi
  3402.  
  3403.  
  3404.  
  3405. #
  3406. # packetver
  3407. #
  3408. # Check whether --enable-packetver was given.
  3409. if test "${enable_packetver+set}" = set; then :
  3410.   enableval=$enable_packetver; enable_packetver="$enableval"
  3411. else
  3412.   enable_packetver=""
  3413.  
  3414. fi
  3415.  
  3416.  
  3417.  
  3418. #
  3419. # debug
  3420. #
  3421. # Check whether --enable-debug was given.
  3422. if test "${enable_debug+set}" = set; then :
  3423.   enableval=$enable_debug;
  3424. 		enable_debug="$enableval"
  3425. 		case $enableval in
  3426. 			"no");;
  3427. 			"yes");;
  3428. 			"gdb");;
  3429. 			*) as_fn_error $? "invalid argument --enable-debug=$enableval... stopping" "$LINENO" 5 ;;
  3430. 		esac
  3431.  
  3432. else
  3433.   enable_debug="no"
  3434.  
  3435. fi
  3436.  
  3437.  
  3438. #
  3439. # Buildbot
  3440. #
  3441. # Check whether --enable-buildbot was given.
  3442. if test "${enable_buildbot+set}" = set; then :
  3443.   enableval=$enable_buildbot;
  3444. 		enable_buildbot="$enableval"
  3445. 		case $enableval in
  3446. 			"no");;
  3447. 			"yes");;
  3448. 			*) as_fn_error $? "invalid argument --enable-buildbot=$enableval... stopping" "$LINENO" 5 ;;
  3449. 		esac
  3450.  
  3451. else
  3452.   enable_buildbot="no"
  3453.  
  3454. fi
  3455.  
  3456.  
  3457. #
  3458. # RDTSC as Tick Source
  3459. #
  3460. # Check whether --enable-rdtsc was given.
  3461. if test "${enable_rdtsc+set}" = set; then :
  3462.   enableval=$enable_rdtsc;
  3463. 		enable_rdtsc=1
  3464.  
  3465. else
  3466.   enable_rdtsc=0
  3467.  
  3468. fi
  3469.  
  3470.  
  3471. #
  3472. # Profiler
  3473. #
  3474. # Check whether --enable-profiler was given.
  3475. if test "${enable_profiler+set}" = set; then :
  3476.   enableval=$enable_profiler;
  3477. 		enable_profiler="$enableval"
  3478. 		case $enableval in
  3479. 			"no");;
  3480. 			"gprof");;
  3481. 			*) as_fn_error $? "invalid argument --enable-profiler=$enableval... stopping" "$LINENO" 5 ;;
  3482. 		esac
  3483.  
  3484. else
  3485.   enable_profiler="no"
  3486.  
  3487. fi
  3488.  
  3489.  
  3490.  
  3491. #
  3492. # 64bit
  3493. #
  3494. # Check whether --enable-64bit was given.
  3495. if test "${enable_64bit+set}" = set; then :
  3496.   enableval=$enable_64bit;
  3497. 		enable_64bit="$enableval"
  3498. 		case $enableval in
  3499. 			"no");;
  3500. 			"yes");;
  3501. 			*) as_fn_error $? "invalid argument --enable-64bit=$enableval... stopping" "$LINENO" 5 ;;
  3502. 		esac
  3503.  
  3504. else
  3505.   enable_64bit="yes"
  3506.  
  3507. fi
  3508.  
  3509.  
  3510.  
  3511. #
  3512. # LTO
  3513. #
  3514. # Check whether --enable-lto was given.
  3515. if test "${enable_lto+set}" = set; then :
  3516.   enableval=$enable_lto;
  3517.         enable_lto="$enableval"
  3518.         case $enableval in
  3519.             "no");;
  3520.             "yes");;
  3521.             *) as_fn_error $? "invalid argument --enable-lto=$disableval... stopping" "$LINENO" 5 ;;
  3522.         esac
  3523.  
  3524. else
  3525.   enable_lto="yes"
  3526.  
  3527. fi
  3528.  
  3529.  
  3530.  
  3531. #
  3532. # Optionally specify the path to mysql_config
  3533. #
  3534.  
  3535. # Check whether --with-mysql was given.
  3536. if test "${with_mysql+set}" = set; then :
  3537.   withval=$with_mysql;
  3538. 		if test "$withval" != "no" ; then
  3539. 			if test ! -x "$withval" ; then
  3540. 				as_fn_error $? "$withval is not an executable file" "$LINENO" 5
  3541. 			fi
  3542. 			MYSQL_CONFIG_HOME="$withval"
  3543. 		fi
  3544.  
  3545.  
  3546. fi
  3547.  
  3548.  
  3549.  
  3550. #
  3551. # Manual MYSQL_CFLAGS (optional)
  3552. #
  3553.  
  3554. # Check whether --with-MYSQL_CFLAGS was given.
  3555. if test "${with_MYSQL_CFLAGS+set}" = set; then :
  3556.   withval=$with_MYSQL_CFLAGS;
  3557. 		manual_MYSQL_CFLAGS="yes"
  3558. 		MYSQL_CFLAGS="$withval"
  3559.  
  3560. else
  3561.   manual_MYSQL_CFLAGS="no"
  3562.  
  3563. fi
  3564.  
  3565.  
  3566.  
  3567. #
  3568. # Manual MYSQL_LIBS (optional)
  3569. #
  3570.  
  3571. # Check whether --with-MYSQL_LIBS was given.
  3572. if test "${with_MYSQL_LIBS+set}" = set; then :
  3573.   withval=$with_MYSQL_LIBS;
  3574. 		manual_MYSQL_LIBS="yes"
  3575. 		MYSQL_LIBS="$withval"
  3576.  
  3577. else
  3578.   manual_MYSQL_LIBS="no"
  3579.  
  3580. fi
  3581.  
  3582.  
  3583.  
  3584. #
  3585. # Enable/disable PCRE and optionally specify the path (optional library)
  3586. #
  3587.  
  3588. # Check whether --with-pcre was given.
  3589. if test "${with_pcre+set}" = set; then :
  3590.   withval=$with_pcre;
  3591. 		if test "$withval" = "no" ; then
  3592. 			want_pcre="no"
  3593. 		else
  3594. 			want_pcre="yes"
  3595. 			require_pcre="yes"
  3596. 			if test "$withval" != "yes" ; then
  3597. 				if test ! -d "$withval" ; then
  3598. 					as_fn_error $? "$withval is not a directoy" "$LINENO" 5
  3599. 				fi
  3600. 				PCRE_HOME="$withval"
  3601. 			fi
  3602. 		fi
  3603.  
  3604. else
  3605.   want_pcre="yes" require_pcre="no"
  3606.  
  3607. fi
  3608.  
  3609.  
  3610.  
  3611. #
  3612. # Specify the path of the zlib library (required library)
  3613. #
  3614.  
  3615. # Check whether --with-zlib was given.
  3616. if test "${with_zlib+set}" = set; then :
  3617.   withval=$with_zlib;
  3618. 		test -n "$withval" && ZLIB_HOME="$withval"
  3619.  
  3620. else
  3621.  
  3622. 		ZLIB_HOME=/usr/local
  3623. 		test ! -f "${ZLIB_HOME}/include/zlib.h" && ZLIB_HOME=/usr
  3624.  
  3625.  
  3626. fi
  3627.  
  3628.  
  3629.  
  3630.  
  3631. ###############################################################################
  3632. # Check for programs and types.
  3633. #
  3634.  
  3635.  
  3636.  
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3638. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3639. set x ${MAKE-make}
  3640. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3641. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  3642.   $as_echo_n "(cached) " >&6
  3643. else
  3644.   cat >conftest.make <<\_ACEOF
  3645. SHELL = /bin/sh
  3646. all:
  3647. 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  3648. _ACEOF
  3649. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3650. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3651.   *@@@%%%=?*=@@@%%%*)
  3652.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  3653.   *)
  3654.     eval ac_cv_prog_make_${ac_make}_set=no;;
  3655. esac
  3656. rm -f conftest.make
  3657. fi
  3658. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3659.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3660. $as_echo "yes" >&6; }
  3661.   SET_MAKE=
  3662. else
  3663.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3664. $as_echo "no" >&6; }
  3665.   SET_MAKE="MAKE=${MAKE-make}"
  3666. fi
  3667.  
  3668. ac_ext=c
  3669. ac_cpp='$CPP $CPPFLAGS'
  3670. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3671. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3672. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3673. if test -n "$ac_tool_prefix"; then
  3674.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3675. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3677. $as_echo_n "checking for $ac_word... " >&6; }
  3678. if test "${ac_cv_prog_CC+set}" = set; then :
  3679.   $as_echo_n "(cached) " >&6
  3680. else
  3681.   if test -n "$CC"; then
  3682.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3683. else
  3684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3685. for as_dir in $PATH
  3686. do
  3687.   IFS=$as_save_IFS
  3688.   test -z "$as_dir" && as_dir=.
  3689.     for ac_exec_ext in '' $ac_executable_extensions; do
  3690.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3691.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3692.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3693.     break 2
  3694.   fi
  3695. done
  3696.   done
  3697. IFS=$as_save_IFS
  3698.  
  3699. fi
  3700. fi
  3701. CC=$ac_cv_prog_CC
  3702. if test -n "$CC"; then
  3703.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3704. $as_echo "$CC" >&6; }
  3705. else
  3706.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3707. $as_echo "no" >&6; }
  3708. fi
  3709.  
  3710.  
  3711. fi
  3712. if test -z "$ac_cv_prog_CC"; then
  3713.   ac_ct_CC=$CC
  3714.   # Extract the first word of "gcc", so it can be a program name with args.
  3715. set dummy gcc; ac_word=$2
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3717. $as_echo_n "checking for $ac_word... " >&6; }
  3718. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3719.   $as_echo_n "(cached) " >&6
  3720. else
  3721.   if test -n "$ac_ct_CC"; then
  3722.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3723. else
  3724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3725. for as_dir in $PATH
  3726. do
  3727.   IFS=$as_save_IFS
  3728.   test -z "$as_dir" && as_dir=.
  3729.     for ac_exec_ext in '' $ac_executable_extensions; do
  3730.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3731.     ac_cv_prog_ac_ct_CC="gcc"
  3732.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3733.     break 2
  3734.   fi
  3735. done
  3736.   done
  3737. IFS=$as_save_IFS
  3738.  
  3739. fi
  3740. fi
  3741. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3742. if test -n "$ac_ct_CC"; then
  3743.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3744. $as_echo "$ac_ct_CC" >&6; }
  3745. else
  3746.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3747. $as_echo "no" >&6; }
  3748. fi
  3749.  
  3750.   if test "x$ac_ct_CC" = x; then
  3751.     CC=""
  3752.   else
  3753.     case $cross_compiling:$ac_tool_warned in
  3754. yes:)
  3755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3756. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3757. ac_tool_warned=yes ;;
  3758. esac
  3759.     CC=$ac_ct_CC
  3760.   fi
  3761. else
  3762.   CC="$ac_cv_prog_CC"
  3763. fi
  3764.  
  3765. if test -z "$CC"; then
  3766.           if test -n "$ac_tool_prefix"; then
  3767.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3768. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3770. $as_echo_n "checking for $ac_word... " >&6; }
  3771. if test "${ac_cv_prog_CC+set}" = set; then :
  3772.   $as_echo_n "(cached) " >&6
  3773. else
  3774.   if test -n "$CC"; then
  3775.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3776. else
  3777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3778. for as_dir in $PATH
  3779. do
  3780.   IFS=$as_save_IFS
  3781.   test -z "$as_dir" && as_dir=.
  3782.     for ac_exec_ext in '' $ac_executable_extensions; do
  3783.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3784.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3785.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3786.     break 2
  3787.   fi
  3788. done
  3789.   done
  3790. IFS=$as_save_IFS
  3791.  
  3792. fi
  3793. fi
  3794. CC=$ac_cv_prog_CC
  3795. if test -n "$CC"; then
  3796.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3797. $as_echo "$CC" >&6; }
  3798. else
  3799.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3800. $as_echo "no" >&6; }
  3801. fi
  3802.  
  3803.  
  3804.   fi
  3805. fi
  3806. if test -z "$CC"; then
  3807.   # Extract the first word of "cc", so it can be a program name with args.
  3808. set dummy cc; ac_word=$2
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3810. $as_echo_n "checking for $ac_word... " >&6; }
  3811. if test "${ac_cv_prog_CC+set}" = set; then :
  3812.   $as_echo_n "(cached) " >&6
  3813. else
  3814.   if test -n "$CC"; then
  3815.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3816. else
  3817.   ac_prog_rejected=no
  3818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3819. for as_dir in $PATH
  3820. do
  3821.   IFS=$as_save_IFS
  3822.   test -z "$as_dir" && as_dir=.
  3823.     for ac_exec_ext in '' $ac_executable_extensions; do
  3824.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3825.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3826.        ac_prog_rejected=yes
  3827.        continue
  3828.      fi
  3829.     ac_cv_prog_CC="cc"
  3830.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3831.     break 2
  3832.   fi
  3833. done
  3834.   done
  3835. IFS=$as_save_IFS
  3836.  
  3837. if test $ac_prog_rejected = yes; then
  3838.   # We found a bogon in the path, so make sure we never use it.
  3839.   set dummy $ac_cv_prog_CC
  3840.   shift
  3841.   if test $# != 0; then
  3842.     # We chose a different compiler from the bogus one.
  3843.     # However, it has the same basename, so the bogon will be chosen
  3844.     # first if we set CC to just the basename; use the full file name.
  3845.     shift
  3846.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3847.   fi
  3848. fi
  3849. fi
  3850. fi
  3851. CC=$ac_cv_prog_CC
  3852. if test -n "$CC"; then
  3853.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3854. $as_echo "$CC" >&6; }
  3855. else
  3856.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3857. $as_echo "no" >&6; }
  3858. fi
  3859.  
  3860.  
  3861. fi
  3862. if test -z "$CC"; then
  3863.   if test -n "$ac_tool_prefix"; then
  3864.   for ac_prog in cl.exe
  3865.   do
  3866.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3867. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3869. $as_echo_n "checking for $ac_word... " >&6; }
  3870. if test "${ac_cv_prog_CC+set}" = set; then :
  3871.   $as_echo_n "(cached) " >&6
  3872. else
  3873.   if test -n "$CC"; then
  3874.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3875. else
  3876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3877. for as_dir in $PATH
  3878. do
  3879.   IFS=$as_save_IFS
  3880.   test -z "$as_dir" && as_dir=.
  3881.     for ac_exec_ext in '' $ac_executable_extensions; do
  3882.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3883.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3884.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3885.     break 2
  3886.   fi
  3887. done
  3888.   done
  3889. IFS=$as_save_IFS
  3890.  
  3891. fi
  3892. fi
  3893. CC=$ac_cv_prog_CC
  3894. if test -n "$CC"; then
  3895.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3896. $as_echo "$CC" >&6; }
  3897. else
  3898.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3899. $as_echo "no" >&6; }
  3900. fi
  3901.  
  3902.  
  3903.     test -n "$CC" && break
  3904.   done
  3905. fi
  3906. if test -z "$CC"; then
  3907.   ac_ct_CC=$CC
  3908.   for ac_prog in cl.exe
  3909. do
  3910.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3911. set dummy $ac_prog; ac_word=$2
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3913. $as_echo_n "checking for $ac_word... " >&6; }
  3914. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3915.   $as_echo_n "(cached) " >&6
  3916. else
  3917.   if test -n "$ac_ct_CC"; then
  3918.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3919. else
  3920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3921. for as_dir in $PATH
  3922. do
  3923.   IFS=$as_save_IFS
  3924.   test -z "$as_dir" && as_dir=.
  3925.     for ac_exec_ext in '' $ac_executable_extensions; do
  3926.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3927.     ac_cv_prog_ac_ct_CC="$ac_prog"
  3928.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3929.     break 2
  3930.   fi
  3931. done
  3932.   done
  3933. IFS=$as_save_IFS
  3934.  
  3935. fi
  3936. fi
  3937. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3938. if test -n "$ac_ct_CC"; then
  3939.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3940. $as_echo "$ac_ct_CC" >&6; }
  3941. else
  3942.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3943. $as_echo "no" >&6; }
  3944. fi
  3945.  
  3946.  
  3947.   test -n "$ac_ct_CC" && break
  3948. done
  3949.  
  3950.   if test "x$ac_ct_CC" = x; then
  3951.     CC=""
  3952.   else
  3953.     case $cross_compiling:$ac_tool_warned in
  3954. yes:)
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3956. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3957. ac_tool_warned=yes ;;
  3958. esac
  3959.     CC=$ac_ct_CC
  3960.   fi
  3961. fi
  3962.  
  3963. fi
  3964.  
  3965.  
  3966. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3967. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3968. as_fn_error $? "no acceptable C compiler found in \$PATH
  3969. See \`config.log' for more details" "$LINENO" 5 ; }
  3970.  
  3971. # Provide some information about the compiler.
  3972. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3973. set X $ac_compile
  3974. ac_compiler=$2
  3975. for ac_option in --version -v -V -qversion; do
  3976.   { { ac_try="$ac_compiler $ac_option >&5"
  3977. case "(($ac_try" in
  3978.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3979.   *) ac_try_echo=$ac_try;;
  3980. esac
  3981. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3982. $as_echo "$ac_try_echo"; } >&5
  3983.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3984.   ac_status=$?
  3985.   if test -s conftest.err; then
  3986.     sed '10a\
  3987. ... rest of stderr output deleted ...
  3988.          10q' conftest.err >conftest.er1
  3989.     cat conftest.er1 >&5
  3990.   fi
  3991.   rm -f conftest.er1 conftest.err
  3992.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3993.   test $ac_status = 0; }
  3994. done
  3995.  
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3997. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3998. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3999.   $as_echo_n "(cached) " >&6
  4000. else
  4001.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4002. /* end confdefs.h.  */
  4003.  
  4004. int
  4005. main ()
  4006. {
  4007. #ifndef __GNUC__
  4008.        choke me
  4009. #endif
  4010.  
  4011.   ;
  4012.   return 0;
  4013. }
  4014. _ACEOF
  4015. if ac_fn_c_try_compile "$LINENO"; then :
  4016.   ac_compiler_gnu=yes
  4017. else
  4018.   ac_compiler_gnu=no
  4019. fi
  4020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4021. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4022.  
  4023. fi
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4025. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4026. if test $ac_compiler_gnu = yes; then
  4027.   GCC=yes
  4028. else
  4029.   GCC=
  4030. fi
  4031. ac_test_CFLAGS=${CFLAGS+set}
  4032. ac_save_CFLAGS=$CFLAGS
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4034. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4035. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4036.   $as_echo_n "(cached) " >&6
  4037. else
  4038.   ac_save_c_werror_flag=$ac_c_werror_flag
  4039.    ac_c_werror_flag=yes
  4040.    ac_cv_prog_cc_g=no
  4041.    CFLAGS="-g"
  4042.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4043. /* end confdefs.h.  */
  4044.  
  4045. int
  4046. main ()
  4047. {
  4048.  
  4049.   ;
  4050.   return 0;
  4051. }
  4052. _ACEOF
  4053. if ac_fn_c_try_compile "$LINENO"; then :
  4054.   ac_cv_prog_cc_g=yes
  4055. else
  4056.   CFLAGS=""
  4057.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4058. /* end confdefs.h.  */
  4059.  
  4060. int
  4061. main ()
  4062. {
  4063.  
  4064.   ;
  4065.   return 0;
  4066. }
  4067. _ACEOF
  4068. if ac_fn_c_try_compile "$LINENO"; then :
  4069.  
  4070. else
  4071.   ac_c_werror_flag=$ac_save_c_werror_flag
  4072. 	 CFLAGS="-g"
  4073. 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4074. /* end confdefs.h.  */
  4075.  
  4076. int
  4077. main ()
  4078. {
  4079.  
  4080.   ;
  4081.   return 0;
  4082. }
  4083. _ACEOF
  4084. if ac_fn_c_try_compile "$LINENO"; then :
  4085.   ac_cv_prog_cc_g=yes
  4086. fi
  4087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4088. fi
  4089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4090. fi
  4091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4092.    ac_c_werror_flag=$ac_save_c_werror_flag
  4093. fi
  4094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4095. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4096. if test "$ac_test_CFLAGS" = set; then
  4097.   CFLAGS=$ac_save_CFLAGS
  4098. elif test $ac_cv_prog_cc_g = yes; then
  4099.   if test "$GCC" = yes; then
  4100.     CFLAGS="-g -O2"
  4101.   else
  4102.     CFLAGS="-g"
  4103.   fi
  4104. else
  4105.   if test "$GCC" = yes; then
  4106.     CFLAGS="-O2"
  4107.   else
  4108.     CFLAGS=
  4109.   fi
  4110. fi
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4112. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4113. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4114.   $as_echo_n "(cached) " >&6
  4115. else
  4116.   ac_cv_prog_cc_c89=no
  4117. ac_save_CC=$CC
  4118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4119. /* end confdefs.h.  */
  4120. #include <stdarg.h>
  4121. #include <stdio.h>
  4122. #include <sys/types.h>
  4123. #include <sys/stat.h>
  4124. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4125. struct buf { int x; };
  4126. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4127. static char *e (p, i)
  4128.      char **p;
  4129.      int i;
  4130. {
  4131.   return p[i];
  4132. }
  4133. static char *f (char * (*g) (char **, int), char **p, ...)
  4134. {
  4135.   char *s;
  4136.   va_list v;
  4137.   va_start (v,p);
  4138.   s = g (p, va_arg (v,int));
  4139.   va_end (v);
  4140.   return s;
  4141. }
  4142.  
  4143. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4144.    function prototypes and stuff, but not '\xHH' hex character constants.
  4145.    These don't provoke an error unfortunately, instead are silently treated
  4146.    as 'x'.  The following induces an error, until -std is added to get
  4147.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4148.    array size at least.  It's necessary to write '\x00'==0 to get something
  4149.    that's true only with -std.  */
  4150. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4151.  
  4152. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4153.    inside strings and character constants.  */
  4154. #define FOO(x) 'x'
  4155. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4156.  
  4157. int test (int i, double x);
  4158. struct s1 {int (*f) (int a);};
  4159. struct s2 {int (*f) (double a);};
  4160. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4161. int argc;
  4162. char **argv;
  4163. int
  4164. main ()
  4165. {
  4166. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4167.   ;
  4168.   return 0;
  4169. }
  4170. _ACEOF
  4171. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4172. 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4173. do
  4174.   CC="$ac_save_CC $ac_arg"
  4175.   if ac_fn_c_try_compile "$LINENO"; then :
  4176.   ac_cv_prog_cc_c89=$ac_arg
  4177. fi
  4178. rm -f core conftest.err conftest.$ac_objext
  4179.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4180. done
  4181. rm -f conftest.$ac_ext
  4182. CC=$ac_save_CC
  4183.  
  4184. fi
  4185. # AC_CACHE_VAL
  4186. case "x$ac_cv_prog_cc_c89" in
  4187.   x)
  4188.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4189. $as_echo "none needed" >&6; } ;;
  4190.   xno)
  4191.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4192. $as_echo "unsupported" >&6; } ;;
  4193.   *)
  4194.     CC="$CC $ac_cv_prog_cc_c89"
  4195.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4196. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4197. esac
  4198. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4199.  
  4200. fi
  4201.  
  4202. ac_ext=c
  4203. ac_cpp='$CPP $CPPFLAGS'
  4204. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4205. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4206. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4207.  
  4208. ac_ext=c
  4209. ac_cpp='$CPP $CPPFLAGS'
  4210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4214. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4215. # On Suns, sometimes $CPP names a directory.
  4216. if test -n "$CPP" && test -d "$CPP"; then
  4217.   CPP=
  4218. fi
  4219. if test -z "$CPP"; then
  4220.   if test "${ac_cv_prog_CPP+set}" = set; then :
  4221.   $as_echo_n "(cached) " >&6
  4222. else
  4223.       # Double quotes because CPP needs to be expanded
  4224.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4225.     do
  4226.       ac_preproc_ok=false
  4227. for ac_c_preproc_warn_flag in '' yes
  4228. do
  4229.   # Use a header file that comes with gcc, so configuring glibc
  4230.   # with a fresh cross-compiler works.
  4231.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4232.   # <limits.h> exists even on freestanding compilers.
  4233.   # On the NeXT, cc -E runs the code through the compiler's parser,
  4234.   # not just through cpp. "Syntax error" is here to catch this case.
  4235.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4236. /* end confdefs.h.  */
  4237. #ifdef __STDC__
  4238. # include <limits.h>
  4239. #else
  4240. # include <assert.h>
  4241. #endif
  4242. 		     Syntax error
  4243. _ACEOF
  4244. if ac_fn_c_try_cpp "$LINENO"; then :
  4245.  
  4246. else
  4247.   # Broken: fails on valid input.
  4248. continue
  4249. fi
  4250. rm -f conftest.err conftest.i conftest.$ac_ext
  4251.  
  4252.   # OK, works on sane cases.  Now check whether nonexistent headers
  4253.   # can be detected and how.
  4254.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4255. /* end confdefs.h.  */
  4256. #include <ac_nonexistent.h>
  4257. _ACEOF
  4258. if ac_fn_c_try_cpp "$LINENO"; then :
  4259.   # Broken: success on invalid input.
  4260. continue
  4261. else
  4262.   # Passes both tests.
  4263. ac_preproc_ok=:
  4264. break
  4265. fi
  4266. rm -f conftest.err conftest.i conftest.$ac_ext
  4267.  
  4268. done
  4269. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4270. rm -f conftest.i conftest.err conftest.$ac_ext
  4271. if $ac_preproc_ok; then :
  4272.   break
  4273. fi
  4274.  
  4275.     done
  4276.     ac_cv_prog_CPP=$CPP
  4277.  
  4278. fi
  4279.   CPP=$ac_cv_prog_CPP
  4280. else
  4281.   ac_cv_prog_CPP=$CPP
  4282. fi
  4283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4284. $as_echo "$CPP" >&6; }
  4285. ac_preproc_ok=false
  4286. for ac_c_preproc_warn_flag in '' yes
  4287. do
  4288.   # Use a header file that comes with gcc, so configuring glibc
  4289.   # with a fresh cross-compiler works.
  4290.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4291.   # <limits.h> exists even on freestanding compilers.
  4292.   # On the NeXT, cc -E runs the code through the compiler's parser,
  4293.   # not just through cpp. "Syntax error" is here to catch this case.
  4294.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4295. /* end confdefs.h.  */
  4296. #ifdef __STDC__
  4297. # include <limits.h>
  4298. #else
  4299. # include <assert.h>
  4300. #endif
  4301. 		     Syntax error
  4302. _ACEOF
  4303. if ac_fn_c_try_cpp "$LINENO"; then :
  4304.  
  4305. else
  4306.   # Broken: fails on valid input.
  4307. continue
  4308. fi
  4309. rm -f conftest.err conftest.i conftest.$ac_ext
  4310.  
  4311.   # OK, works on sane cases.  Now check whether nonexistent headers
  4312.   # can be detected and how.
  4313.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4314. /* end confdefs.h.  */
  4315. #include <ac_nonexistent.h>
  4316. _ACEOF
  4317. if ac_fn_c_try_cpp "$LINENO"; then :
  4318.   # Broken: success on invalid input.
  4319. continue
  4320. else
  4321.   # Passes both tests.
  4322. ac_preproc_ok=:
  4323. break
  4324. fi
  4325. rm -f conftest.err conftest.i conftest.$ac_ext
  4326.  
  4327. done
  4328. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4329. rm -f conftest.i conftest.err conftest.$ac_ext
  4330. if $ac_preproc_ok; then :
  4331.  
  4332. else
  4333.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4334. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4335. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4336. See \`config.log' for more details" "$LINENO" 5 ; }
  4337. fi
  4338.  
  4339. ac_ext=c
  4340. ac_cpp='$CPP $CPPFLAGS'
  4341. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4342. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4343. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4344.  
  4345. # Extract the first word of "ar", so it can be a program name with args.
  4346. set dummy ar; ac_word=$2
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4348. $as_echo_n "checking for $ac_word... " >&6; }
  4349. if test "${ac_cv_path_AR+set}" = set; then :
  4350.   $as_echo_n "(cached) " >&6
  4351. else
  4352.   case $AR in
  4353.   [\\/]* | ?:[\\/]*)
  4354.   ac_cv_path_AR="$AR" # Let the user override the test with a path.
  4355.   ;;
  4356.   *)
  4357.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4358. for as_dir in $PATH
  4359. do
  4360.   IFS=$as_save_IFS
  4361.   test -z "$as_dir" && as_dir=.
  4362.     for ac_exec_ext in '' $ac_executable_extensions; do
  4363.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4364.     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  4365.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4366.     break 2
  4367.   fi
  4368. done
  4369.   done
  4370. IFS=$as_save_IFS
  4371.  
  4372.   ;;
  4373. esac
  4374. fi
  4375. AR=$ac_cv_path_AR
  4376. if test -n "$AR"; then
  4377.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4378. $as_echo "$AR" >&6; }
  4379. else
  4380.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4381. $as_echo "no" >&6; }
  4382. fi
  4383.  
  4384.  
  4385. ac_ext=c
  4386. ac_cpp='$CPP $CPPFLAGS'
  4387. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4388. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4389. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4390.  
  4391.  
  4392.  
  4393. CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wno-sign-compare"
  4394. CPPFLAGS="$CPPFLAGS -I../common"
  4395.  
  4396.  
  4397.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4398. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4399. if test "${ac_cv_c_bigendian+set}" = set; then :
  4400.   $as_echo_n "(cached) " >&6
  4401. else
  4402.   ac_cv_c_bigendian=unknown
  4403.     # See if we're dealing with a universal compiler.
  4404.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4405. /* end confdefs.h.  */
  4406. #ifndef __APPLE_CC__
  4407. 	       not a universal capable compiler
  4408. 	     #endif
  4409. 	     typedef int dummy;
  4410.  
  4411. _ACEOF
  4412. if ac_fn_c_try_compile "$LINENO"; then :
  4413.  
  4414. 	# Check for potential -arch flags.  It is not universal unless
  4415. 	# there are at least two -arch flags with different values.
  4416. 	ac_arch=
  4417. 	ac_prev=
  4418. 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4419. 	 if test -n "$ac_prev"; then
  4420. 	   case $ac_word in
  4421. 	     i?86 | x86_64 | ppc | ppc64)
  4422. 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4423. 		 ac_arch=$ac_word
  4424. 	       else
  4425. 		 ac_cv_c_bigendian=universal
  4426. 		 break
  4427. 	       fi
  4428. 	       ;;
  4429. 	   esac
  4430. 	   ac_prev=
  4431. 	 elif test "x$ac_word" = "x-arch"; then
  4432. 	   ac_prev=arch
  4433. 	 fi
  4434.        done
  4435. fi
  4436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4437.     if test $ac_cv_c_bigendian = unknown; then
  4438.       # See if sys/param.h defines the BYTE_ORDER macro.
  4439.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4440. /* end confdefs.h.  */
  4441. #include <sys/types.h>
  4442. 	     #include <sys/param.h>
  4443.  
  4444. int
  4445. main ()
  4446. {
  4447. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4448. 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4449. 		     && LITTLE_ENDIAN)
  4450. 	      bogus endian macros
  4451. 	     #endif
  4452.  
  4453.   ;
  4454.   return 0;
  4455. }
  4456. _ACEOF
  4457. if ac_fn_c_try_compile "$LINENO"; then :
  4458.   # It does; now see whether it defined to BIG_ENDIAN or not.
  4459. 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4460. /* end confdefs.h.  */
  4461. #include <sys/types.h>
  4462. 		#include <sys/param.h>
  4463.  
  4464. int
  4465. main ()
  4466. {
  4467. #if BYTE_ORDER != BIG_ENDIAN
  4468. 		 not big endian
  4469. 		#endif
  4470.  
  4471.   ;
  4472.   return 0;
  4473. }
  4474. _ACEOF
  4475. if ac_fn_c_try_compile "$LINENO"; then :
  4476.   ac_cv_c_bigendian=yes
  4477. else
  4478.   ac_cv_c_bigendian=no
  4479. fi
  4480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4481. fi
  4482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4483.     fi
  4484.     if test $ac_cv_c_bigendian = unknown; then
  4485.       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4486.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4487. /* end confdefs.h.  */
  4488. #include <limits.h>
  4489.  
  4490. int
  4491. main ()
  4492. {
  4493. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4494. 	      bogus endian macros
  4495. 	     #endif
  4496.  
  4497.   ;
  4498.   return 0;
  4499. }
  4500. _ACEOF
  4501. if ac_fn_c_try_compile "$LINENO"; then :
  4502.   # It does; now see whether it defined to _BIG_ENDIAN or not.
  4503. 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4504. /* end confdefs.h.  */
  4505. #include <limits.h>
  4506.  
  4507. int
  4508. main ()
  4509. {
  4510. #ifndef _BIG_ENDIAN
  4511. 		 not big endian
  4512. 		#endif
  4513.  
  4514.   ;
  4515.   return 0;
  4516. }
  4517. _ACEOF
  4518. if ac_fn_c_try_compile "$LINENO"; then :
  4519.   ac_cv_c_bigendian=yes
  4520. else
  4521.   ac_cv_c_bigendian=no
  4522. fi
  4523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4524. fi
  4525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4526.     fi
  4527.     if test $ac_cv_c_bigendian = unknown; then
  4528.       # Compile a test program.
  4529.       if test "$cross_compiling" = yes; then :
  4530.   # Try to guess by grepping values from an object file.
  4531. 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4532. /* end confdefs.h.  */
  4533. short int ascii_mm[] =
  4534. 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4535. 		short int ascii_ii[] =
  4536. 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4537. 		int use_ascii (int i) {
  4538. 		  return ascii_mm[i] + ascii_ii[i];
  4539. 		}
  4540. 		short int ebcdic_ii[] =
  4541. 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4542. 		short int ebcdic_mm[] =
  4543. 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4544. 		int use_ebcdic (int i) {
  4545. 		  return ebcdic_mm[i] + ebcdic_ii[i];
  4546. 		}
  4547. 		extern int foo;
  4548.  
  4549. int
  4550. main ()
  4551. {
  4552. return use_ascii (foo) == use_ebcdic (foo);
  4553.   ;
  4554.   return 0;
  4555. }
  4556. _ACEOF
  4557. if ac_fn_c_try_compile "$LINENO"; then :
  4558.   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4559. 	      ac_cv_c_bigendian=yes
  4560. 	    fi
  4561. 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4562. 	      if test "$ac_cv_c_bigendian" = unknown; then
  4563. 		ac_cv_c_bigendian=no
  4564. 	      else
  4565. 		# finding both strings is unlikely to happen, but who knows?
  4566. 		ac_cv_c_bigendian=unknown
  4567. 	      fi
  4568. 	    fi
  4569. fi
  4570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4571. else
  4572.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4573. /* end confdefs.h.  */
  4574. $ac_includes_default
  4575. int
  4576. main ()
  4577. {
  4578.  
  4579. 	     /* Are we little or big endian?  From Harbison&Steele.  */
  4580. 	     union
  4581. 	     {
  4582. 	       long int l;
  4583. 	       char c[sizeof (long int)];
  4584. 	     } u;
  4585. 	     u.l = 1;
  4586. 	     return u.c[sizeof (long int) - 1] == 1;
  4587.  
  4588.   ;
  4589.   return 0;
  4590. }
  4591. _ACEOF
  4592. if ac_fn_c_try_run "$LINENO"; then :
  4593.   ac_cv_c_bigendian=no
  4594. else
  4595.   ac_cv_c_bigendian=yes
  4596. fi
  4597. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4598.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  4599. fi
  4600.  
  4601.     fi
  4602. fi
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4604. $as_echo "$ac_cv_c_bigendian" >&6; }
  4605.  case $ac_cv_c_bigendian in #(
  4606.    yes)
  4607.      as_fn_error $? "bigendian is not supported... stopping" "$LINENO" 5 ;; #(
  4608.    no)
  4609.       ;; #(
  4610.    universal)
  4611.  
  4612. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4613.  
  4614.      ;; #(
  4615.    *)
  4616.      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to determine endianess, only little endian is supported" >&5
  4617. $as_echo "$as_me: WARNING: unable to determine endianess, only little endian is supported" >&2;}
  4618.  ;;
  4619.  esac
  4620.  
  4621.  
  4622.  
  4623. if test "$enable_64bit" = "no" ; then
  4624. 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pointers can be stored in ints (old code)" >&5
  4625. $as_echo_n "checking whether pointers can be stored in ints (old code)... " >&6; }
  4626. 	pointers_fit_in_ints="no"
  4627. 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4628. /* end confdefs.h.  */
  4629. static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void*)) ? 1 : -1];
  4630. int
  4631. main ()
  4632. {
  4633.  
  4634.   ;
  4635.   return 0;
  4636. }
  4637. _ACEOF
  4638. if ac_fn_c_try_compile "$LINENO"; then :
  4639.   pointers_fit_in_ints="yes"
  4640. fi
  4641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4642. 	if test "$pointers_fit_in_ints" = "no" ; then
  4643. 		CFLAGS="$CFLAGS -m32"
  4644. 		LDFLAGS="$LDFLAGS -m32"
  4645. 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4646. /* end confdefs.h.  */
  4647. static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void *)) ? 1 : -1];
  4648. int
  4649. main ()
  4650. {
  4651.  
  4652.   ;
  4653.   return 0;
  4654. }
  4655. _ACEOF
  4656. if ac_fn_c_try_compile "$LINENO"; then :
  4657.   pointers_fit_in_ints="yes (with -m32)"
  4658. fi
  4659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4660. 	fi
  4661. 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pointers_fit_in_ints" >&5
  4662. $as_echo "$pointers_fit_in_ints" >&6; }
  4663. 	if test "$pointers_fit_in_ints" = "no" ; then
  4664. 		as_fn_error $? "pointers cannot be stored in ints, required for old code... stopping" "$LINENO" 5
  4665. 	fi
  4666. fi
  4667.  
  4668.  
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
  4670. $as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
  4671. OLD_CFLAGS="$CFLAGS"
  4672. CFLAGS="$CFLAGS -Wno-unused-parameter"
  4673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4674. /* end confdefs.h.  */
  4675. int foo;
  4676. _ACEOF
  4677. if ac_fn_c_try_compile "$LINENO"; then :
  4678.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4679. $as_echo "yes" >&6; }
  4680. else
  4681.  
  4682. 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4683. $as_echo "no" >&6; }
  4684. 		CFLAGS="$OLD_CFLAGS"
  4685.  
  4686.  
  4687. fi
  4688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4689.  
  4690.  
  4691. #
  4692. # LTO Support test
  4693. #
  4694. if test "$enable_lto" != "no" ; then
  4695.  
  4696. 	OLD_CFLAGS="$CFLAGS"
  4697. 	CFLAGS="$CFLAGS -flto"
  4698.  
  4699. 	OLD_LDFLAGS="$LDFLAGS"
  4700. 	LDFLAGS="$LDFLAGS -flto"
  4701.  
  4702. 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -flto" >&5
  4703. $as_echo_n "checking whether $CC supports -flto... " >&6; }
  4704. 	if test "$cross_compiling" = yes; then :
  4705.  
  4706. 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: guessing no" >&5
  4707. $as_echo "guessing no" >&6; }
  4708.  
  4709.  
  4710. else
  4711.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4712. /* end confdefs.h.  */
  4713.  
  4714. 			int main(int argc, char **argv){
  4715.                return 0;
  4716.            }
  4717.  
  4718. _ACEOF
  4719. if ac_fn_c_try_run "$LINENO"; then :
  4720.  
  4721. 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4722. $as_echo "yes" >&6; }
  4723.  
  4724. else
  4725.  
  4726. 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4727. $as_echo "no" >&6; }
  4728. 			CFLAGS="$OLD_CFLAGS"
  4729. 			LDFLAGS="$OLD_LDFLAGS"
  4730.  
  4731. fi
  4732. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4733.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  4734. fi
  4735.  
  4736. fi
  4737.  
  4738.  
  4739.  
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-pointer-sign" >&5
  4741. $as_echo_n "checking whether $CC supports -Wno-pointer-sign... " >&6; }
  4742. OLD_CFLAGS="$CFLAGS"
  4743. CFLAGS="$CFLAGS -Wno-pointer-sign"
  4744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4745. /* end confdefs.h.  */
  4746. int foo;
  4747. _ACEOF
  4748. if ac_fn_c_try_compile "$LINENO"; then :
  4749.  
  4750. 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4751. $as_echo "yes" >&6; }
  4752. 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wno-pointer-sign" >&5
  4753. $as_echo_n "checking whether $CC can actually use -Wno-pointer-sign... " >&6; }
  4754. 		# This option causes warnings in C++ mode
  4755. 		# Note: -Werror must be before -Wno-pointer-sign, otherwise it does not do anything
  4756. 		CFLAGS="$OLD_CFLAGS -Werror -Wno-pointer-sign"
  4757. 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4758. /* end confdefs.h.  */
  4759. int foo;
  4760. _ACEOF
  4761. if ac_fn_c_try_compile "$LINENO"; then :
  4762.  
  4763. 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4764. $as_echo "yes" >&6; }
  4765. 				CFLAGS="$OLD_CFLAGS -Wno-pointer-sign"
  4766.  
  4767. else
  4768.  
  4769. 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4770. $as_echo "no" >&6; }
  4771. 				CFLAGS="$OLD_CFLAGS"
  4772.  
  4773.  
  4774. fi
  4775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4776.  
  4777. else
  4778.  
  4779. 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4780. $as_echo "no" >&6; }
  4781. 		CFLAGS="$OLD_CFLAGS"
  4782.  
  4783.  
  4784. fi
  4785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4786.  
  4787.  
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-switch" >&5
  4789. $as_echo_n "checking whether $CC supports -Wno-switch... " >&6; }
  4790. OLD_CFLAGS="$CFLAGS"
  4791. CFLAGS="$CFLAGS -Wno-switch"
  4792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4793. /* end confdefs.h.  */
  4794. int foo;
  4795. _ACEOF
  4796. if ac_fn_c_try_compile "$LINENO"; then :
  4797.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4798. $as_echo "yes" >&6; }
  4799. else
  4800.  
  4801. 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4802. $as_echo "no" >&6; }
  4803. 		CFLAGS="$OLD_CFLAGS"
  4804.  
  4805.  
  4806. fi
  4807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4808.  
  4809.  
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fPIC" >&5
  4811. $as_echo_n "checking whether $CC supports -fPIC... " >&6; }
  4812. OLD_CFLAGS="$CFLAGS"
  4813. CFLAGS="$CFLAGS -fPIC"
  4814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4815. /* end confdefs.h.  */
  4816. int foo;
  4817. _ACEOF
  4818. if ac_fn_c_try_compile "$LINENO"; then :
  4819.  
  4820. 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4821. $as_echo "yes" >&6; }
  4822. 		compiler_supports_pic="yes"
  4823.  
  4824. else
  4825.  
  4826. 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4827. $as_echo "no" >&6; }
  4828. 		compiler_supports_pic="no"
  4829.  
  4830.  
  4831. fi
  4832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4833. CFLAGS="$OLD_CFLAGS"
  4834.  
  4835.  
  4836. #
  4837. # -O2 implies -fstrict-aliasing, but the code is not safe for that
  4838. #
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
  4840. $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
  4841. OLD_CFLAGS="$CFLAGS"
  4842. CFLAGS="$CFLAGS -fno-strict-aliasing"
  4843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4844. /* end confdefs.h.  */
  4845. int foo;
  4846. _ACEOF
  4847. if ac_fn_c_try_compile "$LINENO"; then :
  4848.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4849. $as_echo "yes" >&6; }
  4850. else
  4851.  
  4852. 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4853. $as_echo "no" >&6; }
  4854. 		CFLAGS="$OLD_CFLAGS"
  4855.  
  4856.  
  4857. fi
  4858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4859.  
  4860.  
  4861. ###############################################################################
  4862. # Check for libraries and header files.
  4863. #
  4864.  
  4865.  
  4866. #
  4867. # setrlimit - used to set the socket limit
  4868. #
  4869. ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
  4870. if test "x$ac_cv_func_setrlimit" = x""yes; then :
  4871.   CFLAGS="$CFLAGS -DHAVE_SETRLIMIT"
  4872. fi
  4873.  
  4874.  
  4875.  
  4876. #
  4877. # strnlen - string length with upper scan bound
  4878. #
  4879. ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
  4880. if test "x$ac_cv_func_strnlen" = x""yes; then :
  4881.   CFLAGS="$CFLAGS -DHAVE_STRNLEN"
  4882. fi
  4883.  
  4884.  
  4885. # libconfig
  4886. for ac_func in uselocale
  4887. do :
  4888.   ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
  4889. if test "x$ac_cv_func_uselocale" = x""yes; then :
  4890.   cat >>confdefs.h <<_ACEOF
  4891. #define HAVE_USELOCALE 1
  4892. _ACEOF
  4893.  
  4894. fi
  4895. done
  4896.  
  4897. for ac_func in newlocale
  4898. do :
  4899.   ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale"
  4900. if test "x$ac_cv_func_newlocale" = x""yes; then :
  4901.   cat >>confdefs.h <<_ACEOF
  4902. #define HAVE_NEWLOCALE 1
  4903. _ACEOF
  4904.  
  4905. fi
  4906. done
  4907.  
  4908. for ac_func in freelocale
  4909. do :
  4910.   ac_fn_c_check_func "$LINENO" "freelocale" "ac_cv_func_freelocale"
  4911. if test "x$ac_cv_func_freelocale" = x""yes; then :
  4912.   cat >>confdefs.h <<_ACEOF
  4913. #define HAVE_FREELOCALE 1
  4914. _ACEOF
  4915.  
  4916. fi
  4917. done
  4918.  
  4919. for ac_header in xlocale.h
  4920. do :
  4921.   ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
  4922. if test "x$ac_cv_header_xlocale_h" = x""yes; then :
  4923.   cat >>confdefs.h <<_ACEOF
  4924. #define HAVE_XLOCALE_H 1
  4925. _ACEOF
  4926.  
  4927. fi
  4928.  
  4929. done
  4930.  
  4931.  
  4932. #
  4933. # Memory manager
  4934. #
  4935. case $enable_manager in
  4936. 	"no")
  4937. 		CFLAGS="$CFLAGS -DNO_MEMMGR"
  4938. 		;;
  4939. 	"builtin")
  4940. 		# enabled by default
  4941. 		;;
  4942. 	"memwatch")
  4943. 		CFLAGS="$CFLAGS -DMEMWATCH"
  4944. 		ac_fn_c_check_header_mongrel "$LINENO" "memwatch.h" "ac_cv_header_memwatch_h" "$ac_includes_default"
  4945. if test "x$ac_cv_header_memwatch_h" = x""yes; then :
  4946.  
  4947. else
  4948.   as_fn_error $? "memwatch header not found... stopping" "$LINENO" 5
  4949. fi
  4950.  
  4951.  
  4952. 		;;
  4953. 	"dmalloc")
  4954. 		CFLAGS="$CFLAGS -DDMALLOC -DDMALLOC_FUNC_CHECK"
  4955. 		LIBS="$LIBS -ldmalloc"
  4956. 		ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
  4957. if test "x$ac_cv_header_dmalloc_h" = x""yes; then :
  4958.  
  4959. else
  4960.   as_fn_error $? "dmalloc header not found... stopping" "$LINENO" 5
  4961. fi
  4962.  
  4963.  
  4964. 		;;
  4965. 	"gcollect")
  4966. 		CFLAGS="$CFLAGS -DGCOLLECT"
  4967. 		LIBS="$LIBS -lgc"
  4968. 		ac_fn_c_check_header_mongrel "$LINENO" "gc.h" "ac_cv_header_gc_h" "$ac_includes_default"
  4969. if test "x$ac_cv_header_gc_h" = x""yes; then :
  4970.  
  4971. else
  4972.   as_fn_error $? "gcollect header not found... stopping" "$LINENO" 5
  4973. fi
  4974.  
  4975.  
  4976. 		;;
  4977. 	"bcheck")
  4978. 		CFLAGS="$CFLAGS -DBCHECK"
  4979. 		;;
  4980. esac
  4981.  
  4982.  
  4983. #
  4984. # Packetver
  4985. #
  4986. if test -n "$enable_packetver" ; then
  4987. 	CFLAGS="$CFLAGS -DPACKETVER=$enable_packetver"
  4988. fi
  4989.  
  4990.  
  4991. #
  4992. # Debug
  4993. #
  4994. case $enable_debug in
  4995. 	"no")
  4996. 		# default value
  4997. 		CFLAGS="$CFLAGS -Wno-unused -Wno-parentheses"
  4998. 		;;
  4999. 	"yes")
  5000. 		CFLAGS="$CFLAGS -g -DDEBUG"
  5001. 		;;
  5002. 	"gdb")
  5003. 		CFLAGS="$CFLAGS -ggdb -DDEBUG"
  5004. 		;;
  5005. esac
  5006.  
  5007. #
  5008. # Buildbot
  5009. #
  5010. case $enable_buildbot in
  5011. 	"no")
  5012. 		# default value
  5013. 		;;
  5014. 	"yes")
  5015. 		CFLAGS="$CFLAGS -DBUILDBOT"
  5016. 		;;
  5017. esac
  5018.  
  5019. #
  5020. # RDTSC
  5021. #
  5022. case $enable_rdtsc in
  5023. 	0)
  5024. 		#default value
  5025. 		;;
  5026. 	1)
  5027. 		CFLAGS="$CFLAGS -DENABLE_RDTSC"
  5028. 		;;
  5029. esac
  5030.  
  5031.  
  5032. #
  5033. # Profiler
  5034. #
  5035. case $enable_profiler in
  5036. 	"no")
  5037. 		# default value
  5038. 		;;
  5039. 	"gprof")
  5040. 		CFLAGS="$CFLAGS -pg"
  5041. 		LDFLAGS="$LDFLAGS -pg"
  5042. 		;;
  5043. esac
  5044.  
  5045.  
  5046. #
  5047. # zlib library (required)
  5048. #
  5049. if test -n "${ZLIB_HOME}" ; then
  5050. 	LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
  5051. 	CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
  5052. fi
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
  5054. $as_echo_n "checking for inflateEnd in -lz... " >&6; }
  5055. if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
  5056.   $as_echo_n "(cached) " >&6
  5057. else
  5058.   ac_check_lib_save_LIBS=$LIBS
  5059. LIBS="-lz  $LIBS"
  5060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5061. /* end confdefs.h.  */
  5062.  
  5063. /* Override any GCC internal prototype to avoid an error.
  5064.    Use char because int might match the return type of a GCC
  5065.    builtin and then its argument prototype would still apply.  */
  5066. #ifdef __cplusplus
  5067. extern "C"
  5068. #endif
  5069. char inflateEnd ();
  5070. int
  5071. main ()
  5072. {
  5073. return inflateEnd ();
  5074.   ;
  5075.   return 0;
  5076. }
  5077. _ACEOF
  5078. if ac_fn_c_try_link "$LINENO"; then :
  5079.   ac_cv_lib_z_inflateEnd=yes
  5080. else
  5081.   ac_cv_lib_z_inflateEnd=no
  5082. fi
  5083. rm -f core conftest.err conftest.$ac_objext \
  5084.     conftest$ac_exeext conftest.$ac_ext
  5085. LIBS=$ac_check_lib_save_LIBS
  5086. fi
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
  5088. $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
  5089. if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
  5090.   cat >>confdefs.h <<_ACEOF
  5091. #define HAVE_LIBZ 1
  5092. _ACEOF
  5093.  
  5094.   LIBS="-lz $LIBS"
  5095.  
  5096. else
  5097.   as_fn_error $? "zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping" "$LINENO" 5
  5098. fi
  5099.  
  5100. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  5101. if test "x$ac_cv_header_zlib_h" = x""yes; then :
  5102.  
  5103. else
  5104.   as_fn_error $? "zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" "$LINENO" 5
  5105. fi
  5106.  
  5107.  
  5108.  
  5109.  
  5110. #
  5111. # math library (required)
  5112. #
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
  5114. $as_echo_n "checking for library containing sqrt... " >&6; }
  5115. if test "${ac_cv_search_sqrt+set}" = set; then :
  5116.   $as_echo_n "(cached) " >&6
  5117. else
  5118.   ac_func_search_save_LIBS=$LIBS
  5119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5120. /* end confdefs.h.  */
  5121.  
  5122. /* Override any GCC internal prototype to avoid an error.
  5123.    Use char because int might match the return type of a GCC
  5124.    builtin and then its argument prototype would still apply.  */
  5125. #ifdef __cplusplus
  5126. extern "C"
  5127. #endif
  5128. char sqrt ();
  5129. int
  5130. main ()
  5131. {
  5132. return sqrt ();
  5133.   ;
  5134.   return 0;
  5135. }
  5136. _ACEOF
  5137. for ac_lib in '' m; do
  5138.   if test -z "$ac_lib"; then
  5139.     ac_res="none required"
  5140.   else
  5141.     ac_res=-l$ac_lib
  5142.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  5143.   fi
  5144.   if ac_fn_c_try_link "$LINENO"; then :
  5145.   ac_cv_search_sqrt=$ac_res
  5146. fi
  5147. rm -f core conftest.err conftest.$ac_objext \
  5148.     conftest$ac_exeext
  5149.   if test "${ac_cv_search_sqrt+set}" = set; then :
  5150.   break
  5151. fi
  5152. done
  5153. if test "${ac_cv_search_sqrt+set}" = set; then :
  5154.  
  5155. else
  5156.   ac_cv_search_sqrt=no
  5157. fi
  5158. rm conftest.$ac_ext
  5159. LIBS=$ac_func_search_save_LIBS
  5160. fi
  5161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
  5162. $as_echo "$ac_cv_search_sqrt" >&6; }
  5163. ac_res=$ac_cv_search_sqrt
  5164. if test "$ac_res" != no; then :
  5165.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5166.  
  5167. else
  5168.   as_fn_error $? "math library not found... stopping" "$LINENO" 5
  5169. fi
  5170.  
  5171.  
  5172.  
  5173. #
  5174. # clock_gettime (optional, rt on Debian)
  5175. #
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  5177. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  5178. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  5179.   $as_echo_n "(cached) " >&6
  5180. else
  5181.   ac_func_search_save_LIBS=$LIBS
  5182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5183. /* end confdefs.h.  */
  5184.  
  5185. /* Override any GCC internal prototype to avoid an error.
  5186.    Use char because int might match the return type of a GCC
  5187.    builtin and then its argument prototype would still apply.  */
  5188. #ifdef __cplusplus
  5189. extern "C"
  5190. #endif
  5191. char clock_gettime ();
  5192. int
  5193. main ()
  5194. {
  5195. return clock_gettime ();
  5196.   ;
  5197.   return 0;
  5198. }
  5199. _ACEOF
  5200. for ac_lib in '' rt; do
  5201.   if test -z "$ac_lib"; then
  5202.     ac_res="none required"
  5203.   else
  5204.     ac_res=-l$ac_lib
  5205.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  5206.   fi
  5207.   if ac_fn_c_try_link "$LINENO"; then :
  5208.   ac_cv_search_clock_gettime=$ac_res
  5209. fi
  5210. rm -f core conftest.err conftest.$ac_objext \
  5211.     conftest$ac_exeext
  5212.   if test "${ac_cv_search_clock_gettime+set}" = set; then :
  5213.   break
  5214. fi
  5215. done
  5216. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  5217.  
  5218. else
  5219.   ac_cv_search_clock_gettime=no
  5220. fi
  5221. rm conftest.$ac_ext
  5222. LIBS=$ac_func_search_save_LIBS
  5223. fi
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  5225. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  5226. ac_res=$ac_cv_search_clock_gettime
  5227. if test "$ac_res" != no; then :
  5228.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5229.  
  5230. fi
  5231.  
  5232.  
  5233.  
  5234. #
  5235. # CLOCK_MONOTONIC clock for clock_gettime
  5236. # Normally defines _POSIX_TIMERS > 0 and _POSIX_MONOTONIC_CLOCK (for posix
  5237. # compliant systems) and __FreeBSD_cc_version >= 500005 (for FreeBSD
  5238. # >= 5.1.0, which does not have the posix defines (ref. r11983)) would be
  5239. # checked but some systems define them even when they do not support it
  5240. # (ref. bugreport:1003).
  5241. #
  5242. if test "$ac_cv_search_clock_gettime" != "no" ; then
  5243. 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CLOCK_MONOTONIC is supported and works" >&5
  5244. $as_echo_n "checking whether CLOCK_MONOTONIC is supported and works... " >&6; }
  5245. 	if test "$cross_compiling" = yes; then :
  5246.  
  5247. 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: guessing no" >&5
  5248. $as_echo "guessing no" >&6; }
  5249.  
  5250.  
  5251. else
  5252.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5253. /* end confdefs.h.  */
  5254.  
  5255. 			#include <sys/time.h>
  5256. 			#include <time.h>
  5257. 			#include <unistd.h>
  5258.  
  5259. 			int main(int argc, char** argv)
  5260. 			{
  5261. 				struct timespec tval;
  5262. 				return clock_gettime(CLOCK_MONOTONIC, &tval);
  5263. 			}
  5264.  
  5265. _ACEOF
  5266. if ac_fn_c_try_run "$LINENO"; then :
  5267.  
  5268. 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5269. $as_echo "yes" >&6; }
  5270. 			CFLAGS="$CFLAGS -DHAVE_MONOTONIC_CLOCK"
  5271.  
  5272. else
  5273.  
  5274. 			# either it failed to compile (CLOCK_MONOTONIC undefined)
  5275. 			# or clock_gettime has returned a non-zero value
  5276. 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5277. $as_echo "no" >&6; }
  5278.  
  5279. fi
  5280. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5281.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  5282. fi
  5283.  
  5284. fi
  5285.  
  5286.  
  5287. #
  5288. # MySQL library
  5289. #
  5290.  
  5291. if test -z "$MYSQL_CONFIG_HOME"; then
  5292. 	# Extract the first word of "mysql_config", so it can be a program name with args.
  5293. set dummy mysql_config; ac_word=$2
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5295. $as_echo_n "checking for $ac_word... " >&6; }
  5296. if test "${ac_cv_path_MYSQL_CONFIG_HOME+set}" = set; then :
  5297.   $as_echo_n "(cached) " >&6
  5298. else
  5299.   case $MYSQL_CONFIG_HOME in
  5300.   [\\/]* | ?:[\\/]*)
  5301.   ac_cv_path_MYSQL_CONFIG_HOME="$MYSQL_CONFIG_HOME" # Let the user override the test with a path.
  5302.   ;;
  5303.   *)
  5304.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5305. for as_dir in $PATH
  5306. do
  5307.   IFS=$as_save_IFS
  5308.   test -z "$as_dir" && as_dir=.
  5309.     for ac_exec_ext in '' $ac_executable_extensions; do
  5310.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5311.     ac_cv_path_MYSQL_CONFIG_HOME="$as_dir/$ac_word$ac_exec_ext"
  5312.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5313.     break 2
  5314.   fi
  5315. done
  5316.   done
  5317. IFS=$as_save_IFS
  5318.  
  5319.   test -z "$ac_cv_path_MYSQL_CONFIG_HOME" && ac_cv_path_MYSQL_CONFIG_HOME="no"
  5320.   ;;
  5321. esac
  5322. fi
  5323. MYSQL_CONFIG_HOME=$ac_cv_path_MYSQL_CONFIG_HOME
  5324. if test -n "$MYSQL_CONFIG_HOME"; then
  5325.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG_HOME" >&5
  5326. $as_echo "$MYSQL_CONFIG_HOME" >&6; }
  5327. else
  5328.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5329. $as_echo "no" >&6; }
  5330. fi
  5331.  
  5332.  
  5333. fi
  5334.  
  5335. if test "$MYSQL_CONFIG_HOME" != "no" ; then
  5336. 	MYSQL_VERSION="`$MYSQL_CONFIG_HOME --version`"
  5337. 	if test "$manual_MYSQL_CFLAGS" = "no" ; then
  5338. 		MYSQL_CFLAGS="`$MYSQL_CONFIG_HOME --include`"
  5339. 	fi
  5340. 	if test "$manual_MYSQL_LIBS" = "no" ; then
  5341. 		MYSQL_LIBS="`$MYSQL_CONFIG_HOME --libs`"
  5342. 	fi
  5343. else
  5344. 	MYSQL_VERSION="unknown"
  5345. fi
  5346.  
  5347. MYSQL_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS $MYSQL_LIBS"
  5348. MYSQL_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS"
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5
  5350. $as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; }
  5351. if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then :
  5352.   $as_echo_n "(cached) " >&6
  5353. else
  5354.   ac_check_lib_save_LIBS=$LIBS
  5355. LIBS="-lmysqlclient  $LIBS"
  5356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5357. /* end confdefs.h.  */
  5358.  
  5359. /* Override any GCC internal prototype to avoid an error.
  5360.    Use char because int might match the return type of a GCC
  5361.    builtin and then its argument prototype would still apply.  */
  5362. #ifdef __cplusplus
  5363. extern "C"
  5364. #endif
  5365. char mysql_init ();
  5366. int
  5367. main ()
  5368. {
  5369. return mysql_init ();
  5370.   ;
  5371.   return 0;
  5372. }
  5373. _ACEOF
  5374. if ac_fn_c_try_link "$LINENO"; then :
  5375.   ac_cv_lib_mysqlclient_mysql_init=yes
  5376. else
  5377.   ac_cv_lib_mysqlclient_mysql_init=no
  5378. fi
  5379. rm -f core conftest.err conftest.$ac_objext \
  5380.     conftest$ac_exeext conftest.$ac_ext
  5381. LIBS=$ac_check_lib_save_LIBS
  5382. fi
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
  5384. $as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; }
  5385. if test "x$ac_cv_lib_mysqlclient_mysql_init" = x""yes; then :
  5386.   HAVE_MYSQL="yes"
  5387. fi
  5388.  
  5389. ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default"
  5390. if test "x$ac_cv_header_mysql_h" = x""yes; then :
  5391.  
  5392. else
  5393.   HAVE_MYSQL=""
  5394. fi
  5395.  
  5396.  
  5397. CPPFLAGS="$MYSQL_OLD_CPPFLAGS"
  5398. LDFLAGS="$MYSQL_OLD_LDFLAGS"
  5399.  
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MySQL library (required)" >&5
  5401. $as_echo_n "checking MySQL library (required)... " >&6; }
  5402. if test "$HAVE_MYSQL" = "yes" ; then
  5403. 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($MYSQL_VERSION)" >&5
  5404. $as_echo "yes ($MYSQL_VERSION)" >&6; }
  5405. else
  5406. 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5407. $as_echo "no" >&6; }
  5408. 	as_fn_error $? "MySQL not found or incompatible" "$LINENO" 5
  5409. fi
  5410.  
  5411.  
  5412.  
  5413.  
  5414.  
  5415.  
  5416.  
  5417. #
  5418. # PCRE library (optional)
  5419. #
  5420. ##TODO PCRE version
  5421. PCRE_LIBS=""
  5422. PCRE_CFLAGS=""
  5423.  
  5424. if test "$want_pcre" = "no" ; then
  5425. 	{ $as_echo "$as_me:${as_lineno-$LINENO}: ignoring PCRE (optional)" >&5
  5426. $as_echo "$as_me: ignoring PCRE (optional)" >&6;}
  5427. else
  5428. 	if test -z "$PCRE_HOME" ; then
  5429. 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
  5430. $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
  5431. if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then :
  5432.   $as_echo_n "(cached) " >&6
  5433. else
  5434.   ac_check_lib_save_LIBS=$LIBS
  5435. LIBS="-lpcre  $LIBS"
  5436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5437. /* end confdefs.h.  */
  5438.  
  5439. /* Override any GCC internal prototype to avoid an error.
  5440.    Use char because int might match the return type of a GCC
  5441.    builtin and then its argument prototype would still apply.  */
  5442. #ifdef __cplusplus
  5443. extern "C"
  5444. #endif
  5445. char pcre_study ();
  5446. int
  5447. main ()
  5448. {
  5449. return pcre_study ();
  5450.   ;
  5451.   return 0;
  5452. }
  5453. _ACEOF
  5454. if ac_fn_c_try_link "$LINENO"; then :
  5455.   ac_cv_lib_pcre_pcre_study=yes
  5456. else
  5457.   ac_cv_lib_pcre_pcre_study=no
  5458. fi
  5459. rm -f core conftest.err conftest.$ac_objext \
  5460.     conftest$ac_exeext conftest.$ac_ext
  5461. LIBS=$ac_check_lib_save_LIBS
  5462. fi
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
  5464. $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
  5465. if test "x$ac_cv_lib_pcre_pcre_study" = x""yes; then :
  5466.   HAVE_PCRE="yes"
  5467. fi
  5468.  
  5469. 		if test "$HAVE_PCRE" = "yes" ; then
  5470. 			PCRE_LIBS="-lpcre"
  5471. 		fi
  5472. 	else
  5473. 		PCRE_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$PCRE_HOME/lib"
  5474. 		PCRE_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$PCRE_HOME/include"
  5475. 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
  5476. $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
  5477. if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then :
  5478.   $as_echo_n "(cached) " >&6
  5479. else
  5480.   ac_check_lib_save_LIBS=$LIBS
  5481. LIBS="-lpcre  $LIBS"
  5482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5483. /* end confdefs.h.  */
  5484.  
  5485. /* Override any GCC internal prototype to avoid an error.
  5486.    Use char because int might match the return type of a GCC
  5487.    builtin and then its argument prototype would still apply.  */
  5488. #ifdef __cplusplus
  5489. extern "C"
  5490. #endif
  5491. char pcre_compile ();
  5492. int
  5493. main ()
  5494. {
  5495. return pcre_compile ();
  5496.   ;
  5497.   return 0;
  5498. }
  5499. _ACEOF
  5500. if ac_fn_c_try_link "$LINENO"; then :
  5501.   ac_cv_lib_pcre_pcre_compile=yes
  5502. else
  5503.   ac_cv_lib_pcre_pcre_compile=no
  5504. fi
  5505. rm -f core conftest.err conftest.$ac_objext \
  5506.     conftest$ac_exeext conftest.$ac_ext
  5507. LIBS=$ac_check_lib_save_LIBS
  5508. fi
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
  5510. $as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
  5511. if test "x$ac_cv_lib_pcre_pcre_compile" = x""yes; then :
  5512.   HAVE_PCRE="yes"
  5513. fi
  5514.  
  5515. 		CPPFLAGS="$PCRE_OLD_CPPFLAGS"
  5516. 		LDFLAGS="$PCRE_OLD_LDFLAGS"
  5517. 		if test "$HAVE_PCRE" = "yes" ; then
  5518. 			PCRE_LIBS="-L$PCRE_HOME/lib -lpcre"
  5519. 			test -d "$PCRE_HOME/include" && PCRE_CFLAGS="-I$PCRE_HOME/include"
  5520. 		fi
  5521. 	fi
  5522. 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PCRE library (optional)" >&5
  5523. $as_echo_n "checking PCRE library (optional)... " >&6; }
  5524. 	if test "$HAVE_PCRE" = "yes" ; then
  5525. 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5526. $as_echo "yes" >&6; }
  5527. 	else
  5528. 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5529. $as_echo "no" >&6; }
  5530. 		if test "$require_pcre" = "yes" ; then
  5531. 			as_fn_error $? "PCRE not found or incompatible (requested)" "$LINENO" 5
  5532. 		else
  5533. 			{ $as_echo "$as_me:${as_lineno-$LINENO}: disabling PCRE (optional)" >&5
  5534. $as_echo "$as_me: disabling PCRE (optional)" >&6;}
  5535. 		fi
  5536. 	fi
  5537. fi
  5538.  
  5539.  
  5540.  
  5541.  
  5542.  
  5543.  
  5544. #
  5545. # Host specific stuff
  5546. #
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host OS" >&5
  5548. $as_echo_n "checking host OS... " >&6; }
  5549. host_os="`uname`"
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_os" >&5
  5551. $as_echo "$host_os" >&6; }
  5552. fd_setsize=""
  5553. DLLEXT=".so"
  5554. case $host_os in
  5555. Solaris* )
  5556. 	LIBS="$LIBS -lsocket -lnsl -ldl"
  5557. 	;;
  5558. Linux* )
  5559. 	LIBS="$LIBS -ldl"
  5560. 	;;
  5561. FreeBSD*)
  5562. 	CPPFLAGS="$CPPFLAGS -D__FREEBSD__"
  5563. 	;;
  5564. NetBSD*)
  5565. 	CPPFLAGS="$CPPFLAGS -D__NETBSD__"
  5566. 	;;
  5567. CYGWIN*)
  5568. 	CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096 -DCYGWIN"
  5569. 	fd_setsize="done"
  5570. 	DLLEXT=".dll"
  5571. 	;;
  5572. esac
  5573.  
  5574.  
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MinGW" >&5
  5576. $as_echo_n "checking for MinGW... " >&6; }
  5577. if test -n "`$CC --version | grep -i mingw`" ; then
  5578. 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5579. $as_echo "yes" >&6; }
  5580. 	CPPFLAGS="$CPPFLAGS -DMINGW"
  5581. 	if test -z "$fd_setsize" ; then
  5582. 		CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096"
  5583. 	fi
  5584. 	LIBS="$LIBS -lws2_32"
  5585. else
  5586. 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5587. $as_echo "no" >&6; }
  5588. fi
  5589.  
  5590.  
  5591.  
  5592. ###############################################################################
  5593. cat >confcache <<\_ACEOF
  5594. # This file is a shell script that caches the results of configure
  5595. # tests run on this system so they can be shared between configure
  5596. # scripts and configure runs, see configure's option --config-cache.
  5597. # It is not useful on other systems.  If it contains results you don't
  5598. # want to keep, you may remove or edit it.
  5599. #
  5600. # config.status only pays attention to the cache file if you give it
  5601. # the --recheck option to rerun configure.
  5602. #
  5603. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5604. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5605. # following values.
  5606.  
  5607. _ACEOF
  5608.  
  5609. # The following way of writing the cache mishandles newlines in values,
  5610. # but we know of no workaround that is simple, portable, and efficient.
  5611. # So, we kill variables containing newlines.
  5612. # Ultrix sh set writes to stderr and can't be redirected directly,
  5613. # and sets the high bit in the cache file unless we assign to the vars.
  5614. (
  5615.   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5616.     eval ac_val=\$$ac_var
  5617.     case $ac_val in #(
  5618.     *${as_nl}*)
  5619.       case $ac_var in #(
  5620.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5621. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5622.       esac
  5623.       case $ac_var in #(
  5624.       _ | IFS | as_nl) ;; #(
  5625.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5626.       *) { eval $ac_var=; unset $ac_var;} ;;
  5627.       esac ;;
  5628.     esac
  5629.   done
  5630.  
  5631.   (set) 2>&1 |
  5632.     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5633.     *${as_nl}ac_space=\ *)
  5634.       # `set' does not quote correctly, so add quotes: double-quote
  5635.       # substitution turns \\\\ into \\, and sed turns \\ into \.
  5636.       sed -n \
  5637. 	"s/'/'\\\\''/g;
  5638. 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5639.       ;; #(
  5640.     *)
  5641.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  5642.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5643.       ;;
  5644.     esac |
  5645.     sort
  5646. ) |
  5647.   sed '
  5648.      /^ac_cv_env_/b end
  5649.      t clear
  5650.      :clear
  5651.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5652.      t end
  5653.      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5654.      :end' >>confcache
  5655. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5656.   if test -w "$cache_file"; then
  5657.     test "x$cache_file" != "x/dev/null" &&
  5658.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5659. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5660.     cat confcache >$cache_file
  5661.   else
  5662.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5663. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5664.   fi
  5665. fi
  5666. rm -f confcache
  5667.  
  5668. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5669. # Let make expand exec_prefix.
  5670. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5671.  
  5672. # Transform confdefs.h into DEFS.
  5673. # Protect against shell expansion while executing Makefile rules.
  5674. # Protect against Makefile macro expansion.
  5675. #
  5676. # If the first sed substitution is executed (which looks for macros that
  5677. # take arguments), then branch to the quote section.  Otherwise,
  5678. # look for a macro that doesn't take arguments.
  5679. ac_script='
  5680. :mline
  5681. /\\$/{
  5682.  N
  5683.  s,\\\n,,
  5684.  b mline
  5685. }
  5686. t clear
  5687. :clear
  5688. s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
  5689. t quote
  5690. s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
  5691. t quote
  5692. b any
  5693. :quote
  5694. s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  5695. s/\[/\\&/g
  5696. s/\]/\\&/g
  5697. s/\$/$$/g
  5698. H
  5699. :any
  5700. ${
  5701. 	g
  5702. 	s/^\n//
  5703. 	s/\n/ /g
  5704. 	p
  5705. }
  5706. '
  5707. DEFS=`sed -n "$ac_script" confdefs.h`
  5708.  
  5709.  
  5710. ac_libobjs=
  5711. ac_ltlibobjs=
  5712. U=
  5713. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5714.   # 1. Remove the extension, and $U if already installed.
  5715.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  5716.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  5717.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  5718.   #    will be set to the directory where LIBOBJS objects are built.
  5719.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  5720.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  5721. done
  5722. LIBOBJS=$ac_libobjs
  5723.  
  5724. LTLIBOBJS=$ac_ltlibobjs
  5725.  
  5726.  
  5727.  
  5728.  
  5729. : ${CONFIG_STATUS=./config.status}
  5730. ac_write_fail=0
  5731. ac_clean_files_save=$ac_clean_files
  5732. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  5734. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5735. as_write_fail=0
  5736. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  5737. #! $SHELL
  5738. # Generated by $as_me.
  5739. # Run this file to recreate the current configuration.
  5740. # Compiler output produced by configure, useful for debugging
  5741. # configure, is in config.log if it exists.
  5742.  
  5743. debug=false
  5744. ac_cs_recheck=false
  5745. ac_cs_silent=false
  5746.  
  5747. SHELL=\${CONFIG_SHELL-$SHELL}
  5748. export SHELL
  5749. _ASEOF
  5750. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  5751. ## -------------------- ##
  5752. ## M4sh Initialization. ##
  5753. ## -------------------- ##
  5754.  
  5755. # Be more Bourne compatible
  5756. DUALCASE=1; export DUALCASE # for MKS sh
  5757. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  5758.   emulate sh
  5759.   NULLCMD=:
  5760.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  5761.   # is contrary to our usage.  Disable this feature.
  5762.   alias -g '${1+"$@"}'='"$@"'
  5763.   setopt NO_GLOB_SUBST
  5764. else
  5765.   case `(set -o) 2>/dev/null` in #(
  5766.   *posix*) :
  5767.     set -o posix ;; #(
  5768.   *) :
  5769.      ;;
  5770. esac
  5771. fi
  5772.  
  5773.  
  5774. as_nl='
  5775. '
  5776. export as_nl
  5777. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  5778. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5779. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  5780. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  5781. # Prefer a ksh shell builtin over an external printf program on Solaris,
  5782. # but without wasting forks for bash or zsh.
  5783. if test -z "$BASH_VERSION$ZSH_VERSION" \
  5784.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  5785.   as_echo='print -r --'
  5786.   as_echo_n='print -rn --'
  5787. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  5788.   as_echo='printf %s\n'
  5789.   as_echo_n='printf %s'
  5790. else
  5791.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  5792.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  5793.     as_echo_n='/usr/ucb/echo -n'
  5794.   else
  5795.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  5796.     as_echo_n_body='eval
  5797.       arg=$1;
  5798.       case $arg in #(
  5799.       *"$as_nl"*)
  5800. 	expr "X$arg" : "X\\(.*\\)$as_nl";
  5801. 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  5802.       esac;
  5803.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  5804.     '
  5805.     export as_echo_n_body
  5806.     as_echo_n='sh -c $as_echo_n_body as_echo'
  5807.   fi
  5808.   export as_echo_body
  5809.   as_echo='sh -c $as_echo_body as_echo'
  5810. fi
  5811.  
  5812. # The user is always right.
  5813. if test "${PATH_SEPARATOR+set}" != set; then
  5814.   PATH_SEPARATOR=:
  5815.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  5816.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  5817.       PATH_SEPARATOR=';'
  5818.   }
  5819. fi
  5820.  
  5821.  
  5822. # IFS
  5823. # We need space, tab and new line, in precisely that order.  Quoting is
  5824. # there to prevent editors from complaining about space-tab.
  5825. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  5826. # splitting by setting IFS to empty value.)
  5827. IFS=" ""	$as_nl"
  5828.  
  5829. # Find who we are.  Look in the path if we contain no directory separator.
  5830. case $0 in #((
  5831.   *[\\/]* ) as_myself=$0 ;;
  5832.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5833. for as_dir in $PATH
  5834. do
  5835.   IFS=$as_save_IFS
  5836.   test -z "$as_dir" && as_dir=.
  5837.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5838.   done
  5839. IFS=$as_save_IFS
  5840.  
  5841.      ;;
  5842. esac
  5843. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5844. # in which case we are not to be found in the path.
  5845. if test "x$as_myself" = x; then
  5846.   as_myself=$0
  5847. fi
  5848. if test ! -f "$as_myself"; then
  5849.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5850.   exit 1
  5851. fi
  5852.  
  5853. # Unset variables that we do not need and which cause bugs (e.g. in
  5854. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  5855. # suppresses any "Segmentation fault" message there.  '((' could
  5856. # trigger a bug in pdksh 5.2.14.
  5857. for as_var in BASH_ENV ENV MAIL MAILPATH
  5858. do eval test x\${$as_var+set} = xset \
  5859.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  5860. done
  5861. PS1='$ '
  5862. PS2='> '
  5863. PS4='+ '
  5864.  
  5865. # NLS nuisances.
  5866. LC_ALL=C
  5867. export LC_ALL
  5868. LANGUAGE=C
  5869. export LANGUAGE
  5870.  
  5871. # CDPATH.
  5872. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  5873.  
  5874.  
  5875. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  5876. # ----------------------------------------
  5877. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  5878. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  5879. # script with STATUS, using 1 if that was 0.
  5880. as_fn_error ()
  5881. {
  5882.   as_status=$1; test $as_status -eq 0 && as_status=1
  5883.   if test "$4"; then
  5884.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  5885.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  5886.   fi
  5887.   $as_echo "$as_me: error: $2" >&2
  5888.   as_fn_exit $as_status
  5889. } # as_fn_error
  5890.  
  5891.  
  5892. # as_fn_set_status STATUS
  5893. # -----------------------
  5894. # Set $? to STATUS, without forking.
  5895. as_fn_set_status ()
  5896. {
  5897.   return $1
  5898. } # as_fn_set_status
  5899.  
  5900. # as_fn_exit STATUS
  5901. # -----------------
  5902. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  5903. as_fn_exit ()
  5904. {
  5905.   set +e
  5906.   as_fn_set_status $1
  5907.   exit $1
  5908. } # as_fn_exit
  5909.  
  5910. # as_fn_unset VAR
  5911. # ---------------
  5912. # Portably unset VAR.
  5913. as_fn_unset ()
  5914. {
  5915.   { eval $1=; unset $1;}
  5916. }
  5917. as_unset=as_fn_unset
  5918. # as_fn_append VAR VALUE
  5919. # ----------------------
  5920. # Append the text in VALUE to the end of the definition contained in VAR. Take
  5921. # advantage of any shell optimizations that allow amortized linear growth over
  5922. # repeated appends, instead of the typical quadratic growth present in naive
  5923. # implementations.
  5924. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  5925.   eval 'as_fn_append ()
  5926.   {
  5927.     eval $1+=\$2
  5928.   }'
  5929. else
  5930.   as_fn_append ()
  5931.   {
  5932.     eval $1=\$$1\$2
  5933.   }
  5934. fi # as_fn_append
  5935.  
  5936. # as_fn_arith ARG...
  5937. # ------------------
  5938. # Perform arithmetic evaluation on the ARGs, and store the result in the
  5939. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  5940. # must be portable across $(()) and expr.
  5941. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  5942.   eval 'as_fn_arith ()
  5943.   {
  5944.     as_val=$(( $* ))
  5945.   }'
  5946. else
  5947.   as_fn_arith ()
  5948.   {
  5949.     as_val=`expr "$@" || test $? -eq 1`
  5950.   }
  5951. fi # as_fn_arith
  5952.  
  5953.  
  5954. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5955.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5956.   as_expr=expr
  5957. else
  5958.   as_expr=false
  5959. fi
  5960.  
  5961. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5962.   as_basename=basename
  5963. else
  5964.   as_basename=false
  5965. fi
  5966.  
  5967. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5968.   as_dirname=dirname
  5969. else
  5970.   as_dirname=false
  5971. fi
  5972.  
  5973. as_me=`$as_basename -- "$0" ||
  5974. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5975. 	 X"$0" : 'X\(//\)$' \| \
  5976. 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5977. $as_echo X/"$0" |
  5978.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  5979. 	    s//\1/
  5980. 	    q
  5981. 	  }
  5982. 	  /^X\/\(\/\/\)$/{
  5983. 	    s//\1/
  5984. 	    q
  5985. 	  }
  5986. 	  /^X\/\(\/\).*/{
  5987. 	    s//\1/
  5988. 	    q
  5989. 	  }
  5990. 	  s/.*/./; q'`
  5991.  
  5992. # Avoid depending upon Character Ranges.
  5993. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5994. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5995. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5996. as_cr_digits='0123456789'
  5997. as_cr_alnum=$as_cr_Letters$as_cr_digits
  5998.  
  5999. ECHO_C= ECHO_N= ECHO_T=
  6000. case `echo -n x` in #(((((
  6001. -n*)
  6002.   case `echo 'xy\c'` in
  6003.   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  6004.   xy)  ECHO_C='\c';;
  6005.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6006.        ECHO_T='	';;
  6007.   esac;;
  6008. *)
  6009.   ECHO_N='-n';;
  6010. esac
  6011.  
  6012. rm -f conf$$ conf$$.exe conf$$.file
  6013. if test -d conf$$.dir; then
  6014.   rm -f conf$$.dir/conf$$.file
  6015. else
  6016.   rm -f conf$$.dir
  6017.   mkdir conf$$.dir 2>/dev/null
  6018. fi
  6019. if (echo >conf$$.file) 2>/dev/null; then
  6020.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  6021.     as_ln_s='ln -s'
  6022.     # ... but there are two gotchas:
  6023.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6024.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6025.     # In both cases, we have to default to `cp -p'.
  6026.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6027.       as_ln_s='cp -p'
  6028.   elif ln conf$$.file conf$$ 2>/dev/null; then
  6029.     as_ln_s=ln
  6030.   else
  6031.     as_ln_s='cp -p'
  6032.   fi
  6033. else
  6034.   as_ln_s='cp -p'
  6035. fi
  6036. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6037. rmdir conf$$.dir 2>/dev/null
  6038.  
  6039.  
  6040. # as_fn_mkdir_p
  6041. # -------------
  6042. # Create "$as_dir" as a directory, including parents if necessary.
  6043. as_fn_mkdir_p ()
  6044. {
  6045.  
  6046.   case $as_dir in #(
  6047.   -*) as_dir=./$as_dir;;
  6048.   esac
  6049.   test -d "$as_dir" || eval $as_mkdir_p || {
  6050.     as_dirs=
  6051.     while :; do
  6052.       case $as_dir in #(
  6053.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6054.       *) as_qdir=$as_dir;;
  6055.       esac
  6056.       as_dirs="'$as_qdir' $as_dirs"
  6057.       as_dir=`$as_dirname -- "$as_dir" ||
  6058. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6059. 	 X"$as_dir" : 'X\(//\)[^/]' \| \
  6060. 	 X"$as_dir" : 'X\(//\)$' \| \
  6061. 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6062. $as_echo X"$as_dir" |
  6063.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6064. 	    s//\1/
  6065. 	    q
  6066. 	  }
  6067. 	  /^X\(\/\/\)[^/].*/{
  6068. 	    s//\1/
  6069. 	    q
  6070. 	  }
  6071. 	  /^X\(\/\/\)$/{
  6072. 	    s//\1/
  6073. 	    q
  6074. 	  }
  6075. 	  /^X\(\/\).*/{
  6076. 	    s//\1/
  6077. 	    q
  6078. 	  }
  6079. 	  s/.*/./; q'`
  6080.       test -d "$as_dir" && break
  6081.     done
  6082.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  6083.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  6084.  
  6085.  
  6086. } # as_fn_mkdir_p
  6087. if mkdir -p . 2>/dev/null; then
  6088.   as_mkdir_p='mkdir -p "$as_dir"'
  6089. else
  6090.   test -d ./-p && rmdir ./-p
  6091.   as_mkdir_p=false
  6092. fi
  6093.  
  6094. if test -x / >/dev/null 2>&1; then
  6095.   as_test_x='test -x'
  6096. else
  6097.   if ls -dL / >/dev/null 2>&1; then
  6098.     as_ls_L_option=L
  6099.   else
  6100.     as_ls_L_option=
  6101.   fi
  6102.   as_test_x='
  6103.     eval sh -c '\''
  6104.       if test -d "$1"; then
  6105. 	test -d "$1/.";
  6106.       else
  6107. 	case $1 in #(
  6108. 	-*)set "./$1";;
  6109. 	esac;
  6110. 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  6111. 	???[sx]*):;;*)false;;esac;fi
  6112.     '\'' sh
  6113.   '
  6114. fi
  6115. as_executable_p=$as_test_x
  6116.  
  6117. # Sed expression to map a string onto a valid CPP name.
  6118. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6119.  
  6120. # Sed expression to map a string onto a valid variable name.
  6121. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6122.  
  6123.  
  6124. exec 6>&1
  6125. ## ----------------------------------- ##
  6126. ## Main body of $CONFIG_STATUS script. ##
  6127. ## ----------------------------------- ##
  6128. _ASEOF
  6129. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6130.  
  6131. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6132. # Save the log message, to keep $0 and so on meaningful, and to
  6133. # report actual input values of CONFIG_FILES etc. instead of their
  6134. # values after options handling.
  6135. ac_log="
  6136. This file was extended by $as_me, which was
  6137. generated by GNU Autoconf 2.67.  Invocation command line was
  6138.  
  6139.   CONFIG_FILES    = $CONFIG_FILES
  6140.   CONFIG_HEADERS  = $CONFIG_HEADERS
  6141.   CONFIG_LINKS    = $CONFIG_LINKS
  6142.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  6143.   $ $0 $@
  6144.  
  6145. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6146. "
  6147.  
  6148. _ACEOF
  6149.  
  6150. case $ac_config_files in *"
  6151. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  6152. esac
  6153.  
  6154.  
  6155.  
  6156. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6157. # Files that config.status was made for.
  6158. config_files="$ac_config_files"
  6159.  
  6160. _ACEOF
  6161.  
  6162. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6163. ac_cs_usage="\
  6164. \`$as_me' instantiates files and other configuration actions
  6165. from templates according to the current configuration.  Unless the files
  6166. and actions are specified as TAGs, all are instantiated by default.
  6167.  
  6168. Usage: $0 [OPTION]... [TAG]...
  6169.  
  6170.   -h, --help       print this help, then exit
  6171.   -V, --version    print version number and configuration settings, then exit
  6172.       --config     print configuration, then exit
  6173.   -q, --quiet, --silent
  6174.                    do not print progress messages
  6175.   -d, --debug      don't remove temporary files
  6176.       --recheck    update $as_me by reconfiguring in the same conditions
  6177.       --file=FILE[:TEMPLATE]
  6178.                    instantiate the configuration file FILE
  6179.  
  6180. Configuration files:
  6181. $config_files
  6182.  
  6183. Report bugs to the package provider."
  6184.  
  6185. _ACEOF
  6186. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6187. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  6188. ac_cs_version="\\
  6189. config.status
  6190. configured by $0, generated by GNU Autoconf 2.67,
  6191.   with options \\"\$ac_cs_config\\"
  6192.  
  6193. Copyright (C) 2010 Free Software Foundation, Inc.
  6194. This config.status script is free software; the Free Software Foundation
  6195. gives unlimited permission to copy, distribute and modify it."
  6196.  
  6197. ac_pwd='$ac_pwd'
  6198. srcdir='$srcdir'
  6199. test -n "\$AWK" || AWK=awk
  6200. _ACEOF
  6201.  
  6202. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6203. # The default lists apply if the user does not specify any file.
  6204. ac_need_defaults=:
  6205. while test $# != 0
  6206. do
  6207.   case $1 in
  6208.   --*=?*)
  6209.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6210.     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6211.     ac_shift=:
  6212.     ;;
  6213.   --*=)
  6214.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6215.     ac_optarg=
  6216.     ac_shift=:
  6217.     ;;
  6218.   *)
  6219.     ac_option=$1
  6220.     ac_optarg=$2
  6221.     ac_shift=shift
  6222.     ;;
  6223.   esac
  6224.  
  6225.   case $ac_option in
  6226.   # Handling of the options.
  6227.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6228.     ac_cs_recheck=: ;;
  6229.   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6230.     $as_echo "$ac_cs_version"; exit ;;
  6231.   --config | --confi | --conf | --con | --co | --c )
  6232.     $as_echo "$ac_cs_config"; exit ;;
  6233.   --debug | --debu | --deb | --de | --d | -d )
  6234.     debug=: ;;
  6235.   --file | --fil | --fi | --f )
  6236.     $ac_shift
  6237.     case $ac_optarg in
  6238.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6239.     '') as_fn_error $? "missing file argument" ;;
  6240.     esac
  6241.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  6242.     ac_need_defaults=false;;
  6243.   --he | --h |  --help | --hel | -h )
  6244.     $as_echo "$ac_cs_usage"; exit ;;
  6245.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6246.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6247.     ac_cs_silent=: ;;
  6248.  
  6249.   # This is an error.
  6250.   -*) as_fn_error $? "unrecognized option: \`$1'
  6251. Try \`$0 --help' for more information." ;;
  6252.  
  6253.   *) as_fn_append ac_config_targets " $1"
  6254.      ac_need_defaults=false ;;
  6255.  
  6256.   esac
  6257.   shift
  6258. done
  6259.  
  6260. ac_configure_extra_args=
  6261.  
  6262. if $ac_cs_silent; then
  6263.   exec 6>/dev/null
  6264.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  6265. fi
  6266.  
  6267. _ACEOF
  6268. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6269. if \$ac_cs_recheck; then
  6270.   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  6271.   shift
  6272.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  6273.   CONFIG_SHELL='$SHELL'
  6274.   export CONFIG_SHELL
  6275.   exec "\$@"
  6276. fi
  6277.  
  6278. _ACEOF
  6279. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6280. exec 5>>config.log
  6281. {
  6282.   echo
  6283.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  6284. ## Running $as_me. ##
  6285. _ASBOX
  6286.   $as_echo "$ac_log"
  6287. } >&5
  6288.  
  6289. _ACEOF
  6290. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6291. _ACEOF
  6292.  
  6293. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6294.  
  6295. # Handling of arguments.
  6296. for ac_config_target in $ac_config_targets
  6297. do
  6298.   case $ac_config_target in
  6299.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  6300.     "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  6301.     "3rdparty/mt19937ar/Makefile") CONFIG_FILES="$CONFIG_FILES 3rdparty/mt19937ar/Makefile" ;;
  6302.     "3rdparty/libconfig/Makefile") CONFIG_FILES="$CONFIG_FILES 3rdparty/libconfig/Makefile" ;;
  6303.     "src/char/Makefile") CONFIG_FILES="$CONFIG_FILES src/char/Makefile" ;;
  6304.     "src/login/Makefile") CONFIG_FILES="$CONFIG_FILES src/login/Makefile" ;;
  6305.     "src/map/Makefile") CONFIG_FILES="$CONFIG_FILES src/map/Makefile" ;;
  6306.     "src/tool/Makefile") CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  6307.  
  6308.   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  6309.   esac
  6310. done
  6311.  
  6312.  
  6313. # If the user did not use the arguments to specify the items to instantiate,
  6314. # then the envvar interface is used.  Set only those that are not.
  6315. # We use the long form for the default assignment because of an extremely
  6316. # bizarre bug on SunOS 4.1.3.
  6317. if $ac_need_defaults; then
  6318.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  6319. fi
  6320.  
  6321. # Have a temporary directory for convenience.  Make it in the build tree
  6322. # simply because there is no reason against having it here, and in addition,
  6323. # creating and moving files from /tmp can sometimes cause problems.
  6324. # Hook for its removal unless debugging.
  6325. # Note that there is a small window in which the directory will not be cleaned:
  6326. # after its creation but before its name has been assigned to `$tmp'.
  6327. $debug ||
  6328. {
  6329.   tmp=
  6330.   trap 'exit_status=$?
  6331.   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  6332. ' 0
  6333.   trap 'as_fn_exit 1' 1 2 13 15
  6334. }
  6335. # Create a (secure) tmp directory for tmp files.
  6336.  
  6337. {
  6338.   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6339.   test -n "$tmp" && test -d "$tmp"
  6340. }  ||
  6341. {
  6342.   tmp=./conf$$-$RANDOM
  6343.   (umask 077 && mkdir "$tmp")
  6344. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  6345.  
  6346. # Set up the scripts for CONFIG_FILES section.
  6347. # No need to generate them if there are no CONFIG_FILES.
  6348. # This happens for instance with `./config.status config.h'.
  6349. if test -n "$CONFIG_FILES"; then
  6350.  
  6351.  
  6352. ac_cr=`echo X | tr X '\015'`
  6353. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  6354. # But we know of no other shell where ac_cr would be empty at this
  6355. # point, so we can use a bashism as a fallback.
  6356. if test "x$ac_cr" = x; then
  6357.   eval ac_cr=\$\'\\r\'
  6358. fi
  6359. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  6360. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  6361.   ac_cs_awk_cr='\\r'
  6362. else
  6363.   ac_cs_awk_cr=$ac_cr
  6364. fi
  6365.  
  6366. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  6367. _ACEOF
  6368.  
  6369.  
  6370. {
  6371.   echo "cat >conf$$subs.awk <<_ACEOF" &&
  6372.   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  6373.   echo "_ACEOF"
  6374. } >conf$$subs.sh ||
  6375.   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6376. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  6377. ac_delim='%!_!# '
  6378. for ac_last_try in false false false false false :; do
  6379.   . ./conf$$subs.sh ||
  6380.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6381.  
  6382.   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  6383.   if test $ac_delim_n = $ac_delim_num; then
  6384.     break
  6385.   elif $ac_last_try; then
  6386.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6387.   else
  6388.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6389.   fi
  6390. done
  6391. rm -f conf$$subs.sh
  6392.  
  6393. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6394. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  6395. _ACEOF
  6396. sed -n '
  6397. h
  6398. s/^/S["/; s/!.*/"]=/
  6399. p
  6400. g
  6401. s/^[^!]*!//
  6402. :repl
  6403. t repl
  6404. s/'"$ac_delim"'$//
  6405. t delim
  6406. :nl
  6407. h
  6408. s/\(.\{148\}\)..*/\1/
  6409. t more1
  6410. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  6411. p
  6412. n
  6413. b repl
  6414. :more1
  6415. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6416. p
  6417. g
  6418. s/.\{148\}//
  6419. t nl
  6420. :delim
  6421. h
  6422. s/\(.\{148\}\)..*/\1/
  6423. t more2
  6424. s/["\\]/\\&/g; s/^/"/; s/$/"/
  6425. p
  6426. b
  6427. :more2
  6428. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6429. p
  6430. g
  6431. s/.\{148\}//
  6432. t delim
  6433. ' <conf$$subs.awk | sed '
  6434. /^[^""]/{
  6435.   N
  6436.   s/\n//
  6437. }
  6438. ' >>$CONFIG_STATUS || ac_write_fail=1
  6439. rm -f conf$$subs.awk
  6440. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6441. _ACAWK
  6442. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  6443.   for (key in S) S_is_set[key] = 1
  6444.   FS = ""
  6445.  
  6446. }
  6447. {
  6448.   line = $ 0
  6449.   nfields = split(line, field, "@")
  6450.   substed = 0
  6451.   len = length(field[1])
  6452.   for (i = 2; i < nfields; i++) {
  6453.     key = field[i]
  6454.     keylen = length(key)
  6455.     if (S_is_set[key]) {
  6456.       value = S[key]
  6457.       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  6458.       len += length(value) + length(field[++i])
  6459.       substed = 1
  6460.     } else
  6461.       len += 1 + keylen
  6462.   }
  6463.  
  6464.   print line
  6465. }
  6466.  
  6467. _ACAWK
  6468. _ACEOF
  6469. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6470. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  6471.   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  6472. else
  6473.   cat
  6474. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  6475.   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  6476. _ACEOF
  6477.  
  6478. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  6479. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  6480. # trailing colons and then remove the whole line if VPATH becomes empty
  6481. # (actually we leave an empty line to preserve line numbers).
  6482. if test "x$srcdir" = x.; then
  6483.   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
  6484. h
  6485. s///
  6486. s/^/:/
  6487. s/[	 ]*$/:/
  6488. s/:\$(srcdir):/:/g
  6489. s/:\${srcdir}:/:/g
  6490. s/:@srcdir@:/:/g
  6491. s/^:*//
  6492. s/:*$//
  6493. x
  6494. s/\(=[	 ]*\).*/\1/
  6495. G
  6496. s/\n//
  6497. s/^[^=]*=[	 ]*$//
  6498. }'
  6499. fi
  6500.  
  6501. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6502. fi # test -n "$CONFIG_FILES"
  6503.  
  6504.  
  6505. eval set X "  :F $CONFIG_FILES      "
  6506. shift
  6507. for ac_tag
  6508. do
  6509.   case $ac_tag in
  6510.   :[FHLC]) ac_mode=$ac_tag; continue;;
  6511.   esac
  6512.   case $ac_mode$ac_tag in
  6513.   :[FHL]*:*);;
  6514.   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  6515.   :[FH]-) ac_tag=-:-;;
  6516.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  6517.   esac
  6518.   ac_save_IFS=$IFS
  6519.   IFS=:
  6520.   set x $ac_tag
  6521.   IFS=$ac_save_IFS
  6522.   shift
  6523.   ac_file=$1
  6524.   shift
  6525.  
  6526.   case $ac_mode in
  6527.   :L) ac_source=$1;;
  6528.   :[FH])
  6529.     ac_file_inputs=
  6530.     for ac_f
  6531.     do
  6532.       case $ac_f in
  6533.       -) ac_f="$tmp/stdin";;
  6534.       *) # Look for the file first in the build tree, then in the source tree
  6535. 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
  6536. 	 # because $ac_f cannot contain `:'.
  6537. 	 test -f "$ac_f" ||
  6538. 	   case $ac_f in
  6539. 	   [\\/$]*) false;;
  6540. 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  6541. 	   esac ||
  6542. 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  6543.       esac
  6544.       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  6545.       as_fn_append ac_file_inputs " '$ac_f'"
  6546.     done
  6547.  
  6548.     # Let's still pretend it is `configure' which instantiates (i.e., don't
  6549.     # use $as_me), people would be surprised to read:
  6550.     #    /* config.h.  Generated by config.status.  */
  6551.     configure_input='Generated from '`
  6552. 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  6553. 	`' by configure.'
  6554.     if test x"$ac_file" != x-; then
  6555.       configure_input="$ac_file.  $configure_input"
  6556.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  6557. $as_echo "$as_me: creating $ac_file" >&6;}
  6558.     fi
  6559.     # Neutralize special characters interpreted by sed in replacement strings.
  6560.     case $configure_input in #(
  6561.     *\&* | *\|* | *\\* )
  6562.        ac_sed_conf_input=`$as_echo "$configure_input" |
  6563.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  6564.     *) ac_sed_conf_input=$configure_input;;
  6565.     esac
  6566.  
  6567.     case $ac_tag in
  6568.     *:-:* | *:-) cat >"$tmp/stdin" \
  6569.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
  6570.     esac
  6571.     ;;
  6572.   esac
  6573.  
  6574.   ac_dir=`$as_dirname -- "$ac_file" ||
  6575. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6576. 	 X"$ac_file" : 'X\(//\)[^/]' \| \
  6577. 	 X"$ac_file" : 'X\(//\)$' \| \
  6578. 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  6579. $as_echo X"$ac_file" |
  6580.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6581. 	    s//\1/
  6582. 	    q
  6583. 	  }
  6584. 	  /^X\(\/\/\)[^/].*/{
  6585. 	    s//\1/
  6586. 	    q
  6587. 	  }
  6588. 	  /^X\(\/\/\)$/{
  6589. 	    s//\1/
  6590. 	    q
  6591. 	  }
  6592. 	  /^X\(\/\).*/{
  6593. 	    s//\1/
  6594. 	    q
  6595. 	  }
  6596. 	  s/.*/./; q'`
  6597.   as_dir="$ac_dir"; as_fn_mkdir_p
  6598.   ac_builddir=.
  6599.  
  6600. case "$ac_dir" in
  6601. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6602. *)
  6603.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  6604.   # A ".." for each directory in $ac_dir_suffix.
  6605.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  6606.   case $ac_top_builddir_sub in
  6607.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6608.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  6609.   esac ;;
  6610. esac
  6611. ac_abs_top_builddir=$ac_pwd
  6612. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  6613. # for backward compatibility:
  6614. ac_top_builddir=$ac_top_build_prefix
  6615.  
  6616. case $srcdir in
  6617.   .)  # We are building in place.
  6618.     ac_srcdir=.
  6619.     ac_top_srcdir=$ac_top_builddir_sub
  6620.     ac_abs_top_srcdir=$ac_pwd ;;
  6621.   [\\/]* | ?:[\\/]* )  # Absolute name.
  6622.     ac_srcdir=$srcdir$ac_dir_suffix;
  6623.     ac_top_srcdir=$srcdir
  6624.     ac_abs_top_srcdir=$srcdir ;;
  6625.   *) # Relative name.
  6626.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  6627.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  6628.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  6629. esac
  6630. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  6631.  
  6632.  
  6633.   case $ac_mode in
  6634.   :F)
  6635.   #
  6636.   # CONFIG_FILE
  6637.   #
  6638.  
  6639. _ACEOF
  6640.  
  6641. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6642. # If the template does not know about datarootdir, expand it.
  6643. # FIXME: This hack should be removed a few years after 2.60.
  6644. ac_datarootdir_hack=; ac_datarootdir_seen=
  6645. ac_sed_dataroot='
  6646. /datarootdir/ {
  6647.   p
  6648.   q
  6649. }
  6650. /@datadir@/p
  6651. /@docdir@/p
  6652. /@infodir@/p
  6653. /@localedir@/p
  6654. /@mandir@/p'
  6655. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  6656. *datarootdir*) ac_datarootdir_seen=yes;;
  6657. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  6658.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  6659. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  6660. _ACEOF
  6661. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6662.   ac_datarootdir_hack='
  6663.   s&@datadir@&$datadir&g
  6664.   s&@docdir@&$docdir&g
  6665.   s&@infodir@&$infodir&g
  6666.   s&@localedir@&$localedir&g
  6667.   s&@mandir@&$mandir&g
  6668.   s&\\\${datarootdir}&$datarootdir&g' ;;
  6669. esac
  6670. _ACEOF
  6671.  
  6672. # Neutralize VPATH when `$srcdir' = `.'.
  6673. # Shell code in configure.ac might set extrasub.
  6674. # FIXME: do we really want to maintain this feature?
  6675. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6676. ac_sed_extra="$ac_vpsub
  6677. $extrasub
  6678. _ACEOF
  6679. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6680. :t
  6681. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  6682. s|@configure_input@|$ac_sed_conf_input|;t t
  6683. s&@top_builddir@&$ac_top_builddir_sub&;t t
  6684. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  6685. s&@srcdir@&$ac_srcdir&;t t
  6686. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  6687. s&@top_srcdir@&$ac_top_srcdir&;t t
  6688. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  6689. s&@builddir@&$ac_builddir&;t t
  6690. s&@abs_builddir@&$ac_abs_builddir&;t t
  6691. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  6692. $ac_datarootdir_hack
  6693. "
  6694. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  6695.   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6696.  
  6697. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  6698.   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  6699.   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  6700.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6701. which seems to be undefined.  Please make sure it is defined" >&5
  6702. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6703. which seems to be undefined.  Please make sure it is defined" >&2;}
  6704.  
  6705.   rm -f "$tmp/stdin"
  6706.   case $ac_file in
  6707.   -) cat "$tmp/out" && rm -f "$tmp/out";;
  6708.   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  6709.   esac \
  6710.   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6711.  ;;
  6712.  
  6713.  
  6714.  
  6715.   esac
  6716.  
  6717. done # for ac_tag
  6718.  
  6719.  
  6720. as_fn_exit 0
  6721. _ACEOF
  6722. ac_clean_files=$ac_clean_files_save
  6723.  
  6724. test $ac_write_fail = 0 ||
  6725.   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  6726.  
  6727.  
  6728. # configure is writing to config.log, and then calls config.status.
  6729. # config.status does its own redirection, appending to config.log.
  6730. # Unfortunately, on DOS this fails, as config.log is still kept open
  6731. # by configure, so config.status won't be able to write to it; its
  6732. # output is simply discarded.  So we exec the FD to /dev/null,
  6733. # effectively closing config.log, so it can be properly (re)opened and
  6734. # appended to by config.status.  When coming back to configure, we
  6735. # need to make the FD available again.
  6736. if test "$no_create" != yes; then
  6737.   ac_cs_success=:
  6738.   ac_config_status_args=
  6739.   test "$silent" = yes &&
  6740.     ac_config_status_args="$ac_config_status_args --quiet"
  6741.   exec 5>/dev/null
  6742.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  6743.   exec 5>>config.log
  6744.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  6745.   # would make configure fail if this is the last instruction.
  6746.   $ac_cs_success || as_fn_exit 1
  6747. fi
  6748. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  6749.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  6750. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  6751. fi
Viewed 1289 times, submitted by lighta.