Advertisement
Guest User

aa

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