Advertisement
Guest User

Untitled

a guest
Mar 11th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 489.55 KB | None | 0 0
  1. #! /bin/sh
  2. # From configure.in .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.61.
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13.  
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27.  
  28. fi
  29.  
  30.  
  31.  
  32.  
  33. # PATH needs CR
  34. # Avoid depending upon Character Ranges.
  35. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  36. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  37. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  38. as_cr_digits='0123456789'
  39. as_cr_alnum=$as_cr_Letters$as_cr_digits
  40.  
  41. # The user is always right.
  42. if test "${PATH_SEPARATOR+set}" != set; then
  43. echo "#! /bin/sh" >conf$$.sh
  44. echo "exit 0" >>conf$$.sh
  45. chmod +x conf$$.sh
  46. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  47. PATH_SEPARATOR=';'
  48. else
  49. PATH_SEPARATOR=:
  50. fi
  51. rm -f conf$$.sh
  52. fi
  53.  
  54. # Support unset when possible.
  55. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  56. as_unset=unset
  57. else
  58. as_unset=false
  59. fi
  60.  
  61.  
  62. # IFS
  63. # We need space, tab and new line, in precisely that order. Quoting is
  64. # there to prevent editors from complaining about space-tab.
  65. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  66. # splitting by setting IFS to empty value.)
  67. as_nl='
  68. '
  69. IFS=" "" $as_nl"
  70.  
  71. # Find who we are. Look in the path if we contain no directory separator.
  72. case $0 in
  73. *[\\/]* ) as_myself=$0 ;;
  74. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  75. for as_dir in $PATH
  76. do
  77. IFS=$as_save_IFS
  78. test -z "$as_dir" && as_dir=.
  79. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  80. done
  81. IFS=$as_save_IFS
  82.  
  83. ;;
  84. esac
  85. # We did not find ourselves, most probably we were run as `sh COMMAND'
  86. # in which case we are not to be found in the path.
  87. if test "x$as_myself" = x; then
  88. as_myself=$0
  89. fi
  90. if test ! -f "$as_myself"; then
  91. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  92. { (exit 1); exit 1; }
  93. fi
  94.  
  95. # Work around bugs in pre-3.0 UWIN ksh.
  96. for as_var in ENV MAIL MAILPATH
  97. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. done
  99. PS1='$ '
  100. PS2='> '
  101. PS4='+ '
  102.  
  103. # NLS nuisances.
  104. for as_var in \
  105. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  106. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  107. LC_TELEPHONE LC_TIME
  108. do
  109. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  110. eval $as_var=C; export $as_var
  111. else
  112. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  113. fi
  114. done
  115.  
  116. # Required to use basename.
  117. if expr a : '\(a\)' >/dev/null 2>&1 &&
  118. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  119. as_expr=expr
  120. else
  121. as_expr=false
  122. fi
  123.  
  124. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  125. as_basename=basename
  126. else
  127. as_basename=false
  128. fi
  129.  
  130.  
  131. # Name of the executable.
  132. as_me=`$as_basename -- "$0" ||
  133. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  134. X"$0" : 'X\(//\)$' \| \
  135. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  136. echo X/"$0" |
  137. sed '/^.*\/\([^/][^/]*\)\/*$/{
  138. s//\1/
  139. q
  140. }
  141. /^X\/\(\/\/\)$/{
  142. s//\1/
  143. q
  144. }
  145. /^X\/\(\/\).*/{
  146. s//\1/
  147. q
  148. }
  149. s/.*/./; q'`
  150.  
  151. # CDPATH.
  152. $as_unset CDPATH
  153.  
  154.  
  155. if test "x$CONFIG_SHELL" = x; then
  156. if (eval ":") 2>/dev/null; then
  157. as_have_required=yes
  158. else
  159. as_have_required=no
  160. fi
  161.  
  162. if test $as_have_required = yes && (eval ":
  163. (as_func_return () {
  164. (exit \$1)
  165. }
  166. as_func_success () {
  167. as_func_return 0
  168. }
  169. as_func_failure () {
  170. as_func_return 1
  171. }
  172. as_func_ret_success () {
  173. return 0
  174. }
  175. as_func_ret_failure () {
  176. return 1
  177. }
  178.  
  179. exitcode=0
  180. if as_func_success; then
  181. :
  182. else
  183. exitcode=1
  184. echo as_func_success failed.
  185. fi
  186.  
  187. if as_func_failure; then
  188. exitcode=1
  189. echo as_func_failure succeeded.
  190. fi
  191.  
  192. if as_func_ret_success; then
  193. :
  194. else
  195. exitcode=1
  196. echo as_func_ret_success failed.
  197. fi
  198.  
  199. if as_func_ret_failure; then
  200. exitcode=1
  201. echo as_func_ret_failure succeeded.
  202. fi
  203.  
  204. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  205. :
  206. else
  207. exitcode=1
  208. echo positional parameters were not saved.
  209. fi
  210.  
  211. test \$exitcode = 0) || { (exit 1); exit 1; }
  212.  
  213. (
  214. as_lineno_1=\$LINENO
  215. as_lineno_2=\$LINENO
  216. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  217. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  218. ") 2> /dev/null; then
  219. :
  220. else
  221. as_candidate_shells=
  222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  223. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  224. do
  225. IFS=$as_save_IFS
  226. test -z "$as_dir" && as_dir=.
  227. case $as_dir in
  228. /*)
  229. for as_base in sh bash ksh sh5; do
  230. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  231. done;;
  232. esac
  233. done
  234. IFS=$as_save_IFS
  235.  
  236.  
  237. for as_shell in $as_candidate_shells $SHELL; do
  238. # Try only shells that exist, to save several forks.
  239. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  240. { ("$as_shell") 2> /dev/null <<\_ASEOF
  241. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  242. emulate sh
  243. NULLCMD=:
  244. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  245. # is contrary to our usage. Disable this feature.
  246. alias -g '${1+"$@"}'='"$@"'
  247. setopt NO_GLOB_SUBST
  248. else
  249. case `(set -o) 2>/dev/null` in
  250. *posix*) set -o posix ;;
  251. esac
  252.  
  253. fi
  254.  
  255.  
  256. :
  257. _ASEOF
  258. }; then
  259. CONFIG_SHELL=$as_shell
  260. as_have_required=yes
  261. if { "$as_shell" 2> /dev/null <<\_ASEOF
  262. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  263. emulate sh
  264. NULLCMD=:
  265. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  266. # is contrary to our usage. Disable this feature.
  267. alias -g '${1+"$@"}'='"$@"'
  268. setopt NO_GLOB_SUBST
  269. else
  270. case `(set -o) 2>/dev/null` in
  271. *posix*) set -o posix ;;
  272. esac
  273.  
  274. fi
  275.  
  276.  
  277. :
  278. (as_func_return () {
  279. (exit $1)
  280. }
  281. as_func_success () {
  282. as_func_return 0
  283. }
  284. as_func_failure () {
  285. as_func_return 1
  286. }
  287. as_func_ret_success () {
  288. return 0
  289. }
  290. as_func_ret_failure () {
  291. return 1
  292. }
  293.  
  294. exitcode=0
  295. if as_func_success; then
  296. :
  297. else
  298. exitcode=1
  299. echo as_func_success failed.
  300. fi
  301.  
  302. if as_func_failure; then
  303. exitcode=1
  304. echo as_func_failure succeeded.
  305. fi
  306.  
  307. if as_func_ret_success; then
  308. :
  309. else
  310. exitcode=1
  311. echo as_func_ret_success failed.
  312. fi
  313.  
  314. if as_func_ret_failure; then
  315. exitcode=1
  316. echo as_func_ret_failure succeeded.
  317. fi
  318.  
  319. if ( set x; as_func_ret_success y && test x = "$1" ); then
  320. :
  321. else
  322. exitcode=1
  323. echo positional parameters were not saved.
  324. fi
  325.  
  326. test $exitcode = 0) || { (exit 1); exit 1; }
  327.  
  328. (
  329. as_lineno_1=$LINENO
  330. as_lineno_2=$LINENO
  331. test "x$as_lineno_1" != "x$as_lineno_2" &&
  332. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  333.  
  334. _ASEOF
  335. }; then
  336. break
  337. fi
  338.  
  339. fi
  340.  
  341. done
  342.  
  343. if test "x$CONFIG_SHELL" != x; then
  344. for as_var in BASH_ENV ENV
  345. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  346. done
  347. export CONFIG_SHELL
  348. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  349. fi
  350.  
  351.  
  352. if test $as_have_required = no; then
  353. echo This script requires a shell more modern than all the
  354. echo shells that I found on your system. Please install a
  355. echo modern shell, or manually run the script under such a
  356. echo shell if you do have one.
  357. { (exit 1); exit 1; }
  358. fi
  359.  
  360.  
  361. fi
  362.  
  363. fi
  364.  
  365.  
  366.  
  367. (eval "as_func_return () {
  368. (exit \$1)
  369. }
  370. as_func_success () {
  371. as_func_return 0
  372. }
  373. as_func_failure () {
  374. as_func_return 1
  375. }
  376. as_func_ret_success () {
  377. return 0
  378. }
  379. as_func_ret_failure () {
  380. return 1
  381. }
  382.  
  383. exitcode=0
  384. if as_func_success; then
  385. :
  386. else
  387. exitcode=1
  388. echo as_func_success failed.
  389. fi
  390.  
  391. if as_func_failure; then
  392. exitcode=1
  393. echo as_func_failure succeeded.
  394. fi
  395.  
  396. if as_func_ret_success; then
  397. :
  398. else
  399. exitcode=1
  400. echo as_func_ret_success failed.
  401. fi
  402.  
  403. if as_func_ret_failure; then
  404. exitcode=1
  405. echo as_func_ret_failure succeeded.
  406. fi
  407.  
  408. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  409. :
  410. else
  411. exitcode=1
  412. echo positional parameters were not saved.
  413. fi
  414.  
  415. test \$exitcode = 0") || {
  416. echo No shell found that supports shell functions.
  417. echo Please tell autoconf@gnu.org about your system,
  418. echo including any error possibly output before this
  419. echo message
  420. }
  421.  
  422.  
  423.  
  424. as_lineno_1=$LINENO
  425. as_lineno_2=$LINENO
  426. test "x$as_lineno_1" != "x$as_lineno_2" &&
  427. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  428.  
  429. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  430. # uniformly replaced by the line number. The first 'sed' inserts a
  431. # line-number line after each line using $LINENO; the second 'sed'
  432. # does the real work. The second script uses 'N' to pair each
  433. # line-number line with the line containing $LINENO, and appends
  434. # trailing '-' during substitution so that $LINENO is not a special
  435. # case at line end.
  436. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  437. # scripts with optimization help from Paolo Bonzini. Blame Lee
  438. # E. McMahon (1931-1989) for sed's syntax. :-)
  439. sed -n '
  440. p
  441. /[$]LINENO/=
  442. ' <$as_myself |
  443. sed '
  444. s/[$]LINENO.*/&-/
  445. t lineno
  446. b
  447. :lineno
  448. N
  449. :loop
  450. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  451. t loop
  452. s/-\n.*//
  453. ' >$as_me.lineno &&
  454. chmod +x "$as_me.lineno" ||
  455. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  456. { (exit 1); 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.  
  467. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  468. as_dirname=dirname
  469. else
  470. as_dirname=false
  471. fi
  472.  
  473. ECHO_C= ECHO_N= ECHO_T=
  474. case `echo -n x` in
  475. -n*)
  476. case `echo 'x\c'` in
  477. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  478. *) ECHO_C='\c';;
  479. esac;;
  480. *)
  481. ECHO_N='-n';;
  482. esac
  483.  
  484. if expr a : '\(a\)' >/dev/null 2>&1 &&
  485. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  486. as_expr=expr
  487. else
  488. as_expr=false
  489. fi
  490.  
  491. rm -f conf$$ conf$$.exe conf$$.file
  492. if test -d conf$$.dir; then
  493. rm -f conf$$.dir/conf$$.file
  494. else
  495. rm -f conf$$.dir
  496. mkdir conf$$.dir
  497. fi
  498. echo >conf$$.file
  499. if ln -s conf$$.file conf$$ 2>/dev/null; then
  500. as_ln_s='ln -s'
  501. # ... but there are two gotchas:
  502. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  503. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  504. # In both cases, we have to default to `cp -p'.
  505. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  506. as_ln_s='cp -p'
  507. elif ln conf$$.file conf$$ 2>/dev/null; then
  508. as_ln_s=ln
  509. else
  510. as_ln_s='cp -p'
  511. fi
  512. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  513. rmdir conf$$.dir 2>/dev/null
  514.  
  515. if mkdir -p . 2>/dev/null; then
  516. as_mkdir_p=:
  517. else
  518. test -d ./-p && rmdir ./-p
  519. as_mkdir_p=false
  520. fi
  521.  
  522. if test -x / >/dev/null 2>&1; then
  523. as_test_x='test -x'
  524. else
  525. if ls -dL / >/dev/null 2>&1; then
  526. as_ls_L_option=L
  527. else
  528. as_ls_L_option=
  529. fi
  530. as_test_x='
  531. eval sh -c '\''
  532. if test -d "$1"; then
  533. test -d "$1/.";
  534. else
  535. case $1 in
  536. -*)set "./$1";;
  537. esac;
  538. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  539. ???[sx]*):;;*)false;;esac;fi
  540. '\'' sh
  541. '
  542. fi
  543. as_executable_p=$as_test_x
  544.  
  545. # Sed expression to map a string onto a valid CPP name.
  546. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  547.  
  548. # Sed expression to map a string onto a valid variable name.
  549. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  550.  
  551.  
  552.  
  553. exec 7<&0 </dev/null 6>&1
  554.  
  555. # Name of the host.
  556. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  557. # so uname gets run too.
  558. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  559.  
  560. #
  561. # Initializations.
  562. #
  563. ac_default_prefix=/usr/local
  564. ac_clean_files=
  565. ac_config_libobj_dir=.
  566. LIBOBJS=
  567. cross_compiling=no
  568. subdirs=
  569. MFLAGS=
  570. MAKEFLAGS=
  571. SHELL=${CONFIG_SHELL-/bin/sh}
  572.  
  573. # Identity of this package.
  574. PACKAGE_NAME=
  575. PACKAGE_TARNAME=
  576. PACKAGE_VERSION=
  577. PACKAGE_STRING=
  578. PACKAGE_BUGREPORT=
  579.  
  580. ac_unique_file="thotlib/internals/h/constpiv.h"
  581. # Factoring default headers for most tests.
  582. ac_includes_default="\
  583. #include <stdio.h>
  584. #ifdef HAVE_SYS_TYPES_H
  585. # include <sys/types.h>
  586. #endif
  587. #ifdef HAVE_SYS_STAT_H
  588. # include <sys/stat.h>
  589. #endif
  590. #ifdef STDC_HEADERS
  591. # include <stdlib.h>
  592. # include <stddef.h>
  593. #else
  594. # ifdef HAVE_STDLIB_H
  595. # include <stdlib.h>
  596. # endif
  597. #endif
  598. #ifdef HAVE_STRING_H
  599. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  600. # include <memory.h>
  601. # endif
  602. # include <string.h>
  603. #endif
  604. #ifdef HAVE_STRINGS_H
  605. # include <strings.h>
  606. #endif
  607. #ifdef HAVE_INTTYPES_H
  608. # include <inttypes.h>
  609. #endif
  610. #ifdef HAVE_STDINT_H
  611. # include <stdint.h>
  612. #endif
  613. #ifdef HAVE_UNISTD_H
  614. # include <unistd.h>
  615. #endif"
  616.  
  617. ac_subst_vars='SHELL
  618. PATH_SEPARATOR
  619. PACKAGE_NAME
  620. PACKAGE_TARNAME
  621. PACKAGE_VERSION
  622. PACKAGE_STRING
  623. PACKAGE_BUGREPORT
  624. exec_prefix
  625. prefix
  626. program_transform_name
  627. bindir
  628. sbindir
  629. libexecdir
  630. datarootdir
  631. datadir
  632. sysconfdir
  633. sharedstatedir
  634. localstatedir
  635. includedir
  636. oldincludedir
  637. docdir
  638. infodir
  639. htmldir
  640. dvidir
  641. pdfdir
  642. psdir
  643. libdir
  644. localedir
  645. mandir
  646. DEFS
  647. ECHO_C
  648. ECHO_N
  649. ECHO_T
  650. LIBS
  651. build_alias
  652. host_alias
  653. target_alias
  654. build
  655. build_cpu
  656. build_vendor
  657. build_os
  658. host
  659. host_cpu
  660. host_vendor
  661. host_os
  662. target
  663. target_cpu
  664. target_vendor
  665. target_os
  666. SET_MAKE
  667. YACC
  668. YFLAGS
  669. CC
  670. CFLAGS
  671. LDFLAGS
  672. CPPFLAGS
  673. ac_ct_CC
  674. EXEEXT
  675. OBJEXT
  676. CPP
  677. CXX
  678. CXXFLAGS
  679. ac_ct_CXX
  680. LEX
  681. LEX_OUTPUT_ROOT
  682. LEXLIB
  683. AWK
  684. INSTALL_PROGRAM
  685. INSTALL_SCRIPT
  686. INSTALL_DATA
  687. LN_S
  688. RANLIB
  689. CP
  690. MV
  691. RM
  692. MKDIR
  693. ECHO
  694. CAT
  695. CHMOD
  696. SED
  697. AR
  698. DIFF
  699. GREP
  700. EGREP
  701. ALLOCA
  702. LIBOBJS
  703. AMAYAOS
  704. AMAYAGUI
  705. GL_BUILDDIR
  706. GL_INCLUDES
  707. GL_LIBRARIES
  708. WXCONFIG
  709. WX_SRCDIR
  710. WX_BUILDDIR
  711. BUILDWXWIDGETS
  712. WX_INCLUDES
  713. WX_LIBRARIES
  714. WX_LINKDEPS
  715. FREETYPE_INCLUDES
  716. FREETYPE_LIBRARIES
  717. LIBWWW_CONFIG
  718. BUILDLIBWWW
  719. LIBWWW_CFLAGS
  720. LIBWWW_LDFLAGS
  721. DAVDIR
  722. LIBDAV
  723. WWWDAV
  724. RAPTOR_CONFIG
  725. BUILDRAPTOR
  726. AMAYA_ANNOT_OPTIONS
  727. AMAYA_ANNOT_INCLUDES
  728. AMAYA_ANNOT_EXTRA_LIBS
  729. ANNOTLIB_COMPILE_BM
  730. AMAYA_RAPTOR_LIBS
  731. AMAYA_RAPTOR_INCLUDES
  732. AMAYA_INSTALLDIR
  733. APP_MAJVER
  734. APP_MINVER
  735. APP_SUBVER
  736. APP_VER
  737. CEXTRACT_VER
  738. CEXTRACT_FLAGS
  739. THOTINCLUDES
  740. APIINCLUDES
  741. VPATHOPT
  742. THOT_OPTIONS
  743. AMAYA_OPTIONS
  744. IMGLIBS
  745. EXTRA_INCLUDES
  746. MAKE_LIBWWW_RDF_PARSER
  747. LIBWWW_RDF_PARSER
  748. SUBDIRS
  749. EXTRA_MAKEFILE_IN
  750. LTLIBOBJS'
  751. ac_subst_files='www_frag
  752. math_frag
  753. svg_frag
  754. annot_frag
  755. dav_frag
  756. templates_frag'
  757. ac_precious_vars='build_alias
  758. host_alias
  759. target_alias
  760. YACC
  761. YFLAGS
  762. CC
  763. CFLAGS
  764. LDFLAGS
  765. LIBS
  766. CPPFLAGS
  767. CPP
  768. CXX
  769. CXXFLAGS
  770. CCC'
  771.  
  772.  
  773. # Initialize some variables set by options.
  774. ac_init_help=
  775. ac_init_version=false
  776. # The variables have the same names as the options, with
  777. # dashes changed to underlines.
  778. cache_file=/dev/null
  779. exec_prefix=NONE
  780. no_create=
  781. no_recursion=
  782. prefix=NONE
  783. program_prefix=NONE
  784. program_suffix=NONE
  785. program_transform_name=s,x,x,
  786. silent=
  787. site=
  788. srcdir=
  789. verbose=
  790. x_includes=NONE
  791. x_libraries=NONE
  792.  
  793. # Installation directory options.
  794. # These are left unexpanded so users can "make install exec_prefix=/foo"
  795. # and all the variables that are supposed to be based on exec_prefix
  796. # by default will actually change.
  797. # Use braces instead of parens because sh, perl, etc. also accept them.
  798. # (The list follows the same order as the GNU Coding Standards.)
  799. bindir='${exec_prefix}/bin'
  800. sbindir='${exec_prefix}/sbin'
  801. libexecdir='${exec_prefix}/libexec'
  802. datarootdir='${prefix}/share'
  803. datadir='${datarootdir}'
  804. sysconfdir='${prefix}/etc'
  805. sharedstatedir='${prefix}/com'
  806. localstatedir='${prefix}/var'
  807. includedir='${prefix}/include'
  808. oldincludedir='/usr/include'
  809. docdir='${datarootdir}/doc/${PACKAGE}'
  810. infodir='${datarootdir}/info'
  811. htmldir='${docdir}'
  812. dvidir='${docdir}'
  813. pdfdir='${docdir}'
  814. psdir='${docdir}'
  815. libdir='${exec_prefix}/lib'
  816. localedir='${datarootdir}/locale'
  817. mandir='${datarootdir}/man'
  818.  
  819. ac_prev=
  820. ac_dashdash=
  821. for ac_option
  822. do
  823. # If the previous option needs an argument, assign it.
  824. if test -n "$ac_prev"; then
  825. eval $ac_prev=\$ac_option
  826. ac_prev=
  827. continue
  828. fi
  829.  
  830. case $ac_option in
  831. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  832. *) ac_optarg=yes ;;
  833. esac
  834.  
  835. # Accept the important Cygnus configure options, so we can diagnose typos.
  836.  
  837. case $ac_dashdash$ac_option in
  838. --)
  839. ac_dashdash=yes ;;
  840.  
  841. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  842. ac_prev=bindir ;;
  843. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  844. bindir=$ac_optarg ;;
  845.  
  846. -build | --build | --buil | --bui | --bu)
  847. ac_prev=build_alias ;;
  848. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  849. build_alias=$ac_optarg ;;
  850.  
  851. -cache-file | --cache-file | --cache-fil | --cache-fi \
  852. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  853. ac_prev=cache_file ;;
  854. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  855. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  856. cache_file=$ac_optarg ;;
  857.  
  858. --config-cache | -C)
  859. cache_file=config.cache ;;
  860.  
  861. -datadir | --datadir | --datadi | --datad)
  862. ac_prev=datadir ;;
  863. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  864. datadir=$ac_optarg ;;
  865.  
  866. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  867. | --dataroo | --dataro | --datar)
  868. ac_prev=datarootdir ;;
  869. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  870. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  871. datarootdir=$ac_optarg ;;
  872.  
  873. -disable-* | --disable-*)
  874. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  875. # Reject names that are not valid shell variable names.
  876. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  877. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  878. { (exit 1); exit 1; }; }
  879. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  880. eval enable_$ac_feature=no ;;
  881.  
  882. -docdir | --docdir | --docdi | --doc | --do)
  883. ac_prev=docdir ;;
  884. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  885. docdir=$ac_optarg ;;
  886.  
  887. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  888. ac_prev=dvidir ;;
  889. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  890. dvidir=$ac_optarg ;;
  891.  
  892. -enable-* | --enable-*)
  893. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  894. # Reject names that are not valid shell variable names.
  895. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  896. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  897. { (exit 1); exit 1; }; }
  898. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  899. eval enable_$ac_feature=\$ac_optarg ;;
  900.  
  901. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  902. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  903. | --exec | --exe | --ex)
  904. ac_prev=exec_prefix ;;
  905. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  906. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  907. | --exec=* | --exe=* | --ex=*)
  908. exec_prefix=$ac_optarg ;;
  909.  
  910. -gas | --gas | --ga | --g)
  911. # Obsolete; use --with-gas.
  912. with_gas=yes ;;
  913.  
  914. -help | --help | --hel | --he | -h)
  915. ac_init_help=long ;;
  916. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  917. ac_init_help=recursive ;;
  918. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  919. ac_init_help=short ;;
  920.  
  921. -host | --host | --hos | --ho)
  922. ac_prev=host_alias ;;
  923. -host=* | --host=* | --hos=* | --ho=*)
  924. host_alias=$ac_optarg ;;
  925.  
  926. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  927. ac_prev=htmldir ;;
  928. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  929. | --ht=*)
  930. htmldir=$ac_optarg ;;
  931.  
  932. -includedir | --includedir | --includedi | --included | --include \
  933. | --includ | --inclu | --incl | --inc)
  934. ac_prev=includedir ;;
  935. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  936. | --includ=* | --inclu=* | --incl=* | --inc=*)
  937. includedir=$ac_optarg ;;
  938.  
  939. -infodir | --infodir | --infodi | --infod | --info | --inf)
  940. ac_prev=infodir ;;
  941. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  942. infodir=$ac_optarg ;;
  943.  
  944. -libdir | --libdir | --libdi | --libd)
  945. ac_prev=libdir ;;
  946. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  947. libdir=$ac_optarg ;;
  948.  
  949. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  950. | --libexe | --libex | --libe)
  951. ac_prev=libexecdir ;;
  952. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  953. | --libexe=* | --libex=* | --libe=*)
  954. libexecdir=$ac_optarg ;;
  955.  
  956. -localedir | --localedir | --localedi | --localed | --locale)
  957. ac_prev=localedir ;;
  958. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  959. localedir=$ac_optarg ;;
  960.  
  961. -localstatedir | --localstatedir | --localstatedi | --localstated \
  962. | --localstate | --localstat | --localsta | --localst | --locals)
  963. ac_prev=localstatedir ;;
  964. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  965. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  966. localstatedir=$ac_optarg ;;
  967.  
  968. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  969. ac_prev=mandir ;;
  970. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  971. mandir=$ac_optarg ;;
  972.  
  973. -nfp | --nfp | --nf)
  974. # Obsolete; use --without-fp.
  975. with_fp=no ;;
  976.  
  977. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  978. | --no-cr | --no-c | -n)
  979. no_create=yes ;;
  980.  
  981. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  982. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  983. no_recursion=yes ;;
  984.  
  985. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  986. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  987. | --oldin | --oldi | --old | --ol | --o)
  988. ac_prev=oldincludedir ;;
  989. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  990. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  991. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  992. oldincludedir=$ac_optarg ;;
  993.  
  994. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  995. ac_prev=prefix ;;
  996. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  997. prefix=$ac_optarg ;;
  998.  
  999. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1000. | --program-pre | --program-pr | --program-p)
  1001. ac_prev=program_prefix ;;
  1002. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1003. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1004. program_prefix=$ac_optarg ;;
  1005.  
  1006. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1007. | --program-suf | --program-su | --program-s)
  1008. ac_prev=program_suffix ;;
  1009. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1010. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1011. program_suffix=$ac_optarg ;;
  1012.  
  1013. -program-transform-name | --program-transform-name \
  1014. | --program-transform-nam | --program-transform-na \
  1015. | --program-transform-n | --program-transform- \
  1016. | --program-transform | --program-transfor \
  1017. | --program-transfo | --program-transf \
  1018. | --program-trans | --program-tran \
  1019. | --progr-tra | --program-tr | --program-t)
  1020. ac_prev=program_transform_name ;;
  1021. -program-transform-name=* | --program-transform-name=* \
  1022. | --program-transform-nam=* | --program-transform-na=* \
  1023. | --program-transform-n=* | --program-transform-=* \
  1024. | --program-transform=* | --program-transfor=* \
  1025. | --program-transfo=* | --program-transf=* \
  1026. | --program-trans=* | --program-tran=* \
  1027. | --progr-tra=* | --program-tr=* | --program-t=*)
  1028. program_transform_name=$ac_optarg ;;
  1029.  
  1030. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1031. ac_prev=pdfdir ;;
  1032. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1033. pdfdir=$ac_optarg ;;
  1034.  
  1035. -psdir | --psdir | --psdi | --psd | --ps)
  1036. ac_prev=psdir ;;
  1037. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1038. psdir=$ac_optarg ;;
  1039.  
  1040. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1041. | -silent | --silent | --silen | --sile | --sil)
  1042. silent=yes ;;
  1043.  
  1044. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1045. ac_prev=sbindir ;;
  1046. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1047. | --sbi=* | --sb=*)
  1048. sbindir=$ac_optarg ;;
  1049.  
  1050. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1051. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1052. | --sharedst | --shareds | --shared | --share | --shar \
  1053. | --sha | --sh)
  1054. ac_prev=sharedstatedir ;;
  1055. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1056. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1057. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1058. | --sha=* | --sh=*)
  1059. sharedstatedir=$ac_optarg ;;
  1060.  
  1061. -site | --site | --sit)
  1062. ac_prev=site ;;
  1063. -site=* | --site=* | --sit=*)
  1064. site=$ac_optarg ;;
  1065.  
  1066. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1067. ac_prev=srcdir ;;
  1068. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1069. srcdir=$ac_optarg ;;
  1070.  
  1071. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1072. | --syscon | --sysco | --sysc | --sys | --sy)
  1073. ac_prev=sysconfdir ;;
  1074. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1075. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1076. sysconfdir=$ac_optarg ;;
  1077.  
  1078. -target | --target | --targe | --targ | --tar | --ta | --t)
  1079. ac_prev=target_alias ;;
  1080. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1081. target_alias=$ac_optarg ;;
  1082.  
  1083. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1084. verbose=yes ;;
  1085.  
  1086. -version | --version | --versio | --versi | --vers | -V)
  1087. ac_init_version=: ;;
  1088.  
  1089. -with-* | --with-*)
  1090. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1091. # Reject names that are not valid shell variable names.
  1092. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1093. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1094. { (exit 1); exit 1; }; }
  1095. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1096. eval with_$ac_package=\$ac_optarg ;;
  1097.  
  1098. -without-* | --without-*)
  1099. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1100. # Reject names that are not valid shell variable names.
  1101. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1102. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1103. { (exit 1); exit 1; }; }
  1104. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1105. eval with_$ac_package=no ;;
  1106.  
  1107. --x)
  1108. # Obsolete; use --with-x.
  1109. with_x=yes ;;
  1110.  
  1111. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1112. | --x-incl | --x-inc | --x-in | --x-i)
  1113. ac_prev=x_includes ;;
  1114. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1115. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1116. x_includes=$ac_optarg ;;
  1117.  
  1118. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1119. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1120. ac_prev=x_libraries ;;
  1121. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1122. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1123. x_libraries=$ac_optarg ;;
  1124.  
  1125. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1126. Try \`$0 --help' for more information." >&2
  1127. { (exit 1); exit 1; }; }
  1128. ;;
  1129.  
  1130. *=*)
  1131. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1132. # Reject names that are not valid shell variable names.
  1133. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1134. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1135. { (exit 1); exit 1; }; }
  1136. eval $ac_envvar=\$ac_optarg
  1137. export $ac_envvar ;;
  1138.  
  1139. *)
  1140. # FIXME: should be removed in autoconf 3.0.
  1141. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1142. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1143. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1144. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1145. ;;
  1146.  
  1147. esac
  1148. done
  1149.  
  1150. if test -n "$ac_prev"; then
  1151. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1152. { echo "$as_me: error: missing argument to $ac_option" >&2
  1153. { (exit 1); exit 1; }; }
  1154. fi
  1155.  
  1156. # Be sure to have absolute directory names.
  1157. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1158. datadir sysconfdir sharedstatedir localstatedir includedir \
  1159. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1160. libdir localedir mandir
  1161. do
  1162. eval ac_val=\$$ac_var
  1163. case $ac_val in
  1164. [\\/$]* | ?:[\\/]* ) continue;;
  1165. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1166. esac
  1167. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1168. { (exit 1); exit 1; }; }
  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. 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. { echo "$as_me: error: Working directory cannot be determined" >&2
  1199. { (exit 1); exit 1; }; }
  1200. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1201. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1202. { (exit 1); exit 1; }; }
  1203.  
  1204.  
  1205. # Find the source files, if location was not specified.
  1206. if test -z "$srcdir"; then
  1207. ac_srcdir_defaulted=yes
  1208. # Try the directory containing this script, then the parent directory.
  1209. ac_confdir=`$as_dirname -- "$0" ||
  1210. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1211. X"$0" : 'X\(//\)[^/]' \| \
  1212. X"$0" : 'X\(//\)$' \| \
  1213. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1214. echo X"$0" |
  1215. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1216. s//\1/
  1217. q
  1218. }
  1219. /^X\(\/\/\)[^/].*/{
  1220. s//\1/
  1221. q
  1222. }
  1223. /^X\(\/\/\)$/{
  1224. s//\1/
  1225. q
  1226. }
  1227. /^X\(\/\).*/{
  1228. s//\1/
  1229. q
  1230. }
  1231. s/.*/./; q'`
  1232. srcdir=$ac_confdir
  1233. if test ! -r "$srcdir/$ac_unique_file"; then
  1234. srcdir=..
  1235. fi
  1236. else
  1237. ac_srcdir_defaulted=no
  1238. fi
  1239. if test ! -r "$srcdir/$ac_unique_file"; then
  1240. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1241. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1242. { (exit 1); exit 1; }; }
  1243. fi
  1244. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1245. ac_abs_confdir=`(
  1246. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1247. { (exit 1); exit 1; }; }
  1248. pwd)`
  1249. # When building in place, set srcdir=.
  1250. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1251. srcdir=.
  1252. fi
  1253. # Remove unnecessary trailing slashes from srcdir.
  1254. # Double slashes in file names in object file debugging info
  1255. # mess up M-x gdb in Emacs.
  1256. case $srcdir in
  1257. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1258. esac
  1259. for ac_var in $ac_precious_vars; do
  1260. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1261. eval ac_env_${ac_var}_value=\$${ac_var}
  1262. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1263. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1264. done
  1265.  
  1266. #
  1267. # Report the --help message.
  1268. #
  1269. if test "$ac_init_help" = "long"; then
  1270. # Omit some internal or obsolete options to make the list less imposing.
  1271. # This message is too long to be a string in the A/UX 3.1 sh.
  1272. cat <<_ACEOF
  1273. \`configure' configures this package to adapt to many kinds of systems.
  1274.  
  1275. Usage: $0 [OPTION]... [VAR=VALUE]...
  1276.  
  1277. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1278. VAR=VALUE. See below for descriptions of some of the useful variables.
  1279.  
  1280. Defaults for the options are specified in brackets.
  1281.  
  1282. Configuration:
  1283. -h, --help display this help and exit
  1284. --help=short display options specific to this package
  1285. --help=recursive display the short help of all the included packages
  1286. -V, --version display version information and exit
  1287. -q, --quiet, --silent do not print \`checking...' messages
  1288. --cache-file=FILE cache test results in FILE [disabled]
  1289. -C, --config-cache alias for \`--cache-file=config.cache'
  1290. -n, --no-create do not create output files
  1291. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1292.  
  1293. Installation directories:
  1294. --prefix=PREFIX install architecture-independent files in PREFIX
  1295. [$ac_default_prefix]
  1296. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1297. [PREFIX]
  1298.  
  1299. By default, \`make install' will install all the files in
  1300. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1301. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1302. for instance \`--prefix=\$HOME'.
  1303.  
  1304. For better control, use the options below.
  1305.  
  1306. Fine tuning of the installation directories:
  1307. --bindir=DIR user executables [EPREFIX/bin]
  1308. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1309. --libexecdir=DIR program executables [EPREFIX/libexec]
  1310. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1311. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1312. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1313. --libdir=DIR object code libraries [EPREFIX/lib]
  1314. --includedir=DIR C header files [PREFIX/include]
  1315. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1316. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1317. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1318. --infodir=DIR info documentation [DATAROOTDIR/info]
  1319. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1320. --mandir=DIR man documentation [DATAROOTDIR/man]
  1321. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1322. --htmldir=DIR html documentation [DOCDIR]
  1323. --dvidir=DIR dvi documentation [DOCDIR]
  1324. --pdfdir=DIR pdf documentation [DOCDIR]
  1325. --psdir=DIR ps documentation [DOCDIR]
  1326. _ACEOF
  1327.  
  1328. cat <<\_ACEOF
  1329.  
  1330. Program names:
  1331. --program-prefix=PREFIX prepend PREFIX to installed program names
  1332. --program-suffix=SUFFIX append SUFFIX to installed program names
  1333. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1334.  
  1335. System types:
  1336. --build=BUILD configure for building on BUILD [guessed]
  1337. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1338. --target=TARGET configure for building compilers for TARGET [HOST]
  1339. _ACEOF
  1340. fi
  1341.  
  1342. if test -n "$ac_init_help"; then
  1343.  
  1344. cat <<\_ACEOF
  1345.  
  1346. Optional Features:
  1347. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1348. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1349. --enable-system-wx try the wxWidgets system library
  1350. --disable-svg disable SVG support
  1351. --enable-system-libwww try the libWWW system library
  1352. --disable-annot disable Annotations support
  1353. --enable-system-raptor try the raptor RDF system library
  1354. --disable-templates disable experimental templates support
  1355. --disable-generic-xml disable Generic XML support
  1356.  
  1357. Optional Packages:
  1358. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1359. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1360. --with-gl enable canvas with hardware OpenGL implementation
  1361. --with-mesa enable canvas with software OpenGL implementation (default)
  1362. --with-wxdebug compiles wxWidgets with debuging options
  1363. --with-wxsrcdir=... compiles Amaya with a specific wxWidgets sources path
  1364. --with-debug compiles Amaya with debuging options (-g)
  1365. --with-dav enable WebDAV support (default)
  1366.  
  1367. Some influential environment variables:
  1368. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1369. the first program found out of: `bison -y', `byacc', `yacc'.
  1370. YFLAGS The list of arguments that will be passed by default to $YACC.
  1371. This script will default YFLAGS to the empty string to avoid a
  1372. default value of `-d' given by some make applications.
  1373. CC C compiler command
  1374. CFLAGS C compiler flags
  1375. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1376. nonstandard directory <lib dir>
  1377. LIBS libraries to pass to the linker, e.g. -l<library>
  1378. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1379. you have headers in a nonstandard directory <include dir>
  1380. CPP C preprocessor
  1381. CXX C++ compiler command
  1382. CXXFLAGS C++ compiler flags
  1383.  
  1384. Use these variables to override the choices made by `configure' or to help
  1385. it to find libraries and programs with nonstandard names/locations.
  1386.  
  1387. _ACEOF
  1388. ac_status=$?
  1389. fi
  1390.  
  1391. if test "$ac_init_help" = "recursive"; then
  1392. # If there are subdirs, report their specific --help.
  1393. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1394. test -d "$ac_dir" || continue
  1395. ac_builddir=.
  1396.  
  1397. case "$ac_dir" in
  1398. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1399. *)
  1400. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1401. # A ".." for each directory in $ac_dir_suffix.
  1402. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1403. case $ac_top_builddir_sub in
  1404. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1405. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1406. esac ;;
  1407. esac
  1408. ac_abs_top_builddir=$ac_pwd
  1409. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1410. # for backward compatibility:
  1411. ac_top_builddir=$ac_top_build_prefix
  1412.  
  1413. case $srcdir in
  1414. .) # We are building in place.
  1415. ac_srcdir=.
  1416. ac_top_srcdir=$ac_top_builddir_sub
  1417. ac_abs_top_srcdir=$ac_pwd ;;
  1418. [\\/]* | ?:[\\/]* ) # Absolute name.
  1419. ac_srcdir=$srcdir$ac_dir_suffix;
  1420. ac_top_srcdir=$srcdir
  1421. ac_abs_top_srcdir=$srcdir ;;
  1422. *) # Relative name.
  1423. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1424. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1425. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1426. esac
  1427. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1428.  
  1429. cd "$ac_dir" || { ac_status=$?; continue; }
  1430. # Check for guested configure.
  1431. if test -f "$ac_srcdir/configure.gnu"; then
  1432. echo &&
  1433. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1434. elif test -f "$ac_srcdir/configure"; then
  1435. echo &&
  1436. $SHELL "$ac_srcdir/configure" --help=recursive
  1437. else
  1438. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1439. fi || ac_status=$?
  1440. cd "$ac_pwd" || { ac_status=$?; break; }
  1441. done
  1442. fi
  1443.  
  1444. test -n "$ac_init_help" && exit $ac_status
  1445. if $ac_init_version; then
  1446. cat <<\_ACEOF
  1447. configure
  1448. generated by GNU Autoconf 2.61
  1449.  
  1450. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1451. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1452. This configure script is free software; the Free Software Foundation
  1453. gives unlimited permission to copy, distribute and modify it.
  1454. _ACEOF
  1455. exit
  1456. fi
  1457. cat >config.log <<_ACEOF
  1458. This file contains any messages produced by compilers while
  1459. running configure, to aid debugging if configure makes a mistake.
  1460.  
  1461. It was created by $as_me, which was
  1462. generated by GNU Autoconf 2.61. Invocation command line was
  1463.  
  1464. $ $0 $@
  1465.  
  1466. _ACEOF
  1467. exec 5>>config.log
  1468. {
  1469. cat <<_ASUNAME
  1470. ## --------- ##
  1471. ## Platform. ##
  1472. ## --------- ##
  1473.  
  1474. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1475. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1476. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1477. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1478. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1479.  
  1480. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1481. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1482.  
  1483. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1484. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1485. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1486. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1487. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1488. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1489. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1490.  
  1491. _ASUNAME
  1492.  
  1493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1494. for as_dir in $PATH
  1495. do
  1496. IFS=$as_save_IFS
  1497. test -z "$as_dir" && as_dir=.
  1498. echo "PATH: $as_dir"
  1499. done
  1500. IFS=$as_save_IFS
  1501.  
  1502. } >&5
  1503.  
  1504. cat >&5 <<_ACEOF
  1505.  
  1506.  
  1507. ## ----------- ##
  1508. ## Core tests. ##
  1509. ## ----------- ##
  1510.  
  1511. _ACEOF
  1512.  
  1513.  
  1514. # Keep a trace of the command line.
  1515. # Strip out --no-create and --no-recursion so they do not pile up.
  1516. # Strip out --silent because we don't want to record it for future runs.
  1517. # Also quote any args containing shell meta-characters.
  1518. # Make two passes to allow for proper duplicate-argument suppression.
  1519. ac_configure_args=
  1520. ac_configure_args0=
  1521. ac_configure_args1=
  1522. ac_must_keep_next=false
  1523. for ac_pass in 1 2
  1524. do
  1525. for ac_arg
  1526. do
  1527. case $ac_arg in
  1528. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1529. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1530. | -silent | --silent | --silen | --sile | --sil)
  1531. continue ;;
  1532. *\'*)
  1533. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1534. esac
  1535. case $ac_pass in
  1536. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1537. 2)
  1538. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1539. if test $ac_must_keep_next = true; then
  1540. ac_must_keep_next=false # Got value, back to normal.
  1541. else
  1542. case $ac_arg in
  1543. *=* | --config-cache | -C | -disable-* | --disable-* \
  1544. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1545. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1546. | -with-* | --with-* | -without-* | --without-* | --x)
  1547. case "$ac_configure_args0 " in
  1548. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1549. esac
  1550. ;;
  1551. -* ) ac_must_keep_next=true ;;
  1552. esac
  1553. fi
  1554. ac_configure_args="$ac_configure_args '$ac_arg'"
  1555. ;;
  1556. esac
  1557. done
  1558. done
  1559. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1560. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1561.  
  1562. # When interrupted or exit'd, cleanup temporary files, and complete
  1563. # config.log. We remove comments because anyway the quotes in there
  1564. # would cause problems or look ugly.
  1565. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1566. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1567. trap 'exit_status=$?
  1568. # Save into config.log some information that might help in debugging.
  1569. {
  1570. echo
  1571.  
  1572. cat <<\_ASBOX
  1573. ## ---------------- ##
  1574. ## Cache variables. ##
  1575. ## ---------------- ##
  1576. _ASBOX
  1577. echo
  1578. # The following way of writing the cache mishandles newlines in values,
  1579. (
  1580. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1581. eval ac_val=\$$ac_var
  1582. case $ac_val in #(
  1583. *${as_nl}*)
  1584. case $ac_var in #(
  1585. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1586. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1587. esac
  1588. case $ac_var in #(
  1589. _ | IFS | as_nl) ;; #(
  1590. *) $as_unset $ac_var ;;
  1591. esac ;;
  1592. esac
  1593. done
  1594. (set) 2>&1 |
  1595. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1596. *${as_nl}ac_space=\ *)
  1597. sed -n \
  1598. "s/'\''/'\''\\\\'\'''\''/g;
  1599. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1600. ;; #(
  1601. *)
  1602. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1603. ;;
  1604. esac |
  1605. sort
  1606. )
  1607. echo
  1608.  
  1609. cat <<\_ASBOX
  1610. ## ----------------- ##
  1611. ## Output variables. ##
  1612. ## ----------------- ##
  1613. _ASBOX
  1614. echo
  1615. for ac_var in $ac_subst_vars
  1616. do
  1617. eval ac_val=\$$ac_var
  1618. case $ac_val in
  1619. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1620. esac
  1621. echo "$ac_var='\''$ac_val'\''"
  1622. done | sort
  1623. echo
  1624.  
  1625. if test -n "$ac_subst_files"; then
  1626. cat <<\_ASBOX
  1627. ## ------------------- ##
  1628. ## File substitutions. ##
  1629. ## ------------------- ##
  1630. _ASBOX
  1631. echo
  1632. for ac_var in $ac_subst_files
  1633. do
  1634. eval ac_val=\$$ac_var
  1635. case $ac_val in
  1636. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1637. esac
  1638. echo "$ac_var='\''$ac_val'\''"
  1639. done | sort
  1640. echo
  1641. fi
  1642.  
  1643. if test -s confdefs.h; then
  1644. cat <<\_ASBOX
  1645. ## ----------- ##
  1646. ## confdefs.h. ##
  1647. ## ----------- ##
  1648. _ASBOX
  1649. echo
  1650. cat confdefs.h
  1651. echo
  1652. fi
  1653. test "$ac_signal" != 0 &&
  1654. echo "$as_me: caught signal $ac_signal"
  1655. echo "$as_me: exit $exit_status"
  1656. } >&5
  1657. rm -f core *.core core.conftest.* &&
  1658. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1659. exit $exit_status
  1660. ' 0
  1661. for ac_signal in 1 2 13 15; do
  1662. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1663. done
  1664. ac_signal=0
  1665.  
  1666. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1667. rm -f -r conftest* confdefs.h
  1668.  
  1669. # Predefined preprocessor variables.
  1670.  
  1671. cat >>confdefs.h <<_ACEOF
  1672. #define PACKAGE_NAME "$PACKAGE_NAME"
  1673. _ACEOF
  1674.  
  1675.  
  1676. cat >>confdefs.h <<_ACEOF
  1677. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1678. _ACEOF
  1679.  
  1680.  
  1681. cat >>confdefs.h <<_ACEOF
  1682. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1683. _ACEOF
  1684.  
  1685.  
  1686. cat >>confdefs.h <<_ACEOF
  1687. #define PACKAGE_STRING "$PACKAGE_STRING"
  1688. _ACEOF
  1689.  
  1690.  
  1691. cat >>confdefs.h <<_ACEOF
  1692. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1693. _ACEOF
  1694.  
  1695.  
  1696. # Let the site file select an alternate cache file if it wants to.
  1697. # Prefer explicitly selected file to automatically selected ones.
  1698. if test -n "$CONFIG_SITE"; then
  1699. set x "$CONFIG_SITE"
  1700. elif test "x$prefix" != xNONE; then
  1701. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1702. else
  1703. set x "$ac_default_prefix/share/config.site" \
  1704. "$ac_default_prefix/etc/config.site"
  1705. fi
  1706. shift
  1707. for ac_site_file
  1708. do
  1709. if test -r "$ac_site_file"; then
  1710. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1711. echo "$as_me: loading site script $ac_site_file" >&6;}
  1712. sed 's/^/| /' "$ac_site_file" >&5
  1713. . "$ac_site_file"
  1714. fi
  1715. done
  1716.  
  1717. if test -r "$cache_file"; then
  1718. # Some versions of bash will fail to source /dev/null (special
  1719. # files actually), so we avoid doing that.
  1720. if test -f "$cache_file"; then
  1721. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1722. echo "$as_me: loading cache $cache_file" >&6;}
  1723. case $cache_file in
  1724. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1725. *) . "./$cache_file";;
  1726. esac
  1727. fi
  1728. else
  1729. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1730. echo "$as_me: creating cache $cache_file" >&6;}
  1731. >$cache_file
  1732. fi
  1733.  
  1734. # Check that the precious variables saved in the cache have kept the same
  1735. # value.
  1736. ac_cache_corrupted=false
  1737. for ac_var in $ac_precious_vars; do
  1738. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1739. eval ac_new_set=\$ac_env_${ac_var}_set
  1740. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1741. eval ac_new_val=\$ac_env_${ac_var}_value
  1742. case $ac_old_set,$ac_new_set in
  1743. set,)
  1744. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1745. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1746. ac_cache_corrupted=: ;;
  1747. ,set)
  1748. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1749. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1750. ac_cache_corrupted=: ;;
  1751. ,);;
  1752. *)
  1753. if test "x$ac_old_val" != "x$ac_new_val"; then
  1754. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1755. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1756. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1757. echo "$as_me: former value: $ac_old_val" >&2;}
  1758. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1759. echo "$as_me: current value: $ac_new_val" >&2;}
  1760. ac_cache_corrupted=:
  1761. fi;;
  1762. esac
  1763. # Pass precious variables to config.status.
  1764. if test "$ac_new_set" = set; then
  1765. case $ac_new_val in
  1766. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1767. *) ac_arg=$ac_var=$ac_new_val ;;
  1768. esac
  1769. case " $ac_configure_args " in
  1770. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1771. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1772. esac
  1773. fi
  1774. done
  1775. if $ac_cache_corrupted; then
  1776. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1777. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1778. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1779. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1780. { (exit 1); exit 1; }; }
  1781. fi
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799. ac_ext=c
  1800. ac_cpp='$CPP $CPPFLAGS'
  1801. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1802. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1803. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1804.  
  1805.  
  1806.  
  1807.  
  1808. if test -d batch -a -f configure.in ; then
  1809. echo
  1810. echo "****************************************************************"
  1811. echo ERROR: You must invoke the configure script in a subidrectory
  1812. echo under the Amaya tree.
  1813. echo For example:
  1814. echo " cd Amaya ; mkdir obj ; cd obj ; ../configure your options "
  1815. echo "****************************************************************"
  1816. echo
  1817. exit 1
  1818. fi
  1819.  
  1820.  
  1821. ac_aux_dir=
  1822. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1823. if test -f "$ac_dir/install-sh"; then
  1824. ac_aux_dir=$ac_dir
  1825. ac_install_sh="$ac_aux_dir/install-sh -c"
  1826. break
  1827. elif test -f "$ac_dir/install.sh"; then
  1828. ac_aux_dir=$ac_dir
  1829. ac_install_sh="$ac_aux_dir/install.sh -c"
  1830. break
  1831. elif test -f "$ac_dir/shtool"; then
  1832. ac_aux_dir=$ac_dir
  1833. ac_install_sh="$ac_aux_dir/shtool install -c"
  1834. break
  1835. fi
  1836. done
  1837. if test -z "$ac_aux_dir"; then
  1838. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1839. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1840. { (exit 1); exit 1; }; }
  1841. fi
  1842.  
  1843. # These three variables are undocumented and unsupported,
  1844. # and are intended to be withdrawn in a future Autoconf release.
  1845. # They can cause serious problems if a builder's source tree is in a directory
  1846. # whose full name contains unusual characters.
  1847. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1848. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1849. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1850.  
  1851.  
  1852. # Make sure we can run config.sub.
  1853. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1854. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1855. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1856. { (exit 1); exit 1; }; }
  1857.  
  1858. { echo "$as_me:$LINENO: checking build system type" >&5
  1859. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1860. if test "${ac_cv_build+set}" = set; then
  1861. echo $ECHO_N "(cached) $ECHO_C" >&6
  1862. else
  1863. ac_build_alias=$build_alias
  1864. test "x$ac_build_alias" = x &&
  1865. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1866. test "x$ac_build_alias" = x &&
  1867. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1868. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1869. { (exit 1); exit 1; }; }
  1870. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1871. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1872. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1873. { (exit 1); exit 1; }; }
  1874.  
  1875. fi
  1876. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1877. echo "${ECHO_T}$ac_cv_build" >&6; }
  1878. case $ac_cv_build in
  1879. *-*-*) ;;
  1880. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1881. echo "$as_me: error: invalid value of canonical build" >&2;}
  1882. { (exit 1); exit 1; }; };;
  1883. esac
  1884. build=$ac_cv_build
  1885. ac_save_IFS=$IFS; IFS='-'
  1886. set x $ac_cv_build
  1887. shift
  1888. build_cpu=$1
  1889. build_vendor=$2
  1890. shift; shift
  1891. # Remember, the first character of IFS is used to create $*,
  1892. # except with old shells:
  1893. build_os=$*
  1894. IFS=$ac_save_IFS
  1895. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1896.  
  1897.  
  1898. { echo "$as_me:$LINENO: checking host system type" >&5
  1899. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1900. if test "${ac_cv_host+set}" = set; then
  1901. echo $ECHO_N "(cached) $ECHO_C" >&6
  1902. else
  1903. if test "x$host_alias" = x; then
  1904. ac_cv_host=$ac_cv_build
  1905. else
  1906. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1907. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1908. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1909. { (exit 1); exit 1; }; }
  1910. fi
  1911.  
  1912. fi
  1913. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1914. echo "${ECHO_T}$ac_cv_host" >&6; }
  1915. case $ac_cv_host in
  1916. *-*-*) ;;
  1917. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1918. echo "$as_me: error: invalid value of canonical host" >&2;}
  1919. { (exit 1); exit 1; }; };;
  1920. esac
  1921. host=$ac_cv_host
  1922. ac_save_IFS=$IFS; IFS='-'
  1923. set x $ac_cv_host
  1924. shift
  1925. host_cpu=$1
  1926. host_vendor=$2
  1927. shift; shift
  1928. # Remember, the first character of IFS is used to create $*,
  1929. # except with old shells:
  1930. host_os=$*
  1931. IFS=$ac_save_IFS
  1932. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1933.  
  1934.  
  1935. { echo "$as_me:$LINENO: checking target system type" >&5
  1936. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1937. if test "${ac_cv_target+set}" = set; then
  1938. echo $ECHO_N "(cached) $ECHO_C" >&6
  1939. else
  1940. if test "x$target_alias" = x; then
  1941. ac_cv_target=$ac_cv_host
  1942. else
  1943. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1944. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1945. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1946. { (exit 1); exit 1; }; }
  1947. fi
  1948.  
  1949. fi
  1950. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1951. echo "${ECHO_T}$ac_cv_target" >&6; }
  1952. case $ac_cv_target in
  1953. *-*-*) ;;
  1954. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1955. echo "$as_me: error: invalid value of canonical target" >&2;}
  1956. { (exit 1); exit 1; }; };;
  1957. esac
  1958. target=$ac_cv_target
  1959. ac_save_IFS=$IFS; IFS='-'
  1960. set x $ac_cv_target
  1961. shift
  1962. target_cpu=$1
  1963. target_vendor=$2
  1964. shift; shift
  1965. # Remember, the first character of IFS is used to create $*,
  1966. # except with old shells:
  1967. target_os=$*
  1968. IFS=$ac_save_IFS
  1969. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1970.  
  1971.  
  1972. # The aliases save the names the user supplied, while $host etc.
  1973. # will get canonicalized.
  1974. test -n "$target_alias" &&
  1975. test "$program_prefix$program_suffix$program_transform_name" = \
  1976. NONENONEs,x,x, &&
  1977. program_prefix=${target_alias}-
  1978. ac_config_headers="$ac_config_headers config.h"
  1979.  
  1980.  
  1981.  
  1982. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1983. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1984. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1985. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1986. echo $ECHO_N "(cached) $ECHO_C" >&6
  1987. else
  1988. cat >conftest.make <<\_ACEOF
  1989. SHELL = /bin/sh
  1990. all:
  1991. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1992. _ACEOF
  1993. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1994. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1995. *@@@%%%=?*=@@@%%%*)
  1996. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1997. *)
  1998. eval ac_cv_prog_make_${ac_make}_set=no;;
  1999. esac
  2000. rm -f conftest.make
  2001. fi
  2002. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2003. { echo "$as_me:$LINENO: result: yes" >&5
  2004. echo "${ECHO_T}yes" >&6; }
  2005. SET_MAKE=
  2006. else
  2007. { echo "$as_me:$LINENO: result: no" >&5
  2008. echo "${ECHO_T}no" >&6; }
  2009. SET_MAKE="MAKE=${MAKE-make}"
  2010. fi
  2011.  
  2012. test "$program_prefix" != NONE &&
  2013. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2014. # Use a double $ so make ignores it.
  2015. test "$program_suffix" != NONE &&
  2016. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2017. # Double any \ or $. echo might interpret backslashes.
  2018. # By default was `s,x,x', remove it if useless.
  2019. cat <<\_ACEOF >conftest.sed
  2020. s/[\\$]/&&/g;s/;s,x,x,$//
  2021. _ACEOF
  2022. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2023. rm -f conftest.sed
  2024.  
  2025.  
  2026.  
  2027. for ac_prog in 'bison -y' byacc
  2028. do
  2029. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2030. set dummy $ac_prog; ac_word=$2
  2031. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2032. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2033. if test "${ac_cv_prog_YACC+set}" = set; then
  2034. echo $ECHO_N "(cached) $ECHO_C" >&6
  2035. else
  2036. if test -n "$YACC"; then
  2037. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  2038. else
  2039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2040. for as_dir in $PATH
  2041. do
  2042. IFS=$as_save_IFS
  2043. test -z "$as_dir" && as_dir=.
  2044. for ac_exec_ext in '' $ac_executable_extensions; do
  2045. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2046. ac_cv_prog_YACC="$ac_prog"
  2047. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2048. break 2
  2049. fi
  2050. done
  2051. done
  2052. IFS=$as_save_IFS
  2053.  
  2054. fi
  2055. fi
  2056. YACC=$ac_cv_prog_YACC
  2057. if test -n "$YACC"; then
  2058. { echo "$as_me:$LINENO: result: $YACC" >&5
  2059. echo "${ECHO_T}$YACC" >&6; }
  2060. else
  2061. { echo "$as_me:$LINENO: result: no" >&5
  2062. echo "${ECHO_T}no" >&6; }
  2063. fi
  2064.  
  2065.  
  2066. test -n "$YACC" && break
  2067. done
  2068. test -n "$YACC" || YACC="yacc"
  2069.  
  2070. ac_ext=c
  2071. ac_cpp='$CPP $CPPFLAGS'
  2072. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2073. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2074. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2075. if test -n "$ac_tool_prefix"; then
  2076. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2077. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2078. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2079. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2080. if test "${ac_cv_prog_CC+set}" = set; then
  2081. echo $ECHO_N "(cached) $ECHO_C" >&6
  2082. else
  2083. if test -n "$CC"; then
  2084. ac_cv_prog_CC="$CC" # Let the user override the test.
  2085. else
  2086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2087. for as_dir in $PATH
  2088. do
  2089. IFS=$as_save_IFS
  2090. test -z "$as_dir" && as_dir=.
  2091. for ac_exec_ext in '' $ac_executable_extensions; do
  2092. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2093. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2094. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2095. break 2
  2096. fi
  2097. done
  2098. done
  2099. IFS=$as_save_IFS
  2100.  
  2101. fi
  2102. fi
  2103. CC=$ac_cv_prog_CC
  2104. if test -n "$CC"; then
  2105. { echo "$as_me:$LINENO: result: $CC" >&5
  2106. echo "${ECHO_T}$CC" >&6; }
  2107. else
  2108. { echo "$as_me:$LINENO: result: no" >&5
  2109. echo "${ECHO_T}no" >&6; }
  2110. fi
  2111.  
  2112.  
  2113. fi
  2114. if test -z "$ac_cv_prog_CC"; then
  2115. ac_ct_CC=$CC
  2116. # Extract the first word of "gcc", so it can be a program name with args.
  2117. set dummy gcc; ac_word=$2
  2118. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2119. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2120. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2121. echo $ECHO_N "(cached) $ECHO_C" >&6
  2122. else
  2123. if test -n "$ac_ct_CC"; then
  2124. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2125. else
  2126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2127. for as_dir in $PATH
  2128. do
  2129. IFS=$as_save_IFS
  2130. test -z "$as_dir" && as_dir=.
  2131. for ac_exec_ext in '' $ac_executable_extensions; do
  2132. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2133. ac_cv_prog_ac_ct_CC="gcc"
  2134. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2135. break 2
  2136. fi
  2137. done
  2138. done
  2139. IFS=$as_save_IFS
  2140.  
  2141. fi
  2142. fi
  2143. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2144. if test -n "$ac_ct_CC"; then
  2145. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2146. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2147. else
  2148. { echo "$as_me:$LINENO: result: no" >&5
  2149. echo "${ECHO_T}no" >&6; }
  2150. fi
  2151.  
  2152. if test "x$ac_ct_CC" = x; then
  2153. CC=""
  2154. else
  2155. case $cross_compiling:$ac_tool_warned in
  2156. yes:)
  2157. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2158. whose name does not start with the host triplet. If you think this
  2159. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2160. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2161. whose name does not start with the host triplet. If you think this
  2162. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2163. ac_tool_warned=yes ;;
  2164. esac
  2165. CC=$ac_ct_CC
  2166. fi
  2167. else
  2168. CC="$ac_cv_prog_CC"
  2169. fi
  2170.  
  2171. if test -z "$CC"; then
  2172. if test -n "$ac_tool_prefix"; then
  2173. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2174. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2175. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2176. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2177. if test "${ac_cv_prog_CC+set}" = set; then
  2178. echo $ECHO_N "(cached) $ECHO_C" >&6
  2179. else
  2180. if test -n "$CC"; then
  2181. ac_cv_prog_CC="$CC" # Let the user override the test.
  2182. else
  2183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2184. for as_dir in $PATH
  2185. do
  2186. IFS=$as_save_IFS
  2187. test -z "$as_dir" && as_dir=.
  2188. for ac_exec_ext in '' $ac_executable_extensions; do
  2189. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2190. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2191. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2192. break 2
  2193. fi
  2194. done
  2195. done
  2196. IFS=$as_save_IFS
  2197.  
  2198. fi
  2199. fi
  2200. CC=$ac_cv_prog_CC
  2201. if test -n "$CC"; then
  2202. { echo "$as_me:$LINENO: result: $CC" >&5
  2203. echo "${ECHO_T}$CC" >&6; }
  2204. else
  2205. { echo "$as_me:$LINENO: result: no" >&5
  2206. echo "${ECHO_T}no" >&6; }
  2207. fi
  2208.  
  2209.  
  2210. fi
  2211. fi
  2212. if test -z "$CC"; then
  2213. # Extract the first word of "cc", so it can be a program name with args.
  2214. set dummy cc; ac_word=$2
  2215. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2216. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2217. if test "${ac_cv_prog_CC+set}" = set; then
  2218. echo $ECHO_N "(cached) $ECHO_C" >&6
  2219. else
  2220. if test -n "$CC"; then
  2221. ac_cv_prog_CC="$CC" # Let the user override the test.
  2222. else
  2223. ac_prog_rejected=no
  2224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2225. for as_dir in $PATH
  2226. do
  2227. IFS=$as_save_IFS
  2228. test -z "$as_dir" && as_dir=.
  2229. for ac_exec_ext in '' $ac_executable_extensions; do
  2230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2231. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2232. ac_prog_rejected=yes
  2233. continue
  2234. fi
  2235. ac_cv_prog_CC="cc"
  2236. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2237. break 2
  2238. fi
  2239. done
  2240. done
  2241. IFS=$as_save_IFS
  2242.  
  2243. if test $ac_prog_rejected = yes; then
  2244. # We found a bogon in the path, so make sure we never use it.
  2245. set dummy $ac_cv_prog_CC
  2246. shift
  2247. if test $# != 0; then
  2248. # We chose a different compiler from the bogus one.
  2249. # However, it has the same basename, so the bogon will be chosen
  2250. # first if we set CC to just the basename; use the full file name.
  2251. shift
  2252. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2253. fi
  2254. fi
  2255. fi
  2256. fi
  2257. CC=$ac_cv_prog_CC
  2258. if test -n "$CC"; then
  2259. { echo "$as_me:$LINENO: result: $CC" >&5
  2260. echo "${ECHO_T}$CC" >&6; }
  2261. else
  2262. { echo "$as_me:$LINENO: result: no" >&5
  2263. echo "${ECHO_T}no" >&6; }
  2264. fi
  2265.  
  2266.  
  2267. fi
  2268. if test -z "$CC"; then
  2269. if test -n "$ac_tool_prefix"; then
  2270. for ac_prog in cl.exe
  2271. do
  2272. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2273. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2274. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2275. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2276. if test "${ac_cv_prog_CC+set}" = set; then
  2277. echo $ECHO_N "(cached) $ECHO_C" >&6
  2278. else
  2279. if test -n "$CC"; then
  2280. ac_cv_prog_CC="$CC" # Let the user override the test.
  2281. else
  2282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2283. for as_dir in $PATH
  2284. do
  2285. IFS=$as_save_IFS
  2286. test -z "$as_dir" && as_dir=.
  2287. for ac_exec_ext in '' $ac_executable_extensions; do
  2288. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2289. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2290. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2291. break 2
  2292. fi
  2293. done
  2294. done
  2295. IFS=$as_save_IFS
  2296.  
  2297. fi
  2298. fi
  2299. CC=$ac_cv_prog_CC
  2300. if test -n "$CC"; then
  2301. { echo "$as_me:$LINENO: result: $CC" >&5
  2302. echo "${ECHO_T}$CC" >&6; }
  2303. else
  2304. { echo "$as_me:$LINENO: result: no" >&5
  2305. echo "${ECHO_T}no" >&6; }
  2306. fi
  2307.  
  2308.  
  2309. test -n "$CC" && break
  2310. done
  2311. fi
  2312. if test -z "$CC"; then
  2313. ac_ct_CC=$CC
  2314. for ac_prog in cl.exe
  2315. do
  2316. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2317. set dummy $ac_prog; ac_word=$2
  2318. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2319. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2320. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2321. echo $ECHO_N "(cached) $ECHO_C" >&6
  2322. else
  2323. if test -n "$ac_ct_CC"; then
  2324. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2325. else
  2326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2327. for as_dir in $PATH
  2328. do
  2329. IFS=$as_save_IFS
  2330. test -z "$as_dir" && as_dir=.
  2331. for ac_exec_ext in '' $ac_executable_extensions; do
  2332. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2333. ac_cv_prog_ac_ct_CC="$ac_prog"
  2334. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2335. break 2
  2336. fi
  2337. done
  2338. done
  2339. IFS=$as_save_IFS
  2340.  
  2341. fi
  2342. fi
  2343. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2344. if test -n "$ac_ct_CC"; then
  2345. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2346. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2347. else
  2348. { echo "$as_me:$LINENO: result: no" >&5
  2349. echo "${ECHO_T}no" >&6; }
  2350. fi
  2351.  
  2352.  
  2353. test -n "$ac_ct_CC" && break
  2354. done
  2355.  
  2356. if test "x$ac_ct_CC" = x; then
  2357. CC=""
  2358. else
  2359. case $cross_compiling:$ac_tool_warned in
  2360. yes:)
  2361. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2362. whose name does not start with the host triplet. If you think this
  2363. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2364. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2365. whose name does not start with the host triplet. If you think this
  2366. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2367. ac_tool_warned=yes ;;
  2368. esac
  2369. CC=$ac_ct_CC
  2370. fi
  2371. fi
  2372.  
  2373. fi
  2374.  
  2375.  
  2376. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2377. See \`config.log' for more details." >&5
  2378. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2379. See \`config.log' for more details." >&2;}
  2380. { (exit 1); exit 1; }; }
  2381.  
  2382. # Provide some information about the compiler.
  2383. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2384. ac_compiler=`set X $ac_compile; echo $2`
  2385. { (ac_try="$ac_compiler --version >&5"
  2386. case "(($ac_try" in
  2387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2388. *) ac_try_echo=$ac_try;;
  2389. esac
  2390. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2391. (eval "$ac_compiler --version >&5") 2>&5
  2392. ac_status=$?
  2393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2394. (exit $ac_status); }
  2395. { (ac_try="$ac_compiler -v >&5"
  2396. case "(($ac_try" in
  2397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2398. *) ac_try_echo=$ac_try;;
  2399. esac
  2400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2401. (eval "$ac_compiler -v >&5") 2>&5
  2402. ac_status=$?
  2403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2404. (exit $ac_status); }
  2405. { (ac_try="$ac_compiler -V >&5"
  2406. case "(($ac_try" in
  2407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2408. *) ac_try_echo=$ac_try;;
  2409. esac
  2410. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2411. (eval "$ac_compiler -V >&5") 2>&5
  2412. ac_status=$?
  2413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2414. (exit $ac_status); }
  2415.  
  2416. cat >conftest.$ac_ext <<_ACEOF
  2417. /* confdefs.h. */
  2418. _ACEOF
  2419. cat confdefs.h >>conftest.$ac_ext
  2420. cat >>conftest.$ac_ext <<_ACEOF
  2421. /* end confdefs.h. */
  2422.  
  2423. int
  2424. main ()
  2425. {
  2426.  
  2427. ;
  2428. return 0;
  2429. }
  2430. _ACEOF
  2431. ac_clean_files_save=$ac_clean_files
  2432. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2433. # Try to create an executable without -o first, disregard a.out.
  2434. # It will help us diagnose broken compilers, and finding out an intuition
  2435. # of exeext.
  2436. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2437. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2438. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2439. #
  2440. # List of possible output files, starting from the most likely.
  2441. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2442. # only as a last resort. b.out is created by i960 compilers.
  2443. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2444. #
  2445. # The IRIX 6 linker writes into existing files which may not be
  2446. # executable, retaining their permissions. Remove them first so a
  2447. # subsequent execution test works.
  2448. ac_rmfiles=
  2449. for ac_file in $ac_files
  2450. do
  2451. case $ac_file in
  2452. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2453. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2454. esac
  2455. done
  2456. rm -f $ac_rmfiles
  2457.  
  2458. if { (ac_try="$ac_link_default"
  2459. case "(($ac_try" in
  2460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2461. *) ac_try_echo=$ac_try;;
  2462. esac
  2463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2464. (eval "$ac_link_default") 2>&5
  2465. ac_status=$?
  2466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2467. (exit $ac_status); }; then
  2468. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2469. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2470. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2471. # so that the user can short-circuit this test for compilers unknown to
  2472. # Autoconf.
  2473. for ac_file in $ac_files ''
  2474. do
  2475. test -f "$ac_file" || continue
  2476. case $ac_file in
  2477. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2478. ;;
  2479. [ab].out )
  2480. # We found the default executable, but exeext='' is most
  2481. # certainly right.
  2482. break;;
  2483. *.* )
  2484. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2485. then :; else
  2486. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2487. fi
  2488. # We set ac_cv_exeext here because the later test for it is not
  2489. # safe: cross compilers may not add the suffix if given an `-o'
  2490. # argument, so we may need to know it at that point already.
  2491. # Even if this section looks crufty: it has the advantage of
  2492. # actually working.
  2493. break;;
  2494. * )
  2495. break;;
  2496. esac
  2497. done
  2498. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2499.  
  2500. else
  2501. ac_file=''
  2502. fi
  2503.  
  2504. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2505. echo "${ECHO_T}$ac_file" >&6; }
  2506. if test -z "$ac_file"; then
  2507. echo "$as_me: failed program was:" >&5
  2508. sed 's/^/| /' conftest.$ac_ext >&5
  2509.  
  2510. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2511. See \`config.log' for more details." >&5
  2512. echo "$as_me: error: C compiler cannot create executables
  2513. See \`config.log' for more details." >&2;}
  2514. { (exit 77); exit 77; }; }
  2515. fi
  2516.  
  2517. ac_exeext=$ac_cv_exeext
  2518.  
  2519. # Check that the compiler produces executables we can run. If not, either
  2520. # the compiler is broken, or we cross compile.
  2521. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2522. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2523. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2524. # If not cross compiling, check that we can run a simple program.
  2525. if test "$cross_compiling" != yes; then
  2526. if { ac_try='./$ac_file'
  2527. { (case "(($ac_try" in
  2528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2529. *) ac_try_echo=$ac_try;;
  2530. esac
  2531. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2532. (eval "$ac_try") 2>&5
  2533. ac_status=$?
  2534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2535. (exit $ac_status); }; }; then
  2536. cross_compiling=no
  2537. else
  2538. if test "$cross_compiling" = maybe; then
  2539. cross_compiling=yes
  2540. else
  2541. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2542. If you meant to cross compile, use \`--host'.
  2543. See \`config.log' for more details." >&5
  2544. echo "$as_me: error: cannot run C compiled programs.
  2545. If you meant to cross compile, use \`--host'.
  2546. See \`config.log' for more details." >&2;}
  2547. { (exit 1); exit 1; }; }
  2548. fi
  2549. fi
  2550. fi
  2551. { echo "$as_me:$LINENO: result: yes" >&5
  2552. echo "${ECHO_T}yes" >&6; }
  2553.  
  2554. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2555. ac_clean_files=$ac_clean_files_save
  2556. # Check that the compiler produces executables we can run. If not, either
  2557. # the compiler is broken, or we cross compile.
  2558. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2559. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2560. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2561. echo "${ECHO_T}$cross_compiling" >&6; }
  2562.  
  2563. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2564. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2565. if { (ac_try="$ac_link"
  2566. case "(($ac_try" in
  2567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2568. *) ac_try_echo=$ac_try;;
  2569. esac
  2570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2571. (eval "$ac_link") 2>&5
  2572. ac_status=$?
  2573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2574. (exit $ac_status); }; then
  2575. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2576. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2577. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2578. # `rm'.
  2579. for ac_file in conftest.exe conftest conftest.*; do
  2580. test -f "$ac_file" || continue
  2581. case $ac_file in
  2582. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2583. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2584. break;;
  2585. * ) break;;
  2586. esac
  2587. done
  2588. else
  2589. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2590. See \`config.log' for more details." >&5
  2591. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2592. See \`config.log' for more details." >&2;}
  2593. { (exit 1); exit 1; }; }
  2594. fi
  2595.  
  2596. rm -f conftest$ac_cv_exeext
  2597. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2598. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2599.  
  2600. rm -f conftest.$ac_ext
  2601. EXEEXT=$ac_cv_exeext
  2602. ac_exeext=$EXEEXT
  2603. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2604. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2605. if test "${ac_cv_objext+set}" = set; then
  2606. echo $ECHO_N "(cached) $ECHO_C" >&6
  2607. else
  2608. cat >conftest.$ac_ext <<_ACEOF
  2609. /* confdefs.h. */
  2610. _ACEOF
  2611. cat confdefs.h >>conftest.$ac_ext
  2612. cat >>conftest.$ac_ext <<_ACEOF
  2613. /* end confdefs.h. */
  2614.  
  2615. int
  2616. main ()
  2617. {
  2618.  
  2619. ;
  2620. return 0;
  2621. }
  2622. _ACEOF
  2623. rm -f conftest.o conftest.obj
  2624. if { (ac_try="$ac_compile"
  2625. case "(($ac_try" in
  2626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2627. *) ac_try_echo=$ac_try;;
  2628. esac
  2629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2630. (eval "$ac_compile") 2>&5
  2631. ac_status=$?
  2632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2633. (exit $ac_status); }; then
  2634. for ac_file in conftest.o conftest.obj conftest.*; do
  2635. test -f "$ac_file" || continue;
  2636. case $ac_file in
  2637. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2638. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2639. break;;
  2640. esac
  2641. done
  2642. else
  2643. echo "$as_me: failed program was:" >&5
  2644. sed 's/^/| /' conftest.$ac_ext >&5
  2645.  
  2646. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2647. See \`config.log' for more details." >&5
  2648. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2649. See \`config.log' for more details." >&2;}
  2650. { (exit 1); exit 1; }; }
  2651. fi
  2652.  
  2653. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2654. fi
  2655. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2656. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2657. OBJEXT=$ac_cv_objext
  2658. ac_objext=$OBJEXT
  2659. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2660. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2661. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2662. echo $ECHO_N "(cached) $ECHO_C" >&6
  2663. else
  2664. cat >conftest.$ac_ext <<_ACEOF
  2665. /* confdefs.h. */
  2666. _ACEOF
  2667. cat confdefs.h >>conftest.$ac_ext
  2668. cat >>conftest.$ac_ext <<_ACEOF
  2669. /* end confdefs.h. */
  2670.  
  2671. int
  2672. main ()
  2673. {
  2674. #ifndef __GNUC__
  2675. choke me
  2676. #endif
  2677.  
  2678. ;
  2679. return 0;
  2680. }
  2681. _ACEOF
  2682. rm -f conftest.$ac_objext
  2683. if { (ac_try="$ac_compile"
  2684. case "(($ac_try" in
  2685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2686. *) ac_try_echo=$ac_try;;
  2687. esac
  2688. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2689. (eval "$ac_compile") 2>conftest.er1
  2690. ac_status=$?
  2691. grep -v '^ *+' conftest.er1 >conftest.err
  2692. rm -f conftest.er1
  2693. cat conftest.err >&5
  2694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2695. (exit $ac_status); } && {
  2696. test -z "$ac_c_werror_flag" ||
  2697. test ! -s conftest.err
  2698. } && test -s conftest.$ac_objext; then
  2699. ac_compiler_gnu=yes
  2700. else
  2701. echo "$as_me: failed program was:" >&5
  2702. sed 's/^/| /' conftest.$ac_ext >&5
  2703.  
  2704. ac_compiler_gnu=no
  2705. fi
  2706.  
  2707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2708. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2709.  
  2710. fi
  2711. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2712. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2713. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2714. ac_test_CFLAGS=${CFLAGS+set}
  2715. ac_save_CFLAGS=$CFLAGS
  2716. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2717. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2718. if test "${ac_cv_prog_cc_g+set}" = set; then
  2719. echo $ECHO_N "(cached) $ECHO_C" >&6
  2720. else
  2721. ac_save_c_werror_flag=$ac_c_werror_flag
  2722. ac_c_werror_flag=yes
  2723. ac_cv_prog_cc_g=no
  2724. CFLAGS="-g"
  2725. cat >conftest.$ac_ext <<_ACEOF
  2726. /* confdefs.h. */
  2727. _ACEOF
  2728. cat confdefs.h >>conftest.$ac_ext
  2729. cat >>conftest.$ac_ext <<_ACEOF
  2730. /* end confdefs.h. */
  2731.  
  2732. int
  2733. main ()
  2734. {
  2735.  
  2736. ;
  2737. return 0;
  2738. }
  2739. _ACEOF
  2740. rm -f conftest.$ac_objext
  2741. if { (ac_try="$ac_compile"
  2742. case "(($ac_try" in
  2743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2744. *) ac_try_echo=$ac_try;;
  2745. esac
  2746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2747. (eval "$ac_compile") 2>conftest.er1
  2748. ac_status=$?
  2749. grep -v '^ *+' conftest.er1 >conftest.err
  2750. rm -f conftest.er1
  2751. cat conftest.err >&5
  2752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2753. (exit $ac_status); } && {
  2754. test -z "$ac_c_werror_flag" ||
  2755. test ! -s conftest.err
  2756. } && test -s conftest.$ac_objext; then
  2757. ac_cv_prog_cc_g=yes
  2758. else
  2759. echo "$as_me: failed program was:" >&5
  2760. sed 's/^/| /' conftest.$ac_ext >&5
  2761.  
  2762. CFLAGS=""
  2763. cat >conftest.$ac_ext <<_ACEOF
  2764. /* confdefs.h. */
  2765. _ACEOF
  2766. cat confdefs.h >>conftest.$ac_ext
  2767. cat >>conftest.$ac_ext <<_ACEOF
  2768. /* end confdefs.h. */
  2769.  
  2770. int
  2771. main ()
  2772. {
  2773.  
  2774. ;
  2775. return 0;
  2776. }
  2777. _ACEOF
  2778. rm -f conftest.$ac_objext
  2779. if { (ac_try="$ac_compile"
  2780. case "(($ac_try" in
  2781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2782. *) ac_try_echo=$ac_try;;
  2783. esac
  2784. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2785. (eval "$ac_compile") 2>conftest.er1
  2786. ac_status=$?
  2787. grep -v '^ *+' conftest.er1 >conftest.err
  2788. rm -f conftest.er1
  2789. cat conftest.err >&5
  2790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2791. (exit $ac_status); } && {
  2792. test -z "$ac_c_werror_flag" ||
  2793. test ! -s conftest.err
  2794. } && test -s conftest.$ac_objext; then
  2795. :
  2796. else
  2797. echo "$as_me: failed program was:" >&5
  2798. sed 's/^/| /' conftest.$ac_ext >&5
  2799.  
  2800. ac_c_werror_flag=$ac_save_c_werror_flag
  2801. CFLAGS="-g"
  2802. cat >conftest.$ac_ext <<_ACEOF
  2803. /* confdefs.h. */
  2804. _ACEOF
  2805. cat confdefs.h >>conftest.$ac_ext
  2806. cat >>conftest.$ac_ext <<_ACEOF
  2807. /* end confdefs.h. */
  2808.  
  2809. int
  2810. main ()
  2811. {
  2812.  
  2813. ;
  2814. return 0;
  2815. }
  2816. _ACEOF
  2817. rm -f conftest.$ac_objext
  2818. if { (ac_try="$ac_compile"
  2819. case "(($ac_try" in
  2820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2821. *) ac_try_echo=$ac_try;;
  2822. esac
  2823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2824. (eval "$ac_compile") 2>conftest.er1
  2825. ac_status=$?
  2826. grep -v '^ *+' conftest.er1 >conftest.err
  2827. rm -f conftest.er1
  2828. cat conftest.err >&5
  2829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2830. (exit $ac_status); } && {
  2831. test -z "$ac_c_werror_flag" ||
  2832. test ! -s conftest.err
  2833. } && test -s conftest.$ac_objext; then
  2834. ac_cv_prog_cc_g=yes
  2835. else
  2836. echo "$as_me: failed program was:" >&5
  2837. sed 's/^/| /' conftest.$ac_ext >&5
  2838.  
  2839.  
  2840. fi
  2841.  
  2842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2843. fi
  2844.  
  2845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2846. fi
  2847.  
  2848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2849. ac_c_werror_flag=$ac_save_c_werror_flag
  2850. fi
  2851. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2852. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2853. if test "$ac_test_CFLAGS" = set; then
  2854. CFLAGS=$ac_save_CFLAGS
  2855. elif test $ac_cv_prog_cc_g = yes; then
  2856. if test "$GCC" = yes; then
  2857. CFLAGS="-g -O2"
  2858. else
  2859. CFLAGS="-g"
  2860. fi
  2861. else
  2862. if test "$GCC" = yes; then
  2863. CFLAGS="-O2"
  2864. else
  2865. CFLAGS=
  2866. fi
  2867. fi
  2868. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2869. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2870. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2871. echo $ECHO_N "(cached) $ECHO_C" >&6
  2872. else
  2873. ac_cv_prog_cc_c89=no
  2874. ac_save_CC=$CC
  2875. cat >conftest.$ac_ext <<_ACEOF
  2876. /* confdefs.h. */
  2877. _ACEOF
  2878. cat confdefs.h >>conftest.$ac_ext
  2879. cat >>conftest.$ac_ext <<_ACEOF
  2880. /* end confdefs.h. */
  2881. #include <stdarg.h>
  2882. #include <stdio.h>
  2883. #include <sys/types.h>
  2884. #include <sys/stat.h>
  2885. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2886. struct buf { int x; };
  2887. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2888. static char *e (p, i)
  2889. char **p;
  2890. int i;
  2891. {
  2892. return p[i];
  2893. }
  2894. static char *f (char * (*g) (char **, int), char **p, ...)
  2895. {
  2896. char *s;
  2897. va_list v;
  2898. va_start (v,p);
  2899. s = g (p, va_arg (v,int));
  2900. va_end (v);
  2901. return s;
  2902. }
  2903.  
  2904. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2905. function prototypes and stuff, but not '\xHH' hex character constants.
  2906. These don't provoke an error unfortunately, instead are silently treated
  2907. as 'x'. The following induces an error, until -std is added to get
  2908. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2909. array size at least. It's necessary to write '\x00'==0 to get something
  2910. that's true only with -std. */
  2911. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2912.  
  2913. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2914. inside strings and character constants. */
  2915. #define FOO(x) 'x'
  2916. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2917.  
  2918. int test (int i, double x);
  2919. struct s1 {int (*f) (int a);};
  2920. struct s2 {int (*f) (double a);};
  2921. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2922. int argc;
  2923. char **argv;
  2924. int
  2925. main ()
  2926. {
  2927. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2928. ;
  2929. return 0;
  2930. }
  2931. _ACEOF
  2932. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2933. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2934. do
  2935. CC="$ac_save_CC $ac_arg"
  2936. rm -f conftest.$ac_objext
  2937. if { (ac_try="$ac_compile"
  2938. case "(($ac_try" in
  2939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2940. *) ac_try_echo=$ac_try;;
  2941. esac
  2942. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2943. (eval "$ac_compile") 2>conftest.er1
  2944. ac_status=$?
  2945. grep -v '^ *+' conftest.er1 >conftest.err
  2946. rm -f conftest.er1
  2947. cat conftest.err >&5
  2948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2949. (exit $ac_status); } && {
  2950. test -z "$ac_c_werror_flag" ||
  2951. test ! -s conftest.err
  2952. } && test -s conftest.$ac_objext; then
  2953. ac_cv_prog_cc_c89=$ac_arg
  2954. else
  2955. echo "$as_me: failed program was:" >&5
  2956. sed 's/^/| /' conftest.$ac_ext >&5
  2957.  
  2958.  
  2959. fi
  2960.  
  2961. rm -f core conftest.err conftest.$ac_objext
  2962. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2963. done
  2964. rm -f conftest.$ac_ext
  2965. CC=$ac_save_CC
  2966.  
  2967. fi
  2968. # AC_CACHE_VAL
  2969. case "x$ac_cv_prog_cc_c89" in
  2970. x)
  2971. { echo "$as_me:$LINENO: result: none needed" >&5
  2972. echo "${ECHO_T}none needed" >&6; } ;;
  2973. xno)
  2974. { echo "$as_me:$LINENO: result: unsupported" >&5
  2975. echo "${ECHO_T}unsupported" >&6; } ;;
  2976. *)
  2977. CC="$CC $ac_cv_prog_cc_c89"
  2978. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2979. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2980. esac
  2981.  
  2982.  
  2983. ac_ext=c
  2984. ac_cpp='$CPP $CPPFLAGS'
  2985. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2986. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2987. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2988.  
  2989. ac_ext=c
  2990. ac_cpp='$CPP $CPPFLAGS'
  2991. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2992. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2993. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2994. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2995. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  2996. # On Suns, sometimes $CPP names a directory.
  2997. if test -n "$CPP" && test -d "$CPP"; then
  2998. CPP=
  2999. fi
  3000. if test -z "$CPP"; then
  3001. if test "${ac_cv_prog_CPP+set}" = set; then
  3002. echo $ECHO_N "(cached) $ECHO_C" >&6
  3003. else
  3004. # Double quotes because CPP needs to be expanded
  3005. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3006. do
  3007. ac_preproc_ok=false
  3008. for ac_c_preproc_warn_flag in '' yes
  3009. do
  3010. # Use a header file that comes with gcc, so configuring glibc
  3011. # with a fresh cross-compiler works.
  3012. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3013. # <limits.h> exists even on freestanding compilers.
  3014. # On the NeXT, cc -E runs the code through the compiler's parser,
  3015. # not just through cpp. "Syntax error" is here to catch this case.
  3016. cat >conftest.$ac_ext <<_ACEOF
  3017. /* confdefs.h. */
  3018. _ACEOF
  3019. cat confdefs.h >>conftest.$ac_ext
  3020. cat >>conftest.$ac_ext <<_ACEOF
  3021. /* end confdefs.h. */
  3022. #ifdef __STDC__
  3023. # include <limits.h>
  3024. #else
  3025. # include <assert.h>
  3026. #endif
  3027. Syntax error
  3028. _ACEOF
  3029. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3030. case "(($ac_try" in
  3031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3032. *) ac_try_echo=$ac_try;;
  3033. esac
  3034. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3035. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3036. ac_status=$?
  3037. grep -v '^ *+' conftest.er1 >conftest.err
  3038. rm -f conftest.er1
  3039. cat conftest.err >&5
  3040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3041. (exit $ac_status); } >/dev/null && {
  3042. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3043. test ! -s conftest.err
  3044. }; then
  3045. :
  3046. else
  3047. echo "$as_me: failed program was:" >&5
  3048. sed 's/^/| /' conftest.$ac_ext >&5
  3049.  
  3050. # Broken: fails on valid input.
  3051. continue
  3052. fi
  3053.  
  3054. rm -f conftest.err conftest.$ac_ext
  3055.  
  3056. # OK, works on sane cases. Now check whether nonexistent headers
  3057. # can be detected and how.
  3058. cat >conftest.$ac_ext <<_ACEOF
  3059. /* confdefs.h. */
  3060. _ACEOF
  3061. cat confdefs.h >>conftest.$ac_ext
  3062. cat >>conftest.$ac_ext <<_ACEOF
  3063. /* end confdefs.h. */
  3064. #include <ac_nonexistent.h>
  3065. _ACEOF
  3066. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3067. case "(($ac_try" in
  3068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3069. *) ac_try_echo=$ac_try;;
  3070. esac
  3071. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3072. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3073. ac_status=$?
  3074. grep -v '^ *+' conftest.er1 >conftest.err
  3075. rm -f conftest.er1
  3076. cat conftest.err >&5
  3077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3078. (exit $ac_status); } >/dev/null && {
  3079. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3080. test ! -s conftest.err
  3081. }; then
  3082. # Broken: success on invalid input.
  3083. continue
  3084. else
  3085. echo "$as_me: failed program was:" >&5
  3086. sed 's/^/| /' conftest.$ac_ext >&5
  3087.  
  3088. # Passes both tests.
  3089. ac_preproc_ok=:
  3090. break
  3091. fi
  3092.  
  3093. rm -f conftest.err conftest.$ac_ext
  3094.  
  3095. done
  3096. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3097. rm -f conftest.err conftest.$ac_ext
  3098. if $ac_preproc_ok; then
  3099. break
  3100. fi
  3101.  
  3102. done
  3103. ac_cv_prog_CPP=$CPP
  3104.  
  3105. fi
  3106. CPP=$ac_cv_prog_CPP
  3107. else
  3108. ac_cv_prog_CPP=$CPP
  3109. fi
  3110. { echo "$as_me:$LINENO: result: $CPP" >&5
  3111. echo "${ECHO_T}$CPP" >&6; }
  3112. ac_preproc_ok=false
  3113. for ac_c_preproc_warn_flag in '' yes
  3114. do
  3115. # Use a header file that comes with gcc, so configuring glibc
  3116. # with a fresh cross-compiler works.
  3117. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3118. # <limits.h> exists even on freestanding compilers.
  3119. # On the NeXT, cc -E runs the code through the compiler's parser,
  3120. # not just through cpp. "Syntax error" is here to catch this case.
  3121. cat >conftest.$ac_ext <<_ACEOF
  3122. /* confdefs.h. */
  3123. _ACEOF
  3124. cat confdefs.h >>conftest.$ac_ext
  3125. cat >>conftest.$ac_ext <<_ACEOF
  3126. /* end confdefs.h. */
  3127. #ifdef __STDC__
  3128. # include <limits.h>
  3129. #else
  3130. # include <assert.h>
  3131. #endif
  3132. Syntax error
  3133. _ACEOF
  3134. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3135. case "(($ac_try" in
  3136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3137. *) ac_try_echo=$ac_try;;
  3138. esac
  3139. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3140. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3141. ac_status=$?
  3142. grep -v '^ *+' conftest.er1 >conftest.err
  3143. rm -f conftest.er1
  3144. cat conftest.err >&5
  3145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3146. (exit $ac_status); } >/dev/null && {
  3147. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3148. test ! -s conftest.err
  3149. }; then
  3150. :
  3151. else
  3152. echo "$as_me: failed program was:" >&5
  3153. sed 's/^/| /' conftest.$ac_ext >&5
  3154.  
  3155. # Broken: fails on valid input.
  3156. continue
  3157. fi
  3158.  
  3159. rm -f conftest.err conftest.$ac_ext
  3160.  
  3161. # OK, works on sane cases. Now check whether nonexistent headers
  3162. # can be detected and how.
  3163. cat >conftest.$ac_ext <<_ACEOF
  3164. /* confdefs.h. */
  3165. _ACEOF
  3166. cat confdefs.h >>conftest.$ac_ext
  3167. cat >>conftest.$ac_ext <<_ACEOF
  3168. /* end confdefs.h. */
  3169. #include <ac_nonexistent.h>
  3170. _ACEOF
  3171. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3172. case "(($ac_try" in
  3173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3174. *) ac_try_echo=$ac_try;;
  3175. esac
  3176. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3177. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3178. ac_status=$?
  3179. grep -v '^ *+' conftest.er1 >conftest.err
  3180. rm -f conftest.er1
  3181. cat conftest.err >&5
  3182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3183. (exit $ac_status); } >/dev/null && {
  3184. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3185. test ! -s conftest.err
  3186. }; then
  3187. # Broken: success on invalid input.
  3188. continue
  3189. else
  3190. echo "$as_me: failed program was:" >&5
  3191. sed 's/^/| /' conftest.$ac_ext >&5
  3192.  
  3193. # Passes both tests.
  3194. ac_preproc_ok=:
  3195. break
  3196. fi
  3197.  
  3198. rm -f conftest.err conftest.$ac_ext
  3199.  
  3200. done
  3201. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3202. rm -f conftest.err conftest.$ac_ext
  3203. if $ac_preproc_ok; then
  3204. :
  3205. else
  3206. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3207. See \`config.log' for more details." >&5
  3208. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3209. See \`config.log' for more details." >&2;}
  3210. { (exit 1); exit 1; }; }
  3211. fi
  3212.  
  3213. ac_ext=c
  3214. ac_cpp='$CPP $CPPFLAGS'
  3215. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3216. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3217. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3218.  
  3219. ac_ext=cpp
  3220. ac_cpp='$CXXCPP $CPPFLAGS'
  3221. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3222. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3223. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3224. if test -z "$CXX"; then
  3225. if test -n "$CCC"; then
  3226. CXX=$CCC
  3227. else
  3228. if test -n "$ac_tool_prefix"; then
  3229. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3230. do
  3231. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3232. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3233. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3234. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3235. if test "${ac_cv_prog_CXX+set}" = set; then
  3236. echo $ECHO_N "(cached) $ECHO_C" >&6
  3237. else
  3238. if test -n "$CXX"; then
  3239. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3240. else
  3241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3242. for as_dir in $PATH
  3243. do
  3244. IFS=$as_save_IFS
  3245. test -z "$as_dir" && as_dir=.
  3246. for ac_exec_ext in '' $ac_executable_extensions; do
  3247. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3248. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3249. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3250. break 2
  3251. fi
  3252. done
  3253. done
  3254. IFS=$as_save_IFS
  3255.  
  3256. fi
  3257. fi
  3258. CXX=$ac_cv_prog_CXX
  3259. if test -n "$CXX"; then
  3260. { echo "$as_me:$LINENO: result: $CXX" >&5
  3261. echo "${ECHO_T}$CXX" >&6; }
  3262. else
  3263. { echo "$as_me:$LINENO: result: no" >&5
  3264. echo "${ECHO_T}no" >&6; }
  3265. fi
  3266.  
  3267.  
  3268. test -n "$CXX" && break
  3269. done
  3270. fi
  3271. if test -z "$CXX"; then
  3272. ac_ct_CXX=$CXX
  3273. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3274. do
  3275. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3276. set dummy $ac_prog; ac_word=$2
  3277. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3278. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3279. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  3280. echo $ECHO_N "(cached) $ECHO_C" >&6
  3281. else
  3282. if test -n "$ac_ct_CXX"; then
  3283. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3284. else
  3285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3286. for as_dir in $PATH
  3287. do
  3288. IFS=$as_save_IFS
  3289. test -z "$as_dir" && as_dir=.
  3290. for ac_exec_ext in '' $ac_executable_extensions; do
  3291. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3292. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3293. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3294. break 2
  3295. fi
  3296. done
  3297. done
  3298. IFS=$as_save_IFS
  3299.  
  3300. fi
  3301. fi
  3302. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3303. if test -n "$ac_ct_CXX"; then
  3304. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  3305. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  3306. else
  3307. { echo "$as_me:$LINENO: result: no" >&5
  3308. echo "${ECHO_T}no" >&6; }
  3309. fi
  3310.  
  3311.  
  3312. test -n "$ac_ct_CXX" && break
  3313. done
  3314.  
  3315. if test "x$ac_ct_CXX" = x; then
  3316. CXX="g++"
  3317. else
  3318. case $cross_compiling:$ac_tool_warned in
  3319. yes:)
  3320. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3321. whose name does not start with the host triplet. If you think this
  3322. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3323. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3324. whose name does not start with the host triplet. If you think this
  3325. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3326. ac_tool_warned=yes ;;
  3327. esac
  3328. CXX=$ac_ct_CXX
  3329. fi
  3330. fi
  3331.  
  3332. fi
  3333. fi
  3334. # Provide some information about the compiler.
  3335. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  3336. ac_compiler=`set X $ac_compile; echo $2`
  3337. { (ac_try="$ac_compiler --version >&5"
  3338. case "(($ac_try" in
  3339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3340. *) ac_try_echo=$ac_try;;
  3341. esac
  3342. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3343. (eval "$ac_compiler --version >&5") 2>&5
  3344. ac_status=$?
  3345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3346. (exit $ac_status); }
  3347. { (ac_try="$ac_compiler -v >&5"
  3348. case "(($ac_try" in
  3349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3350. *) ac_try_echo=$ac_try;;
  3351. esac
  3352. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3353. (eval "$ac_compiler -v >&5") 2>&5
  3354. ac_status=$?
  3355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3356. (exit $ac_status); }
  3357. { (ac_try="$ac_compiler -V >&5"
  3358. case "(($ac_try" in
  3359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3360. *) ac_try_echo=$ac_try;;
  3361. esac
  3362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3363. (eval "$ac_compiler -V >&5") 2>&5
  3364. ac_status=$?
  3365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3366. (exit $ac_status); }
  3367.  
  3368. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  3369. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  3370. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  3371. echo $ECHO_N "(cached) $ECHO_C" >&6
  3372. else
  3373. cat >conftest.$ac_ext <<_ACEOF
  3374. /* confdefs.h. */
  3375. _ACEOF
  3376. cat confdefs.h >>conftest.$ac_ext
  3377. cat >>conftest.$ac_ext <<_ACEOF
  3378. /* end confdefs.h. */
  3379.  
  3380. int
  3381. main ()
  3382. {
  3383. #ifndef __GNUC__
  3384. choke me
  3385. #endif
  3386.  
  3387. ;
  3388. return 0;
  3389. }
  3390. _ACEOF
  3391. rm -f conftest.$ac_objext
  3392. if { (ac_try="$ac_compile"
  3393. case "(($ac_try" in
  3394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3395. *) ac_try_echo=$ac_try;;
  3396. esac
  3397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3398. (eval "$ac_compile") 2>conftest.er1
  3399. ac_status=$?
  3400. grep -v '^ *+' conftest.er1 >conftest.err
  3401. rm -f conftest.er1
  3402. cat conftest.err >&5
  3403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3404. (exit $ac_status); } && {
  3405. test -z "$ac_cxx_werror_flag" ||
  3406. test ! -s conftest.err
  3407. } && test -s conftest.$ac_objext; then
  3408. ac_compiler_gnu=yes
  3409. else
  3410. echo "$as_me: failed program was:" >&5
  3411. sed 's/^/| /' conftest.$ac_ext >&5
  3412.  
  3413. ac_compiler_gnu=no
  3414. fi
  3415.  
  3416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3417. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3418.  
  3419. fi
  3420. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3421. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  3422. GXX=`test $ac_compiler_gnu = yes && echo yes`
  3423. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3424. ac_save_CXXFLAGS=$CXXFLAGS
  3425. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3426. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  3427. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3428. echo $ECHO_N "(cached) $ECHO_C" >&6
  3429. else
  3430. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3431. ac_cxx_werror_flag=yes
  3432. ac_cv_prog_cxx_g=no
  3433. CXXFLAGS="-g"
  3434. cat >conftest.$ac_ext <<_ACEOF
  3435. /* confdefs.h. */
  3436. _ACEOF
  3437. cat confdefs.h >>conftest.$ac_ext
  3438. cat >>conftest.$ac_ext <<_ACEOF
  3439. /* end confdefs.h. */
  3440.  
  3441. int
  3442. main ()
  3443. {
  3444.  
  3445. ;
  3446. return 0;
  3447. }
  3448. _ACEOF
  3449. rm -f conftest.$ac_objext
  3450. if { (ac_try="$ac_compile"
  3451. case "(($ac_try" in
  3452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3453. *) ac_try_echo=$ac_try;;
  3454. esac
  3455. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3456. (eval "$ac_compile") 2>conftest.er1
  3457. ac_status=$?
  3458. grep -v '^ *+' conftest.er1 >conftest.err
  3459. rm -f conftest.er1
  3460. cat conftest.err >&5
  3461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3462. (exit $ac_status); } && {
  3463. test -z "$ac_cxx_werror_flag" ||
  3464. test ! -s conftest.err
  3465. } && test -s conftest.$ac_objext; then
  3466. ac_cv_prog_cxx_g=yes
  3467. else
  3468. echo "$as_me: failed program was:" >&5
  3469. sed 's/^/| /' conftest.$ac_ext >&5
  3470.  
  3471. CXXFLAGS=""
  3472. cat >conftest.$ac_ext <<_ACEOF
  3473. /* confdefs.h. */
  3474. _ACEOF
  3475. cat confdefs.h >>conftest.$ac_ext
  3476. cat >>conftest.$ac_ext <<_ACEOF
  3477. /* end confdefs.h. */
  3478.  
  3479. int
  3480. main ()
  3481. {
  3482.  
  3483. ;
  3484. return 0;
  3485. }
  3486. _ACEOF
  3487. rm -f conftest.$ac_objext
  3488. if { (ac_try="$ac_compile"
  3489. case "(($ac_try" in
  3490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3491. *) ac_try_echo=$ac_try;;
  3492. esac
  3493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3494. (eval "$ac_compile") 2>conftest.er1
  3495. ac_status=$?
  3496. grep -v '^ *+' conftest.er1 >conftest.err
  3497. rm -f conftest.er1
  3498. cat conftest.err >&5
  3499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3500. (exit $ac_status); } && {
  3501. test -z "$ac_cxx_werror_flag" ||
  3502. test ! -s conftest.err
  3503. } && test -s conftest.$ac_objext; then
  3504. :
  3505. else
  3506. echo "$as_me: failed program was:" >&5
  3507. sed 's/^/| /' conftest.$ac_ext >&5
  3508.  
  3509. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3510. CXXFLAGS="-g"
  3511. cat >conftest.$ac_ext <<_ACEOF
  3512. /* confdefs.h. */
  3513. _ACEOF
  3514. cat confdefs.h >>conftest.$ac_ext
  3515. cat >>conftest.$ac_ext <<_ACEOF
  3516. /* end confdefs.h. */
  3517.  
  3518. int
  3519. main ()
  3520. {
  3521.  
  3522. ;
  3523. return 0;
  3524. }
  3525. _ACEOF
  3526. rm -f conftest.$ac_objext
  3527. if { (ac_try="$ac_compile"
  3528. case "(($ac_try" in
  3529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3530. *) ac_try_echo=$ac_try;;
  3531. esac
  3532. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3533. (eval "$ac_compile") 2>conftest.er1
  3534. ac_status=$?
  3535. grep -v '^ *+' conftest.er1 >conftest.err
  3536. rm -f conftest.er1
  3537. cat conftest.err >&5
  3538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3539. (exit $ac_status); } && {
  3540. test -z "$ac_cxx_werror_flag" ||
  3541. test ! -s conftest.err
  3542. } && test -s conftest.$ac_objext; then
  3543. ac_cv_prog_cxx_g=yes
  3544. else
  3545. echo "$as_me: failed program was:" >&5
  3546. sed 's/^/| /' conftest.$ac_ext >&5
  3547.  
  3548.  
  3549. fi
  3550.  
  3551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3552. fi
  3553.  
  3554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3555. fi
  3556.  
  3557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3558. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3559. fi
  3560. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3561. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  3562. if test "$ac_test_CXXFLAGS" = set; then
  3563. CXXFLAGS=$ac_save_CXXFLAGS
  3564. elif test $ac_cv_prog_cxx_g = yes; then
  3565. if test "$GXX" = yes; then
  3566. CXXFLAGS="-g -O2"
  3567. else
  3568. CXXFLAGS="-g"
  3569. fi
  3570. else
  3571. if test "$GXX" = yes; then
  3572. CXXFLAGS="-O2"
  3573. else
  3574. CXXFLAGS=
  3575. fi
  3576. fi
  3577. ac_ext=c
  3578. ac_cpp='$CPP $CPPFLAGS'
  3579. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3580. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3581. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3582.  
  3583.  
  3584. for ac_prog in flex lex
  3585. do
  3586. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3587. set dummy $ac_prog; ac_word=$2
  3588. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3589. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3590. if test "${ac_cv_prog_LEX+set}" = set; then
  3591. echo $ECHO_N "(cached) $ECHO_C" >&6
  3592. else
  3593. if test -n "$LEX"; then
  3594. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  3595. else
  3596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3597. for as_dir in $PATH
  3598. do
  3599. IFS=$as_save_IFS
  3600. test -z "$as_dir" && as_dir=.
  3601. for ac_exec_ext in '' $ac_executable_extensions; do
  3602. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3603. ac_cv_prog_LEX="$ac_prog"
  3604. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3605. break 2
  3606. fi
  3607. done
  3608. done
  3609. IFS=$as_save_IFS
  3610.  
  3611. fi
  3612. fi
  3613. LEX=$ac_cv_prog_LEX
  3614. if test -n "$LEX"; then
  3615. { echo "$as_me:$LINENO: result: $LEX" >&5
  3616. echo "${ECHO_T}$LEX" >&6; }
  3617. else
  3618. { echo "$as_me:$LINENO: result: no" >&5
  3619. echo "${ECHO_T}no" >&6; }
  3620. fi
  3621.  
  3622.  
  3623. test -n "$LEX" && break
  3624. done
  3625. test -n "$LEX" || LEX=":"
  3626.  
  3627. if test "x$LEX" != "x:"; then
  3628. cat >conftest.l <<_ACEOF
  3629. %%
  3630. a { ECHO; }
  3631. b { REJECT; }
  3632. c { yymore (); }
  3633. d { yyless (1); }
  3634. e { yyless (input () != 0); }
  3635. f { unput (yytext[0]); }
  3636. . { BEGIN INITIAL; }
  3637. %%
  3638. #ifdef YYTEXT_POINTER
  3639. extern char *yytext;
  3640. #endif
  3641. int
  3642. main (void)
  3643. {
  3644. return ! yylex () + ! yywrap ();
  3645. }
  3646. _ACEOF
  3647. { (ac_try="$LEX conftest.l"
  3648. case "(($ac_try" in
  3649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3650. *) ac_try_echo=$ac_try;;
  3651. esac
  3652. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3653. (eval "$LEX conftest.l") 2>&5
  3654. ac_status=$?
  3655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3656. (exit $ac_status); }
  3657. { echo "$as_me:$LINENO: checking lex output file root" >&5
  3658. echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
  3659. if test "${ac_cv_prog_lex_root+set}" = set; then
  3660. echo $ECHO_N "(cached) $ECHO_C" >&6
  3661. else
  3662.  
  3663. if test -f lex.yy.c; then
  3664. ac_cv_prog_lex_root=lex.yy
  3665. elif test -f lexyy.c; then
  3666. ac_cv_prog_lex_root=lexyy
  3667. else
  3668. { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
  3669. echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
  3670. { (exit 1); exit 1; }; }
  3671. fi
  3672. fi
  3673. { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
  3674. echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
  3675. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  3676.  
  3677. if test -z "${LEXLIB+set}"; then
  3678. { echo "$as_me:$LINENO: checking lex library" >&5
  3679. echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
  3680. if test "${ac_cv_lib_lex+set}" = set; then
  3681. echo $ECHO_N "(cached) $ECHO_C" >&6
  3682. else
  3683.  
  3684. ac_save_LIBS=$LIBS
  3685. ac_cv_lib_lex='none needed'
  3686. for ac_lib in '' -lfl -ll; do
  3687. LIBS="$ac_lib $ac_save_LIBS"
  3688. cat >conftest.$ac_ext <<_ACEOF
  3689. `cat $LEX_OUTPUT_ROOT.c`
  3690. _ACEOF
  3691. rm -f conftest.$ac_objext conftest$ac_exeext
  3692. if { (ac_try="$ac_link"
  3693. case "(($ac_try" in
  3694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3695. *) ac_try_echo=$ac_try;;
  3696. esac
  3697. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3698. (eval "$ac_link") 2>conftest.er1
  3699. ac_status=$?
  3700. grep -v '^ *+' conftest.er1 >conftest.err
  3701. rm -f conftest.er1
  3702. cat conftest.err >&5
  3703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3704. (exit $ac_status); } && {
  3705. test -z "$ac_c_werror_flag" ||
  3706. test ! -s conftest.err
  3707. } && test -s conftest$ac_exeext &&
  3708. $as_test_x conftest$ac_exeext; then
  3709. ac_cv_lib_lex=$ac_lib
  3710. else
  3711. echo "$as_me: failed program was:" >&5
  3712. sed 's/^/| /' conftest.$ac_ext >&5
  3713.  
  3714.  
  3715. fi
  3716.  
  3717. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3718. conftest$ac_exeext conftest.$ac_ext
  3719. test "$ac_cv_lib_lex" != 'none needed' && break
  3720. done
  3721. LIBS=$ac_save_LIBS
  3722.  
  3723. fi
  3724. { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
  3725. echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
  3726. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  3727. fi
  3728.  
  3729.  
  3730. { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
  3731. echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
  3732. if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  3733. echo $ECHO_N "(cached) $ECHO_C" >&6
  3734. else
  3735. # POSIX says lex can declare yytext either as a pointer or an array; the
  3736. # default is implementation-dependent. Figure out which it is, since
  3737. # not all implementations provide the %pointer and %array declarations.
  3738. ac_cv_prog_lex_yytext_pointer=no
  3739. ac_save_LIBS=$LIBS
  3740. LIBS="$LEXLIB $ac_save_LIBS"
  3741. cat >conftest.$ac_ext <<_ACEOF
  3742. #define YYTEXT_POINTER 1
  3743. `cat $LEX_OUTPUT_ROOT.c`
  3744. _ACEOF
  3745. rm -f conftest.$ac_objext conftest$ac_exeext
  3746. if { (ac_try="$ac_link"
  3747. case "(($ac_try" in
  3748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3749. *) ac_try_echo=$ac_try;;
  3750. esac
  3751. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3752. (eval "$ac_link") 2>conftest.er1
  3753. ac_status=$?
  3754. grep -v '^ *+' conftest.er1 >conftest.err
  3755. rm -f conftest.er1
  3756. cat conftest.err >&5
  3757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3758. (exit $ac_status); } && {
  3759. test -z "$ac_c_werror_flag" ||
  3760. test ! -s conftest.err
  3761. } && test -s conftest$ac_exeext &&
  3762. $as_test_x conftest$ac_exeext; then
  3763. ac_cv_prog_lex_yytext_pointer=yes
  3764. else
  3765. echo "$as_me: failed program was:" >&5
  3766. sed 's/^/| /' conftest.$ac_ext >&5
  3767.  
  3768.  
  3769. fi
  3770.  
  3771. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3772. conftest$ac_exeext conftest.$ac_ext
  3773. LIBS=$ac_save_LIBS
  3774.  
  3775. fi
  3776. { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
  3777. echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
  3778. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  3779.  
  3780. cat >>confdefs.h <<\_ACEOF
  3781. #define YYTEXT_POINTER 1
  3782. _ACEOF
  3783.  
  3784. fi
  3785. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  3786.  
  3787. fi
  3788. for ac_prog in gawk mawk nawk awk
  3789. do
  3790. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3791. set dummy $ac_prog; ac_word=$2
  3792. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3793. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3794. if test "${ac_cv_prog_AWK+set}" = set; then
  3795. echo $ECHO_N "(cached) $ECHO_C" >&6
  3796. else
  3797. if test -n "$AWK"; then
  3798. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3799. else
  3800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3801. for as_dir in $PATH
  3802. do
  3803. IFS=$as_save_IFS
  3804. test -z "$as_dir" && as_dir=.
  3805. for ac_exec_ext in '' $ac_executable_extensions; do
  3806. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3807. ac_cv_prog_AWK="$ac_prog"
  3808. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3809. break 2
  3810. fi
  3811. done
  3812. done
  3813. IFS=$as_save_IFS
  3814.  
  3815. fi
  3816. fi
  3817. AWK=$ac_cv_prog_AWK
  3818. if test -n "$AWK"; then
  3819. { echo "$as_me:$LINENO: result: $AWK" >&5
  3820. echo "${ECHO_T}$AWK" >&6; }
  3821. else
  3822. { echo "$as_me:$LINENO: result: no" >&5
  3823. echo "${ECHO_T}no" >&6; }
  3824. fi
  3825.  
  3826.  
  3827. test -n "$AWK" && break
  3828. done
  3829.  
  3830. # Find a good install program. We prefer a C program (faster),
  3831. # so one script is as good as another. But avoid the broken or
  3832. # incompatible versions:
  3833. # SysV /etc/install, /usr/sbin/install
  3834. # SunOS /usr/etc/install
  3835. # IRIX /sbin/install
  3836. # AIX /bin/install
  3837. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3838. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3839. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3840. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3841. # OS/2's system install, which has a completely different semantic
  3842. # ./install, which can be erroneously created by make from ./install.sh.
  3843. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3844. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3845. if test -z "$INSTALL"; then
  3846. if test "${ac_cv_path_install+set}" = set; then
  3847. echo $ECHO_N "(cached) $ECHO_C" >&6
  3848. else
  3849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3850. for as_dir in $PATH
  3851. do
  3852. IFS=$as_save_IFS
  3853. test -z "$as_dir" && as_dir=.
  3854. # Account for people who put trailing slashes in PATH elements.
  3855. case $as_dir/ in
  3856. ./ | .// | /cC/* | \
  3857. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3858. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3859. /usr/ucb/* ) ;;
  3860. *)
  3861. # OSF1 and SCO ODT 3.0 have their own names for install.
  3862. # Don't use installbsd from OSF since it installs stuff as root
  3863. # by default.
  3864. for ac_prog in ginstall scoinst install; do
  3865. for ac_exec_ext in '' $ac_executable_extensions; do
  3866. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3867. if test $ac_prog = install &&
  3868. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3869. # AIX install. It has an incompatible calling convention.
  3870. :
  3871. elif test $ac_prog = install &&
  3872. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3873. # program-specific install script used by HP pwplus--don't use.
  3874. :
  3875. else
  3876. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3877. break 3
  3878. fi
  3879. fi
  3880. done
  3881. done
  3882. ;;
  3883. esac
  3884. done
  3885. IFS=$as_save_IFS
  3886.  
  3887.  
  3888. fi
  3889. if test "${ac_cv_path_install+set}" = set; then
  3890. INSTALL=$ac_cv_path_install
  3891. else
  3892. # As a last resort, use the slow shell script. Don't cache a
  3893. # value for INSTALL within a source directory, because that will
  3894. # break other packages using the cache if that directory is
  3895. # removed, or if the value is a relative name.
  3896. INSTALL=$ac_install_sh
  3897. fi
  3898. fi
  3899. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3900. echo "${ECHO_T}$INSTALL" >&6; }
  3901.  
  3902. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3903. # It thinks the first close brace ends the variable substitution.
  3904. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3905.  
  3906. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3907.  
  3908. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3909.  
  3910. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3911. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3912. LN_S=$as_ln_s
  3913. if test "$LN_S" = "ln -s"; then
  3914. { echo "$as_me:$LINENO: result: yes" >&5
  3915. echo "${ECHO_T}yes" >&6; }
  3916. else
  3917. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3918. echo "${ECHO_T}no, using $LN_S" >&6; }
  3919. fi
  3920.  
  3921. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3922. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  3923. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3924. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  3925. echo $ECHO_N "(cached) $ECHO_C" >&6
  3926. else
  3927. cat >conftest.make <<\_ACEOF
  3928. SHELL = /bin/sh
  3929. all:
  3930. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3931. _ACEOF
  3932. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3933. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3934. *@@@%%%=?*=@@@%%%*)
  3935. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3936. *)
  3937. eval ac_cv_prog_make_${ac_make}_set=no;;
  3938. esac
  3939. rm -f conftest.make
  3940. fi
  3941. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3942. { echo "$as_me:$LINENO: result: yes" >&5
  3943. echo "${ECHO_T}yes" >&6; }
  3944. SET_MAKE=
  3945. else
  3946. { echo "$as_me:$LINENO: result: no" >&5
  3947. echo "${ECHO_T}no" >&6; }
  3948. SET_MAKE="MAKE=${MAKE-make}"
  3949. fi
  3950.  
  3951. if test -n "$ac_tool_prefix"; then
  3952. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3953. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3954. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3955. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3956. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3957. echo $ECHO_N "(cached) $ECHO_C" >&6
  3958. else
  3959. if test -n "$RANLIB"; then
  3960. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3961. else
  3962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3963. for as_dir in $PATH
  3964. do
  3965. IFS=$as_save_IFS
  3966. test -z "$as_dir" && as_dir=.
  3967. for ac_exec_ext in '' $ac_executable_extensions; do
  3968. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3969. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3970. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3971. break 2
  3972. fi
  3973. done
  3974. done
  3975. IFS=$as_save_IFS
  3976.  
  3977. fi
  3978. fi
  3979. RANLIB=$ac_cv_prog_RANLIB
  3980. if test -n "$RANLIB"; then
  3981. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3982. echo "${ECHO_T}$RANLIB" >&6; }
  3983. else
  3984. { echo "$as_me:$LINENO: result: no" >&5
  3985. echo "${ECHO_T}no" >&6; }
  3986. fi
  3987.  
  3988.  
  3989. fi
  3990. if test -z "$ac_cv_prog_RANLIB"; then
  3991. ac_ct_RANLIB=$RANLIB
  3992. # Extract the first word of "ranlib", so it can be a program name with args.
  3993. set dummy ranlib; ac_word=$2
  3994. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3995. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3996. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3997. echo $ECHO_N "(cached) $ECHO_C" >&6
  3998. else
  3999. if test -n "$ac_ct_RANLIB"; then
  4000. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4001. else
  4002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4003. for as_dir in $PATH
  4004. do
  4005. IFS=$as_save_IFS
  4006. test -z "$as_dir" && as_dir=.
  4007. for ac_exec_ext in '' $ac_executable_extensions; do
  4008. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4009. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4010. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4011. break 2
  4012. fi
  4013. done
  4014. done
  4015. IFS=$as_save_IFS
  4016.  
  4017. fi
  4018. fi
  4019. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4020. if test -n "$ac_ct_RANLIB"; then
  4021. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4022. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4023. else
  4024. { echo "$as_me:$LINENO: result: no" >&5
  4025. echo "${ECHO_T}no" >&6; }
  4026. fi
  4027.  
  4028. if test "x$ac_ct_RANLIB" = x; then
  4029. RANLIB=":"
  4030. else
  4031. case $cross_compiling:$ac_tool_warned in
  4032. yes:)
  4033. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4034. whose name does not start with the host triplet. If you think this
  4035. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4036. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4037. whose name does not start with the host triplet. If you think this
  4038. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4039. ac_tool_warned=yes ;;
  4040. esac
  4041. RANLIB=$ac_ct_RANLIB
  4042. fi
  4043. else
  4044. RANLIB="$ac_cv_prog_RANLIB"
  4045. fi
  4046.  
  4047. # Extract the first word of "cp", so it can be a program name with args.
  4048. set dummy cp; ac_word=$2
  4049. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4050. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4051. if test "${ac_cv_path_CP+set}" = set; then
  4052. echo $ECHO_N "(cached) $ECHO_C" >&6
  4053. else
  4054. case $CP in
  4055. [\\/]* | ?:[\\/]*)
  4056. ac_cv_path_CP="$CP" # Let the user override the test with a path.
  4057. ;;
  4058. *)
  4059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4060. as_dummy="$PATH:/bin:/usr/bin:/usr/ucb/bin"
  4061. for as_dir in $as_dummy
  4062. do
  4063. IFS=$as_save_IFS
  4064. test -z "$as_dir" && as_dir=.
  4065. for ac_exec_ext in '' $ac_executable_extensions; do
  4066. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4067. ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
  4068. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4069. break 2
  4070. fi
  4071. done
  4072. done
  4073. IFS=$as_save_IFS
  4074.  
  4075. test -z "$ac_cv_path_CP" && ac_cv_path_CP="/bin/cp"
  4076. ;;
  4077. esac
  4078. fi
  4079. CP=$ac_cv_path_CP
  4080. if test -n "$CP"; then
  4081. { echo "$as_me:$LINENO: result: $CP" >&5
  4082. echo "${ECHO_T}$CP" >&6; }
  4083. else
  4084. { echo "$as_me:$LINENO: result: no" >&5
  4085. echo "${ECHO_T}no" >&6; }
  4086. fi
  4087.  
  4088.  
  4089. # Extract the first word of "mv", so it can be a program name with args.
  4090. set dummy mv; ac_word=$2
  4091. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4092. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4093. if test "${ac_cv_path_MV+set}" = set; then
  4094. echo $ECHO_N "(cached) $ECHO_C" >&6
  4095. else
  4096. case $MV in
  4097. [\\/]* | ?:[\\/]*)
  4098. ac_cv_path_MV="$MV" # Let the user override the test with a path.
  4099. ;;
  4100. *)
  4101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4102. as_dummy="$PATH:/bin:/usr/bin:/usr/ucb/bin"
  4103. for as_dir in $as_dummy
  4104. do
  4105. IFS=$as_save_IFS
  4106. test -z "$as_dir" && as_dir=.
  4107. for ac_exec_ext in '' $ac_executable_extensions; do
  4108. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4109. ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
  4110. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4111. break 2
  4112. fi
  4113. done
  4114. done
  4115. IFS=$as_save_IFS
  4116.  
  4117. test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
  4118. ;;
  4119. esac
  4120. fi
  4121. MV=$ac_cv_path_MV
  4122. if test -n "$MV"; then
  4123. { echo "$as_me:$LINENO: result: $MV" >&5
  4124. echo "${ECHO_T}$MV" >&6; }
  4125. else
  4126. { echo "$as_me:$LINENO: result: no" >&5
  4127. echo "${ECHO_T}no" >&6; }
  4128. fi
  4129.  
  4130.  
  4131. # Extract the first word of "rm", so it can be a program name with args.
  4132. set dummy rm; ac_word=$2
  4133. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4134. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4135. if test "${ac_cv_path_RM+set}" = set; then
  4136. echo $ECHO_N "(cached) $ECHO_C" >&6
  4137. else
  4138. case $RM in
  4139. [\\/]* | ?:[\\/]*)
  4140. ac_cv_path_RM="$RM" # Let the user override the test with a path.
  4141. ;;
  4142. *)
  4143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4144. as_dummy="$PATH:/bin:/usr/bin:/usr/ucb/bin"
  4145. for as_dir in $as_dummy
  4146. do
  4147. IFS=$as_save_IFS
  4148. test -z "$as_dir" && as_dir=.
  4149. for ac_exec_ext in '' $ac_executable_extensions; do
  4150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4151. ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
  4152. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4153. break 2
  4154. fi
  4155. done
  4156. done
  4157. IFS=$as_save_IFS
  4158.  
  4159. test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
  4160. ;;
  4161. esac
  4162. fi
  4163. RM=$ac_cv_path_RM
  4164. if test -n "$RM"; then
  4165. { echo "$as_me:$LINENO: result: $RM" >&5
  4166. echo "${ECHO_T}$RM" >&6; }
  4167. else
  4168. { echo "$as_me:$LINENO: result: no" >&5
  4169. echo "${ECHO_T}no" >&6; }
  4170. fi
  4171.  
  4172.  
  4173. # Extract the first word of "mkdir", so it can be a program name with args.
  4174. set dummy mkdir; ac_word=$2
  4175. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4176. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4177. if test "${ac_cv_path_MKDIR+set}" = set; then
  4178. echo $ECHO_N "(cached) $ECHO_C" >&6
  4179. else
  4180. case $MKDIR in
  4181. [\\/]* | ?:[\\/]*)
  4182. ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
  4183. ;;
  4184. *)
  4185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4186. as_dummy="$PATH:/bin:/usr/bin:/usr/ucb/bin"
  4187. for as_dir in $as_dummy
  4188. do
  4189. IFS=$as_save_IFS
  4190. test -z "$as_dir" && as_dir=.
  4191. for ac_exec_ext in '' $ac_executable_extensions; do
  4192. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4193. ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
  4194. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4195. break 2
  4196. fi
  4197. done
  4198. done
  4199. IFS=$as_save_IFS
  4200.  
  4201. test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="/bin/mkdir"
  4202. ;;
  4203. esac
  4204. fi
  4205. MKDIR=$ac_cv_path_MKDIR
  4206. if test -n "$MKDIR"; then
  4207. { echo "$as_me:$LINENO: result: $MKDIR" >&5
  4208. echo "${ECHO_T}$MKDIR" >&6; }
  4209. else
  4210. { echo "$as_me:$LINENO: result: no" >&5
  4211. echo "${ECHO_T}no" >&6; }
  4212. fi
  4213.  
  4214.  
  4215. # Extract the first word of "echo", so it can be a program name with args.
  4216. set dummy echo; ac_word=$2
  4217. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4218. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4219. if test "${ac_cv_path_ECHO+set}" = set; then
  4220. echo $ECHO_N "(cached) $ECHO_C" >&6
  4221. else
  4222. case $ECHO in
  4223. [\\/]* | ?:[\\/]*)
  4224. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  4225. ;;
  4226. *)
  4227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4228. as_dummy="$PATH:/bin:/usr/bin:/usr/ucb/bin"
  4229. for as_dir in $as_dummy
  4230. do
  4231. IFS=$as_save_IFS
  4232. test -z "$as_dir" && as_dir=.
  4233. for ac_exec_ext in '' $ac_executable_extensions; do
  4234. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4235. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  4236. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4237. break 2
  4238. fi
  4239. done
  4240. done
  4241. IFS=$as_save_IFS
  4242.  
  4243. test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="/bin/echo"
  4244. ;;
  4245. esac
  4246. fi
  4247. ECHO=$ac_cv_path_ECHO
  4248. if test -n "$ECHO"; then
  4249. { echo "$as_me:$LINENO: result: $ECHO" >&5
  4250. echo "${ECHO_T}$ECHO" >&6; }
  4251. else
  4252. { echo "$as_me:$LINENO: result: no" >&5
  4253. echo "${ECHO_T}no" >&6; }
  4254. fi
  4255.  
  4256.  
  4257. # Extract the first word of "cat", so it can be a program name with args.
  4258. set dummy cat; ac_word=$2
  4259. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4260. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4261. if test "${ac_cv_path_CAT+set}" = set; then
  4262. echo $ECHO_N "(cached) $ECHO_C" >&6
  4263. else
  4264. case $CAT in
  4265. [\\/]* | ?:[\\/]*)
  4266. ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
  4267. ;;
  4268. *)
  4269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4270. as_dummy="$PATH:/bin:/usr/bin:/usr/ucb/bin"
  4271. for as_dir in $as_dummy
  4272. do
  4273. IFS=$as_save_IFS
  4274. test -z "$as_dir" && as_dir=.
  4275. for ac_exec_ext in '' $ac_executable_extensions; do
  4276. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4277. ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
  4278. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4279. break 2
  4280. fi
  4281. done
  4282. done
  4283. IFS=$as_save_IFS
  4284.  
  4285. test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="/bin/cat"
  4286. ;;
  4287. esac
  4288. fi
  4289. CAT=$ac_cv_path_CAT
  4290. if test -n "$CAT"; then
  4291. { echo "$as_me:$LINENO: result: $CAT" >&5
  4292. echo "${ECHO_T}$CAT" >&6; }
  4293. else
  4294. { echo "$as_me:$LINENO: result: no" >&5
  4295. echo "${ECHO_T}no" >&6; }
  4296. fi
  4297.  
  4298.  
  4299. # Extract the first word of "chmod", so it can be a program name with args.
  4300. set dummy chmod; ac_word=$2
  4301. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4302. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4303. if test "${ac_cv_path_CHMOD+set}" = set; then
  4304. echo $ECHO_N "(cached) $ECHO_C" >&6
  4305. else
  4306. case $CHMOD in
  4307. [\\/]* | ?:[\\/]*)
  4308. ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
  4309. ;;
  4310. *)
  4311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4312. as_dummy="$PATH:/bin:/usr/bin:/usr/ucb/bin"
  4313. for as_dir in $as_dummy
  4314. do
  4315. IFS=$as_save_IFS
  4316. test -z "$as_dir" && as_dir=.
  4317. for ac_exec_ext in '' $ac_executable_extensions; do
  4318. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4319. ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
  4320. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4321. break 2
  4322. fi
  4323. done
  4324. done
  4325. IFS=$as_save_IFS
  4326.  
  4327. test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD="/bin/chmod"
  4328. ;;
  4329. esac
  4330. fi
  4331. CHMOD=$ac_cv_path_CHMOD
  4332. if test -n "$CHMOD"; then
  4333. { echo "$as_me:$LINENO: result: $CHMOD" >&5
  4334. echo "${ECHO_T}$CHMOD" >&6; }
  4335. else
  4336. { echo "$as_me:$LINENO: result: no" >&5
  4337. echo "${ECHO_T}no" >&6; }
  4338. fi
  4339.  
  4340.  
  4341. # Extract the first word of "sed", so it can be a program name with args.
  4342. set dummy sed; ac_word=$2
  4343. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4344. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4345. if test "${ac_cv_path_SED+set}" = set; then
  4346. echo $ECHO_N "(cached) $ECHO_C" >&6
  4347. else
  4348. case $SED in
  4349. [\\/]* | ?:[\\/]*)
  4350. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  4351. ;;
  4352. *)
  4353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4354. as_dummy="$PATH:/bin:/usr/bin:/usr/ucb/bin"
  4355. for as_dir in $as_dummy
  4356. do
  4357. IFS=$as_save_IFS
  4358. test -z "$as_dir" && as_dir=.
  4359. for ac_exec_ext in '' $ac_executable_extensions; do
  4360. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4361. ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
  4362. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4363. break 2
  4364. fi
  4365. done
  4366. done
  4367. IFS=$as_save_IFS
  4368.  
  4369. test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed"
  4370. ;;
  4371. esac
  4372. fi
  4373. SED=$ac_cv_path_SED
  4374. if test -n "$SED"; then
  4375. { echo "$as_me:$LINENO: result: $SED" >&5
  4376. echo "${ECHO_T}$SED" >&6; }
  4377. else
  4378. { echo "$as_me:$LINENO: result: no" >&5
  4379. echo "${ECHO_T}no" >&6; }
  4380. fi
  4381.  
  4382.  
  4383. # Extract the first word of "ar", so it can be a program name with args.
  4384. set dummy ar; ac_word=$2
  4385. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4386. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4387. if test "${ac_cv_path_AR+set}" = set; then
  4388. echo $ECHO_N "(cached) $ECHO_C" >&6
  4389. else
  4390. case $AR in
  4391. [\\/]* | ?:[\\/]*)
  4392. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  4393. ;;
  4394. *)
  4395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4396. as_dummy="$PATH:/bin:/usr/bin:/usr/ucb/bin"
  4397. for as_dir in $as_dummy
  4398. do
  4399. IFS=$as_save_IFS
  4400. test -z "$as_dir" && as_dir=.
  4401. for ac_exec_ext in '' $ac_executable_extensions; do
  4402. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4403. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  4404. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4405. break 2
  4406. fi
  4407. done
  4408. done
  4409. IFS=$as_save_IFS
  4410.  
  4411. test -z "$ac_cv_path_AR" && ac_cv_path_AR="/usr/bin/ar"
  4412. ;;
  4413. esac
  4414. fi
  4415. AR=$ac_cv_path_AR
  4416. if test -n "$AR"; then
  4417. { echo "$as_me:$LINENO: result: $AR" >&5
  4418. echo "${ECHO_T}$AR" >&6; }
  4419. else
  4420. { echo "$as_me:$LINENO: result: no" >&5
  4421. echo "${ECHO_T}no" >&6; }
  4422. fi
  4423.  
  4424.  
  4425. # Extract the first word of "diff", so it can be a program name with args.
  4426. set dummy diff; ac_word=$2
  4427. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4428. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4429. if test "${ac_cv_path_DIFF+set}" = set; then
  4430. echo $ECHO_N "(cached) $ECHO_C" >&6
  4431. else
  4432. case $DIFF in
  4433. [\\/]* | ?:[\\/]*)
  4434. ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
  4435. ;;
  4436. *)
  4437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4438. as_dummy="$PATH:/bin:/usr/bin:/usr/ucb/bin"
  4439. for as_dir in $as_dummy
  4440. do
  4441. IFS=$as_save_IFS
  4442. test -z "$as_dir" && as_dir=.
  4443. for ac_exec_ext in '' $ac_executable_extensions; do
  4444. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4445. ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
  4446. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4447. break 2
  4448. fi
  4449. done
  4450. done
  4451. IFS=$as_save_IFS
  4452.  
  4453. test -z "$ac_cv_path_DIFF" && ac_cv_path_DIFF="/usr/bin/diff"
  4454. ;;
  4455. esac
  4456. fi
  4457. DIFF=$ac_cv_path_DIFF
  4458. if test -n "$DIFF"; then
  4459. { echo "$as_me:$LINENO: result: $DIFF" >&5
  4460. echo "${ECHO_T}$DIFF" >&6; }
  4461. else
  4462. { echo "$as_me:$LINENO: result: no" >&5
  4463. echo "${ECHO_T}no" >&6; }
  4464. fi
  4465.  
  4466.  
  4467.  
  4468.  
  4469.  
  4470.  
  4471. { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4472. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  4473. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4474. echo $ECHO_N "(cached) $ECHO_C" >&6
  4475. else
  4476. ac_check_lib_save_LIBS=$LIBS
  4477. LIBS="-lsocket $LIBS"
  4478. cat >conftest.$ac_ext <<_ACEOF
  4479. /* confdefs.h. */
  4480. _ACEOF
  4481. cat confdefs.h >>conftest.$ac_ext
  4482. cat >>conftest.$ac_ext <<_ACEOF
  4483. /* end confdefs.h. */
  4484.  
  4485. /* Override any GCC internal prototype to avoid an error.
  4486. Use char because int might match the return type of a GCC
  4487. builtin and then its argument prototype would still apply. */
  4488. #ifdef __cplusplus
  4489. extern "C"
  4490. #endif
  4491. char socket ();
  4492. int
  4493. main ()
  4494. {
  4495. return socket ();
  4496. ;
  4497. return 0;
  4498. }
  4499. _ACEOF
  4500. rm -f conftest.$ac_objext conftest$ac_exeext
  4501. if { (ac_try="$ac_link"
  4502. case "(($ac_try" in
  4503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4504. *) ac_try_echo=$ac_try;;
  4505. esac
  4506. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4507. (eval "$ac_link") 2>conftest.er1
  4508. ac_status=$?
  4509. grep -v '^ *+' conftest.er1 >conftest.err
  4510. rm -f conftest.er1
  4511. cat conftest.err >&5
  4512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4513. (exit $ac_status); } && {
  4514. test -z "$ac_c_werror_flag" ||
  4515. test ! -s conftest.err
  4516. } && test -s conftest$ac_exeext &&
  4517. $as_test_x conftest$ac_exeext; then
  4518. ac_cv_lib_socket_socket=yes
  4519. else
  4520. echo "$as_me: failed program was:" >&5
  4521. sed 's/^/| /' conftest.$ac_ext >&5
  4522.  
  4523. ac_cv_lib_socket_socket=no
  4524. fi
  4525.  
  4526. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4527. conftest$ac_exeext conftest.$ac_ext
  4528. LIBS=$ac_check_lib_save_LIBS
  4529. fi
  4530. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4531. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  4532. if test $ac_cv_lib_socket_socket = yes; then
  4533. cat >>confdefs.h <<_ACEOF
  4534. #define HAVE_LIBSOCKET 1
  4535. _ACEOF
  4536.  
  4537. LIBS="-lsocket $LIBS"
  4538.  
  4539. fi
  4540.  
  4541.  
  4542. { echo "$as_me:$LINENO: checking for connect in -linet" >&5
  4543. echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6; }
  4544. if test "${ac_cv_lib_inet_connect+set}" = set; then
  4545. echo $ECHO_N "(cached) $ECHO_C" >&6
  4546. else
  4547. ac_check_lib_save_LIBS=$LIBS
  4548. LIBS="-linet $LIBS"
  4549. cat >conftest.$ac_ext <<_ACEOF
  4550. /* confdefs.h. */
  4551. _ACEOF
  4552. cat confdefs.h >>conftest.$ac_ext
  4553. cat >>conftest.$ac_ext <<_ACEOF
  4554. /* end confdefs.h. */
  4555.  
  4556. /* Override any GCC internal prototype to avoid an error.
  4557. Use char because int might match the return type of a GCC
  4558. builtin and then its argument prototype would still apply. */
  4559. #ifdef __cplusplus
  4560. extern "C"
  4561. #endif
  4562. char connect ();
  4563. int
  4564. main ()
  4565. {
  4566. return connect ();
  4567. ;
  4568. return 0;
  4569. }
  4570. _ACEOF
  4571. rm -f conftest.$ac_objext conftest$ac_exeext
  4572. if { (ac_try="$ac_link"
  4573. case "(($ac_try" in
  4574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4575. *) ac_try_echo=$ac_try;;
  4576. esac
  4577. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4578. (eval "$ac_link") 2>conftest.er1
  4579. ac_status=$?
  4580. grep -v '^ *+' conftest.er1 >conftest.err
  4581. rm -f conftest.er1
  4582. cat conftest.err >&5
  4583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4584. (exit $ac_status); } && {
  4585. test -z "$ac_c_werror_flag" ||
  4586. test ! -s conftest.err
  4587. } && test -s conftest$ac_exeext &&
  4588. $as_test_x conftest$ac_exeext; then
  4589. ac_cv_lib_inet_connect=yes
  4590. else
  4591. echo "$as_me: failed program was:" >&5
  4592. sed 's/^/| /' conftest.$ac_ext >&5
  4593.  
  4594. ac_cv_lib_inet_connect=no
  4595. fi
  4596.  
  4597. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4598. conftest$ac_exeext conftest.$ac_ext
  4599. LIBS=$ac_check_lib_save_LIBS
  4600. fi
  4601. { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
  4602. echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6; }
  4603. if test $ac_cv_lib_inet_connect = yes; then
  4604. cat >>confdefs.h <<_ACEOF
  4605. #define HAVE_LIBINET 1
  4606. _ACEOF
  4607.  
  4608. LIBS="-linet $LIBS"
  4609.  
  4610. fi
  4611.  
  4612.  
  4613. { echo "$as_me:$LINENO: checking for t_accept in -lnsl" >&5
  4614. echo $ECHO_N "checking for t_accept in -lnsl... $ECHO_C" >&6; }
  4615. if test "${ac_cv_lib_nsl_t_accept+set}" = set; then
  4616. echo $ECHO_N "(cached) $ECHO_C" >&6
  4617. else
  4618. ac_check_lib_save_LIBS=$LIBS
  4619. LIBS="-lnsl $LIBS"
  4620. cat >conftest.$ac_ext <<_ACEOF
  4621. /* confdefs.h. */
  4622. _ACEOF
  4623. cat confdefs.h >>conftest.$ac_ext
  4624. cat >>conftest.$ac_ext <<_ACEOF
  4625. /* end confdefs.h. */
  4626.  
  4627. /* Override any GCC internal prototype to avoid an error.
  4628. Use char because int might match the return type of a GCC
  4629. builtin and then its argument prototype would still apply. */
  4630. #ifdef __cplusplus
  4631. extern "C"
  4632. #endif
  4633. char t_accept ();
  4634. int
  4635. main ()
  4636. {
  4637. return t_accept ();
  4638. ;
  4639. return 0;
  4640. }
  4641. _ACEOF
  4642. rm -f conftest.$ac_objext conftest$ac_exeext
  4643. if { (ac_try="$ac_link"
  4644. case "(($ac_try" in
  4645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4646. *) ac_try_echo=$ac_try;;
  4647. esac
  4648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4649. (eval "$ac_link") 2>conftest.er1
  4650. ac_status=$?
  4651. grep -v '^ *+' conftest.er1 >conftest.err
  4652. rm -f conftest.er1
  4653. cat conftest.err >&5
  4654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4655. (exit $ac_status); } && {
  4656. test -z "$ac_c_werror_flag" ||
  4657. test ! -s conftest.err
  4658. } && test -s conftest$ac_exeext &&
  4659. $as_test_x conftest$ac_exeext; then
  4660. ac_cv_lib_nsl_t_accept=yes
  4661. else
  4662. echo "$as_me: failed program was:" >&5
  4663. sed 's/^/| /' conftest.$ac_ext >&5
  4664.  
  4665. ac_cv_lib_nsl_t_accept=no
  4666. fi
  4667.  
  4668. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4669. conftest$ac_exeext conftest.$ac_ext
  4670. LIBS=$ac_check_lib_save_LIBS
  4671. fi
  4672. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_accept" >&5
  4673. echo "${ECHO_T}$ac_cv_lib_nsl_t_accept" >&6; }
  4674. if test $ac_cv_lib_nsl_t_accept = yes; then
  4675. cat >>confdefs.h <<_ACEOF
  4676. #define HAVE_LIBNSL 1
  4677. _ACEOF
  4678.  
  4679. LIBS="-lnsl $LIBS"
  4680.  
  4681. fi
  4682.  
  4683.  
  4684. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  4685. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  4686. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  4687. echo $ECHO_N "(cached) $ECHO_C" >&6
  4688. else
  4689. ac_check_lib_save_LIBS=$LIBS
  4690. LIBS="-ldl $LIBS"
  4691. cat >conftest.$ac_ext <<_ACEOF
  4692. /* confdefs.h. */
  4693. _ACEOF
  4694. cat confdefs.h >>conftest.$ac_ext
  4695. cat >>conftest.$ac_ext <<_ACEOF
  4696. /* end confdefs.h. */
  4697.  
  4698. /* Override any GCC internal prototype to avoid an error.
  4699. Use char because int might match the return type of a GCC
  4700. builtin and then its argument prototype would still apply. */
  4701. #ifdef __cplusplus
  4702. extern "C"
  4703. #endif
  4704. char dlopen ();
  4705. int
  4706. main ()
  4707. {
  4708. return dlopen ();
  4709. ;
  4710. return 0;
  4711. }
  4712. _ACEOF
  4713. rm -f conftest.$ac_objext conftest$ac_exeext
  4714. if { (ac_try="$ac_link"
  4715. case "(($ac_try" in
  4716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4717. *) ac_try_echo=$ac_try;;
  4718. esac
  4719. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4720. (eval "$ac_link") 2>conftest.er1
  4721. ac_status=$?
  4722. grep -v '^ *+' conftest.er1 >conftest.err
  4723. rm -f conftest.er1
  4724. cat conftest.err >&5
  4725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4726. (exit $ac_status); } && {
  4727. test -z "$ac_c_werror_flag" ||
  4728. test ! -s conftest.err
  4729. } && test -s conftest$ac_exeext &&
  4730. $as_test_x conftest$ac_exeext; then
  4731. ac_cv_lib_dl_dlopen=yes
  4732. else
  4733. echo "$as_me: failed program was:" >&5
  4734. sed 's/^/| /' conftest.$ac_ext >&5
  4735.  
  4736. ac_cv_lib_dl_dlopen=no
  4737. fi
  4738.  
  4739. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4740. conftest$ac_exeext conftest.$ac_ext
  4741. LIBS=$ac_check_lib_save_LIBS
  4742. fi
  4743. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  4744. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  4745. if test $ac_cv_lib_dl_dlopen = yes; then
  4746. cat >>confdefs.h <<_ACEOF
  4747. #define HAVE_LIBDL 1
  4748. _ACEOF
  4749.  
  4750. LIBS="-ldl $LIBS"
  4751.  
  4752. fi
  4753.  
  4754. #AC_PATH_X
  4755. #AC_PATH_XTRA
  4756.  
  4757.  
  4758.  
  4759.  
  4760.  
  4761.  
  4762.  
  4763. ac_header_dirent=no
  4764. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4765. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4766. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4767. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  4768. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4769. echo $ECHO_N "(cached) $ECHO_C" >&6
  4770. else
  4771. cat >conftest.$ac_ext <<_ACEOF
  4772. /* confdefs.h. */
  4773. _ACEOF
  4774. cat confdefs.h >>conftest.$ac_ext
  4775. cat >>conftest.$ac_ext <<_ACEOF
  4776. /* end confdefs.h. */
  4777. #include <sys/types.h>
  4778. #include <$ac_hdr>
  4779.  
  4780. int
  4781. main ()
  4782. {
  4783. if ((DIR *) 0)
  4784. return 0;
  4785. ;
  4786. return 0;
  4787. }
  4788. _ACEOF
  4789. rm -f conftest.$ac_objext
  4790. if { (ac_try="$ac_compile"
  4791. case "(($ac_try" in
  4792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4793. *) ac_try_echo=$ac_try;;
  4794. esac
  4795. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4796. (eval "$ac_compile") 2>conftest.er1
  4797. ac_status=$?
  4798. grep -v '^ *+' conftest.er1 >conftest.err
  4799. rm -f conftest.er1
  4800. cat conftest.err >&5
  4801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4802. (exit $ac_status); } && {
  4803. test -z "$ac_c_werror_flag" ||
  4804. test ! -s conftest.err
  4805. } && test -s conftest.$ac_objext; then
  4806. eval "$as_ac_Header=yes"
  4807. else
  4808. echo "$as_me: failed program was:" >&5
  4809. sed 's/^/| /' conftest.$ac_ext >&5
  4810.  
  4811. eval "$as_ac_Header=no"
  4812. fi
  4813.  
  4814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4815. fi
  4816. ac_res=`eval echo '${'$as_ac_Header'}'`
  4817. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4818. echo "${ECHO_T}$ac_res" >&6; }
  4819. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4820. cat >>confdefs.h <<_ACEOF
  4821. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4822. _ACEOF
  4823.  
  4824. ac_header_dirent=$ac_hdr; break
  4825. fi
  4826.  
  4827. done
  4828. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4829. if test $ac_header_dirent = dirent.h; then
  4830. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4831. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  4832. if test "${ac_cv_search_opendir+set}" = set; then
  4833. echo $ECHO_N "(cached) $ECHO_C" >&6
  4834. else
  4835. ac_func_search_save_LIBS=$LIBS
  4836. cat >conftest.$ac_ext <<_ACEOF
  4837. /* confdefs.h. */
  4838. _ACEOF
  4839. cat confdefs.h >>conftest.$ac_ext
  4840. cat >>conftest.$ac_ext <<_ACEOF
  4841. /* end confdefs.h. */
  4842.  
  4843. /* Override any GCC internal prototype to avoid an error.
  4844. Use char because int might match the return type of a GCC
  4845. builtin and then its argument prototype would still apply. */
  4846. #ifdef __cplusplus
  4847. extern "C"
  4848. #endif
  4849. char opendir ();
  4850. int
  4851. main ()
  4852. {
  4853. return opendir ();
  4854. ;
  4855. return 0;
  4856. }
  4857. _ACEOF
  4858. for ac_lib in '' dir; do
  4859. if test -z "$ac_lib"; then
  4860. ac_res="none required"
  4861. else
  4862. ac_res=-l$ac_lib
  4863. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4864. fi
  4865. rm -f conftest.$ac_objext conftest$ac_exeext
  4866. if { (ac_try="$ac_link"
  4867. case "(($ac_try" in
  4868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4869. *) ac_try_echo=$ac_try;;
  4870. esac
  4871. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4872. (eval "$ac_link") 2>conftest.er1
  4873. ac_status=$?
  4874. grep -v '^ *+' conftest.er1 >conftest.err
  4875. rm -f conftest.er1
  4876. cat conftest.err >&5
  4877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4878. (exit $ac_status); } && {
  4879. test -z "$ac_c_werror_flag" ||
  4880. test ! -s conftest.err
  4881. } && test -s conftest$ac_exeext &&
  4882. $as_test_x conftest$ac_exeext; then
  4883. ac_cv_search_opendir=$ac_res
  4884. else
  4885. echo "$as_me: failed program was:" >&5
  4886. sed 's/^/| /' conftest.$ac_ext >&5
  4887.  
  4888.  
  4889. fi
  4890.  
  4891. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4892. conftest$ac_exeext
  4893. if test "${ac_cv_search_opendir+set}" = set; then
  4894. break
  4895. fi
  4896. done
  4897. if test "${ac_cv_search_opendir+set}" = set; then
  4898. :
  4899. else
  4900. ac_cv_search_opendir=no
  4901. fi
  4902. rm conftest.$ac_ext
  4903. LIBS=$ac_func_search_save_LIBS
  4904. fi
  4905. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4906. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  4907. ac_res=$ac_cv_search_opendir
  4908. if test "$ac_res" != no; then
  4909. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4910.  
  4911. fi
  4912.  
  4913. else
  4914. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4915. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  4916. if test "${ac_cv_search_opendir+set}" = set; then
  4917. echo $ECHO_N "(cached) $ECHO_C" >&6
  4918. else
  4919. ac_func_search_save_LIBS=$LIBS
  4920. cat >conftest.$ac_ext <<_ACEOF
  4921. /* confdefs.h. */
  4922. _ACEOF
  4923. cat confdefs.h >>conftest.$ac_ext
  4924. cat >>conftest.$ac_ext <<_ACEOF
  4925. /* end confdefs.h. */
  4926.  
  4927. /* Override any GCC internal prototype to avoid an error.
  4928. Use char because int might match the return type of a GCC
  4929. builtin and then its argument prototype would still apply. */
  4930. #ifdef __cplusplus
  4931. extern "C"
  4932. #endif
  4933. char opendir ();
  4934. int
  4935. main ()
  4936. {
  4937. return opendir ();
  4938. ;
  4939. return 0;
  4940. }
  4941. _ACEOF
  4942. for ac_lib in '' x; do
  4943. if test -z "$ac_lib"; then
  4944. ac_res="none required"
  4945. else
  4946. ac_res=-l$ac_lib
  4947. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4948. fi
  4949. rm -f conftest.$ac_objext conftest$ac_exeext
  4950. if { (ac_try="$ac_link"
  4951. case "(($ac_try" in
  4952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4953. *) ac_try_echo=$ac_try;;
  4954. esac
  4955. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4956. (eval "$ac_link") 2>conftest.er1
  4957. ac_status=$?
  4958. grep -v '^ *+' conftest.er1 >conftest.err
  4959. rm -f conftest.er1
  4960. cat conftest.err >&5
  4961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4962. (exit $ac_status); } && {
  4963. test -z "$ac_c_werror_flag" ||
  4964. test ! -s conftest.err
  4965. } && test -s conftest$ac_exeext &&
  4966. $as_test_x conftest$ac_exeext; then
  4967. ac_cv_search_opendir=$ac_res
  4968. else
  4969. echo "$as_me: failed program was:" >&5
  4970. sed 's/^/| /' conftest.$ac_ext >&5
  4971.  
  4972.  
  4973. fi
  4974.  
  4975. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4976. conftest$ac_exeext
  4977. if test "${ac_cv_search_opendir+set}" = set; then
  4978. break
  4979. fi
  4980. done
  4981. if test "${ac_cv_search_opendir+set}" = set; then
  4982. :
  4983. else
  4984. ac_cv_search_opendir=no
  4985. fi
  4986. rm conftest.$ac_ext
  4987. LIBS=$ac_func_search_save_LIBS
  4988. fi
  4989. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4990. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  4991. ac_res=$ac_cv_search_opendir
  4992. if test "$ac_res" != no; then
  4993. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4994.  
  4995. fi
  4996.  
  4997. fi
  4998.  
  4999.  
  5000. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5001. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5002. if test "${ac_cv_path_GREP+set}" = set; then
  5003. echo $ECHO_N "(cached) $ECHO_C" >&6
  5004. else
  5005. # Extract the first word of "grep ggrep" to use in msg output
  5006. if test -z "$GREP"; then
  5007. set dummy grep ggrep; ac_prog_name=$2
  5008. if test "${ac_cv_path_GREP+set}" = set; then
  5009. echo $ECHO_N "(cached) $ECHO_C" >&6
  5010. else
  5011. ac_path_GREP_found=false
  5012. # Loop through the user's path and test for each of PROGNAME-LIST
  5013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5014. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5015. do
  5016. IFS=$as_save_IFS
  5017. test -z "$as_dir" && as_dir=.
  5018. for ac_prog in grep ggrep; do
  5019. for ac_exec_ext in '' $ac_executable_extensions; do
  5020. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5021. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5022. # Check for GNU ac_path_GREP and select it if it is found.
  5023. # Check for GNU $ac_path_GREP
  5024. case `"$ac_path_GREP" --version 2>&1` in
  5025. *GNU*)
  5026. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5027. *)
  5028. ac_count=0
  5029. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5030. while :
  5031. do
  5032. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5033. mv "conftest.tmp" "conftest.in"
  5034. cp "conftest.in" "conftest.nl"
  5035. echo 'GREP' >> "conftest.nl"
  5036. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5037. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5038. ac_count=`expr $ac_count + 1`
  5039. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5040. # Best one so far, save it but keep looking for a better one
  5041. ac_cv_path_GREP="$ac_path_GREP"
  5042. ac_path_GREP_max=$ac_count
  5043. fi
  5044. # 10*(2^10) chars as input seems more than enough
  5045. test $ac_count -gt 10 && break
  5046. done
  5047. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5048. esac
  5049.  
  5050.  
  5051. $ac_path_GREP_found && break 3
  5052. done
  5053. done
  5054.  
  5055. done
  5056. IFS=$as_save_IFS
  5057.  
  5058.  
  5059. fi
  5060.  
  5061. GREP="$ac_cv_path_GREP"
  5062. if test -z "$GREP"; then
  5063. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5064. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5065. { (exit 1); exit 1; }; }
  5066. fi
  5067.  
  5068. else
  5069. ac_cv_path_GREP=$GREP
  5070. fi
  5071.  
  5072.  
  5073. fi
  5074. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5075. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5076. GREP="$ac_cv_path_GREP"
  5077.  
  5078.  
  5079. { echo "$as_me:$LINENO: checking for egrep" >&5
  5080. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5081. if test "${ac_cv_path_EGREP+set}" = set; then
  5082. echo $ECHO_N "(cached) $ECHO_C" >&6
  5083. else
  5084. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5085. then ac_cv_path_EGREP="$GREP -E"
  5086. else
  5087. # Extract the first word of "egrep" to use in msg output
  5088. if test -z "$EGREP"; then
  5089. set dummy egrep; ac_prog_name=$2
  5090. if test "${ac_cv_path_EGREP+set}" = set; then
  5091. echo $ECHO_N "(cached) $ECHO_C" >&6
  5092. else
  5093. ac_path_EGREP_found=false
  5094. # Loop through the user's path and test for each of PROGNAME-LIST
  5095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5096. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5097. do
  5098. IFS=$as_save_IFS
  5099. test -z "$as_dir" && as_dir=.
  5100. for ac_prog in egrep; do
  5101. for ac_exec_ext in '' $ac_executable_extensions; do
  5102. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5103. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5104. # Check for GNU ac_path_EGREP and select it if it is found.
  5105. # Check for GNU $ac_path_EGREP
  5106. case `"$ac_path_EGREP" --version 2>&1` in
  5107. *GNU*)
  5108. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5109. *)
  5110. ac_count=0
  5111. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5112. while :
  5113. do
  5114. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5115. mv "conftest.tmp" "conftest.in"
  5116. cp "conftest.in" "conftest.nl"
  5117. echo 'EGREP' >> "conftest.nl"
  5118. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5119. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5120. ac_count=`expr $ac_count + 1`
  5121. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5122. # Best one so far, save it but keep looking for a better one
  5123. ac_cv_path_EGREP="$ac_path_EGREP"
  5124. ac_path_EGREP_max=$ac_count
  5125. fi
  5126. # 10*(2^10) chars as input seems more than enough
  5127. test $ac_count -gt 10 && break
  5128. done
  5129. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5130. esac
  5131.  
  5132.  
  5133. $ac_path_EGREP_found && break 3
  5134. done
  5135. done
  5136.  
  5137. done
  5138. IFS=$as_save_IFS
  5139.  
  5140.  
  5141. fi
  5142.  
  5143. EGREP="$ac_cv_path_EGREP"
  5144. if test -z "$EGREP"; then
  5145. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5146. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5147. { (exit 1); exit 1; }; }
  5148. fi
  5149.  
  5150. else
  5151. ac_cv_path_EGREP=$EGREP
  5152. fi
  5153.  
  5154.  
  5155. fi
  5156. fi
  5157. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5158. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5159. EGREP="$ac_cv_path_EGREP"
  5160.  
  5161.  
  5162. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5163. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5164. if test "${ac_cv_header_stdc+set}" = set; then
  5165. echo $ECHO_N "(cached) $ECHO_C" >&6
  5166. else
  5167. cat >conftest.$ac_ext <<_ACEOF
  5168. /* confdefs.h. */
  5169. _ACEOF
  5170. cat confdefs.h >>conftest.$ac_ext
  5171. cat >>conftest.$ac_ext <<_ACEOF
  5172. /* end confdefs.h. */
  5173. #include <stdlib.h>
  5174. #include <stdarg.h>
  5175. #include <string.h>
  5176. #include <float.h>
  5177.  
  5178. int
  5179. main ()
  5180. {
  5181.  
  5182. ;
  5183. return 0;
  5184. }
  5185. _ACEOF
  5186. rm -f conftest.$ac_objext
  5187. if { (ac_try="$ac_compile"
  5188. case "(($ac_try" in
  5189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5190. *) ac_try_echo=$ac_try;;
  5191. esac
  5192. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5193. (eval "$ac_compile") 2>conftest.er1
  5194. ac_status=$?
  5195. grep -v '^ *+' conftest.er1 >conftest.err
  5196. rm -f conftest.er1
  5197. cat conftest.err >&5
  5198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5199. (exit $ac_status); } && {
  5200. test -z "$ac_c_werror_flag" ||
  5201. test ! -s conftest.err
  5202. } && test -s conftest.$ac_objext; then
  5203. ac_cv_header_stdc=yes
  5204. else
  5205. echo "$as_me: failed program was:" >&5
  5206. sed 's/^/| /' conftest.$ac_ext >&5
  5207.  
  5208. ac_cv_header_stdc=no
  5209. fi
  5210.  
  5211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5212.  
  5213. if test $ac_cv_header_stdc = yes; then
  5214. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5215. cat >conftest.$ac_ext <<_ACEOF
  5216. /* confdefs.h. */
  5217. _ACEOF
  5218. cat confdefs.h >>conftest.$ac_ext
  5219. cat >>conftest.$ac_ext <<_ACEOF
  5220. /* end confdefs.h. */
  5221. #include <string.h>
  5222.  
  5223. _ACEOF
  5224. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5225. $EGREP "memchr" >/dev/null 2>&1; then
  5226. :
  5227. else
  5228. ac_cv_header_stdc=no
  5229. fi
  5230. rm -f conftest*
  5231.  
  5232. fi
  5233.  
  5234. if test $ac_cv_header_stdc = yes; then
  5235. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5236. cat >conftest.$ac_ext <<_ACEOF
  5237. /* confdefs.h. */
  5238. _ACEOF
  5239. cat confdefs.h >>conftest.$ac_ext
  5240. cat >>conftest.$ac_ext <<_ACEOF
  5241. /* end confdefs.h. */
  5242. #include <stdlib.h>
  5243.  
  5244. _ACEOF
  5245. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5246. $EGREP "free" >/dev/null 2>&1; then
  5247. :
  5248. else
  5249. ac_cv_header_stdc=no
  5250. fi
  5251. rm -f conftest*
  5252.  
  5253. fi
  5254.  
  5255. if test $ac_cv_header_stdc = yes; then
  5256. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5257. if test "$cross_compiling" = yes; then
  5258. :
  5259. else
  5260. cat >conftest.$ac_ext <<_ACEOF
  5261. /* confdefs.h. */
  5262. _ACEOF
  5263. cat confdefs.h >>conftest.$ac_ext
  5264. cat >>conftest.$ac_ext <<_ACEOF
  5265. /* end confdefs.h. */
  5266. #include <ctype.h>
  5267. #include <stdlib.h>
  5268. #if ((' ' & 0x0FF) == 0x020)
  5269. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5270. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5271. #else
  5272. # define ISLOWER(c) \
  5273. (('a' <= (c) && (c) <= 'i') \
  5274. || ('j' <= (c) && (c) <= 'r') \
  5275. || ('s' <= (c) && (c) <= 'z'))
  5276. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5277. #endif
  5278.  
  5279. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5280. int
  5281. main ()
  5282. {
  5283. int i;
  5284. for (i = 0; i < 256; i++)
  5285. if (XOR (islower (i), ISLOWER (i))
  5286. || toupper (i) != TOUPPER (i))
  5287. return 2;
  5288. return 0;
  5289. }
  5290. _ACEOF
  5291. rm -f conftest$ac_exeext
  5292. if { (ac_try="$ac_link"
  5293. case "(($ac_try" in
  5294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5295. *) ac_try_echo=$ac_try;;
  5296. esac
  5297. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5298. (eval "$ac_link") 2>&5
  5299. ac_status=$?
  5300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5301. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5302. { (case "(($ac_try" in
  5303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5304. *) ac_try_echo=$ac_try;;
  5305. esac
  5306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5307. (eval "$ac_try") 2>&5
  5308. ac_status=$?
  5309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5310. (exit $ac_status); }; }; then
  5311. :
  5312. else
  5313. echo "$as_me: program exited with status $ac_status" >&5
  5314. echo "$as_me: failed program was:" >&5
  5315. sed 's/^/| /' conftest.$ac_ext >&5
  5316.  
  5317. ( exit $ac_status )
  5318. ac_cv_header_stdc=no
  5319. fi
  5320. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5321. fi
  5322.  
  5323.  
  5324. fi
  5325. fi
  5326. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5327. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5328. if test $ac_cv_header_stdc = yes; then
  5329.  
  5330. cat >>confdefs.h <<\_ACEOF
  5331. #define STDC_HEADERS 1
  5332. _ACEOF
  5333.  
  5334. fi
  5335.  
  5336. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5337. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  5338. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  5339. echo $ECHO_N "(cached) $ECHO_C" >&6
  5340. else
  5341. cat >conftest.$ac_ext <<_ACEOF
  5342. /* confdefs.h. */
  5343. _ACEOF
  5344. cat confdefs.h >>conftest.$ac_ext
  5345. cat >>conftest.$ac_ext <<_ACEOF
  5346. /* end confdefs.h. */
  5347. #include <sys/types.h>
  5348. #include <sys/wait.h>
  5349. #ifndef WEXITSTATUS
  5350. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  5351. #endif
  5352. #ifndef WIFEXITED
  5353. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5354. #endif
  5355.  
  5356. int
  5357. main ()
  5358. {
  5359. int s;
  5360. wait (&s);
  5361. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5362. ;
  5363. return 0;
  5364. }
  5365. _ACEOF
  5366. rm -f conftest.$ac_objext
  5367. if { (ac_try="$ac_compile"
  5368. case "(($ac_try" in
  5369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5370. *) ac_try_echo=$ac_try;;
  5371. esac
  5372. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5373. (eval "$ac_compile") 2>conftest.er1
  5374. ac_status=$?
  5375. grep -v '^ *+' conftest.er1 >conftest.err
  5376. rm -f conftest.er1
  5377. cat conftest.err >&5
  5378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5379. (exit $ac_status); } && {
  5380. test -z "$ac_c_werror_flag" ||
  5381. test ! -s conftest.err
  5382. } && test -s conftest.$ac_objext; then
  5383. ac_cv_header_sys_wait_h=yes
  5384. else
  5385. echo "$as_me: failed program was:" >&5
  5386. sed 's/^/| /' conftest.$ac_ext >&5
  5387.  
  5388. ac_cv_header_sys_wait_h=no
  5389. fi
  5390.  
  5391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5392. fi
  5393. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5394. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  5395. if test $ac_cv_header_sys_wait_h = yes; then
  5396.  
  5397. cat >>confdefs.h <<\_ACEOF
  5398. #define HAVE_SYS_WAIT_H 1
  5399. _ACEOF
  5400.  
  5401. fi
  5402.  
  5403.  
  5404. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5405.  
  5406.  
  5407.  
  5408.  
  5409.  
  5410.  
  5411.  
  5412.  
  5413.  
  5414. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5415. inttypes.h stdint.h unistd.h
  5416. do
  5417. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5418. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5419. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5420. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5421. echo $ECHO_N "(cached) $ECHO_C" >&6
  5422. else
  5423. cat >conftest.$ac_ext <<_ACEOF
  5424. /* confdefs.h. */
  5425. _ACEOF
  5426. cat confdefs.h >>conftest.$ac_ext
  5427. cat >>conftest.$ac_ext <<_ACEOF
  5428. /* end confdefs.h. */
  5429. $ac_includes_default
  5430.  
  5431. #include <$ac_header>
  5432. _ACEOF
  5433. rm -f conftest.$ac_objext
  5434. if { (ac_try="$ac_compile"
  5435. case "(($ac_try" in
  5436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5437. *) ac_try_echo=$ac_try;;
  5438. esac
  5439. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5440. (eval "$ac_compile") 2>conftest.er1
  5441. ac_status=$?
  5442. grep -v '^ *+' conftest.er1 >conftest.err
  5443. rm -f conftest.er1
  5444. cat conftest.err >&5
  5445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5446. (exit $ac_status); } && {
  5447. test -z "$ac_c_werror_flag" ||
  5448. test ! -s conftest.err
  5449. } && test -s conftest.$ac_objext; then
  5450. eval "$as_ac_Header=yes"
  5451. else
  5452. echo "$as_me: failed program was:" >&5
  5453. sed 's/^/| /' conftest.$ac_ext >&5
  5454.  
  5455. eval "$as_ac_Header=no"
  5456. fi
  5457.  
  5458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5459. fi
  5460. ac_res=`eval echo '${'$as_ac_Header'}'`
  5461. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5462. echo "${ECHO_T}$ac_res" >&6; }
  5463. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5464. cat >>confdefs.h <<_ACEOF
  5465. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5466. _ACEOF
  5467.  
  5468. fi
  5469.  
  5470. done
  5471.  
  5472.  
  5473.  
  5474. for ac_header in stdio.h
  5475. do
  5476. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5477. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5478. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5479. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5480. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5481. echo $ECHO_N "(cached) $ECHO_C" >&6
  5482. fi
  5483. ac_res=`eval echo '${'$as_ac_Header'}'`
  5484. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5485. echo "${ECHO_T}$ac_res" >&6; }
  5486. else
  5487. # Is the header compilable?
  5488. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5489. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5490. cat >conftest.$ac_ext <<_ACEOF
  5491. /* confdefs.h. */
  5492. _ACEOF
  5493. cat confdefs.h >>conftest.$ac_ext
  5494. cat >>conftest.$ac_ext <<_ACEOF
  5495. /* end confdefs.h. */
  5496. $ac_includes_default
  5497. #include <$ac_header>
  5498. _ACEOF
  5499. rm -f conftest.$ac_objext
  5500. if { (ac_try="$ac_compile"
  5501. case "(($ac_try" in
  5502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5503. *) ac_try_echo=$ac_try;;
  5504. esac
  5505. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5506. (eval "$ac_compile") 2>conftest.er1
  5507. ac_status=$?
  5508. grep -v '^ *+' conftest.er1 >conftest.err
  5509. rm -f conftest.er1
  5510. cat conftest.err >&5
  5511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5512. (exit $ac_status); } && {
  5513. test -z "$ac_c_werror_flag" ||
  5514. test ! -s conftest.err
  5515. } && test -s conftest.$ac_objext; then
  5516. ac_header_compiler=yes
  5517. else
  5518. echo "$as_me: failed program was:" >&5
  5519. sed 's/^/| /' conftest.$ac_ext >&5
  5520.  
  5521. ac_header_compiler=no
  5522. fi
  5523.  
  5524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5525. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5526. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5527.  
  5528. # Is the header present?
  5529. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5530. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5531. cat >conftest.$ac_ext <<_ACEOF
  5532. /* confdefs.h. */
  5533. _ACEOF
  5534. cat confdefs.h >>conftest.$ac_ext
  5535. cat >>conftest.$ac_ext <<_ACEOF
  5536. /* end confdefs.h. */
  5537. #include <$ac_header>
  5538. _ACEOF
  5539. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5540. case "(($ac_try" in
  5541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5542. *) ac_try_echo=$ac_try;;
  5543. esac
  5544. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5545. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5546. ac_status=$?
  5547. grep -v '^ *+' conftest.er1 >conftest.err
  5548. rm -f conftest.er1
  5549. cat conftest.err >&5
  5550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5551. (exit $ac_status); } >/dev/null && {
  5552. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5553. test ! -s conftest.err
  5554. }; then
  5555. ac_header_preproc=yes
  5556. else
  5557. echo "$as_me: failed program was:" >&5
  5558. sed 's/^/| /' conftest.$ac_ext >&5
  5559.  
  5560. ac_header_preproc=no
  5561. fi
  5562.  
  5563. rm -f conftest.err conftest.$ac_ext
  5564. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5565. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5566.  
  5567. # So? What about this header?
  5568. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5569. yes:no: )
  5570. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5571. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5572. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5573. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5574. ac_header_preproc=yes
  5575. ;;
  5576. no:yes:* )
  5577. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5578. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5579. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5580. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5581. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5582. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5583. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5584. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5585. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5586. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5587. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5588. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5589.  
  5590. ;;
  5591. esac
  5592. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5593. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5594. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5595. echo $ECHO_N "(cached) $ECHO_C" >&6
  5596. else
  5597. eval "$as_ac_Header=\$ac_header_preproc"
  5598. fi
  5599. ac_res=`eval echo '${'$as_ac_Header'}'`
  5600. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5601. echo "${ECHO_T}$ac_res" >&6; }
  5602.  
  5603. fi
  5604. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5605. cat >>confdefs.h <<_ACEOF
  5606. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5607. _ACEOF
  5608.  
  5609. fi
  5610.  
  5611. done
  5612.  
  5613.  
  5614.  
  5615. for ac_header in sys/types.h types.h
  5616. do
  5617. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5618. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5619. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5620. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5621. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5622. echo $ECHO_N "(cached) $ECHO_C" >&6
  5623. fi
  5624. ac_res=`eval echo '${'$as_ac_Header'}'`
  5625. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5626. echo "${ECHO_T}$ac_res" >&6; }
  5627. else
  5628. # Is the header compilable?
  5629. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5630. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5631. cat >conftest.$ac_ext <<_ACEOF
  5632. /* confdefs.h. */
  5633. _ACEOF
  5634. cat confdefs.h >>conftest.$ac_ext
  5635. cat >>conftest.$ac_ext <<_ACEOF
  5636. /* end confdefs.h. */
  5637. $ac_includes_default
  5638. #include <$ac_header>
  5639. _ACEOF
  5640. rm -f conftest.$ac_objext
  5641. if { (ac_try="$ac_compile"
  5642. case "(($ac_try" in
  5643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5644. *) ac_try_echo=$ac_try;;
  5645. esac
  5646. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5647. (eval "$ac_compile") 2>conftest.er1
  5648. ac_status=$?
  5649. grep -v '^ *+' conftest.er1 >conftest.err
  5650. rm -f conftest.er1
  5651. cat conftest.err >&5
  5652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5653. (exit $ac_status); } && {
  5654. test -z "$ac_c_werror_flag" ||
  5655. test ! -s conftest.err
  5656. } && test -s conftest.$ac_objext; then
  5657. ac_header_compiler=yes
  5658. else
  5659. echo "$as_me: failed program was:" >&5
  5660. sed 's/^/| /' conftest.$ac_ext >&5
  5661.  
  5662. ac_header_compiler=no
  5663. fi
  5664.  
  5665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5666. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5667. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5668.  
  5669. # Is the header present?
  5670. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5671. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5672. cat >conftest.$ac_ext <<_ACEOF
  5673. /* confdefs.h. */
  5674. _ACEOF
  5675. cat confdefs.h >>conftest.$ac_ext
  5676. cat >>conftest.$ac_ext <<_ACEOF
  5677. /* end confdefs.h. */
  5678. #include <$ac_header>
  5679. _ACEOF
  5680. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5681. case "(($ac_try" in
  5682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5683. *) ac_try_echo=$ac_try;;
  5684. esac
  5685. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5686. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5687. ac_status=$?
  5688. grep -v '^ *+' conftest.er1 >conftest.err
  5689. rm -f conftest.er1
  5690. cat conftest.err >&5
  5691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5692. (exit $ac_status); } >/dev/null && {
  5693. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5694. test ! -s conftest.err
  5695. }; then
  5696. ac_header_preproc=yes
  5697. else
  5698. echo "$as_me: failed program was:" >&5
  5699. sed 's/^/| /' conftest.$ac_ext >&5
  5700.  
  5701. ac_header_preproc=no
  5702. fi
  5703.  
  5704. rm -f conftest.err conftest.$ac_ext
  5705. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5706. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5707.  
  5708. # So? What about this header?
  5709. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5710. yes:no: )
  5711. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5712. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5713. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5714. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5715. ac_header_preproc=yes
  5716. ;;
  5717. no:yes:* )
  5718. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5719. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5720. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5721. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5722. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5723. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5724. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5725. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5726. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5727. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5728. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5729. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5730.  
  5731. ;;
  5732. esac
  5733. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5734. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5735. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5736. echo $ECHO_N "(cached) $ECHO_C" >&6
  5737. else
  5738. eval "$as_ac_Header=\$ac_header_preproc"
  5739. fi
  5740. ac_res=`eval echo '${'$as_ac_Header'}'`
  5741. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5742. echo "${ECHO_T}$ac_res" >&6; }
  5743.  
  5744. fi
  5745. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5746. cat >>confdefs.h <<_ACEOF
  5747. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5748. _ACEOF
  5749.  
  5750. fi
  5751.  
  5752. done
  5753.  
  5754.  
  5755.  
  5756. for ac_header in sys/unistd.h unistd.h
  5757. do
  5758. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5759. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5760. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5761. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5762. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5763. echo $ECHO_N "(cached) $ECHO_C" >&6
  5764. fi
  5765. ac_res=`eval echo '${'$as_ac_Header'}'`
  5766. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5767. echo "${ECHO_T}$ac_res" >&6; }
  5768. else
  5769. # Is the header compilable?
  5770. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5771. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5772. cat >conftest.$ac_ext <<_ACEOF
  5773. /* confdefs.h. */
  5774. _ACEOF
  5775. cat confdefs.h >>conftest.$ac_ext
  5776. cat >>conftest.$ac_ext <<_ACEOF
  5777. /* end confdefs.h. */
  5778. $ac_includes_default
  5779. #include <$ac_header>
  5780. _ACEOF
  5781. rm -f conftest.$ac_objext
  5782. if { (ac_try="$ac_compile"
  5783. case "(($ac_try" in
  5784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5785. *) ac_try_echo=$ac_try;;
  5786. esac
  5787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5788. (eval "$ac_compile") 2>conftest.er1
  5789. ac_status=$?
  5790. grep -v '^ *+' conftest.er1 >conftest.err
  5791. rm -f conftest.er1
  5792. cat conftest.err >&5
  5793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5794. (exit $ac_status); } && {
  5795. test -z "$ac_c_werror_flag" ||
  5796. test ! -s conftest.err
  5797. } && test -s conftest.$ac_objext; then
  5798. ac_header_compiler=yes
  5799. else
  5800. echo "$as_me: failed program was:" >&5
  5801. sed 's/^/| /' conftest.$ac_ext >&5
  5802.  
  5803. ac_header_compiler=no
  5804. fi
  5805.  
  5806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5807. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5808. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5809.  
  5810. # Is the header present?
  5811. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5812. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5813. cat >conftest.$ac_ext <<_ACEOF
  5814. /* confdefs.h. */
  5815. _ACEOF
  5816. cat confdefs.h >>conftest.$ac_ext
  5817. cat >>conftest.$ac_ext <<_ACEOF
  5818. /* end confdefs.h. */
  5819. #include <$ac_header>
  5820. _ACEOF
  5821. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5822. case "(($ac_try" in
  5823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5824. *) ac_try_echo=$ac_try;;
  5825. esac
  5826. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5827. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5828. ac_status=$?
  5829. grep -v '^ *+' conftest.er1 >conftest.err
  5830. rm -f conftest.er1
  5831. cat conftest.err >&5
  5832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5833. (exit $ac_status); } >/dev/null && {
  5834. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5835. test ! -s conftest.err
  5836. }; then
  5837. ac_header_preproc=yes
  5838. else
  5839. echo "$as_me: failed program was:" >&5
  5840. sed 's/^/| /' conftest.$ac_ext >&5
  5841.  
  5842. ac_header_preproc=no
  5843. fi
  5844.  
  5845. rm -f conftest.err conftest.$ac_ext
  5846. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5847. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5848.  
  5849. # So? What about this header?
  5850. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5851. yes:no: )
  5852. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5853. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5854. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5855. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5856. ac_header_preproc=yes
  5857. ;;
  5858. no:yes:* )
  5859. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5860. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5861. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5862. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5863. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5864. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5865. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5866. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5867. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5868. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5869. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5870. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5871.  
  5872. ;;
  5873. esac
  5874. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5875. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5876. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5877. echo $ECHO_N "(cached) $ECHO_C" >&6
  5878. else
  5879. eval "$as_ac_Header=\$ac_header_preproc"
  5880. fi
  5881. ac_res=`eval echo '${'$as_ac_Header'}'`
  5882. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5883. echo "${ECHO_T}$ac_res" >&6; }
  5884.  
  5885. fi
  5886. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5887. cat >>confdefs.h <<_ACEOF
  5888. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5889. _ACEOF
  5890.  
  5891. fi
  5892.  
  5893. done
  5894.  
  5895.  
  5896.  
  5897. for ac_header in sys/fcntl.h fcntl.h
  5898. do
  5899. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5900. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5901. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5902. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5903. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5904. echo $ECHO_N "(cached) $ECHO_C" >&6
  5905. fi
  5906. ac_res=`eval echo '${'$as_ac_Header'}'`
  5907. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5908. echo "${ECHO_T}$ac_res" >&6; }
  5909. else
  5910. # Is the header compilable?
  5911. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5912. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5913. cat >conftest.$ac_ext <<_ACEOF
  5914. /* confdefs.h. */
  5915. _ACEOF
  5916. cat confdefs.h >>conftest.$ac_ext
  5917. cat >>conftest.$ac_ext <<_ACEOF
  5918. /* end confdefs.h. */
  5919. $ac_includes_default
  5920. #include <$ac_header>
  5921. _ACEOF
  5922. rm -f conftest.$ac_objext
  5923. if { (ac_try="$ac_compile"
  5924. case "(($ac_try" in
  5925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5926. *) ac_try_echo=$ac_try;;
  5927. esac
  5928. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5929. (eval "$ac_compile") 2>conftest.er1
  5930. ac_status=$?
  5931. grep -v '^ *+' conftest.er1 >conftest.err
  5932. rm -f conftest.er1
  5933. cat conftest.err >&5
  5934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5935. (exit $ac_status); } && {
  5936. test -z "$ac_c_werror_flag" ||
  5937. test ! -s conftest.err
  5938. } && test -s conftest.$ac_objext; then
  5939. ac_header_compiler=yes
  5940. else
  5941. echo "$as_me: failed program was:" >&5
  5942. sed 's/^/| /' conftest.$ac_ext >&5
  5943.  
  5944. ac_header_compiler=no
  5945. fi
  5946.  
  5947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5948. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5949. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5950.  
  5951. # Is the header present?
  5952. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5953. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5954. cat >conftest.$ac_ext <<_ACEOF
  5955. /* confdefs.h. */
  5956. _ACEOF
  5957. cat confdefs.h >>conftest.$ac_ext
  5958. cat >>conftest.$ac_ext <<_ACEOF
  5959. /* end confdefs.h. */
  5960. #include <$ac_header>
  5961. _ACEOF
  5962. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5963. case "(($ac_try" in
  5964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5965. *) ac_try_echo=$ac_try;;
  5966. esac
  5967. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5968. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5969. ac_status=$?
  5970. grep -v '^ *+' conftest.er1 >conftest.err
  5971. rm -f conftest.er1
  5972. cat conftest.err >&5
  5973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5974. (exit $ac_status); } >/dev/null && {
  5975. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5976. test ! -s conftest.err
  5977. }; then
  5978. ac_header_preproc=yes
  5979. else
  5980. echo "$as_me: failed program was:" >&5
  5981. sed 's/^/| /' conftest.$ac_ext >&5
  5982.  
  5983. ac_header_preproc=no
  5984. fi
  5985.  
  5986. rm -f conftest.err conftest.$ac_ext
  5987. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5988. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5989.  
  5990. # So? What about this header?
  5991. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5992. yes:no: )
  5993. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5994. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5995. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5996. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5997. ac_header_preproc=yes
  5998. ;;
  5999. no:yes:* )
  6000. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6001. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6002. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6003. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6004. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6005. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6006. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6007. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6008. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6009. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6010. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6011. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6012.  
  6013. ;;
  6014. esac
  6015. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6016. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6017. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6018. echo $ECHO_N "(cached) $ECHO_C" >&6
  6019. else
  6020. eval "$as_ac_Header=\$ac_header_preproc"
  6021. fi
  6022. ac_res=`eval echo '${'$as_ac_Header'}'`
  6023. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6024. echo "${ECHO_T}$ac_res" >&6; }
  6025.  
  6026. fi
  6027. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6028. cat >>confdefs.h <<_ACEOF
  6029. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6030. _ACEOF
  6031.  
  6032. fi
  6033.  
  6034. done
  6035.  
  6036.  
  6037.  
  6038. for ac_header in sys/limits.h limits.h
  6039. do
  6040. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6041. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6042. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6043. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6044. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6045. echo $ECHO_N "(cached) $ECHO_C" >&6
  6046. fi
  6047. ac_res=`eval echo '${'$as_ac_Header'}'`
  6048. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6049. echo "${ECHO_T}$ac_res" >&6; }
  6050. else
  6051. # Is the header compilable?
  6052. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6053. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6054. cat >conftest.$ac_ext <<_ACEOF
  6055. /* confdefs.h. */
  6056. _ACEOF
  6057. cat confdefs.h >>conftest.$ac_ext
  6058. cat >>conftest.$ac_ext <<_ACEOF
  6059. /* end confdefs.h. */
  6060. $ac_includes_default
  6061. #include <$ac_header>
  6062. _ACEOF
  6063. rm -f conftest.$ac_objext
  6064. if { (ac_try="$ac_compile"
  6065. case "(($ac_try" in
  6066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6067. *) ac_try_echo=$ac_try;;
  6068. esac
  6069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6070. (eval "$ac_compile") 2>conftest.er1
  6071. ac_status=$?
  6072. grep -v '^ *+' conftest.er1 >conftest.err
  6073. rm -f conftest.er1
  6074. cat conftest.err >&5
  6075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6076. (exit $ac_status); } && {
  6077. test -z "$ac_c_werror_flag" ||
  6078. test ! -s conftest.err
  6079. } && test -s conftest.$ac_objext; then
  6080. ac_header_compiler=yes
  6081. else
  6082. echo "$as_me: failed program was:" >&5
  6083. sed 's/^/| /' conftest.$ac_ext >&5
  6084.  
  6085. ac_header_compiler=no
  6086. fi
  6087.  
  6088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6089. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6090. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6091.  
  6092. # Is the header present?
  6093. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6094. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6095. cat >conftest.$ac_ext <<_ACEOF
  6096. /* confdefs.h. */
  6097. _ACEOF
  6098. cat confdefs.h >>conftest.$ac_ext
  6099. cat >>conftest.$ac_ext <<_ACEOF
  6100. /* end confdefs.h. */
  6101. #include <$ac_header>
  6102. _ACEOF
  6103. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6104. case "(($ac_try" in
  6105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6106. *) ac_try_echo=$ac_try;;
  6107. esac
  6108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6109. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6110. ac_status=$?
  6111. grep -v '^ *+' conftest.er1 >conftest.err
  6112. rm -f conftest.er1
  6113. cat conftest.err >&5
  6114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6115. (exit $ac_status); } >/dev/null && {
  6116. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6117. test ! -s conftest.err
  6118. }; then
  6119. ac_header_preproc=yes
  6120. else
  6121. echo "$as_me: failed program was:" >&5
  6122. sed 's/^/| /' conftest.$ac_ext >&5
  6123.  
  6124. ac_header_preproc=no
  6125. fi
  6126.  
  6127. rm -f conftest.err conftest.$ac_ext
  6128. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6129. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6130.  
  6131. # So? What about this header?
  6132. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6133. yes:no: )
  6134. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6135. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6136. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6137. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6138. ac_header_preproc=yes
  6139. ;;
  6140. no:yes:* )
  6141. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6142. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6143. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6144. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6145. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6146. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6147. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6148. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6149. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6150. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6151. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6152. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6153.  
  6154. ;;
  6155. esac
  6156. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6157. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6158. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6159. echo $ECHO_N "(cached) $ECHO_C" >&6
  6160. else
  6161. eval "$as_ac_Header=\$ac_header_preproc"
  6162. fi
  6163. ac_res=`eval echo '${'$as_ac_Header'}'`
  6164. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6165. echo "${ECHO_T}$ac_res" >&6; }
  6166.  
  6167. fi
  6168. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6169. cat >>confdefs.h <<_ACEOF
  6170. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6171. _ACEOF
  6172.  
  6173. fi
  6174.  
  6175. done
  6176.  
  6177.  
  6178.  
  6179. for ac_header in sys/stat.h stat.h
  6180. do
  6181. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6182. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6183. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6184. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6185. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6186. echo $ECHO_N "(cached) $ECHO_C" >&6
  6187. fi
  6188. ac_res=`eval echo '${'$as_ac_Header'}'`
  6189. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6190. echo "${ECHO_T}$ac_res" >&6; }
  6191. else
  6192. # Is the header compilable?
  6193. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6194. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6195. cat >conftest.$ac_ext <<_ACEOF
  6196. /* confdefs.h. */
  6197. _ACEOF
  6198. cat confdefs.h >>conftest.$ac_ext
  6199. cat >>conftest.$ac_ext <<_ACEOF
  6200. /* end confdefs.h. */
  6201. $ac_includes_default
  6202. #include <$ac_header>
  6203. _ACEOF
  6204. rm -f conftest.$ac_objext
  6205. if { (ac_try="$ac_compile"
  6206. case "(($ac_try" in
  6207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6208. *) ac_try_echo=$ac_try;;
  6209. esac
  6210. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6211. (eval "$ac_compile") 2>conftest.er1
  6212. ac_status=$?
  6213. grep -v '^ *+' conftest.er1 >conftest.err
  6214. rm -f conftest.er1
  6215. cat conftest.err >&5
  6216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6217. (exit $ac_status); } && {
  6218. test -z "$ac_c_werror_flag" ||
  6219. test ! -s conftest.err
  6220. } && test -s conftest.$ac_objext; then
  6221. ac_header_compiler=yes
  6222. else
  6223. echo "$as_me: failed program was:" >&5
  6224. sed 's/^/| /' conftest.$ac_ext >&5
  6225.  
  6226. ac_header_compiler=no
  6227. fi
  6228.  
  6229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6230. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6231. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6232.  
  6233. # Is the header present?
  6234. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6235. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6236. cat >conftest.$ac_ext <<_ACEOF
  6237. /* confdefs.h. */
  6238. _ACEOF
  6239. cat confdefs.h >>conftest.$ac_ext
  6240. cat >>conftest.$ac_ext <<_ACEOF
  6241. /* end confdefs.h. */
  6242. #include <$ac_header>
  6243. _ACEOF
  6244. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6245. case "(($ac_try" in
  6246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6247. *) ac_try_echo=$ac_try;;
  6248. esac
  6249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6250. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6251. ac_status=$?
  6252. grep -v '^ *+' conftest.er1 >conftest.err
  6253. rm -f conftest.er1
  6254. cat conftest.err >&5
  6255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6256. (exit $ac_status); } >/dev/null && {
  6257. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6258. test ! -s conftest.err
  6259. }; then
  6260. ac_header_preproc=yes
  6261. else
  6262. echo "$as_me: failed program was:" >&5
  6263. sed 's/^/| /' conftest.$ac_ext >&5
  6264.  
  6265. ac_header_preproc=no
  6266. fi
  6267.  
  6268. rm -f conftest.err conftest.$ac_ext
  6269. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6270. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6271.  
  6272. # So? What about this header?
  6273. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6274. yes:no: )
  6275. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6276. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6277. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6278. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6279. ac_header_preproc=yes
  6280. ;;
  6281. no:yes:* )
  6282. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6283. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6284. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6285. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6286. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6287. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6288. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6289. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6290. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6291. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6292. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6293. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6294.  
  6295. ;;
  6296. esac
  6297. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6298. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6299. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6300. echo $ECHO_N "(cached) $ECHO_C" >&6
  6301. else
  6302. eval "$as_ac_Header=\$ac_header_preproc"
  6303. fi
  6304. ac_res=`eval echo '${'$as_ac_Header'}'`
  6305. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6306. echo "${ECHO_T}$ac_res" >&6; }
  6307.  
  6308. fi
  6309. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6310. cat >>confdefs.h <<_ACEOF
  6311. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6312. _ACEOF
  6313.  
  6314. fi
  6315.  
  6316. done
  6317.  
  6318.  
  6319. for ac_header in sys/file.h
  6320. do
  6321. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6322. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6323. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6324. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6325. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6326. echo $ECHO_N "(cached) $ECHO_C" >&6
  6327. fi
  6328. ac_res=`eval echo '${'$as_ac_Header'}'`
  6329. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6330. echo "${ECHO_T}$ac_res" >&6; }
  6331. else
  6332. # Is the header compilable?
  6333. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6334. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6335. cat >conftest.$ac_ext <<_ACEOF
  6336. /* confdefs.h. */
  6337. _ACEOF
  6338. cat confdefs.h >>conftest.$ac_ext
  6339. cat >>conftest.$ac_ext <<_ACEOF
  6340. /* end confdefs.h. */
  6341. $ac_includes_default
  6342. #include <$ac_header>
  6343. _ACEOF
  6344. rm -f conftest.$ac_objext
  6345. if { (ac_try="$ac_compile"
  6346. case "(($ac_try" in
  6347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6348. *) ac_try_echo=$ac_try;;
  6349. esac
  6350. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6351. (eval "$ac_compile") 2>conftest.er1
  6352. ac_status=$?
  6353. grep -v '^ *+' conftest.er1 >conftest.err
  6354. rm -f conftest.er1
  6355. cat conftest.err >&5
  6356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6357. (exit $ac_status); } && {
  6358. test -z "$ac_c_werror_flag" ||
  6359. test ! -s conftest.err
  6360. } && test -s conftest.$ac_objext; then
  6361. ac_header_compiler=yes
  6362. else
  6363. echo "$as_me: failed program was:" >&5
  6364. sed 's/^/| /' conftest.$ac_ext >&5
  6365.  
  6366. ac_header_compiler=no
  6367. fi
  6368.  
  6369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6370. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6371. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6372.  
  6373. # Is the header present?
  6374. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6375. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6376. cat >conftest.$ac_ext <<_ACEOF
  6377. /* confdefs.h. */
  6378. _ACEOF
  6379. cat confdefs.h >>conftest.$ac_ext
  6380. cat >>conftest.$ac_ext <<_ACEOF
  6381. /* end confdefs.h. */
  6382. #include <$ac_header>
  6383. _ACEOF
  6384. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6385. case "(($ac_try" in
  6386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6387. *) ac_try_echo=$ac_try;;
  6388. esac
  6389. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6390. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6391. ac_status=$?
  6392. grep -v '^ *+' conftest.er1 >conftest.err
  6393. rm -f conftest.er1
  6394. cat conftest.err >&5
  6395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6396. (exit $ac_status); } >/dev/null && {
  6397. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6398. test ! -s conftest.err
  6399. }; then
  6400. ac_header_preproc=yes
  6401. else
  6402. echo "$as_me: failed program was:" >&5
  6403. sed 's/^/| /' conftest.$ac_ext >&5
  6404.  
  6405. ac_header_preproc=no
  6406. fi
  6407.  
  6408. rm -f conftest.err conftest.$ac_ext
  6409. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6410. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6411.  
  6412. # So? What about this header?
  6413. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6414. yes:no: )
  6415. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6416. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6417. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6418. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6419. ac_header_preproc=yes
  6420. ;;
  6421. no:yes:* )
  6422. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6423. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6424. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6425. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6426. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6427. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6428. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6429. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6430. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6431. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6432. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6433. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6434.  
  6435. ;;
  6436. esac
  6437. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6438. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6439. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6440. echo $ECHO_N "(cached) $ECHO_C" >&6
  6441. else
  6442. eval "$as_ac_Header=\$ac_header_preproc"
  6443. fi
  6444. ac_res=`eval echo '${'$as_ac_Header'}'`
  6445. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6446. echo "${ECHO_T}$ac_res" >&6; }
  6447.  
  6448. fi
  6449. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6450. cat >>confdefs.h <<_ACEOF
  6451. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6452. _ACEOF
  6453.  
  6454. fi
  6455.  
  6456. done
  6457.  
  6458.  
  6459. for ac_header in sys/ioctl.h
  6460. do
  6461. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6462. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6463. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6464. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6465. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6466. echo $ECHO_N "(cached) $ECHO_C" >&6
  6467. fi
  6468. ac_res=`eval echo '${'$as_ac_Header'}'`
  6469. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6470. echo "${ECHO_T}$ac_res" >&6; }
  6471. else
  6472. # Is the header compilable?
  6473. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6474. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6475. cat >conftest.$ac_ext <<_ACEOF
  6476. /* confdefs.h. */
  6477. _ACEOF
  6478. cat confdefs.h >>conftest.$ac_ext
  6479. cat >>conftest.$ac_ext <<_ACEOF
  6480. /* end confdefs.h. */
  6481. $ac_includes_default
  6482. #include <$ac_header>
  6483. _ACEOF
  6484. rm -f conftest.$ac_objext
  6485. if { (ac_try="$ac_compile"
  6486. case "(($ac_try" in
  6487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6488. *) ac_try_echo=$ac_try;;
  6489. esac
  6490. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6491. (eval "$ac_compile") 2>conftest.er1
  6492. ac_status=$?
  6493. grep -v '^ *+' conftest.er1 >conftest.err
  6494. rm -f conftest.er1
  6495. cat conftest.err >&5
  6496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6497. (exit $ac_status); } && {
  6498. test -z "$ac_c_werror_flag" ||
  6499. test ! -s conftest.err
  6500. } && test -s conftest.$ac_objext; then
  6501. ac_header_compiler=yes
  6502. else
  6503. echo "$as_me: failed program was:" >&5
  6504. sed 's/^/| /' conftest.$ac_ext >&5
  6505.  
  6506. ac_header_compiler=no
  6507. fi
  6508.  
  6509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6510. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6511. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6512.  
  6513. # Is the header present?
  6514. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6515. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6516. cat >conftest.$ac_ext <<_ACEOF
  6517. /* confdefs.h. */
  6518. _ACEOF
  6519. cat confdefs.h >>conftest.$ac_ext
  6520. cat >>conftest.$ac_ext <<_ACEOF
  6521. /* end confdefs.h. */
  6522. #include <$ac_header>
  6523. _ACEOF
  6524. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6525. case "(($ac_try" in
  6526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6527. *) ac_try_echo=$ac_try;;
  6528. esac
  6529. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6530. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6531. ac_status=$?
  6532. grep -v '^ *+' conftest.er1 >conftest.err
  6533. rm -f conftest.er1
  6534. cat conftest.err >&5
  6535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6536. (exit $ac_status); } >/dev/null && {
  6537. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6538. test ! -s conftest.err
  6539. }; then
  6540. ac_header_preproc=yes
  6541. else
  6542. echo "$as_me: failed program was:" >&5
  6543. sed 's/^/| /' conftest.$ac_ext >&5
  6544.  
  6545. ac_header_preproc=no
  6546. fi
  6547.  
  6548. rm -f conftest.err conftest.$ac_ext
  6549. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6550. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6551.  
  6552. # So? What about this header?
  6553. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6554. yes:no: )
  6555. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6556. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6557. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6558. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6559. ac_header_preproc=yes
  6560. ;;
  6561. no:yes:* )
  6562. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6563. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6564. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6565. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6566. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6567. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6568. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6569. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6570. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6571. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6572. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6573. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6574.  
  6575. ;;
  6576. esac
  6577. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6578. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6579. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6580. echo $ECHO_N "(cached) $ECHO_C" >&6
  6581. else
  6582. eval "$as_ac_Header=\$ac_header_preproc"
  6583. fi
  6584. ac_res=`eval echo '${'$as_ac_Header'}'`
  6585. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6586. echo "${ECHO_T}$ac_res" >&6; }
  6587.  
  6588. fi
  6589. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6590. cat >>confdefs.h <<_ACEOF
  6591. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6592. _ACEOF
  6593.  
  6594. fi
  6595.  
  6596. done
  6597.  
  6598.  
  6599.  
  6600. for ac_header in sys/time.h time.h
  6601. do
  6602. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6603. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6604. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6605. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6606. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6607. echo $ECHO_N "(cached) $ECHO_C" >&6
  6608. fi
  6609. ac_res=`eval echo '${'$as_ac_Header'}'`
  6610. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6611. echo "${ECHO_T}$ac_res" >&6; }
  6612. else
  6613. # Is the header compilable?
  6614. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6615. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6616. cat >conftest.$ac_ext <<_ACEOF
  6617. /* confdefs.h. */
  6618. _ACEOF
  6619. cat confdefs.h >>conftest.$ac_ext
  6620. cat >>conftest.$ac_ext <<_ACEOF
  6621. /* end confdefs.h. */
  6622. $ac_includes_default
  6623. #include <$ac_header>
  6624. _ACEOF
  6625. rm -f conftest.$ac_objext
  6626. if { (ac_try="$ac_compile"
  6627. case "(($ac_try" in
  6628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6629. *) ac_try_echo=$ac_try;;
  6630. esac
  6631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6632. (eval "$ac_compile") 2>conftest.er1
  6633. ac_status=$?
  6634. grep -v '^ *+' conftest.er1 >conftest.err
  6635. rm -f conftest.er1
  6636. cat conftest.err >&5
  6637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6638. (exit $ac_status); } && {
  6639. test -z "$ac_c_werror_flag" ||
  6640. test ! -s conftest.err
  6641. } && test -s conftest.$ac_objext; then
  6642. ac_header_compiler=yes
  6643. else
  6644. echo "$as_me: failed program was:" >&5
  6645. sed 's/^/| /' conftest.$ac_ext >&5
  6646.  
  6647. ac_header_compiler=no
  6648. fi
  6649.  
  6650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6651. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6652. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6653.  
  6654. # Is the header present?
  6655. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6656. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6657. cat >conftest.$ac_ext <<_ACEOF
  6658. /* confdefs.h. */
  6659. _ACEOF
  6660. cat confdefs.h >>conftest.$ac_ext
  6661. cat >>conftest.$ac_ext <<_ACEOF
  6662. /* end confdefs.h. */
  6663. #include <$ac_header>
  6664. _ACEOF
  6665. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6666. case "(($ac_try" in
  6667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6668. *) ac_try_echo=$ac_try;;
  6669. esac
  6670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6671. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6672. ac_status=$?
  6673. grep -v '^ *+' conftest.er1 >conftest.err
  6674. rm -f conftest.er1
  6675. cat conftest.err >&5
  6676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6677. (exit $ac_status); } >/dev/null && {
  6678. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6679. test ! -s conftest.err
  6680. }; then
  6681. ac_header_preproc=yes
  6682. else
  6683. echo "$as_me: failed program was:" >&5
  6684. sed 's/^/| /' conftest.$ac_ext >&5
  6685.  
  6686. ac_header_preproc=no
  6687. fi
  6688.  
  6689. rm -f conftest.err conftest.$ac_ext
  6690. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6691. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6692.  
  6693. # So? What about this header?
  6694. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6695. yes:no: )
  6696. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6697. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6698. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6699. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6700. ac_header_preproc=yes
  6701. ;;
  6702. no:yes:* )
  6703. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6704. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6705. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6706. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6707. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6708. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6709. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6710. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6711. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6712. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6713. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6714. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6715.  
  6716. ;;
  6717. esac
  6718. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6719. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6720. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6721. echo $ECHO_N "(cached) $ECHO_C" >&6
  6722. else
  6723. eval "$as_ac_Header=\$ac_header_preproc"
  6724. fi
  6725. ac_res=`eval echo '${'$as_ac_Header'}'`
  6726. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6727. echo "${ECHO_T}$ac_res" >&6; }
  6728.  
  6729. fi
  6730. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6731. cat >>confdefs.h <<_ACEOF
  6732. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6733. _ACEOF
  6734.  
  6735. fi
  6736.  
  6737. done
  6738.  
  6739.  
  6740. for ac_header in sys/systeminfo.h
  6741. do
  6742. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6743. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6744. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6745. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6746. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6747. echo $ECHO_N "(cached) $ECHO_C" >&6
  6748. fi
  6749. ac_res=`eval echo '${'$as_ac_Header'}'`
  6750. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6751. echo "${ECHO_T}$ac_res" >&6; }
  6752. else
  6753. # Is the header compilable?
  6754. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6755. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6756. cat >conftest.$ac_ext <<_ACEOF
  6757. /* confdefs.h. */
  6758. _ACEOF
  6759. cat confdefs.h >>conftest.$ac_ext
  6760. cat >>conftest.$ac_ext <<_ACEOF
  6761. /* end confdefs.h. */
  6762. $ac_includes_default
  6763. #include <$ac_header>
  6764. _ACEOF
  6765. rm -f conftest.$ac_objext
  6766. if { (ac_try="$ac_compile"
  6767. case "(($ac_try" in
  6768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6769. *) ac_try_echo=$ac_try;;
  6770. esac
  6771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6772. (eval "$ac_compile") 2>conftest.er1
  6773. ac_status=$?
  6774. grep -v '^ *+' conftest.er1 >conftest.err
  6775. rm -f conftest.er1
  6776. cat conftest.err >&5
  6777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6778. (exit $ac_status); } && {
  6779. test -z "$ac_c_werror_flag" ||
  6780. test ! -s conftest.err
  6781. } && test -s conftest.$ac_objext; then
  6782. ac_header_compiler=yes
  6783. else
  6784. echo "$as_me: failed program was:" >&5
  6785. sed 's/^/| /' conftest.$ac_ext >&5
  6786.  
  6787. ac_header_compiler=no
  6788. fi
  6789.  
  6790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6791. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6792. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6793.  
  6794. # Is the header present?
  6795. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6796. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6797. cat >conftest.$ac_ext <<_ACEOF
  6798. /* confdefs.h. */
  6799. _ACEOF
  6800. cat confdefs.h >>conftest.$ac_ext
  6801. cat >>conftest.$ac_ext <<_ACEOF
  6802. /* end confdefs.h. */
  6803. #include <$ac_header>
  6804. _ACEOF
  6805. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6806. case "(($ac_try" in
  6807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6808. *) ac_try_echo=$ac_try;;
  6809. esac
  6810. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6811. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6812. ac_status=$?
  6813. grep -v '^ *+' conftest.er1 >conftest.err
  6814. rm -f conftest.er1
  6815. cat conftest.err >&5
  6816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6817. (exit $ac_status); } >/dev/null && {
  6818. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6819. test ! -s conftest.err
  6820. }; then
  6821. ac_header_preproc=yes
  6822. else
  6823. echo "$as_me: failed program was:" >&5
  6824. sed 's/^/| /' conftest.$ac_ext >&5
  6825.  
  6826. ac_header_preproc=no
  6827. fi
  6828.  
  6829. rm -f conftest.err conftest.$ac_ext
  6830. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6831. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6832.  
  6833. # So? What about this header?
  6834. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6835. yes:no: )
  6836. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6837. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6838. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6839. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6840. ac_header_preproc=yes
  6841. ;;
  6842. no:yes:* )
  6843. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6844. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6845. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6846. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6847. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6848. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6849. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6850. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6851. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6852. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6853. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6854. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6855.  
  6856. ;;
  6857. esac
  6858. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6859. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6860. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6861. echo $ECHO_N "(cached) $ECHO_C" >&6
  6862. else
  6863. eval "$as_ac_Header=\$ac_header_preproc"
  6864. fi
  6865. ac_res=`eval echo '${'$as_ac_Header'}'`
  6866. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6867. echo "${ECHO_T}$ac_res" >&6; }
  6868.  
  6869. fi
  6870. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6871. cat >>confdefs.h <<_ACEOF
  6872. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6873. _ACEOF
  6874.  
  6875. fi
  6876.  
  6877. done
  6878.  
  6879.  
  6880.  
  6881. for ac_header in sys/string.h strings.h
  6882. do
  6883. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6884. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6885. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6886. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6887. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6888. echo $ECHO_N "(cached) $ECHO_C" >&6
  6889. fi
  6890. ac_res=`eval echo '${'$as_ac_Header'}'`
  6891. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6892. echo "${ECHO_T}$ac_res" >&6; }
  6893. else
  6894. # Is the header compilable?
  6895. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6896. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6897. cat >conftest.$ac_ext <<_ACEOF
  6898. /* confdefs.h. */
  6899. _ACEOF
  6900. cat confdefs.h >>conftest.$ac_ext
  6901. cat >>conftest.$ac_ext <<_ACEOF
  6902. /* end confdefs.h. */
  6903. $ac_includes_default
  6904. #include <$ac_header>
  6905. _ACEOF
  6906. rm -f conftest.$ac_objext
  6907. if { (ac_try="$ac_compile"
  6908. case "(($ac_try" in
  6909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6910. *) ac_try_echo=$ac_try;;
  6911. esac
  6912. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6913. (eval "$ac_compile") 2>conftest.er1
  6914. ac_status=$?
  6915. grep -v '^ *+' conftest.er1 >conftest.err
  6916. rm -f conftest.er1
  6917. cat conftest.err >&5
  6918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6919. (exit $ac_status); } && {
  6920. test -z "$ac_c_werror_flag" ||
  6921. test ! -s conftest.err
  6922. } && test -s conftest.$ac_objext; then
  6923. ac_header_compiler=yes
  6924. else
  6925. echo "$as_me: failed program was:" >&5
  6926. sed 's/^/| /' conftest.$ac_ext >&5
  6927.  
  6928. ac_header_compiler=no
  6929. fi
  6930.  
  6931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6932. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6933. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6934.  
  6935. # Is the header present?
  6936. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6937. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6938. cat >conftest.$ac_ext <<_ACEOF
  6939. /* confdefs.h. */
  6940. _ACEOF
  6941. cat confdefs.h >>conftest.$ac_ext
  6942. cat >>conftest.$ac_ext <<_ACEOF
  6943. /* end confdefs.h. */
  6944. #include <$ac_header>
  6945. _ACEOF
  6946. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6947. case "(($ac_try" in
  6948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6949. *) ac_try_echo=$ac_try;;
  6950. esac
  6951. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6952. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6953. ac_status=$?
  6954. grep -v '^ *+' conftest.er1 >conftest.err
  6955. rm -f conftest.er1
  6956. cat conftest.err >&5
  6957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6958. (exit $ac_status); } >/dev/null && {
  6959. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6960. test ! -s conftest.err
  6961. }; then
  6962. ac_header_preproc=yes
  6963. else
  6964. echo "$as_me: failed program was:" >&5
  6965. sed 's/^/| /' conftest.$ac_ext >&5
  6966.  
  6967. ac_header_preproc=no
  6968. fi
  6969.  
  6970. rm -f conftest.err conftest.$ac_ext
  6971. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6972. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6973.  
  6974. # So? What about this header?
  6975. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6976. yes:no: )
  6977. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6978. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6979. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6980. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6981. ac_header_preproc=yes
  6982. ;;
  6983. no:yes:* )
  6984. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6985. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6986. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6987. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6988. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6989. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6990. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6991. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6992. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6993. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6994. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6995. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6996.  
  6997. ;;
  6998. esac
  6999. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7000. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7001. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7002. echo $ECHO_N "(cached) $ECHO_C" >&6
  7003. else
  7004. eval "$as_ac_Header=\$ac_header_preproc"
  7005. fi
  7006. ac_res=`eval echo '${'$as_ac_Header'}'`
  7007. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7008. echo "${ECHO_T}$ac_res" >&6; }
  7009.  
  7010. fi
  7011. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7012. cat >>confdefs.h <<_ACEOF
  7013. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7014. _ACEOF
  7015.  
  7016. fi
  7017.  
  7018. done
  7019.  
  7020.  
  7021.  
  7022. for ac_header in sys/syslog.h syslog.h
  7023. do
  7024. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7025. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7026. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7027. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7028. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7029. echo $ECHO_N "(cached) $ECHO_C" >&6
  7030. fi
  7031. ac_res=`eval echo '${'$as_ac_Header'}'`
  7032. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7033. echo "${ECHO_T}$ac_res" >&6; }
  7034. else
  7035. # Is the header compilable?
  7036. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7037. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7038. cat >conftest.$ac_ext <<_ACEOF
  7039. /* confdefs.h. */
  7040. _ACEOF
  7041. cat confdefs.h >>conftest.$ac_ext
  7042. cat >>conftest.$ac_ext <<_ACEOF
  7043. /* end confdefs.h. */
  7044. $ac_includes_default
  7045. #include <$ac_header>
  7046. _ACEOF
  7047. rm -f conftest.$ac_objext
  7048. if { (ac_try="$ac_compile"
  7049. case "(($ac_try" in
  7050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7051. *) ac_try_echo=$ac_try;;
  7052. esac
  7053. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7054. (eval "$ac_compile") 2>conftest.er1
  7055. ac_status=$?
  7056. grep -v '^ *+' conftest.er1 >conftest.err
  7057. rm -f conftest.er1
  7058. cat conftest.err >&5
  7059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7060. (exit $ac_status); } && {
  7061. test -z "$ac_c_werror_flag" ||
  7062. test ! -s conftest.err
  7063. } && test -s conftest.$ac_objext; then
  7064. ac_header_compiler=yes
  7065. else
  7066. echo "$as_me: failed program was:" >&5
  7067. sed 's/^/| /' conftest.$ac_ext >&5
  7068.  
  7069. ac_header_compiler=no
  7070. fi
  7071.  
  7072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7073. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7074. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7075.  
  7076. # Is the header present?
  7077. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7078. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7079. cat >conftest.$ac_ext <<_ACEOF
  7080. /* confdefs.h. */
  7081. _ACEOF
  7082. cat confdefs.h >>conftest.$ac_ext
  7083. cat >>conftest.$ac_ext <<_ACEOF
  7084. /* end confdefs.h. */
  7085. #include <$ac_header>
  7086. _ACEOF
  7087. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7088. case "(($ac_try" in
  7089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7090. *) ac_try_echo=$ac_try;;
  7091. esac
  7092. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7093. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7094. ac_status=$?
  7095. grep -v '^ *+' conftest.er1 >conftest.err
  7096. rm -f conftest.er1
  7097. cat conftest.err >&5
  7098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7099. (exit $ac_status); } >/dev/null && {
  7100. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7101. test ! -s conftest.err
  7102. }; then
  7103. ac_header_preproc=yes
  7104. else
  7105. echo "$as_me: failed program was:" >&5
  7106. sed 's/^/| /' conftest.$ac_ext >&5
  7107.  
  7108. ac_header_preproc=no
  7109. fi
  7110.  
  7111. rm -f conftest.err conftest.$ac_ext
  7112. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7113. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7114.  
  7115. # So? What about this header?
  7116. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7117. yes:no: )
  7118. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7119. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7120. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7121. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7122. ac_header_preproc=yes
  7123. ;;
  7124. no:yes:* )
  7125. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7126. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7127. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7128. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7129. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7130. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7131. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7132. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7133. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7134. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7135. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7136. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7137.  
  7138. ;;
  7139. esac
  7140. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7141. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7142. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7143. echo $ECHO_N "(cached) $ECHO_C" >&6
  7144. else
  7145. eval "$as_ac_Header=\$ac_header_preproc"
  7146. fi
  7147. ac_res=`eval echo '${'$as_ac_Header'}'`
  7148. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7149. echo "${ECHO_T}$ac_res" >&6; }
  7150.  
  7151. fi
  7152. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7153. cat >>confdefs.h <<_ACEOF
  7154. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7155. _ACEOF
  7156.  
  7157. fi
  7158.  
  7159. done
  7160.  
  7161.  
  7162.  
  7163. for ac_header in sys/socket.h socket.h
  7164. do
  7165. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7166. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7167. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7168. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7169. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7170. echo $ECHO_N "(cached) $ECHO_C" >&6
  7171. fi
  7172. ac_res=`eval echo '${'$as_ac_Header'}'`
  7173. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7174. echo "${ECHO_T}$ac_res" >&6; }
  7175. else
  7176. # Is the header compilable?
  7177. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7178. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7179. cat >conftest.$ac_ext <<_ACEOF
  7180. /* confdefs.h. */
  7181. _ACEOF
  7182. cat confdefs.h >>conftest.$ac_ext
  7183. cat >>conftest.$ac_ext <<_ACEOF
  7184. /* end confdefs.h. */
  7185. $ac_includes_default
  7186. #include <$ac_header>
  7187. _ACEOF
  7188. rm -f conftest.$ac_objext
  7189. if { (ac_try="$ac_compile"
  7190. case "(($ac_try" in
  7191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7192. *) ac_try_echo=$ac_try;;
  7193. esac
  7194. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7195. (eval "$ac_compile") 2>conftest.er1
  7196. ac_status=$?
  7197. grep -v '^ *+' conftest.er1 >conftest.err
  7198. rm -f conftest.er1
  7199. cat conftest.err >&5
  7200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7201. (exit $ac_status); } && {
  7202. test -z "$ac_c_werror_flag" ||
  7203. test ! -s conftest.err
  7204. } && test -s conftest.$ac_objext; then
  7205. ac_header_compiler=yes
  7206. else
  7207. echo "$as_me: failed program was:" >&5
  7208. sed 's/^/| /' conftest.$ac_ext >&5
  7209.  
  7210. ac_header_compiler=no
  7211. fi
  7212.  
  7213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7214. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7215. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7216.  
  7217. # Is the header present?
  7218. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7219. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7220. cat >conftest.$ac_ext <<_ACEOF
  7221. /* confdefs.h. */
  7222. _ACEOF
  7223. cat confdefs.h >>conftest.$ac_ext
  7224. cat >>conftest.$ac_ext <<_ACEOF
  7225. /* end confdefs.h. */
  7226. #include <$ac_header>
  7227. _ACEOF
  7228. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7229. case "(($ac_try" in
  7230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7231. *) ac_try_echo=$ac_try;;
  7232. esac
  7233. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7234. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7235. ac_status=$?
  7236. grep -v '^ *+' conftest.er1 >conftest.err
  7237. rm -f conftest.er1
  7238. cat conftest.err >&5
  7239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7240. (exit $ac_status); } >/dev/null && {
  7241. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7242. test ! -s conftest.err
  7243. }; then
  7244. ac_header_preproc=yes
  7245. else
  7246. echo "$as_me: failed program was:" >&5
  7247. sed 's/^/| /' conftest.$ac_ext >&5
  7248.  
  7249. ac_header_preproc=no
  7250. fi
  7251.  
  7252. rm -f conftest.err conftest.$ac_ext
  7253. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7254. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7255.  
  7256. # So? What about this header?
  7257. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7258. yes:no: )
  7259. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7260. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7261. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7262. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7263. ac_header_preproc=yes
  7264. ;;
  7265. no:yes:* )
  7266. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7267. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7268. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7269. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7270. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7271. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7272. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7273. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7274. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7275. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7276. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7277. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7278.  
  7279. ;;
  7280. esac
  7281. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7282. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7283. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7284. echo $ECHO_N "(cached) $ECHO_C" >&6
  7285. else
  7286. eval "$as_ac_Header=\$ac_header_preproc"
  7287. fi
  7288. ac_res=`eval echo '${'$as_ac_Header'}'`
  7289. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7290. echo "${ECHO_T}$ac_res" >&6; }
  7291.  
  7292. fi
  7293. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7294. cat >>confdefs.h <<_ACEOF
  7295. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7296. _ACEOF
  7297.  
  7298. fi
  7299.  
  7300. done
  7301.  
  7302.  
  7303. # SG: not used ? => do not compile on macosx
  7304. # AC_CHECK_HEADERS(appkit/appkit.h appkit.h)
  7305. # AC_CHECK_HEADERS(apppkit/apppkit.h apppkit.h)
  7306.  
  7307.  
  7308.  
  7309. for ac_header in netinet/in.h in.h
  7310. do
  7311. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7312. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7313. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7314. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7315. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7316. echo $ECHO_N "(cached) $ECHO_C" >&6
  7317. fi
  7318. ac_res=`eval echo '${'$as_ac_Header'}'`
  7319. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7320. echo "${ECHO_T}$ac_res" >&6; }
  7321. else
  7322. # Is the header compilable?
  7323. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7324. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7325. cat >conftest.$ac_ext <<_ACEOF
  7326. /* confdefs.h. */
  7327. _ACEOF
  7328. cat confdefs.h >>conftest.$ac_ext
  7329. cat >>conftest.$ac_ext <<_ACEOF
  7330. /* end confdefs.h. */
  7331. $ac_includes_default
  7332. #include <$ac_header>
  7333. _ACEOF
  7334. rm -f conftest.$ac_objext
  7335. if { (ac_try="$ac_compile"
  7336. case "(($ac_try" in
  7337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7338. *) ac_try_echo=$ac_try;;
  7339. esac
  7340. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7341. (eval "$ac_compile") 2>conftest.er1
  7342. ac_status=$?
  7343. grep -v '^ *+' conftest.er1 >conftest.err
  7344. rm -f conftest.er1
  7345. cat conftest.err >&5
  7346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7347. (exit $ac_status); } && {
  7348. test -z "$ac_c_werror_flag" ||
  7349. test ! -s conftest.err
  7350. } && test -s conftest.$ac_objext; then
  7351. ac_header_compiler=yes
  7352. else
  7353. echo "$as_me: failed program was:" >&5
  7354. sed 's/^/| /' conftest.$ac_ext >&5
  7355.  
  7356. ac_header_compiler=no
  7357. fi
  7358.  
  7359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7360. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7361. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7362.  
  7363. # Is the header present?
  7364. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7365. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7366. cat >conftest.$ac_ext <<_ACEOF
  7367. /* confdefs.h. */
  7368. _ACEOF
  7369. cat confdefs.h >>conftest.$ac_ext
  7370. cat >>conftest.$ac_ext <<_ACEOF
  7371. /* end confdefs.h. */
  7372. #include <$ac_header>
  7373. _ACEOF
  7374. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7375. case "(($ac_try" in
  7376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7377. *) ac_try_echo=$ac_try;;
  7378. esac
  7379. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7380. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7381. ac_status=$?
  7382. grep -v '^ *+' conftest.er1 >conftest.err
  7383. rm -f conftest.er1
  7384. cat conftest.err >&5
  7385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7386. (exit $ac_status); } >/dev/null && {
  7387. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7388. test ! -s conftest.err
  7389. }; then
  7390. ac_header_preproc=yes
  7391. else
  7392. echo "$as_me: failed program was:" >&5
  7393. sed 's/^/| /' conftest.$ac_ext >&5
  7394.  
  7395. ac_header_preproc=no
  7396. fi
  7397.  
  7398. rm -f conftest.err conftest.$ac_ext
  7399. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7400. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7401.  
  7402. # So? What about this header?
  7403. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7404. yes:no: )
  7405. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7406. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7407. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7408. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7409. ac_header_preproc=yes
  7410. ;;
  7411. no:yes:* )
  7412. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7413. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7414. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7415. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7416. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7417. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7418. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7419. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7420. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7421. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7422. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7423. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7424.  
  7425. ;;
  7426. esac
  7427. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7428. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7429. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7430. echo $ECHO_N "(cached) $ECHO_C" >&6
  7431. else
  7432. eval "$as_ac_Header=\$ac_header_preproc"
  7433. fi
  7434. ac_res=`eval echo '${'$as_ac_Header'}'`
  7435. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7436. echo "${ECHO_T}$ac_res" >&6; }
  7437.  
  7438. fi
  7439. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7440. cat >>confdefs.h <<_ACEOF
  7441. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7442. _ACEOF
  7443.  
  7444. fi
  7445.  
  7446. done
  7447.  
  7448.  
  7449. for ac_header in dn.h
  7450. do
  7451. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7452. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7453. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7454. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7455. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7456. echo $ECHO_N "(cached) $ECHO_C" >&6
  7457. fi
  7458. ac_res=`eval echo '${'$as_ac_Header'}'`
  7459. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7460. echo "${ECHO_T}$ac_res" >&6; }
  7461. else
  7462. # Is the header compilable?
  7463. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7464. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7465. cat >conftest.$ac_ext <<_ACEOF
  7466. /* confdefs.h. */
  7467. _ACEOF
  7468. cat confdefs.h >>conftest.$ac_ext
  7469. cat >>conftest.$ac_ext <<_ACEOF
  7470. /* end confdefs.h. */
  7471. $ac_includes_default
  7472. #include <$ac_header>
  7473. _ACEOF
  7474. rm -f conftest.$ac_objext
  7475. if { (ac_try="$ac_compile"
  7476. case "(($ac_try" in
  7477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7478. *) ac_try_echo=$ac_try;;
  7479. esac
  7480. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7481. (eval "$ac_compile") 2>conftest.er1
  7482. ac_status=$?
  7483. grep -v '^ *+' conftest.er1 >conftest.err
  7484. rm -f conftest.er1
  7485. cat conftest.err >&5
  7486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7487. (exit $ac_status); } && {
  7488. test -z "$ac_c_werror_flag" ||
  7489. test ! -s conftest.err
  7490. } && test -s conftest.$ac_objext; then
  7491. ac_header_compiler=yes
  7492. else
  7493. echo "$as_me: failed program was:" >&5
  7494. sed 's/^/| /' conftest.$ac_ext >&5
  7495.  
  7496. ac_header_compiler=no
  7497. fi
  7498.  
  7499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7500. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7501. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7502.  
  7503. # Is the header present?
  7504. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7505. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7506. cat >conftest.$ac_ext <<_ACEOF
  7507. /* confdefs.h. */
  7508. _ACEOF
  7509. cat confdefs.h >>conftest.$ac_ext
  7510. cat >>conftest.$ac_ext <<_ACEOF
  7511. /* end confdefs.h. */
  7512. #include <$ac_header>
  7513. _ACEOF
  7514. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7515. case "(($ac_try" in
  7516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7517. *) ac_try_echo=$ac_try;;
  7518. esac
  7519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7520. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7521. ac_status=$?
  7522. grep -v '^ *+' conftest.er1 >conftest.err
  7523. rm -f conftest.er1
  7524. cat conftest.err >&5
  7525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7526. (exit $ac_status); } >/dev/null && {
  7527. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7528. test ! -s conftest.err
  7529. }; then
  7530. ac_header_preproc=yes
  7531. else
  7532. echo "$as_me: failed program was:" >&5
  7533. sed 's/^/| /' conftest.$ac_ext >&5
  7534.  
  7535. ac_header_preproc=no
  7536. fi
  7537.  
  7538. rm -f conftest.err conftest.$ac_ext
  7539. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7540. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7541.  
  7542. # So? What about this header?
  7543. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7544. yes:no: )
  7545. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7546. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7547. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7548. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7549. ac_header_preproc=yes
  7550. ;;
  7551. no:yes:* )
  7552. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7553. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7554. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7555. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7556. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7557. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7558. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7559. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7560. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7561. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7562. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7563. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7564.  
  7565. ;;
  7566. esac
  7567. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7568. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7569. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7570. echo $ECHO_N "(cached) $ECHO_C" >&6
  7571. else
  7572. eval "$as_ac_Header=\$ac_header_preproc"
  7573. fi
  7574. ac_res=`eval echo '${'$as_ac_Header'}'`
  7575. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7576. echo "${ECHO_T}$ac_res" >&6; }
  7577.  
  7578. fi
  7579. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7580. cat >>confdefs.h <<_ACEOF
  7581. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7582. _ACEOF
  7583.  
  7584. fi
  7585.  
  7586. done
  7587.  
  7588.  
  7589. for ac_header in sys/ipc.h
  7590. do
  7591. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7592. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7593. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7594. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7595. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7596. echo $ECHO_N "(cached) $ECHO_C" >&6
  7597. fi
  7598. ac_res=`eval echo '${'$as_ac_Header'}'`
  7599. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7600. echo "${ECHO_T}$ac_res" >&6; }
  7601. else
  7602. # Is the header compilable?
  7603. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7604. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7605. cat >conftest.$ac_ext <<_ACEOF
  7606. /* confdefs.h. */
  7607. _ACEOF
  7608. cat confdefs.h >>conftest.$ac_ext
  7609. cat >>conftest.$ac_ext <<_ACEOF
  7610. /* end confdefs.h. */
  7611. $ac_includes_default
  7612. #include <$ac_header>
  7613. _ACEOF
  7614. rm -f conftest.$ac_objext
  7615. if { (ac_try="$ac_compile"
  7616. case "(($ac_try" in
  7617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7618. *) ac_try_echo=$ac_try;;
  7619. esac
  7620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7621. (eval "$ac_compile") 2>conftest.er1
  7622. ac_status=$?
  7623. grep -v '^ *+' conftest.er1 >conftest.err
  7624. rm -f conftest.er1
  7625. cat conftest.err >&5
  7626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7627. (exit $ac_status); } && {
  7628. test -z "$ac_c_werror_flag" ||
  7629. test ! -s conftest.err
  7630. } && test -s conftest.$ac_objext; then
  7631. ac_header_compiler=yes
  7632. else
  7633. echo "$as_me: failed program was:" >&5
  7634. sed 's/^/| /' conftest.$ac_ext >&5
  7635.  
  7636. ac_header_compiler=no
  7637. fi
  7638.  
  7639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7640. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7641. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7642.  
  7643. # Is the header present?
  7644. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7645. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7646. cat >conftest.$ac_ext <<_ACEOF
  7647. /* confdefs.h. */
  7648. _ACEOF
  7649. cat confdefs.h >>conftest.$ac_ext
  7650. cat >>conftest.$ac_ext <<_ACEOF
  7651. /* end confdefs.h. */
  7652. #include <$ac_header>
  7653. _ACEOF
  7654. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7655. case "(($ac_try" in
  7656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7657. *) ac_try_echo=$ac_try;;
  7658. esac
  7659. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7660. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7661. ac_status=$?
  7662. grep -v '^ *+' conftest.er1 >conftest.err
  7663. rm -f conftest.er1
  7664. cat conftest.err >&5
  7665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7666. (exit $ac_status); } >/dev/null && {
  7667. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7668. test ! -s conftest.err
  7669. }; then
  7670. ac_header_preproc=yes
  7671. else
  7672. echo "$as_me: failed program was:" >&5
  7673. sed 's/^/| /' conftest.$ac_ext >&5
  7674.  
  7675. ac_header_preproc=no
  7676. fi
  7677.  
  7678. rm -f conftest.err conftest.$ac_ext
  7679. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7680. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7681.  
  7682. # So? What about this header?
  7683. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7684. yes:no: )
  7685. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7686. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7687. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7688. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7689. ac_header_preproc=yes
  7690. ;;
  7691. no:yes:* )
  7692. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7693. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7694. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7695. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7696. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7697. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7698. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7699. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7700. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7701. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7702. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7703. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7704.  
  7705. ;;
  7706. esac
  7707. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7708. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7709. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7710. echo $ECHO_N "(cached) $ECHO_C" >&6
  7711. else
  7712. eval "$as_ac_Header=\$ac_header_preproc"
  7713. fi
  7714. ac_res=`eval echo '${'$as_ac_Header'}'`
  7715. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7716. echo "${ECHO_T}$ac_res" >&6; }
  7717.  
  7718. fi
  7719. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7720. cat >>confdefs.h <<_ACEOF
  7721. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7722. _ACEOF
  7723.  
  7724. fi
  7725.  
  7726. done
  7727.  
  7728.  
  7729.  
  7730.  
  7731. for ac_header in net/errno.h sys/errno.h errno.h
  7732. do
  7733. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7734. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7735. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7736. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7737. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7738. echo $ECHO_N "(cached) $ECHO_C" >&6
  7739. fi
  7740. ac_res=`eval echo '${'$as_ac_Header'}'`
  7741. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7742. echo "${ECHO_T}$ac_res" >&6; }
  7743. else
  7744. # Is the header compilable?
  7745. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7746. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7747. cat >conftest.$ac_ext <<_ACEOF
  7748. /* confdefs.h. */
  7749. _ACEOF
  7750. cat confdefs.h >>conftest.$ac_ext
  7751. cat >>conftest.$ac_ext <<_ACEOF
  7752. /* end confdefs.h. */
  7753. $ac_includes_default
  7754. #include <$ac_header>
  7755. _ACEOF
  7756. rm -f conftest.$ac_objext
  7757. if { (ac_try="$ac_compile"
  7758. case "(($ac_try" in
  7759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7760. *) ac_try_echo=$ac_try;;
  7761. esac
  7762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7763. (eval "$ac_compile") 2>conftest.er1
  7764. ac_status=$?
  7765. grep -v '^ *+' conftest.er1 >conftest.err
  7766. rm -f conftest.er1
  7767. cat conftest.err >&5
  7768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7769. (exit $ac_status); } && {
  7770. test -z "$ac_c_werror_flag" ||
  7771. test ! -s conftest.err
  7772. } && test -s conftest.$ac_objext; then
  7773. ac_header_compiler=yes
  7774. else
  7775. echo "$as_me: failed program was:" >&5
  7776. sed 's/^/| /' conftest.$ac_ext >&5
  7777.  
  7778. ac_header_compiler=no
  7779. fi
  7780.  
  7781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7782. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7783. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7784.  
  7785. # Is the header present?
  7786. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7787. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7788. cat >conftest.$ac_ext <<_ACEOF
  7789. /* confdefs.h. */
  7790. _ACEOF
  7791. cat confdefs.h >>conftest.$ac_ext
  7792. cat >>conftest.$ac_ext <<_ACEOF
  7793. /* end confdefs.h. */
  7794. #include <$ac_header>
  7795. _ACEOF
  7796. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7797. case "(($ac_try" in
  7798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7799. *) ac_try_echo=$ac_try;;
  7800. esac
  7801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7802. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7803. ac_status=$?
  7804. grep -v '^ *+' conftest.er1 >conftest.err
  7805. rm -f conftest.er1
  7806. cat conftest.err >&5
  7807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7808. (exit $ac_status); } >/dev/null && {
  7809. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7810. test ! -s conftest.err
  7811. }; then
  7812. ac_header_preproc=yes
  7813. else
  7814. echo "$as_me: failed program was:" >&5
  7815. sed 's/^/| /' conftest.$ac_ext >&5
  7816.  
  7817. ac_header_preproc=no
  7818. fi
  7819.  
  7820. rm -f conftest.err conftest.$ac_ext
  7821. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7822. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7823.  
  7824. # So? What about this header?
  7825. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7826. yes:no: )
  7827. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7828. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7829. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7830. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7831. ac_header_preproc=yes
  7832. ;;
  7833. no:yes:* )
  7834. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7835. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7836. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7837. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7838. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7839. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7840. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7841. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7842. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7843. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7844. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7845. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7846.  
  7847. ;;
  7848. esac
  7849. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7850. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7851. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7852. echo $ECHO_N "(cached) $ECHO_C" >&6
  7853. else
  7854. eval "$as_ac_Header=\$ac_header_preproc"
  7855. fi
  7856. ac_res=`eval echo '${'$as_ac_Header'}'`
  7857. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7858. echo "${ECHO_T}$ac_res" >&6; }
  7859.  
  7860. fi
  7861. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7862. cat >>confdefs.h <<_ACEOF
  7863. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7864. _ACEOF
  7865.  
  7866. fi
  7867.  
  7868. done
  7869.  
  7870.  
  7871. for ac_header in pwd.h
  7872. do
  7873. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7874. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7875. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7876. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7877. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7878. echo $ECHO_N "(cached) $ECHO_C" >&6
  7879. fi
  7880. ac_res=`eval echo '${'$as_ac_Header'}'`
  7881. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7882. echo "${ECHO_T}$ac_res" >&6; }
  7883. else
  7884. # Is the header compilable?
  7885. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7886. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7887. cat >conftest.$ac_ext <<_ACEOF
  7888. /* confdefs.h. */
  7889. _ACEOF
  7890. cat confdefs.h >>conftest.$ac_ext
  7891. cat >>conftest.$ac_ext <<_ACEOF
  7892. /* end confdefs.h. */
  7893. $ac_includes_default
  7894. #include <$ac_header>
  7895. _ACEOF
  7896. rm -f conftest.$ac_objext
  7897. if { (ac_try="$ac_compile"
  7898. case "(($ac_try" in
  7899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7900. *) ac_try_echo=$ac_try;;
  7901. esac
  7902. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7903. (eval "$ac_compile") 2>conftest.er1
  7904. ac_status=$?
  7905. grep -v '^ *+' conftest.er1 >conftest.err
  7906. rm -f conftest.er1
  7907. cat conftest.err >&5
  7908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7909. (exit $ac_status); } && {
  7910. test -z "$ac_c_werror_flag" ||
  7911. test ! -s conftest.err
  7912. } && test -s conftest.$ac_objext; then
  7913. ac_header_compiler=yes
  7914. else
  7915. echo "$as_me: failed program was:" >&5
  7916. sed 's/^/| /' conftest.$ac_ext >&5
  7917.  
  7918. ac_header_compiler=no
  7919. fi
  7920.  
  7921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7922. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7923. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7924.  
  7925. # Is the header present?
  7926. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7927. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7928. cat >conftest.$ac_ext <<_ACEOF
  7929. /* confdefs.h. */
  7930. _ACEOF
  7931. cat confdefs.h >>conftest.$ac_ext
  7932. cat >>conftest.$ac_ext <<_ACEOF
  7933. /* end confdefs.h. */
  7934. #include <$ac_header>
  7935. _ACEOF
  7936. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7937. case "(($ac_try" in
  7938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7939. *) ac_try_echo=$ac_try;;
  7940. esac
  7941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7942. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7943. ac_status=$?
  7944. grep -v '^ *+' conftest.er1 >conftest.err
  7945. rm -f conftest.er1
  7946. cat conftest.err >&5
  7947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7948. (exit $ac_status); } >/dev/null && {
  7949. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7950. test ! -s conftest.err
  7951. }; then
  7952. ac_header_preproc=yes
  7953. else
  7954. echo "$as_me: failed program was:" >&5
  7955. sed 's/^/| /' conftest.$ac_ext >&5
  7956.  
  7957. ac_header_preproc=no
  7958. fi
  7959.  
  7960. rm -f conftest.err conftest.$ac_ext
  7961. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7962. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7963.  
  7964. # So? What about this header?
  7965. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7966. yes:no: )
  7967. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7968. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7969. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7970. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7971. ac_header_preproc=yes
  7972. ;;
  7973. no:yes:* )
  7974. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7975. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7976. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7977. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7978. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7979. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7980. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7981. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7982. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7983. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7984. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7985. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7986.  
  7987. ;;
  7988. esac
  7989. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7990. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7991. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7992. echo $ECHO_N "(cached) $ECHO_C" >&6
  7993. else
  7994. eval "$as_ac_Header=\$ac_header_preproc"
  7995. fi
  7996. ac_res=`eval echo '${'$as_ac_Header'}'`
  7997. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7998. echo "${ECHO_T}$ac_res" >&6; }
  7999.  
  8000. fi
  8001. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8002. cat >>confdefs.h <<_ACEOF
  8003. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8004. _ACEOF
  8005.  
  8006. fi
  8007.  
  8008. done
  8009.  
  8010.  
  8011. for ac_header in grp.h
  8012. do
  8013. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8014. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8015. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8016. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8017. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8018. echo $ECHO_N "(cached) $ECHO_C" >&6
  8019. fi
  8020. ac_res=`eval echo '${'$as_ac_Header'}'`
  8021. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8022. echo "${ECHO_T}$ac_res" >&6; }
  8023. else
  8024. # Is the header compilable?
  8025. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8026. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8027. cat >conftest.$ac_ext <<_ACEOF
  8028. /* confdefs.h. */
  8029. _ACEOF
  8030. cat confdefs.h >>conftest.$ac_ext
  8031. cat >>conftest.$ac_ext <<_ACEOF
  8032. /* end confdefs.h. */
  8033. $ac_includes_default
  8034. #include <$ac_header>
  8035. _ACEOF
  8036. rm -f conftest.$ac_objext
  8037. if { (ac_try="$ac_compile"
  8038. case "(($ac_try" in
  8039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8040. *) ac_try_echo=$ac_try;;
  8041. esac
  8042. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8043. (eval "$ac_compile") 2>conftest.er1
  8044. ac_status=$?
  8045. grep -v '^ *+' conftest.er1 >conftest.err
  8046. rm -f conftest.er1
  8047. cat conftest.err >&5
  8048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8049. (exit $ac_status); } && {
  8050. test -z "$ac_c_werror_flag" ||
  8051. test ! -s conftest.err
  8052. } && test -s conftest.$ac_objext; then
  8053. ac_header_compiler=yes
  8054. else
  8055. echo "$as_me: failed program was:" >&5
  8056. sed 's/^/| /' conftest.$ac_ext >&5
  8057.  
  8058. ac_header_compiler=no
  8059. fi
  8060.  
  8061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8062. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8063. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8064.  
  8065. # Is the header present?
  8066. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8067. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8068. cat >conftest.$ac_ext <<_ACEOF
  8069. /* confdefs.h. */
  8070. _ACEOF
  8071. cat confdefs.h >>conftest.$ac_ext
  8072. cat >>conftest.$ac_ext <<_ACEOF
  8073. /* end confdefs.h. */
  8074. #include <$ac_header>
  8075. _ACEOF
  8076. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8077. case "(($ac_try" in
  8078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8079. *) ac_try_echo=$ac_try;;
  8080. esac
  8081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8082. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8083. ac_status=$?
  8084. grep -v '^ *+' conftest.er1 >conftest.err
  8085. rm -f conftest.er1
  8086. cat conftest.err >&5
  8087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8088. (exit $ac_status); } >/dev/null && {
  8089. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8090. test ! -s conftest.err
  8091. }; then
  8092. ac_header_preproc=yes
  8093. else
  8094. echo "$as_me: failed program was:" >&5
  8095. sed 's/^/| /' conftest.$ac_ext >&5
  8096.  
  8097. ac_header_preproc=no
  8098. fi
  8099.  
  8100. rm -f conftest.err conftest.$ac_ext
  8101. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8102. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8103.  
  8104. # So? What about this header?
  8105. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8106. yes:no: )
  8107. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8108. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8109. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8110. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8111. ac_header_preproc=yes
  8112. ;;
  8113. no:yes:* )
  8114. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8115. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8116. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8117. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8118. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8119. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8120. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8121. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8122. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8123. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8124. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8125. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8126.  
  8127. ;;
  8128. esac
  8129. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8130. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8131. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8132. echo $ECHO_N "(cached) $ECHO_C" >&6
  8133. else
  8134. eval "$as_ac_Header=\$ac_header_preproc"
  8135. fi
  8136. ac_res=`eval echo '${'$as_ac_Header'}'`
  8137. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8138. echo "${ECHO_T}$ac_res" >&6; }
  8139.  
  8140. fi
  8141. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8142. cat >>confdefs.h <<_ACEOF
  8143. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8144. _ACEOF
  8145.  
  8146. fi
  8147.  
  8148. done
  8149.  
  8150.  
  8151.  
  8152. for ac_header in arpa/inet.h inet.h
  8153. do
  8154. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8155. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8156. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8157. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8158. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8159. echo $ECHO_N "(cached) $ECHO_C" >&6
  8160. fi
  8161. ac_res=`eval echo '${'$as_ac_Header'}'`
  8162. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8163. echo "${ECHO_T}$ac_res" >&6; }
  8164. else
  8165. # Is the header compilable?
  8166. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8167. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8168. cat >conftest.$ac_ext <<_ACEOF
  8169. /* confdefs.h. */
  8170. _ACEOF
  8171. cat confdefs.h >>conftest.$ac_ext
  8172. cat >>conftest.$ac_ext <<_ACEOF
  8173. /* end confdefs.h. */
  8174. $ac_includes_default
  8175. #include <$ac_header>
  8176. _ACEOF
  8177. rm -f conftest.$ac_objext
  8178. if { (ac_try="$ac_compile"
  8179. case "(($ac_try" in
  8180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8181. *) ac_try_echo=$ac_try;;
  8182. esac
  8183. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8184. (eval "$ac_compile") 2>conftest.er1
  8185. ac_status=$?
  8186. grep -v '^ *+' conftest.er1 >conftest.err
  8187. rm -f conftest.er1
  8188. cat conftest.err >&5
  8189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8190. (exit $ac_status); } && {
  8191. test -z "$ac_c_werror_flag" ||
  8192. test ! -s conftest.err
  8193. } && test -s conftest.$ac_objext; then
  8194. ac_header_compiler=yes
  8195. else
  8196. echo "$as_me: failed program was:" >&5
  8197. sed 's/^/| /' conftest.$ac_ext >&5
  8198.  
  8199. ac_header_compiler=no
  8200. fi
  8201.  
  8202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8203. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8204. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8205.  
  8206. # Is the header present?
  8207. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8208. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8209. cat >conftest.$ac_ext <<_ACEOF
  8210. /* confdefs.h. */
  8211. _ACEOF
  8212. cat confdefs.h >>conftest.$ac_ext
  8213. cat >>conftest.$ac_ext <<_ACEOF
  8214. /* end confdefs.h. */
  8215. #include <$ac_header>
  8216. _ACEOF
  8217. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8218. case "(($ac_try" in
  8219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8220. *) ac_try_echo=$ac_try;;
  8221. esac
  8222. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8223. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8224. ac_status=$?
  8225. grep -v '^ *+' conftest.er1 >conftest.err
  8226. rm -f conftest.er1
  8227. cat conftest.err >&5
  8228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8229. (exit $ac_status); } >/dev/null && {
  8230. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8231. test ! -s conftest.err
  8232. }; then
  8233. ac_header_preproc=yes
  8234. else
  8235. echo "$as_me: failed program was:" >&5
  8236. sed 's/^/| /' conftest.$ac_ext >&5
  8237.  
  8238. ac_header_preproc=no
  8239. fi
  8240.  
  8241. rm -f conftest.err conftest.$ac_ext
  8242. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8243. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8244.  
  8245. # So? What about this header?
  8246. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8247. yes:no: )
  8248. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8249. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8250. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8251. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8252. ac_header_preproc=yes
  8253. ;;
  8254. no:yes:* )
  8255. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8256. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8257. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8258. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8259. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8260. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8261. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8262. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8263. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8264. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8265. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8266. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8267.  
  8268. ;;
  8269. esac
  8270. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8271. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8272. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8273. echo $ECHO_N "(cached) $ECHO_C" >&6
  8274. else
  8275. eval "$as_ac_Header=\$ac_header_preproc"
  8276. fi
  8277. ac_res=`eval echo '${'$as_ac_Header'}'`
  8278. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8279. echo "${ECHO_T}$ac_res" >&6; }
  8280.  
  8281. fi
  8282. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8283. cat >>confdefs.h <<_ACEOF
  8284. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8285. _ACEOF
  8286.  
  8287. fi
  8288.  
  8289. done
  8290.  
  8291.  
  8292. for ac_header in netdb.h
  8293. do
  8294. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8295. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8296. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8297. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8298. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8299. echo $ECHO_N "(cached) $ECHO_C" >&6
  8300. fi
  8301. ac_res=`eval echo '${'$as_ac_Header'}'`
  8302. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8303. echo "${ECHO_T}$ac_res" >&6; }
  8304. else
  8305. # Is the header compilable?
  8306. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8307. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8308. cat >conftest.$ac_ext <<_ACEOF
  8309. /* confdefs.h. */
  8310. _ACEOF
  8311. cat confdefs.h >>conftest.$ac_ext
  8312. cat >>conftest.$ac_ext <<_ACEOF
  8313. /* end confdefs.h. */
  8314. $ac_includes_default
  8315. #include <$ac_header>
  8316. _ACEOF
  8317. rm -f conftest.$ac_objext
  8318. if { (ac_try="$ac_compile"
  8319. case "(($ac_try" in
  8320. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8321. *) ac_try_echo=$ac_try;;
  8322. esac
  8323. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8324. (eval "$ac_compile") 2>conftest.er1
  8325. ac_status=$?
  8326. grep -v '^ *+' conftest.er1 >conftest.err
  8327. rm -f conftest.er1
  8328. cat conftest.err >&5
  8329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8330. (exit $ac_status); } && {
  8331. test -z "$ac_c_werror_flag" ||
  8332. test ! -s conftest.err
  8333. } && test -s conftest.$ac_objext; then
  8334. ac_header_compiler=yes
  8335. else
  8336. echo "$as_me: failed program was:" >&5
  8337. sed 's/^/| /' conftest.$ac_ext >&5
  8338.  
  8339. ac_header_compiler=no
  8340. fi
  8341.  
  8342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8343. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8344. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8345.  
  8346. # Is the header present?
  8347. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8348. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8349. cat >conftest.$ac_ext <<_ACEOF
  8350. /* confdefs.h. */
  8351. _ACEOF
  8352. cat confdefs.h >>conftest.$ac_ext
  8353. cat >>conftest.$ac_ext <<_ACEOF
  8354. /* end confdefs.h. */
  8355. #include <$ac_header>
  8356. _ACEOF
  8357. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8358. case "(($ac_try" in
  8359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8360. *) ac_try_echo=$ac_try;;
  8361. esac
  8362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8363. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8364. ac_status=$?
  8365. grep -v '^ *+' conftest.er1 >conftest.err
  8366. rm -f conftest.er1
  8367. cat conftest.err >&5
  8368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8369. (exit $ac_status); } >/dev/null && {
  8370. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8371. test ! -s conftest.err
  8372. }; then
  8373. ac_header_preproc=yes
  8374. else
  8375. echo "$as_me: failed program was:" >&5
  8376. sed 's/^/| /' conftest.$ac_ext >&5
  8377.  
  8378. ac_header_preproc=no
  8379. fi
  8380.  
  8381. rm -f conftest.err conftest.$ac_ext
  8382. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8383. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8384.  
  8385. # So? What about this header?
  8386. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8387. yes:no: )
  8388. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8389. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8390. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8391. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8392. ac_header_preproc=yes
  8393. ;;
  8394. no:yes:* )
  8395. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8396. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8397. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8398. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8399. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8400. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8401. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8402. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8403. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8404. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8405. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8406. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8407.  
  8408. ;;
  8409. esac
  8410. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8411. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8412. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8413. echo $ECHO_N "(cached) $ECHO_C" >&6
  8414. else
  8415. eval "$as_ac_Header=\$ac_header_preproc"
  8416. fi
  8417. ac_res=`eval echo '${'$as_ac_Header'}'`
  8418. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8419. echo "${ECHO_T}$ac_res" >&6; }
  8420.  
  8421. fi
  8422. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8423. cat >>confdefs.h <<_ACEOF
  8424. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8425. _ACEOF
  8426.  
  8427. fi
  8428.  
  8429. done
  8430.  
  8431.  
  8432. for ac_header in manifest.h
  8433. do
  8434. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8435. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8436. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8437. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8438. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8439. echo $ECHO_N "(cached) $ECHO_C" >&6
  8440. fi
  8441. ac_res=`eval echo '${'$as_ac_Header'}'`
  8442. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8443. echo "${ECHO_T}$ac_res" >&6; }
  8444. else
  8445. # Is the header compilable?
  8446. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8447. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8448. cat >conftest.$ac_ext <<_ACEOF
  8449. /* confdefs.h. */
  8450. _ACEOF
  8451. cat confdefs.h >>conftest.$ac_ext
  8452. cat >>conftest.$ac_ext <<_ACEOF
  8453. /* end confdefs.h. */
  8454. $ac_includes_default
  8455. #include <$ac_header>
  8456. _ACEOF
  8457. rm -f conftest.$ac_objext
  8458. if { (ac_try="$ac_compile"
  8459. case "(($ac_try" in
  8460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8461. *) ac_try_echo=$ac_try;;
  8462. esac
  8463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8464. (eval "$ac_compile") 2>conftest.er1
  8465. ac_status=$?
  8466. grep -v '^ *+' conftest.er1 >conftest.err
  8467. rm -f conftest.er1
  8468. cat conftest.err >&5
  8469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8470. (exit $ac_status); } && {
  8471. test -z "$ac_c_werror_flag" ||
  8472. test ! -s conftest.err
  8473. } && test -s conftest.$ac_objext; then
  8474. ac_header_compiler=yes
  8475. else
  8476. echo "$as_me: failed program was:" >&5
  8477. sed 's/^/| /' conftest.$ac_ext >&5
  8478.  
  8479. ac_header_compiler=no
  8480. fi
  8481.  
  8482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8483. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8484. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8485.  
  8486. # Is the header present?
  8487. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8488. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8489. cat >conftest.$ac_ext <<_ACEOF
  8490. /* confdefs.h. */
  8491. _ACEOF
  8492. cat confdefs.h >>conftest.$ac_ext
  8493. cat >>conftest.$ac_ext <<_ACEOF
  8494. /* end confdefs.h. */
  8495. #include <$ac_header>
  8496. _ACEOF
  8497. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8498. case "(($ac_try" in
  8499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8500. *) ac_try_echo=$ac_try;;
  8501. esac
  8502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8503. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8504. ac_status=$?
  8505. grep -v '^ *+' conftest.er1 >conftest.err
  8506. rm -f conftest.er1
  8507. cat conftest.err >&5
  8508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8509. (exit $ac_status); } >/dev/null && {
  8510. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8511. test ! -s conftest.err
  8512. }; then
  8513. ac_header_preproc=yes
  8514. else
  8515. echo "$as_me: failed program was:" >&5
  8516. sed 's/^/| /' conftest.$ac_ext >&5
  8517.  
  8518. ac_header_preproc=no
  8519. fi
  8520.  
  8521. rm -f conftest.err conftest.$ac_ext
  8522. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8523. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8524.  
  8525. # So? What about this header?
  8526. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8527. yes:no: )
  8528. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8529. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8530. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8531. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8532. ac_header_preproc=yes
  8533. ;;
  8534. no:yes:* )
  8535. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8536. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8537. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8538. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8539. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8540. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8541. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8542. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8543. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8544. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8545. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8546. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8547.  
  8548. ;;
  8549. esac
  8550. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8551. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8552. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8553. echo $ECHO_N "(cached) $ECHO_C" >&6
  8554. else
  8555. eval "$as_ac_Header=\$ac_header_preproc"
  8556. fi
  8557. ac_res=`eval echo '${'$as_ac_Header'}'`
  8558. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8559. echo "${ECHO_T}$ac_res" >&6; }
  8560.  
  8561. fi
  8562. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8563. cat >>confdefs.h <<_ACEOF
  8564. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8565. _ACEOF
  8566.  
  8567. fi
  8568.  
  8569. done
  8570.  
  8571.  
  8572. for ac_header in bsdtypes.h
  8573. do
  8574. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8575. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8576. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8577. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8578. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8579. echo $ECHO_N "(cached) $ECHO_C" >&6
  8580. fi
  8581. ac_res=`eval echo '${'$as_ac_Header'}'`
  8582. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8583. echo "${ECHO_T}$ac_res" >&6; }
  8584. else
  8585. # Is the header compilable?
  8586. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8587. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8588. cat >conftest.$ac_ext <<_ACEOF
  8589. /* confdefs.h. */
  8590. _ACEOF
  8591. cat confdefs.h >>conftest.$ac_ext
  8592. cat >>conftest.$ac_ext <<_ACEOF
  8593. /* end confdefs.h. */
  8594. $ac_includes_default
  8595. #include <$ac_header>
  8596. _ACEOF
  8597. rm -f conftest.$ac_objext
  8598. if { (ac_try="$ac_compile"
  8599. case "(($ac_try" in
  8600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8601. *) ac_try_echo=$ac_try;;
  8602. esac
  8603. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8604. (eval "$ac_compile") 2>conftest.er1
  8605. ac_status=$?
  8606. grep -v '^ *+' conftest.er1 >conftest.err
  8607. rm -f conftest.er1
  8608. cat conftest.err >&5
  8609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8610. (exit $ac_status); } && {
  8611. test -z "$ac_c_werror_flag" ||
  8612. test ! -s conftest.err
  8613. } && test -s conftest.$ac_objext; then
  8614. ac_header_compiler=yes
  8615. else
  8616. echo "$as_me: failed program was:" >&5
  8617. sed 's/^/| /' conftest.$ac_ext >&5
  8618.  
  8619. ac_header_compiler=no
  8620. fi
  8621.  
  8622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8623. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8624. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8625.  
  8626. # Is the header present?
  8627. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8628. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8629. cat >conftest.$ac_ext <<_ACEOF
  8630. /* confdefs.h. */
  8631. _ACEOF
  8632. cat confdefs.h >>conftest.$ac_ext
  8633. cat >>conftest.$ac_ext <<_ACEOF
  8634. /* end confdefs.h. */
  8635. #include <$ac_header>
  8636. _ACEOF
  8637. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8638. case "(($ac_try" in
  8639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8640. *) ac_try_echo=$ac_try;;
  8641. esac
  8642. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8643. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8644. ac_status=$?
  8645. grep -v '^ *+' conftest.er1 >conftest.err
  8646. rm -f conftest.er1
  8647. cat conftest.err >&5
  8648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8649. (exit $ac_status); } >/dev/null && {
  8650. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8651. test ! -s conftest.err
  8652. }; then
  8653. ac_header_preproc=yes
  8654. else
  8655. echo "$as_me: failed program was:" >&5
  8656. sed 's/^/| /' conftest.$ac_ext >&5
  8657.  
  8658. ac_header_preproc=no
  8659. fi
  8660.  
  8661. rm -f conftest.err conftest.$ac_ext
  8662. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8663. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8664.  
  8665. # So? What about this header?
  8666. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8667. yes:no: )
  8668. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8669. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8670. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8671. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8672. ac_header_preproc=yes
  8673. ;;
  8674. no:yes:* )
  8675. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8676. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8677. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8678. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8679. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8680. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8681. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8682. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8683. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8684. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8685. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8686. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8687.  
  8688. ;;
  8689. esac
  8690. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8691. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8692. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8693. echo $ECHO_N "(cached) $ECHO_C" >&6
  8694. else
  8695. eval "$as_ac_Header=\$ac_header_preproc"
  8696. fi
  8697. ac_res=`eval echo '${'$as_ac_Header'}'`
  8698. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8699. echo "${ECHO_T}$ac_res" >&6; }
  8700.  
  8701. fi
  8702. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8703. cat >>confdefs.h <<_ACEOF
  8704. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8705. _ACEOF
  8706.  
  8707. fi
  8708.  
  8709. done
  8710.  
  8711.  
  8712. for ac_header in stdefs.h
  8713. do
  8714. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8715. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8716. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8717. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8718. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8719. echo $ECHO_N "(cached) $ECHO_C" >&6
  8720. fi
  8721. ac_res=`eval echo '${'$as_ac_Header'}'`
  8722. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8723. echo "${ECHO_T}$ac_res" >&6; }
  8724. else
  8725. # Is the header compilable?
  8726. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8727. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8728. cat >conftest.$ac_ext <<_ACEOF
  8729. /* confdefs.h. */
  8730. _ACEOF
  8731. cat confdefs.h >>conftest.$ac_ext
  8732. cat >>conftest.$ac_ext <<_ACEOF
  8733. /* end confdefs.h. */
  8734. $ac_includes_default
  8735. #include <$ac_header>
  8736. _ACEOF
  8737. rm -f conftest.$ac_objext
  8738. if { (ac_try="$ac_compile"
  8739. case "(($ac_try" in
  8740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8741. *) ac_try_echo=$ac_try;;
  8742. esac
  8743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8744. (eval "$ac_compile") 2>conftest.er1
  8745. ac_status=$?
  8746. grep -v '^ *+' conftest.er1 >conftest.err
  8747. rm -f conftest.er1
  8748. cat conftest.err >&5
  8749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8750. (exit $ac_status); } && {
  8751. test -z "$ac_c_werror_flag" ||
  8752. test ! -s conftest.err
  8753. } && test -s conftest.$ac_objext; then
  8754. ac_header_compiler=yes
  8755. else
  8756. echo "$as_me: failed program was:" >&5
  8757. sed 's/^/| /' conftest.$ac_ext >&5
  8758.  
  8759. ac_header_compiler=no
  8760. fi
  8761.  
  8762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8763. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8764. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8765.  
  8766. # Is the header present?
  8767. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8768. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8769. cat >conftest.$ac_ext <<_ACEOF
  8770. /* confdefs.h. */
  8771. _ACEOF
  8772. cat confdefs.h >>conftest.$ac_ext
  8773. cat >>conftest.$ac_ext <<_ACEOF
  8774. /* end confdefs.h. */
  8775. #include <$ac_header>
  8776. _ACEOF
  8777. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8778. case "(($ac_try" in
  8779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8780. *) ac_try_echo=$ac_try;;
  8781. esac
  8782. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8783. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8784. ac_status=$?
  8785. grep -v '^ *+' conftest.er1 >conftest.err
  8786. rm -f conftest.er1
  8787. cat conftest.err >&5
  8788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8789. (exit $ac_status); } >/dev/null && {
  8790. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8791. test ! -s conftest.err
  8792. }; then
  8793. ac_header_preproc=yes
  8794. else
  8795. echo "$as_me: failed program was:" >&5
  8796. sed 's/^/| /' conftest.$ac_ext >&5
  8797.  
  8798. ac_header_preproc=no
  8799. fi
  8800.  
  8801. rm -f conftest.err conftest.$ac_ext
  8802. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8803. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8804.  
  8805. # So? What about this header?
  8806. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8807. yes:no: )
  8808. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8809. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8810. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8811. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8812. ac_header_preproc=yes
  8813. ;;
  8814. no:yes:* )
  8815. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8816. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8817. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8818. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8819. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8820. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8821. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8822. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8823. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8824. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8825. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8826. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8827.  
  8828. ;;
  8829. esac
  8830. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8831. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8832. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8833. echo $ECHO_N "(cached) $ECHO_C" >&6
  8834. else
  8835. eval "$as_ac_Header=\$ac_header_preproc"
  8836. fi
  8837. ac_res=`eval echo '${'$as_ac_Header'}'`
  8838. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8839. echo "${ECHO_T}$ac_res" >&6; }
  8840.  
  8841. fi
  8842. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8843. cat >>confdefs.h <<_ACEOF
  8844. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8845. _ACEOF
  8846.  
  8847. fi
  8848.  
  8849. done
  8850.  
  8851.  
  8852. for ac_header in bsdtime.h
  8853. do
  8854. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8855. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8856. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8857. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8858. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8859. echo $ECHO_N "(cached) $ECHO_C" >&6
  8860. fi
  8861. ac_res=`eval echo '${'$as_ac_Header'}'`
  8862. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8863. echo "${ECHO_T}$ac_res" >&6; }
  8864. else
  8865. # Is the header compilable?
  8866. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8867. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8868. cat >conftest.$ac_ext <<_ACEOF
  8869. /* confdefs.h. */
  8870. _ACEOF
  8871. cat confdefs.h >>conftest.$ac_ext
  8872. cat >>conftest.$ac_ext <<_ACEOF
  8873. /* end confdefs.h. */
  8874. $ac_includes_default
  8875. #include <$ac_header>
  8876. _ACEOF
  8877. rm -f conftest.$ac_objext
  8878. if { (ac_try="$ac_compile"
  8879. case "(($ac_try" in
  8880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8881. *) ac_try_echo=$ac_try;;
  8882. esac
  8883. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8884. (eval "$ac_compile") 2>conftest.er1
  8885. ac_status=$?
  8886. grep -v '^ *+' conftest.er1 >conftest.err
  8887. rm -f conftest.er1
  8888. cat conftest.err >&5
  8889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8890. (exit $ac_status); } && {
  8891. test -z "$ac_c_werror_flag" ||
  8892. test ! -s conftest.err
  8893. } && test -s conftest.$ac_objext; then
  8894. ac_header_compiler=yes
  8895. else
  8896. echo "$as_me: failed program was:" >&5
  8897. sed 's/^/| /' conftest.$ac_ext >&5
  8898.  
  8899. ac_header_compiler=no
  8900. fi
  8901.  
  8902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8903. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8904. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8905.  
  8906. # Is the header present?
  8907. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8908. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8909. cat >conftest.$ac_ext <<_ACEOF
  8910. /* confdefs.h. */
  8911. _ACEOF
  8912. cat confdefs.h >>conftest.$ac_ext
  8913. cat >>conftest.$ac_ext <<_ACEOF
  8914. /* end confdefs.h. */
  8915. #include <$ac_header>
  8916. _ACEOF
  8917. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8918. case "(($ac_try" in
  8919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8920. *) ac_try_echo=$ac_try;;
  8921. esac
  8922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8923. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8924. ac_status=$?
  8925. grep -v '^ *+' conftest.er1 >conftest.err
  8926. rm -f conftest.er1
  8927. cat conftest.err >&5
  8928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8929. (exit $ac_status); } >/dev/null && {
  8930. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8931. test ! -s conftest.err
  8932. }; then
  8933. ac_header_preproc=yes
  8934. else
  8935. echo "$as_me: failed program was:" >&5
  8936. sed 's/^/| /' conftest.$ac_ext >&5
  8937.  
  8938. ac_header_preproc=no
  8939. fi
  8940.  
  8941. rm -f conftest.err conftest.$ac_ext
  8942. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8943. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8944.  
  8945. # So? What about this header?
  8946. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8947. yes:no: )
  8948. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8949. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8950. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8951. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8952. ac_header_preproc=yes
  8953. ;;
  8954. no:yes:* )
  8955. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8956. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8957. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8958. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8959. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8960. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8961. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8962. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8963. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8964. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8965. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8966. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8967.  
  8968. ;;
  8969. esac
  8970. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8971. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8972. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8973. echo $ECHO_N "(cached) $ECHO_C" >&6
  8974. else
  8975. eval "$as_ac_Header=\$ac_header_preproc"
  8976. fi
  8977. ac_res=`eval echo '${'$as_ac_Header'}'`
  8978. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8979. echo "${ECHO_T}$ac_res" >&6; }
  8980.  
  8981. fi
  8982. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8983. cat >>confdefs.h <<_ACEOF
  8984. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8985. _ACEOF
  8986.  
  8987. fi
  8988.  
  8989. done
  8990.  
  8991.  
  8992.  
  8993. for ac_header in sys/select.h select.h
  8994. do
  8995. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8996. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8997. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8998. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8999. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9000. echo $ECHO_N "(cached) $ECHO_C" >&6
  9001. fi
  9002. ac_res=`eval echo '${'$as_ac_Header'}'`
  9003. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9004. echo "${ECHO_T}$ac_res" >&6; }
  9005. else
  9006. # Is the header compilable?
  9007. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9008. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9009. cat >conftest.$ac_ext <<_ACEOF
  9010. /* confdefs.h. */
  9011. _ACEOF
  9012. cat confdefs.h >>conftest.$ac_ext
  9013. cat >>conftest.$ac_ext <<_ACEOF
  9014. /* end confdefs.h. */
  9015. $ac_includes_default
  9016. #include <$ac_header>
  9017. _ACEOF
  9018. rm -f conftest.$ac_objext
  9019. if { (ac_try="$ac_compile"
  9020. case "(($ac_try" in
  9021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9022. *) ac_try_echo=$ac_try;;
  9023. esac
  9024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9025. (eval "$ac_compile") 2>conftest.er1
  9026. ac_status=$?
  9027. grep -v '^ *+' conftest.er1 >conftest.err
  9028. rm -f conftest.er1
  9029. cat conftest.err >&5
  9030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9031. (exit $ac_status); } && {
  9032. test -z "$ac_c_werror_flag" ||
  9033. test ! -s conftest.err
  9034. } && test -s conftest.$ac_objext; then
  9035. ac_header_compiler=yes
  9036. else
  9037. echo "$as_me: failed program was:" >&5
  9038. sed 's/^/| /' conftest.$ac_ext >&5
  9039.  
  9040. ac_header_compiler=no
  9041. fi
  9042.  
  9043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9044. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9045. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9046.  
  9047. # Is the header present?
  9048. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9049. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9050. cat >conftest.$ac_ext <<_ACEOF
  9051. /* confdefs.h. */
  9052. _ACEOF
  9053. cat confdefs.h >>conftest.$ac_ext
  9054. cat >>conftest.$ac_ext <<_ACEOF
  9055. /* end confdefs.h. */
  9056. #include <$ac_header>
  9057. _ACEOF
  9058. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9059. case "(($ac_try" in
  9060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9061. *) ac_try_echo=$ac_try;;
  9062. esac
  9063. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9064. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9065. ac_status=$?
  9066. grep -v '^ *+' conftest.er1 >conftest.err
  9067. rm -f conftest.er1
  9068. cat conftest.err >&5
  9069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9070. (exit $ac_status); } >/dev/null && {
  9071. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9072. test ! -s conftest.err
  9073. }; then
  9074. ac_header_preproc=yes
  9075. else
  9076. echo "$as_me: failed program was:" >&5
  9077. sed 's/^/| /' conftest.$ac_ext >&5
  9078.  
  9079. ac_header_preproc=no
  9080. fi
  9081.  
  9082. rm -f conftest.err conftest.$ac_ext
  9083. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9084. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9085.  
  9086. # So? What about this header?
  9087. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9088. yes:no: )
  9089. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9090. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9091. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9092. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9093. ac_header_preproc=yes
  9094. ;;
  9095. no:yes:* )
  9096. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9097. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9098. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9099. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9100. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9101. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9102. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9103. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9104. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9105. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9106. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9107. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9108.  
  9109. ;;
  9110. esac
  9111. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9112. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9113. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9114. echo $ECHO_N "(cached) $ECHO_C" >&6
  9115. else
  9116. eval "$as_ac_Header=\$ac_header_preproc"
  9117. fi
  9118. ac_res=`eval echo '${'$as_ac_Header'}'`
  9119. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9120. echo "${ECHO_T}$ac_res" >&6; }
  9121.  
  9122. fi
  9123. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9124. cat >>confdefs.h <<_ACEOF
  9125. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9126. _ACEOF
  9127.  
  9128. fi
  9129.  
  9130. done
  9131.  
  9132.  
  9133. for ac_header in dnetdb.h
  9134. do
  9135. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9136. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9137. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9138. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9139. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9140. echo $ECHO_N "(cached) $ECHO_C" >&6
  9141. fi
  9142. ac_res=`eval echo '${'$as_ac_Header'}'`
  9143. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9144. echo "${ECHO_T}$ac_res" >&6; }
  9145. else
  9146. # Is the header compilable?
  9147. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9148. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9149. cat >conftest.$ac_ext <<_ACEOF
  9150. /* confdefs.h. */
  9151. _ACEOF
  9152. cat confdefs.h >>conftest.$ac_ext
  9153. cat >>conftest.$ac_ext <<_ACEOF
  9154. /* end confdefs.h. */
  9155. $ac_includes_default
  9156. #include <$ac_header>
  9157. _ACEOF
  9158. rm -f conftest.$ac_objext
  9159. if { (ac_try="$ac_compile"
  9160. case "(($ac_try" in
  9161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9162. *) ac_try_echo=$ac_try;;
  9163. esac
  9164. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9165. (eval "$ac_compile") 2>conftest.er1
  9166. ac_status=$?
  9167. grep -v '^ *+' conftest.er1 >conftest.err
  9168. rm -f conftest.er1
  9169. cat conftest.err >&5
  9170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9171. (exit $ac_status); } && {
  9172. test -z "$ac_c_werror_flag" ||
  9173. test ! -s conftest.err
  9174. } && test -s conftest.$ac_objext; then
  9175. ac_header_compiler=yes
  9176. else
  9177. echo "$as_me: failed program was:" >&5
  9178. sed 's/^/| /' conftest.$ac_ext >&5
  9179.  
  9180. ac_header_compiler=no
  9181. fi
  9182.  
  9183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9184. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9185. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9186.  
  9187. # Is the header present?
  9188. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9189. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9190. cat >conftest.$ac_ext <<_ACEOF
  9191. /* confdefs.h. */
  9192. _ACEOF
  9193. cat confdefs.h >>conftest.$ac_ext
  9194. cat >>conftest.$ac_ext <<_ACEOF
  9195. /* end confdefs.h. */
  9196. #include <$ac_header>
  9197. _ACEOF
  9198. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9199. case "(($ac_try" in
  9200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9201. *) ac_try_echo=$ac_try;;
  9202. esac
  9203. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9204. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9205. ac_status=$?
  9206. grep -v '^ *+' conftest.er1 >conftest.err
  9207. rm -f conftest.er1
  9208. cat conftest.err >&5
  9209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9210. (exit $ac_status); } >/dev/null && {
  9211. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9212. test ! -s conftest.err
  9213. }; then
  9214. ac_header_preproc=yes
  9215. else
  9216. echo "$as_me: failed program was:" >&5
  9217. sed 's/^/| /' conftest.$ac_ext >&5
  9218.  
  9219. ac_header_preproc=no
  9220. fi
  9221.  
  9222. rm -f conftest.err conftest.$ac_ext
  9223. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9224. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9225.  
  9226. # So? What about this header?
  9227. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9228. yes:no: )
  9229. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9230. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9231. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9232. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9233. ac_header_preproc=yes
  9234. ;;
  9235. no:yes:* )
  9236. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9237. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9238. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9239. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9240. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9241. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9242. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9243. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9244. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9245. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9246. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9247. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9248.  
  9249. ;;
  9250. esac
  9251. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9252. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9253. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9254. echo $ECHO_N "(cached) $ECHO_C" >&6
  9255. else
  9256. eval "$as_ac_Header=\$ac_header_preproc"
  9257. fi
  9258. ac_res=`eval echo '${'$as_ac_Header'}'`
  9259. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9260. echo "${ECHO_T}$ac_res" >&6; }
  9261.  
  9262. fi
  9263. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9264. cat >>confdefs.h <<_ACEOF
  9265. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9266. _ACEOF
  9267.  
  9268. fi
  9269.  
  9270. done
  9271.  
  9272.  
  9273. for ac_header in libc.h
  9274. do
  9275. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9276. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9277. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9278. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9279. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9280. echo $ECHO_N "(cached) $ECHO_C" >&6
  9281. fi
  9282. ac_res=`eval echo '${'$as_ac_Header'}'`
  9283. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9284. echo "${ECHO_T}$ac_res" >&6; }
  9285. else
  9286. # Is the header compilable?
  9287. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9288. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9289. cat >conftest.$ac_ext <<_ACEOF
  9290. /* confdefs.h. */
  9291. _ACEOF
  9292. cat confdefs.h >>conftest.$ac_ext
  9293. cat >>conftest.$ac_ext <<_ACEOF
  9294. /* end confdefs.h. */
  9295. $ac_includes_default
  9296. #include <$ac_header>
  9297. _ACEOF
  9298. rm -f conftest.$ac_objext
  9299. if { (ac_try="$ac_compile"
  9300. case "(($ac_try" in
  9301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9302. *) ac_try_echo=$ac_try;;
  9303. esac
  9304. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9305. (eval "$ac_compile") 2>conftest.er1
  9306. ac_status=$?
  9307. grep -v '^ *+' conftest.er1 >conftest.err
  9308. rm -f conftest.er1
  9309. cat conftest.err >&5
  9310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9311. (exit $ac_status); } && {
  9312. test -z "$ac_c_werror_flag" ||
  9313. test ! -s conftest.err
  9314. } && test -s conftest.$ac_objext; then
  9315. ac_header_compiler=yes
  9316. else
  9317. echo "$as_me: failed program was:" >&5
  9318. sed 's/^/| /' conftest.$ac_ext >&5
  9319.  
  9320. ac_header_compiler=no
  9321. fi
  9322.  
  9323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9324. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9325. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9326.  
  9327. # Is the header present?
  9328. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9329. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9330. cat >conftest.$ac_ext <<_ACEOF
  9331. /* confdefs.h. */
  9332. _ACEOF
  9333. cat confdefs.h >>conftest.$ac_ext
  9334. cat >>conftest.$ac_ext <<_ACEOF
  9335. /* end confdefs.h. */
  9336. #include <$ac_header>
  9337. _ACEOF
  9338. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9339. case "(($ac_try" in
  9340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9341. *) ac_try_echo=$ac_try;;
  9342. esac
  9343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9344. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9345. ac_status=$?
  9346. grep -v '^ *+' conftest.er1 >conftest.err
  9347. rm -f conftest.er1
  9348. cat conftest.err >&5
  9349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9350. (exit $ac_status); } >/dev/null && {
  9351. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9352. test ! -s conftest.err
  9353. }; then
  9354. ac_header_preproc=yes
  9355. else
  9356. echo "$as_me: failed program was:" >&5
  9357. sed 's/^/| /' conftest.$ac_ext >&5
  9358.  
  9359. ac_header_preproc=no
  9360. fi
  9361.  
  9362. rm -f conftest.err conftest.$ac_ext
  9363. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9364. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9365.  
  9366. # So? What about this header?
  9367. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9368. yes:no: )
  9369. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9370. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9371. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9372. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9373. ac_header_preproc=yes
  9374. ;;
  9375. no:yes:* )
  9376. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9377. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9378. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9379. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9380. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9381. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9382. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9383. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9384. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9385. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9386. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9387. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9388.  
  9389. ;;
  9390. esac
  9391. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9392. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9393. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9394. echo $ECHO_N "(cached) $ECHO_C" >&6
  9395. else
  9396. eval "$as_ac_Header=\$ac_header_preproc"
  9397. fi
  9398. ac_res=`eval echo '${'$as_ac_Header'}'`
  9399. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9400. echo "${ECHO_T}$ac_res" >&6; }
  9401.  
  9402. fi
  9403. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9404. cat >>confdefs.h <<_ACEOF
  9405. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9406. _ACEOF
  9407.  
  9408. fi
  9409.  
  9410. done
  9411.  
  9412.  
  9413. for ac_header in stdlib.h
  9414. do
  9415. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9416. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9417. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9418. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9419. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9420. echo $ECHO_N "(cached) $ECHO_C" >&6
  9421. fi
  9422. ac_res=`eval echo '${'$as_ac_Header'}'`
  9423. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9424. echo "${ECHO_T}$ac_res" >&6; }
  9425. else
  9426. # Is the header compilable?
  9427. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9428. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9429. cat >conftest.$ac_ext <<_ACEOF
  9430. /* confdefs.h. */
  9431. _ACEOF
  9432. cat confdefs.h >>conftest.$ac_ext
  9433. cat >>conftest.$ac_ext <<_ACEOF
  9434. /* end confdefs.h. */
  9435. $ac_includes_default
  9436. #include <$ac_header>
  9437. _ACEOF
  9438. rm -f conftest.$ac_objext
  9439. if { (ac_try="$ac_compile"
  9440. case "(($ac_try" in
  9441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9442. *) ac_try_echo=$ac_try;;
  9443. esac
  9444. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9445. (eval "$ac_compile") 2>conftest.er1
  9446. ac_status=$?
  9447. grep -v '^ *+' conftest.er1 >conftest.err
  9448. rm -f conftest.er1
  9449. cat conftest.err >&5
  9450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9451. (exit $ac_status); } && {
  9452. test -z "$ac_c_werror_flag" ||
  9453. test ! -s conftest.err
  9454. } && test -s conftest.$ac_objext; then
  9455. ac_header_compiler=yes
  9456. else
  9457. echo "$as_me: failed program was:" >&5
  9458. sed 's/^/| /' conftest.$ac_ext >&5
  9459.  
  9460. ac_header_compiler=no
  9461. fi
  9462.  
  9463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9464. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9465. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9466.  
  9467. # Is the header present?
  9468. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9469. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9470. cat >conftest.$ac_ext <<_ACEOF
  9471. /* confdefs.h. */
  9472. _ACEOF
  9473. cat confdefs.h >>conftest.$ac_ext
  9474. cat >>conftest.$ac_ext <<_ACEOF
  9475. /* end confdefs.h. */
  9476. #include <$ac_header>
  9477. _ACEOF
  9478. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9479. case "(($ac_try" in
  9480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9481. *) ac_try_echo=$ac_try;;
  9482. esac
  9483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9484. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9485. ac_status=$?
  9486. grep -v '^ *+' conftest.er1 >conftest.err
  9487. rm -f conftest.er1
  9488. cat conftest.err >&5
  9489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9490. (exit $ac_status); } >/dev/null && {
  9491. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9492. test ! -s conftest.err
  9493. }; then
  9494. ac_header_preproc=yes
  9495. else
  9496. echo "$as_me: failed program was:" >&5
  9497. sed 's/^/| /' conftest.$ac_ext >&5
  9498.  
  9499. ac_header_preproc=no
  9500. fi
  9501.  
  9502. rm -f conftest.err conftest.$ac_ext
  9503. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9504. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9505.  
  9506. # So? What about this header?
  9507. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9508. yes:no: )
  9509. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9510. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9511. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9512. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9513. ac_header_preproc=yes
  9514. ;;
  9515. no:yes:* )
  9516. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9517. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9518. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9519. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9520. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9521. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9522. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9523. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9524. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9525. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9526. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9527. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9528.  
  9529. ;;
  9530. esac
  9531. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9532. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9533. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9534. echo $ECHO_N "(cached) $ECHO_C" >&6
  9535. else
  9536. eval "$as_ac_Header=\$ac_header_preproc"
  9537. fi
  9538. ac_res=`eval echo '${'$as_ac_Header'}'`
  9539. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9540. echo "${ECHO_T}$ac_res" >&6; }
  9541.  
  9542. fi
  9543. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9544. cat >>confdefs.h <<_ACEOF
  9545. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9546. _ACEOF
  9547.  
  9548. fi
  9549.  
  9550. done
  9551.  
  9552.  
  9553. for ac_header in malloc.h
  9554. do
  9555. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9556. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9557. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9558. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9559. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9560. echo $ECHO_N "(cached) $ECHO_C" >&6
  9561. fi
  9562. ac_res=`eval echo '${'$as_ac_Header'}'`
  9563. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9564. echo "${ECHO_T}$ac_res" >&6; }
  9565. else
  9566. # Is the header compilable?
  9567. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9568. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9569. cat >conftest.$ac_ext <<_ACEOF
  9570. /* confdefs.h. */
  9571. _ACEOF
  9572. cat confdefs.h >>conftest.$ac_ext
  9573. cat >>conftest.$ac_ext <<_ACEOF
  9574. /* end confdefs.h. */
  9575. $ac_includes_default
  9576. #include <$ac_header>
  9577. _ACEOF
  9578. rm -f conftest.$ac_objext
  9579. if { (ac_try="$ac_compile"
  9580. case "(($ac_try" in
  9581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9582. *) ac_try_echo=$ac_try;;
  9583. esac
  9584. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9585. (eval "$ac_compile") 2>conftest.er1
  9586. ac_status=$?
  9587. grep -v '^ *+' conftest.er1 >conftest.err
  9588. rm -f conftest.er1
  9589. cat conftest.err >&5
  9590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9591. (exit $ac_status); } && {
  9592. test -z "$ac_c_werror_flag" ||
  9593. test ! -s conftest.err
  9594. } && test -s conftest.$ac_objext; then
  9595. ac_header_compiler=yes
  9596. else
  9597. echo "$as_me: failed program was:" >&5
  9598. sed 's/^/| /' conftest.$ac_ext >&5
  9599.  
  9600. ac_header_compiler=no
  9601. fi
  9602.  
  9603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9604. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9605. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9606.  
  9607. # Is the header present?
  9608. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9609. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9610. cat >conftest.$ac_ext <<_ACEOF
  9611. /* confdefs.h. */
  9612. _ACEOF
  9613. cat confdefs.h >>conftest.$ac_ext
  9614. cat >>conftest.$ac_ext <<_ACEOF
  9615. /* end confdefs.h. */
  9616. #include <$ac_header>
  9617. _ACEOF
  9618. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9619. case "(($ac_try" in
  9620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9621. *) ac_try_echo=$ac_try;;
  9622. esac
  9623. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9624. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9625. ac_status=$?
  9626. grep -v '^ *+' conftest.er1 >conftest.err
  9627. rm -f conftest.er1
  9628. cat conftest.err >&5
  9629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9630. (exit $ac_status); } >/dev/null && {
  9631. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9632. test ! -s conftest.err
  9633. }; then
  9634. ac_header_preproc=yes
  9635. else
  9636. echo "$as_me: failed program was:" >&5
  9637. sed 's/^/| /' conftest.$ac_ext >&5
  9638.  
  9639. ac_header_preproc=no
  9640. fi
  9641.  
  9642. rm -f conftest.err conftest.$ac_ext
  9643. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9644. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9645.  
  9646. # So? What about this header?
  9647. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9648. yes:no: )
  9649. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9650. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9651. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9652. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9653. ac_header_preproc=yes
  9654. ;;
  9655. no:yes:* )
  9656. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9657. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9658. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9659. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9660. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9661. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9662. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9663. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9664. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9665. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9666. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9667. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9668.  
  9669. ;;
  9670. esac
  9671. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9672. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9673. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9674. echo $ECHO_N "(cached) $ECHO_C" >&6
  9675. else
  9676. eval "$as_ac_Header=\$ac_header_preproc"
  9677. fi
  9678. ac_res=`eval echo '${'$as_ac_Header'}'`
  9679. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9680. echo "${ECHO_T}$ac_res" >&6; }
  9681.  
  9682. fi
  9683. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9684. cat >>confdefs.h <<_ACEOF
  9685. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9686. _ACEOF
  9687.  
  9688. fi
  9689.  
  9690. done
  9691.  
  9692.  
  9693. for ac_header in memory.h
  9694. do
  9695. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9696. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9697. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9698. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9699. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9700. echo $ECHO_N "(cached) $ECHO_C" >&6
  9701. fi
  9702. ac_res=`eval echo '${'$as_ac_Header'}'`
  9703. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9704. echo "${ECHO_T}$ac_res" >&6; }
  9705. else
  9706. # Is the header compilable?
  9707. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9708. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9709. cat >conftest.$ac_ext <<_ACEOF
  9710. /* confdefs.h. */
  9711. _ACEOF
  9712. cat confdefs.h >>conftest.$ac_ext
  9713. cat >>conftest.$ac_ext <<_ACEOF
  9714. /* end confdefs.h. */
  9715. $ac_includes_default
  9716. #include <$ac_header>
  9717. _ACEOF
  9718. rm -f conftest.$ac_objext
  9719. if { (ac_try="$ac_compile"
  9720. case "(($ac_try" in
  9721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9722. *) ac_try_echo=$ac_try;;
  9723. esac
  9724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9725. (eval "$ac_compile") 2>conftest.er1
  9726. ac_status=$?
  9727. grep -v '^ *+' conftest.er1 >conftest.err
  9728. rm -f conftest.er1
  9729. cat conftest.err >&5
  9730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9731. (exit $ac_status); } && {
  9732. test -z "$ac_c_werror_flag" ||
  9733. test ! -s conftest.err
  9734. } && test -s conftest.$ac_objext; then
  9735. ac_header_compiler=yes
  9736. else
  9737. echo "$as_me: failed program was:" >&5
  9738. sed 's/^/| /' conftest.$ac_ext >&5
  9739.  
  9740. ac_header_compiler=no
  9741. fi
  9742.  
  9743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9744. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9745. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9746.  
  9747. # Is the header present?
  9748. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9749. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9750. cat >conftest.$ac_ext <<_ACEOF
  9751. /* confdefs.h. */
  9752. _ACEOF
  9753. cat confdefs.h >>conftest.$ac_ext
  9754. cat >>conftest.$ac_ext <<_ACEOF
  9755. /* end confdefs.h. */
  9756. #include <$ac_header>
  9757. _ACEOF
  9758. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9759. case "(($ac_try" in
  9760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9761. *) ac_try_echo=$ac_try;;
  9762. esac
  9763. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9764. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9765. ac_status=$?
  9766. grep -v '^ *+' conftest.er1 >conftest.err
  9767. rm -f conftest.er1
  9768. cat conftest.err >&5
  9769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9770. (exit $ac_status); } >/dev/null && {
  9771. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9772. test ! -s conftest.err
  9773. }; then
  9774. ac_header_preproc=yes
  9775. else
  9776. echo "$as_me: failed program was:" >&5
  9777. sed 's/^/| /' conftest.$ac_ext >&5
  9778.  
  9779. ac_header_preproc=no
  9780. fi
  9781.  
  9782. rm -f conftest.err conftest.$ac_ext
  9783. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9784. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9785.  
  9786. # So? What about this header?
  9787. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9788. yes:no: )
  9789. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9790. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9791. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9792. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9793. ac_header_preproc=yes
  9794. ;;
  9795. no:yes:* )
  9796. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9797. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9798. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9799. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9800. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9801. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9802. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9803. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9804. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9805. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9806. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9807. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9808.  
  9809. ;;
  9810. esac
  9811. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9812. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9813. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9814. echo $ECHO_N "(cached) $ECHO_C" >&6
  9815. else
  9816. eval "$as_ac_Header=\$ac_header_preproc"
  9817. fi
  9818. ac_res=`eval echo '${'$as_ac_Header'}'`
  9819. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9820. echo "${ECHO_T}$ac_res" >&6; }
  9821.  
  9822. fi
  9823. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9824. cat >>confdefs.h <<_ACEOF
  9825. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9826. _ACEOF
  9827.  
  9828. fi
  9829.  
  9830. done
  9831.  
  9832.  
  9833. for ac_header in unixlib.h
  9834. do
  9835. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9836. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9837. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9838. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9839. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9840. echo $ECHO_N "(cached) $ECHO_C" >&6
  9841. fi
  9842. ac_res=`eval echo '${'$as_ac_Header'}'`
  9843. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9844. echo "${ECHO_T}$ac_res" >&6; }
  9845. else
  9846. # Is the header compilable?
  9847. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9848. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9849. cat >conftest.$ac_ext <<_ACEOF
  9850. /* confdefs.h. */
  9851. _ACEOF
  9852. cat confdefs.h >>conftest.$ac_ext
  9853. cat >>conftest.$ac_ext <<_ACEOF
  9854. /* end confdefs.h. */
  9855. $ac_includes_default
  9856. #include <$ac_header>
  9857. _ACEOF
  9858. rm -f conftest.$ac_objext
  9859. if { (ac_try="$ac_compile"
  9860. case "(($ac_try" in
  9861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9862. *) ac_try_echo=$ac_try;;
  9863. esac
  9864. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9865. (eval "$ac_compile") 2>conftest.er1
  9866. ac_status=$?
  9867. grep -v '^ *+' conftest.er1 >conftest.err
  9868. rm -f conftest.er1
  9869. cat conftest.err >&5
  9870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9871. (exit $ac_status); } && {
  9872. test -z "$ac_c_werror_flag" ||
  9873. test ! -s conftest.err
  9874. } && test -s conftest.$ac_objext; then
  9875. ac_header_compiler=yes
  9876. else
  9877. echo "$as_me: failed program was:" >&5
  9878. sed 's/^/| /' conftest.$ac_ext >&5
  9879.  
  9880. ac_header_compiler=no
  9881. fi
  9882.  
  9883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9884. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9885. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9886.  
  9887. # Is the header present?
  9888. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9889. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9890. cat >conftest.$ac_ext <<_ACEOF
  9891. /* confdefs.h. */
  9892. _ACEOF
  9893. cat confdefs.h >>conftest.$ac_ext
  9894. cat >>conftest.$ac_ext <<_ACEOF
  9895. /* end confdefs.h. */
  9896. #include <$ac_header>
  9897. _ACEOF
  9898. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9899. case "(($ac_try" in
  9900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9901. *) ac_try_echo=$ac_try;;
  9902. esac
  9903. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9904. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9905. ac_status=$?
  9906. grep -v '^ *+' conftest.er1 >conftest.err
  9907. rm -f conftest.er1
  9908. cat conftest.err >&5
  9909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9910. (exit $ac_status); } >/dev/null && {
  9911. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9912. test ! -s conftest.err
  9913. }; then
  9914. ac_header_preproc=yes
  9915. else
  9916. echo "$as_me: failed program was:" >&5
  9917. sed 's/^/| /' conftest.$ac_ext >&5
  9918.  
  9919. ac_header_preproc=no
  9920. fi
  9921.  
  9922. rm -f conftest.err conftest.$ac_ext
  9923. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9924. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9925.  
  9926. # So? What about this header?
  9927. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9928. yes:no: )
  9929. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9930. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9931. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9932. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9933. ac_header_preproc=yes
  9934. ;;
  9935. no:yes:* )
  9936. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9937. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9938. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9939. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9940. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9941. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9942. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9943. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9944. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9945. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9946. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9947. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9948.  
  9949. ;;
  9950. esac
  9951. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9952. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9953. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9954. echo $ECHO_N "(cached) $ECHO_C" >&6
  9955. else
  9956. eval "$as_ac_Header=\$ac_header_preproc"
  9957. fi
  9958. ac_res=`eval echo '${'$as_ac_Header'}'`
  9959. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9960. echo "${ECHO_T}$ac_res" >&6; }
  9961.  
  9962. fi
  9963. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9964. cat >>confdefs.h <<_ACEOF
  9965. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9966. _ACEOF
  9967.  
  9968. fi
  9969.  
  9970. done
  9971.  
  9972.  
  9973. for ac_header in ctype.h
  9974. do
  9975. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9976. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9977. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9978. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9979. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9980. echo $ECHO_N "(cached) $ECHO_C" >&6
  9981. fi
  9982. ac_res=`eval echo '${'$as_ac_Header'}'`
  9983. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9984. echo "${ECHO_T}$ac_res" >&6; }
  9985. else
  9986. # Is the header compilable?
  9987. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9988. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9989. cat >conftest.$ac_ext <<_ACEOF
  9990. /* confdefs.h. */
  9991. _ACEOF
  9992. cat confdefs.h >>conftest.$ac_ext
  9993. cat >>conftest.$ac_ext <<_ACEOF
  9994. /* end confdefs.h. */
  9995. $ac_includes_default
  9996. #include <$ac_header>
  9997. _ACEOF
  9998. rm -f conftest.$ac_objext
  9999. if { (ac_try="$ac_compile"
  10000. case "(($ac_try" in
  10001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10002. *) ac_try_echo=$ac_try;;
  10003. esac
  10004. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10005. (eval "$ac_compile") 2>conftest.er1
  10006. ac_status=$?
  10007. grep -v '^ *+' conftest.er1 >conftest.err
  10008. rm -f conftest.er1
  10009. cat conftest.err >&5
  10010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10011. (exit $ac_status); } && {
  10012. test -z "$ac_c_werror_flag" ||
  10013. test ! -s conftest.err
  10014. } && test -s conftest.$ac_objext; then
  10015. ac_header_compiler=yes
  10016. else
  10017. echo "$as_me: failed program was:" >&5
  10018. sed 's/^/| /' conftest.$ac_ext >&5
  10019.  
  10020. ac_header_compiler=no
  10021. fi
  10022.  
  10023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10024. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10025. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10026.  
  10027. # Is the header present?
  10028. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10029. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10030. cat >conftest.$ac_ext <<_ACEOF
  10031. /* confdefs.h. */
  10032. _ACEOF
  10033. cat confdefs.h >>conftest.$ac_ext
  10034. cat >>conftest.$ac_ext <<_ACEOF
  10035. /* end confdefs.h. */
  10036. #include <$ac_header>
  10037. _ACEOF
  10038. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10039. case "(($ac_try" in
  10040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10041. *) ac_try_echo=$ac_try;;
  10042. esac
  10043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10044. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10045. ac_status=$?
  10046. grep -v '^ *+' conftest.er1 >conftest.err
  10047. rm -f conftest.er1
  10048. cat conftest.err >&5
  10049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10050. (exit $ac_status); } >/dev/null && {
  10051. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10052. test ! -s conftest.err
  10053. }; then
  10054. ac_header_preproc=yes
  10055. else
  10056. echo "$as_me: failed program was:" >&5
  10057. sed 's/^/| /' conftest.$ac_ext >&5
  10058.  
  10059. ac_header_preproc=no
  10060. fi
  10061.  
  10062. rm -f conftest.err conftest.$ac_ext
  10063. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10064. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10065.  
  10066. # So? What about this header?
  10067. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10068. yes:no: )
  10069. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10070. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10071. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10072. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10073. ac_header_preproc=yes
  10074. ;;
  10075. no:yes:* )
  10076. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10077. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10078. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10079. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10080. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10081. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10082. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10083. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10084. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10085. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10086. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10087. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10088.  
  10089. ;;
  10090. esac
  10091. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10092. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10093. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10094. echo $ECHO_N "(cached) $ECHO_C" >&6
  10095. else
  10096. eval "$as_ac_Header=\$ac_header_preproc"
  10097. fi
  10098. ac_res=`eval echo '${'$as_ac_Header'}'`
  10099. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10100. echo "${ECHO_T}$ac_res" >&6; }
  10101.  
  10102. fi
  10103. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10104. cat >>confdefs.h <<_ACEOF
  10105. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10106. _ACEOF
  10107.  
  10108. fi
  10109.  
  10110. done
  10111.  
  10112.  
  10113.  
  10114. for ac_header in cursesX.h curses.h
  10115. do
  10116. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10117. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10118. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10119. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10120. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10121. echo $ECHO_N "(cached) $ECHO_C" >&6
  10122. fi
  10123. ac_res=`eval echo '${'$as_ac_Header'}'`
  10124. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10125. echo "${ECHO_T}$ac_res" >&6; }
  10126. else
  10127. # Is the header compilable?
  10128. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10129. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10130. cat >conftest.$ac_ext <<_ACEOF
  10131. /* confdefs.h. */
  10132. _ACEOF
  10133. cat confdefs.h >>conftest.$ac_ext
  10134. cat >>conftest.$ac_ext <<_ACEOF
  10135. /* end confdefs.h. */
  10136. $ac_includes_default
  10137. #include <$ac_header>
  10138. _ACEOF
  10139. rm -f conftest.$ac_objext
  10140. if { (ac_try="$ac_compile"
  10141. case "(($ac_try" in
  10142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10143. *) ac_try_echo=$ac_try;;
  10144. esac
  10145. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10146. (eval "$ac_compile") 2>conftest.er1
  10147. ac_status=$?
  10148. grep -v '^ *+' conftest.er1 >conftest.err
  10149. rm -f conftest.er1
  10150. cat conftest.err >&5
  10151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10152. (exit $ac_status); } && {
  10153. test -z "$ac_c_werror_flag" ||
  10154. test ! -s conftest.err
  10155. } && test -s conftest.$ac_objext; then
  10156. ac_header_compiler=yes
  10157. else
  10158. echo "$as_me: failed program was:" >&5
  10159. sed 's/^/| /' conftest.$ac_ext >&5
  10160.  
  10161. ac_header_compiler=no
  10162. fi
  10163.  
  10164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10165. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10166. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10167.  
  10168. # Is the header present?
  10169. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10170. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10171. cat >conftest.$ac_ext <<_ACEOF
  10172. /* confdefs.h. */
  10173. _ACEOF
  10174. cat confdefs.h >>conftest.$ac_ext
  10175. cat >>conftest.$ac_ext <<_ACEOF
  10176. /* end confdefs.h. */
  10177. #include <$ac_header>
  10178. _ACEOF
  10179. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10180. case "(($ac_try" in
  10181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10182. *) ac_try_echo=$ac_try;;
  10183. esac
  10184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10185. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10186. ac_status=$?
  10187. grep -v '^ *+' conftest.er1 >conftest.err
  10188. rm -f conftest.er1
  10189. cat conftest.err >&5
  10190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10191. (exit $ac_status); } >/dev/null && {
  10192. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10193. test ! -s conftest.err
  10194. }; then
  10195. ac_header_preproc=yes
  10196. else
  10197. echo "$as_me: failed program was:" >&5
  10198. sed 's/^/| /' conftest.$ac_ext >&5
  10199.  
  10200. ac_header_preproc=no
  10201. fi
  10202.  
  10203. rm -f conftest.err conftest.$ac_ext
  10204. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10205. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10206.  
  10207. # So? What about this header?
  10208. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10209. yes:no: )
  10210. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10211. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10212. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10213. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10214. ac_header_preproc=yes
  10215. ;;
  10216. no:yes:* )
  10217. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10218. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10219. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10220. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10221. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10222. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10223. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10224. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10225. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10226. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10227. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10228. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10229.  
  10230. ;;
  10231. esac
  10232. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10233. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10234. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10235. echo $ECHO_N "(cached) $ECHO_C" >&6
  10236. else
  10237. eval "$as_ac_Header=\$ac_header_preproc"
  10238. fi
  10239. ac_res=`eval echo '${'$as_ac_Header'}'`
  10240. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10241. echo "${ECHO_T}$ac_res" >&6; }
  10242.  
  10243. fi
  10244. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10245. cat >>confdefs.h <<_ACEOF
  10246. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10247. _ACEOF
  10248.  
  10249. fi
  10250.  
  10251. done
  10252.  
  10253.  
  10254.  
  10255. for ac_header in sys/resource.h resource.h
  10256. do
  10257. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10258. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10259. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10260. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10261. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10262. echo $ECHO_N "(cached) $ECHO_C" >&6
  10263. fi
  10264. ac_res=`eval echo '${'$as_ac_Header'}'`
  10265. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10266. echo "${ECHO_T}$ac_res" >&6; }
  10267. else
  10268. # Is the header compilable?
  10269. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10270. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10271. cat >conftest.$ac_ext <<_ACEOF
  10272. /* confdefs.h. */
  10273. _ACEOF
  10274. cat confdefs.h >>conftest.$ac_ext
  10275. cat >>conftest.$ac_ext <<_ACEOF
  10276. /* end confdefs.h. */
  10277. $ac_includes_default
  10278. #include <$ac_header>
  10279. _ACEOF
  10280. rm -f conftest.$ac_objext
  10281. if { (ac_try="$ac_compile"
  10282. case "(($ac_try" in
  10283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10284. *) ac_try_echo=$ac_try;;
  10285. esac
  10286. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10287. (eval "$ac_compile") 2>conftest.er1
  10288. ac_status=$?
  10289. grep -v '^ *+' conftest.er1 >conftest.err
  10290. rm -f conftest.er1
  10291. cat conftest.err >&5
  10292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10293. (exit $ac_status); } && {
  10294. test -z "$ac_c_werror_flag" ||
  10295. test ! -s conftest.err
  10296. } && test -s conftest.$ac_objext; then
  10297. ac_header_compiler=yes
  10298. else
  10299. echo "$as_me: failed program was:" >&5
  10300. sed 's/^/| /' conftest.$ac_ext >&5
  10301.  
  10302. ac_header_compiler=no
  10303. fi
  10304.  
  10305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10306. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10307. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10308.  
  10309. # Is the header present?
  10310. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10311. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10312. cat >conftest.$ac_ext <<_ACEOF
  10313. /* confdefs.h. */
  10314. _ACEOF
  10315. cat confdefs.h >>conftest.$ac_ext
  10316. cat >>conftest.$ac_ext <<_ACEOF
  10317. /* end confdefs.h. */
  10318. #include <$ac_header>
  10319. _ACEOF
  10320. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10321. case "(($ac_try" in
  10322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10323. *) ac_try_echo=$ac_try;;
  10324. esac
  10325. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10326. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10327. ac_status=$?
  10328. grep -v '^ *+' conftest.er1 >conftest.err
  10329. rm -f conftest.er1
  10330. cat conftest.err >&5
  10331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10332. (exit $ac_status); } >/dev/null && {
  10333. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10334. test ! -s conftest.err
  10335. }; then
  10336. ac_header_preproc=yes
  10337. else
  10338. echo "$as_me: failed program was:" >&5
  10339. sed 's/^/| /' conftest.$ac_ext >&5
  10340.  
  10341. ac_header_preproc=no
  10342. fi
  10343.  
  10344. rm -f conftest.err conftest.$ac_ext
  10345. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10346. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10347.  
  10348. # So? What about this header?
  10349. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10350. yes:no: )
  10351. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10352. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10353. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10354. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10355. ac_header_preproc=yes
  10356. ;;
  10357. no:yes:* )
  10358. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10359. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10360. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10361. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10362. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10363. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10364. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10365. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10366. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10367. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10368. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10369. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10370.  
  10371. ;;
  10372. esac
  10373. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10374. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10375. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10376. echo $ECHO_N "(cached) $ECHO_C" >&6
  10377. else
  10378. eval "$as_ac_Header=\$ac_header_preproc"
  10379. fi
  10380. ac_res=`eval echo '${'$as_ac_Header'}'`
  10381. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10382. echo "${ECHO_T}$ac_res" >&6; }
  10383.  
  10384. fi
  10385. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10386. cat >>confdefs.h <<_ACEOF
  10387. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10388. _ACEOF
  10389.  
  10390. fi
  10391.  
  10392. done
  10393.  
  10394.  
  10395.  
  10396.  
  10397.  
  10398.  
  10399. ac_header_dirent=no
  10400. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  10401. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  10402. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  10403. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  10404. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10405. echo $ECHO_N "(cached) $ECHO_C" >&6
  10406. else
  10407. cat >conftest.$ac_ext <<_ACEOF
  10408. /* confdefs.h. */
  10409. _ACEOF
  10410. cat confdefs.h >>conftest.$ac_ext
  10411. cat >>conftest.$ac_ext <<_ACEOF
  10412. /* end confdefs.h. */
  10413. #include <sys/types.h>
  10414. #include <$ac_hdr>
  10415.  
  10416. int
  10417. main ()
  10418. {
  10419. if ((DIR *) 0)
  10420. return 0;
  10421. ;
  10422. return 0;
  10423. }
  10424. _ACEOF
  10425. rm -f conftest.$ac_objext
  10426. if { (ac_try="$ac_compile"
  10427. case "(($ac_try" in
  10428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10429. *) ac_try_echo=$ac_try;;
  10430. esac
  10431. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10432. (eval "$ac_compile") 2>conftest.er1
  10433. ac_status=$?
  10434. grep -v '^ *+' conftest.er1 >conftest.err
  10435. rm -f conftest.er1
  10436. cat conftest.err >&5
  10437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10438. (exit $ac_status); } && {
  10439. test -z "$ac_c_werror_flag" ||
  10440. test ! -s conftest.err
  10441. } && test -s conftest.$ac_objext; then
  10442. eval "$as_ac_Header=yes"
  10443. else
  10444. echo "$as_me: failed program was:" >&5
  10445. sed 's/^/| /' conftest.$ac_ext >&5
  10446.  
  10447. eval "$as_ac_Header=no"
  10448. fi
  10449.  
  10450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10451. fi
  10452. ac_res=`eval echo '${'$as_ac_Header'}'`
  10453. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10454. echo "${ECHO_T}$ac_res" >&6; }
  10455. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10456. cat >>confdefs.h <<_ACEOF
  10457. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  10458. _ACEOF
  10459.  
  10460. ac_header_dirent=$ac_hdr; break
  10461. fi
  10462.  
  10463. done
  10464. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  10465. if test $ac_header_dirent = dirent.h; then
  10466. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  10467. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  10468. if test "${ac_cv_search_opendir+set}" = set; then
  10469. echo $ECHO_N "(cached) $ECHO_C" >&6
  10470. else
  10471. ac_func_search_save_LIBS=$LIBS
  10472. cat >conftest.$ac_ext <<_ACEOF
  10473. /* confdefs.h. */
  10474. _ACEOF
  10475. cat confdefs.h >>conftest.$ac_ext
  10476. cat >>conftest.$ac_ext <<_ACEOF
  10477. /* end confdefs.h. */
  10478.  
  10479. /* Override any GCC internal prototype to avoid an error.
  10480. Use char because int might match the return type of a GCC
  10481. builtin and then its argument prototype would still apply. */
  10482. #ifdef __cplusplus
  10483. extern "C"
  10484. #endif
  10485. char opendir ();
  10486. int
  10487. main ()
  10488. {
  10489. return opendir ();
  10490. ;
  10491. return 0;
  10492. }
  10493. _ACEOF
  10494. for ac_lib in '' dir; do
  10495. if test -z "$ac_lib"; then
  10496. ac_res="none required"
  10497. else
  10498. ac_res=-l$ac_lib
  10499. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10500. fi
  10501. rm -f conftest.$ac_objext conftest$ac_exeext
  10502. if { (ac_try="$ac_link"
  10503. case "(($ac_try" in
  10504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10505. *) ac_try_echo=$ac_try;;
  10506. esac
  10507. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10508. (eval "$ac_link") 2>conftest.er1
  10509. ac_status=$?
  10510. grep -v '^ *+' conftest.er1 >conftest.err
  10511. rm -f conftest.er1
  10512. cat conftest.err >&5
  10513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10514. (exit $ac_status); } && {
  10515. test -z "$ac_c_werror_flag" ||
  10516. test ! -s conftest.err
  10517. } && test -s conftest$ac_exeext &&
  10518. $as_test_x conftest$ac_exeext; then
  10519. ac_cv_search_opendir=$ac_res
  10520. else
  10521. echo "$as_me: failed program was:" >&5
  10522. sed 's/^/| /' conftest.$ac_ext >&5
  10523.  
  10524.  
  10525. fi
  10526.  
  10527. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10528. conftest$ac_exeext
  10529. if test "${ac_cv_search_opendir+set}" = set; then
  10530. break
  10531. fi
  10532. done
  10533. if test "${ac_cv_search_opendir+set}" = set; then
  10534. :
  10535. else
  10536. ac_cv_search_opendir=no
  10537. fi
  10538. rm conftest.$ac_ext
  10539. LIBS=$ac_func_search_save_LIBS
  10540. fi
  10541. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  10542. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  10543. ac_res=$ac_cv_search_opendir
  10544. if test "$ac_res" != no; then
  10545. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10546.  
  10547. fi
  10548.  
  10549. else
  10550. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  10551. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  10552. if test "${ac_cv_search_opendir+set}" = set; then
  10553. echo $ECHO_N "(cached) $ECHO_C" >&6
  10554. else
  10555. ac_func_search_save_LIBS=$LIBS
  10556. cat >conftest.$ac_ext <<_ACEOF
  10557. /* confdefs.h. */
  10558. _ACEOF
  10559. cat confdefs.h >>conftest.$ac_ext
  10560. cat >>conftest.$ac_ext <<_ACEOF
  10561. /* end confdefs.h. */
  10562.  
  10563. /* Override any GCC internal prototype to avoid an error.
  10564. Use char because int might match the return type of a GCC
  10565. builtin and then its argument prototype would still apply. */
  10566. #ifdef __cplusplus
  10567. extern "C"
  10568. #endif
  10569. char opendir ();
  10570. int
  10571. main ()
  10572. {
  10573. return opendir ();
  10574. ;
  10575. return 0;
  10576. }
  10577. _ACEOF
  10578. for ac_lib in '' x; do
  10579. if test -z "$ac_lib"; then
  10580. ac_res="none required"
  10581. else
  10582. ac_res=-l$ac_lib
  10583. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10584. fi
  10585. rm -f conftest.$ac_objext conftest$ac_exeext
  10586. if { (ac_try="$ac_link"
  10587. case "(($ac_try" in
  10588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10589. *) ac_try_echo=$ac_try;;
  10590. esac
  10591. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10592. (eval "$ac_link") 2>conftest.er1
  10593. ac_status=$?
  10594. grep -v '^ *+' conftest.er1 >conftest.err
  10595. rm -f conftest.er1
  10596. cat conftest.err >&5
  10597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10598. (exit $ac_status); } && {
  10599. test -z "$ac_c_werror_flag" ||
  10600. test ! -s conftest.err
  10601. } && test -s conftest$ac_exeext &&
  10602. $as_test_x conftest$ac_exeext; then
  10603. ac_cv_search_opendir=$ac_res
  10604. else
  10605. echo "$as_me: failed program was:" >&5
  10606. sed 's/^/| /' conftest.$ac_ext >&5
  10607.  
  10608.  
  10609. fi
  10610.  
  10611. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10612. conftest$ac_exeext
  10613. if test "${ac_cv_search_opendir+set}" = set; then
  10614. break
  10615. fi
  10616. done
  10617. if test "${ac_cv_search_opendir+set}" = set; then
  10618. :
  10619. else
  10620. ac_cv_search_opendir=no
  10621. fi
  10622. rm conftest.$ac_ext
  10623. LIBS=$ac_func_search_save_LIBS
  10624. fi
  10625. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  10626. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  10627. ac_res=$ac_cv_search_opendir
  10628. if test "$ac_res" != no; then
  10629. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10630.  
  10631. fi
  10632.  
  10633. fi
  10634.  
  10635.  
  10636.  
  10637. for ac_header in dir.h direct.h
  10638. do
  10639. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10640. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10641. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10642. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10643. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10644. echo $ECHO_N "(cached) $ECHO_C" >&6
  10645. fi
  10646. ac_res=`eval echo '${'$as_ac_Header'}'`
  10647. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10648. echo "${ECHO_T}$ac_res" >&6; }
  10649. else
  10650. # Is the header compilable?
  10651. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10652. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10653. cat >conftest.$ac_ext <<_ACEOF
  10654. /* confdefs.h. */
  10655. _ACEOF
  10656. cat confdefs.h >>conftest.$ac_ext
  10657. cat >>conftest.$ac_ext <<_ACEOF
  10658. /* end confdefs.h. */
  10659. $ac_includes_default
  10660. #include <$ac_header>
  10661. _ACEOF
  10662. rm -f conftest.$ac_objext
  10663. if { (ac_try="$ac_compile"
  10664. case "(($ac_try" in
  10665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10666. *) ac_try_echo=$ac_try;;
  10667. esac
  10668. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10669. (eval "$ac_compile") 2>conftest.er1
  10670. ac_status=$?
  10671. grep -v '^ *+' conftest.er1 >conftest.err
  10672. rm -f conftest.er1
  10673. cat conftest.err >&5
  10674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10675. (exit $ac_status); } && {
  10676. test -z "$ac_c_werror_flag" ||
  10677. test ! -s conftest.err
  10678. } && test -s conftest.$ac_objext; then
  10679. ac_header_compiler=yes
  10680. else
  10681. echo "$as_me: failed program was:" >&5
  10682. sed 's/^/| /' conftest.$ac_ext >&5
  10683.  
  10684. ac_header_compiler=no
  10685. fi
  10686.  
  10687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10688. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10689. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10690.  
  10691. # Is the header present?
  10692. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10693. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10694. cat >conftest.$ac_ext <<_ACEOF
  10695. /* confdefs.h. */
  10696. _ACEOF
  10697. cat confdefs.h >>conftest.$ac_ext
  10698. cat >>conftest.$ac_ext <<_ACEOF
  10699. /* end confdefs.h. */
  10700. #include <$ac_header>
  10701. _ACEOF
  10702. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10703. case "(($ac_try" in
  10704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10705. *) ac_try_echo=$ac_try;;
  10706. esac
  10707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10708. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10709. ac_status=$?
  10710. grep -v '^ *+' conftest.er1 >conftest.err
  10711. rm -f conftest.er1
  10712. cat conftest.err >&5
  10713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10714. (exit $ac_status); } >/dev/null && {
  10715. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10716. test ! -s conftest.err
  10717. }; then
  10718. ac_header_preproc=yes
  10719. else
  10720. echo "$as_me: failed program was:" >&5
  10721. sed 's/^/| /' conftest.$ac_ext >&5
  10722.  
  10723. ac_header_preproc=no
  10724. fi
  10725.  
  10726. rm -f conftest.err conftest.$ac_ext
  10727. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10728. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10729.  
  10730. # So? What about this header?
  10731. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10732. yes:no: )
  10733. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10734. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10735. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10736. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10737. ac_header_preproc=yes
  10738. ;;
  10739. no:yes:* )
  10740. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10741. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10742. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10743. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10744. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10745. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10746. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10747. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10748. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10749. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10750. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10751. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10752.  
  10753. ;;
  10754. esac
  10755. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10756. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10757. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10758. echo $ECHO_N "(cached) $ECHO_C" >&6
  10759. else
  10760. eval "$as_ac_Header=\$ac_header_preproc"
  10761. fi
  10762. ac_res=`eval echo '${'$as_ac_Header'}'`
  10763. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10764. echo "${ECHO_T}$ac_res" >&6; }
  10765.  
  10766. fi
  10767. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10768. cat >>confdefs.h <<_ACEOF
  10769. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10770. _ACEOF
  10771.  
  10772. fi
  10773.  
  10774. done
  10775. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  10776. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  10777. if test "${ac_cv_header_stdc+set}" = set; then
  10778. echo $ECHO_N "(cached) $ECHO_C" >&6
  10779. else
  10780. cat >conftest.$ac_ext <<_ACEOF
  10781. /* confdefs.h. */
  10782. _ACEOF
  10783. cat confdefs.h >>conftest.$ac_ext
  10784. cat >>conftest.$ac_ext <<_ACEOF
  10785. /* end confdefs.h. */
  10786. #include <stdlib.h>
  10787. #include <stdarg.h>
  10788. #include <string.h>
  10789. #include <float.h>
  10790.  
  10791. int
  10792. main ()
  10793. {
  10794.  
  10795. ;
  10796. return 0;
  10797. }
  10798. _ACEOF
  10799. rm -f conftest.$ac_objext
  10800. if { (ac_try="$ac_compile"
  10801. case "(($ac_try" in
  10802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10803. *) ac_try_echo=$ac_try;;
  10804. esac
  10805. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10806. (eval "$ac_compile") 2>conftest.er1
  10807. ac_status=$?
  10808. grep -v '^ *+' conftest.er1 >conftest.err
  10809. rm -f conftest.er1
  10810. cat conftest.err >&5
  10811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10812. (exit $ac_status); } && {
  10813. test -z "$ac_c_werror_flag" ||
  10814. test ! -s conftest.err
  10815. } && test -s conftest.$ac_objext; then
  10816. ac_cv_header_stdc=yes
  10817. else
  10818. echo "$as_me: failed program was:" >&5
  10819. sed 's/^/| /' conftest.$ac_ext >&5
  10820.  
  10821. ac_cv_header_stdc=no
  10822. fi
  10823.  
  10824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10825.  
  10826. if test $ac_cv_header_stdc = yes; then
  10827. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10828. cat >conftest.$ac_ext <<_ACEOF
  10829. /* confdefs.h. */
  10830. _ACEOF
  10831. cat confdefs.h >>conftest.$ac_ext
  10832. cat >>conftest.$ac_ext <<_ACEOF
  10833. /* end confdefs.h. */
  10834. #include <string.h>
  10835.  
  10836. _ACEOF
  10837. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10838. $EGREP "memchr" >/dev/null 2>&1; then
  10839. :
  10840. else
  10841. ac_cv_header_stdc=no
  10842. fi
  10843. rm -f conftest*
  10844.  
  10845. fi
  10846.  
  10847. if test $ac_cv_header_stdc = yes; then
  10848. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10849. cat >conftest.$ac_ext <<_ACEOF
  10850. /* confdefs.h. */
  10851. _ACEOF
  10852. cat confdefs.h >>conftest.$ac_ext
  10853. cat >>conftest.$ac_ext <<_ACEOF
  10854. /* end confdefs.h. */
  10855. #include <stdlib.h>
  10856.  
  10857. _ACEOF
  10858. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10859. $EGREP "free" >/dev/null 2>&1; then
  10860. :
  10861. else
  10862. ac_cv_header_stdc=no
  10863. fi
  10864. rm -f conftest*
  10865.  
  10866. fi
  10867.  
  10868. if test $ac_cv_header_stdc = yes; then
  10869. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10870. if test "$cross_compiling" = yes; then
  10871. :
  10872. else
  10873. cat >conftest.$ac_ext <<_ACEOF
  10874. /* confdefs.h. */
  10875. _ACEOF
  10876. cat confdefs.h >>conftest.$ac_ext
  10877. cat >>conftest.$ac_ext <<_ACEOF
  10878. /* end confdefs.h. */
  10879. #include <ctype.h>
  10880. #include <stdlib.h>
  10881. #if ((' ' & 0x0FF) == 0x020)
  10882. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10883. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10884. #else
  10885. # define ISLOWER(c) \
  10886. (('a' <= (c) && (c) <= 'i') \
  10887. || ('j' <= (c) && (c) <= 'r') \
  10888. || ('s' <= (c) && (c) <= 'z'))
  10889. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10890. #endif
  10891.  
  10892. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10893. int
  10894. main ()
  10895. {
  10896. int i;
  10897. for (i = 0; i < 256; i++)
  10898. if (XOR (islower (i), ISLOWER (i))
  10899. || toupper (i) != TOUPPER (i))
  10900. return 2;
  10901. return 0;
  10902. }
  10903. _ACEOF
  10904. rm -f conftest$ac_exeext
  10905. if { (ac_try="$ac_link"
  10906. case "(($ac_try" in
  10907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10908. *) ac_try_echo=$ac_try;;
  10909. esac
  10910. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10911. (eval "$ac_link") 2>&5
  10912. ac_status=$?
  10913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10914. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10915. { (case "(($ac_try" in
  10916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10917. *) ac_try_echo=$ac_try;;
  10918. esac
  10919. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10920. (eval "$ac_try") 2>&5
  10921. ac_status=$?
  10922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10923. (exit $ac_status); }; }; then
  10924. :
  10925. else
  10926. echo "$as_me: program exited with status $ac_status" >&5
  10927. echo "$as_me: failed program was:" >&5
  10928. sed 's/^/| /' conftest.$ac_ext >&5
  10929.  
  10930. ( exit $ac_status )
  10931. ac_cv_header_stdc=no
  10932. fi
  10933. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10934. fi
  10935.  
  10936.  
  10937. fi
  10938. fi
  10939. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  10940. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  10941. if test $ac_cv_header_stdc = yes; then
  10942.  
  10943. cat >>confdefs.h <<\_ACEOF
  10944. #define STDC_HEADERS 1
  10945. _ACEOF
  10946.  
  10947. fi
  10948.  
  10949. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10950. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  10951. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  10952. echo $ECHO_N "(cached) $ECHO_C" >&6
  10953. else
  10954. cat >conftest.$ac_ext <<_ACEOF
  10955. /* confdefs.h. */
  10956. _ACEOF
  10957. cat confdefs.h >>conftest.$ac_ext
  10958. cat >>conftest.$ac_ext <<_ACEOF
  10959. /* end confdefs.h. */
  10960. #include <sys/types.h>
  10961. #include <sys/wait.h>
  10962. #ifndef WEXITSTATUS
  10963. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10964. #endif
  10965. #ifndef WIFEXITED
  10966. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10967. #endif
  10968.  
  10969. int
  10970. main ()
  10971. {
  10972. int s;
  10973. wait (&s);
  10974. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10975. ;
  10976. return 0;
  10977. }
  10978. _ACEOF
  10979. rm -f conftest.$ac_objext
  10980. if { (ac_try="$ac_compile"
  10981. case "(($ac_try" in
  10982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10983. *) ac_try_echo=$ac_try;;
  10984. esac
  10985. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10986. (eval "$ac_compile") 2>conftest.er1
  10987. ac_status=$?
  10988. grep -v '^ *+' conftest.er1 >conftest.err
  10989. rm -f conftest.er1
  10990. cat conftest.err >&5
  10991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10992. (exit $ac_status); } && {
  10993. test -z "$ac_c_werror_flag" ||
  10994. test ! -s conftest.err
  10995. } && test -s conftest.$ac_objext; then
  10996. ac_cv_header_sys_wait_h=yes
  10997. else
  10998. echo "$as_me: failed program was:" >&5
  10999. sed 's/^/| /' conftest.$ac_ext >&5
  11000.  
  11001. ac_cv_header_sys_wait_h=no
  11002. fi
  11003.  
  11004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11005. fi
  11006. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  11007. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  11008. if test $ac_cv_header_sys_wait_h = yes; then
  11009.  
  11010. cat >>confdefs.h <<\_ACEOF
  11011. #define HAVE_SYS_WAIT_H 1
  11012. _ACEOF
  11013.  
  11014. fi
  11015.  
  11016. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  11017. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  11018. if test "${ac_cv_header_time+set}" = set; then
  11019. echo $ECHO_N "(cached) $ECHO_C" >&6
  11020. else
  11021. cat >conftest.$ac_ext <<_ACEOF
  11022. /* confdefs.h. */
  11023. _ACEOF
  11024. cat confdefs.h >>conftest.$ac_ext
  11025. cat >>conftest.$ac_ext <<_ACEOF
  11026. /* end confdefs.h. */
  11027. #include <sys/types.h>
  11028. #include <sys/time.h>
  11029. #include <time.h>
  11030.  
  11031. int
  11032. main ()
  11033. {
  11034. if ((struct tm *) 0)
  11035. return 0;
  11036. ;
  11037. return 0;
  11038. }
  11039. _ACEOF
  11040. rm -f conftest.$ac_objext
  11041. if { (ac_try="$ac_compile"
  11042. case "(($ac_try" in
  11043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11044. *) ac_try_echo=$ac_try;;
  11045. esac
  11046. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11047. (eval "$ac_compile") 2>conftest.er1
  11048. ac_status=$?
  11049. grep -v '^ *+' conftest.er1 >conftest.err
  11050. rm -f conftest.er1
  11051. cat conftest.err >&5
  11052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11053. (exit $ac_status); } && {
  11054. test -z "$ac_c_werror_flag" ||
  11055. test ! -s conftest.err
  11056. } && test -s conftest.$ac_objext; then
  11057. ac_cv_header_time=yes
  11058. else
  11059. echo "$as_me: failed program was:" >&5
  11060. sed 's/^/| /' conftest.$ac_ext >&5
  11061.  
  11062. ac_cv_header_time=no
  11063. fi
  11064.  
  11065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11066. fi
  11067. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  11068. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  11069. if test $ac_cv_header_time = yes; then
  11070.  
  11071. cat >>confdefs.h <<\_ACEOF
  11072. #define TIME_WITH_SYS_TIME 1
  11073. _ACEOF
  11074.  
  11075. fi
  11076.  
  11077. { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  11078. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
  11079. if test "${ac_cv_header_stat_broken+set}" = set; then
  11080. echo $ECHO_N "(cached) $ECHO_C" >&6
  11081. else
  11082. cat >conftest.$ac_ext <<_ACEOF
  11083. /* confdefs.h. */
  11084. _ACEOF
  11085. cat confdefs.h >>conftest.$ac_ext
  11086. cat >>conftest.$ac_ext <<_ACEOF
  11087. /* end confdefs.h. */
  11088. #include <sys/types.h>
  11089. #include <sys/stat.h>
  11090.  
  11091. #if defined S_ISBLK && defined S_IFDIR
  11092. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  11093. #endif
  11094.  
  11095. #if defined S_ISBLK && defined S_IFCHR
  11096. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  11097. #endif
  11098.  
  11099. #if defined S_ISLNK && defined S_IFREG
  11100. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  11101. #endif
  11102.  
  11103. #if defined S_ISSOCK && defined S_IFREG
  11104. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  11105. #endif
  11106.  
  11107. _ACEOF
  11108. rm -f conftest.$ac_objext
  11109. if { (ac_try="$ac_compile"
  11110. case "(($ac_try" in
  11111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11112. *) ac_try_echo=$ac_try;;
  11113. esac
  11114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11115. (eval "$ac_compile") 2>conftest.er1
  11116. ac_status=$?
  11117. grep -v '^ *+' conftest.er1 >conftest.err
  11118. rm -f conftest.er1
  11119. cat conftest.err >&5
  11120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11121. (exit $ac_status); } && {
  11122. test -z "$ac_c_werror_flag" ||
  11123. test ! -s conftest.err
  11124. } && test -s conftest.$ac_objext; then
  11125. ac_cv_header_stat_broken=no
  11126. else
  11127. echo "$as_me: failed program was:" >&5
  11128. sed 's/^/| /' conftest.$ac_ext >&5
  11129.  
  11130. ac_cv_header_stat_broken=yes
  11131. fi
  11132.  
  11133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11134. fi
  11135. { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  11136. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
  11137. if test $ac_cv_header_stat_broken = yes; then
  11138.  
  11139. cat >>confdefs.h <<\_ACEOF
  11140. #define STAT_MACROS_BROKEN 1
  11141. _ACEOF
  11142.  
  11143. fi
  11144.  
  11145.  
  11146. for ac_header in stdint.h
  11147. do
  11148. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11149. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11150. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11151. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11152. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11153. echo $ECHO_N "(cached) $ECHO_C" >&6
  11154. fi
  11155. ac_res=`eval echo '${'$as_ac_Header'}'`
  11156. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11157. echo "${ECHO_T}$ac_res" >&6; }
  11158. else
  11159. # Is the header compilable?
  11160. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11161. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  11162. cat >conftest.$ac_ext <<_ACEOF
  11163. /* confdefs.h. */
  11164. _ACEOF
  11165. cat confdefs.h >>conftest.$ac_ext
  11166. cat >>conftest.$ac_ext <<_ACEOF
  11167. /* end confdefs.h. */
  11168. $ac_includes_default
  11169. #include <$ac_header>
  11170. _ACEOF
  11171. rm -f conftest.$ac_objext
  11172. if { (ac_try="$ac_compile"
  11173. case "(($ac_try" in
  11174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11175. *) ac_try_echo=$ac_try;;
  11176. esac
  11177. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11178. (eval "$ac_compile") 2>conftest.er1
  11179. ac_status=$?
  11180. grep -v '^ *+' conftest.er1 >conftest.err
  11181. rm -f conftest.er1
  11182. cat conftest.err >&5
  11183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11184. (exit $ac_status); } && {
  11185. test -z "$ac_c_werror_flag" ||
  11186. test ! -s conftest.err
  11187. } && test -s conftest.$ac_objext; then
  11188. ac_header_compiler=yes
  11189. else
  11190. echo "$as_me: failed program was:" >&5
  11191. sed 's/^/| /' conftest.$ac_ext >&5
  11192.  
  11193. ac_header_compiler=no
  11194. fi
  11195.  
  11196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11197. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11198. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11199.  
  11200. # Is the header present?
  11201. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11202. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  11203. cat >conftest.$ac_ext <<_ACEOF
  11204. /* confdefs.h. */
  11205. _ACEOF
  11206. cat confdefs.h >>conftest.$ac_ext
  11207. cat >>conftest.$ac_ext <<_ACEOF
  11208. /* end confdefs.h. */
  11209. #include <$ac_header>
  11210. _ACEOF
  11211. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11212. case "(($ac_try" in
  11213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11214. *) ac_try_echo=$ac_try;;
  11215. esac
  11216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11217. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11218. ac_status=$?
  11219. grep -v '^ *+' conftest.er1 >conftest.err
  11220. rm -f conftest.er1
  11221. cat conftest.err >&5
  11222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11223. (exit $ac_status); } >/dev/null && {
  11224. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11225. test ! -s conftest.err
  11226. }; then
  11227. ac_header_preproc=yes
  11228. else
  11229. echo "$as_me: failed program was:" >&5
  11230. sed 's/^/| /' conftest.$ac_ext >&5
  11231.  
  11232. ac_header_preproc=no
  11233. fi
  11234.  
  11235. rm -f conftest.err conftest.$ac_ext
  11236. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11237. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11238.  
  11239. # So? What about this header?
  11240. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11241. yes:no: )
  11242. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11243. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11244. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11245. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11246. ac_header_preproc=yes
  11247. ;;
  11248. no:yes:* )
  11249. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11250. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11251. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11252. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11253. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11254. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11255. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11256. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11257. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11258. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11259. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11260. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11261.  
  11262. ;;
  11263. esac
  11264. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11265. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11266. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11267. echo $ECHO_N "(cached) $ECHO_C" >&6
  11268. else
  11269. eval "$as_ac_Header=\$ac_header_preproc"
  11270. fi
  11271. ac_res=`eval echo '${'$as_ac_Header'}'`
  11272. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11273. echo "${ECHO_T}$ac_res" >&6; }
  11274.  
  11275. fi
  11276. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11277. cat >>confdefs.h <<_ACEOF
  11278. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11279. _ACEOF
  11280.  
  11281. fi
  11282.  
  11283. done
  11284.  
  11285.  
  11286.  
  11287. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  11288. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  11289. if test "${ac_cv_c_const+set}" = set; then
  11290. echo $ECHO_N "(cached) $ECHO_C" >&6
  11291. else
  11292. cat >conftest.$ac_ext <<_ACEOF
  11293. /* confdefs.h. */
  11294. _ACEOF
  11295. cat confdefs.h >>conftest.$ac_ext
  11296. cat >>conftest.$ac_ext <<_ACEOF
  11297. /* end confdefs.h. */
  11298.  
  11299. int
  11300. main ()
  11301. {
  11302. /* FIXME: Include the comments suggested by Paul. */
  11303. #ifndef __cplusplus
  11304. /* Ultrix mips cc rejects this. */
  11305. typedef int charset[2];
  11306. const charset cs;
  11307. /* SunOS 4.1.1 cc rejects this. */
  11308. char const *const *pcpcc;
  11309. char **ppc;
  11310. /* NEC SVR4.0.2 mips cc rejects this. */
  11311. struct point {int x, y;};
  11312. static struct point const zero = {0,0};
  11313. /* AIX XL C 1.02.0.0 rejects this.
  11314. It does not let you subtract one const X* pointer from another in
  11315. an arm of an if-expression whose if-part is not a constant
  11316. expression */
  11317. const char *g = "string";
  11318. pcpcc = &g + (g ? g-g : 0);
  11319. /* HPUX 7.0 cc rejects these. */
  11320. ++pcpcc;
  11321. ppc = (char**) pcpcc;
  11322. pcpcc = (char const *const *) ppc;
  11323. { /* SCO 3.2v4 cc rejects this. */
  11324. char *t;
  11325. char const *s = 0 ? (char *) 0 : (char const *) 0;
  11326.  
  11327. *t++ = 0;
  11328. if (s) return 0;
  11329. }
  11330. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  11331. int x[] = {25, 17};
  11332. const int *foo = &x[0];
  11333. ++foo;
  11334. }
  11335. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  11336. typedef const int *iptr;
  11337. iptr p = 0;
  11338. ++p;
  11339. }
  11340. { /* AIX XL C 1.02.0.0 rejects this saying
  11341. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  11342. struct s { int j; const int *ap[3]; };
  11343. struct s *b; b->j = 5;
  11344. }
  11345. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  11346. const int foo = 10;
  11347. if (!foo) return 0;
  11348. }
  11349. return !cs[0] && !zero.x;
  11350. #endif
  11351.  
  11352. ;
  11353. return 0;
  11354. }
  11355. _ACEOF
  11356. rm -f conftest.$ac_objext
  11357. if { (ac_try="$ac_compile"
  11358. case "(($ac_try" in
  11359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11360. *) ac_try_echo=$ac_try;;
  11361. esac
  11362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11363. (eval "$ac_compile") 2>conftest.er1
  11364. ac_status=$?
  11365. grep -v '^ *+' conftest.er1 >conftest.err
  11366. rm -f conftest.er1
  11367. cat conftest.err >&5
  11368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11369. (exit $ac_status); } && {
  11370. test -z "$ac_c_werror_flag" ||
  11371. test ! -s conftest.err
  11372. } && test -s conftest.$ac_objext; then
  11373. ac_cv_c_const=yes
  11374. else
  11375. echo "$as_me: failed program was:" >&5
  11376. sed 's/^/| /' conftest.$ac_ext >&5
  11377.  
  11378. ac_cv_c_const=no
  11379. fi
  11380.  
  11381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11382. fi
  11383. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  11384. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  11385. if test $ac_cv_c_const = no; then
  11386.  
  11387. cat >>confdefs.h <<\_ACEOF
  11388. #define const
  11389. _ACEOF
  11390.  
  11391. fi
  11392.  
  11393. { echo "$as_me:$LINENO: checking for inline" >&5
  11394. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  11395. if test "${ac_cv_c_inline+set}" = set; then
  11396. echo $ECHO_N "(cached) $ECHO_C" >&6
  11397. else
  11398. ac_cv_c_inline=no
  11399. for ac_kw in inline __inline__ __inline; do
  11400. cat >conftest.$ac_ext <<_ACEOF
  11401. /* confdefs.h. */
  11402. _ACEOF
  11403. cat confdefs.h >>conftest.$ac_ext
  11404. cat >>conftest.$ac_ext <<_ACEOF
  11405. /* end confdefs.h. */
  11406. #ifndef __cplusplus
  11407. typedef int foo_t;
  11408. static $ac_kw foo_t static_foo () {return 0; }
  11409. $ac_kw foo_t foo () {return 0; }
  11410. #endif
  11411.  
  11412. _ACEOF
  11413. rm -f conftest.$ac_objext
  11414. if { (ac_try="$ac_compile"
  11415. case "(($ac_try" in
  11416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11417. *) ac_try_echo=$ac_try;;
  11418. esac
  11419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11420. (eval "$ac_compile") 2>conftest.er1
  11421. ac_status=$?
  11422. grep -v '^ *+' conftest.er1 >conftest.err
  11423. rm -f conftest.er1
  11424. cat conftest.err >&5
  11425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11426. (exit $ac_status); } && {
  11427. test -z "$ac_c_werror_flag" ||
  11428. test ! -s conftest.err
  11429. } && test -s conftest.$ac_objext; then
  11430. ac_cv_c_inline=$ac_kw
  11431. else
  11432. echo "$as_me: failed program was:" >&5
  11433. sed 's/^/| /' conftest.$ac_ext >&5
  11434.  
  11435.  
  11436. fi
  11437.  
  11438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11439. test "$ac_cv_c_inline" != no && break
  11440. done
  11441.  
  11442. fi
  11443. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  11444. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  11445.  
  11446.  
  11447. case $ac_cv_c_inline in
  11448. inline | yes) ;;
  11449. *)
  11450. case $ac_cv_c_inline in
  11451. no) ac_val=;;
  11452. *) ac_val=$ac_cv_c_inline;;
  11453. esac
  11454. cat >>confdefs.h <<_ACEOF
  11455. #ifndef __cplusplus
  11456. #define inline $ac_val
  11457. #endif
  11458. _ACEOF
  11459. ;;
  11460. esac
  11461.  
  11462. { echo "$as_me:$LINENO: checking for mode_t" >&5
  11463. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  11464. if test "${ac_cv_type_mode_t+set}" = set; then
  11465. echo $ECHO_N "(cached) $ECHO_C" >&6
  11466. else
  11467. cat >conftest.$ac_ext <<_ACEOF
  11468. /* confdefs.h. */
  11469. _ACEOF
  11470. cat confdefs.h >>conftest.$ac_ext
  11471. cat >>conftest.$ac_ext <<_ACEOF
  11472. /* end confdefs.h. */
  11473. $ac_includes_default
  11474. typedef mode_t ac__type_new_;
  11475. int
  11476. main ()
  11477. {
  11478. if ((ac__type_new_ *) 0)
  11479. return 0;
  11480. if (sizeof (ac__type_new_))
  11481. return 0;
  11482. ;
  11483. return 0;
  11484. }
  11485. _ACEOF
  11486. rm -f conftest.$ac_objext
  11487. if { (ac_try="$ac_compile"
  11488. case "(($ac_try" in
  11489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11490. *) ac_try_echo=$ac_try;;
  11491. esac
  11492. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11493. (eval "$ac_compile") 2>conftest.er1
  11494. ac_status=$?
  11495. grep -v '^ *+' conftest.er1 >conftest.err
  11496. rm -f conftest.er1
  11497. cat conftest.err >&5
  11498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11499. (exit $ac_status); } && {
  11500. test -z "$ac_c_werror_flag" ||
  11501. test ! -s conftest.err
  11502. } && test -s conftest.$ac_objext; then
  11503. ac_cv_type_mode_t=yes
  11504. else
  11505. echo "$as_me: failed program was:" >&5
  11506. sed 's/^/| /' conftest.$ac_ext >&5
  11507.  
  11508. ac_cv_type_mode_t=no
  11509. fi
  11510.  
  11511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11512. fi
  11513. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  11514. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  11515. if test $ac_cv_type_mode_t = yes; then
  11516. :
  11517. else
  11518.  
  11519. cat >>confdefs.h <<_ACEOF
  11520. #define mode_t int
  11521. _ACEOF
  11522.  
  11523. fi
  11524.  
  11525. { echo "$as_me:$LINENO: checking for off_t" >&5
  11526. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  11527. if test "${ac_cv_type_off_t+set}" = set; then
  11528. echo $ECHO_N "(cached) $ECHO_C" >&6
  11529. else
  11530. cat >conftest.$ac_ext <<_ACEOF
  11531. /* confdefs.h. */
  11532. _ACEOF
  11533. cat confdefs.h >>conftest.$ac_ext
  11534. cat >>conftest.$ac_ext <<_ACEOF
  11535. /* end confdefs.h. */
  11536. $ac_includes_default
  11537. typedef off_t ac__type_new_;
  11538. int
  11539. main ()
  11540. {
  11541. if ((ac__type_new_ *) 0)
  11542. return 0;
  11543. if (sizeof (ac__type_new_))
  11544. return 0;
  11545. ;
  11546. return 0;
  11547. }
  11548. _ACEOF
  11549. rm -f conftest.$ac_objext
  11550. if { (ac_try="$ac_compile"
  11551. case "(($ac_try" in
  11552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11553. *) ac_try_echo=$ac_try;;
  11554. esac
  11555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11556. (eval "$ac_compile") 2>conftest.er1
  11557. ac_status=$?
  11558. grep -v '^ *+' conftest.er1 >conftest.err
  11559. rm -f conftest.er1
  11560. cat conftest.err >&5
  11561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11562. (exit $ac_status); } && {
  11563. test -z "$ac_c_werror_flag" ||
  11564. test ! -s conftest.err
  11565. } && test -s conftest.$ac_objext; then
  11566. ac_cv_type_off_t=yes
  11567. else
  11568. echo "$as_me: failed program was:" >&5
  11569. sed 's/^/| /' conftest.$ac_ext >&5
  11570.  
  11571. ac_cv_type_off_t=no
  11572. fi
  11573.  
  11574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11575. fi
  11576. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  11577. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  11578. if test $ac_cv_type_off_t = yes; then
  11579. :
  11580. else
  11581.  
  11582. cat >>confdefs.h <<_ACEOF
  11583. #define off_t long int
  11584. _ACEOF
  11585.  
  11586. fi
  11587.  
  11588. { echo "$as_me:$LINENO: checking for size_t" >&5
  11589. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  11590. if test "${ac_cv_type_size_t+set}" = set; then
  11591. echo $ECHO_N "(cached) $ECHO_C" >&6
  11592. else
  11593. cat >conftest.$ac_ext <<_ACEOF
  11594. /* confdefs.h. */
  11595. _ACEOF
  11596. cat confdefs.h >>conftest.$ac_ext
  11597. cat >>conftest.$ac_ext <<_ACEOF
  11598. /* end confdefs.h. */
  11599. $ac_includes_default
  11600. typedef size_t ac__type_new_;
  11601. int
  11602. main ()
  11603. {
  11604. if ((ac__type_new_ *) 0)
  11605. return 0;
  11606. if (sizeof (ac__type_new_))
  11607. return 0;
  11608. ;
  11609. return 0;
  11610. }
  11611. _ACEOF
  11612. rm -f conftest.$ac_objext
  11613. if { (ac_try="$ac_compile"
  11614. case "(($ac_try" in
  11615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11616. *) ac_try_echo=$ac_try;;
  11617. esac
  11618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11619. (eval "$ac_compile") 2>conftest.er1
  11620. ac_status=$?
  11621. grep -v '^ *+' conftest.er1 >conftest.err
  11622. rm -f conftest.er1
  11623. cat conftest.err >&5
  11624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11625. (exit $ac_status); } && {
  11626. test -z "$ac_c_werror_flag" ||
  11627. test ! -s conftest.err
  11628. } && test -s conftest.$ac_objext; then
  11629. ac_cv_type_size_t=yes
  11630. else
  11631. echo "$as_me: failed program was:" >&5
  11632. sed 's/^/| /' conftest.$ac_ext >&5
  11633.  
  11634. ac_cv_type_size_t=no
  11635. fi
  11636.  
  11637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11638. fi
  11639. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  11640. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  11641. if test $ac_cv_type_size_t = yes; then
  11642. :
  11643. else
  11644.  
  11645. cat >>confdefs.h <<_ACEOF
  11646. #define size_t unsigned int
  11647. _ACEOF
  11648.  
  11649. fi
  11650.  
  11651. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  11652. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  11653. if test "${ac_cv_header_time+set}" = set; then
  11654. echo $ECHO_N "(cached) $ECHO_C" >&6
  11655. else
  11656. cat >conftest.$ac_ext <<_ACEOF
  11657. /* confdefs.h. */
  11658. _ACEOF
  11659. cat confdefs.h >>conftest.$ac_ext
  11660. cat >>conftest.$ac_ext <<_ACEOF
  11661. /* end confdefs.h. */
  11662. #include <sys/types.h>
  11663. #include <sys/time.h>
  11664. #include <time.h>
  11665.  
  11666. int
  11667. main ()
  11668. {
  11669. if ((struct tm *) 0)
  11670. return 0;
  11671. ;
  11672. return 0;
  11673. }
  11674. _ACEOF
  11675. rm -f conftest.$ac_objext
  11676. if { (ac_try="$ac_compile"
  11677. case "(($ac_try" in
  11678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11679. *) ac_try_echo=$ac_try;;
  11680. esac
  11681. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11682. (eval "$ac_compile") 2>conftest.er1
  11683. ac_status=$?
  11684. grep -v '^ *+' conftest.er1 >conftest.err
  11685. rm -f conftest.er1
  11686. cat conftest.err >&5
  11687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11688. (exit $ac_status); } && {
  11689. test -z "$ac_c_werror_flag" ||
  11690. test ! -s conftest.err
  11691. } && test -s conftest.$ac_objext; then
  11692. ac_cv_header_time=yes
  11693. else
  11694. echo "$as_me: failed program was:" >&5
  11695. sed 's/^/| /' conftest.$ac_ext >&5
  11696.  
  11697. ac_cv_header_time=no
  11698. fi
  11699.  
  11700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11701. fi
  11702. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  11703. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  11704. if test $ac_cv_header_time = yes; then
  11705.  
  11706. cat >>confdefs.h <<\_ACEOF
  11707. #define TIME_WITH_SYS_TIME 1
  11708. _ACEOF
  11709.  
  11710. fi
  11711.  
  11712. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  11713. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  11714. if test "${ac_cv_struct_tm+set}" = set; then
  11715. echo $ECHO_N "(cached) $ECHO_C" >&6
  11716. else
  11717. cat >conftest.$ac_ext <<_ACEOF
  11718. /* confdefs.h. */
  11719. _ACEOF
  11720. cat confdefs.h >>conftest.$ac_ext
  11721. cat >>conftest.$ac_ext <<_ACEOF
  11722. /* end confdefs.h. */
  11723. #include <sys/types.h>
  11724. #include <time.h>
  11725.  
  11726. int
  11727. main ()
  11728. {
  11729. struct tm tm;
  11730. int *p = &tm.tm_sec;
  11731. return !p;
  11732. ;
  11733. return 0;
  11734. }
  11735. _ACEOF
  11736. rm -f conftest.$ac_objext
  11737. if { (ac_try="$ac_compile"
  11738. case "(($ac_try" in
  11739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11740. *) ac_try_echo=$ac_try;;
  11741. esac
  11742. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11743. (eval "$ac_compile") 2>conftest.er1
  11744. ac_status=$?
  11745. grep -v '^ *+' conftest.er1 >conftest.err
  11746. rm -f conftest.er1
  11747. cat conftest.err >&5
  11748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11749. (exit $ac_status); } && {
  11750. test -z "$ac_c_werror_flag" ||
  11751. test ! -s conftest.err
  11752. } && test -s conftest.$ac_objext; then
  11753. ac_cv_struct_tm=time.h
  11754. else
  11755. echo "$as_me: failed program was:" >&5
  11756. sed 's/^/| /' conftest.$ac_ext >&5
  11757.  
  11758. ac_cv_struct_tm=sys/time.h
  11759. fi
  11760.  
  11761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11762. fi
  11763. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  11764. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  11765. if test $ac_cv_struct_tm = sys/time.h; then
  11766.  
  11767. cat >>confdefs.h <<\_ACEOF
  11768. #define TM_IN_SYS_TIME 1
  11769. _ACEOF
  11770.  
  11771. fi
  11772.  
  11773. { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  11774. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
  11775. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  11776. echo $ECHO_N "(cached) $ECHO_C" >&6
  11777. else
  11778. cat >conftest.$ac_ext <<_ACEOF
  11779. /* confdefs.h. */
  11780. _ACEOF
  11781. cat confdefs.h >>conftest.$ac_ext
  11782. cat >>conftest.$ac_ext <<_ACEOF
  11783. /* end confdefs.h. */
  11784. #include <sys/types.h>
  11785. #include <$ac_cv_struct_tm>
  11786.  
  11787.  
  11788. int
  11789. main ()
  11790. {
  11791. static struct tm ac_aggr;
  11792. if (ac_aggr.tm_zone)
  11793. return 0;
  11794. ;
  11795. return 0;
  11796. }
  11797. _ACEOF
  11798. rm -f conftest.$ac_objext
  11799. if { (ac_try="$ac_compile"
  11800. case "(($ac_try" in
  11801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11802. *) ac_try_echo=$ac_try;;
  11803. esac
  11804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11805. (eval "$ac_compile") 2>conftest.er1
  11806. ac_status=$?
  11807. grep -v '^ *+' conftest.er1 >conftest.err
  11808. rm -f conftest.er1
  11809. cat conftest.err >&5
  11810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11811. (exit $ac_status); } && {
  11812. test -z "$ac_c_werror_flag" ||
  11813. test ! -s conftest.err
  11814. } && test -s conftest.$ac_objext; then
  11815. ac_cv_member_struct_tm_tm_zone=yes
  11816. else
  11817. echo "$as_me: failed program was:" >&5
  11818. sed 's/^/| /' conftest.$ac_ext >&5
  11819.  
  11820. cat >conftest.$ac_ext <<_ACEOF
  11821. /* confdefs.h. */
  11822. _ACEOF
  11823. cat confdefs.h >>conftest.$ac_ext
  11824. cat >>conftest.$ac_ext <<_ACEOF
  11825. /* end confdefs.h. */
  11826. #include <sys/types.h>
  11827. #include <$ac_cv_struct_tm>
  11828.  
  11829.  
  11830. int
  11831. main ()
  11832. {
  11833. static struct tm ac_aggr;
  11834. if (sizeof ac_aggr.tm_zone)
  11835. return 0;
  11836. ;
  11837. return 0;
  11838. }
  11839. _ACEOF
  11840. rm -f conftest.$ac_objext
  11841. if { (ac_try="$ac_compile"
  11842. case "(($ac_try" in
  11843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11844. *) ac_try_echo=$ac_try;;
  11845. esac
  11846. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11847. (eval "$ac_compile") 2>conftest.er1
  11848. ac_status=$?
  11849. grep -v '^ *+' conftest.er1 >conftest.err
  11850. rm -f conftest.er1
  11851. cat conftest.err >&5
  11852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11853. (exit $ac_status); } && {
  11854. test -z "$ac_c_werror_flag" ||
  11855. test ! -s conftest.err
  11856. } && test -s conftest.$ac_objext; then
  11857. ac_cv_member_struct_tm_tm_zone=yes
  11858. else
  11859. echo "$as_me: failed program was:" >&5
  11860. sed 's/^/| /' conftest.$ac_ext >&5
  11861.  
  11862. ac_cv_member_struct_tm_tm_zone=no
  11863. fi
  11864.  
  11865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11866. fi
  11867.  
  11868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11869. fi
  11870. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  11871. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
  11872. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  11873.  
  11874. cat >>confdefs.h <<_ACEOF
  11875. #define HAVE_STRUCT_TM_TM_ZONE 1
  11876. _ACEOF
  11877.  
  11878.  
  11879. fi
  11880.  
  11881. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  11882.  
  11883. cat >>confdefs.h <<\_ACEOF
  11884. #define HAVE_TM_ZONE 1
  11885. _ACEOF
  11886.  
  11887. else
  11888. { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
  11889. echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
  11890. if test "${ac_cv_have_decl_tzname+set}" = set; then
  11891. echo $ECHO_N "(cached) $ECHO_C" >&6
  11892. else
  11893. cat >conftest.$ac_ext <<_ACEOF
  11894. /* confdefs.h. */
  11895. _ACEOF
  11896. cat confdefs.h >>conftest.$ac_ext
  11897. cat >>conftest.$ac_ext <<_ACEOF
  11898. /* end confdefs.h. */
  11899. #include <time.h>
  11900.  
  11901. int
  11902. main ()
  11903. {
  11904. #ifndef tzname
  11905. (void) tzname;
  11906. #endif
  11907.  
  11908. ;
  11909. return 0;
  11910. }
  11911. _ACEOF
  11912. rm -f conftest.$ac_objext
  11913. if { (ac_try="$ac_compile"
  11914. case "(($ac_try" in
  11915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11916. *) ac_try_echo=$ac_try;;
  11917. esac
  11918. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11919. (eval "$ac_compile") 2>conftest.er1
  11920. ac_status=$?
  11921. grep -v '^ *+' conftest.er1 >conftest.err
  11922. rm -f conftest.er1
  11923. cat conftest.err >&5
  11924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11925. (exit $ac_status); } && {
  11926. test -z "$ac_c_werror_flag" ||
  11927. test ! -s conftest.err
  11928. } && test -s conftest.$ac_objext; then
  11929. ac_cv_have_decl_tzname=yes
  11930. else
  11931. echo "$as_me: failed program was:" >&5
  11932. sed 's/^/| /' conftest.$ac_ext >&5
  11933.  
  11934. ac_cv_have_decl_tzname=no
  11935. fi
  11936.  
  11937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11938. fi
  11939. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
  11940. echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
  11941. if test $ac_cv_have_decl_tzname = yes; then
  11942.  
  11943. cat >>confdefs.h <<_ACEOF
  11944. #define HAVE_DECL_TZNAME 1
  11945. _ACEOF
  11946.  
  11947.  
  11948. else
  11949. cat >>confdefs.h <<_ACEOF
  11950. #define HAVE_DECL_TZNAME 0
  11951. _ACEOF
  11952.  
  11953.  
  11954. fi
  11955.  
  11956.  
  11957. { echo "$as_me:$LINENO: checking for tzname" >&5
  11958. echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
  11959. if test "${ac_cv_var_tzname+set}" = set; then
  11960. echo $ECHO_N "(cached) $ECHO_C" >&6
  11961. else
  11962. cat >conftest.$ac_ext <<_ACEOF
  11963. /* confdefs.h. */
  11964. _ACEOF
  11965. cat confdefs.h >>conftest.$ac_ext
  11966. cat >>conftest.$ac_ext <<_ACEOF
  11967. /* end confdefs.h. */
  11968. #include <time.h>
  11969. #if !HAVE_DECL_TZNAME
  11970. extern char *tzname[];
  11971. #endif
  11972.  
  11973. int
  11974. main ()
  11975. {
  11976. return tzname[0][0];
  11977. ;
  11978. return 0;
  11979. }
  11980. _ACEOF
  11981. rm -f conftest.$ac_objext conftest$ac_exeext
  11982. if { (ac_try="$ac_link"
  11983. case "(($ac_try" in
  11984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11985. *) ac_try_echo=$ac_try;;
  11986. esac
  11987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11988. (eval "$ac_link") 2>conftest.er1
  11989. ac_status=$?
  11990. grep -v '^ *+' conftest.er1 >conftest.err
  11991. rm -f conftest.er1
  11992. cat conftest.err >&5
  11993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11994. (exit $ac_status); } && {
  11995. test -z "$ac_c_werror_flag" ||
  11996. test ! -s conftest.err
  11997. } && test -s conftest$ac_exeext &&
  11998. $as_test_x conftest$ac_exeext; then
  11999. ac_cv_var_tzname=yes
  12000. else
  12001. echo "$as_me: failed program was:" >&5
  12002. sed 's/^/| /' conftest.$ac_ext >&5
  12003.  
  12004. ac_cv_var_tzname=no
  12005. fi
  12006.  
  12007. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12008. conftest$ac_exeext conftest.$ac_ext
  12009. fi
  12010. { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  12011. echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
  12012. if test $ac_cv_var_tzname = yes; then
  12013.  
  12014. cat >>confdefs.h <<\_ACEOF
  12015. #define HAVE_TZNAME 1
  12016. _ACEOF
  12017.  
  12018. fi
  12019. fi
  12020.  
  12021. { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  12022. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
  12023. if test "${ac_cv_type_uid_t+set}" = set; then
  12024. echo $ECHO_N "(cached) $ECHO_C" >&6
  12025. else
  12026. cat >conftest.$ac_ext <<_ACEOF
  12027. /* confdefs.h. */
  12028. _ACEOF
  12029. cat confdefs.h >>conftest.$ac_ext
  12030. cat >>conftest.$ac_ext <<_ACEOF
  12031. /* end confdefs.h. */
  12032. #include <sys/types.h>
  12033.  
  12034. _ACEOF
  12035. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12036. $EGREP "uid_t" >/dev/null 2>&1; then
  12037. ac_cv_type_uid_t=yes
  12038. else
  12039. ac_cv_type_uid_t=no
  12040. fi
  12041. rm -f conftest*
  12042.  
  12043. fi
  12044. { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  12045. echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
  12046. if test $ac_cv_type_uid_t = no; then
  12047.  
  12048. cat >>confdefs.h <<\_ACEOF
  12049. #define uid_t int
  12050. _ACEOF
  12051.  
  12052.  
  12053. cat >>confdefs.h <<\_ACEOF
  12054. #define gid_t int
  12055. _ACEOF
  12056.  
  12057. fi
  12058.  
  12059.  
  12060.  
  12061. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  12062. # for constant arguments. Useless!
  12063. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  12064. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  12065. if test "${ac_cv_working_alloca_h+set}" = set; then
  12066. echo $ECHO_N "(cached) $ECHO_C" >&6
  12067. else
  12068. cat >conftest.$ac_ext <<_ACEOF
  12069. /* confdefs.h. */
  12070. _ACEOF
  12071. cat confdefs.h >>conftest.$ac_ext
  12072. cat >>conftest.$ac_ext <<_ACEOF
  12073. /* end confdefs.h. */
  12074. #include <alloca.h>
  12075. int
  12076. main ()
  12077. {
  12078. char *p = (char *) alloca (2 * sizeof (int));
  12079. if (p) return 0;
  12080. ;
  12081. return 0;
  12082. }
  12083. _ACEOF
  12084. rm -f conftest.$ac_objext conftest$ac_exeext
  12085. if { (ac_try="$ac_link"
  12086. case "(($ac_try" in
  12087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12088. *) ac_try_echo=$ac_try;;
  12089. esac
  12090. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12091. (eval "$ac_link") 2>conftest.er1
  12092. ac_status=$?
  12093. grep -v '^ *+' conftest.er1 >conftest.err
  12094. rm -f conftest.er1
  12095. cat conftest.err >&5
  12096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12097. (exit $ac_status); } && {
  12098. test -z "$ac_c_werror_flag" ||
  12099. test ! -s conftest.err
  12100. } && test -s conftest$ac_exeext &&
  12101. $as_test_x conftest$ac_exeext; then
  12102. ac_cv_working_alloca_h=yes
  12103. else
  12104. echo "$as_me: failed program was:" >&5
  12105. sed 's/^/| /' conftest.$ac_ext >&5
  12106.  
  12107. ac_cv_working_alloca_h=no
  12108. fi
  12109.  
  12110. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12111. conftest$ac_exeext conftest.$ac_ext
  12112. fi
  12113. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  12114. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  12115. if test $ac_cv_working_alloca_h = yes; then
  12116.  
  12117. cat >>confdefs.h <<\_ACEOF
  12118. #define HAVE_ALLOCA_H 1
  12119. _ACEOF
  12120.  
  12121. fi
  12122.  
  12123. { echo "$as_me:$LINENO: checking for alloca" >&5
  12124. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  12125. if test "${ac_cv_func_alloca_works+set}" = set; then
  12126. echo $ECHO_N "(cached) $ECHO_C" >&6
  12127. else
  12128. cat >conftest.$ac_ext <<_ACEOF
  12129. /* confdefs.h. */
  12130. _ACEOF
  12131. cat confdefs.h >>conftest.$ac_ext
  12132. cat >>conftest.$ac_ext <<_ACEOF
  12133. /* end confdefs.h. */
  12134. #ifdef __GNUC__
  12135. # define alloca __builtin_alloca
  12136. #else
  12137. # ifdef _MSC_VER
  12138. # include <malloc.h>
  12139. # define alloca _alloca
  12140. # else
  12141. # ifdef HAVE_ALLOCA_H
  12142. # include <alloca.h>
  12143. # else
  12144. # ifdef _AIX
  12145. #pragma alloca
  12146. # else
  12147. # ifndef alloca /* predefined by HP cc +Olibcalls */
  12148. char *alloca ();
  12149. # endif
  12150. # endif
  12151. # endif
  12152. # endif
  12153. #endif
  12154.  
  12155. int
  12156. main ()
  12157. {
  12158. char *p = (char *) alloca (1);
  12159. if (p) return 0;
  12160. ;
  12161. return 0;
  12162. }
  12163. _ACEOF
  12164. rm -f conftest.$ac_objext conftest$ac_exeext
  12165. if { (ac_try="$ac_link"
  12166. case "(($ac_try" in
  12167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12168. *) ac_try_echo=$ac_try;;
  12169. esac
  12170. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12171. (eval "$ac_link") 2>conftest.er1
  12172. ac_status=$?
  12173. grep -v '^ *+' conftest.er1 >conftest.err
  12174. rm -f conftest.er1
  12175. cat conftest.err >&5
  12176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12177. (exit $ac_status); } && {
  12178. test -z "$ac_c_werror_flag" ||
  12179. test ! -s conftest.err
  12180. } && test -s conftest$ac_exeext &&
  12181. $as_test_x conftest$ac_exeext; then
  12182. ac_cv_func_alloca_works=yes
  12183. else
  12184. echo "$as_me: failed program was:" >&5
  12185. sed 's/^/| /' conftest.$ac_ext >&5
  12186.  
  12187. ac_cv_func_alloca_works=no
  12188. fi
  12189.  
  12190. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12191. conftest$ac_exeext conftest.$ac_ext
  12192. fi
  12193. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  12194. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  12195.  
  12196. if test $ac_cv_func_alloca_works = yes; then
  12197.  
  12198. cat >>confdefs.h <<\_ACEOF
  12199. #define HAVE_ALLOCA 1
  12200. _ACEOF
  12201.  
  12202. else
  12203. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  12204. # that cause trouble. Some versions do not even contain alloca or
  12205. # contain a buggy version. If you still want to use their alloca,
  12206. # use ar to extract alloca.o from them instead of compiling alloca.c.
  12207.  
  12208. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  12209.  
  12210. cat >>confdefs.h <<\_ACEOF
  12211. #define C_ALLOCA 1
  12212. _ACEOF
  12213.  
  12214.  
  12215. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  12216. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  12217. if test "${ac_cv_os_cray+set}" = set; then
  12218. echo $ECHO_N "(cached) $ECHO_C" >&6
  12219. else
  12220. cat >conftest.$ac_ext <<_ACEOF
  12221. /* confdefs.h. */
  12222. _ACEOF
  12223. cat confdefs.h >>conftest.$ac_ext
  12224. cat >>conftest.$ac_ext <<_ACEOF
  12225. /* end confdefs.h. */
  12226. #if defined CRAY && ! defined CRAY2
  12227. webecray
  12228. #else
  12229. wenotbecray
  12230. #endif
  12231.  
  12232. _ACEOF
  12233. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12234. $EGREP "webecray" >/dev/null 2>&1; then
  12235. ac_cv_os_cray=yes
  12236. else
  12237. ac_cv_os_cray=no
  12238. fi
  12239. rm -f conftest*
  12240.  
  12241. fi
  12242. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  12243. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  12244. if test $ac_cv_os_cray = yes; then
  12245. for ac_func in _getb67 GETB67 getb67; do
  12246. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12247. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12248. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12249. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12250. echo $ECHO_N "(cached) $ECHO_C" >&6
  12251. else
  12252. cat >conftest.$ac_ext <<_ACEOF
  12253. /* confdefs.h. */
  12254. _ACEOF
  12255. cat confdefs.h >>conftest.$ac_ext
  12256. cat >>conftest.$ac_ext <<_ACEOF
  12257. /* end confdefs.h. */
  12258. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12259. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12260. #define $ac_func innocuous_$ac_func
  12261.  
  12262. /* System header to define __stub macros and hopefully few prototypes,
  12263. which can conflict with char $ac_func (); below.
  12264. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12265. <limits.h> exists even on freestanding compilers. */
  12266.  
  12267. #ifdef __STDC__
  12268. # include <limits.h>
  12269. #else
  12270. # include <assert.h>
  12271. #endif
  12272.  
  12273. #undef $ac_func
  12274.  
  12275. /* Override any GCC internal prototype to avoid an error.
  12276. Use char because int might match the return type of a GCC
  12277. builtin and then its argument prototype would still apply. */
  12278. #ifdef __cplusplus
  12279. extern "C"
  12280. #endif
  12281. char $ac_func ();
  12282. /* The GNU C library defines this for functions which it implements
  12283. to always fail with ENOSYS. Some functions are actually named
  12284. something starting with __ and the normal name is an alias. */
  12285. #if defined __stub_$ac_func || defined __stub___$ac_func
  12286. choke me
  12287. #endif
  12288.  
  12289. int
  12290. main ()
  12291. {
  12292. return $ac_func ();
  12293. ;
  12294. return 0;
  12295. }
  12296. _ACEOF
  12297. rm -f conftest.$ac_objext conftest$ac_exeext
  12298. if { (ac_try="$ac_link"
  12299. case "(($ac_try" in
  12300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12301. *) ac_try_echo=$ac_try;;
  12302. esac
  12303. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12304. (eval "$ac_link") 2>conftest.er1
  12305. ac_status=$?
  12306. grep -v '^ *+' conftest.er1 >conftest.err
  12307. rm -f conftest.er1
  12308. cat conftest.err >&5
  12309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12310. (exit $ac_status); } && {
  12311. test -z "$ac_c_werror_flag" ||
  12312. test ! -s conftest.err
  12313. } && test -s conftest$ac_exeext &&
  12314. $as_test_x conftest$ac_exeext; then
  12315. eval "$as_ac_var=yes"
  12316. else
  12317. echo "$as_me: failed program was:" >&5
  12318. sed 's/^/| /' conftest.$ac_ext >&5
  12319.  
  12320. eval "$as_ac_var=no"
  12321. fi
  12322.  
  12323. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12324. conftest$ac_exeext conftest.$ac_ext
  12325. fi
  12326. ac_res=`eval echo '${'$as_ac_var'}'`
  12327. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12328. echo "${ECHO_T}$ac_res" >&6; }
  12329. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12330.  
  12331. cat >>confdefs.h <<_ACEOF
  12332. #define CRAY_STACKSEG_END $ac_func
  12333. _ACEOF
  12334.  
  12335. break
  12336. fi
  12337.  
  12338. done
  12339. fi
  12340.  
  12341. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  12342. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  12343. if test "${ac_cv_c_stack_direction+set}" = set; then
  12344. echo $ECHO_N "(cached) $ECHO_C" >&6
  12345. else
  12346. if test "$cross_compiling" = yes; then
  12347. ac_cv_c_stack_direction=0
  12348. else
  12349. cat >conftest.$ac_ext <<_ACEOF
  12350. /* confdefs.h. */
  12351. _ACEOF
  12352. cat confdefs.h >>conftest.$ac_ext
  12353. cat >>conftest.$ac_ext <<_ACEOF
  12354. /* end confdefs.h. */
  12355. $ac_includes_default
  12356. int
  12357. find_stack_direction ()
  12358. {
  12359. static char *addr = 0;
  12360. auto char dummy;
  12361. if (addr == 0)
  12362. {
  12363. addr = &dummy;
  12364. return find_stack_direction ();
  12365. }
  12366. else
  12367. return (&dummy > addr) ? 1 : -1;
  12368. }
  12369.  
  12370. int
  12371. main ()
  12372. {
  12373. return find_stack_direction () < 0;
  12374. }
  12375. _ACEOF
  12376. rm -f conftest$ac_exeext
  12377. if { (ac_try="$ac_link"
  12378. case "(($ac_try" in
  12379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12380. *) ac_try_echo=$ac_try;;
  12381. esac
  12382. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12383. (eval "$ac_link") 2>&5
  12384. ac_status=$?
  12385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12386. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12387. { (case "(($ac_try" in
  12388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12389. *) ac_try_echo=$ac_try;;
  12390. esac
  12391. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12392. (eval "$ac_try") 2>&5
  12393. ac_status=$?
  12394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12395. (exit $ac_status); }; }; then
  12396. ac_cv_c_stack_direction=1
  12397. else
  12398. echo "$as_me: program exited with status $ac_status" >&5
  12399. echo "$as_me: failed program was:" >&5
  12400. sed 's/^/| /' conftest.$ac_ext >&5
  12401.  
  12402. ( exit $ac_status )
  12403. ac_cv_c_stack_direction=-1
  12404. fi
  12405. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12406. fi
  12407.  
  12408.  
  12409. fi
  12410. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  12411. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  12412.  
  12413. cat >>confdefs.h <<_ACEOF
  12414. #define STACK_DIRECTION $ac_cv_c_stack_direction
  12415. _ACEOF
  12416.  
  12417.  
  12418. fi
  12419.  
  12420. { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
  12421. echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
  12422. if test "${ac_cv_type_getgroups+set}" = set; then
  12423. echo $ECHO_N "(cached) $ECHO_C" >&6
  12424. else
  12425. if test "$cross_compiling" = yes; then
  12426. ac_cv_type_getgroups=cross
  12427. else
  12428. cat >conftest.$ac_ext <<_ACEOF
  12429. /* confdefs.h. */
  12430. _ACEOF
  12431. cat confdefs.h >>conftest.$ac_ext
  12432. cat >>conftest.$ac_ext <<_ACEOF
  12433. /* end confdefs.h. */
  12434. /* Thanks to Mike Rendell for this test. */
  12435. $ac_includes_default
  12436. #define NGID 256
  12437. #undef MAX
  12438. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  12439.  
  12440. int
  12441. main ()
  12442. {
  12443. gid_t gidset[NGID];
  12444. int i, n;
  12445. union { gid_t gval; long int lval; } val;
  12446.  
  12447. val.lval = -1;
  12448. for (i = 0; i < NGID; i++)
  12449. gidset[i] = val.gval;
  12450. n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  12451. gidset);
  12452. /* Exit non-zero if getgroups seems to require an array of ints. This
  12453. happens when gid_t is short int but getgroups modifies an array
  12454. of ints. */
  12455. return n > 0 && gidset[n] != val.gval;
  12456. }
  12457. _ACEOF
  12458. rm -f conftest$ac_exeext
  12459. if { (ac_try="$ac_link"
  12460. case "(($ac_try" in
  12461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12462. *) ac_try_echo=$ac_try;;
  12463. esac
  12464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12465. (eval "$ac_link") 2>&5
  12466. ac_status=$?
  12467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12468. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12469. { (case "(($ac_try" in
  12470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12471. *) ac_try_echo=$ac_try;;
  12472. esac
  12473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12474. (eval "$ac_try") 2>&5
  12475. ac_status=$?
  12476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12477. (exit $ac_status); }; }; then
  12478. ac_cv_type_getgroups=gid_t
  12479. else
  12480. echo "$as_me: program exited with status $ac_status" >&5
  12481. echo "$as_me: failed program was:" >&5
  12482. sed 's/^/| /' conftest.$ac_ext >&5
  12483.  
  12484. ( exit $ac_status )
  12485. ac_cv_type_getgroups=int
  12486. fi
  12487. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12488. fi
  12489.  
  12490.  
  12491. if test $ac_cv_type_getgroups = cross; then
  12492. cat >conftest.$ac_ext <<_ACEOF
  12493. /* confdefs.h. */
  12494. _ACEOF
  12495. cat confdefs.h >>conftest.$ac_ext
  12496. cat >>conftest.$ac_ext <<_ACEOF
  12497. /* end confdefs.h. */
  12498. #include <unistd.h>
  12499.  
  12500. _ACEOF
  12501. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12502. $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
  12503. ac_cv_type_getgroups=gid_t
  12504. else
  12505. ac_cv_type_getgroups=int
  12506. fi
  12507. rm -f conftest*
  12508.  
  12509. fi
  12510. fi
  12511. { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
  12512. echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
  12513.  
  12514. cat >>confdefs.h <<_ACEOF
  12515. #define GETGROUPS_T $ac_cv_type_getgroups
  12516. _ACEOF
  12517.  
  12518.  
  12519. if test $ac_cv_c_compiler_gnu = yes; then
  12520. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  12521. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  12522. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  12523. echo $ECHO_N "(cached) $ECHO_C" >&6
  12524. else
  12525. ac_pattern="Autoconf.*'x'"
  12526. cat >conftest.$ac_ext <<_ACEOF
  12527. /* confdefs.h. */
  12528. _ACEOF
  12529. cat confdefs.h >>conftest.$ac_ext
  12530. cat >>conftest.$ac_ext <<_ACEOF
  12531. /* end confdefs.h. */
  12532. #include <sgtty.h>
  12533. Autoconf TIOCGETP
  12534. _ACEOF
  12535. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12536. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  12537. ac_cv_prog_gcc_traditional=yes
  12538. else
  12539. ac_cv_prog_gcc_traditional=no
  12540. fi
  12541. rm -f conftest*
  12542.  
  12543.  
  12544. if test $ac_cv_prog_gcc_traditional = no; then
  12545. cat >conftest.$ac_ext <<_ACEOF
  12546. /* confdefs.h. */
  12547. _ACEOF
  12548. cat confdefs.h >>conftest.$ac_ext
  12549. cat >>conftest.$ac_ext <<_ACEOF
  12550. /* end confdefs.h. */
  12551. #include <termio.h>
  12552. Autoconf TCGETA
  12553. _ACEOF
  12554. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12555. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  12556. ac_cv_prog_gcc_traditional=yes
  12557. fi
  12558. rm -f conftest*
  12559.  
  12560. fi
  12561. fi
  12562. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  12563. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  12564. if test $ac_cv_prog_gcc_traditional = yes; then
  12565. CC="$CC -traditional"
  12566. fi
  12567. fi
  12568.  
  12569. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  12570. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  12571. if test "${ac_cv_func_memcmp_working+set}" = set; then
  12572. echo $ECHO_N "(cached) $ECHO_C" >&6
  12573. else
  12574. if test "$cross_compiling" = yes; then
  12575. ac_cv_func_memcmp_working=no
  12576. else
  12577. cat >conftest.$ac_ext <<_ACEOF
  12578. /* confdefs.h. */
  12579. _ACEOF
  12580. cat confdefs.h >>conftest.$ac_ext
  12581. cat >>conftest.$ac_ext <<_ACEOF
  12582. /* end confdefs.h. */
  12583. $ac_includes_default
  12584. int
  12585. main ()
  12586. {
  12587.  
  12588. /* Some versions of memcmp are not 8-bit clean. */
  12589. char c0 = '\100', c1 = '\200', c2 = '\201';
  12590. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  12591. return 1;
  12592.  
  12593. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  12594. or more and with at least one buffer not starting on a 4-byte boundary.
  12595. William Lewis provided this test program. */
  12596. {
  12597. char foo[21];
  12598. char bar[21];
  12599. int i;
  12600. for (i = 0; i < 4; i++)
  12601. {
  12602. char *a = foo + i;
  12603. char *b = bar + i;
  12604. strcpy (a, "--------01111111");
  12605. strcpy (b, "--------10000000");
  12606. if (memcmp (a, b, 16) >= 0)
  12607. return 1;
  12608. }
  12609. return 0;
  12610. }
  12611.  
  12612. ;
  12613. return 0;
  12614. }
  12615. _ACEOF
  12616. rm -f conftest$ac_exeext
  12617. if { (ac_try="$ac_link"
  12618. case "(($ac_try" in
  12619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12620. *) ac_try_echo=$ac_try;;
  12621. esac
  12622. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12623. (eval "$ac_link") 2>&5
  12624. ac_status=$?
  12625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12626. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12627. { (case "(($ac_try" in
  12628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12629. *) ac_try_echo=$ac_try;;
  12630. esac
  12631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12632. (eval "$ac_try") 2>&5
  12633. ac_status=$?
  12634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12635. (exit $ac_status); }; }; then
  12636. ac_cv_func_memcmp_working=yes
  12637. else
  12638. echo "$as_me: program exited with status $ac_status" >&5
  12639. echo "$as_me: failed program was:" >&5
  12640. sed 's/^/| /' conftest.$ac_ext >&5
  12641.  
  12642. ( exit $ac_status )
  12643. ac_cv_func_memcmp_working=no
  12644. fi
  12645. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12646. fi
  12647.  
  12648.  
  12649. fi
  12650. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  12651. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  12652. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  12653. *" memcmp.$ac_objext "* ) ;;
  12654. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  12655. ;;
  12656. esac
  12657.  
  12658.  
  12659.  
  12660.  
  12661. for ac_header in stdlib.h unistd.h
  12662. do
  12663. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12664. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12665. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12666. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12667. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12668. echo $ECHO_N "(cached) $ECHO_C" >&6
  12669. fi
  12670. ac_res=`eval echo '${'$as_ac_Header'}'`
  12671. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12672. echo "${ECHO_T}$ac_res" >&6; }
  12673. else
  12674. # Is the header compilable?
  12675. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12676. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12677. cat >conftest.$ac_ext <<_ACEOF
  12678. /* confdefs.h. */
  12679. _ACEOF
  12680. cat confdefs.h >>conftest.$ac_ext
  12681. cat >>conftest.$ac_ext <<_ACEOF
  12682. /* end confdefs.h. */
  12683. $ac_includes_default
  12684. #include <$ac_header>
  12685. _ACEOF
  12686. rm -f conftest.$ac_objext
  12687. if { (ac_try="$ac_compile"
  12688. case "(($ac_try" in
  12689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12690. *) ac_try_echo=$ac_try;;
  12691. esac
  12692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12693. (eval "$ac_compile") 2>conftest.er1
  12694. ac_status=$?
  12695. grep -v '^ *+' conftest.er1 >conftest.err
  12696. rm -f conftest.er1
  12697. cat conftest.err >&5
  12698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12699. (exit $ac_status); } && {
  12700. test -z "$ac_c_werror_flag" ||
  12701. test ! -s conftest.err
  12702. } && test -s conftest.$ac_objext; then
  12703. ac_header_compiler=yes
  12704. else
  12705. echo "$as_me: failed program was:" >&5
  12706. sed 's/^/| /' conftest.$ac_ext >&5
  12707.  
  12708. ac_header_compiler=no
  12709. fi
  12710.  
  12711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12712. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12713. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12714.  
  12715. # Is the header present?
  12716. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12717. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12718. cat >conftest.$ac_ext <<_ACEOF
  12719. /* confdefs.h. */
  12720. _ACEOF
  12721. cat confdefs.h >>conftest.$ac_ext
  12722. cat >>conftest.$ac_ext <<_ACEOF
  12723. /* end confdefs.h. */
  12724. #include <$ac_header>
  12725. _ACEOF
  12726. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12727. case "(($ac_try" in
  12728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12729. *) ac_try_echo=$ac_try;;
  12730. esac
  12731. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12732. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12733. ac_status=$?
  12734. grep -v '^ *+' conftest.er1 >conftest.err
  12735. rm -f conftest.er1
  12736. cat conftest.err >&5
  12737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12738. (exit $ac_status); } >/dev/null && {
  12739. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  12740. test ! -s conftest.err
  12741. }; then
  12742. ac_header_preproc=yes
  12743. else
  12744. echo "$as_me: failed program was:" >&5
  12745. sed 's/^/| /' conftest.$ac_ext >&5
  12746.  
  12747. ac_header_preproc=no
  12748. fi
  12749.  
  12750. rm -f conftest.err conftest.$ac_ext
  12751. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12752. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12753.  
  12754. # So? What about this header?
  12755. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  12756. yes:no: )
  12757. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12758. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12759. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12760. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12761. ac_header_preproc=yes
  12762. ;;
  12763. no:yes:* )
  12764. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12765. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12766. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12767. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12768. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12769. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12770. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12771. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12772. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12773. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12774. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12775. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12776.  
  12777. ;;
  12778. esac
  12779. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12780. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12781. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12782. echo $ECHO_N "(cached) $ECHO_C" >&6
  12783. else
  12784. eval "$as_ac_Header=\$ac_header_preproc"
  12785. fi
  12786. ac_res=`eval echo '${'$as_ac_Header'}'`
  12787. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12788. echo "${ECHO_T}$ac_res" >&6; }
  12789.  
  12790. fi
  12791. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12792. cat >>confdefs.h <<_ACEOF
  12793. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12794. _ACEOF
  12795.  
  12796. fi
  12797.  
  12798. done
  12799.  
  12800.  
  12801. for ac_func in getpagesize
  12802. do
  12803. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12804. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12805. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12806. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12807. echo $ECHO_N "(cached) $ECHO_C" >&6
  12808. else
  12809. cat >conftest.$ac_ext <<_ACEOF
  12810. /* confdefs.h. */
  12811. _ACEOF
  12812. cat confdefs.h >>conftest.$ac_ext
  12813. cat >>conftest.$ac_ext <<_ACEOF
  12814. /* end confdefs.h. */
  12815. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12816. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12817. #define $ac_func innocuous_$ac_func
  12818.  
  12819. /* System header to define __stub macros and hopefully few prototypes,
  12820. which can conflict with char $ac_func (); below.
  12821. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12822. <limits.h> exists even on freestanding compilers. */
  12823.  
  12824. #ifdef __STDC__
  12825. # include <limits.h>
  12826. #else
  12827. # include <assert.h>
  12828. #endif
  12829.  
  12830. #undef $ac_func
  12831.  
  12832. /* Override any GCC internal prototype to avoid an error.
  12833. Use char because int might match the return type of a GCC
  12834. builtin and then its argument prototype would still apply. */
  12835. #ifdef __cplusplus
  12836. extern "C"
  12837. #endif
  12838. char $ac_func ();
  12839. /* The GNU C library defines this for functions which it implements
  12840. to always fail with ENOSYS. Some functions are actually named
  12841. something starting with __ and the normal name is an alias. */
  12842. #if defined __stub_$ac_func || defined __stub___$ac_func
  12843. choke me
  12844. #endif
  12845.  
  12846. int
  12847. main ()
  12848. {
  12849. return $ac_func ();
  12850. ;
  12851. return 0;
  12852. }
  12853. _ACEOF
  12854. rm -f conftest.$ac_objext conftest$ac_exeext
  12855. if { (ac_try="$ac_link"
  12856. case "(($ac_try" in
  12857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12858. *) ac_try_echo=$ac_try;;
  12859. esac
  12860. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12861. (eval "$ac_link") 2>conftest.er1
  12862. ac_status=$?
  12863. grep -v '^ *+' conftest.er1 >conftest.err
  12864. rm -f conftest.er1
  12865. cat conftest.err >&5
  12866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12867. (exit $ac_status); } && {
  12868. test -z "$ac_c_werror_flag" ||
  12869. test ! -s conftest.err
  12870. } && test -s conftest$ac_exeext &&
  12871. $as_test_x conftest$ac_exeext; then
  12872. eval "$as_ac_var=yes"
  12873. else
  12874. echo "$as_me: failed program was:" >&5
  12875. sed 's/^/| /' conftest.$ac_ext >&5
  12876.  
  12877. eval "$as_ac_var=no"
  12878. fi
  12879.  
  12880. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12881. conftest$ac_exeext conftest.$ac_ext
  12882. fi
  12883. ac_res=`eval echo '${'$as_ac_var'}'`
  12884. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12885. echo "${ECHO_T}$ac_res" >&6; }
  12886. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12887. cat >>confdefs.h <<_ACEOF
  12888. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12889. _ACEOF
  12890.  
  12891. fi
  12892. done
  12893.  
  12894. { echo "$as_me:$LINENO: checking for working mmap" >&5
  12895. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  12896. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  12897. echo $ECHO_N "(cached) $ECHO_C" >&6
  12898. else
  12899. if test "$cross_compiling" = yes; then
  12900. ac_cv_func_mmap_fixed_mapped=no
  12901. else
  12902. cat >conftest.$ac_ext <<_ACEOF
  12903. /* confdefs.h. */
  12904. _ACEOF
  12905. cat confdefs.h >>conftest.$ac_ext
  12906. cat >>conftest.$ac_ext <<_ACEOF
  12907. /* end confdefs.h. */
  12908. $ac_includes_default
  12909. /* malloc might have been renamed as rpl_malloc. */
  12910. #undef malloc
  12911.  
  12912. /* Thanks to Mike Haertel and Jim Avera for this test.
  12913. Here is a matrix of mmap possibilities:
  12914. mmap private not fixed
  12915. mmap private fixed at somewhere currently unmapped
  12916. mmap private fixed at somewhere already mapped
  12917. mmap shared not fixed
  12918. mmap shared fixed at somewhere currently unmapped
  12919. mmap shared fixed at somewhere already mapped
  12920. For private mappings, we should verify that changes cannot be read()
  12921. back from the file, nor mmap's back from the file at a different
  12922. address. (There have been systems where private was not correctly
  12923. implemented like the infamous i386 svr4.0, and systems where the
  12924. VM page cache was not coherent with the file system buffer cache
  12925. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12926. For shared mappings, we should conversely verify that changes get
  12927. propagated back to all the places they're supposed to be.
  12928.  
  12929. Grep wants private fixed already mapped.
  12930. The main things grep needs to know about mmap are:
  12931. * does it exist and is it safe to write into the mmap'd area
  12932. * how to use it (BSD variants) */
  12933.  
  12934. #include <fcntl.h>
  12935. #include <sys/mman.h>
  12936.  
  12937. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12938. char *malloc ();
  12939. #endif
  12940.  
  12941. /* This mess was copied from the GNU getpagesize.h. */
  12942. #ifndef HAVE_GETPAGESIZE
  12943. /* Assume that all systems that can run configure have sys/param.h. */
  12944. # ifndef HAVE_SYS_PARAM_H
  12945. # define HAVE_SYS_PARAM_H 1
  12946. # endif
  12947.  
  12948. # ifdef _SC_PAGESIZE
  12949. # define getpagesize() sysconf(_SC_PAGESIZE)
  12950. # else /* no _SC_PAGESIZE */
  12951. # ifdef HAVE_SYS_PARAM_H
  12952. # include <sys/param.h>
  12953. # ifdef EXEC_PAGESIZE
  12954. # define getpagesize() EXEC_PAGESIZE
  12955. # else /* no EXEC_PAGESIZE */
  12956. # ifdef NBPG
  12957. # define getpagesize() NBPG * CLSIZE
  12958. # ifndef CLSIZE
  12959. # define CLSIZE 1
  12960. # endif /* no CLSIZE */
  12961. # else /* no NBPG */
  12962. # ifdef NBPC
  12963. # define getpagesize() NBPC
  12964. # else /* no NBPC */
  12965. # ifdef PAGESIZE
  12966. # define getpagesize() PAGESIZE
  12967. # endif /* PAGESIZE */
  12968. # endif /* no NBPC */
  12969. # endif /* no NBPG */
  12970. # endif /* no EXEC_PAGESIZE */
  12971. # else /* no HAVE_SYS_PARAM_H */
  12972. # define getpagesize() 8192 /* punt totally */
  12973. # endif /* no HAVE_SYS_PARAM_H */
  12974. # endif /* no _SC_PAGESIZE */
  12975.  
  12976. #endif /* no HAVE_GETPAGESIZE */
  12977.  
  12978. int
  12979. main ()
  12980. {
  12981. char *data, *data2, *data3;
  12982. int i, pagesize;
  12983. int fd;
  12984.  
  12985. pagesize = getpagesize ();
  12986.  
  12987. /* First, make a file with some known garbage in it. */
  12988. data = (char *) malloc (pagesize);
  12989. if (!data)
  12990. return 1;
  12991. for (i = 0; i < pagesize; ++i)
  12992. *(data + i) = rand ();
  12993. umask (0);
  12994. fd = creat ("conftest.mmap", 0600);
  12995. if (fd < 0)
  12996. return 1;
  12997. if (write (fd, data, pagesize) != pagesize)
  12998. return 1;
  12999. close (fd);
  13000.  
  13001. /* Next, try to mmap the file at a fixed address which already has
  13002. something else allocated at it. If we can, also make sure that
  13003. we see the same garbage. */
  13004. fd = open ("conftest.mmap", O_RDWR);
  13005. if (fd < 0)
  13006. return 1;
  13007. data2 = (char *) malloc (2 * pagesize);
  13008. if (!data2)
  13009. return 1;
  13010. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  13011. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  13012. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  13013. return 1;
  13014. for (i = 0; i < pagesize; ++i)
  13015. if (*(data + i) != *(data2 + i))
  13016. return 1;
  13017.  
  13018. /* Finally, make sure that changes to the mapped area do not
  13019. percolate back to the file as seen by read(). (This is a bug on
  13020. some variants of i386 svr4.0.) */
  13021. for (i = 0; i < pagesize; ++i)
  13022. *(data2 + i) = *(data2 + i) + 1;
  13023. data3 = (char *) malloc (pagesize);
  13024. if (!data3)
  13025. return 1;
  13026. if (read (fd, data3, pagesize) != pagesize)
  13027. return 1;
  13028. for (i = 0; i < pagesize; ++i)
  13029. if (*(data + i) != *(data3 + i))
  13030. return 1;
  13031. close (fd);
  13032. return 0;
  13033. }
  13034. _ACEOF
  13035. rm -f conftest$ac_exeext
  13036. if { (ac_try="$ac_link"
  13037. case "(($ac_try" in
  13038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13039. *) ac_try_echo=$ac_try;;
  13040. esac
  13041. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13042. (eval "$ac_link") 2>&5
  13043. ac_status=$?
  13044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13045. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13046. { (case "(($ac_try" in
  13047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13048. *) ac_try_echo=$ac_try;;
  13049. esac
  13050. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13051. (eval "$ac_try") 2>&5
  13052. ac_status=$?
  13053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13054. (exit $ac_status); }; }; then
  13055. ac_cv_func_mmap_fixed_mapped=yes
  13056. else
  13057. echo "$as_me: program exited with status $ac_status" >&5
  13058. echo "$as_me: failed program was:" >&5
  13059. sed 's/^/| /' conftest.$ac_ext >&5
  13060.  
  13061. ( exit $ac_status )
  13062. ac_cv_func_mmap_fixed_mapped=no
  13063. fi
  13064. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13065. fi
  13066.  
  13067.  
  13068. fi
  13069. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  13070. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  13071. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  13072.  
  13073. cat >>confdefs.h <<\_ACEOF
  13074. #define HAVE_MMAP 1
  13075. _ACEOF
  13076.  
  13077. fi
  13078. rm -f conftest.mmap
  13079.  
  13080. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  13081. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  13082. if test "${ac_cv_type_signal+set}" = set; then
  13083. echo $ECHO_N "(cached) $ECHO_C" >&6
  13084. else
  13085. cat >conftest.$ac_ext <<_ACEOF
  13086. /* confdefs.h. */
  13087. _ACEOF
  13088. cat confdefs.h >>conftest.$ac_ext
  13089. cat >>conftest.$ac_ext <<_ACEOF
  13090. /* end confdefs.h. */
  13091. #include <sys/types.h>
  13092. #include <signal.h>
  13093.  
  13094. int
  13095. main ()
  13096. {
  13097. return *(signal (0, 0)) (0) == 1;
  13098. ;
  13099. return 0;
  13100. }
  13101. _ACEOF
  13102. rm -f conftest.$ac_objext
  13103. if { (ac_try="$ac_compile"
  13104. case "(($ac_try" in
  13105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13106. *) ac_try_echo=$ac_try;;
  13107. esac
  13108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13109. (eval "$ac_compile") 2>conftest.er1
  13110. ac_status=$?
  13111. grep -v '^ *+' conftest.er1 >conftest.err
  13112. rm -f conftest.er1
  13113. cat conftest.err >&5
  13114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13115. (exit $ac_status); } && {
  13116. test -z "$ac_c_werror_flag" ||
  13117. test ! -s conftest.err
  13118. } && test -s conftest.$ac_objext; then
  13119. ac_cv_type_signal=int
  13120. else
  13121. echo "$as_me: failed program was:" >&5
  13122. sed 's/^/| /' conftest.$ac_ext >&5
  13123.  
  13124. ac_cv_type_signal=void
  13125. fi
  13126.  
  13127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13128. fi
  13129. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  13130. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  13131.  
  13132. cat >>confdefs.h <<_ACEOF
  13133. #define RETSIGTYPE $ac_cv_type_signal
  13134. _ACEOF
  13135.  
  13136.  
  13137.  
  13138. for ac_func in vprintf
  13139. do
  13140. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13141. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  13142. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  13143. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  13144. echo $ECHO_N "(cached) $ECHO_C" >&6
  13145. else
  13146. cat >conftest.$ac_ext <<_ACEOF
  13147. /* confdefs.h. */
  13148. _ACEOF
  13149. cat confdefs.h >>conftest.$ac_ext
  13150. cat >>conftest.$ac_ext <<_ACEOF
  13151. /* end confdefs.h. */
  13152. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13153. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13154. #define $ac_func innocuous_$ac_func
  13155.  
  13156. /* System header to define __stub macros and hopefully few prototypes,
  13157. which can conflict with char $ac_func (); below.
  13158. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13159. <limits.h> exists even on freestanding compilers. */
  13160.  
  13161. #ifdef __STDC__
  13162. # include <limits.h>
  13163. #else
  13164. # include <assert.h>
  13165. #endif
  13166.  
  13167. #undef $ac_func
  13168.  
  13169. /* Override any GCC internal prototype to avoid an error.
  13170. Use char because int might match the return type of a GCC
  13171. builtin and then its argument prototype would still apply. */
  13172. #ifdef __cplusplus
  13173. extern "C"
  13174. #endif
  13175. char $ac_func ();
  13176. /* The GNU C library defines this for functions which it implements
  13177. to always fail with ENOSYS. Some functions are actually named
  13178. something starting with __ and the normal name is an alias. */
  13179. #if defined __stub_$ac_func || defined __stub___$ac_func
  13180. choke me
  13181. #endif
  13182.  
  13183. int
  13184. main ()
  13185. {
  13186. return $ac_func ();
  13187. ;
  13188. return 0;
  13189. }
  13190. _ACEOF
  13191. rm -f conftest.$ac_objext conftest$ac_exeext
  13192. if { (ac_try="$ac_link"
  13193. case "(($ac_try" in
  13194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13195. *) ac_try_echo=$ac_try;;
  13196. esac
  13197. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13198. (eval "$ac_link") 2>conftest.er1
  13199. ac_status=$?
  13200. grep -v '^ *+' conftest.er1 >conftest.err
  13201. rm -f conftest.er1
  13202. cat conftest.err >&5
  13203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13204. (exit $ac_status); } && {
  13205. test -z "$ac_c_werror_flag" ||
  13206. test ! -s conftest.err
  13207. } && test -s conftest$ac_exeext &&
  13208. $as_test_x conftest$ac_exeext; then
  13209. eval "$as_ac_var=yes"
  13210. else
  13211. echo "$as_me: failed program was:" >&5
  13212. sed 's/^/| /' conftest.$ac_ext >&5
  13213.  
  13214. eval "$as_ac_var=no"
  13215. fi
  13216.  
  13217. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13218. conftest$ac_exeext conftest.$ac_ext
  13219. fi
  13220. ac_res=`eval echo '${'$as_ac_var'}'`
  13221. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13222. echo "${ECHO_T}$ac_res" >&6; }
  13223. if test `eval echo '${'$as_ac_var'}'` = yes; then
  13224. cat >>confdefs.h <<_ACEOF
  13225. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13226. _ACEOF
  13227.  
  13228. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  13229. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  13230. if test "${ac_cv_func__doprnt+set}" = set; then
  13231. echo $ECHO_N "(cached) $ECHO_C" >&6
  13232. else
  13233. cat >conftest.$ac_ext <<_ACEOF
  13234. /* confdefs.h. */
  13235. _ACEOF
  13236. cat confdefs.h >>conftest.$ac_ext
  13237. cat >>conftest.$ac_ext <<_ACEOF
  13238. /* end confdefs.h. */
  13239. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  13240. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13241. #define _doprnt innocuous__doprnt
  13242.  
  13243. /* System header to define __stub macros and hopefully few prototypes,
  13244. which can conflict with char _doprnt (); below.
  13245. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13246. <limits.h> exists even on freestanding compilers. */
  13247.  
  13248. #ifdef __STDC__
  13249. # include <limits.h>
  13250. #else
  13251. # include <assert.h>
  13252. #endif
  13253.  
  13254. #undef _doprnt
  13255.  
  13256. /* Override any GCC internal prototype to avoid an error.
  13257. Use char because int might match the return type of a GCC
  13258. builtin and then its argument prototype would still apply. */
  13259. #ifdef __cplusplus
  13260. extern "C"
  13261. #endif
  13262. char _doprnt ();
  13263. /* The GNU C library defines this for functions which it implements
  13264. to always fail with ENOSYS. Some functions are actually named
  13265. something starting with __ and the normal name is an alias. */
  13266. #if defined __stub__doprnt || defined __stub____doprnt
  13267. choke me
  13268. #endif
  13269.  
  13270. int
  13271. main ()
  13272. {
  13273. return _doprnt ();
  13274. ;
  13275. return 0;
  13276. }
  13277. _ACEOF
  13278. rm -f conftest.$ac_objext conftest$ac_exeext
  13279. if { (ac_try="$ac_link"
  13280. case "(($ac_try" in
  13281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13282. *) ac_try_echo=$ac_try;;
  13283. esac
  13284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13285. (eval "$ac_link") 2>conftest.er1
  13286. ac_status=$?
  13287. grep -v '^ *+' conftest.er1 >conftest.err
  13288. rm -f conftest.er1
  13289. cat conftest.err >&5
  13290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13291. (exit $ac_status); } && {
  13292. test -z "$ac_c_werror_flag" ||
  13293. test ! -s conftest.err
  13294. } && test -s conftest$ac_exeext &&
  13295. $as_test_x conftest$ac_exeext; then
  13296. ac_cv_func__doprnt=yes
  13297. else
  13298. echo "$as_me: failed program was:" >&5
  13299. sed 's/^/| /' conftest.$ac_ext >&5
  13300.  
  13301. ac_cv_func__doprnt=no
  13302. fi
  13303.  
  13304. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13305. conftest$ac_exeext conftest.$ac_ext
  13306. fi
  13307. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  13308. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  13309. if test $ac_cv_func__doprnt = yes; then
  13310.  
  13311. cat >>confdefs.h <<\_ACEOF
  13312. #define HAVE_DOPRNT 1
  13313. _ACEOF
  13314.  
  13315. fi
  13316.  
  13317. fi
  13318. done
  13319.  
  13320.  
  13321.  
  13322.  
  13323.  
  13324.  
  13325.  
  13326.  
  13327.  
  13328.  
  13329.  
  13330.  
  13331.  
  13332.  
  13333.  
  13334.  
  13335.  
  13336.  
  13337.  
  13338.  
  13339.  
  13340.  
  13341.  
  13342. for ac_func in getcwd gethostname gettimeofday getwd mkdir mktime putenv select socket strdup strerror strftime strstr strtod strtol uname lstat strcasecmp strncasecmp strchr memcpy
  13343. do
  13344. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13345. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  13346. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  13347. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  13348. echo $ECHO_N "(cached) $ECHO_C" >&6
  13349. else
  13350. cat >conftest.$ac_ext <<_ACEOF
  13351. /* confdefs.h. */
  13352. _ACEOF
  13353. cat confdefs.h >>conftest.$ac_ext
  13354. cat >>conftest.$ac_ext <<_ACEOF
  13355. /* end confdefs.h. */
  13356. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13357. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13358. #define $ac_func innocuous_$ac_func
  13359.  
  13360. /* System header to define __stub macros and hopefully few prototypes,
  13361. which can conflict with char $ac_func (); below.
  13362. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13363. <limits.h> exists even on freestanding compilers. */
  13364.  
  13365. #ifdef __STDC__
  13366. # include <limits.h>
  13367. #else
  13368. # include <assert.h>
  13369. #endif
  13370.  
  13371. #undef $ac_func
  13372.  
  13373. /* Override any GCC internal prototype to avoid an error.
  13374. Use char because int might match the return type of a GCC
  13375. builtin and then its argument prototype would still apply. */
  13376. #ifdef __cplusplus
  13377. extern "C"
  13378. #endif
  13379. char $ac_func ();
  13380. /* The GNU C library defines this for functions which it implements
  13381. to always fail with ENOSYS. Some functions are actually named
  13382. something starting with __ and the normal name is an alias. */
  13383. #if defined __stub_$ac_func || defined __stub___$ac_func
  13384. choke me
  13385. #endif
  13386.  
  13387. int
  13388. main ()
  13389. {
  13390. return $ac_func ();
  13391. ;
  13392. return 0;
  13393. }
  13394. _ACEOF
  13395. rm -f conftest.$ac_objext conftest$ac_exeext
  13396. if { (ac_try="$ac_link"
  13397. case "(($ac_try" in
  13398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13399. *) ac_try_echo=$ac_try;;
  13400. esac
  13401. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13402. (eval "$ac_link") 2>conftest.er1
  13403. ac_status=$?
  13404. grep -v '^ *+' conftest.er1 >conftest.err
  13405. rm -f conftest.er1
  13406. cat conftest.err >&5
  13407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13408. (exit $ac_status); } && {
  13409. test -z "$ac_c_werror_flag" ||
  13410. test ! -s conftest.err
  13411. } && test -s conftest$ac_exeext &&
  13412. $as_test_x conftest$ac_exeext; then
  13413. eval "$as_ac_var=yes"
  13414. else
  13415. echo "$as_me: failed program was:" >&5
  13416. sed 's/^/| /' conftest.$ac_ext >&5
  13417.  
  13418. eval "$as_ac_var=no"
  13419. fi
  13420.  
  13421. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13422. conftest$ac_exeext conftest.$ac_ext
  13423. fi
  13424. ac_res=`eval echo '${'$as_ac_var'}'`
  13425. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13426. echo "${ECHO_T}$ac_res" >&6; }
  13427. if test `eval echo '${'$as_ac_var'}'` = yes; then
  13428. cat >>confdefs.h <<_ACEOF
  13429. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13430. _ACEOF
  13431.  
  13432. fi
  13433. done
  13434.  
  13435.  
  13436. #
  13437. # Check for operating system (UNIX / WINDOWS / MACOSX )
  13438. # ---------->
  13439. # canonicalize the target OS
  13440. AMAYAOS="LINUX"
  13441. case $target_os in
  13442. aix*) AMAYAOS="LINUX" ;;
  13443. cygwin*) AMAYAOS="WINDOWS" ;;
  13444. darwin*) AMAYAOS="MACOSX" ;;
  13445. freebsd2*) AMAYAOS="FREEBSD" ;;
  13446. freebsd*) AMAYAOS="FREEBSD" ;;
  13447. hpux*) AMAYAOS="LINUX" ;;
  13448. irix*) AMAYAOS="LINUX" ;;
  13449. linuxaout*) AMAYAOS="LINUX" ;;
  13450. linux*) AMAYAOS="LINUX" ;;
  13451. mingw32*) AMAYAOS="WINDOWS" ;;
  13452. netbsd*) AMAYAOS="LINUX" ;;
  13453. openbsd*) AMAYAOS="LINUX" ;;
  13454. osf12*) AMAYAOS="LINUX" ;;
  13455. osf*) AMAYAOS="LINUX" ;;
  13456. solaris2*) AMAYAOS="FREEBSD" ;;
  13457. sunos4*) AMAYAOS="FREEBSD" ;;
  13458. ultrix*) AMAYAOS="LINUX" ;;
  13459. esac
  13460.  
  13461.  
  13462. if test "$AMAYAOS" = "WINDOWS" ; then
  13463. { { echo "$as_me:$LINENO: error: Windows port do not use configure - not yet tested." >&5
  13464. echo "$as_me: error: Windows port do not use configure - not yet tested." >&2;}
  13465. { (exit 1); exit 1; }; }
  13466. fi
  13467.  
  13468. OS_OPTIONS="-D_UNIX" # default is UNIX
  13469. case $AMAYAOS in
  13470. LINUX) OS_OPTIONS="-D_UNIX" ;;
  13471. WINDOWS) OS_OPTIONS="-D_WINDOWS" ;; # not tested (cygwin or mingw)
  13472. MACOSX) OS_OPTIONS="-D_UNIX -D_MACOS" ;;
  13473. FREEBSD) OS_OPTIONS="-D_UNIX -D_FREEBSD" ;;
  13474. esac
  13475.  
  13476.  
  13477. with_wx="yes"
  13478.  
  13479. # Check whether --enable-system-wx was given.
  13480. if test "${enable_system_wx+set}" = set; then
  13481. enableval=$enable_system_wx; case "${enableval}" in
  13482. yes) with_system_wx="yes";;
  13483. no) with_system_wx="no" ;;
  13484. *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-system-wx" >&5
  13485. echo "$as_me: error: bad value ${enableval} for --enable-system-wx" >&2;}
  13486. { (exit 1); exit 1; }; } ;;
  13487. esac
  13488. else
  13489. with_system_wx="no"
  13490. fi
  13491.  
  13492.  
  13493.  
  13494.  
  13495.  
  13496. # Check whether --with-gl was given.
  13497. if test "${with_gl+set}" = set; then
  13498. withval=$with_gl; case "${withval}" in
  13499. yes) with_gl="yes" ;;
  13500. no) with_gl="no" ;;
  13501. *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-gl" >&5
  13502. echo "$as_me: error: bad value ${withval} for --with-gl" >&2;}
  13503. { (exit 1); exit 1; }; } ;;
  13504. esac
  13505. else
  13506. with_gl="no"
  13507. fi
  13508.  
  13509.  
  13510. # check for mesa library (OpenGL)
  13511.  
  13512. # Check whether --with-MESA was given.
  13513. if test "${with_MESA+set}" = set; then
  13514. withval=$with_MESA;
  13515. fi
  13516.  
  13517. if test "$with_mesa" = "" ; then
  13518. with_mesa="no"
  13519. fi
  13520.  
  13521.  
  13522. # mesa (software) gl implementation is default with wx (hardware gl implem can be choosen with --with-gl option)
  13523. if test "$AMAYAOS" = "MACOSX" ; then
  13524. with_mesa="no"
  13525. with_gl="yes"
  13526. else
  13527. if test "$with_gl" = "no" ; then
  13528. with_mesa="yes"
  13529. fi
  13530. fi
  13531.  
  13532. # check if wxWidgets debug is enabled
  13533.  
  13534. # Check whether --with-wxdebug was given.
  13535. if test "${with_wxdebug+set}" = set; then
  13536. withval=$with_wxdebug;
  13537. fi
  13538.  
  13539. if test "$with_wxdebug" = "yes" ; then
  13540. with_wxdebug="yes"
  13541. else
  13542. with_wxdebug="no"
  13543. fi
  13544.  
  13545. # it is possible to specify wxWidgets library path,
  13546. # usefull for developpers who want to compile amaya with different wxWidgets version
  13547.  
  13548. # Check whether --with-wxsrcdir was given.
  13549. if test "${with_wxsrcdir+set}" = set; then
  13550. withval=$with_wxsrcdir;
  13551. fi
  13552.  
  13553. if test "$with_wxsrcdir" = "" ; then
  13554. with_wxsrcdir="../../wxWidgets"
  13555. fi
  13556.  
  13557.  
  13558. # setup the AMAYAGUI variable used to identify used GUI when 'make install' is called
  13559. AMAYAGUI="wx"
  13560.  
  13561.  
  13562.  
  13563. if test "$with_mesa" = "yes" ; then
  13564. # --------- compile Mesa library (opengl) --------------- #
  13565. # check that sources of Mesa exists
  13566. if test ! -f ../../Mesa/Makefile ; then
  13567. GL_BUILDDIR=""
  13568. GL_INCLUDES="-I/usr/include"
  13569. GL_LIBRARIES="-Wl,-rpath,usr/lib -L/usr/lib -lGL -lGLU"
  13570. echo "---> Use system Mesa library"
  13571. else
  13572. OLDDIR=`pwd`
  13573. GL_BUILDDIR="${OLDDIR}/Mesa"
  13574. if test ! -d "$GL_BUILDDIR" ; then
  13575. echo "---> Install Mesa library into ${GL_BUILDDIR}"
  13576. mkdir -p ${GL_BUILDDIR}
  13577. cp -r ../../Mesa/* ${GL_BUILDDIR}
  13578. echo "---> Install Mesa library into ${GL_BUILDDIR} - DONE"
  13579. fi
  13580. # this is the flags used to build amaya with OpenGL
  13581. GL_INCLUDES="-I${GL_BUILDDIR}/include"
  13582. GL_LIBRARIES="-Wl,-rpath,${GL_BUILDDIR}/lib -L${GL_BUILDDIR}/lib -lGL -lGLU"
  13583. fi
  13584. GL_OPTIONS="-D_GL"
  13585.  
  13586.  
  13587.  
  13588. fi
  13589.  
  13590. if test "$with_system_wx" = "yes"; then
  13591. # Extract the first word of "wx-config", so it can be a program name with args.
  13592. set dummy wx-config; ac_word=$2
  13593. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13594. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13595. if test "${ac_cv_path_WXCONFIG+set}" = set; then
  13596. echo $ECHO_N "(cached) $ECHO_C" >&6
  13597. else
  13598. case $WXCONFIG in
  13599. [\\/]* | ?:[\\/]*)
  13600. ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
  13601. ;;
  13602. *)
  13603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13604. for as_dir in $PATH
  13605. do
  13606. IFS=$as_save_IFS
  13607. test -z "$as_dir" && as_dir=.
  13608. for ac_exec_ext in '' $ac_executable_extensions; do
  13609. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13610. ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
  13611. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13612. break 2
  13613. fi
  13614. done
  13615. done
  13616. IFS=$as_save_IFS
  13617.  
  13618. ;;
  13619. esac
  13620. fi
  13621. WXCONFIG=$ac_cv_path_WXCONFIG
  13622. if test -n "$WXCONFIG"; then
  13623. { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
  13624. echo "${ECHO_T}$WXCONFIG" >&6; }
  13625. else
  13626. { echo "$as_me:$LINENO: result: no" >&5
  13627. echo "${ECHO_T}no" >&6; }
  13628. fi
  13629.  
  13630.  
  13631. if test -z "$WXCONFIG"; then
  13632. with_system_wx="no"
  13633. { echo "$as_me:$LINENO: WARNING: wxWidgets system library not found" >&5
  13634. echo "$as_me: WARNING: wxWidgets system library not found" >&2;}
  13635. fi
  13636. fi
  13637.  
  13638. if test "$with_system_wx" != "yes"; then
  13639. # WX_SRCDIR is better to understand the code than with_wxsrcdir variable
  13640. if test ! -f $with_wxsrcdir/Makefile.in ; then
  13641. $with_wxsrcdir = ../../wxWidgets
  13642. fi
  13643. cd $with_wxsrcdir
  13644. WX_SRCDIR=`pwd`
  13645. cd -
  13646.  
  13647.  
  13648. # check that sources of wxWidgets exists
  13649. if test ! -f $WX_SRCDIR/Makefile.in ; then
  13650. { { echo "$as_me:$LINENO: error: wxWidgets library sources not found" >&5
  13651. echo "$as_me: error: wxWidgets library sources not found" >&2;}
  13652. { (exit check --with-wxsrcdir is correct !); exit check --with-wxsrcdir is correct !; }; }
  13653. fi
  13654.  
  13655. # --------- configure wxWidgets library --------------- #
  13656. echo "---> Configuring wxWidgets library."
  13657. OLDDIR=`pwd`
  13658. # create the build directory (debug or release)
  13659. if test $with_wxdebug = yes ; then
  13660. WX_BUILDDIR="wxWidgets_DEBUG"
  13661. else
  13662. WX_BUILDDIR="wxWidgets_RELEASE"
  13663. fi
  13664.  
  13665. mkdir -p $WX_BUILDDIR
  13666. cd $WX_BUILDDIR
  13667.  
  13668.  
  13669. # remove old configure cached options
  13670. rm -f configarg.cache
  13671.  
  13672. # setup configure options
  13673.  
  13674. # disable unused wx features
  13675. # --disable-htmlhelp
  13676. # --disable-html
  13677. # --disable-docview
  13678. # --disable-mdi
  13679. # --disable-mdidoc
  13680. # --disable-sound
  13681. # --disable-richtext
  13682. # --disable-backtrace # to avoid the buggy popup when an assert occurs
  13683. WXCONFIGURE_TUNNING_OPTION="--disable-printarch --disable-htmlhelp --disable-html --disable-richtext --disable-docview --disable-mdidoc --disable-sound --disable-backtrace"
  13684.  
  13685. if test "$AMAYAOS" = "LINUX" ; then
  13686. # LINUX
  13687. # --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
  13688. # --disable-shared create only static library (.a)
  13689. # --enable-unicode compile wxString with Unicode support
  13690. # --with-gtk use GTK+
  13691. # --with-opengl use OpenGL (or Mesa)
  13692. WXCONFIGURE_OPTION="--build=$build_alias --host=$host_alias --target=$target_alias --with-opengl --with-gtk --enable-gtk2 --enable-unicode --enable-ipc --disable-shared --with-libpng=builtin --with-libjpeg=builtin --with-libtiff=builtin --with-libxpm=builtin $WXCONFIGURE_TUNNING_OPTION"
  13693. fi
  13694. if test "$AMAYAOS" = "MACOSX" ; then
  13695. # MACOSX
  13696. WXCONFIGURE_OPTION="--with-opengl --disable-shared --disable-tga --enable-unicode --with-libpng=builtin --with-libjpeg=builtin"
  13697. fi
  13698. if test $with_wxdebug = yes ; then
  13699. WXCONFIGURE_OPTION="$WXCONFIGURE_OPTION --enable-debug"
  13700. # SG: I've disabled other debug options because the lib has bugs when using these flags \
  13701. # (maybe because these flags are not often used by wxWidgets developpers)
  13702. # WXCONFIGURE_OPTION="$WXCONFIGURE_OPTION --enable-debug --enable-debug_cntxt --enable-debug_gdb --enable-debug_info --enable-debug_flag --enable-mem_tracing"
  13703. else
  13704. WXCONFIGURE_OPTION="$WXCONFIGURE_OPTION --enable-optimise"
  13705. fi
  13706.  
  13707. # launch the configure
  13708. if test "$with_mesa" = "yes" ; then
  13709. # use internal OpenGL (mesa) libraries
  13710. $WX_SRCDIR/configure CFLAGS="-I${GL_BUILDDIR}/include" CXXFLAGS="-I${GL_BUILDDIR}/include" CPPFLAGS="-I${GL_BUILDDIR}/include" $WXCONFIGURE_OPTION
  13711. #../$WX_SRCDIR/configure CFLAGS="-I${GL_BUILDDIR}/include" CXXFLAGS="-I${GL_BUILDDIR}/include" CPPFLAGS="-I${GL_BUILDDIR}/include" OPENGL_LIBS="-lGL -lGLU" $WXCONFIGURE_OPTION
  13712. if test $? != 0 ; then
  13713. { { echo "$as_me:$LINENO: error: A problem occurs durring wxWidgets library configuration. Please fix the problem and try again." >&5
  13714. echo "$as_me: error: A problem occurs durring wxWidgets library configuration. Please fix the problem and try again." >&2;}
  13715. { (exit 1); exit 1; }; }
  13716. fi
  13717. else
  13718. # use OpenGL system libraries
  13719. $WX_SRCDIR/configure $WXCONFIGURE_OPTION
  13720. fi
  13721. cd $OLDDIR
  13722. echo "---> Configuring wxWidgets library. - DONE"
  13723.  
  13724. # --------- configuring wxWidgets paths --------------- #
  13725. WXCONFIG=$WX_BUILDDIR/wx-config
  13726. # check that wx-config exists
  13727. if test ! -f $WXCONFIG ; then
  13728. { { echo "$as_me:$LINENO: error: Cannot find wx-config. Please download wxWidgets (http://www.wxwidgets.org/)" >&5
  13729. echo "$as_me: error: Cannot find wx-config. Please download wxWidgets (http://www.wxwidgets.org/)" >&2;}
  13730. { (exit 1); exit 1; }; }
  13731. fi
  13732.  
  13733. # setup include paths
  13734. # "-I$WX_SRCDIR/src/png -I$WX_SRCDIR/src/jpeg -I$WX_SRCDIR/src/tiff" is a temporary patch to fix incorrect generated paths by wx-config --cxxflags (remove it when wxWidgets will be fixed)
  13735. WX_INCLUDES="-I$WX_SRCDIR/src/png -I$WX_SRCDIR/src/jpeg -I$WX_SRCDIR/src/tiff"
  13736. BUILDWXWIDGETS="wxwidgets"
  13737.  
  13738.  
  13739. fi #!$with_system_wx
  13740.  
  13741. WX_INCLUDES="$WX_INCLUDES `$WXCONFIG --cxxflags`"
  13742.  
  13743.  
  13744. # setup libraries paths
  13745. WX_LIBRARIES=""
  13746. WX_LIBRARIES_EXTRA_PARAM=""
  13747. WXCONFIG_LIBS_PARAM="aui,xrc,adv,core,xml,net"
  13748. # GL is used ?
  13749. if test "$with_gl" = "yes" -o "$with_mesa" = "yes" ; then
  13750. WXCONFIG_LIBS_PARAM="${WXCONFIG_LIBS_PARAM},gl"
  13751. # SG: this is a mistery why wx-config doesn't add these needed option on macosx
  13752. if test "$AMAYAOS" = "MACOSX" ; then
  13753. WX_LIBRARIES_EXTRA_PARAM="-framework OpenGL -framework AGL"
  13754. fi
  13755. fi
  13756. if test "$AMAYAOS" = "MACOSX" ; then
  13757. WXCONFIG_LIBS_PARAM="${WXCONFIG_LIBS_PARAM},html"
  13758. fi
  13759.  
  13760. WX_LIBRARIES="`$WXCONFIG --libs $WXCONFIG_LIBS_PARAM` ${WX_LIBRARIES_EXTRA_PARAM}"
  13761.  
  13762. WX_LINKDEPS="`$WXCONFIG --linkdeps`"
  13763.  
  13764. WX_OPTIONS="-D_WX"
  13765. # --------- configuring wxWidgets paths - DONE --------------- #
  13766.  
  13767. if test "${GCC}" = "yes"; then
  13768. CPP="${CPP} -x c"
  13769. fi
  13770.  
  13771.  
  13772. # Do not care with libpng or libjpeg with wx version because we use the wxwidgets one.
  13773.  
  13774. # the wx version
  13775. AMAYAWX_MAJVER=11
  13776. AMAYAWX_MINVER=4
  13777. AMAYAWX_SUBVER=4
  13778. APP_MAJVER=$AMAYAWX_MAJVER
  13779. APP_MINVER=$AMAYAWX_MINVER
  13780. APP_SUBVER=$AMAYAWX_SUBVER
  13781.  
  13782. if test "$APP_SUBVER" = "0" ; then
  13783. APP_VER=$APP_MAJVER.$APP_MINVER
  13784. else
  13785. APP_VER=$APP_MAJVER.$APP_MINVER.$APP_SUBVER
  13786. fi
  13787.  
  13788. # generate a header file with the right version number, so it can be used on windows AND on unix
  13789. APPVERSION_H=../thotlib/internals/h/appversion.h
  13790. echo "#ifndef __APPVERSION_H__" > $APPVERSION_H
  13791. echo "#define __APPVERSION_H__" >> $APPVERSION_H
  13792. echo "#define APP_MAJVER $AMAYAWX_MAJVER" >> $APPVERSION_H
  13793. echo "#define APP_MINVER $AMAYAWX_MINVER" >> $APPVERSION_H
  13794. echo "#define APP_SUBVER $AMAYAWX_SUBVER" >> $APPVERSION_H
  13795. echo "#endif /* __APPVERSION_H__ */" >> $APPVERSION_H
  13796.  
  13797. CEXTRACT_VER="1.7"
  13798. CEXTRACT_FLAGS="+O"
  13799.  
  13800. # Check if debug is enable
  13801.  
  13802. # Check whether --with-debug was given.
  13803. if test "${with_debug+set}" = set; then
  13804. withval=$with_debug;
  13805. fi
  13806.  
  13807. if test "$with_debug" = "yes" ; then
  13808. with_debug="yes"
  13809. CFLAGS="-g"
  13810. CXXFLAGS="-g"
  13811. else
  13812. with_debug="no"
  13813. CFLAGS="-O2"
  13814. CXXFLAGS="-O2"
  13815. fi
  13816.  
  13817. if test "${CC}" = "gcc" ; then
  13818. CFLAGS="${CFLAGS} -Wall"
  13819. case "${host}" in
  13820. *-*-irix5* | *-*irix6* )
  13821. CFLAGS="${CFLAGS} -fsigned-char"
  13822. ;;
  13823. esac
  13824. fi
  13825.  
  13826. if test "$ac_cv_c_const" = "no" ; then
  13827. CFLAGS="${CFLAGS} -DCONST= "
  13828. fi
  13829.  
  13830. # force C mode (-x c)
  13831. #CFLAGS="${CFLAGS} -Wall"
  13832. CFLAGS="${CFLAGS} -x c"
  13833.  
  13834. # C++ options (-x c++)
  13835. #CXXFLAGS="${CXXFLAGS} -Wall"
  13836. CXX_OPTIONS="-D__cplusplus"
  13837. CXXFLAGS="${CXXFLAGS} -Wall -x c++ ${CXX_OPTIONS}"
  13838.  
  13839. # setup LDFLAGS
  13840. # on macosx, specific flags must be set to avoid conflicts with allready installed libwww
  13841. # for exemple it's possible to install libwww with fink (fink install libwww)
  13842. # to avoid conflicts, we just force the linker to search for specified amaya path first
  13843. if test "$AMAYAOS" = "MACOSX" ; then
  13844. LDFLAGS="-Wl,-search_paths_first"
  13845. else
  13846. LDFLAGS=""
  13847. fi
  13848.  
  13849.  
  13850. build_amaya="yes"
  13851.  
  13852. if test "$with_amaya" = "no" ; then
  13853. build_amaya="no"
  13854. else
  13855. if test ! -f $srcdir/amaya/Makefile.in ; then
  13856. { echo "$as_me:$LINENO: WARNING: Amaya browser/editor sources not found" >&5
  13857. echo "$as_me: WARNING: Amaya browser/editor sources not found" >&2;}
  13858. build_amaya="no"
  13859. fi
  13860. fi
  13861.  
  13862.  
  13863. if test "$with_gl" = "yes" -o "$with_mesa" = "yes" ; then
  13864.  
  13865. # if with_gl is on then test system opengl library (GL & GLU)
  13866. if test "$with_gl" = "yes" ; then
  13867. if test "$AMAYAOS" = "LINUX" ; then
  13868. # setup a list of standard paths int LDFLAGS
  13869. # for AC_CHECK_LIB library existance checks
  13870. LIBS_OLD=$LIBS
  13871. LDFLAGS_OLD=$LDFLAGS
  13872. LDFLAGS="-L/usr/X11R6/lib -L/usr/lib -L/usr/local/lib"
  13873. { echo "$as_me:$LINENO: checking OpenGL" >&5
  13874. echo $ECHO_N "checking OpenGL... $ECHO_C" >&6; }
  13875. for ac_dir in \
  13876. /usr/include \
  13877. /usr/X11R6/include \
  13878. /usr/local/include \
  13879. ; \
  13880. do if test -r "$ac_dir/GL/gl.h" ; then
  13881. gl_inc="yes"
  13882. GL_INC_I="$ac_dir"
  13883. if test "$ac_dir" != "/usr/include" ; then
  13884. GL_INCLUDES="-I$ac_dir"
  13885. fi
  13886.  
  13887. { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
  13888. echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
  13889. if test "${ac_cv_lib_GL_glBegin+set}" = set; then
  13890. echo $ECHO_N "(cached) $ECHO_C" >&6
  13891. else
  13892. ac_check_lib_save_LIBS=$LIBS
  13893. LIBS="-lGL $LIBS"
  13894. cat >conftest.$ac_ext <<_ACEOF
  13895. /* confdefs.h. */
  13896. _ACEOF
  13897. cat confdefs.h >>conftest.$ac_ext
  13898. cat >>conftest.$ac_ext <<_ACEOF
  13899. /* end confdefs.h. */
  13900.  
  13901. /* Override any GCC internal prototype to avoid an error.
  13902. Use char because int might match the return type of a GCC
  13903. builtin and then its argument prototype would still apply. */
  13904. #ifdef __cplusplus
  13905. extern "C"
  13906. #endif
  13907. char glBegin ();
  13908. int
  13909. main ()
  13910. {
  13911. return glBegin ();
  13912. ;
  13913. return 0;
  13914. }
  13915. _ACEOF
  13916. rm -f conftest.$ac_objext conftest$ac_exeext
  13917. if { (ac_try="$ac_link"
  13918. case "(($ac_try" in
  13919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13920. *) ac_try_echo=$ac_try;;
  13921. esac
  13922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13923. (eval "$ac_link") 2>conftest.er1
  13924. ac_status=$?
  13925. grep -v '^ *+' conftest.er1 >conftest.err
  13926. rm -f conftest.er1
  13927. cat conftest.err >&5
  13928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13929. (exit $ac_status); } && {
  13930. test -z "$ac_c_werror_flag" ||
  13931. test ! -s conftest.err
  13932. } && test -s conftest$ac_exeext &&
  13933. $as_test_x conftest$ac_exeext; then
  13934. ac_cv_lib_GL_glBegin=yes
  13935. else
  13936. echo "$as_me: failed program was:" >&5
  13937. sed 's/^/| /' conftest.$ac_ext >&5
  13938.  
  13939. ac_cv_lib_GL_glBegin=no
  13940. fi
  13941.  
  13942. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13943. conftest$ac_exeext conftest.$ac_ext
  13944. LIBS=$ac_check_lib_save_LIBS
  13945. fi
  13946. { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
  13947. echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
  13948. if test $ac_cv_lib_GL_glBegin = yes; then
  13949. cat >>confdefs.h <<_ACEOF
  13950. #define HAVE_LIBGL 1
  13951. _ACEOF
  13952.  
  13953. LIBS="-lGL $LIBS"
  13954.  
  13955. else
  13956. { { echo "$as_me:$LINENO: error: Cannot find OpenGL library. Please install OpenGL." >&5
  13957. echo "$as_me: error: Cannot find OpenGL library. Please install OpenGL." >&2;}
  13958. { (exit 1); exit 1; }; }
  13959. fi
  13960.  
  13961. { echo "$as_me:$LINENO: result: yes" >&5
  13962. echo "${ECHO_T}yes" >&6; }
  13963. break
  13964. fi
  13965. done
  13966.  
  13967. { echo "$as_me:$LINENO: checking GLU" >&5
  13968. echo $ECHO_N "checking GLU... $ECHO_C" >&6; }
  13969. for ac_dir in \
  13970. /usr/include \
  13971. /usr/X11R6/include \
  13972. /usr/local/include \
  13973. ; \
  13974. do if test -r "$ac_dir/GL/glu.h" ; then
  13975. glu_inc="yes"
  13976. GL_INC_II="$ac_dir"
  13977. if test "$ac_dir" != "/usr/include" ; then
  13978. if test "$ac_dir" != "$GL_INC_I" ; then
  13979. GL_INCLUDES="$GL_INCLUDES -I$ac_dir"
  13980. fi
  13981. fi
  13982. # now test that glu version is >= 1.2
  13983.  
  13984. { echo "$as_me:$LINENO: checking for gluNewTess in -lGLU" >&5
  13985. echo $ECHO_N "checking for gluNewTess in -lGLU... $ECHO_C" >&6; }
  13986. if test "${ac_cv_lib_GLU_gluNewTess+set}" = set; then
  13987. echo $ECHO_N "(cached) $ECHO_C" >&6
  13988. else
  13989. ac_check_lib_save_LIBS=$LIBS
  13990. LIBS="-lGLU $LIBS"
  13991. cat >conftest.$ac_ext <<_ACEOF
  13992. /* confdefs.h. */
  13993. _ACEOF
  13994. cat confdefs.h >>conftest.$ac_ext
  13995. cat >>conftest.$ac_ext <<_ACEOF
  13996. /* end confdefs.h. */
  13997.  
  13998. /* Override any GCC internal prototype to avoid an error.
  13999. Use char because int might match the return type of a GCC
  14000. builtin and then its argument prototype would still apply. */
  14001. #ifdef __cplusplus
  14002. extern "C"
  14003. #endif
  14004. char gluNewTess ();
  14005. int
  14006. main ()
  14007. {
  14008. return gluNewTess ();
  14009. ;
  14010. return 0;
  14011. }
  14012. _ACEOF
  14013. rm -f conftest.$ac_objext conftest$ac_exeext
  14014. if { (ac_try="$ac_link"
  14015. case "(($ac_try" in
  14016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14017. *) ac_try_echo=$ac_try;;
  14018. esac
  14019. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14020. (eval "$ac_link") 2>conftest.er1
  14021. ac_status=$?
  14022. grep -v '^ *+' conftest.er1 >conftest.err
  14023. rm -f conftest.er1
  14024. cat conftest.err >&5
  14025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14026. (exit $ac_status); } && {
  14027. test -z "$ac_c_werror_flag" ||
  14028. test ! -s conftest.err
  14029. } && test -s conftest$ac_exeext &&
  14030. $as_test_x conftest$ac_exeext; then
  14031. ac_cv_lib_GLU_gluNewTess=yes
  14032. else
  14033. echo "$as_me: failed program was:" >&5
  14034. sed 's/^/| /' conftest.$ac_ext >&5
  14035.  
  14036. ac_cv_lib_GLU_gluNewTess=no
  14037. fi
  14038.  
  14039. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14040. conftest$ac_exeext conftest.$ac_ext
  14041. LIBS=$ac_check_lib_save_LIBS
  14042. fi
  14043. { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluNewTess" >&5
  14044. echo "${ECHO_T}$ac_cv_lib_GLU_gluNewTess" >&6; }
  14045. if test $ac_cv_lib_GLU_gluNewTess = yes; then
  14046. cat >>confdefs.h <<_ACEOF
  14047. #define HAVE_LIBGLU 1
  14048. _ACEOF
  14049.  
  14050. LIBS="-lGLU $LIBS"
  14051.  
  14052. else
  14053.  
  14054. { echo "$as_me:$LINENO: checking for gluNewTess in -lglu32" >&5
  14055. echo $ECHO_N "checking for gluNewTess in -lglu32... $ECHO_C" >&6; }
  14056. if test "${ac_cv_lib_glu32_gluNewTess+set}" = set; then
  14057. echo $ECHO_N "(cached) $ECHO_C" >&6
  14058. else
  14059. ac_check_lib_save_LIBS=$LIBS
  14060. LIBS="-lglu32 $LIBS"
  14061. cat >conftest.$ac_ext <<_ACEOF
  14062. /* confdefs.h. */
  14063. _ACEOF
  14064. cat confdefs.h >>conftest.$ac_ext
  14065. cat >>conftest.$ac_ext <<_ACEOF
  14066. /* end confdefs.h. */
  14067.  
  14068. /* Override any GCC internal prototype to avoid an error.
  14069. Use char because int might match the return type of a GCC
  14070. builtin and then its argument prototype would still apply. */
  14071. #ifdef __cplusplus
  14072. extern "C"
  14073. #endif
  14074. char gluNewTess ();
  14075. int
  14076. main ()
  14077. {
  14078. return gluNewTess ();
  14079. ;
  14080. return 0;
  14081. }
  14082. _ACEOF
  14083. rm -f conftest.$ac_objext conftest$ac_exeext
  14084. if { (ac_try="$ac_link"
  14085. case "(($ac_try" in
  14086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14087. *) ac_try_echo=$ac_try;;
  14088. esac
  14089. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14090. (eval "$ac_link") 2>conftest.er1
  14091. ac_status=$?
  14092. grep -v '^ *+' conftest.er1 >conftest.err
  14093. rm -f conftest.er1
  14094. cat conftest.err >&5
  14095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14096. (exit $ac_status); } && {
  14097. test -z "$ac_c_werror_flag" ||
  14098. test ! -s conftest.err
  14099. } && test -s conftest$ac_exeext &&
  14100. $as_test_x conftest$ac_exeext; then
  14101. ac_cv_lib_glu32_gluNewTess=yes
  14102. else
  14103. echo "$as_me: failed program was:" >&5
  14104. sed 's/^/| /' conftest.$ac_ext >&5
  14105.  
  14106. ac_cv_lib_glu32_gluNewTess=no
  14107. fi
  14108.  
  14109. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14110. conftest$ac_exeext conftest.$ac_ext
  14111. LIBS=$ac_check_lib_save_LIBS
  14112. fi
  14113. { echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_gluNewTess" >&5
  14114. echo "${ECHO_T}$ac_cv_lib_glu32_gluNewTess" >&6; }
  14115. if test $ac_cv_lib_glu32_gluNewTess = yes; then
  14116. cat >>confdefs.h <<_ACEOF
  14117. #define HAVE_LIBGLU32 1
  14118. _ACEOF
  14119.  
  14120. LIBS="-lglu32 $LIBS"
  14121.  
  14122. else
  14123. { { echo "$as_me:$LINENO: error: Cannot find OpenGL GLU lib or existing version is < 1.2. Pease upgrade your GLU library." >&5
  14124. echo "$as_me: error: Cannot find OpenGL GLU lib or existing version is < 1.2. Pease upgrade your GLU library." >&2;}
  14125. { (exit 1); exit 1; }; }
  14126. fi
  14127.  
  14128. fi
  14129.  
  14130. { echo "$as_me:$LINENO: result: yes" >&5
  14131. echo "${ECHO_T}yes" >&6; }
  14132. break
  14133. fi
  14134. done
  14135. LDFLAGS=$LDFLAGS_OLD
  14136. LIBS=$LIBS_OLD
  14137.  
  14138. if test "$gl_inc" = "" ; then
  14139. { echo "$as_me:$LINENO: WARNING: Opengl headers (gl.h) not found !!" >&5
  14140. echo "$as_me: WARNING: Opengl headers (gl.h) not found !!" >&2;}
  14141. { echo "$as_me:$LINENO: WARNING: Disabling opengl build !" >&5
  14142. echo "$as_me: WARNING: Disabling opengl build !" >&2;}
  14143. with_gl="no"
  14144. GL_OPTIONS=
  14145. GL_INCLUDES=
  14146. GL_LIBRARIES=
  14147. exit 1;
  14148. fi
  14149.  
  14150. if test "$glu_inc" = "" ; then
  14151. { echo "$as_me:$LINENO: WARNING: Glu headers (glu.h) not found !!" >&5
  14152. echo "$as_me: WARNING: Glu headers (glu.h) not found !!" >&2;}
  14153. { echo "$as_me:$LINENO: WARNING: Disabling opengl build !" >&5
  14154. echo "$as_me: WARNING: Disabling opengl build !" >&2;}
  14155.  
  14156. with_gl="no"
  14157. GL_OPTIONS=
  14158. GL_INCLUDES=
  14159. GL_LIBRARIES=
  14160. exit 1;
  14161. fi
  14162. fi # AMAYAOS = LINUX
  14163.  
  14164. if test "$AMAYAOS" = "MACOSX" ; then
  14165. GL_OPTIONS="-D_GL"
  14166. GL_INCLUDES="-I/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/"
  14167. GL_LIBRARIES=""
  14168. GL_BUILDDIR=""
  14169. else
  14170. GL_LIBRARIES="-L/usr/lib -L/usr/X11R6/lib -lGL -lGLU"
  14171. GL_OPTIONS="-D_GL"
  14172. fi
  14173.  
  14174.  
  14175.  
  14176. fi # if with_gl
  14177.  
  14178. # ---------- Checking for freetype lib (fonts library)
  14179. if test "$AMAYAOS" = "MACOSX" ; then
  14180. # we use a static version of freetype lib for mac osx
  14181. # ** search for includes (freetype.h)
  14182. for ac_dir in \
  14183. /Developer/SDKs/MacOSX10.6.sdk/usr/X11R6/include/ \
  14184. /Developer/SDKs/MacOSX10.6.sdk/usr/X11R6/include/freetype2/ \
  14185. /Developer/SDKs/MacOSX10.5.sdk/usr/X11R6/include/ \
  14186. /Developer/SDKs/MacOSX10.5.sdk/usr/X11R6/include/freetype2/ \
  14187. /Developer/SDKs/MacOSX10.2.8.sdk/usr/X11R6/include/ \
  14188. /Developer/SDKs/MacOSX10.2.8.sdk/usr/X11R6/include/freetype2/ \
  14189. /Developer/SDKs/MacOSX10.3.0.sdk/usr/X11R6/include/ \
  14190. /Developer/SDKs/MacOSX10.3.0.sdk/usr/X11R6/include/freetype2/ \
  14191. /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/ \
  14192. /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/freetype2/ \
  14193. /Developer/SDKs/MacOSX10.3.9.sdk/usr/X11R6/include/ \
  14194. /Developer/SDKs/MacOSX10.3.9.sdk/usr/X11R6/include/freetype2/ \
  14195. /Developer/SDKs/MacOSX10.4.0.sdk/usr/X11R6/include/ \
  14196. /Developer/SDKs/MacOSX10.4.0.sdk/usr/X11R6/include/freetype2/ \
  14197. /opt/local/include/ \
  14198. /opt/local/include/freetype2/ \
  14199. /usr/X11R6/include/freetype2/freetype/ \
  14200. ; \
  14201. do
  14202. if test -r "$ac_dir/ft2build.h"; then
  14203. FREETYPE_INCLUDES="${FREETYPE_INCLUDES} -I$ac_dir"
  14204. fi
  14205. if test -r "$ac_dir/freetype/config/ftheader.h"; then
  14206. FREETYPE_INCLUDES="${FREETYPE_INCLUDES} -I$ac_dir"
  14207. fi
  14208. done
  14209. # ** search for binary (libfreetype.a)
  14210. for ac_dir in \
  14211. /Developer/SDKs/MacOSX10.2.8.sdk/usr/X11R6/lib/ \
  14212. /Developer/SDKs/MacOSX10.3.0.sdk/usr/X11R6/lib/ \
  14213. /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib/ \
  14214. /Developer/SDKs/MacOSX10.3.9.sdk/usr/X11R6/lib/ \
  14215. /Developer/SDKs/MacOSX10.4.0.sdk/usr/X11R6/lib/ \
  14216. /opt/local/lib/ \
  14217. /usr/X11R6/lib/ \
  14218. ; \
  14219. do
  14220. if test -r "$ac_dir/libfreetype.a"; then
  14221. FREETYPE_LIBRARIES="$ac_dir/libfreetype.a"
  14222. break
  14223. fi
  14224. done
  14225. else # "$AMAYAOS" = "MACOSX"
  14226. if test ! -f $(which freetype-config) ; then
  14227. { { echo "$as_me:$LINENO: error: Cannot find freetype library (font load/display routines). Please install it." >&5
  14228. echo "$as_me: error: Cannot find freetype library (font load/display routines). Please install it." >&2;}
  14229. { (exit 1); exit 1; }; }
  14230. fi
  14231. FREETYPE_INCLUDES=`freetype-config --cflags`
  14232. FREETYPE_LIBRARIES=`freetype-config --libs`
  14233. fi # "$AMAYAOS" = "MACOSX"
  14234.  
  14235.  
  14236.  
  14237.  
  14238. { echo "$as_me:$LINENO: checking gcc3" >&5
  14239. echo $ECHO_N "checking gcc3... $ECHO_C" >&6; }
  14240. for ac_dir in \
  14241. /usr/lib \
  14242. /usr/X11R6/lib \
  14243. /usr/local/lib \
  14244. ; \
  14245. do if test -r "$ac_dir/libstdc++.so.5" ; then
  14246. stdglu_inc="yes"
  14247. STDCPP_LIBRARIES="-lstdc++"
  14248. STDCPP_INCLUDES=""
  14249. { echo "$as_me:$LINENO: result: yes" >&5
  14250. echo "${ECHO_T}yes" >&6; }
  14251. break
  14252. fi
  14253. done
  14254.  
  14255. fi # if with_gl or with_mesa
  14256.  
  14257. # Check whether --enable-svg was given.
  14258. if test "${enable_svg+set}" = set; then
  14259. enableval=$enable_svg; case "${enableval}" in
  14260. yes) with_svg="yes" ;;
  14261. no) with_svg="no" ;;
  14262. *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-svg" >&5
  14263. echo "$as_me: error: bad value ${enableval} for --disable-svg" >&2;}
  14264. { (exit 1); exit 1; }; } ;;
  14265. esac
  14266. else
  14267. with_svg="yes"
  14268. fi
  14269.  
  14270.  
  14271. #################### LibWWW and WebDAV Support ################################
  14272.  
  14273. # Check whether --enable-system-libwww was given.
  14274. if test "${enable_system_libwww+set}" = set; then
  14275. enableval=$enable_system_libwww; case "${enableval}" in
  14276. yes) with_system_libwww="yes" ;;
  14277. no) with_system_libwww="no" ;;
  14278. *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-system-libwww" >&5
  14279. echo "$as_me: error: bad value ${enableval} for --enable-system-libwww" >&2;}
  14280. { (exit 1); exit 1; }; } ;;
  14281. esac
  14282. else
  14283. with_system_libwww="no"
  14284. fi
  14285.  
  14286.  
  14287. if test "$with_system_libwww" = "yes" ; then
  14288. # check to see if we have a libWWW library
  14289. # Extract the first word of "libwww-config", so it can be a program name with args.
  14290. set dummy libwww-config; ac_word=$2
  14291. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14292. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14293. if test "${ac_cv_path_LIBWWW_CONFIG+set}" = set; then
  14294. echo $ECHO_N "(cached) $ECHO_C" >&6
  14295. else
  14296. case $LIBWWW_CONFIG in
  14297. [\\/]* | ?:[\\/]*)
  14298. ac_cv_path_LIBWWW_CONFIG="$LIBWWW_CONFIG" # Let the user override the test with a path.
  14299. ;;
  14300. *)
  14301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14302. for as_dir in $PATH
  14303. do
  14304. IFS=$as_save_IFS
  14305. test -z "$as_dir" && as_dir=.
  14306. for ac_exec_ext in '' $ac_executable_extensions; do
  14307. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14308. ac_cv_path_LIBWWW_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14309. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14310. break 2
  14311. fi
  14312. done
  14313. done
  14314. IFS=$as_save_IFS
  14315.  
  14316. ;;
  14317. esac
  14318. fi
  14319. LIBWWW_CONFIG=$ac_cv_path_LIBWWW_CONFIG
  14320. if test -n "$LIBWWW_CONFIG"; then
  14321. { echo "$as_me:$LINENO: result: $LIBWWW_CONFIG" >&5
  14322. echo "${ECHO_T}$LIBWWW_CONFIG" >&6; }
  14323. else
  14324. { echo "$as_me:$LINENO: result: no" >&5
  14325. echo "${ECHO_T}no" >&6; }
  14326. fi
  14327.  
  14328.  
  14329.  
  14330. if test "$LIBWWW_CONFIG" = "" ; then
  14331. { echo "$as_me:$LINENO: WARNING: libwww system library not found" >&5
  14332. echo "$as_me: WARNING: libwww system library not found" >&2;}
  14333. with_system_libwww="no"
  14334. fi
  14335. fi
  14336.  
  14337.  
  14338. # Check whether --with-dav was given.
  14339. if test "${with_dav+set}" = set; then
  14340. withval=$with_dav; case "${withval}" in
  14341. yes) with_dav="yes" ;;
  14342. no) with_dav="no" ;;
  14343. *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-dav" >&5
  14344. echo "$as_me: error: bad value ${withval} for --with-dav" >&2;}
  14345. { (exit 1); exit 1; }; } ;;
  14346. esac
  14347. else
  14348. with_dav="yes"
  14349. fi
  14350.  
  14351.  
  14352. # If DAV is enabled, check if the source code is present
  14353. if test ! -f $srcdir/davlib/Makefile.in ; then
  14354. if test "$with_dav" = "yes" ; then
  14355. { echo "$as_me:$LINENO: WARNING: WebDAV makefile not found" >&5
  14356. echo "$as_me: WARNING: WebDAV makefile not found" >&2;}
  14357. with_dav="no"
  14358. fi
  14359. fi
  14360.  
  14361. if test "$with_dav" = "yes" ; then
  14362. WITHDAV="--with-dav"
  14363. else
  14364. WITHDAV="--without-dav"
  14365. fi
  14366.  
  14367. if test "$with_system_libwww" != "yes" ; then
  14368. # configure libwww
  14369. CURRENT_PATH="`pwd`"
  14370. mkdir libwww
  14371. cd libwww && \
  14372. $CURRENT_PATH/../../libwww/configure \
  14373. --build=$build_alias --host=$host_alias --target=$target_alias \
  14374. --disable-shared \
  14375. $WITHDAV \
  14376. --with-zlib --with-ssl && \
  14377. echo "libwww is configured" ; \
  14378. echo "patching wwwconf.h because appkit.h do not compile on macos, and it seems that appkit.h is not used in amaya" ; \
  14379. cp wwwconf.h wwwconf.h.orig ; \
  14380. sed -e "s/\(\#define HAVE_APPKIT_APPKIT_H 1\)/\/* \1 *\//" \
  14381. wwwconf.h.orig > wwwconf.h ; \
  14382. echo "wwwconf.h patched !" ; \
  14383. cd ..
  14384. chmod +x libwww/libwww-config
  14385. BUILDLIBWWW="libwww"
  14386. LIBWWW_CONFIG="libwww/libwww-config"
  14387. LIBWWW_LDFLAGS="-L$CURRENT_PATH/libwww/Library/src/.libs -lwwwxml -lwwwzip -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lwwwdav \
  14388. -L$CURRENT_PATH/libwww/Library/src/SSL/.libs -lwwwssl\
  14389. -L$CURRENT_PATH/libwww/modules/md5/.libs -lmd5 \
  14390. -L$CURRENT_PATH/libwww/modules/expat/.libs -lexpat \
  14391. -L/usr/lib -lssl -lcrypto"
  14392. LIBWWW_CFLAGS="-I$CURRENT_PATH/../../libwww/Library/src -I$CURRENT_PATH/libwww -I$CURRENT_PATH/../../libwww/modules/expat/lib -I$CURRENT_PATH/../../libwww/Library/src/SSL"
  14393. else
  14394. LIBWWW_CFLAGS="`$LIBWWW_CONFIG --cflags`"
  14395. LIBWWW_LDFLAGS="`$LIBWWW_CONFIG --libs`"
  14396.  
  14397. if test "$with_dav" = "yes" ; then
  14398. { echo "$as_me:$LINENO: checking for toto in -lwwwdav" >&5
  14399. echo $ECHO_N "checking for toto in -lwwwdav... $ECHO_C" >&6; }
  14400. if test "${ac_cv_lib_wwwdav_toto+set}" = set; then
  14401. echo $ECHO_N "(cached) $ECHO_C" >&6
  14402. else
  14403. ac_check_lib_save_LIBS=$LIBS
  14404. LIBS="-lwwwdav $LIBS"
  14405. cat >conftest.$ac_ext <<_ACEOF
  14406. /* confdefs.h. */
  14407. _ACEOF
  14408. cat confdefs.h >>conftest.$ac_ext
  14409. cat >>conftest.$ac_ext <<_ACEOF
  14410. /* end confdefs.h. */
  14411.  
  14412. /* Override any GCC internal prototype to avoid an error.
  14413. Use char because int might match the return type of a GCC
  14414. builtin and then its argument prototype would still apply. */
  14415. #ifdef __cplusplus
  14416. extern "C"
  14417. #endif
  14418. char toto ();
  14419. int
  14420. main ()
  14421. {
  14422. return toto ();
  14423. ;
  14424. return 0;
  14425. }
  14426. _ACEOF
  14427. rm -f conftest.$ac_objext conftest$ac_exeext
  14428. if { (ac_try="$ac_link"
  14429. case "(($ac_try" in
  14430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14431. *) ac_try_echo=$ac_try;;
  14432. esac
  14433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14434. (eval "$ac_link") 2>conftest.er1
  14435. ac_status=$?
  14436. grep -v '^ *+' conftest.er1 >conftest.err
  14437. rm -f conftest.er1
  14438. cat conftest.err >&5
  14439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14440. (exit $ac_status); } && {
  14441. test -z "$ac_c_werror_flag" ||
  14442. test ! -s conftest.err
  14443. } && test -s conftest$ac_exeext &&
  14444. $as_test_x conftest$ac_exeext; then
  14445. ac_cv_lib_wwwdav_toto=yes
  14446. else
  14447. echo "$as_me: failed program was:" >&5
  14448. sed 's/^/| /' conftest.$ac_ext >&5
  14449.  
  14450. ac_cv_lib_wwwdav_toto=no
  14451. fi
  14452.  
  14453. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14454. conftest$ac_exeext conftest.$ac_ext
  14455. LIBS=$ac_check_lib_save_LIBS
  14456. fi
  14457. { echo "$as_me:$LINENO: result: $ac_cv_lib_wwwdav_toto" >&5
  14458. echo "${ECHO_T}$ac_cv_lib_wwwdav_toto" >&6; }
  14459. if test $ac_cv_lib_wwwdav_toto = yes; then
  14460. LIBWWW_LDFLAGS="$LIBWWW_LDFLAGS -lwwwdav"
  14461. else
  14462. { echo "$as_me:$LINENO: WARNING: libwwwdav is not available, disabling WebDAV" >&5
  14463. echo "$as_me: WARNING: libwwwdav is not available, disabling WebDAV" >&2;}; with_dav="no"
  14464. fi
  14465.  
  14466. fi
  14467. fi
  14468.  
  14469. if test "$with_dav" = "yes" ; then
  14470. DAV_OPTIONS=-DDAV
  14471. DAVDIR="davlib"
  14472. else
  14473. with_dav="no"
  14474. DAV_OPTIONS=""
  14475. DAVDIR=""
  14476. fi
  14477.  
  14478.  
  14479.  
  14480.  
  14481.  
  14482.  
  14483.  
  14484.  
  14485.  
  14486.  
  14487. ############# end of LibWWW and WebDAV Support ################################
  14488.  
  14489. ##########################Annotations Support####################
  14490. # Check whether --enable-annot was given.
  14491. if test "${enable_annot+set}" = set; then
  14492. enableval=$enable_annot; case "${enableval}" in
  14493. yes) with_annot="yes" ;;
  14494. no) with_annot="no" ;;
  14495. *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-annot" >&5
  14496. echo "$as_me: error: bad value ${enableval} for --disable-annot" >&2;}
  14497. { (exit 1); exit 1; }; } ;;
  14498. esac
  14499. else
  14500. with_annot="yes"
  14501. fi
  14502.  
  14503.  
  14504.  
  14505. #annot need Raptor
  14506. if test "$with_annot" = "yes" ; then
  14507. with_raptor="yes"
  14508. else
  14509. with_raptor="no"
  14510. fi
  14511.  
  14512. # Check whether --enable-system-raptor was given.
  14513. if test "${enable_system_raptor+set}" = set; then
  14514. enableval=$enable_system_raptor; case "${enableval}" in
  14515. yes) with_system_raptor="yes";;
  14516. no) with_system_raptor="no" ;;
  14517. *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-system-raptor" >&5
  14518. echo "$as_me: error: bad value ${enableval} for --enable-system-raptor" >&2;}
  14519. { (exit 1); exit 1; }; } ;;
  14520. esac
  14521. else
  14522. with_system_raptor="no"
  14523. fi
  14524.  
  14525.  
  14526. #If Raptor is needed and we are asked
  14527. #to use the system library, check if is present
  14528. if test "$with_raptor" = "yes" -a "$with_system_raptor" = "yes" ; then
  14529. # check to see if we have a raptor library
  14530. # Extract the first word of "raptor-config", so it can be a program name with args.
  14531. set dummy raptor-config; ac_word=$2
  14532. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14533. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14534. if test "${ac_cv_path_RAPTOR_CONFIG+set}" = set; then
  14535. echo $ECHO_N "(cached) $ECHO_C" >&6
  14536. else
  14537. case $RAPTOR_CONFIG in
  14538. [\\/]* | ?:[\\/]*)
  14539. ac_cv_path_RAPTOR_CONFIG="$RAPTOR_CONFIG" # Let the user override the test with a path.
  14540. ;;
  14541. *)
  14542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14543. for as_dir in $PATH
  14544. do
  14545. IFS=$as_save_IFS
  14546. test -z "$as_dir" && as_dir=.
  14547. for ac_exec_ext in '' $ac_executable_extensions; do
  14548. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14549. ac_cv_path_RAPTOR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14550. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14551. break 2
  14552. fi
  14553. done
  14554. done
  14555. IFS=$as_save_IFS
  14556.  
  14557. ;;
  14558. esac
  14559. fi
  14560. RAPTOR_CONFIG=$ac_cv_path_RAPTOR_CONFIG
  14561. if test -n "$RAPTOR_CONFIG"; then
  14562. { echo "$as_me:$LINENO: result: $RAPTOR_CONFIG" >&5
  14563. echo "${ECHO_T}$RAPTOR_CONFIG" >&6; }
  14564. else
  14565. { echo "$as_me:$LINENO: result: no" >&5
  14566. echo "${ECHO_T}no" >&6; }
  14567. fi
  14568.  
  14569.  
  14570.  
  14571. if test "$RAPTOR_CONFIG" = "" ; then
  14572. { echo "$as_me:$LINENO: WARNING: Not using system-provided Raptor library" >&5
  14573. echo "$as_me: WARNING: Not using system-provided Raptor library" >&2;}
  14574. with_system_raptor="no"
  14575. fi
  14576. fi
  14577.  
  14578. #if we use the builtin library,
  14579. #check it is present
  14580. if test "$with_raptor" = "yes" -a "$with_system_raptor" != "yes" \
  14581. -a ! -d "$srcdir/../redland/raptor" ; then
  14582. { echo "$as_me:$LINENO: WARNING: Raptor source dir not found !!" >&5
  14583. echo "$as_me: WARNING: Raptor source dir not found !!" >&2;}
  14584. { echo "$as_me:$LINENO: WARNING: Disabling raptor build !" >&5
  14585. echo "$as_me: WARNING: Disabling raptor build !" >&2;}
  14586. with_raptor="no"
  14587. fi
  14588.  
  14589. #At this point, we know everything about Raptor,
  14590. #so either set the variables we will need later,
  14591. #or disable Annotations
  14592. if test "$with_raptor" = "yes" ; then
  14593. if test "$with_system_raptor" != "yes" ; then
  14594. AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS -I\$(THOTDIR)/../redland/raptor "
  14595. AMAYA_RAPTOR_LIBS="../raptor/.libs/libraptor.a"
  14596. AMAYA_RAPTOR_INCLUDES="-I\$(THOTDIR)/../redland/raptor"
  14597. BUILDRAPTOR="raptor"
  14598. CURRENTPATH="`pwd`"
  14599. mkdir $BUILDRAPTOR
  14600. cd $BUILDRAPTOR &&
  14601. CC="$CC" CXX="$CXX" \
  14602. CPPFLAGS="-I$CURRENTPATH/../../libwww/modules/expat/lib" \
  14603. LDFLAGS="-L$CURRENTPATH/libwww/modules/expat -L$CURRENTPATH/libwww/modules/expat/.libs" \
  14604. ../../../redland/raptor/configure \
  14605. --build=$build_alias --host=$host_alias --target=$target_alias \
  14606. --disable-shared \
  14607. --with-xml-parser=expat \
  14608. --with-www=none
  14609. $ECHO "Raptor is configured"
  14610. $ECHO "Patching the raptor_config.h file to avoid including glib2-0"
  14611. $CP raptor_config.h raptor_config.h.orig
  14612. $SED "s/\(\#define HAVE_G_UTF8_NORMALIZE 1\)/\/* \1 *\//" \
  14613. raptor_config.h.orig > raptor_config.h
  14614. $RM raptor_config.h.orig
  14615. $ECHO "Raptor is patched"
  14616. cd ..
  14617. else
  14618. raptor_includes=`$RAPTOR_CONFIG --cflags`
  14619. raptor_libs="-lraptor"
  14620. BUILDRAPTOR=""
  14621. AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS"
  14622. AMAYA_ANNOT_INCLUDES="$raptor_includes -I\$(THOTDIR)/thotlib/include"
  14623. AMAYA_ANNOT_EXTRA_LIBS="$raptor_libs"
  14624. AMAYA_RAPTOR_INCLUDES="$raptor_includes"
  14625. fi
  14626. else
  14627. with_annot="no"
  14628. fi
  14629.  
  14630. ANNOTLIB_COMPILE_BM='#'
  14631.  
  14632.  
  14633.  
  14634.  
  14635.  
  14636.  
  14637.  
  14638.  
  14639.  
  14640.  
  14641.  
  14642. ###################End of Annotations Support####################
  14643.  
  14644.  
  14645. # Check whether --enable-templates was given.
  14646. if test "${enable_templates+set}" = set; then
  14647. enableval=$enable_templates; case "${enableval}" in
  14648. yes) with_templates="yes" ;;
  14649. no) with_templates="no" ;;
  14650. *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-templates" >&5
  14651. echo "$as_me: error: bad value ${enableval} for --disable-templates" >&2;}
  14652. { (exit 1); exit 1; }; } ;;
  14653. esac
  14654. else
  14655. with_templates="yes"
  14656. fi
  14657.  
  14658.  
  14659. if test "$with_templates" = yes -a "$with_wx" != "yes"; then
  14660. { echo "$as_me:$LINENO: WARNING: Templates are only available in WX version !!" >&5
  14661. echo "$as_me: WARNING: Templates are only available in WX version !!" >&2;}
  14662. { echo "$as_me:$LINENO: WARNING: Disabling templates" >&5
  14663. echo "$as_me: WARNING: Disabling templates" >&2;}
  14664. with_templates="no"
  14665. fi
  14666.  
  14667. if test "$with_templates" = "yes" ; then
  14668. TEMPLATES_OPTIONS="-DTEMPLATES"
  14669. else
  14670. TEMPLATES_OPTIONS=""
  14671. fi
  14672.  
  14673.  
  14674. # Check whether --enable-generic-xml was given.
  14675. if test "${enable_generic_xml+set}" = set; then
  14676. enableval=$enable_generic_xml; case "${enableval}" in
  14677. yes) with_generic_xml="yes" ;;
  14678. no) with_generic_xml="no" ;;
  14679. *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-generic-xml" >&5
  14680. echo "$as_me: error: bad value ${enableval} for --disable-generic-xml" >&2;}
  14681. { (exit 1); exit 1; }; } ;;
  14682. esac
  14683. else
  14684. with_generic_xml="yes"
  14685. fi
  14686.  
  14687.  
  14688. if test "$with_generic_xml" = "yes" ; then
  14689. GENERIC_XML_OPTIONS="-DXML_GENERIC"
  14690. else
  14691. GENERIC_XML_OPTIONS=""
  14692. fi
  14693.  
  14694.  
  14695. if test "$build_amaya" = "yes" ; then
  14696. if test ! -f $srcdir/amaya/MathML.S ; then
  14697. if test "$with_math" = "yes" ; then
  14698. { echo "$as_me:$LINENO: WARNING: MathML sources not found !!" >&5
  14699. echo "$as_me: WARNING: MathML sources not found !!" >&2;}
  14700. { echo "$as_me:$LINENO: WARNING: Disabling Math build !" >&5
  14701. echo "$as_me: WARNING: Disabling Math build !" >&2;}
  14702. with_math="no"
  14703. MATH_OPTIONS=
  14704. fi
  14705. fi
  14706.  
  14707. if test ! -f $srcdir/amaya/SVG.S ; then
  14708. if test "$with_svg" = "yes" ; then
  14709. { echo "$as_me:$LINENO: WARNING: SVG sources not found !!" >&5
  14710. echo "$as_me: WARNING: SVG sources not found !!" >&2;}
  14711. { echo "$as_me:$LINENO: WARNING: Disabling SVG build !" >&5
  14712. echo "$as_me: WARNING: Disabling SVG build !" >&2;}
  14713. with_svg="no"
  14714. SVG_OPTIONS=
  14715. fi
  14716. fi
  14717.  
  14718. fi
  14719.  
  14720. THOT_OPTIONS="$OS_OPTIONS $GL_OPTIONS $WX_OPTIONS"
  14721.  
  14722. AMAYA_OPTIONS="$OS_OPTIONS $MATH_OPTIONS $SVG_OPTIONS $GENERIC_XML_OPTIONS $GL_OPTIONS $WX_OPTIONS $TEMPLATES_OPTIONS"
  14723.  
  14724. if test "$with_debug" = "yes" ; then
  14725. AMAYA_OPTIONS="$AMAYA_OPTIONS -DAMAYA_DEBUG"
  14726. fi
  14727.  
  14728. if test "$with_wx" = "yes" ; then
  14729. IMGLIBS=""
  14730. else
  14731. IMGLIBS="-ljpeg -lpng -lz"
  14732. fi
  14733.  
  14734. EXTRA_INCLUDES=
  14735.  
  14736. # check for malloc.h
  14737. # on macosx, this file is not at the right place
  14738. if test "$AMAYAOS" = "MACOSX" ; then
  14739. for ac_dir in \
  14740. /Developer/SDKs/MacOSX10.6.sdk/usr/include/objc/ \
  14741. /Developer/SDKs/MacOSX10.6.sdk/usr/include/sys/ \
  14742. /Developer/SDKs/MacOSX10.5.sdk/usr/include/objc/ \
  14743. /Developer/SDKs/MacOSX10.5.sdk/usr/include/sys/ \
  14744. /Developer/SDKs/MacOSX10.2.8.sdk/usr/include/objc/ \
  14745. /Developer/SDKs/MacOSX10.2.8.sdk/usr/include/sys/ \
  14746. /Developer/SDKs/MacOSX10.3.0.sdk/usr/include/objc/ \
  14747. /Developer/SDKs/MacOSX10.3.0.sdk/usr/include/sys/ \
  14748. /Developer/SDKs/MacOSX10.4u.sdk/usr/include/objc/ \
  14749. /Developer/SDKs/MacOSX10.4u.sdk/usr/include/sys/ \
  14750. /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/objc/ \
  14751. /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/sys/ \
  14752. ; \
  14753. do
  14754. if test -r "$ac_dir/malloc.h"; then
  14755. echo "found malloc.h"
  14756. EXTRA_INCLUDES="${EXTRA_INCLUDES} -I$ac_dir"
  14757. break
  14758. fi
  14759. done
  14760. else # "$AMAYAOS" = "MACOSX"
  14761. for ac_dir in \
  14762. /usr/include/malloc/ \
  14763. /sw/include/malloc/ \
  14764. ; \
  14765. do
  14766. if test -r "$ac_dir/malloc.h"; then
  14767. echo "found malloc.h"
  14768. EXTRA_INCLUDES="${EXTRA_INCLUDES} -I$ac_dir"
  14769. break
  14770. fi
  14771. done
  14772. fi # "$AMAYAOS" = "MACOSX"
  14773.  
  14774.  
  14775. API="\$(THOTDIR)/thotlib/include"
  14776. VAR="\$(THOTDIR)/thotlib/internals/var"
  14777. INCL="\$(THOTDIR)/thotlib/internals/h"
  14778. FUNC="\$(THOTDIR)/thotlib/internals/f"
  14779.  
  14780.  
  14781. THOTINCLUDES="-I${API} -I${VAR} -I${INCL} -I${FUNC} ${JPEGINCL} ${PNGINCL}"
  14782. APIINCLUDES=-I${API}
  14783.  
  14784. if test "${VPATHOPT}" = "" ; then
  14785. VPATHOPT="VPATH"
  14786. fi
  14787.  
  14788. AMAYA_INSTALLDIR="Amaya"
  14789.  
  14790.  
  14791.  
  14792.  
  14793.  
  14794.  
  14795.  
  14796.  
  14797.  
  14798.  
  14799.  
  14800.  
  14801.  
  14802.  
  14803.  
  14804.  
  14805.  
  14806.  
  14807.  
  14808.  
  14809.  
  14810.  
  14811. #AC_SUBST(ANNOTLIB_COMPILE_BM)
  14812.  
  14813.  
  14814.  
  14815.  
  14816.  
  14817.  
  14818. www_frag=$srcdir/amaya/Makefile.libwww
  14819.  
  14820.  
  14821. if test "$with_math" = "no" ; then
  14822. math_frag=/dev/null
  14823. else
  14824. math_frag=$srcdir/amaya/Makefile.math
  14825. fi
  14826.  
  14827.  
  14828. if test "$with_svg" = "no" ; then
  14829. svg_frag=/dev/null
  14830. else
  14831. svg_frag=$srcdir/amaya/Makefile.svg
  14832. fi
  14833.  
  14834.  
  14835. if test "$with_annot" = "yes" ; then
  14836. annot_frag=$srcdir/annotlib/Makefile.annot
  14837. else
  14838. annot_frag=/dev/null
  14839. fi
  14840.  
  14841.  
  14842. if test "$with_dav" = "yes" ; then
  14843. dav_frag=$srcdir/davlib/Makefile.dav
  14844. else
  14845. dav_frag=/dev/null
  14846. fi
  14847.  
  14848.  
  14849. if test "$with_templates" = "yes" ; then
  14850. templates_frag=$srcdir/amaya/Makefile.templates
  14851. else
  14852. templates_frag=/dev/null
  14853. fi
  14854.  
  14855.  
  14856.  
  14857. EXTRA_MAKEFILE_IN=
  14858. make_output="Makefile Options.orig:Options.in tools/Makefile \
  14859. tools/mkdep/Makefile \
  14860. tools/cextract-1.7/Makefile thotlib/Makefile \
  14861. thotlib/include/Makefile batch/Makefile \
  14862. script_install:../batch/script_install.in \
  14863. script_install_gnomekde:../batch/script_install_gnomekde.in \
  14864. script_install_macosxbundle:../batch/script_install_macosxbundle.in \
  14865. script_uninstall:../batch/script_uninstall.in"
  14866.  
  14867. if test "$build_amaya" = "yes" ; then
  14868. make_output="$make_output amaya/Makefile"
  14869. EXTRA_MAKEFILE_IN="$srcdir/amaya/Makefile.in \
  14870. $srcdir/amaya/Makefile.libwww"
  14871.  
  14872. if test "$with_annot" = "yes" ; then
  14873. make_output="$make_output annotlib/Makefile"
  14874. EXTRA_MAKEFILE_IN="$srcdir/annotlib/Makefile.in"
  14875. fi
  14876.  
  14877. if test "$with_dav" = "yes" ; then
  14878. make_output="$make_output davlib/Makefile"
  14879. EXTRA_MAKEFILE_IN="$srcdir/davlib/Makefile.in"
  14880. fi
  14881.  
  14882. fi
  14883.  
  14884. if test "$AMAYAOS" != "MACOSX" ; then
  14885. if test ! -d bin ; then
  14886. mkdir -p bin
  14887. fi
  14888. make_output="$make_output bin/amaya:../batch/amaya.in"
  14889. fi
  14890.  
  14891.  
  14892. ac_config_files="$ac_config_files $make_output"
  14893.  
  14894. ac_config_commands="$ac_config_commands default"
  14895.  
  14896. cat >confcache <<\_ACEOF
  14897. # This file is a shell script that caches the results of configure
  14898. # tests run on this system so they can be shared between configure
  14899. # scripts and configure runs, see configure's option --config-cache.
  14900. # It is not useful on other systems. If it contains results you don't
  14901. # want to keep, you may remove or edit it.
  14902. #
  14903. # config.status only pays attention to the cache file if you give it
  14904. # the --recheck option to rerun configure.
  14905. #
  14906. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14907. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14908. # following values.
  14909.  
  14910. _ACEOF
  14911.  
  14912. # The following way of writing the cache mishandles newlines in values,
  14913. # but we know of no workaround that is simple, portable, and efficient.
  14914. # So, we kill variables containing newlines.
  14915. # Ultrix sh set writes to stderr and can't be redirected directly,
  14916. # and sets the high bit in the cache file unless we assign to the vars.
  14917. (
  14918. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14919. eval ac_val=\$$ac_var
  14920. case $ac_val in #(
  14921. *${as_nl}*)
  14922. case $ac_var in #(
  14923. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  14924. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  14925. esac
  14926. case $ac_var in #(
  14927. _ | IFS | as_nl) ;; #(
  14928. *) $as_unset $ac_var ;;
  14929. esac ;;
  14930. esac
  14931. done
  14932.  
  14933. (set) 2>&1 |
  14934. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14935. *${as_nl}ac_space=\ *)
  14936. # `set' does not quote correctly, so add quotes (double-quote
  14937. # substitution turns \\\\ into \\, and sed turns \\ into \).
  14938. sed -n \
  14939. "s/'/'\\\\''/g;
  14940. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14941. ;; #(
  14942. *)
  14943. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14944. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14945. ;;
  14946. esac |
  14947. sort
  14948. ) |
  14949. sed '
  14950. /^ac_cv_env_/b end
  14951. t clear
  14952. :clear
  14953. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14954. t end
  14955. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14956. :end' >>confcache
  14957. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14958. if test -w "$cache_file"; then
  14959. test "x$cache_file" != "x/dev/null" &&
  14960. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  14961. echo "$as_me: updating cache $cache_file" >&6;}
  14962. cat confcache >$cache_file
  14963. else
  14964. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  14965. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14966. fi
  14967. fi
  14968. rm -f confcache
  14969.  
  14970. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14971. # Let make expand exec_prefix.
  14972. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14973.  
  14974. DEFS=-DHAVE_CONFIG_H
  14975.  
  14976. ac_libobjs=
  14977. ac_ltlibobjs=
  14978. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14979. # 1. Remove the extension, and $U if already installed.
  14980. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14981. ac_i=`echo "$ac_i" | sed "$ac_script"`
  14982. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14983. # will be set to the directory where LIBOBJS objects are built.
  14984. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14985. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  14986. done
  14987. LIBOBJS=$ac_libobjs
  14988.  
  14989. LTLIBOBJS=$ac_ltlibobjs
  14990.  
  14991.  
  14992.  
  14993. : ${CONFIG_STATUS=./config.status}
  14994. ac_clean_files_save=$ac_clean_files
  14995. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14996. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  14997. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14998. cat >$CONFIG_STATUS <<_ACEOF
  14999. #! $SHELL
  15000. # Generated by $as_me.
  15001. # Run this file to recreate the current configuration.
  15002. # Compiler output produced by configure, useful for debugging
  15003. # configure, is in config.log if it exists.
  15004.  
  15005. debug=false
  15006. ac_cs_recheck=false
  15007. ac_cs_silent=false
  15008. SHELL=\${CONFIG_SHELL-$SHELL}
  15009. _ACEOF
  15010.  
  15011. cat >>$CONFIG_STATUS <<\_ACEOF
  15012. ## --------------------- ##
  15013. ## M4sh Initialization. ##
  15014. ## --------------------- ##
  15015.  
  15016. # Be more Bourne compatible
  15017. DUALCASE=1; export DUALCASE # for MKS sh
  15018. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15019. emulate sh
  15020. NULLCMD=:
  15021. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  15022. # is contrary to our usage. Disable this feature.
  15023. alias -g '${1+"$@"}'='"$@"'
  15024. setopt NO_GLOB_SUBST
  15025. else
  15026. case `(set -o) 2>/dev/null` in
  15027. *posix*) set -o posix ;;
  15028. esac
  15029.  
  15030. fi
  15031.  
  15032.  
  15033.  
  15034.  
  15035. # PATH needs CR
  15036. # Avoid depending upon Character Ranges.
  15037. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15038. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15039. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15040. as_cr_digits='0123456789'
  15041. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15042.  
  15043. # The user is always right.
  15044. if test "${PATH_SEPARATOR+set}" != set; then
  15045. echo "#! /bin/sh" >conf$$.sh
  15046. echo "exit 0" >>conf$$.sh
  15047. chmod +x conf$$.sh
  15048. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  15049. PATH_SEPARATOR=';'
  15050. else
  15051. PATH_SEPARATOR=:
  15052. fi
  15053. rm -f conf$$.sh
  15054. fi
  15055.  
  15056. # Support unset when possible.
  15057. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  15058. as_unset=unset
  15059. else
  15060. as_unset=false
  15061. fi
  15062.  
  15063.  
  15064. # IFS
  15065. # We need space, tab and new line, in precisely that order. Quoting is
  15066. # there to prevent editors from complaining about space-tab.
  15067. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15068. # splitting by setting IFS to empty value.)
  15069. as_nl='
  15070. '
  15071. IFS=" "" $as_nl"
  15072.  
  15073. # Find who we are. Look in the path if we contain no directory separator.
  15074. case $0 in
  15075. *[\\/]* ) as_myself=$0 ;;
  15076. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15077. for as_dir in $PATH
  15078. do
  15079. IFS=$as_save_IFS
  15080. test -z "$as_dir" && as_dir=.
  15081. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15082. done
  15083. IFS=$as_save_IFS
  15084.  
  15085. ;;
  15086. esac
  15087. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15088. # in which case we are not to be found in the path.
  15089. if test "x$as_myself" = x; then
  15090. as_myself=$0
  15091. fi
  15092. if test ! -f "$as_myself"; then
  15093. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15094. { (exit 1); exit 1; }
  15095. fi
  15096.  
  15097. # Work around bugs in pre-3.0 UWIN ksh.
  15098. for as_var in ENV MAIL MAILPATH
  15099. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15100. done
  15101. PS1='$ '
  15102. PS2='> '
  15103. PS4='+ '
  15104.  
  15105. # NLS nuisances.
  15106. for as_var in \
  15107. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  15108. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  15109. LC_TELEPHONE LC_TIME
  15110. do
  15111. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  15112. eval $as_var=C; export $as_var
  15113. else
  15114. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15115. fi
  15116. done
  15117.  
  15118. # Required to use basename.
  15119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15121. as_expr=expr
  15122. else
  15123. as_expr=false
  15124. fi
  15125.  
  15126. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15127. as_basename=basename
  15128. else
  15129. as_basename=false
  15130. fi
  15131.  
  15132.  
  15133. # Name of the executable.
  15134. as_me=`$as_basename -- "$0" ||
  15135. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15136. X"$0" : 'X\(//\)$' \| \
  15137. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15138. echo X/"$0" |
  15139. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15140. s//\1/
  15141. q
  15142. }
  15143. /^X\/\(\/\/\)$/{
  15144. s//\1/
  15145. q
  15146. }
  15147. /^X\/\(\/\).*/{
  15148. s//\1/
  15149. q
  15150. }
  15151. s/.*/./; q'`
  15152.  
  15153. # CDPATH.
  15154. $as_unset CDPATH
  15155.  
  15156.  
  15157.  
  15158. as_lineno_1=$LINENO
  15159. as_lineno_2=$LINENO
  15160. test "x$as_lineno_1" != "x$as_lineno_2" &&
  15161. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  15162.  
  15163. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  15164. # uniformly replaced by the line number. The first 'sed' inserts a
  15165. # line-number line after each line using $LINENO; the second 'sed'
  15166. # does the real work. The second script uses 'N' to pair each
  15167. # line-number line with the line containing $LINENO, and appends
  15168. # trailing '-' during substitution so that $LINENO is not a special
  15169. # case at line end.
  15170. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  15171. # scripts with optimization help from Paolo Bonzini. Blame Lee
  15172. # E. McMahon (1931-1989) for sed's syntax. :-)
  15173. sed -n '
  15174. p
  15175. /[$]LINENO/=
  15176. ' <$as_myself |
  15177. sed '
  15178. s/[$]LINENO.*/&-/
  15179. t lineno
  15180. b
  15181. :lineno
  15182. N
  15183. :loop
  15184. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  15185. t loop
  15186. s/-\n.*//
  15187. ' >$as_me.lineno &&
  15188. chmod +x "$as_me.lineno" ||
  15189. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  15190. { (exit 1); exit 1; }; }
  15191.  
  15192. # Don't try to exec as it changes $[0], causing all sort of problems
  15193. # (the dirname of $[0] is not the place where we might find the
  15194. # original and so on. Autoconf is especially sensitive to this).
  15195. . "./$as_me.lineno"
  15196. # Exit status is that of the last command.
  15197. exit
  15198. }
  15199.  
  15200.  
  15201. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15202. as_dirname=dirname
  15203. else
  15204. as_dirname=false
  15205. fi
  15206.  
  15207. ECHO_C= ECHO_N= ECHO_T=
  15208. case `echo -n x` in
  15209. -n*)
  15210. case `echo 'x\c'` in
  15211. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15212. *) ECHO_C='\c';;
  15213. esac;;
  15214. *)
  15215. ECHO_N='-n';;
  15216. esac
  15217.  
  15218. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15219. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15220. as_expr=expr
  15221. else
  15222. as_expr=false
  15223. fi
  15224.  
  15225. rm -f conf$$ conf$$.exe conf$$.file
  15226. if test -d conf$$.dir; then
  15227. rm -f conf$$.dir/conf$$.file
  15228. else
  15229. rm -f conf$$.dir
  15230. mkdir conf$$.dir
  15231. fi
  15232. echo >conf$$.file
  15233. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15234. as_ln_s='ln -s'
  15235. # ... but there are two gotchas:
  15236. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15237. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15238. # In both cases, we have to default to `cp -p'.
  15239. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15240. as_ln_s='cp -p'
  15241. elif ln conf$$.file conf$$ 2>/dev/null; then
  15242. as_ln_s=ln
  15243. else
  15244. as_ln_s='cp -p'
  15245. fi
  15246. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15247. rmdir conf$$.dir 2>/dev/null
  15248.  
  15249. if mkdir -p . 2>/dev/null; then
  15250. as_mkdir_p=:
  15251. else
  15252. test -d ./-p && rmdir ./-p
  15253. as_mkdir_p=false
  15254. fi
  15255.  
  15256. if test -x / >/dev/null 2>&1; then
  15257. as_test_x='test -x'
  15258. else
  15259. if ls -dL / >/dev/null 2>&1; then
  15260. as_ls_L_option=L
  15261. else
  15262. as_ls_L_option=
  15263. fi
  15264. as_test_x='
  15265. eval sh -c '\''
  15266. if test -d "$1"; then
  15267. test -d "$1/.";
  15268. else
  15269. case $1 in
  15270. -*)set "./$1";;
  15271. esac;
  15272. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  15273. ???[sx]*):;;*)false;;esac;fi
  15274. '\'' sh
  15275. '
  15276. fi
  15277. as_executable_p=$as_test_x
  15278.  
  15279. # Sed expression to map a string onto a valid CPP name.
  15280. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15281.  
  15282. # Sed expression to map a string onto a valid variable name.
  15283. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15284.  
  15285.  
  15286. exec 6>&1
  15287.  
  15288. # Save the log message, to keep $[0] and so on meaningful, and to
  15289. # report actual input values of CONFIG_FILES etc. instead of their
  15290. # values after options handling.
  15291. ac_log="
  15292. This file was extended by $as_me, which was
  15293. generated by GNU Autoconf 2.61. Invocation command line was
  15294.  
  15295. CONFIG_FILES = $CONFIG_FILES
  15296. CONFIG_HEADERS = $CONFIG_HEADERS
  15297. CONFIG_LINKS = $CONFIG_LINKS
  15298. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15299. $ $0 $@
  15300.  
  15301. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15302. "
  15303.  
  15304. _ACEOF
  15305.  
  15306. cat >>$CONFIG_STATUS <<_ACEOF
  15307. # Files that config.status was made for.
  15308. config_files="$ac_config_files"
  15309. config_headers="$ac_config_headers"
  15310. config_commands="$ac_config_commands"
  15311.  
  15312. _ACEOF
  15313.  
  15314. cat >>$CONFIG_STATUS <<\_ACEOF
  15315. ac_cs_usage="\
  15316. \`$as_me' instantiates files from templates according to the
  15317. current configuration.
  15318.  
  15319. Usage: $0 [OPTIONS] [FILE]...
  15320.  
  15321. -h, --help print this help, then exit
  15322. -V, --version print version number and configuration settings, then exit
  15323. -q, --quiet do not print progress messages
  15324. -d, --debug don't remove temporary files
  15325. --recheck update $as_me by reconfiguring in the same conditions
  15326. --file=FILE[:TEMPLATE]
  15327. instantiate the configuration file FILE
  15328. --header=FILE[:TEMPLATE]
  15329. instantiate the configuration header FILE
  15330.  
  15331. Configuration files:
  15332. $config_files
  15333.  
  15334. Configuration headers:
  15335. $config_headers
  15336.  
  15337. Configuration commands:
  15338. $config_commands
  15339.  
  15340. Report bugs to <bug-autoconf@gnu.org>."
  15341.  
  15342. _ACEOF
  15343. cat >>$CONFIG_STATUS <<_ACEOF
  15344. ac_cs_version="\\
  15345. config.status
  15346. configured by $0, generated by GNU Autoconf 2.61,
  15347. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  15348.  
  15349. Copyright (C) 2006 Free Software Foundation, Inc.
  15350. This config.status script is free software; the Free Software Foundation
  15351. gives unlimited permission to copy, distribute and modify it."
  15352.  
  15353. ac_pwd='$ac_pwd'
  15354. srcdir='$srcdir'
  15355. INSTALL='$INSTALL'
  15356. _ACEOF
  15357.  
  15358. cat >>$CONFIG_STATUS <<\_ACEOF
  15359. # If no file are specified by the user, then we need to provide default
  15360. # value. By we need to know if files were specified by the user.
  15361. ac_need_defaults=:
  15362. while test $# != 0
  15363. do
  15364. case $1 in
  15365. --*=*)
  15366. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15367. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15368. ac_shift=:
  15369. ;;
  15370. *)
  15371. ac_option=$1
  15372. ac_optarg=$2
  15373. ac_shift=shift
  15374. ;;
  15375. esac
  15376.  
  15377. case $ac_option in
  15378. # Handling of the options.
  15379. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15380. ac_cs_recheck=: ;;
  15381. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15382. echo "$ac_cs_version"; exit ;;
  15383. --debug | --debu | --deb | --de | --d | -d )
  15384. debug=: ;;
  15385. --file | --fil | --fi | --f )
  15386. $ac_shift
  15387. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  15388. ac_need_defaults=false;;
  15389. --header | --heade | --head | --hea )
  15390. $ac_shift
  15391. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  15392. ac_need_defaults=false;;
  15393. --he | --h)
  15394. # Conflict between --help and --header
  15395. { echo "$as_me: error: ambiguous option: $1
  15396. Try \`$0 --help' for more information." >&2
  15397. { (exit 1); exit 1; }; };;
  15398. --help | --hel | -h )
  15399. echo "$ac_cs_usage"; exit ;;
  15400. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15401. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15402. ac_cs_silent=: ;;
  15403.  
  15404. # This is an error.
  15405. -*) { echo "$as_me: error: unrecognized option: $1
  15406. Try \`$0 --help' for more information." >&2
  15407. { (exit 1); exit 1; }; } ;;
  15408.  
  15409. *) ac_config_targets="$ac_config_targets $1"
  15410. ac_need_defaults=false ;;
  15411.  
  15412. esac
  15413. shift
  15414. done
  15415.  
  15416. ac_configure_extra_args=
  15417.  
  15418. if $ac_cs_silent; then
  15419. exec 6>/dev/null
  15420. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15421. fi
  15422.  
  15423. _ACEOF
  15424. cat >>$CONFIG_STATUS <<_ACEOF
  15425. if \$ac_cs_recheck; then
  15426. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  15427. CONFIG_SHELL=$SHELL
  15428. export CONFIG_SHELL
  15429. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15430. fi
  15431.  
  15432. _ACEOF
  15433. cat >>$CONFIG_STATUS <<\_ACEOF
  15434. exec 5>>config.log
  15435. {
  15436. echo
  15437. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15438. ## Running $as_me. ##
  15439. _ASBOX
  15440. echo "$ac_log"
  15441. } >&5
  15442.  
  15443. _ACEOF
  15444. cat >>$CONFIG_STATUS <<_ACEOF
  15445. _ACEOF
  15446.  
  15447. cat >>$CONFIG_STATUS <<\_ACEOF
  15448.  
  15449. # Handling of arguments.
  15450. for ac_config_target in $ac_config_targets
  15451. do
  15452. case $ac_config_target in
  15453. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15454. "$make_output") CONFIG_FILES="$CONFIG_FILES $make_output" ;;
  15455. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  15456.  
  15457. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  15458. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  15459. { (exit 1); exit 1; }; };;
  15460. esac
  15461. done
  15462.  
  15463.  
  15464. # If the user did not use the arguments to specify the items to instantiate,
  15465. # then the envvar interface is used. Set only those that are not.
  15466. # We use the long form for the default assignment because of an extremely
  15467. # bizarre bug on SunOS 4.1.3.
  15468. if $ac_need_defaults; then
  15469. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15470. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15471. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15472. fi
  15473.  
  15474. # Have a temporary directory for convenience. Make it in the build tree
  15475. # simply because there is no reason against having it here, and in addition,
  15476. # creating and moving files from /tmp can sometimes cause problems.
  15477. # Hook for its removal unless debugging.
  15478. # Note that there is a small window in which the directory will not be cleaned:
  15479. # after its creation but before its name has been assigned to `$tmp'.
  15480. $debug ||
  15481. {
  15482. tmp=
  15483. trap 'exit_status=$?
  15484. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  15485. ' 0
  15486. trap '{ (exit 1); exit 1; }' 1 2 13 15
  15487. }
  15488. # Create a (secure) tmp directory for tmp files.
  15489.  
  15490. {
  15491. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15492. test -n "$tmp" && test -d "$tmp"
  15493. } ||
  15494. {
  15495. tmp=./conf$$-$RANDOM
  15496. (umask 077 && mkdir "$tmp")
  15497. } ||
  15498. {
  15499. echo "$me: cannot create a temporary directory in ." >&2
  15500. { (exit 1); exit 1; }
  15501. }
  15502.  
  15503. #
  15504. # Set up the sed scripts for CONFIG_FILES section.
  15505. #
  15506.  
  15507. # No need to generate the scripts if there are no CONFIG_FILES.
  15508. # This happens for instance when ./config.status config.h
  15509. if test -n "$CONFIG_FILES"; then
  15510.  
  15511. _ACEOF
  15512.  
  15513. # Create sed commands to just substitute file output variables.
  15514.  
  15515. # Remaining file output variables are in a fragment that also has non-file
  15516. # output varibles.
  15517.  
  15518.  
  15519.  
  15520. ac_delim='%!_!# '
  15521. for ac_last_try in false false false false false :; do
  15522. cat >conf$$subs.sed <<_ACEOF
  15523. SHELL!$SHELL$ac_delim
  15524. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  15525. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  15526. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  15527. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  15528. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  15529. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  15530. exec_prefix!$exec_prefix$ac_delim
  15531. prefix!$prefix$ac_delim
  15532. program_transform_name!$program_transform_name$ac_delim
  15533. bindir!$bindir$ac_delim
  15534. sbindir!$sbindir$ac_delim
  15535. libexecdir!$libexecdir$ac_delim
  15536. datarootdir!$datarootdir$ac_delim
  15537. datadir!$datadir$ac_delim
  15538. sysconfdir!$sysconfdir$ac_delim
  15539. sharedstatedir!$sharedstatedir$ac_delim
  15540. localstatedir!$localstatedir$ac_delim
  15541. includedir!$includedir$ac_delim
  15542. oldincludedir!$oldincludedir$ac_delim
  15543. docdir!$docdir$ac_delim
  15544. infodir!$infodir$ac_delim
  15545. htmldir!$htmldir$ac_delim
  15546. dvidir!$dvidir$ac_delim
  15547. pdfdir!$pdfdir$ac_delim
  15548. psdir!$psdir$ac_delim
  15549. libdir!$libdir$ac_delim
  15550. localedir!$localedir$ac_delim
  15551. mandir!$mandir$ac_delim
  15552. DEFS!$DEFS$ac_delim
  15553. ECHO_C!$ECHO_C$ac_delim
  15554. ECHO_N!$ECHO_N$ac_delim
  15555. ECHO_T!$ECHO_T$ac_delim
  15556. LIBS!$LIBS$ac_delim
  15557. build_alias!$build_alias$ac_delim
  15558. host_alias!$host_alias$ac_delim
  15559. target_alias!$target_alias$ac_delim
  15560. build!$build$ac_delim
  15561. build_cpu!$build_cpu$ac_delim
  15562. build_vendor!$build_vendor$ac_delim
  15563. build_os!$build_os$ac_delim
  15564. host!$host$ac_delim
  15565. host_cpu!$host_cpu$ac_delim
  15566. host_vendor!$host_vendor$ac_delim
  15567. host_os!$host_os$ac_delim
  15568. target!$target$ac_delim
  15569. target_cpu!$target_cpu$ac_delim
  15570. target_vendor!$target_vendor$ac_delim
  15571. target_os!$target_os$ac_delim
  15572. SET_MAKE!$SET_MAKE$ac_delim
  15573. YACC!$YACC$ac_delim
  15574. YFLAGS!$YFLAGS$ac_delim
  15575. CC!$CC$ac_delim
  15576. CFLAGS!$CFLAGS$ac_delim
  15577. LDFLAGS!$LDFLAGS$ac_delim
  15578. CPPFLAGS!$CPPFLAGS$ac_delim
  15579. ac_ct_CC!$ac_ct_CC$ac_delim
  15580. EXEEXT!$EXEEXT$ac_delim
  15581. OBJEXT!$OBJEXT$ac_delim
  15582. CPP!$CPP$ac_delim
  15583. CXX!$CXX$ac_delim
  15584. CXXFLAGS!$CXXFLAGS$ac_delim
  15585. ac_ct_CXX!$ac_ct_CXX$ac_delim
  15586. LEX!$LEX$ac_delim
  15587. LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
  15588. LEXLIB!$LEXLIB$ac_delim
  15589. AWK!$AWK$ac_delim
  15590. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  15591. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  15592. INSTALL_DATA!$INSTALL_DATA$ac_delim
  15593. LN_S!$LN_S$ac_delim
  15594. RANLIB!$RANLIB$ac_delim
  15595. CP!$CP$ac_delim
  15596. MV!$MV$ac_delim
  15597. RM!$RM$ac_delim
  15598. MKDIR!$MKDIR$ac_delim
  15599. ECHO!$ECHO$ac_delim
  15600. CAT!$CAT$ac_delim
  15601. CHMOD!$CHMOD$ac_delim
  15602. _ACEOF
  15603.  
  15604. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
  15605. break
  15606. elif $ac_last_try; then
  15607. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  15608. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  15609. { (exit 1); exit 1; }; }
  15610. else
  15611. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15612. fi
  15613. done
  15614.  
  15615. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  15616. if test -n "$ac_eof"; then
  15617. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  15618. ac_eof=`expr $ac_eof + 1`
  15619. fi
  15620.  
  15621. cat >>$CONFIG_STATUS <<_ACEOF
  15622. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  15623. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15624. /^[ ]*@www_frag@[ ]*$/{
  15625. r $www_frag
  15626. d
  15627. }
  15628. /^[ ]*@math_frag@[ ]*$/{
  15629. r $math_frag
  15630. d
  15631. }
  15632. /^[ ]*@svg_frag@[ ]*$/{
  15633. r $svg_frag
  15634. d
  15635. }
  15636. /^[ ]*@annot_frag@[ ]*$/{
  15637. r $annot_frag
  15638. d
  15639. }
  15640. /^[ ]*@dav_frag@[ ]*$/{
  15641. r $dav_frag
  15642. d
  15643. }
  15644. /^[ ]*@templates_frag@[ ]*$/{
  15645. r $templates_frag
  15646. d
  15647. }
  15648. _ACEOF
  15649. sed '
  15650. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  15651. s/^/s,@/; s/!/@,|#_!!_#|/
  15652. :n
  15653. t n
  15654. s/'"$ac_delim"'$/,g/; t
  15655. s/$/\\/; p
  15656. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  15657. ' >>$CONFIG_STATUS <conf$$subs.sed
  15658. rm -f conf$$subs.sed
  15659. cat >>$CONFIG_STATUS <<_ACEOF
  15660. CEOF$ac_eof
  15661. _ACEOF
  15662.  
  15663.  
  15664. ac_delim='%!_!# '
  15665. for ac_last_try in false false false false false :; do
  15666. cat >conf$$subs.sed <<_ACEOF
  15667. SED!$SED$ac_delim
  15668. AR!$AR$ac_delim
  15669. DIFF!$DIFF$ac_delim
  15670. GREP!$GREP$ac_delim
  15671. EGREP!$EGREP$ac_delim
  15672. ALLOCA!$ALLOCA$ac_delim
  15673. LIBOBJS!$LIBOBJS$ac_delim
  15674. AMAYAOS!$AMAYAOS$ac_delim
  15675. AMAYAGUI!$AMAYAGUI$ac_delim
  15676. GL_BUILDDIR!$GL_BUILDDIR$ac_delim
  15677. GL_INCLUDES!$GL_INCLUDES$ac_delim
  15678. GL_LIBRARIES!$GL_LIBRARIES$ac_delim
  15679. WXCONFIG!$WXCONFIG$ac_delim
  15680. WX_SRCDIR!$WX_SRCDIR$ac_delim
  15681. WX_BUILDDIR!$WX_BUILDDIR$ac_delim
  15682. BUILDWXWIDGETS!$BUILDWXWIDGETS$ac_delim
  15683. WX_INCLUDES!$WX_INCLUDES$ac_delim
  15684. WX_LIBRARIES!$WX_LIBRARIES$ac_delim
  15685. WX_LINKDEPS!$WX_LINKDEPS$ac_delim
  15686. FREETYPE_INCLUDES!$FREETYPE_INCLUDES$ac_delim
  15687. FREETYPE_LIBRARIES!$FREETYPE_LIBRARIES$ac_delim
  15688. LIBWWW_CONFIG!$LIBWWW_CONFIG$ac_delim
  15689. BUILDLIBWWW!$BUILDLIBWWW$ac_delim
  15690. LIBWWW_CFLAGS!$LIBWWW_CFLAGS$ac_delim
  15691. LIBWWW_LDFLAGS!$LIBWWW_LDFLAGS$ac_delim
  15692. DAVDIR!$DAVDIR$ac_delim
  15693. LIBDAV!$LIBDAV$ac_delim
  15694. WWWDAV!$WWWDAV$ac_delim
  15695. RAPTOR_CONFIG!$RAPTOR_CONFIG$ac_delim
  15696. BUILDRAPTOR!$BUILDRAPTOR$ac_delim
  15697. AMAYA_ANNOT_OPTIONS!$AMAYA_ANNOT_OPTIONS$ac_delim
  15698. AMAYA_ANNOT_INCLUDES!$AMAYA_ANNOT_INCLUDES$ac_delim
  15699. AMAYA_ANNOT_EXTRA_LIBS!$AMAYA_ANNOT_EXTRA_LIBS$ac_delim
  15700. ANNOTLIB_COMPILE_BM!$ANNOTLIB_COMPILE_BM$ac_delim
  15701. AMAYA_RAPTOR_LIBS!$AMAYA_RAPTOR_LIBS$ac_delim
  15702. AMAYA_RAPTOR_INCLUDES!$AMAYA_RAPTOR_INCLUDES$ac_delim
  15703. AMAYA_INSTALLDIR!$AMAYA_INSTALLDIR$ac_delim
  15704. APP_MAJVER!$APP_MAJVER$ac_delim
  15705. APP_MINVER!$APP_MINVER$ac_delim
  15706. APP_SUBVER!$APP_SUBVER$ac_delim
  15707. APP_VER!$APP_VER$ac_delim
  15708. CEXTRACT_VER!$CEXTRACT_VER$ac_delim
  15709. CEXTRACT_FLAGS!$CEXTRACT_FLAGS$ac_delim
  15710. THOTINCLUDES!$THOTINCLUDES$ac_delim
  15711. APIINCLUDES!$APIINCLUDES$ac_delim
  15712. VPATHOPT!$VPATHOPT$ac_delim
  15713. THOT_OPTIONS!$THOT_OPTIONS$ac_delim
  15714. AMAYA_OPTIONS!$AMAYA_OPTIONS$ac_delim
  15715. IMGLIBS!$IMGLIBS$ac_delim
  15716. EXTRA_INCLUDES!$EXTRA_INCLUDES$ac_delim
  15717. MAKE_LIBWWW_RDF_PARSER!$MAKE_LIBWWW_RDF_PARSER$ac_delim
  15718. LIBWWW_RDF_PARSER!$LIBWWW_RDF_PARSER$ac_delim
  15719. SUBDIRS!$SUBDIRS$ac_delim
  15720. EXTRA_MAKEFILE_IN!$EXTRA_MAKEFILE_IN$ac_delim
  15721. LTLIBOBJS!$LTLIBOBJS$ac_delim
  15722. _ACEOF
  15723.  
  15724. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
  15725. break
  15726. elif $ac_last_try; then
  15727. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  15728. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  15729. { (exit 1); exit 1; }; }
  15730. else
  15731. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15732. fi
  15733. done
  15734.  
  15735. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  15736. if test -n "$ac_eof"; then
  15737. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  15738. ac_eof=`expr $ac_eof + 1`
  15739. fi
  15740.  
  15741. cat >>$CONFIG_STATUS <<_ACEOF
  15742. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  15743. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  15744. _ACEOF
  15745. sed '
  15746. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  15747. s/^/s,@/; s/!/@,|#_!!_#|/
  15748. :n
  15749. t n
  15750. s/'"$ac_delim"'$/,g/; t
  15751. s/$/\\/; p
  15752. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  15753. ' >>$CONFIG_STATUS <conf$$subs.sed
  15754. rm -f conf$$subs.sed
  15755. cat >>$CONFIG_STATUS <<_ACEOF
  15756. :end
  15757. s/|#_!!_#|//g
  15758. CEOF$ac_eof
  15759. _ACEOF
  15760.  
  15761.  
  15762. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  15763. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  15764. # trailing colons and then remove the whole line if VPATH becomes empty
  15765. # (actually we leave an empty line to preserve line numbers).
  15766. if test "x$srcdir" = x.; then
  15767. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  15768. s/:*\$(srcdir):*/:/
  15769. s/:*\${srcdir}:*/:/
  15770. s/:*@srcdir@:*/:/
  15771. s/^\([^=]*=[ ]*\):*/\1/
  15772. s/:*$//
  15773. s/^[^=]*=[ ]*$//
  15774. }'
  15775. fi
  15776.  
  15777. cat >>$CONFIG_STATUS <<\_ACEOF
  15778. fi # test -n "$CONFIG_FILES"
  15779.  
  15780.  
  15781. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  15782. do
  15783. case $ac_tag in
  15784. :[FHLC]) ac_mode=$ac_tag; continue;;
  15785. esac
  15786. case $ac_mode$ac_tag in
  15787. :[FHL]*:*);;
  15788. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  15789. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  15790. { (exit 1); exit 1; }; };;
  15791. :[FH]-) ac_tag=-:-;;
  15792. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15793. esac
  15794. ac_save_IFS=$IFS
  15795. IFS=:
  15796. set x $ac_tag
  15797. IFS=$ac_save_IFS
  15798. shift
  15799. ac_file=$1
  15800. shift
  15801.  
  15802. case $ac_mode in
  15803. :L) ac_source=$1;;
  15804. :[FH])
  15805. ac_file_inputs=
  15806. for ac_f
  15807. do
  15808. case $ac_f in
  15809. -) ac_f="$tmp/stdin";;
  15810. *) # Look for the file first in the build tree, then in the source tree
  15811. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15812. # because $ac_f cannot contain `:'.
  15813. test -f "$ac_f" ||
  15814. case $ac_f in
  15815. [\\/$]*) false;;
  15816. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15817. esac ||
  15818. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  15819. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  15820. { (exit 1); exit 1; }; };;
  15821. esac
  15822. ac_file_inputs="$ac_file_inputs $ac_f"
  15823. done
  15824.  
  15825. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15826. # use $as_me), people would be surprised to read:
  15827. # /* config.h. Generated by config.status. */
  15828. configure_input="Generated from "`IFS=:
  15829. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  15830. if test x"$ac_file" != x-; then
  15831. configure_input="$ac_file. $configure_input"
  15832. { echo "$as_me:$LINENO: creating $ac_file" >&5
  15833. echo "$as_me: creating $ac_file" >&6;}
  15834. fi
  15835.  
  15836. case $ac_tag in
  15837. *:-:* | *:-) cat >"$tmp/stdin";;
  15838. esac
  15839. ;;
  15840. esac
  15841.  
  15842. ac_dir=`$as_dirname -- "$ac_file" ||
  15843. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15844. X"$ac_file" : 'X\(//\)[^/]' \| \
  15845. X"$ac_file" : 'X\(//\)$' \| \
  15846. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15847. echo X"$ac_file" |
  15848. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15849. s//\1/
  15850. q
  15851. }
  15852. /^X\(\/\/\)[^/].*/{
  15853. s//\1/
  15854. q
  15855. }
  15856. /^X\(\/\/\)$/{
  15857. s//\1/
  15858. q
  15859. }
  15860. /^X\(\/\).*/{
  15861. s//\1/
  15862. q
  15863. }
  15864. s/.*/./; q'`
  15865. { as_dir="$ac_dir"
  15866. case $as_dir in #(
  15867. -*) as_dir=./$as_dir;;
  15868. esac
  15869. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  15870. as_dirs=
  15871. while :; do
  15872. case $as_dir in #(
  15873. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  15874. *) as_qdir=$as_dir;;
  15875. esac
  15876. as_dirs="'$as_qdir' $as_dirs"
  15877. as_dir=`$as_dirname -- "$as_dir" ||
  15878. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15879. X"$as_dir" : 'X\(//\)[^/]' \| \
  15880. X"$as_dir" : 'X\(//\)$' \| \
  15881. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15882. echo X"$as_dir" |
  15883. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15884. s//\1/
  15885. q
  15886. }
  15887. /^X\(\/\/\)[^/].*/{
  15888. s//\1/
  15889. q
  15890. }
  15891. /^X\(\/\/\)$/{
  15892. s//\1/
  15893. q
  15894. }
  15895. /^X\(\/\).*/{
  15896. s//\1/
  15897. q
  15898. }
  15899. s/.*/./; q'`
  15900. test -d "$as_dir" && break
  15901. done
  15902. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15903. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  15904. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  15905. { (exit 1); exit 1; }; }; }
  15906. ac_builddir=.
  15907.  
  15908. case "$ac_dir" in
  15909. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15910. *)
  15911. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  15912. # A ".." for each directory in $ac_dir_suffix.
  15913. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  15914. case $ac_top_builddir_sub in
  15915. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15916. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15917. esac ;;
  15918. esac
  15919. ac_abs_top_builddir=$ac_pwd
  15920. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15921. # for backward compatibility:
  15922. ac_top_builddir=$ac_top_build_prefix
  15923.  
  15924. case $srcdir in
  15925. .) # We are building in place.
  15926. ac_srcdir=.
  15927. ac_top_srcdir=$ac_top_builddir_sub
  15928. ac_abs_top_srcdir=$ac_pwd ;;
  15929. [\\/]* | ?:[\\/]* ) # Absolute name.
  15930. ac_srcdir=$srcdir$ac_dir_suffix;
  15931. ac_top_srcdir=$srcdir
  15932. ac_abs_top_srcdir=$srcdir ;;
  15933. *) # Relative name.
  15934. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15935. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15936. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15937. esac
  15938. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15939.  
  15940.  
  15941. case $ac_mode in
  15942. :F)
  15943. #
  15944. # CONFIG_FILE
  15945. #
  15946.  
  15947. case $INSTALL in
  15948. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15949. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15950. esac
  15951. _ACEOF
  15952.  
  15953. cat >>$CONFIG_STATUS <<\_ACEOF
  15954. # If the template does not know about datarootdir, expand it.
  15955. # FIXME: This hack should be removed a few years after 2.60.
  15956. ac_datarootdir_hack=; ac_datarootdir_seen=
  15957.  
  15958. case `sed -n '/datarootdir/ {
  15959. p
  15960. q
  15961. }
  15962. /@datadir@/p
  15963. /@docdir@/p
  15964. /@infodir@/p
  15965. /@localedir@/p
  15966. /@mandir@/p
  15967. ' $ac_file_inputs` in
  15968. *datarootdir*) ac_datarootdir_seen=yes;;
  15969. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15970. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15971. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15972. _ACEOF
  15973. cat >>$CONFIG_STATUS <<_ACEOF
  15974. ac_datarootdir_hack='
  15975. s&@datadir@&$datadir&g
  15976. s&@docdir@&$docdir&g
  15977. s&@infodir@&$infodir&g
  15978. s&@localedir@&$localedir&g
  15979. s&@mandir@&$mandir&g
  15980. s&\\\${datarootdir}&$datarootdir&g' ;;
  15981. esac
  15982. _ACEOF
  15983.  
  15984. # Neutralize VPATH when `$srcdir' = `.'.
  15985. # Shell code in configure.ac might set extrasub.
  15986. # FIXME: do we really want to maintain this feature?
  15987. cat >>$CONFIG_STATUS <<_ACEOF
  15988. sed "$ac_vpsub
  15989. $extrasub
  15990. _ACEOF
  15991. cat >>$CONFIG_STATUS <<\_ACEOF
  15992. :t
  15993. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15994. s&@configure_input@&$configure_input&;t t
  15995. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15996. s&@srcdir@&$ac_srcdir&;t t
  15997. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15998. s&@top_srcdir@&$ac_top_srcdir&;t t
  15999. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16000. s&@builddir@&$ac_builddir&;t t
  16001. s&@abs_builddir@&$ac_abs_builddir&;t t
  16002. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16003. s&@INSTALL@&$ac_INSTALL&;t t
  16004. $ac_datarootdir_hack
  16005. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  16006.  
  16007. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16008. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  16009. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  16010. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16011. which seems to be undefined. Please make sure it is defined." >&5
  16012. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16013. which seems to be undefined. Please make sure it is defined." >&2;}
  16014.  
  16015. rm -f "$tmp/stdin"
  16016. case $ac_file in
  16017. -) cat "$tmp/out"; rm -f "$tmp/out";;
  16018. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  16019. esac
  16020. ;;
  16021. :H)
  16022. #
  16023. # CONFIG_HEADER
  16024. #
  16025. _ACEOF
  16026.  
  16027. # Transform confdefs.h into a sed script `conftest.defines', that
  16028. # substitutes the proper values into config.h.in to produce config.h.
  16029. rm -f conftest.defines conftest.tail
  16030. # First, append a space to every undef/define line, to ease matching.
  16031. echo 's/$/ /' >conftest.defines
  16032. # Then, protect against being on the right side of a sed subst, or in
  16033. # an unquoted here document, in config.status. If some macros were
  16034. # called several times there might be several #defines for the same
  16035. # symbol, which is useless. But do not sort them, since the last
  16036. # AC_DEFINE must be honored.
  16037. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16038. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  16039. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  16040. # PARAMS is the parameter list in the macro definition--in most cases, it's
  16041. # just an empty string.
  16042. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  16043. ac_dB='\\)[ (].*,\\1define\\2'
  16044. ac_dC=' '
  16045. ac_dD=' ,'
  16046.  
  16047. uniq confdefs.h |
  16048. sed -n '
  16049. t rset
  16050. :rset
  16051. s/^[ ]*#[ ]*define[ ][ ]*//
  16052. t ok
  16053. d
  16054. :ok
  16055. s/[\\&,]/\\&/g
  16056. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  16057. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  16058. ' >>conftest.defines
  16059.  
  16060. # Remove the space that was appended to ease matching.
  16061. # Then replace #undef with comments. This is necessary, for
  16062. # example, in the case of _POSIX_SOURCE, which is predefined and required
  16063. # on some systems where configure will not decide to define it.
  16064. # (The regexp can be short, since the line contains either #define or #undef.)
  16065. echo 's/ $//
  16066. s,^[ #]*u.*,/* & */,' >>conftest.defines
  16067.  
  16068. # Break up conftest.defines:
  16069. ac_max_sed_lines=50
  16070.  
  16071. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  16072. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  16073. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  16074. # et cetera.
  16075. ac_in='$ac_file_inputs'
  16076. ac_out='"$tmp/out1"'
  16077. ac_nxt='"$tmp/out2"'
  16078.  
  16079. while :
  16080. do
  16081. # Write a here document:
  16082. cat >>$CONFIG_STATUS <<_ACEOF
  16083. # First, check the format of the line:
  16084. cat >"\$tmp/defines.sed" <<\\CEOF
  16085. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  16086. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  16087. b
  16088. :def
  16089. _ACEOF
  16090. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  16091. echo 'CEOF
  16092. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  16093. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  16094. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  16095. grep . conftest.tail >/dev/null || break
  16096. rm -f conftest.defines
  16097. mv conftest.tail conftest.defines
  16098. done
  16099. rm -f conftest.defines conftest.tail
  16100.  
  16101. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  16102. cat >>$CONFIG_STATUS <<\_ACEOF
  16103. if test x"$ac_file" != x-; then
  16104. echo "/* $configure_input */" >"$tmp/config.h"
  16105. cat "$ac_result" >>"$tmp/config.h"
  16106. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  16107. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  16108. echo "$as_me: $ac_file is unchanged" >&6;}
  16109. else
  16110. rm -f $ac_file
  16111. mv "$tmp/config.h" $ac_file
  16112. fi
  16113. else
  16114. echo "/* $configure_input */"
  16115. cat "$ac_result"
  16116. fi
  16117. rm -f "$tmp/out12"
  16118. ;;
  16119.  
  16120. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  16121. echo "$as_me: executing $ac_file commands" >&6;}
  16122. ;;
  16123. esac
  16124.  
  16125.  
  16126. case $ac_file$ac_mode in
  16127. "default":C)
  16128.  
  16129. echo timestamp > stamp-h
  16130.  
  16131. if test -f Options ; then
  16132. oldversion=`grep Version Options`
  16133. newversion=`grep Version Options.orig`
  16134. if test "$oldversion" != "$newversion" ; then
  16135. echo WARNING : Options files have changed, old options saved to Options.old
  16136. cp Options Options.old
  16137. cp Options.orig Options
  16138. exit 1
  16139. fi
  16140. fi
  16141. if test -f script_install ; then
  16142. chmod a+x script_install
  16143. fi
  16144. if test -f script_install_gnomekde ; then
  16145. chmod a+x script_install_gnomekde
  16146. fi
  16147. if test -f script_install_macosxbundle ; then
  16148. chmod a+x script_install_macosxbundle
  16149. fi
  16150. if test -f script_uninstall ; then
  16151. chmod a+x script_uninstall
  16152. fi
  16153. if test -f bin/amaya ; then
  16154. chmod 755 bin/amaya
  16155. echo WARNING : `ls -l bin/amaya`
  16156. fi
  16157. ;;
  16158.  
  16159. esac
  16160. done # for ac_tag
  16161.  
  16162.  
  16163. { (exit 0); exit 0; }
  16164. _ACEOF
  16165. chmod +x $CONFIG_STATUS
  16166. ac_clean_files=$ac_clean_files_save
  16167.  
  16168.  
  16169. # configure is writing to config.log, and then calls config.status.
  16170. # config.status does its own redirection, appending to config.log.
  16171. # Unfortunately, on DOS this fails, as config.log is still kept open
  16172. # by configure, so config.status won't be able to write to it; its
  16173. # output is simply discarded. So we exec the FD to /dev/null,
  16174. # effectively closing config.log, so it can be properly (re)opened and
  16175. # appended to by config.status. When coming back to configure, we
  16176. # need to make the FD available again.
  16177. if test "$no_create" != yes; then
  16178. ac_cs_success=:
  16179. ac_config_status_args=
  16180. test "$silent" = yes &&
  16181. ac_config_status_args="$ac_config_status_args --quiet"
  16182. exec 5>/dev/null
  16183. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16184. exec 5>>config.log
  16185. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16186. # would make configure fail if this is the last instruction.
  16187. $ac_cs_success || { (exit 1); exit 1; }
  16188. fi
  16189.  
  16190.  
  16191. if test "$build_amaya" = "yes" ; then
  16192. echo Amaya $AMAYA_VER configured
  16193. echo Amaya configured with libWWW \(local source\)
  16194. if test "$with_math" = "yes" ; then
  16195. echo Amaya configured with Math support
  16196. fi
  16197. if test "$with_svg" = "yes" ; then
  16198. echo Amaya configured with SVG support
  16199. fi
  16200. if test "$with_annot" = "yes" ; then
  16201. echo Amaya configured with Annotations support
  16202. if test "$with_system_raptor" = "yes" ; then
  16203. echo Amaya configured with the RaptorF library \(system\)
  16204. else
  16205. echo Amaya configured with the Raptor library \(local source\)
  16206. fi
  16207. fi
  16208. if test "$with_templates" = "yes" ; then
  16209. echo Amaya configured with templates support
  16210. fi
  16211. if test "$with_generic_xml" = "yes" ; then
  16212. echo Amaya configured with generic XML support
  16213. fi
  16214. echo Amaya configured with internationalization support
  16215. if test "$with_gl" = "yes" ; then
  16216. echo Amaya configured with OpenGL Canvas Rendering \(System library\) \(experimental\)
  16217. fi
  16218. if test "$with_mesa" = "yes" ; then
  16219. echo Amaya configured with OpenGL Canvas Rendering \(MesaLib\)
  16220. fi
  16221. if test "$with_dav" = "yes" ; then
  16222. echo Amaya configured with WebDAV support
  16223. fi
  16224. fi
  16225.  
  16226. if test "$with_wx" = "yes" ; then
  16227. if test "$with_wxdebug" = "yes" ; then
  16228. echo "Amaya configured with wxWidgets {srcdir=$WX_SRCDIR} (debug)"
  16229. else
  16230. echo "Amaya configured with wxWidgets {srcdir=$WX_SRCDIR}"
  16231. fi
  16232. fi
  16233.  
  16234.  
  16235. echo ""
  16236. echo "Now type \"make\" (GNU make preferably) to build the binaries"
  16237. echo ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement