PageRenderTime 120ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 3ms

/udunits-1.12.11/src/configure

#
Shell | 13696 lines | 12218 code | 822 blank | 656 comment | 843 complexity | cbd339de2af544b5bc403b3fe5ee2a31 MD5 | raw file
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. exec 7<&0 </dev/null 6>&1
  474. # Name of the host.
  475. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  476. # so uname gets run too.
  477. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  478. #
  479. # Initializations.
  480. #
  481. ac_default_prefix=/usr/local
  482. ac_clean_files=
  483. ac_config_libobj_dir=.
  484. LIBOBJS=
  485. cross_compiling=no
  486. subdirs=
  487. MFLAGS=
  488. MAKEFLAGS=
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. # Identity of this package.
  491. PACKAGE_NAME=
  492. PACKAGE_TARNAME=
  493. PACKAGE_VERSION=
  494. PACKAGE_STRING=
  495. PACKAGE_BUGREPORT=
  496. ac_unique_file="udunits"
  497. # Factoring default headers for most tests.
  498. ac_includes_default="\
  499. #include <stdio.h>
  500. #ifdef HAVE_SYS_TYPES_H
  501. # include <sys/types.h>
  502. #endif
  503. #ifdef HAVE_SYS_STAT_H
  504. # include <sys/stat.h>
  505. #endif
  506. #ifdef STDC_HEADERS
  507. # include <stdlib.h>
  508. # include <stddef.h>
  509. #else
  510. # ifdef HAVE_STDLIB_H
  511. # include <stdlib.h>
  512. # endif
  513. #endif
  514. #ifdef HAVE_STRING_H
  515. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  516. # include <memory.h>
  517. # endif
  518. # include <string.h>
  519. #endif
  520. #ifdef HAVE_STRINGS_H
  521. # include <strings.h>
  522. #endif
  523. #ifdef HAVE_INTTYPES_H
  524. # include <inttypes.h>
  525. #endif
  526. #ifdef HAVE_STDINT_H
  527. # include <stdint.h>
  528. #endif
  529. #ifdef HAVE_UNISTD_H
  530. # include <unistd.h>
  531. #endif"
  532. ac_subst_vars='SHELL
  533. PATH_SEPARATOR
  534. PACKAGE_NAME
  535. PACKAGE_TARNAME
  536. PACKAGE_VERSION
  537. PACKAGE_STRING
  538. PACKAGE_BUGREPORT
  539. exec_prefix
  540. prefix
  541. program_transform_name
  542. bindir
  543. sbindir
  544. libexecdir
  545. datarootdir
  546. datadir
  547. sysconfdir
  548. sharedstatedir
  549. localstatedir
  550. includedir
  551. oldincludedir
  552. docdir
  553. infodir
  554. htmldir
  555. dvidir
  556. pdfdir
  557. psdir
  558. libdir
  559. localedir
  560. mandir
  561. DEFS
  562. ECHO_C
  563. ECHO_N
  564. ECHO_T
  565. LIBS
  566. build_alias
  567. host_alias
  568. target_alias
  569. CONFIG_FILES
  570. PORT_SUBDIRS
  571. PORT_MANIFEST
  572. PORT_ALL
  573. PORT_CLEAN
  574. PORT_DISTCLEAN
  575. PORT_INSTALL
  576. prog
  577. WHATIS
  578. MAKEWHATIS_CMD
  579. CC
  580. CPPFLAGS
  581. OPSYS
  582. CC_MAKEDEPEND
  583. CFLAGS
  584. LDFLAGS
  585. ac_ct_CC
  586. EXEEXT
  587. OBJEXT
  588. CPP
  589. UD_NO_CONST
  590. UD_NO_VOLATILE
  591. UD_NO_SIGNED
  592. UD_NO_PROTOTYPES
  593. UD_NO_HASH
  594. UD_NO_HASHHASH
  595. UD_NO_VOIDSTAR
  596. AR
  597. TARFLAGS
  598. RANLIB
  599. FTPBINDIR
  600. UC_LIBOBJS
  601. PORT_HEADERS
  602. PORT_CPP_LDM
  603. LD_UDPORT
  604. NEQN
  605. TBL
  606. LD_UDUNITS
  607. LD_YACC
  608. LD_MATH
  609. CFORTRAN_TYPE
  610. FFLAGS
  611. UD_POINTER
  612. GREP
  613. EGREP
  614. LIBOBJS
  615. UD_NO_ATEXIT_DECL
  616. UD_NO_GETENV_DECL
  617. UD_NO_STRERROR_DECL
  618. UD_NO_STRCHR_DECL
  619. UD_NO_STRCPY_DECL
  620. UD_NO_STRRCHR_DECL
  621. UD_NO_STRNCPY_DECL
  622. UD_NO_STRTOK_DECL
  623. UD_NO_STRSTR_DECL
  624. UD_NO_MEMMOVE_DECL
  625. UD_NO_DIFFTIME_DECL
  626. UD_NO_STRFTIME_DECL
  627. UD_NO_TSEARCH_DECL
  628. UD_NO_TFIND_DECL
  629. UD_NO_TDELETE_DECL
  630. UD_NO_TWALK_DECL
  631. PERL
  632. LINKTYPE
  633. CXXFLAGS
  634. PERL_ALL
  635. PERL_TEST
  636. PERL_INSTALL
  637. PERL_CLEAN
  638. PERL_DISTCLEAN
  639. PERL_MANUAL
  640. FTPDIR
  641. LTLIBOBJS'
  642. ac_subst_files=''
  643. ac_precious_vars='build_alias
  644. host_alias
  645. target_alias
  646. CC
  647. CFLAGS
  648. LDFLAGS
  649. LIBS
  650. CPPFLAGS
  651. CPP'
  652. # Initialize some variables set by options.
  653. ac_init_help=
  654. ac_init_version=false
  655. # The variables have the same names as the options, with
  656. # dashes changed to underlines.
  657. cache_file=/dev/null
  658. exec_prefix=NONE
  659. no_create=
  660. no_recursion=
  661. prefix=NONE
  662. program_prefix=NONE
  663. program_suffix=NONE
  664. program_transform_name=s,x,x,
  665. silent=
  666. site=
  667. srcdir=
  668. verbose=
  669. x_includes=NONE
  670. x_libraries=NONE
  671. # Installation directory options.
  672. # These are left unexpanded so users can "make install exec_prefix=/foo"
  673. # and all the variables that are supposed to be based on exec_prefix
  674. # by default will actually change.
  675. # Use braces instead of parens because sh, perl, etc. also accept them.
  676. # (The list follows the same order as the GNU Coding Standards.)
  677. bindir='${exec_prefix}/bin'
  678. sbindir='${exec_prefix}/sbin'
  679. libexecdir='${exec_prefix}/libexec'
  680. datarootdir='${prefix}/share'
  681. datadir='${datarootdir}'
  682. sysconfdir='${prefix}/etc'
  683. sharedstatedir='${prefix}/com'
  684. localstatedir='${prefix}/var'
  685. includedir='${prefix}/include'
  686. oldincludedir='/usr/include'
  687. docdir='${datarootdir}/doc/${PACKAGE}'
  688. infodir='${datarootdir}/info'
  689. htmldir='${docdir}'
  690. dvidir='${docdir}'
  691. pdfdir='${docdir}'
  692. psdir='${docdir}'
  693. libdir='${exec_prefix}/lib'
  694. localedir='${datarootdir}/locale'
  695. mandir='${datarootdir}/man'
  696. ac_prev=
  697. ac_dashdash=
  698. for ac_option
  699. do
  700. # If the previous option needs an argument, assign it.
  701. if test -n "$ac_prev"; then
  702. eval $ac_prev=\$ac_option
  703. ac_prev=
  704. continue
  705. fi
  706. case $ac_option in
  707. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  708. *) ac_optarg=yes ;;
  709. esac
  710. # Accept the important Cygnus configure options, so we can diagnose typos.
  711. case $ac_dashdash$ac_option in
  712. --)
  713. ac_dashdash=yes ;;
  714. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  715. ac_prev=bindir ;;
  716. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  717. bindir=$ac_optarg ;;
  718. -build | --build | --buil | --bui | --bu)
  719. ac_prev=build_alias ;;
  720. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  721. build_alias=$ac_optarg ;;
  722. -cache-file | --cache-file | --cache-fil | --cache-fi \
  723. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  724. ac_prev=cache_file ;;
  725. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  726. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  727. cache_file=$ac_optarg ;;
  728. --config-cache | -C)
  729. cache_file=config.cache ;;
  730. -datadir | --datadir | --datadi | --datad)
  731. ac_prev=datadir ;;
  732. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  733. datadir=$ac_optarg ;;
  734. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  735. | --dataroo | --dataro | --datar)
  736. ac_prev=datarootdir ;;
  737. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  738. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  739. datarootdir=$ac_optarg ;;
  740. -disable-* | --disable-*)
  741. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  742. # Reject names that are not valid shell variable names.
  743. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  744. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  745. { (exit 1); exit 1; }; }
  746. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  747. eval enable_$ac_feature=no ;;
  748. -docdir | --docdir | --docdi | --doc | --do)
  749. ac_prev=docdir ;;
  750. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  751. docdir=$ac_optarg ;;
  752. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  753. ac_prev=dvidir ;;
  754. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  755. dvidir=$ac_optarg ;;
  756. -enable-* | --enable-*)
  757. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  758. # Reject names that are not valid shell variable names.
  759. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  760. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  761. { (exit 1); exit 1; }; }
  762. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  763. eval enable_$ac_feature=\$ac_optarg ;;
  764. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  765. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  766. | --exec | --exe | --ex)
  767. ac_prev=exec_prefix ;;
  768. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  769. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  770. | --exec=* | --exe=* | --ex=*)
  771. exec_prefix=$ac_optarg ;;
  772. -gas | --gas | --ga | --g)
  773. # Obsolete; use --with-gas.
  774. with_gas=yes ;;
  775. -help | --help | --hel | --he | -h)
  776. ac_init_help=long ;;
  777. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  778. ac_init_help=recursive ;;
  779. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  780. ac_init_help=short ;;
  781. -host | --host | --hos | --ho)
  782. ac_prev=host_alias ;;
  783. -host=* | --host=* | --hos=* | --ho=*)
  784. host_alias=$ac_optarg ;;
  785. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  786. ac_prev=htmldir ;;
  787. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  788. | --ht=*)
  789. htmldir=$ac_optarg ;;
  790. -includedir | --includedir | --includedi | --included | --include \
  791. | --includ | --inclu | --incl | --inc)
  792. ac_prev=includedir ;;
  793. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  794. | --includ=* | --inclu=* | --incl=* | --inc=*)
  795. includedir=$ac_optarg ;;
  796. -infodir | --infodir | --infodi | --infod | --info | --inf)
  797. ac_prev=infodir ;;
  798. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  799. infodir=$ac_optarg ;;
  800. -libdir | --libdir | --libdi | --libd)
  801. ac_prev=libdir ;;
  802. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  803. libdir=$ac_optarg ;;
  804. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  805. | --libexe | --libex | --libe)
  806. ac_prev=libexecdir ;;
  807. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  808. | --libexe=* | --libex=* | --libe=*)
  809. libexecdir=$ac_optarg ;;
  810. -localedir | --localedir | --localedi | --localed | --locale)
  811. ac_prev=localedir ;;
  812. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  813. localedir=$ac_optarg ;;
  814. -localstatedir | --localstatedir | --localstatedi | --localstated \
  815. | --localstate | --localstat | --localsta | --localst | --locals)
  816. ac_prev=localstatedir ;;
  817. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  818. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  819. localstatedir=$ac_optarg ;;
  820. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  821. ac_prev=mandir ;;
  822. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  823. mandir=$ac_optarg ;;
  824. -nfp | --nfp | --nf)
  825. # Obsolete; use --without-fp.
  826. with_fp=no ;;
  827. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  828. | --no-cr | --no-c | -n)
  829. no_create=yes ;;
  830. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  831. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  832. no_recursion=yes ;;
  833. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  834. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  835. | --oldin | --oldi | --old | --ol | --o)
  836. ac_prev=oldincludedir ;;
  837. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  838. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  839. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  840. oldincludedir=$ac_optarg ;;
  841. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  842. ac_prev=prefix ;;
  843. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  844. prefix=$ac_optarg ;;
  845. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  846. | --program-pre | --program-pr | --program-p)
  847. ac_prev=program_prefix ;;
  848. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  849. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  850. program_prefix=$ac_optarg ;;
  851. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  852. | --program-suf | --program-su | --program-s)
  853. ac_prev=program_suffix ;;
  854. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  855. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  856. program_suffix=$ac_optarg ;;
  857. -program-transform-name | --program-transform-name \
  858. | --program-transform-nam | --program-transform-na \
  859. | --program-transform-n | --program-transform- \
  860. | --program-transform | --program-transfor \
  861. | --program-transfo | --program-transf \
  862. | --program-trans | --program-tran \
  863. | --progr-tra | --program-tr | --program-t)
  864. ac_prev=program_transform_name ;;
  865. -program-transform-name=* | --program-transform-name=* \
  866. | --program-transform-nam=* | --program-transform-na=* \
  867. | --program-transform-n=* | --program-transform-=* \
  868. | --program-transform=* | --program-transfor=* \
  869. | --program-transfo=* | --program-transf=* \
  870. | --program-trans=* | --program-tran=* \
  871. | --progr-tra=* | --program-tr=* | --program-t=*)
  872. program_transform_name=$ac_optarg ;;
  873. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  874. ac_prev=pdfdir ;;
  875. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  876. pdfdir=$ac_optarg ;;
  877. -psdir | --psdir | --psdi | --psd | --ps)
  878. ac_prev=psdir ;;
  879. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  880. psdir=$ac_optarg ;;
  881. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  882. | -silent | --silent | --silen | --sile | --sil)
  883. silent=yes ;;
  884. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  885. ac_prev=sbindir ;;
  886. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  887. | --sbi=* | --sb=*)
  888. sbindir=$ac_optarg ;;
  889. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  890. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  891. | --sharedst | --shareds | --shared | --share | --shar \
  892. | --sha | --sh)
  893. ac_prev=sharedstatedir ;;
  894. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  895. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  896. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  897. | --sha=* | --sh=*)
  898. sharedstatedir=$ac_optarg ;;
  899. -site | --site | --sit)
  900. ac_prev=site ;;
  901. -site=* | --site=* | --sit=*)
  902. site=$ac_optarg ;;
  903. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  904. ac_prev=srcdir ;;
  905. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  906. srcdir=$ac_optarg ;;
  907. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  908. | --syscon | --sysco | --sysc | --sys | --sy)
  909. ac_prev=sysconfdir ;;
  910. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  911. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  912. sysconfdir=$ac_optarg ;;
  913. -target | --target | --targe | --targ | --tar | --ta | --t)
  914. ac_prev=target_alias ;;
  915. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  916. target_alias=$ac_optarg ;;
  917. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  918. verbose=yes ;;
  919. -version | --version | --versio | --versi | --vers | -V)
  920. ac_init_version=: ;;
  921. -with-* | --with-*)
  922. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  923. # Reject names that are not valid shell variable names.
  924. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  925. { echo "$as_me: error: invalid package name: $ac_package" >&2
  926. { (exit 1); exit 1; }; }
  927. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  928. eval with_$ac_package=\$ac_optarg ;;
  929. -without-* | --without-*)
  930. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  931. # Reject names that are not valid shell variable names.
  932. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  933. { echo "$as_me: error: invalid package name: $ac_package" >&2
  934. { (exit 1); exit 1; }; }
  935. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  936. eval with_$ac_package=no ;;
  937. --x)
  938. # Obsolete; use --with-x.
  939. with_x=yes ;;
  940. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  941. | --x-incl | --x-inc | --x-in | --x-i)
  942. ac_prev=x_includes ;;
  943. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  944. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  945. x_includes=$ac_optarg ;;
  946. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  947. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  948. ac_prev=x_libraries ;;
  949. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  950. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  951. x_libraries=$ac_optarg ;;
  952. -*) { echo "$as_me: error: unrecognized option: $ac_option
  953. Try \`$0 --help' for more information." >&2
  954. { (exit 1); exit 1; }; }
  955. ;;
  956. *=*)
  957. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  958. # Reject names that are not valid shell variable names.
  959. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  960. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  961. { (exit 1); exit 1; }; }
  962. eval $ac_envvar=\$ac_optarg
  963. export $ac_envvar ;;
  964. *)
  965. # FIXME: should be removed in autoconf 3.0.
  966. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  967. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  968. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  969. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  970. ;;
  971. esac
  972. done
  973. if test -n "$ac_prev"; then
  974. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  975. { echo "$as_me: error: missing argument to $ac_option" >&2
  976. { (exit 1); exit 1; }; }
  977. fi
  978. # Be sure to have absolute directory names.
  979. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  980. datadir sysconfdir sharedstatedir localstatedir includedir \
  981. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  982. libdir localedir mandir
  983. do
  984. eval ac_val=\$$ac_var
  985. case $ac_val in
  986. [\\/$]* | ?:[\\/]* ) continue;;
  987. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  988. esac
  989. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  990. { (exit 1); exit 1; }; }
  991. done
  992. # There might be people who depend on the old broken behavior: `$host'
  993. # used to hold the argument of --host etc.
  994. # FIXME: To remove some day.
  995. build=$build_alias
  996. host=$host_alias
  997. target=$target_alias
  998. # FIXME: To remove some day.
  999. if test "x$host_alias" != x; then
  1000. if test "x$build_alias" = x; then
  1001. cross_compiling=maybe
  1002. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1003. If a cross compiler is detected then cross compile mode will be used." >&2
  1004. elif test "x$build_alias" != "x$host_alias"; then
  1005. cross_compiling=yes
  1006. fi
  1007. fi
  1008. ac_tool_prefix=
  1009. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1010. test "$silent" = yes && exec 6>/dev/null
  1011. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1012. ac_ls_di=`ls -di .` &&
  1013. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1014. { echo "$as_me: error: Working directory cannot be determined" >&2
  1015. { (exit 1); exit 1; }; }
  1016. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1017. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1018. { (exit 1); exit 1; }; }
  1019. # Find the source files, if location was not specified.
  1020. if test -z "$srcdir"; then
  1021. ac_srcdir_defaulted=yes
  1022. # Try the directory containing this script, then the parent directory.
  1023. ac_confdir=`$as_dirname -- "$0" ||
  1024. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1025. X"$0" : 'X\(//\)[^/]' \| \
  1026. X"$0" : 'X\(//\)$' \| \
  1027. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1028. echo X"$0" |
  1029. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1030. s//\1/
  1031. q
  1032. }
  1033. /^X\(\/\/\)[^/].*/{
  1034. s//\1/
  1035. q
  1036. }
  1037. /^X\(\/\/\)$/{
  1038. s//\1/
  1039. q
  1040. }
  1041. /^X\(\/\).*/{
  1042. s//\1/
  1043. q
  1044. }
  1045. s/.*/./; q'`
  1046. srcdir=$ac_confdir
  1047. if test ! -r "$srcdir/$ac_unique_file"; then
  1048. srcdir=..
  1049. fi
  1050. else
  1051. ac_srcdir_defaulted=no
  1052. fi
  1053. if test ! -r "$srcdir/$ac_unique_file"; then
  1054. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1055. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1056. { (exit 1); exit 1; }; }
  1057. fi
  1058. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1059. ac_abs_confdir=`(
  1060. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1061. { (exit 1); exit 1; }; }
  1062. pwd)`
  1063. # When building in place, set srcdir=.
  1064. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1065. srcdir=.
  1066. fi
  1067. # Remove unnecessary trailing slashes from srcdir.
  1068. # Double slashes in file names in object file debugging info
  1069. # mess up M-x gdb in Emacs.
  1070. case $srcdir in
  1071. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1072. esac
  1073. for ac_var in $ac_precious_vars; do
  1074. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1075. eval ac_env_${ac_var}_value=\$${ac_var}
  1076. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1077. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1078. done
  1079. #
  1080. # Report the --help message.
  1081. #
  1082. if test "$ac_init_help" = "long"; then
  1083. # Omit some internal or obsolete options to make the list less imposing.
  1084. # This message is too long to be a string in the A/UX 3.1 sh.
  1085. cat <<_ACEOF
  1086. \`configure' configures this package to adapt to many kinds of systems.
  1087. Usage: $0 [OPTION]... [VAR=VALUE]...
  1088. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1089. VAR=VALUE. See below for descriptions of some of the useful variables.
  1090. Defaults for the options are specified in brackets.
  1091. Configuration:
  1092. -h, --help display this help and exit
  1093. --help=short display options specific to this package
  1094. --help=recursive display the short help of all the included packages
  1095. -V, --version display version information and exit
  1096. -q, --quiet, --silent do not print \`checking...' messages
  1097. --cache-file=FILE cache test results in FILE [disabled]
  1098. -C, --config-cache alias for \`--cache-file=config.cache'
  1099. -n, --no-create do not create output files
  1100. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1101. Installation directories:
  1102. --prefix=PREFIX install architecture-independent files in PREFIX
  1103. [$ac_default_prefix]
  1104. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1105. [PREFIX]
  1106. By default, \`make install' will install all the files in
  1107. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1108. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1109. for instance \`--prefix=\$HOME'.
  1110. For better control, use the options below.
  1111. Fine tuning of the installation directories:
  1112. --bindir=DIR user executables [EPREFIX/bin]
  1113. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1114. --libexecdir=DIR program executables [EPREFIX/libexec]
  1115. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1116. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1117. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1118. --libdir=DIR object code libraries [EPREFIX/lib]
  1119. --includedir=DIR C header files [PREFIX/include]
  1120. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1121. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1122. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1123. --infodir=DIR info documentation [DATAROOTDIR/info]
  1124. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1125. --mandir=DIR man documentation [DATAROOTDIR/man]
  1126. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1127. --htmldir=DIR html documentation [DOCDIR]
  1128. --dvidir=DIR dvi documentation [DOCDIR]
  1129. --pdfdir=DIR pdf documentation [DOCDIR]
  1130. --psdir=DIR ps documentation [DOCDIR]
  1131. _ACEOF
  1132. cat <<\_ACEOF
  1133. _ACEOF
  1134. fi
  1135. if test -n "$ac_init_help"; then
  1136. cat <<\_ACEOF
  1137. Some influential environment variables:
  1138. CC C compiler command
  1139. CFLAGS C compiler flags
  1140. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1141. nonstandard directory <lib dir>
  1142. LIBS libraries to pass to the linker, e.g. -l<library>
  1143. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1144. you have headers in a nonstandard directory <include dir>
  1145. CPP C preprocessor
  1146. Use these variables to override the choices made by `configure' or to help
  1147. it to find libraries and programs with nonstandard names/locations.
  1148. _ACEOF
  1149. ac_status=$?
  1150. fi
  1151. if test "$ac_init_help" = "recursive"; then
  1152. # If there are subdirs, report their specific --help.
  1153. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1154. test -d "$ac_dir" || continue
  1155. ac_builddir=.
  1156. case "$ac_dir" in
  1157. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1158. *)
  1159. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1160. # A ".." for each directory in $ac_dir_suffix.
  1161. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1162. case $ac_top_builddir_sub in
  1163. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1164. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1165. esac ;;
  1166. esac
  1167. ac_abs_top_builddir=$ac_pwd
  1168. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1169. # for backward compatibility:
  1170. ac_top_builddir=$ac_top_build_prefix
  1171. case $srcdir in
  1172. .) # We are building in place.
  1173. ac_srcdir=.
  1174. ac_top_srcdir=$ac_top_builddir_sub
  1175. ac_abs_top_srcdir=$ac_pwd ;;
  1176. [\\/]* | ?:[\\/]* ) # Absolute name.
  1177. ac_srcdir=$srcdir$ac_dir_suffix;
  1178. ac_top_srcdir=$srcdir
  1179. ac_abs_top_srcdir=$srcdir ;;
  1180. *) # Relative name.
  1181. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1182. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1183. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1184. esac
  1185. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1186. cd "$ac_dir" || { ac_status=$?; continue; }
  1187. # Check for guested configure.
  1188. if test -f "$ac_srcdir/configure.gnu"; then
  1189. echo &&
  1190. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1191. elif test -f "$ac_srcdir/configure"; then
  1192. echo &&
  1193. $SHELL "$ac_srcdir/configure" --help=recursive
  1194. else
  1195. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1196. fi || ac_status=$?
  1197. cd "$ac_pwd" || { ac_status=$?; break; }
  1198. done
  1199. fi
  1200. test -n "$ac_init_help" && exit $ac_status
  1201. if $ac_init_version; then
  1202. cat <<\_ACEOF
  1203. configure
  1204. generated by GNU Autoconf 2.61
  1205. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1206. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1207. This configure script is free software; the Free Software Foundation
  1208. gives unlimited permission to copy, distribute and modify it.
  1209. _ACEOF
  1210. exit
  1211. fi
  1212. cat >config.log <<_ACEOF
  1213. This file contains any messages produced by compilers while
  1214. running configure, to aid debugging if configure makes a mistake.
  1215. It was created by $as_me, which was
  1216. generated by GNU Autoconf 2.61. Invocation command line was
  1217. $ $0 $@
  1218. _ACEOF
  1219. exec 5>>config.log
  1220. {
  1221. cat <<_ASUNAME
  1222. ## --------- ##
  1223. ## Platform. ##
  1224. ## --------- ##
  1225. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1226. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1227. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1228. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1229. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1230. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1231. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1232. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1233. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1234. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1235. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1236. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1237. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1238. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1239. _ASUNAME
  1240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1241. for as_dir in $PATH
  1242. do
  1243. IFS=$as_save_IFS
  1244. test -z "$as_dir" && as_dir=.
  1245. echo "PATH: $as_dir"
  1246. done
  1247. IFS=$as_save_IFS
  1248. } >&5
  1249. cat >&5 <<_ACEOF
  1250. ## ----------- ##
  1251. ## Core tests. ##
  1252. ## ----------- ##
  1253. _ACEOF
  1254. # Keep a trace of the command line.
  1255. # Strip out --no-create and --no-recursion so they do not pile up.
  1256. # Strip out --silent because we don't want to record it for future runs.
  1257. # Also quote any args containing shell meta-characters.
  1258. # Make two passes to allow for proper duplicate-argument suppression.
  1259. ac_configure_args=
  1260. ac_configure_args0=
  1261. ac_configure_args1=
  1262. ac_must_keep_next=false
  1263. for ac_pass in 1 2
  1264. do
  1265. for ac_arg
  1266. do
  1267. case $ac_arg in
  1268. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1269. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1270. | -silent | --silent | --silen | --sile | --sil)
  1271. continue ;;
  1272. *\'*)
  1273. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1274. esac
  1275. case $ac_pass in
  1276. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1277. 2)
  1278. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1279. if test $ac_must_keep_next = true; then
  1280. ac_must_keep_next=false # Got value, back to normal.
  1281. else
  1282. case $ac_arg in
  1283. *=* | --config-cache | -C | -disable-* | --disable-* \
  1284. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1285. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1286. | -with-* | --with-* | -without-* | --without-* | --x)
  1287. case "$ac_configure_args0 " in
  1288. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1289. esac
  1290. ;;
  1291. -* ) ac_must_keep_next=true ;;
  1292. esac
  1293. fi
  1294. ac_configure_args="$ac_configure_args '$ac_arg'"
  1295. ;;
  1296. esac
  1297. done
  1298. done
  1299. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1300. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1301. # When interrupted or exit'd, cleanup temporary files, and complete
  1302. # config.log. We remove comments because anyway the quotes in there
  1303. # would cause problems or look ugly.
  1304. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1305. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1306. trap 'exit_status=$?
  1307. # Save into config.log some information that might help in debugging.
  1308. {
  1309. echo
  1310. cat <<\_ASBOX
  1311. ## ---------------- ##
  1312. ## Cache variables. ##
  1313. ## ---------------- ##
  1314. _ASBOX
  1315. echo
  1316. # The following way of writing the cache mishandles newlines in values,
  1317. (
  1318. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1319. eval ac_val=\$$ac_var
  1320. case $ac_val in #(
  1321. *${as_nl}*)
  1322. case $ac_var in #(
  1323. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1324. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1325. esac
  1326. case $ac_var in #(
  1327. _ | IFS | as_nl) ;; #(
  1328. *) $as_unset $ac_var ;;
  1329. esac ;;
  1330. esac
  1331. done
  1332. (set) 2>&1 |
  1333. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1334. *${as_nl}ac_space=\ *)
  1335. sed -n \
  1336. "s/'\''/'\''\\\\'\'''\''/g;
  1337. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1338. ;; #(
  1339. *)
  1340. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1341. ;;
  1342. esac |
  1343. sort
  1344. )
  1345. echo
  1346. cat <<\_ASBOX
  1347. ## ----------------- ##
  1348. ## Output variables. ##
  1349. ## ----------------- ##
  1350. _ASBOX
  1351. echo
  1352. for ac_var in $ac_subst_vars
  1353. do
  1354. eval ac_val=\$$ac_var
  1355. case $ac_val in
  1356. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1357. esac
  1358. echo "$ac_var='\''$ac_val'\''"
  1359. done | sort
  1360. echo
  1361. if test -n "$ac_subst_files"; then
  1362. cat <<\_ASBOX
  1363. ## ------------------- ##
  1364. ## File substitutions. ##
  1365. ## ------------------- ##
  1366. _ASBOX
  1367. echo
  1368. for ac_var in $ac_subst_files
  1369. do
  1370. eval ac_val=\$$ac_var
  1371. case $ac_val in
  1372. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1373. esac
  1374. echo "$ac_var='\''$ac_val'\''"
  1375. done | sort
  1376. echo
  1377. fi
  1378. if test -s confdefs.h; then
  1379. cat <<\_ASBOX
  1380. ## ----------- ##
  1381. ## confdefs.h. ##
  1382. ## ----------- ##
  1383. _ASBOX
  1384. echo
  1385. cat confdefs.h
  1386. echo
  1387. fi
  1388. test "$ac_signal" != 0 &&
  1389. echo "$as_me: caught signal $ac_signal"
  1390. echo "$as_me: exit $exit_status"
  1391. } >&5
  1392. rm -f core *.core core.conftest.* &&
  1393. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1394. exit $exit_status
  1395. ' 0
  1396. for ac_signal in 1 2 13 15; do
  1397. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1398. done
  1399. ac_signal=0
  1400. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1401. rm -f -r conftest* confdefs.h
  1402. # Predefined preprocessor variables.
  1403. cat >>confdefs.h <<_ACEOF
  1404. #define PACKAGE_NAME "$PACKAGE_NAME"
  1405. _ACEOF
  1406. cat >>confdefs.h <<_ACEOF
  1407. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1408. _ACEOF
  1409. cat >>confdefs.h <<_ACEOF
  1410. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1411. _ACEOF
  1412. cat >>confdefs.h <<_ACEOF
  1413. #define PACKAGE_STRING "$PACKAGE_STRING"
  1414. _ACEOF
  1415. cat >>confdefs.h <<_ACEOF
  1416. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1417. _ACEOF
  1418. # Let the site file select an alternate cache file if it wants to.
  1419. # Prefer explicitly selected file to automatically selected ones.
  1420. if test -n "$CONFIG_SITE"; then
  1421. set x "$CONFIG_SITE"
  1422. elif test "x$prefix" != xNONE; then
  1423. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1424. else
  1425. set x "$ac_default_prefix/share/config.site" \
  1426. "$ac_default_prefix/etc/config.site"
  1427. fi
  1428. shift
  1429. for ac_site_file
  1430. do
  1431. if test -r "$ac_site_file"; then
  1432. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1433. echo "$as_me: loading site script $ac_site_file" >&6;}
  1434. sed 's/^/| /' "$ac_site_file" >&5
  1435. . "$ac_site_file"
  1436. fi
  1437. done
  1438. if test -r "$cache_file"; then
  1439. # Some versions of bash will fail to source /dev/null (special
  1440. # files actually), so we avoid doing that.
  1441. if test -f "$cache_file"; then
  1442. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1443. echo "$as_me: loading cache $cache_file" >&6;}
  1444. case $cache_file in
  1445. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1446. *) . "./$cache_file";;
  1447. esac
  1448. fi
  1449. else
  1450. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1451. echo "$as_me: creating cache $cache_file" >&6;}
  1452. >$cache_file
  1453. fi
  1454. # Check that the precious variables saved in the cache have kept the same
  1455. # value.
  1456. ac_cache_corrupted=false
  1457. for ac_var in $ac_precious_vars; do
  1458. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1459. eval ac_new_set=\$ac_env_${ac_var}_set
  1460. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1461. eval ac_new_val=\$ac_env_${ac_var}_value
  1462. case $ac_old_set,$ac_new_set in
  1463. set,)
  1464. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1465. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1466. ac_cache_corrupted=: ;;
  1467. ,set)
  1468. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1469. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1470. ac_cache_corrupted=: ;;
  1471. ,);;
  1472. *)
  1473. if test "x$ac_old_val" != "x$ac_new_val"; then
  1474. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1475. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1476. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1477. echo "$as_me: former value: $ac_old_val" >&2;}
  1478. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1479. echo "$as_me: current value: $ac_new_val" >&2;}
  1480. ac_cache_corrupted=:
  1481. fi;;
  1482. esac
  1483. # Pass precious variables to config.status.
  1484. if test "$ac_new_set" = set; then
  1485. case $ac_new_val in
  1486. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1487. *) ac_arg=$ac_var=$ac_new_val ;;
  1488. esac
  1489. case " $ac_configure_args " in
  1490. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1491. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1492. esac
  1493. fi
  1494. done
  1495. if $ac_cache_corrupted; then
  1496. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1497. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1498. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1499. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1500. { (exit 1); exit 1; }; }
  1501. fi
  1502. ac_ext=c
  1503. ac_cpp='$CPP $CPPFLAGS'
  1504. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1505. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1506. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1507. if test -r CUSTOMIZE; then
  1508. . ./CUSTOMIZE
  1509. fi
  1510. rm -f confdefs.missing
  1511. for arg in port/master.mk; do
  1512. case "$CONFIG_FILES" in
  1513. *$arg*)
  1514. ;;
  1515. *)
  1516. CONFIG_FILES="${CONFIG_FILES-} $arg"
  1517. ;;
  1518. esac
  1519. done
  1520. for arg in port/Makefile; do
  1521. case "$CONFIG_FILES" in
  1522. *$arg*)
  1523. ;;
  1524. *)
  1525. CONFIG_FILES="${CONFIG_FILES-} $arg"
  1526. ;;
  1527. esac
  1528. done
  1529. PORT_SUBDIRS=${PORT_SUBDIRS-""}
  1530. PORT_MANIFEST=${PORT_MANIFEST-""}
  1531. #
  1532. # NB: We always want to define WHATIS to prevent the
  1533. # $(MANDIR)/$(WHATIS) make(1) target from being just $(MANDIR)/ and
  1534. # conflicting with the (directory creation) target with the same name.
  1535. #
  1536. WHATIS=whatis
  1537. case `uname -sr` in
  1538. (BSD/OS*)
  1539. # Can't generate a user-database -- only /usr/share/man/whatis.db.
  1540. MAKEWHATIS_CMD=
  1541. ;;
  1542. ('IRIX64 6.5'|'IRIX 6.5')
  1543. MAKEWHATIS_CMD='/usr/lib/makewhatis -M $(MANDIR) $(MANDIR)/whatis'
  1544. ;;
  1545. ('IRIX 6'*)
  1546. # Can't generate a user-database.
  1547. MAKEWHATIS_CMD=
  1548. ;;
  1549. (HP-UX*)
  1550. # Can't generate a user-database -- only /usr/lib/whatis.
  1551. MAKEWHATIS_CMD=
  1552. ;;
  1553. ('Linux '*)
  1554. # /usr/sbin/makewhatis doesn't work
  1555. MAKEWHATIS_CMD=
  1556. ;;
  1557. (ULTRIX*)
  1558. # Can't generate a user-database -- only /usr/lib/whatis.
  1559. MAKEWHATIS_CMD=
  1560. ;;
  1561. (*)
  1562. if test -r /usr/man/windex; then
  1563. WHATIS=windex
  1564. fi
  1565. for ac_prog in catman makewhatis /usr/lib/makewhatis
  1566. do
  1567. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1568. set dummy $ac_prog; ac_word=$2
  1569. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1570. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1571. if test "${ac_cv_prog_prog+set}" = set; then
  1572. echo $ECHO_N "(cached) $ECHO_C" >&6
  1573. else
  1574. if test -n "$prog"; then
  1575. ac_cv_prog_prog="$prog" # Let the user override the test.
  1576. else
  1577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1578. for as_dir in $PATH
  1579. do
  1580. IFS=$as_save_IFS
  1581. test -z "$as_dir" && as_dir=.
  1582. for ac_exec_ext in '' $ac_executable_extensions; do
  1583. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1584. ac_cv_prog_prog="$ac_prog"
  1585. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1586. break 2
  1587. fi
  1588. done
  1589. done
  1590. IFS=$as_save_IFS
  1591. fi
  1592. fi
  1593. prog=$ac_cv_prog_prog
  1594. if test -n "$prog"; then
  1595. { echo "$as_me:$LINENO: result: $prog" >&5
  1596. echo "${ECHO_T}$prog" >&6; }
  1597. else
  1598. { echo "$as_me:$LINENO: result: no" >&5
  1599. echo "${ECHO_T}no" >&6; }
  1600. fi
  1601. test -n "$prog" && break
  1602. done
  1603. case "$prog" in
  1604. (*catman*)
  1605. MAKEWHATIS_CMD=$prog' -w -M $(MANDIR)'
  1606. ;;
  1607. (*makewhatis*)
  1608. MAKEWHATIS_CMD=$prog' $(MANDIR)'
  1609. ;;
  1610. esac
  1611. ;;
  1612. esac
  1613. { echo "$as_me:$LINENO: checking for manual-page index command" >&5
  1614. echo $ECHO_N "checking for manual-page index command... $ECHO_C" >&6; }
  1615. { echo "$as_me:$LINENO: result: $MAKEWHATIS_CMD" >&5
  1616. echo "${ECHO_T}$MAKEWHATIS_CMD" >&6; }
  1617. #
  1618. # Ensure that the CC variable is unset so that it can be
  1619. # set here rather than by the autoconf-generated
  1620. # configure-script preamble.
  1621. #
  1622. # unset CC
  1623. #
  1624. case ${CC-unset} in
  1625. unset)
  1626. case `uname -s` in
  1627. AIX)
  1628. for ac_prog in c89 xlc cc gcc
  1629. do
  1630. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1631. set dummy $ac_prog; ac_word=$2
  1632. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1633. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1634. if test "${ac_cv_prog_CC+set}" = set; then
  1635. echo $ECHO_N "(cached) $ECHO_C" >&6
  1636. else
  1637. if test -n "$CC"; then
  1638. ac_cv_prog_CC="$CC" # Let the user override the test.
  1639. else
  1640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1641. for as_dir in $PATH
  1642. do
  1643. IFS=$as_save_IFS
  1644. test -z "$as_dir" && as_dir=.
  1645. for ac_exec_ext in '' $ac_executable_extensions; do
  1646. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1647. ac_cv_prog_CC="$ac_prog"
  1648. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1649. break 2
  1650. fi
  1651. done
  1652. done
  1653. IFS=$as_save_IFS
  1654. fi
  1655. fi
  1656. CC=$ac_cv_prog_CC
  1657. if test -n "$CC"; then
  1658. { echo "$as_me:$LINENO: result: $CC" >&5
  1659. echo "${ECHO_T}$CC" >&6; }
  1660. else
  1661. { echo "$as_me:$LINENO: result: no" >&5
  1662. echo "${ECHO_T}no" >&6; }
  1663. fi
  1664. test -n "$CC" && break
  1665. done
  1666. ;;
  1667. HP-UX)
  1668. for ac_prog in c89 cc gcc
  1669. do
  1670. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1671. set dummy $ac_prog; ac_word=$2
  1672. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1673. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1674. if test "${ac_cv_prog_CC+set}" = set; then
  1675. echo $ECHO_N "(cached) $ECHO_C" >&6
  1676. else
  1677. if test -n "$CC"; then
  1678. ac_cv_prog_CC="$CC" # Let the user override the test.
  1679. else
  1680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1681. for as_dir in $PATH
  1682. do
  1683. IFS=$as_save_IFS
  1684. test -z "$as_dir" && as_dir=.
  1685. for ac_exec_ext in '' $ac_executable_extensions; do
  1686. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1687. ac_cv_prog_CC="$ac_prog"
  1688. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1689. break 2
  1690. fi
  1691. done
  1692. done
  1693. IFS=$as_save_IFS
  1694. fi
  1695. fi
  1696. CC=$ac_cv_prog_CC
  1697. if test -n "$CC"; then
  1698. { echo "$as_me:$LINENO: result: $CC" >&5
  1699. echo "${ECHO_T}$CC" >&6; }
  1700. else
  1701. { echo "$as_me:$LINENO: result: no" >&5
  1702. echo "${ECHO_T}no" >&6; }
  1703. fi
  1704. test -n "$CC" && break
  1705. done
  1706. ;;
  1707. IRIX*)
  1708. for ac_prog in cc gcc
  1709. do
  1710. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1711. set dummy $ac_prog; ac_word=$2
  1712. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1713. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1714. if test "${ac_cv_prog_CC+set}" = set; then
  1715. echo $ECHO_N "(cached) $ECHO_C" >&6
  1716. else
  1717. if test -n "$CC"; then
  1718. ac_cv_prog_CC="$CC" # Let the user override the test.
  1719. else
  1720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1721. for as_dir in $PATH
  1722. do
  1723. IFS=$as_save_IFS
  1724. test -z "$as_dir" && as_dir=.
  1725. for ac_exec_ext in '' $ac_executable_extensions; do
  1726. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1727. ac_cv_prog_CC="$ac_prog"
  1728. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1729. break 2
  1730. fi
  1731. done
  1732. done
  1733. IFS=$as_save_IFS
  1734. fi
  1735. fi
  1736. CC=$ac_cv_prog_CC
  1737. if test -n "$CC"; then
  1738. { echo "$as_me:$LINENO: result: $CC" >&5
  1739. echo "${ECHO_T}$CC" >&6; }
  1740. else
  1741. { echo "$as_me:$LINENO: result: no" >&5
  1742. echo "${ECHO_T}no" >&6; }
  1743. fi
  1744. test -n "$CC" && break
  1745. done
  1746. ;;
  1747. OSF1|ULTRIX)
  1748. for ac_prog in cc gcc
  1749. do
  1750. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1751. set dummy $ac_prog; ac_word=$2
  1752. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1753. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1754. if test "${ac_cv_prog_CC+set}" = set; then
  1755. echo $ECHO_N "(cached) $ECHO_C" >&6
  1756. else
  1757. if test -n "$CC"; then
  1758. ac_cv_prog_CC="$CC" # Let the user override the test.
  1759. else
  1760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1761. for as_dir in $PATH
  1762. do
  1763. IFS=$as_save_IFS
  1764. test -z "$as_dir" && as_dir=.
  1765. for ac_exec_ext in '' $ac_executable_extensions; do
  1766. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1767. ac_cv_prog_CC="$ac_prog"
  1768. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1769. break 2
  1770. fi
  1771. done
  1772. done
  1773. IFS=$as_save_IFS
  1774. fi
  1775. fi
  1776. CC=$ac_cv_prog_CC
  1777. if test -n "$CC"; then
  1778. { echo "$as_me:$LINENO: result: $CC" >&5
  1779. echo "${ECHO_T}$CC" >&6; }
  1780. else
  1781. { echo "$as_me:$LINENO: result: no" >&5
  1782. echo "${ECHO_T}no" >&6; }
  1783. fi
  1784. test -n "$CC" && break
  1785. done
  1786. case "$CC" in
  1787. cc)
  1788. case `uname -m` in
  1789. VAX)
  1790. ;;
  1791. *)
  1792. for arg in -std; do
  1793. case "$CPPFLAGS" in
  1794. *$arg*)
  1795. ;;
  1796. *)
  1797. CPPFLAGS="${CPPFLAGS-} $arg"
  1798. ;;
  1799. esac
  1800. done
  1801. ;;
  1802. esac
  1803. ;;
  1804. esac
  1805. ;;
  1806. SunOS)
  1807. case `uname -r` in
  1808. 4*)
  1809. for ac_prog in acc cc gcc
  1810. do
  1811. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1812. set dummy $ac_prog; ac_word=$2
  1813. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1814. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1815. if test "${ac_cv_prog_CC+set}" = set; then
  1816. echo $ECHO_N "(cached) $ECHO_C" >&6
  1817. else
  1818. if test -n "$CC"; then
  1819. ac_cv_prog_CC="$CC" # Let the user override the test.
  1820. else
  1821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1822. for as_dir in $PATH
  1823. do
  1824. IFS=$as_save_IFS
  1825. test -z "$as_dir" && as_dir=.
  1826. for ac_exec_ext in '' $ac_executable_extensions; do
  1827. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1828. ac_cv_prog_CC="$ac_prog"
  1829. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1830. break 2
  1831. fi
  1832. done
  1833. done
  1834. IFS=$as_save_IFS
  1835. fi
  1836. fi
  1837. CC=$ac_cv_prog_CC
  1838. if test -n "$CC"; then
  1839. { echo "$as_me:$LINENO: result: $CC" >&5
  1840. echo "${ECHO_T}$CC" >&6; }
  1841. else
  1842. { echo "$as_me:$LINENO: result: no" >&5
  1843. echo "${ECHO_T}no" >&6; }
  1844. fi
  1845. test -n "$CC" && break
  1846. done
  1847. ;;
  1848. 5*)
  1849. for ac_prog in cc gcc
  1850. do
  1851. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1852. set dummy $ac_prog; ac_word=$2
  1853. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1854. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1855. if test "${ac_cv_prog_CC+set}" = set; then
  1856. echo $ECHO_N "(cached) $ECHO_C" >&6
  1857. else
  1858. if test -n "$CC"; then
  1859. ac_cv_prog_CC="$CC" # Let the user override the test.
  1860. else
  1861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1862. for as_dir in $PATH
  1863. do
  1864. IFS=$as_save_IFS
  1865. test -z "$as_dir" && as_dir=.
  1866. for ac_exec_ext in '' $ac_executable_extensions; do
  1867. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1868. ac_cv_prog_CC="$ac_prog"
  1869. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1870. break 2
  1871. fi
  1872. done
  1873. done
  1874. IFS=$as_save_IFS
  1875. fi
  1876. fi
  1877. CC=$ac_cv_prog_CC
  1878. if test -n "$CC"; then
  1879. { echo "$as_me:$LINENO: result: $CC" >&5
  1880. echo "${ECHO_T}$CC" >&6; }
  1881. else
  1882. { echo "$as_me:$LINENO: result: no" >&5
  1883. echo "${ECHO_T}no" >&6; }
  1884. fi
  1885. test -n "$CC" && break
  1886. done
  1887. #
  1888. # The following is commented-out because
  1889. # the configure script uses CPPFLAGS when
  1890. # compiling C++ source and SunOS 5's CC (at
  1891. # least) emits error messages when given the
  1892. # -Xa option causing the configure script to
  1893. # abandon `$CXX -E' in favor of `/lib/cpp'.
  1894. #
  1895. # case "$CC" in
  1896. # *gcc*)
  1897. # ;;
  1898. # *)
  1899. # UC_ENSURE(CPPFLAGS, -Xa) dnl
  1900. # ;;
  1901. # esac
  1902. ;;
  1903. esac
  1904. ;;
  1905. *)
  1906. for ac_prog in c89 cc gcc
  1907. do
  1908. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1909. set dummy $ac_prog; ac_word=$2
  1910. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1911. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1912. if test "${ac_cv_prog_CC+set}" = set; then
  1913. echo $ECHO_N "(cached) $ECHO_C" >&6
  1914. else
  1915. if test -n "$CC"; then
  1916. ac_cv_prog_CC="$CC" # Let the user override the test.
  1917. else
  1918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1919. for as_dir in $PATH
  1920. do
  1921. IFS=$as_save_IFS
  1922. test -z "$as_dir" && as_dir=.
  1923. for ac_exec_ext in '' $ac_executable_extensions; do
  1924. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1925. ac_cv_prog_CC="$ac_prog"
  1926. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1927. break 2
  1928. fi
  1929. done
  1930. done
  1931. IFS=$as_save_IFS
  1932. fi
  1933. fi
  1934. CC=$ac_cv_prog_CC
  1935. if test -n "$CC"; then
  1936. { echo "$as_me:$LINENO: result: $CC" >&5
  1937. echo "${ECHO_T}$CC" >&6; }
  1938. else
  1939. { echo "$as_me:$LINENO: result: no" >&5
  1940. echo "${ECHO_T}no" >&6; }
  1941. fi
  1942. test -n "$CC" && break
  1943. done
  1944. ;;
  1945. esac
  1946. ;;
  1947. *)
  1948. { echo "$as_me:$LINENO: checking for C compiler" >&5
  1949. echo $ECHO_N "checking for C compiler... $ECHO_C" >&6; }
  1950. { echo "$as_me:$LINENO: result: $CC" >&5
  1951. echo "${ECHO_T}$CC" >&6; }
  1952. ;;
  1953. esac
  1954. case "${CC-}" in
  1955. '')
  1956. echo "CC:C compiler:/bin/cc" >> confdefs.missing
  1957. ;;
  1958. *)
  1959. # Find out if we are using GNU C, under whatever name.
  1960. cat <<UD_EOF > conftest.c
  1961. #ifdef __GNUC__
  1962. yes
  1963. #endif
  1964. UD_EOF
  1965. ${CC} -E conftest.c > conftest.out 2>&1
  1966. if egrep yes conftest.out >/dev/null 2>&1; then
  1967. GCC=1 # For later tests.
  1968. fi
  1969. case `uname -s` in
  1970. AIX)
  1971. for arg in -D_ALL_SOURCE; do
  1972. case "$CPPFLAGS" in
  1973. *$arg*)
  1974. ;;
  1975. *)
  1976. CPPFLAGS="${CPPFLAGS-} $arg"
  1977. ;;
  1978. esac
  1979. done
  1980. cat >>confdefs.h <<\_ACEOF
  1981. #define _ALL_SOURCE 1
  1982. _ACEOF
  1983. ;;
  1984. HP-UX)
  1985. for arg in -D_HPUX_SOURCE; do
  1986. case "$CPPFLAGS" in
  1987. *$arg*)
  1988. ;;
  1989. *)
  1990. CPPFLAGS="${CPPFLAGS-} $arg"
  1991. ;;
  1992. esac
  1993. done
  1994. cat >>confdefs.h <<\_ACEOF
  1995. #define _HPUX_SOURCE 1
  1996. _ACEOF
  1997. ;;
  1998. esac
  1999. ;;
  2000. esac
  2001. rm -f conftest*
  2002. { echo "$as_me:$LINENO: checking type of operating system" >&5
  2003. echo $ECHO_N "checking type of operating system... $ECHO_C" >&6; }
  2004. if test -z "$OPSYS"; then
  2005. OPSYS=`uname -s | tr '[A-Z]' '[a-z]' | sed 's;/;;g'`
  2006. if test -z "$OPSYS"; then
  2007. echo "OPSYS:operating system:sunos5" >> confdefs.missing
  2008. fi
  2009. fi
  2010. case $OPSYS in
  2011. aix)
  2012. OS_NAME=`uname -s`
  2013. OS_MAJOR=`uname -v | sed 's/[^0-9]*\([0-9]*\)\..*/\1/'`
  2014. ;;
  2015. hp-ux)
  2016. OPSYS=hpux`uname -r | sed 's/[A-Z.0]*\([0-9]*\).*/\1/'`
  2017. OS_NAME=HPUX
  2018. OS_MAJOR=`uname -r | sed 's/[A-Z.0]*\([0-9]*\).*/\1/'`
  2019. ;;
  2020. irix)
  2021. OPSYS=${OPSYS}`uname -r | sed 's/\..*//'`
  2022. OS_NAME=IRIX
  2023. OS_MAJOR=`uname -r | sed 's/\..*//'`
  2024. ;;
  2025. osf*)
  2026. OS_NAME=OSF1
  2027. OS_MAJOR=`uname -r | sed 's/[^0-9]*\([0-9]*\)\..*/\1/'`
  2028. ;;
  2029. sn*)
  2030. OPSYS=unicos
  2031. OS_NAME=UNICOS
  2032. OS_MAJOR=`uname -r | sed 's/[^0-9]*\([0-9]*\)\..*/\1/'`
  2033. ;;
  2034. sunos)
  2035. OS_NAME=SunOS
  2036. OS_MAJOR=`uname -r | sed 's/\..*//'`
  2037. OPSYS=$OPSYS$OS_MAJOR
  2038. ;;
  2039. ultrix)
  2040. OS_NAME=ULTRIX
  2041. OS_MAJOR=`uname -r | sed 's/\..*//'`
  2042. ;;
  2043. *)
  2044. # On at least one UNICOS system, 'uname -s' returned the
  2045. # hostname (sigh).
  2046. if uname -a | grep CRAY >/dev/null; then
  2047. OPSYS=unicos
  2048. OS_NAME=UNICOS
  2049. else
  2050. OS_NAME=`uname -s | sed 's/[^A-Za-z0-9_]//g'`
  2051. fi
  2052. OS_MAJOR=`uname -r | sed 's/[^0-9]*\([0-9]*\)\..*/\1/'`
  2053. ;;
  2054. esac
  2055. # Adjust OPSYS for CRAY MPP environment.
  2056. #
  2057. case "$OPSYS" in
  2058. unicos)
  2059. case "$CC$TARGET$CFLAGS" in
  2060. *cray-t3*)
  2061. OPSYS=unicos-mpp
  2062. ;;
  2063. esac
  2064. ;;
  2065. esac
  2066. cat >>confdefs.h <<_ACEOF
  2067. #define OS_NAME $OS_NAME
  2068. _ACEOF
  2069. cat >>confdefs.h <<_ACEOF
  2070. #define OS_MAJOR $OS_MAJOR
  2071. _ACEOF
  2072. { echo "$as_me:$LINENO: result: $OPSYS" >&5
  2073. echo "${ECHO_T}$OPSYS" >&6; }
  2074. { echo "$as_me:$LINENO: checking for dependency generation mechanism" >&5
  2075. echo $ECHO_N "checking for dependency generation mechanism... $ECHO_C" >&6; }
  2076. if test -z "$CC_MAKEDEPEND"; then
  2077. case ${GCC-}${OPSYS} in
  2078. convexos)
  2079. CC_MAKEDEPEND="$CC -k"
  2080. ;;
  2081. hpux)
  2082. CC_MAKEDEPEND="$CC -c -Wp,-M"
  2083. ;;
  2084. sunos5)
  2085. CC_MAKEDEPEND="$CC -xM"
  2086. ;;
  2087. unicos)
  2088. #
  2089. # UNICOS's C compiler has an unusual way of invoking the
  2090. # dependency-generation option. Also, the c89(1) compiler
  2091. # doesn't even have way of doing this.
  2092. #
  2093. #
  2094. CC_MAKEDEPEND="cc -c -Wp,-M"
  2095. ;;
  2096. ultrix)
  2097. CC_MAKEDEPEND="$CC -Em"
  2098. ;;
  2099. *)
  2100. CC_MAKEDEPEND="$CC -M"
  2101. ;;
  2102. esac
  2103. fi
  2104. { echo "$as_me:$LINENO: result: $CC_MAKEDEPEND" >&5
  2105. echo "${ECHO_T}$CC_MAKEDEPEND" >&6; }
  2106. ac_ext=c
  2107. ac_cpp='$CPP $CPPFLAGS'
  2108. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2109. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2110. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2111. if test -n "$ac_tool_prefix"; then
  2112. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2113. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2114. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2115. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2116. if test "${ac_cv_prog_CC+set}" = set; then
  2117. echo $ECHO_N "(cached) $ECHO_C" >&6
  2118. else
  2119. if test -n "$CC"; then
  2120. ac_cv_prog_CC="$CC" # Let the user override the test.
  2121. else
  2122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2123. for as_dir in $PATH
  2124. do
  2125. IFS=$as_save_IFS
  2126. test -z "$as_dir" && as_dir=.
  2127. for ac_exec_ext in '' $ac_executable_extensions; do
  2128. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2129. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2130. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2131. break 2
  2132. fi
  2133. done
  2134. done
  2135. IFS=$as_save_IFS
  2136. fi
  2137. fi
  2138. CC=$ac_cv_prog_CC
  2139. if test -n "$CC"; then
  2140. { echo "$as_me:$LINENO: result: $CC" >&5
  2141. echo "${ECHO_T}$CC" >&6; }
  2142. else
  2143. { echo "$as_me:$LINENO: result: no" >&5
  2144. echo "${ECHO_T}no" >&6; }
  2145. fi
  2146. fi
  2147. if test -z "$ac_cv_prog_CC"; then
  2148. ac_ct_CC=$CC
  2149. # Extract the first word of "gcc", so it can be a program name with args.
  2150. set dummy gcc; ac_word=$2
  2151. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2152. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2153. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2154. echo $ECHO_N "(cached) $ECHO_C" >&6
  2155. else
  2156. if test -n "$ac_ct_CC"; then
  2157. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2158. else
  2159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2160. for as_dir in $PATH
  2161. do
  2162. IFS=$as_save_IFS
  2163. test -z "$as_dir" && as_dir=.
  2164. for ac_exec_ext in '' $ac_executable_extensions; do
  2165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2166. ac_cv_prog_ac_ct_CC="gcc"
  2167. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2168. break 2
  2169. fi
  2170. done
  2171. done
  2172. IFS=$as_save_IFS
  2173. fi
  2174. fi
  2175. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2176. if test -n "$ac_ct_CC"; then
  2177. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2178. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2179. else
  2180. { echo "$as_me:$LINENO: result: no" >&5
  2181. echo "${ECHO_T}no" >&6; }
  2182. fi
  2183. if test "x$ac_ct_CC" = x; then
  2184. CC=""
  2185. else
  2186. case $cross_compiling:$ac_tool_warned in
  2187. yes:)
  2188. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2189. whose name does not start with the host triplet. If you think this
  2190. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2191. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2192. whose name does not start with the host triplet. If you think this
  2193. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2194. ac_tool_warned=yes ;;
  2195. esac
  2196. CC=$ac_ct_CC
  2197. fi
  2198. else
  2199. CC="$ac_cv_prog_CC"
  2200. fi
  2201. if test -z "$CC"; then
  2202. if test -n "$ac_tool_prefix"; then
  2203. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2204. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2205. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2207. if test "${ac_cv_prog_CC+set}" = set; then
  2208. echo $ECHO_N "(cached) $ECHO_C" >&6
  2209. else
  2210. if test -n "$CC"; then
  2211. ac_cv_prog_CC="$CC" # Let the user override the test.
  2212. else
  2213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2214. for as_dir in $PATH
  2215. do
  2216. IFS=$as_save_IFS
  2217. test -z "$as_dir" && as_dir=.
  2218. for ac_exec_ext in '' $ac_executable_extensions; do
  2219. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2220. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2221. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2222. break 2
  2223. fi
  2224. done
  2225. done
  2226. IFS=$as_save_IFS
  2227. fi
  2228. fi
  2229. CC=$ac_cv_prog_CC
  2230. if test -n "$CC"; then
  2231. { echo "$as_me:$LINENO: result: $CC" >&5
  2232. echo "${ECHO_T}$CC" >&6; }
  2233. else
  2234. { echo "$as_me:$LINENO: result: no" >&5
  2235. echo "${ECHO_T}no" >&6; }
  2236. fi
  2237. fi
  2238. fi
  2239. if test -z "$CC"; then
  2240. # Extract the first word of "cc", so it can be a program name with args.
  2241. set dummy cc; ac_word=$2
  2242. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2243. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2244. if test "${ac_cv_prog_CC+set}" = set; then
  2245. echo $ECHO_N "(cached) $ECHO_C" >&6
  2246. else
  2247. if test -n "$CC"; then
  2248. ac_cv_prog_CC="$CC" # Let the user override the test.
  2249. else
  2250. ac_prog_rejected=no
  2251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2252. for as_dir in $PATH
  2253. do
  2254. IFS=$as_save_IFS
  2255. test -z "$as_dir" && as_dir=.
  2256. for ac_exec_ext in '' $ac_executable_extensions; do
  2257. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2258. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2259. ac_prog_rejected=yes
  2260. continue
  2261. fi
  2262. ac_cv_prog_CC="cc"
  2263. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2264. break 2
  2265. fi
  2266. done
  2267. done
  2268. IFS=$as_save_IFS
  2269. if test $ac_prog_rejected = yes; then
  2270. # We found a bogon in the path, so make sure we never use it.
  2271. set dummy $ac_cv_prog_CC
  2272. shift
  2273. if test $# != 0; then
  2274. # We chose a different compiler from the bogus one.
  2275. # However, it has the same basename, so the bogon will be chosen
  2276. # first if we set CC to just the basename; use the full file name.
  2277. shift
  2278. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2279. fi
  2280. fi
  2281. fi
  2282. fi
  2283. CC=$ac_cv_prog_CC
  2284. if test -n "$CC"; then
  2285. { echo "$as_me:$LINENO: result: $CC" >&5
  2286. echo "${ECHO_T}$CC" >&6; }
  2287. else
  2288. { echo "$as_me:$LINENO: result: no" >&5
  2289. echo "${ECHO_T}no" >&6; }
  2290. fi
  2291. fi
  2292. if test -z "$CC"; then
  2293. if test -n "$ac_tool_prefix"; then
  2294. for ac_prog in cl.exe
  2295. do
  2296. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2297. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2298. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2299. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2300. if test "${ac_cv_prog_CC+set}" = set; then
  2301. echo $ECHO_N "(cached) $ECHO_C" >&6
  2302. else
  2303. if test -n "$CC"; then
  2304. ac_cv_prog_CC="$CC" # Let the user override the test.
  2305. else
  2306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2307. for as_dir in $PATH
  2308. do
  2309. IFS=$as_save_IFS
  2310. test -z "$as_dir" && as_dir=.
  2311. for ac_exec_ext in '' $ac_executable_extensions; do
  2312. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2313. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2314. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2315. break 2
  2316. fi
  2317. done
  2318. done
  2319. IFS=$as_save_IFS
  2320. fi
  2321. fi
  2322. CC=$ac_cv_prog_CC
  2323. if test -n "$CC"; then
  2324. { echo "$as_me:$LINENO: result: $CC" >&5
  2325. echo "${ECHO_T}$CC" >&6; }
  2326. else
  2327. { echo "$as_me:$LINENO: result: no" >&5
  2328. echo "${ECHO_T}no" >&6; }
  2329. fi
  2330. test -n "$CC" && break
  2331. done
  2332. fi
  2333. if test -z "$CC"; then
  2334. ac_ct_CC=$CC
  2335. for ac_prog in cl.exe
  2336. do
  2337. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2338. set dummy $ac_prog; ac_word=$2
  2339. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2340. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2341. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2342. echo $ECHO_N "(cached) $ECHO_C" >&6
  2343. else
  2344. if test -n "$ac_ct_CC"; then
  2345. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2346. else
  2347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2348. for as_dir in $PATH
  2349. do
  2350. IFS=$as_save_IFS
  2351. test -z "$as_dir" && as_dir=.
  2352. for ac_exec_ext in '' $ac_executable_extensions; do
  2353. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2354. ac_cv_prog_ac_ct_CC="$ac_prog"
  2355. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2356. break 2
  2357. fi
  2358. done
  2359. done
  2360. IFS=$as_save_IFS
  2361. fi
  2362. fi
  2363. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2364. if test -n "$ac_ct_CC"; then
  2365. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2366. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2367. else
  2368. { echo "$as_me:$LINENO: result: no" >&5
  2369. echo "${ECHO_T}no" >&6; }
  2370. fi
  2371. test -n "$ac_ct_CC" && break
  2372. done
  2373. if test "x$ac_ct_CC" = x; then
  2374. CC=""
  2375. else
  2376. case $cross_compiling:$ac_tool_warned in
  2377. yes:)
  2378. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2379. whose name does not start with the host triplet. If you think this
  2380. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2381. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2382. whose name does not start with the host triplet. If you think this
  2383. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2384. ac_tool_warned=yes ;;
  2385. esac
  2386. CC=$ac_ct_CC
  2387. fi
  2388. fi
  2389. fi
  2390. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2391. See \`config.log' for more details." >&5
  2392. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2393. See \`config.log' for more details." >&2;}
  2394. { (exit 1); exit 1; }; }
  2395. # Provide some information about the compiler.
  2396. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2397. ac_compiler=`set X $ac_compile; echo $2`
  2398. { (ac_try="$ac_compiler --version >&5"
  2399. case "(($ac_try" in
  2400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2401. *) ac_try_echo=$ac_try;;
  2402. esac
  2403. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2404. (eval "$ac_compiler --version >&5") 2>&5
  2405. ac_status=$?
  2406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2407. (exit $ac_status); }
  2408. { (ac_try="$ac_compiler -v >&5"
  2409. case "(($ac_try" in
  2410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2411. *) ac_try_echo=$ac_try;;
  2412. esac
  2413. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2414. (eval "$ac_compiler -v >&5") 2>&5
  2415. ac_status=$?
  2416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2417. (exit $ac_status); }
  2418. { (ac_try="$ac_compiler -V >&5"
  2419. case "(($ac_try" in
  2420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2421. *) ac_try_echo=$ac_try;;
  2422. esac
  2423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2424. (eval "$ac_compiler -V >&5") 2>&5
  2425. ac_status=$?
  2426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2427. (exit $ac_status); }
  2428. cat >conftest.$ac_ext <<_ACEOF
  2429. /* confdefs.h. */
  2430. _ACEOF
  2431. cat confdefs.h >>conftest.$ac_ext
  2432. cat >>conftest.$ac_ext <<_ACEOF
  2433. /* end confdefs.h. */
  2434. int
  2435. main ()
  2436. {
  2437. ;
  2438. return 0;
  2439. }
  2440. _ACEOF
  2441. ac_clean_files_save=$ac_clean_files
  2442. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2443. # Try to create an executable without -o first, disregard a.out.
  2444. # It will help us diagnose broken compilers, and finding out an intuition
  2445. # of exeext.
  2446. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2447. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2448. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2449. #
  2450. # List of possible output files, starting from the most likely.
  2451. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2452. # only as a last resort. b.out is created by i960 compilers.
  2453. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2454. #
  2455. # The IRIX 6 linker writes into existing files which may not be
  2456. # executable, retaining their permissions. Remove them first so a
  2457. # subsequent execution test works.
  2458. ac_rmfiles=
  2459. for ac_file in $ac_files
  2460. do
  2461. case $ac_file in
  2462. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2463. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2464. esac
  2465. done
  2466. rm -f $ac_rmfiles
  2467. if { (ac_try="$ac_link_default"
  2468. case "(($ac_try" in
  2469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2470. *) ac_try_echo=$ac_try;;
  2471. esac
  2472. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2473. (eval "$ac_link_default") 2>&5
  2474. ac_status=$?
  2475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2476. (exit $ac_status); }; then
  2477. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2478. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2479. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2480. # so that the user can short-circuit this test for compilers unknown to
  2481. # Autoconf.
  2482. for ac_file in $ac_files ''
  2483. do
  2484. test -f "$ac_file" || continue
  2485. case $ac_file in
  2486. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2487. ;;
  2488. [ab].out )
  2489. # We found the default executable, but exeext='' is most
  2490. # certainly right.
  2491. break;;
  2492. *.* )
  2493. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2494. then :; else
  2495. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2496. fi
  2497. # We set ac_cv_exeext here because the later test for it is not
  2498. # safe: cross compilers may not add the suffix if given an `-o'
  2499. # argument, so we may need to know it at that point already.
  2500. # Even if this section looks crufty: it has the advantage of
  2501. # actually working.
  2502. break;;
  2503. * )
  2504. break;;
  2505. esac
  2506. done
  2507. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2508. else
  2509. ac_file=''
  2510. fi
  2511. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2512. echo "${ECHO_T}$ac_file" >&6; }
  2513. if test -z "$ac_file"; then
  2514. echo "$as_me: failed program was:" >&5
  2515. sed 's/^/| /' conftest.$ac_ext >&5
  2516. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2517. See \`config.log' for more details." >&5
  2518. echo "$as_me: error: C compiler cannot create executables
  2519. See \`config.log' for more details." >&2;}
  2520. { (exit 77); exit 77; }; }
  2521. fi
  2522. ac_exeext=$ac_cv_exeext
  2523. # Check that the compiler produces executables we can run. If not, either
  2524. # the compiler is broken, or we cross compile.
  2525. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2526. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2527. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2528. # If not cross compiling, check that we can run a simple program.
  2529. if test "$cross_compiling" != yes; then
  2530. if { ac_try='./$ac_file'
  2531. { (case "(($ac_try" in
  2532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2533. *) ac_try_echo=$ac_try;;
  2534. esac
  2535. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2536. (eval "$ac_try") 2>&5
  2537. ac_status=$?
  2538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2539. (exit $ac_status); }; }; then
  2540. cross_compiling=no
  2541. else
  2542. if test "$cross_compiling" = maybe; then
  2543. cross_compiling=yes
  2544. else
  2545. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2546. If you meant to cross compile, use \`--host'.
  2547. See \`config.log' for more details." >&5
  2548. echo "$as_me: error: cannot run C compiled programs.
  2549. If you meant to cross compile, use \`--host'.
  2550. See \`config.log' for more details." >&2;}
  2551. { (exit 1); exit 1; }; }
  2552. fi
  2553. fi
  2554. fi
  2555. { echo "$as_me:$LINENO: result: yes" >&5
  2556. echo "${ECHO_T}yes" >&6; }
  2557. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2558. ac_clean_files=$ac_clean_files_save
  2559. # Check that the compiler produces executables we can run. If not, either
  2560. # the compiler is broken, or we cross compile.
  2561. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2562. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2563. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2564. echo "${ECHO_T}$cross_compiling" >&6; }
  2565. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2566. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2567. if { (ac_try="$ac_link"
  2568. case "(($ac_try" in
  2569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2570. *) ac_try_echo=$ac_try;;
  2571. esac
  2572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2573. (eval "$ac_link") 2>&5
  2574. ac_status=$?
  2575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2576. (exit $ac_status); }; then
  2577. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2578. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2579. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2580. # `rm'.
  2581. for ac_file in conftest.exe conftest conftest.*; do
  2582. test -f "$ac_file" || continue
  2583. case $ac_file in
  2584. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2585. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2586. break;;
  2587. * ) break;;
  2588. esac
  2589. done
  2590. else
  2591. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2592. See \`config.log' for more details." >&5
  2593. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2594. See \`config.log' for more details." >&2;}
  2595. { (exit 1); exit 1; }; }
  2596. fi
  2597. rm -f conftest$ac_cv_exeext
  2598. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2599. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  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. int
  2615. main ()
  2616. {
  2617. ;
  2618. return 0;
  2619. }
  2620. _ACEOF
  2621. rm -f conftest.o conftest.obj
  2622. if { (ac_try="$ac_compile"
  2623. case "(($ac_try" in
  2624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2625. *) ac_try_echo=$ac_try;;
  2626. esac
  2627. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2628. (eval "$ac_compile") 2>&5
  2629. ac_status=$?
  2630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2631. (exit $ac_status); }; then
  2632. for ac_file in conftest.o conftest.obj conftest.*; do
  2633. test -f "$ac_file" || continue;
  2634. case $ac_file in
  2635. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2636. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2637. break;;
  2638. esac
  2639. done
  2640. else
  2641. echo "$as_me: failed program was:" >&5
  2642. sed 's/^/| /' conftest.$ac_ext >&5
  2643. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2644. See \`config.log' for more details." >&5
  2645. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2646. See \`config.log' for more details." >&2;}
  2647. { (exit 1); exit 1; }; }
  2648. fi
  2649. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2650. fi
  2651. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2652. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2653. OBJEXT=$ac_cv_objext
  2654. ac_objext=$OBJEXT
  2655. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2656. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2657. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2658. echo $ECHO_N "(cached) $ECHO_C" >&6
  2659. else
  2660. cat >conftest.$ac_ext <<_ACEOF
  2661. /* confdefs.h. */
  2662. _ACEOF
  2663. cat confdefs.h >>conftest.$ac_ext
  2664. cat >>conftest.$ac_ext <<_ACEOF
  2665. /* end confdefs.h. */
  2666. int
  2667. main ()
  2668. {
  2669. #ifndef __GNUC__
  2670. choke me
  2671. #endif
  2672. ;
  2673. return 0;
  2674. }
  2675. _ACEOF
  2676. rm -f conftest.$ac_objext
  2677. if { (ac_try="$ac_compile"
  2678. case "(($ac_try" in
  2679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2680. *) ac_try_echo=$ac_try;;
  2681. esac
  2682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2683. (eval "$ac_compile") 2>conftest.er1
  2684. ac_status=$?
  2685. grep -v '^ *+' conftest.er1 >conftest.err
  2686. rm -f conftest.er1
  2687. cat conftest.err >&5
  2688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2689. (exit $ac_status); } && {
  2690. test -z "$ac_c_werror_flag" ||
  2691. test ! -s conftest.err
  2692. } && test -s conftest.$ac_objext; then
  2693. ac_compiler_gnu=yes
  2694. else
  2695. echo "$as_me: failed program was:" >&5
  2696. sed 's/^/| /' conftest.$ac_ext >&5
  2697. ac_compiler_gnu=no
  2698. fi
  2699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2700. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2701. fi
  2702. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2703. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2704. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2705. ac_test_CFLAGS=${CFLAGS+set}
  2706. ac_save_CFLAGS=$CFLAGS
  2707. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2708. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2709. if test "${ac_cv_prog_cc_g+set}" = set; then
  2710. echo $ECHO_N "(cached) $ECHO_C" >&6
  2711. else
  2712. ac_save_c_werror_flag=$ac_c_werror_flag
  2713. ac_c_werror_flag=yes
  2714. ac_cv_prog_cc_g=no
  2715. CFLAGS="-g"
  2716. cat >conftest.$ac_ext <<_ACEOF
  2717. /* confdefs.h. */
  2718. _ACEOF
  2719. cat confdefs.h >>conftest.$ac_ext
  2720. cat >>conftest.$ac_ext <<_ACEOF
  2721. /* end confdefs.h. */
  2722. int
  2723. main ()
  2724. {
  2725. ;
  2726. return 0;
  2727. }
  2728. _ACEOF
  2729. rm -f conftest.$ac_objext
  2730. if { (ac_try="$ac_compile"
  2731. case "(($ac_try" in
  2732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2733. *) ac_try_echo=$ac_try;;
  2734. esac
  2735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2736. (eval "$ac_compile") 2>conftest.er1
  2737. ac_status=$?
  2738. grep -v '^ *+' conftest.er1 >conftest.err
  2739. rm -f conftest.er1
  2740. cat conftest.err >&5
  2741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2742. (exit $ac_status); } && {
  2743. test -z "$ac_c_werror_flag" ||
  2744. test ! -s conftest.err
  2745. } && test -s conftest.$ac_objext; then
  2746. ac_cv_prog_cc_g=yes
  2747. else
  2748. echo "$as_me: failed program was:" >&5
  2749. sed 's/^/| /' conftest.$ac_ext >&5
  2750. CFLAGS=""
  2751. cat >conftest.$ac_ext <<_ACEOF
  2752. /* confdefs.h. */
  2753. _ACEOF
  2754. cat confdefs.h >>conftest.$ac_ext
  2755. cat >>conftest.$ac_ext <<_ACEOF
  2756. /* end confdefs.h. */
  2757. int
  2758. main ()
  2759. {
  2760. ;
  2761. return 0;
  2762. }
  2763. _ACEOF
  2764. rm -f conftest.$ac_objext
  2765. if { (ac_try="$ac_compile"
  2766. case "(($ac_try" in
  2767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2768. *) ac_try_echo=$ac_try;;
  2769. esac
  2770. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2771. (eval "$ac_compile") 2>conftest.er1
  2772. ac_status=$?
  2773. grep -v '^ *+' conftest.er1 >conftest.err
  2774. rm -f conftest.er1
  2775. cat conftest.err >&5
  2776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2777. (exit $ac_status); } && {
  2778. test -z "$ac_c_werror_flag" ||
  2779. test ! -s conftest.err
  2780. } && test -s conftest.$ac_objext; then
  2781. :
  2782. else
  2783. echo "$as_me: failed program was:" >&5
  2784. sed 's/^/| /' conftest.$ac_ext >&5
  2785. ac_c_werror_flag=$ac_save_c_werror_flag
  2786. CFLAGS="-g"
  2787. cat >conftest.$ac_ext <<_ACEOF
  2788. /* confdefs.h. */
  2789. _ACEOF
  2790. cat confdefs.h >>conftest.$ac_ext
  2791. cat >>conftest.$ac_ext <<_ACEOF
  2792. /* end confdefs.h. */
  2793. int
  2794. main ()
  2795. {
  2796. ;
  2797. return 0;
  2798. }
  2799. _ACEOF
  2800. rm -f conftest.$ac_objext
  2801. if { (ac_try="$ac_compile"
  2802. case "(($ac_try" in
  2803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2804. *) ac_try_echo=$ac_try;;
  2805. esac
  2806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2807. (eval "$ac_compile") 2>conftest.er1
  2808. ac_status=$?
  2809. grep -v '^ *+' conftest.er1 >conftest.err
  2810. rm -f conftest.er1
  2811. cat conftest.err >&5
  2812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2813. (exit $ac_status); } && {
  2814. test -z "$ac_c_werror_flag" ||
  2815. test ! -s conftest.err
  2816. } && test -s conftest.$ac_objext; then
  2817. ac_cv_prog_cc_g=yes
  2818. else
  2819. echo "$as_me: failed program was:" >&5
  2820. sed 's/^/| /' conftest.$ac_ext >&5
  2821. fi
  2822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2823. fi
  2824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2825. fi
  2826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2827. ac_c_werror_flag=$ac_save_c_werror_flag
  2828. fi
  2829. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2830. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2831. if test "$ac_test_CFLAGS" = set; then
  2832. CFLAGS=$ac_save_CFLAGS
  2833. elif test $ac_cv_prog_cc_g = yes; then
  2834. if test "$GCC" = yes; then
  2835. CFLAGS="-g -O2"
  2836. else
  2837. CFLAGS="-g"
  2838. fi
  2839. else
  2840. if test "$GCC" = yes; then
  2841. CFLAGS="-O2"
  2842. else
  2843. CFLAGS=
  2844. fi
  2845. fi
  2846. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2847. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2848. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2849. echo $ECHO_N "(cached) $ECHO_C" >&6
  2850. else
  2851. ac_cv_prog_cc_c89=no
  2852. ac_save_CC=$CC
  2853. cat >conftest.$ac_ext <<_ACEOF
  2854. /* confdefs.h. */
  2855. _ACEOF
  2856. cat confdefs.h >>conftest.$ac_ext
  2857. cat >>conftest.$ac_ext <<_ACEOF
  2858. /* end confdefs.h. */
  2859. #include <stdarg.h>
  2860. #include <stdio.h>
  2861. #include <sys/types.h>
  2862. #include <sys/stat.h>
  2863. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2864. struct buf { int x; };
  2865. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2866. static char *e (p, i)
  2867. char **p;
  2868. int i;
  2869. {
  2870. return p[i];
  2871. }
  2872. static char *f (char * (*g) (char **, int), char **p, ...)
  2873. {
  2874. char *s;
  2875. va_list v;
  2876. va_start (v,p);
  2877. s = g (p, va_arg (v,int));
  2878. va_end (v);
  2879. return s;
  2880. }
  2881. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2882. function prototypes and stuff, but not '\xHH' hex character constants.
  2883. These don't provoke an error unfortunately, instead are silently treated
  2884. as 'x'. The following induces an error, until -std is added to get
  2885. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2886. array size at least. It's necessary to write '\x00'==0 to get something
  2887. that's true only with -std. */
  2888. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2889. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2890. inside strings and character constants. */
  2891. #define FOO(x) 'x'
  2892. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2893. int test (int i, double x);
  2894. struct s1 {int (*f) (int a);};
  2895. struct s2 {int (*f) (double a);};
  2896. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2897. int argc;
  2898. char **argv;
  2899. int
  2900. main ()
  2901. {
  2902. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2903. ;
  2904. return 0;
  2905. }
  2906. _ACEOF
  2907. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2908. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2909. do
  2910. CC="$ac_save_CC $ac_arg"
  2911. rm -f conftest.$ac_objext
  2912. if { (ac_try="$ac_compile"
  2913. case "(($ac_try" in
  2914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2915. *) ac_try_echo=$ac_try;;
  2916. esac
  2917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2918. (eval "$ac_compile") 2>conftest.er1
  2919. ac_status=$?
  2920. grep -v '^ *+' conftest.er1 >conftest.err
  2921. rm -f conftest.er1
  2922. cat conftest.err >&5
  2923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2924. (exit $ac_status); } && {
  2925. test -z "$ac_c_werror_flag" ||
  2926. test ! -s conftest.err
  2927. } && test -s conftest.$ac_objext; then
  2928. ac_cv_prog_cc_c89=$ac_arg
  2929. else
  2930. echo "$as_me: failed program was:" >&5
  2931. sed 's/^/| /' conftest.$ac_ext >&5
  2932. fi
  2933. rm -f core conftest.err conftest.$ac_objext
  2934. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2935. done
  2936. rm -f conftest.$ac_ext
  2937. CC=$ac_save_CC
  2938. fi
  2939. # AC_CACHE_VAL
  2940. case "x$ac_cv_prog_cc_c89" in
  2941. x)
  2942. { echo "$as_me:$LINENO: result: none needed" >&5
  2943. echo "${ECHO_T}none needed" >&6; } ;;
  2944. xno)
  2945. { echo "$as_me:$LINENO: result: unsupported" >&5
  2946. echo "${ECHO_T}unsupported" >&6; } ;;
  2947. *)
  2948. CC="$CC $ac_cv_prog_cc_c89"
  2949. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2950. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2951. esac
  2952. ac_ext=c
  2953. ac_cpp='$CPP $CPPFLAGS'
  2954. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2955. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2956. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2957. ac_ext=c
  2958. ac_cpp='$CPP $CPPFLAGS'
  2959. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2960. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2961. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2962. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2963. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  2964. # On Suns, sometimes $CPP names a directory.
  2965. if test -n "$CPP" && test -d "$CPP"; then
  2966. CPP=
  2967. fi
  2968. if test -z "$CPP"; then
  2969. if test "${ac_cv_prog_CPP+set}" = set; then
  2970. echo $ECHO_N "(cached) $ECHO_C" >&6
  2971. else
  2972. # Double quotes because CPP needs to be expanded
  2973. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2974. do
  2975. ac_preproc_ok=false
  2976. for ac_c_preproc_warn_flag in '' yes
  2977. do
  2978. # Use a header file that comes with gcc, so configuring glibc
  2979. # with a fresh cross-compiler works.
  2980. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2981. # <limits.h> exists even on freestanding compilers.
  2982. # On the NeXT, cc -E runs the code through the compiler's parser,
  2983. # not just through cpp. "Syntax error" is here to catch this case.
  2984. cat >conftest.$ac_ext <<_ACEOF
  2985. /* confdefs.h. */
  2986. _ACEOF
  2987. cat confdefs.h >>conftest.$ac_ext
  2988. cat >>conftest.$ac_ext <<_ACEOF
  2989. /* end confdefs.h. */
  2990. #ifdef __STDC__
  2991. # include <limits.h>
  2992. #else
  2993. # include <assert.h>
  2994. #endif
  2995. Syntax error
  2996. _ACEOF
  2997. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2998. case "(($ac_try" in
  2999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3000. *) ac_try_echo=$ac_try;;
  3001. esac
  3002. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3003. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3004. ac_status=$?
  3005. grep -v '^ *+' conftest.er1 >conftest.err
  3006. rm -f conftest.er1
  3007. cat conftest.err >&5
  3008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3009. (exit $ac_status); } >/dev/null && {
  3010. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3011. test ! -s conftest.err
  3012. }; then
  3013. :
  3014. else
  3015. echo "$as_me: failed program was:" >&5
  3016. sed 's/^/| /' conftest.$ac_ext >&5
  3017. # Broken: fails on valid input.
  3018. continue
  3019. fi
  3020. rm -f conftest.err conftest.$ac_ext
  3021. # OK, works on sane cases. Now check whether nonexistent headers
  3022. # can be detected and how.
  3023. cat >conftest.$ac_ext <<_ACEOF
  3024. /* confdefs.h. */
  3025. _ACEOF
  3026. cat confdefs.h >>conftest.$ac_ext
  3027. cat >>conftest.$ac_ext <<_ACEOF
  3028. /* end confdefs.h. */
  3029. #include <ac_nonexistent.h>
  3030. _ACEOF
  3031. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3032. case "(($ac_try" in
  3033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3034. *) ac_try_echo=$ac_try;;
  3035. esac
  3036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3037. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3038. ac_status=$?
  3039. grep -v '^ *+' conftest.er1 >conftest.err
  3040. rm -f conftest.er1
  3041. cat conftest.err >&5
  3042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3043. (exit $ac_status); } >/dev/null && {
  3044. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3045. test ! -s conftest.err
  3046. }; then
  3047. # Broken: success on invalid input.
  3048. continue
  3049. else
  3050. echo "$as_me: failed program was:" >&5
  3051. sed 's/^/| /' conftest.$ac_ext >&5
  3052. # Passes both tests.
  3053. ac_preproc_ok=:
  3054. break
  3055. fi
  3056. rm -f conftest.err conftest.$ac_ext
  3057. done
  3058. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3059. rm -f conftest.err conftest.$ac_ext
  3060. if $ac_preproc_ok; then
  3061. break
  3062. fi
  3063. done
  3064. ac_cv_prog_CPP=$CPP
  3065. fi
  3066. CPP=$ac_cv_prog_CPP
  3067. else
  3068. ac_cv_prog_CPP=$CPP
  3069. fi
  3070. { echo "$as_me:$LINENO: result: $CPP" >&5
  3071. echo "${ECHO_T}$CPP" >&6; }
  3072. ac_preproc_ok=false
  3073. for ac_c_preproc_warn_flag in '' yes
  3074. do
  3075. # Use a header file that comes with gcc, so configuring glibc
  3076. # with a fresh cross-compiler works.
  3077. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3078. # <limits.h> exists even on freestanding compilers.
  3079. # On the NeXT, cc -E runs the code through the compiler's parser,
  3080. # not just through cpp. "Syntax error" is here to catch this case.
  3081. cat >conftest.$ac_ext <<_ACEOF
  3082. /* confdefs.h. */
  3083. _ACEOF
  3084. cat confdefs.h >>conftest.$ac_ext
  3085. cat >>conftest.$ac_ext <<_ACEOF
  3086. /* end confdefs.h. */
  3087. #ifdef __STDC__
  3088. # include <limits.h>
  3089. #else
  3090. # include <assert.h>
  3091. #endif
  3092. Syntax error
  3093. _ACEOF
  3094. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3095. case "(($ac_try" in
  3096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3097. *) ac_try_echo=$ac_try;;
  3098. esac
  3099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3100. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3101. ac_status=$?
  3102. grep -v '^ *+' conftest.er1 >conftest.err
  3103. rm -f conftest.er1
  3104. cat conftest.err >&5
  3105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3106. (exit $ac_status); } >/dev/null && {
  3107. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3108. test ! -s conftest.err
  3109. }; then
  3110. :
  3111. else
  3112. echo "$as_me: failed program was:" >&5
  3113. sed 's/^/| /' conftest.$ac_ext >&5
  3114. # Broken: fails on valid input.
  3115. continue
  3116. fi
  3117. rm -f conftest.err conftest.$ac_ext
  3118. # OK, works on sane cases. Now check whether nonexistent headers
  3119. # can be detected and how.
  3120. cat >conftest.$ac_ext <<_ACEOF
  3121. /* confdefs.h. */
  3122. _ACEOF
  3123. cat confdefs.h >>conftest.$ac_ext
  3124. cat >>conftest.$ac_ext <<_ACEOF
  3125. /* end confdefs.h. */
  3126. #include <ac_nonexistent.h>
  3127. _ACEOF
  3128. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3129. case "(($ac_try" in
  3130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3131. *) ac_try_echo=$ac_try;;
  3132. esac
  3133. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3134. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3135. ac_status=$?
  3136. grep -v '^ *+' conftest.er1 >conftest.err
  3137. rm -f conftest.er1
  3138. cat conftest.err >&5
  3139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3140. (exit $ac_status); } >/dev/null && {
  3141. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3142. test ! -s conftest.err
  3143. }; then
  3144. # Broken: success on invalid input.
  3145. continue
  3146. else
  3147. echo "$as_me: failed program was:" >&5
  3148. sed 's/^/| /' conftest.$ac_ext >&5
  3149. # Passes both tests.
  3150. ac_preproc_ok=:
  3151. break
  3152. fi
  3153. rm -f conftest.err conftest.$ac_ext
  3154. done
  3155. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3156. rm -f conftest.err conftest.$ac_ext
  3157. if $ac_preproc_ok; then
  3158. :
  3159. else
  3160. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3161. See \`config.log' for more details." >&5
  3162. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3163. See \`config.log' for more details." >&2;}
  3164. { (exit 1); exit 1; }; }
  3165. fi
  3166. ac_ext=c
  3167. ac_cpp='$CPP $CPPFLAGS'
  3168. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3169. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3170. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3171. { echo "$as_me:$LINENO: checking the C preprocessor" >&5
  3172. echo $ECHO_N "checking the C preprocessor... $ECHO_C" >&6; }
  3173. cat >conftest.$ac_ext <<_ACEOF
  3174. /* confdefs.h. */
  3175. _ACEOF
  3176. cat confdefs.h >>conftest.$ac_ext
  3177. cat >>conftest.$ac_ext <<_ACEOF
  3178. /* end confdefs.h. */
  3179. #include <stdlib.h>
  3180. _ACEOF
  3181. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3182. case "(($ac_try" in
  3183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3184. *) ac_try_echo=$ac_try;;
  3185. esac
  3186. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3187. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3188. ac_status=$?
  3189. grep -v '^ *+' conftest.er1 >conftest.err
  3190. rm -f conftest.er1
  3191. cat conftest.err >&5
  3192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3193. (exit $ac_status); } >/dev/null && {
  3194. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3195. test ! -s conftest.err
  3196. }; then
  3197. { echo "$as_me:$LINENO: result: works" >&5
  3198. echo "${ECHO_T}works" >&6; }
  3199. else
  3200. echo "$as_me: failed program was:" >&5
  3201. sed 's/^/| /' conftest.$ac_ext >&5
  3202. { echo "$as_me:$LINENO: WARNING: C preprocessor, \`$CPP', doesn't work" >&5
  3203. echo "$as_me: WARNING: C preprocessor, \`$CPP', doesn't work" >&2;}
  3204. echo "CPP:C preprocessor:/lib/cpp" >> confdefs.missing
  3205. fi
  3206. rm -f conftest.err conftest.$ac_ext
  3207. { echo "$as_me:$LINENO: checking for C const" >&5
  3208. echo $ECHO_N "checking for C const... $ECHO_C" >&6; }
  3209. cat >conftest.$ac_ext <<_ACEOF
  3210. /* confdefs.h. */
  3211. _ACEOF
  3212. cat confdefs.h >>conftest.$ac_ext
  3213. cat >>conftest.$ac_ext <<_ACEOF
  3214. /* end confdefs.h. */
  3215. int
  3216. main ()
  3217. {
  3218. /* Ultrix mips cc rejects this. */
  3219. typedef int charset[2]; const charset x;
  3220. ;
  3221. return 0;
  3222. }
  3223. _ACEOF
  3224. rm -f conftest.$ac_objext
  3225. if { (ac_try="$ac_compile"
  3226. case "(($ac_try" in
  3227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3228. *) ac_try_echo=$ac_try;;
  3229. esac
  3230. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3231. (eval "$ac_compile") 2>conftest.er1
  3232. ac_status=$?
  3233. grep -v '^ *+' conftest.er1 >conftest.err
  3234. rm -f conftest.er1
  3235. cat conftest.err >&5
  3236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3237. (exit $ac_status); } && {
  3238. test -z "$ac_c_werror_flag" ||
  3239. test ! -s conftest.err
  3240. } && test -s conftest.$ac_objext; then
  3241. { echo "$as_me:$LINENO: result: yes" >&5
  3242. echo "${ECHO_T}yes" >&6; }
  3243. else
  3244. echo "$as_me: failed program was:" >&5
  3245. sed 's/^/| /' conftest.$ac_ext >&5
  3246. UD_NO_CONST="1"
  3247. cat >>confdefs.h <<\_ACEOF
  3248. #define UD_NO_CONST 1
  3249. _ACEOF
  3250. { echo "$as_me:$LINENO: result: no" >&5
  3251. echo "${ECHO_T}no" >&6; }
  3252. fi
  3253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3254. { echo "$as_me:$LINENO: checking for C volatile" >&5
  3255. echo $ECHO_N "checking for C volatile... $ECHO_C" >&6; }
  3256. cat >conftest.$ac_ext <<_ACEOF
  3257. /* confdefs.h. */
  3258. _ACEOF
  3259. cat confdefs.h >>conftest.$ac_ext
  3260. cat >>conftest.$ac_ext <<_ACEOF
  3261. /* end confdefs.h. */
  3262. int
  3263. main ()
  3264. {
  3265. typedef int charset[2]; volatile charset x;
  3266. ;
  3267. return 0;
  3268. }
  3269. _ACEOF
  3270. rm -f conftest.$ac_objext
  3271. if { (ac_try="$ac_compile"
  3272. case "(($ac_try" in
  3273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3274. *) ac_try_echo=$ac_try;;
  3275. esac
  3276. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3277. (eval "$ac_compile") 2>conftest.er1
  3278. ac_status=$?
  3279. grep -v '^ *+' conftest.er1 >conftest.err
  3280. rm -f conftest.er1
  3281. cat conftest.err >&5
  3282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3283. (exit $ac_status); } && {
  3284. test -z "$ac_c_werror_flag" ||
  3285. test ! -s conftest.err
  3286. } && test -s conftest.$ac_objext; then
  3287. { echo "$as_me:$LINENO: result: yes" >&5
  3288. echo "${ECHO_T}yes" >&6; }
  3289. else
  3290. echo "$as_me: failed program was:" >&5
  3291. sed 's/^/| /' conftest.$ac_ext >&5
  3292. { echo "$as_me:$LINENO: result: no" >&5
  3293. echo "${ECHO_T}no" >&6; }
  3294. UD_NO_VOLATILE="1"
  3295. cat >>confdefs.h <<\_ACEOF
  3296. #define UD_NO_VOLATILE 1
  3297. _ACEOF
  3298. fi
  3299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3300. { echo "$as_me:$LINENO: checking for C signed" >&5
  3301. echo $ECHO_N "checking for C signed... $ECHO_C" >&6; }
  3302. cat >conftest.$ac_ext <<_ACEOF
  3303. /* confdefs.h. */
  3304. _ACEOF
  3305. cat confdefs.h >>conftest.$ac_ext
  3306. cat >>conftest.$ac_ext <<_ACEOF
  3307. /* end confdefs.h. */
  3308. int
  3309. main ()
  3310. {
  3311. signed char x;
  3312. ;
  3313. return 0;
  3314. }
  3315. _ACEOF
  3316. rm -f conftest.$ac_objext
  3317. if { (ac_try="$ac_compile"
  3318. case "(($ac_try" in
  3319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3320. *) ac_try_echo=$ac_try;;
  3321. esac
  3322. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3323. (eval "$ac_compile") 2>conftest.er1
  3324. ac_status=$?
  3325. grep -v '^ *+' conftest.er1 >conftest.err
  3326. rm -f conftest.er1
  3327. cat conftest.err >&5
  3328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3329. (exit $ac_status); } && {
  3330. test -z "$ac_c_werror_flag" ||
  3331. test ! -s conftest.err
  3332. } && test -s conftest.$ac_objext; then
  3333. { echo "$as_me:$LINENO: result: yes" >&5
  3334. echo "${ECHO_T}yes" >&6; }
  3335. else
  3336. echo "$as_me: failed program was:" >&5
  3337. sed 's/^/| /' conftest.$ac_ext >&5
  3338. { echo "$as_me:$LINENO: result: no" >&5
  3339. echo "${ECHO_T}no" >&6; }
  3340. UD_NO_SIGNED="1"
  3341. cat >>confdefs.h <<\_ACEOF
  3342. #define UD_NO_SIGNED 1
  3343. _ACEOF
  3344. fi
  3345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3346. { echo "$as_me:$LINENO: checking for C function prototypes" >&5
  3347. echo $ECHO_N "checking for C function prototypes... $ECHO_C" >&6; }
  3348. cat >conftest.$ac_ext <<_ACEOF
  3349. /* confdefs.h. */
  3350. _ACEOF
  3351. cat confdefs.h >>conftest.$ac_ext
  3352. cat >>conftest.$ac_ext <<_ACEOF
  3353. /* end confdefs.h. */
  3354. int
  3355. main ()
  3356. {
  3357. extern int foo(int bar);
  3358. ;
  3359. return 0;
  3360. }
  3361. _ACEOF
  3362. rm -f conftest.$ac_objext
  3363. if { (ac_try="$ac_compile"
  3364. case "(($ac_try" in
  3365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3366. *) ac_try_echo=$ac_try;;
  3367. esac
  3368. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3369. (eval "$ac_compile") 2>conftest.er1
  3370. ac_status=$?
  3371. grep -v '^ *+' conftest.er1 >conftest.err
  3372. rm -f conftest.er1
  3373. cat conftest.err >&5
  3374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3375. (exit $ac_status); } && {
  3376. test -z "$ac_c_werror_flag" ||
  3377. test ! -s conftest.err
  3378. } && test -s conftest.$ac_objext; then
  3379. { echo "$as_me:$LINENO: result: yes" >&5
  3380. echo "${ECHO_T}yes" >&6; }
  3381. else
  3382. echo "$as_me: failed program was:" >&5
  3383. sed 's/^/| /' conftest.$ac_ext >&5
  3384. { echo "$as_me:$LINENO: result: no" >&5
  3385. echo "${ECHO_T}no" >&6; }
  3386. UD_NO_PROTOTYPES="1"
  3387. cat >>confdefs.h <<\_ACEOF
  3388. #define UD_NO_PROTOTYPES 1
  3389. _ACEOF
  3390. fi
  3391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3392. for arg in stdarg.h.in; do
  3393. case "$PORT_MANIFEST" in
  3394. *$arg*)
  3395. ;;
  3396. *)
  3397. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  3398. ;;
  3399. esac
  3400. done
  3401. { echo "$as_me:$LINENO: checking for standard C variadic functions" >&5
  3402. echo $ECHO_N "checking for standard C variadic functions... $ECHO_C" >&6; }
  3403. cat >conftest.$ac_ext <<_ACEOF
  3404. /* confdefs.h. */
  3405. _ACEOF
  3406. cat confdefs.h >>conftest.$ac_ext
  3407. cat >>conftest.$ac_ext <<_ACEOF
  3408. /* end confdefs.h. */
  3409. #include <stdarg.h>
  3410. int
  3411. main ()
  3412. {
  3413. }
  3414. int foo(int bar, ...) {
  3415. va_list alist;
  3416. va_start(alist, bar);
  3417. bar = (int)va_arg(alist, int);
  3418. va_end(alist);
  3419. ;
  3420. return 0;
  3421. }
  3422. _ACEOF
  3423. rm -f conftest.$ac_objext
  3424. if { (ac_try="$ac_compile"
  3425. case "(($ac_try" in
  3426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3427. *) ac_try_echo=$ac_try;;
  3428. esac
  3429. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3430. (eval "$ac_compile") 2>conftest.er1
  3431. ac_status=$?
  3432. grep -v '^ *+' conftest.er1 >conftest.err
  3433. rm -f conftest.er1
  3434. cat conftest.err >&5
  3435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3436. (exit $ac_status); } && {
  3437. test -z "$ac_c_werror_flag" ||
  3438. test ! -s conftest.err
  3439. } && test -s conftest.$ac_objext; then
  3440. { echo "$as_me:$LINENO: result: yes" >&5
  3441. echo "${ECHO_T}yes" >&6; }
  3442. echo "#include <stdarg.h>" > conftestpath.c
  3443. #
  3444. # We add additional `/'s to the header file name to preclude compiler
  3445. # warnings about the non-portability of `#include "/usr/include/..."'.
  3446. #
  3447. case `uname -s`${GCC-} in
  3448. AIX)
  3449. #
  3450. # AIX's C compiler doesn't emit a line that gives the pathname of
  3451. # the included file.
  3452. #
  3453. # AIX's C compiler puts dependency information in a `.u' file.
  3454. #
  3455. # AIX 4.1's cc(1) makes the following complaint:
  3456. # ld: 0711-317 ERROR: Undefined symbol: .main
  3457. #
  3458. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  3459. # /dev/null.
  3460. #
  3461. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  3462. path=`sed -n '/[^\/]*\(\/[^ ]*stdarg\.h\).*/s//\1/p' \
  3463. conftestpath.u | head -1`
  3464. rm conftestpath.u
  3465. ;;
  3466. HP-UX)
  3467. #
  3468. # HP-UX's C compiler doesn't have a dependency-generation option,
  3469. # so we use another method.
  3470. #
  3471. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  3472. sed -n '/[^\/]*\(\/[^ ]*stdarg\.h\).*/s//\1/p' |
  3473. head -1`
  3474. ;;
  3475. *)
  3476. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  3477. sed -n '/[^\/]*\(\/[^ ]*stdarg\.h\).*/s//\1/p' |
  3478. head -1`
  3479. ;;
  3480. esac
  3481. case "$path" in
  3482. '')
  3483. path=/dev/null
  3484. ;;
  3485. *)
  3486. path=//$path
  3487. ;;
  3488. esac
  3489. cat >>confdefs.h <<_ACEOF
  3490. #define UD_SYSTEM_STDARG_H "$path"
  3491. _ACEOF
  3492. for arg in misc; do
  3493. case "$PORT_SUBDIRS" in
  3494. *$arg*)
  3495. ;;
  3496. *)
  3497. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  3498. ;;
  3499. esac
  3500. done
  3501. else
  3502. echo "$as_me: failed program was:" >&5
  3503. sed 's/^/| /' conftest.$ac_ext >&5
  3504. { echo "$as_me:$LINENO: result: no" >&5
  3505. echo "${ECHO_T}no" >&6; }
  3506. cat >>confdefs.h <<\_ACEOF
  3507. #define UD_NO_STDARG 1
  3508. _ACEOF
  3509. echo "#include <varargs.h>" > conftestpath.c
  3510. #
  3511. # We add additional `/'s to the header file name to preclude compiler
  3512. # warnings about the non-portability of `#include "/usr/include/..."'.
  3513. #
  3514. case `uname -s`${GCC-} in
  3515. AIX)
  3516. #
  3517. # AIX's C compiler doesn't emit a line that gives the pathname of
  3518. # the included file.
  3519. #
  3520. # AIX's C compiler puts dependency information in a `.u' file.
  3521. #
  3522. # AIX 4.1's cc(1) makes the following complaint:
  3523. # ld: 0711-317 ERROR: Undefined symbol: .main
  3524. #
  3525. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  3526. # /dev/null.
  3527. #
  3528. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  3529. path=`sed -n '/[^\/]*\(\/[^ ]*varargs\.h\).*/s//\1/p' \
  3530. conftestpath.u | head -1`
  3531. rm conftestpath.u
  3532. ;;
  3533. HP-UX)
  3534. #
  3535. # HP-UX's C compiler doesn't have a dependency-generation option,
  3536. # so we use another method.
  3537. #
  3538. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  3539. sed -n '/[^\/]*\(\/[^ ]*varargs\.h\).*/s//\1/p' |
  3540. head -1`
  3541. ;;
  3542. *)
  3543. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  3544. sed -n '/[^\/]*\(\/[^ ]*varargs\.h\).*/s//\1/p' |
  3545. head -1`
  3546. ;;
  3547. esac
  3548. case "$path" in
  3549. '')
  3550. path=/dev/null
  3551. ;;
  3552. *)
  3553. path=//$path
  3554. ;;
  3555. esac
  3556. cat >>confdefs.h <<_ACEOF
  3557. #define UD_SYSTEM_STDARG_H "$path"
  3558. _ACEOF
  3559. for arg in misc; do
  3560. case "$PORT_SUBDIRS" in
  3561. *$arg*)
  3562. ;;
  3563. *)
  3564. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  3565. ;;
  3566. esac
  3567. done
  3568. fi
  3569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3570. { echo "$as_me:$LINENO: checking for standard C string generation" >&5
  3571. echo $ECHO_N "checking for standard C string generation... $ECHO_C" >&6; }
  3572. cat >conftest.$ac_ext <<_ACEOF
  3573. /* confdefs.h. */
  3574. _ACEOF
  3575. cat confdefs.h >>conftest.$ac_ext
  3576. cat >>conftest.$ac_ext <<_ACEOF
  3577. /* end confdefs.h. */
  3578. # define MAKESTRING(x) #x
  3579. int
  3580. main ()
  3581. {
  3582. char *cp = MAKESTRING(foo);
  3583. ;
  3584. return 0;
  3585. }
  3586. _ACEOF
  3587. rm -f conftest.$ac_objext
  3588. if { (ac_try="$ac_compile"
  3589. case "(($ac_try" in
  3590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3591. *) ac_try_echo=$ac_try;;
  3592. esac
  3593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3594. (eval "$ac_compile") 2>conftest.er1
  3595. ac_status=$?
  3596. grep -v '^ *+' conftest.er1 >conftest.err
  3597. rm -f conftest.er1
  3598. cat conftest.err >&5
  3599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3600. (exit $ac_status); } && {
  3601. test -z "$ac_c_werror_flag" ||
  3602. test ! -s conftest.err
  3603. } && test -s conftest.$ac_objext; then
  3604. { echo "$as_me:$LINENO: result: yes" >&5
  3605. echo "${ECHO_T}yes" >&6; }
  3606. else
  3607. echo "$as_me: failed program was:" >&5
  3608. sed 's/^/| /' conftest.$ac_ext >&5
  3609. { echo "$as_me:$LINENO: result: no" >&5
  3610. echo "${ECHO_T}no" >&6; }
  3611. UD_NO_HASH="1"
  3612. cat >>confdefs.h <<\_ACEOF
  3613. #define UD_NO_HASH 1
  3614. _ACEOF
  3615. fi
  3616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3617. { echo "$as_me:$LINENO: checking for standard C token pasting" >&5
  3618. echo $ECHO_N "checking for standard C token pasting... $ECHO_C" >&6; }
  3619. cat >conftest.$ac_ext <<_ACEOF
  3620. /* confdefs.h. */
  3621. _ACEOF
  3622. cat confdefs.h >>conftest.$ac_ext
  3623. cat >>conftest.$ac_ext <<_ACEOF
  3624. /* end confdefs.h. */
  3625. #define GLUE(a,b) a ## b
  3626. int
  3627. main ()
  3628. {
  3629. char *GLUE(c,p) = "foo";
  3630. ;
  3631. return 0;
  3632. }
  3633. _ACEOF
  3634. rm -f conftest.$ac_objext
  3635. if { (ac_try="$ac_compile"
  3636. case "(($ac_try" in
  3637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3638. *) ac_try_echo=$ac_try;;
  3639. esac
  3640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3641. (eval "$ac_compile") 2>conftest.er1
  3642. ac_status=$?
  3643. grep -v '^ *+' conftest.er1 >conftest.err
  3644. rm -f conftest.er1
  3645. cat conftest.err >&5
  3646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3647. (exit $ac_status); } && {
  3648. test -z "$ac_c_werror_flag" ||
  3649. test ! -s conftest.err
  3650. } && test -s conftest.$ac_objext; then
  3651. { echo "$as_me:$LINENO: result: yes" >&5
  3652. echo "${ECHO_T}yes" >&6; }
  3653. else
  3654. echo "$as_me: failed program was:" >&5
  3655. sed 's/^/| /' conftest.$ac_ext >&5
  3656. { echo "$as_me:$LINENO: result: no" >&5
  3657. echo "${ECHO_T}no" >&6; }
  3658. UD_NO_HASHHASH="1"
  3659. cat >>confdefs.h <<\_ACEOF
  3660. #define UD_NO_HASHHASH 1
  3661. _ACEOF
  3662. fi
  3663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3664. { echo "$as_me:$LINENO: checking C void pointer" >&5
  3665. echo $ECHO_N "checking C void pointer... $ECHO_C" >&6; }
  3666. cat >conftest.$ac_ext <<_ACEOF
  3667. /* confdefs.h. */
  3668. _ACEOF
  3669. cat confdefs.h >>conftest.$ac_ext
  3670. cat >>conftest.$ac_ext <<_ACEOF
  3671. /* end confdefs.h. */
  3672. int
  3673. main ()
  3674. {
  3675. extern void *foo();
  3676. ;
  3677. return 0;
  3678. }
  3679. _ACEOF
  3680. rm -f conftest.$ac_objext
  3681. if { (ac_try="$ac_compile"
  3682. case "(($ac_try" in
  3683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3684. *) ac_try_echo=$ac_try;;
  3685. esac
  3686. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3687. (eval "$ac_compile") 2>conftest.er1
  3688. ac_status=$?
  3689. grep -v '^ *+' conftest.er1 >conftest.err
  3690. rm -f conftest.er1
  3691. cat conftest.err >&5
  3692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3693. (exit $ac_status); } && {
  3694. test -z "$ac_c_werror_flag" ||
  3695. test ! -s conftest.err
  3696. } && test -s conftest.$ac_objext; then
  3697. { echo "$as_me:$LINENO: result: yes" >&5
  3698. echo "${ECHO_T}yes" >&6; }
  3699. else
  3700. echo "$as_me: failed program was:" >&5
  3701. sed 's/^/| /' conftest.$ac_ext >&5
  3702. { echo "$as_me:$LINENO: result: no" >&5
  3703. echo "${ECHO_T}no" >&6; }
  3704. UD_NO_VOIDSTAR="1"
  3705. cat >>confdefs.h <<\_ACEOF
  3706. #define UD_NO_VOIDSTAR 1
  3707. _ACEOF
  3708. fi
  3709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3710. ac_config_headers="$ac_config_headers port/misc/udposix.h"
  3711. for arg in udposix.h.in; do
  3712. case "$PORT_MANIFEST" in
  3713. *$arg*)
  3714. ;;
  3715. *)
  3716. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  3717. ;;
  3718. esac
  3719. done
  3720. # We use ar(1) under UNICOS even though bld(1) is preferred because bld(1)
  3721. # doesn't understand the "u" option.
  3722. # Extract the first word of "ar", so it can be a program name with args.
  3723. set dummy ar; ac_word=$2
  3724. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3725. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3726. if test "${ac_cv_prog_AR+set}" = set; then
  3727. echo $ECHO_N "(cached) $ECHO_C" >&6
  3728. else
  3729. if test -n "$AR"; then
  3730. ac_cv_prog_AR="$AR" # Let the user override the test.
  3731. else
  3732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3733. for as_dir in $PATH
  3734. do
  3735. IFS=$as_save_IFS
  3736. test -z "$as_dir" && as_dir=.
  3737. for ac_exec_ext in '' $ac_executable_extensions; do
  3738. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3739. ac_cv_prog_AR="ar"
  3740. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3741. break 2
  3742. fi
  3743. done
  3744. done
  3745. IFS=$as_save_IFS
  3746. fi
  3747. fi
  3748. AR=$ac_cv_prog_AR
  3749. if test -n "$AR"; then
  3750. { echo "$as_me:$LINENO: result: $AR" >&5
  3751. echo "${ECHO_T}$AR" >&6; }
  3752. else
  3753. { echo "$as_me:$LINENO: result: no" >&5
  3754. echo "${ECHO_T}no" >&6; }
  3755. fi
  3756. if test -z "$AR"; then
  3757. echo "AR:library utility:/bin/ar" >> confdefs.missing
  3758. fi
  3759. { echo "$as_me:$LINENO: checking for tar flags" >&5
  3760. echo $ECHO_N "checking for tar flags... $ECHO_C" >&6; }
  3761. case "$OPSYS" in
  3762. aix*)
  3763. TARFLAGS=-chf
  3764. ;;
  3765. bsdos|irix*)
  3766. TARFLAGS=-cLof
  3767. ;;
  3768. *)
  3769. TARFLAGS=-chof
  3770. ;;
  3771. esac
  3772. { echo "$as_me:$LINENO: result: $TARFLAGS" >&5
  3773. echo "${ECHO_T}$TARFLAGS" >&6; }
  3774. if test -n "$ac_tool_prefix"; then
  3775. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3776. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3777. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3778. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3779. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3780. echo $ECHO_N "(cached) $ECHO_C" >&6
  3781. else
  3782. if test -n "$RANLIB"; then
  3783. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3784. else
  3785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3786. for as_dir in $PATH
  3787. do
  3788. IFS=$as_save_IFS
  3789. test -z "$as_dir" && as_dir=.
  3790. for ac_exec_ext in '' $ac_executable_extensions; do
  3791. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3792. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3793. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3794. break 2
  3795. fi
  3796. done
  3797. done
  3798. IFS=$as_save_IFS
  3799. fi
  3800. fi
  3801. RANLIB=$ac_cv_prog_RANLIB
  3802. if test -n "$RANLIB"; then
  3803. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3804. echo "${ECHO_T}$RANLIB" >&6; }
  3805. else
  3806. { echo "$as_me:$LINENO: result: no" >&5
  3807. echo "${ECHO_T}no" >&6; }
  3808. fi
  3809. fi
  3810. if test -z "$ac_cv_prog_RANLIB"; then
  3811. ac_ct_RANLIB=$RANLIB
  3812. # Extract the first word of "ranlib", so it can be a program name with args.
  3813. set dummy ranlib; ac_word=$2
  3814. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3815. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3816. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3817. echo $ECHO_N "(cached) $ECHO_C" >&6
  3818. else
  3819. if test -n "$ac_ct_RANLIB"; then
  3820. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3821. else
  3822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3823. for as_dir in $PATH
  3824. do
  3825. IFS=$as_save_IFS
  3826. test -z "$as_dir" && as_dir=.
  3827. for ac_exec_ext in '' $ac_executable_extensions; do
  3828. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3829. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3830. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3831. break 2
  3832. fi
  3833. done
  3834. done
  3835. IFS=$as_save_IFS
  3836. fi
  3837. fi
  3838. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3839. if test -n "$ac_ct_RANLIB"; then
  3840. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3841. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3842. else
  3843. { echo "$as_me:$LINENO: result: no" >&5
  3844. echo "${ECHO_T}no" >&6; }
  3845. fi
  3846. if test "x$ac_ct_RANLIB" = x; then
  3847. RANLIB=":"
  3848. else
  3849. case $cross_compiling:$ac_tool_warned in
  3850. yes:)
  3851. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3852. whose name does not start with the host triplet. If you think this
  3853. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3854. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3855. whose name does not start with the host triplet. If you think this
  3856. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3857. ac_tool_warned=yes ;;
  3858. esac
  3859. RANLIB=$ac_ct_RANLIB
  3860. fi
  3861. else
  3862. RANLIB="$ac_cv_prog_RANLIB"
  3863. fi
  3864. { echo "$as_me:$LINENO: checking binary distribution directory" >&5
  3865. echo $ECHO_N "checking binary distribution directory... $ECHO_C" >&6; }
  3866. case ${FTPBINDIR-unset} in
  3867. unset)
  3868. system=`system 2>/dev/null || echo dummy_system`
  3869. FTPBINDIR=${FTPDIR-/home/ftp}/pub/binary/$system
  3870. ;;
  3871. esac
  3872. { echo "$as_me:$LINENO: result: $FTPBINDIR" >&5
  3873. echo "${ECHO_T}$FTPBINDIR" >&6; }
  3874. for arg in port/Makefile; do
  3875. case "$CONFIG_FILES" in
  3876. *$arg*)
  3877. ;;
  3878. *)
  3879. CONFIG_FILES="${CONFIG_FILES-} $arg"
  3880. ;;
  3881. esac
  3882. done
  3883. for arg in port/master.mk; do
  3884. case "$CONFIG_FILES" in
  3885. *$arg*)
  3886. ;;
  3887. *)
  3888. CONFIG_FILES="${CONFIG_FILES-} $arg"
  3889. ;;
  3890. esac
  3891. done
  3892. for arg in port/misc/Makefile; do
  3893. case "$CONFIG_FILES" in
  3894. *$arg*)
  3895. ;;
  3896. *)
  3897. CONFIG_FILES="${CONFIG_FILES-} $arg"
  3898. ;;
  3899. esac
  3900. done
  3901. UC_LIBOBJS=${UC_LIBOBJS-""}
  3902. PORT_HEADERS=${PORT_HEADERS-""}
  3903. PORT_MANIFEST=${PORT_MANIFEST-""}
  3904. PORT_SUBDIRS=${PORT_SUBDIRS-""}
  3905. for arg in misc/all; do
  3906. case "$PORT_ALL" in
  3907. *$arg*)
  3908. ;;
  3909. *)
  3910. PORT_ALL="${PORT_ALL-} $arg"
  3911. ;;
  3912. esac
  3913. done
  3914. for arg in misc/install; do
  3915. case "$PORT_INSTALL" in
  3916. *$arg*)
  3917. ;;
  3918. *)
  3919. PORT_INSTALL="${PORT_INSTALL-} $arg"
  3920. ;;
  3921. esac
  3922. done
  3923. for arg in misc/clean; do
  3924. case "$PORT_CLEAN" in
  3925. *$arg*)
  3926. ;;
  3927. *)
  3928. PORT_CLEAN="${PORT_CLEAN-} $arg"
  3929. ;;
  3930. esac
  3931. done
  3932. for arg in misc/distclean; do
  3933. case "$PORT_DISTCLEAN" in
  3934. *$arg*)
  3935. ;;
  3936. *)
  3937. PORT_DISTCLEAN="${PORT_DISTCLEAN-} $arg"
  3938. ;;
  3939. esac
  3940. done
  3941. PORT_CPP_LDM=${PORT_CPP_LDM-""}
  3942. udportdir=`pwd`/port/misc
  3943. case "${OPSYS}$OS_MAJOR" in
  3944. unicos*)
  3945. case "$udportdir" in
  3946. '') LD_UDPORT="-l udport";;
  3947. *) LD_UDPORT="-L $udportdir -l udport";;
  3948. esac
  3949. ;;
  3950. sunos5*)
  3951. case "$udportdir" in
  3952. '') LD_UDPORT="-ludport";;
  3953. *) LD_UDPORT="-R$udportdir -L$udportdir -ludport";;
  3954. esac
  3955. ;;
  3956. *)
  3957. case "$udportdir" in
  3958. '') LD_UDPORT="-ludport";;
  3959. *) LD_UDPORT="-L$udportdir -ludport";;
  3960. esac
  3961. ;;
  3962. esac
  3963. unset udportdir
  3964. for arg in udalloc.c udalloc.h; do
  3965. case "$PORT_MANIFEST" in
  3966. *$arg*)
  3967. ;;
  3968. *)
  3969. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  3970. ;;
  3971. esac
  3972. done
  3973. { echo "$as_me:$LINENO: checking the installation prefix" >&5
  3974. echo $ECHO_N "checking the installation prefix... $ECHO_C" >&6; }
  3975. case ${prefix-} in
  3976. NONE|'') prefix=`case ".." in
  3977. /*) echo ..; exit;;
  3978. *) path=\`pwd\`/..
  3979. tail=
  3980. while test "$path"; do
  3981. (cd $path && echo \`pwd\`$rest) && exit
  3982. base=/\`basename "$path"\`
  3983. tail=/$base$tail
  3984. path=\`echo "$path" | sed "s/\/$base//"\`
  3985. done;;
  3986. esac
  3987. `;;
  3988. esac
  3989. { echo "$as_me:$LINENO: result: $prefix" >&5
  3990. echo "${ECHO_T}$prefix" >&6; }
  3991. { echo "$as_me:$LINENO: checking the installation exec-prefix" >&5
  3992. echo $ECHO_N "checking the installation exec-prefix... $ECHO_C" >&6; }
  3993. case ${exec_prefix-} in
  3994. NONE|'')
  3995. exec_prefix=$prefix;;
  3996. esac
  3997. { echo "$as_me:$LINENO: result: $exec_prefix" >&5
  3998. echo "${ECHO_T}$exec_prefix" >&6; }
  3999. CFLAGS=${CFLAGS-"-O"}
  4000. CPPFLAGS=${CPPFLAGS-""}
  4001. # Extract the first word of "neqn", so it can be a program name with args.
  4002. set dummy neqn; ac_word=$2
  4003. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4004. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4005. if test "${ac_cv_prog_NEQN+set}" = set; then
  4006. echo $ECHO_N "(cached) $ECHO_C" >&6
  4007. else
  4008. if test -n "$NEQN"; then
  4009. ac_cv_prog_NEQN="$NEQN" # Let the user override the test.
  4010. else
  4011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4012. for as_dir in $PATH
  4013. do
  4014. IFS=$as_save_IFS
  4015. test -z "$as_dir" && as_dir=.
  4016. for ac_exec_ext in '' $ac_executable_extensions; do
  4017. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4018. ac_cv_prog_NEQN="neqn"
  4019. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4020. break 2
  4021. fi
  4022. done
  4023. done
  4024. IFS=$as_save_IFS
  4025. test -z "$ac_cv_prog_NEQN" && ac_cv_prog_NEQN="cat"
  4026. fi
  4027. fi
  4028. NEQN=$ac_cv_prog_NEQN
  4029. if test -n "$NEQN"; then
  4030. { echo "$as_me:$LINENO: result: $NEQN" >&5
  4031. echo "${ECHO_T}$NEQN" >&6; }
  4032. else
  4033. { echo "$as_me:$LINENO: result: no" >&5
  4034. echo "${ECHO_T}no" >&6; }
  4035. fi
  4036. test "$NEQN" = cat &&
  4037. { echo "$as_me:$LINENO: WARNING: $0: Can't find program \`neqn'; setting to \`cat'" >&5
  4038. echo "$as_me: WARNING: $0: Can't find program \`neqn'; setting to \`cat'" >&2;}
  4039. # Extract the first word of "tbl", so it can be a program name with args.
  4040. set dummy tbl; ac_word=$2
  4041. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4042. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4043. if test "${ac_cv_prog_TBL+set}" = set; then
  4044. echo $ECHO_N "(cached) $ECHO_C" >&6
  4045. else
  4046. if test -n "$TBL"; then
  4047. ac_cv_prog_TBL="$TBL" # Let the user override the test.
  4048. else
  4049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4050. for as_dir in $PATH
  4051. do
  4052. IFS=$as_save_IFS
  4053. test -z "$as_dir" && as_dir=.
  4054. for ac_exec_ext in '' $ac_executable_extensions; do
  4055. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4056. ac_cv_prog_TBL="tbl"
  4057. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4058. break 2
  4059. fi
  4060. done
  4061. done
  4062. IFS=$as_save_IFS
  4063. test -z "$ac_cv_prog_TBL" && ac_cv_prog_TBL="cat"
  4064. fi
  4065. fi
  4066. TBL=$ac_cv_prog_TBL
  4067. if test -n "$TBL"; then
  4068. { echo "$as_me:$LINENO: result: $TBL" >&5
  4069. echo "${ECHO_T}$TBL" >&6; }
  4070. else
  4071. { echo "$as_me:$LINENO: result: no" >&5
  4072. echo "${ECHO_T}no" >&6; }
  4073. fi
  4074. test "$TBL" = cat &&
  4075. { echo "$as_me:$LINENO: WARNING: $0: Can't find program \`tbl'; setting to \`cat'" >&5
  4076. echo "$as_me: WARNING: $0: Can't find program \`tbl'; setting to \`cat'" >&2;}
  4077. # We use ar(1) under UNICOS even though bld(1) is preferred because bld(1)
  4078. # doesn't understand the "u" option.
  4079. # Extract the first word of "ar", so it can be a program name with args.
  4080. set dummy ar; ac_word=$2
  4081. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4082. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4083. if test "${ac_cv_prog_AR+set}" = set; then
  4084. echo $ECHO_N "(cached) $ECHO_C" >&6
  4085. else
  4086. if test -n "$AR"; then
  4087. ac_cv_prog_AR="$AR" # Let the user override the test.
  4088. else
  4089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4090. for as_dir in $PATH
  4091. do
  4092. IFS=$as_save_IFS
  4093. test -z "$as_dir" && as_dir=.
  4094. for ac_exec_ext in '' $ac_executable_extensions; do
  4095. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4096. ac_cv_prog_AR="ar"
  4097. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4098. break 2
  4099. fi
  4100. done
  4101. done
  4102. IFS=$as_save_IFS
  4103. fi
  4104. fi
  4105. AR=$ac_cv_prog_AR
  4106. if test -n "$AR"; then
  4107. { echo "$as_me:$LINENO: result: $AR" >&5
  4108. echo "${ECHO_T}$AR" >&6; }
  4109. else
  4110. { echo "$as_me:$LINENO: result: no" >&5
  4111. echo "${ECHO_T}no" >&6; }
  4112. fi
  4113. if test -z "$AR"; then
  4114. echo "AR:library utility:/bin/ar" >> confdefs.missing
  4115. fi
  4116. libdir=`pwd`/lib
  4117. case "${OPSYS}$OS_MAJOR" in
  4118. unicos*)
  4119. case "$libdir" in
  4120. '') LD_UDUNITS="-l udunits";;
  4121. *) LD_UDUNITS="-L $libdir -l udunits";;
  4122. esac
  4123. ;;
  4124. sunos5*)
  4125. case "$libdir" in
  4126. '') LD_UDUNITS="-ludunits";;
  4127. *) LD_UDUNITS="-R$libdir -L$libdir -ludunits";;
  4128. esac
  4129. ;;
  4130. *)
  4131. case "$libdir" in
  4132. '') LD_UDUNITS="-ludunits";;
  4133. *) LD_UDUNITS="-L$libdir -ludunits";;
  4134. esac
  4135. ;;
  4136. esac
  4137. case `uname` in
  4138. Linux)
  4139. LD_YACC=${LD_YACC-""}
  4140. ;;
  4141. *) { echo "$as_me:$LINENO: checking for yacc library" >&5
  4142. echo $ECHO_N "checking for yacc library... $ECHO_C" >&6; }
  4143. case "${LD_YACC+set}" in
  4144. set)
  4145. { echo "$as_me:$LINENO: result: $LD_YACC" >&5
  4146. echo "${ECHO_T}$LD_YACC" >&6; }
  4147. ;;
  4148. *)
  4149. { echo "$as_me:$LINENO: result: " >&5
  4150. echo "${ECHO_T}" >&6; }
  4151. LIBS_save=$LIBS
  4152. found=no
  4153. { echo "$as_me:$LINENO: checking for yyerror(\"\") in default library(s)" >&5
  4154. echo $ECHO_N "checking for yyerror(\"\") in default library(s)... $ECHO_C" >&6; }
  4155. cat >conftest.$ac_ext <<_ACEOF
  4156. /* confdefs.h. */
  4157. _ACEOF
  4158. cat confdefs.h >>conftest.$ac_ext
  4159. cat >>conftest.$ac_ext <<_ACEOF
  4160. /* end confdefs.h. */
  4161. int
  4162. main ()
  4163. {
  4164. yyerror("");
  4165. ;
  4166. return 0;
  4167. }
  4168. _ACEOF
  4169. rm -f conftest.$ac_objext conftest$ac_exeext
  4170. if { (ac_try="$ac_link"
  4171. case "(($ac_try" in
  4172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4173. *) ac_try_echo=$ac_try;;
  4174. esac
  4175. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4176. (eval "$ac_link") 2>conftest.er1
  4177. ac_status=$?
  4178. grep -v '^ *+' conftest.er1 >conftest.err
  4179. rm -f conftest.er1
  4180. cat conftest.err >&5
  4181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4182. (exit $ac_status); } && {
  4183. test -z "$ac_c_werror_flag" ||
  4184. test ! -s conftest.err
  4185. } && test -s conftest$ac_exeext &&
  4186. $as_test_x conftest$ac_exeext; then
  4187. { echo "$as_me:$LINENO: result: yes" >&5
  4188. echo "${ECHO_T}yes" >&6; }
  4189. LD_YACC=
  4190. found=yes
  4191. else
  4192. echo "$as_me: failed program was:" >&5
  4193. sed 's/^/| /' conftest.$ac_ext >&5
  4194. { echo "$as_me:$LINENO: result: no" >&5
  4195. echo "${ECHO_T}no" >&6; }
  4196. os=`uname -s`
  4197. for dir in '' ; do
  4198. for lib in y; do
  4199. case "${OPSYS}$OS_MAJOR" in
  4200. unicos*)
  4201. case "$dir" in
  4202. '') LIBS="-l $lib";;
  4203. *) LIBS="-L $dir -l $lib";;
  4204. esac
  4205. ;;
  4206. sunos5*)
  4207. case "$dir" in
  4208. '') LIBS="-l$lib";;
  4209. *) LIBS="-R$dir -L$dir -l$lib";;
  4210. esac
  4211. ;;
  4212. *)
  4213. case "$dir" in
  4214. '') LIBS="-l$lib";;
  4215. *) LIBS="-L$dir -l$lib";;
  4216. esac
  4217. ;;
  4218. esac
  4219. { echo "$as_me:$LINENO: checking for yyerror(\"\") in $LIBS" >&5
  4220. echo $ECHO_N "checking for yyerror(\"\") in $LIBS... $ECHO_C" >&6; }
  4221. cat >conftest.$ac_ext <<_ACEOF
  4222. /* confdefs.h. */
  4223. _ACEOF
  4224. cat confdefs.h >>conftest.$ac_ext
  4225. cat >>conftest.$ac_ext <<_ACEOF
  4226. /* end confdefs.h. */
  4227. int
  4228. main ()
  4229. {
  4230. yyerror("");
  4231. ;
  4232. return 0;
  4233. }
  4234. _ACEOF
  4235. rm -f conftest.$ac_objext conftest$ac_exeext
  4236. if { (ac_try="$ac_link"
  4237. case "(($ac_try" in
  4238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4239. *) ac_try_echo=$ac_try;;
  4240. esac
  4241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4242. (eval "$ac_link") 2>conftest.er1
  4243. ac_status=$?
  4244. grep -v '^ *+' conftest.er1 >conftest.err
  4245. rm -f conftest.er1
  4246. cat conftest.err >&5
  4247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4248. (exit $ac_status); } && {
  4249. test -z "$ac_c_werror_flag" ||
  4250. test ! -s conftest.err
  4251. } && test -s conftest$ac_exeext &&
  4252. $as_test_x conftest$ac_exeext; then
  4253. { echo "$as_me:$LINENO: result: yes" >&5
  4254. echo "${ECHO_T}yes" >&6; }
  4255. LD_YACC=$LIBS
  4256. found=yes
  4257. break 2
  4258. else
  4259. echo "$as_me: failed program was:" >&5
  4260. sed 's/^/| /' conftest.$ac_ext >&5
  4261. fi
  4262. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4263. conftest$ac_exeext conftest.$ac_ext
  4264. { echo "$as_me:$LINENO: result: no" >&5
  4265. echo "${ECHO_T}no" >&6; }
  4266. done
  4267. done
  4268. fi
  4269. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4270. conftest$ac_exeext conftest.$ac_ext
  4271. LIBS=$LIBS_save
  4272. case $found in
  4273. no) echo "LD_YACC:yacc library:-ly" >> confdefs.missing
  4274. ;;
  4275. esac
  4276. ;;
  4277. esac
  4278. ;;
  4279. esac
  4280. { echo "$as_me:$LINENO: checking for floor" >&5
  4281. echo $ECHO_N "checking for floor... $ECHO_C" >&6; }
  4282. if test "${ac_cv_func_floor+set}" = set; then
  4283. echo $ECHO_N "(cached) $ECHO_C" >&6
  4284. else
  4285. cat >conftest.$ac_ext <<_ACEOF
  4286. /* confdefs.h. */
  4287. _ACEOF
  4288. cat confdefs.h >>conftest.$ac_ext
  4289. cat >>conftest.$ac_ext <<_ACEOF
  4290. /* end confdefs.h. */
  4291. /* Define floor to an innocuous variant, in case <limits.h> declares floor.
  4292. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4293. #define floor innocuous_floor
  4294. /* System header to define __stub macros and hopefully few prototypes,
  4295. which can conflict with char floor (); below.
  4296. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4297. <limits.h> exists even on freestanding compilers. */
  4298. #ifdef __STDC__
  4299. # include <limits.h>
  4300. #else
  4301. # include <assert.h>
  4302. #endif
  4303. #undef floor
  4304. /* Override any GCC internal prototype to avoid an error.
  4305. Use char because int might match the return type of a GCC
  4306. builtin and then its argument prototype would still apply. */
  4307. #ifdef __cplusplus
  4308. extern "C"
  4309. #endif
  4310. char floor ();
  4311. /* The GNU C library defines this for functions which it implements
  4312. to always fail with ENOSYS. Some functions are actually named
  4313. something starting with __ and the normal name is an alias. */
  4314. #if defined __stub_floor || defined __stub___floor
  4315. choke me
  4316. #endif
  4317. int
  4318. main ()
  4319. {
  4320. return floor ();
  4321. ;
  4322. return 0;
  4323. }
  4324. _ACEOF
  4325. rm -f conftest.$ac_objext conftest$ac_exeext
  4326. if { (ac_try="$ac_link"
  4327. case "(($ac_try" in
  4328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4329. *) ac_try_echo=$ac_try;;
  4330. esac
  4331. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4332. (eval "$ac_link") 2>conftest.er1
  4333. ac_status=$?
  4334. grep -v '^ *+' conftest.er1 >conftest.err
  4335. rm -f conftest.er1
  4336. cat conftest.err >&5
  4337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4338. (exit $ac_status); } && {
  4339. test -z "$ac_c_werror_flag" ||
  4340. test ! -s conftest.err
  4341. } && test -s conftest$ac_exeext &&
  4342. $as_test_x conftest$ac_exeext; then
  4343. ac_cv_func_floor=yes
  4344. else
  4345. echo "$as_me: failed program was:" >&5
  4346. sed 's/^/| /' conftest.$ac_ext >&5
  4347. ac_cv_func_floor=no
  4348. fi
  4349. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4350. conftest$ac_exeext conftest.$ac_ext
  4351. fi
  4352. { echo "$as_me:$LINENO: result: $ac_cv_func_floor" >&5
  4353. echo "${ECHO_T}$ac_cv_func_floor" >&6; }
  4354. if test $ac_cv_func_floor = yes; then
  4355. :
  4356. else
  4357. { echo "$as_me:$LINENO: checking for floor in -lm" >&5
  4358. echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6; }
  4359. if test "${ac_cv_lib_m_floor+set}" = set; then
  4360. echo $ECHO_N "(cached) $ECHO_C" >&6
  4361. else
  4362. ac_check_lib_save_LIBS=$LIBS
  4363. LIBS="-lm $LIBS"
  4364. cat >conftest.$ac_ext <<_ACEOF
  4365. /* confdefs.h. */
  4366. _ACEOF
  4367. cat confdefs.h >>conftest.$ac_ext
  4368. cat >>conftest.$ac_ext <<_ACEOF
  4369. /* end confdefs.h. */
  4370. /* Override any GCC internal prototype to avoid an error.
  4371. Use char because int might match the return type of a GCC
  4372. builtin and then its argument prototype would still apply. */
  4373. #ifdef __cplusplus
  4374. extern "C"
  4375. #endif
  4376. char floor ();
  4377. int
  4378. main ()
  4379. {
  4380. return floor ();
  4381. ;
  4382. return 0;
  4383. }
  4384. _ACEOF
  4385. rm -f conftest.$ac_objext conftest$ac_exeext
  4386. if { (ac_try="$ac_link"
  4387. case "(($ac_try" in
  4388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4389. *) ac_try_echo=$ac_try;;
  4390. esac
  4391. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4392. (eval "$ac_link") 2>conftest.er1
  4393. ac_status=$?
  4394. grep -v '^ *+' conftest.er1 >conftest.err
  4395. rm -f conftest.er1
  4396. cat conftest.err >&5
  4397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4398. (exit $ac_status); } && {
  4399. test -z "$ac_c_werror_flag" ||
  4400. test ! -s conftest.err
  4401. } && test -s conftest$ac_exeext &&
  4402. $as_test_x conftest$ac_exeext; then
  4403. ac_cv_lib_m_floor=yes
  4404. else
  4405. echo "$as_me: failed program was:" >&5
  4406. sed 's/^/| /' conftest.$ac_ext >&5
  4407. ac_cv_lib_m_floor=no
  4408. fi
  4409. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4410. conftest$ac_exeext conftest.$ac_ext
  4411. LIBS=$ac_check_lib_save_LIBS
  4412. fi
  4413. { echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
  4414. echo "${ECHO_T}$ac_cv_lib_m_floor" >&6; }
  4415. if test $ac_cv_lib_m_floor = yes; then
  4416. LD_MATH="-lm"
  4417. else
  4418. { { echo "$as_me:$LINENO: error: \"Couldn't find math functions. Set LD_MATH and retry\"" >&5
  4419. echo "$as_me: error: \"Couldn't find math functions. Set LD_MATH and retry\"" >&2;}
  4420. { (exit 1); exit 1; }; }
  4421. fi
  4422. fi
  4423. for arg in port/cfortran/Makefile; do
  4424. case "$CONFIG_FILES" in
  4425. *$arg*)
  4426. ;;
  4427. *)
  4428. CONFIG_FILES="${CONFIG_FILES-} $arg"
  4429. ;;
  4430. esac
  4431. done
  4432. { echo "$as_me:$LINENO: checking style for cfortran.h" >&5
  4433. echo $ECHO_N "checking style for cfortran.h... $ECHO_C" >&6; }
  4434. for arg in cfortran; do
  4435. case "$PORT_SUBDIRS" in
  4436. *$arg*)
  4437. ;;
  4438. *)
  4439. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  4440. ;;
  4441. esac
  4442. done
  4443. for arg in cfortran/all; do
  4444. case "$PORT_ALL" in
  4445. *$arg*)
  4446. ;;
  4447. *)
  4448. PORT_ALL="${PORT_ALL-} $arg"
  4449. ;;
  4450. esac
  4451. done
  4452. for arg in cfortran/install; do
  4453. case "$PORT_INSTALL" in
  4454. *$arg*)
  4455. ;;
  4456. *)
  4457. PORT_INSTALL="${PORT_INSTALL-} $arg"
  4458. ;;
  4459. esac
  4460. done
  4461. for arg in cfortran/clean; do
  4462. case "$PORT_CLEAN" in
  4463. *$arg*)
  4464. ;;
  4465. *)
  4466. PORT_CLEAN="${PORT_CLEAN-} $arg"
  4467. ;;
  4468. esac
  4469. done
  4470. for arg in cfortran/distclean; do
  4471. case "$PORT_DISTCLEAN" in
  4472. *$arg*)
  4473. ;;
  4474. *)
  4475. PORT_DISTCLEAN="${PORT_DISTCLEAN-} $arg"
  4476. ;;
  4477. esac
  4478. done
  4479. case "${UD_NO_HASHHASH-}" in
  4480. 1) CFORTRAN_TYPE=Reiser
  4481. ;;
  4482. *) CFORTRAN_TYPE=Standard
  4483. ;;
  4484. esac
  4485. { echo "$as_me:$LINENO: result: $CFORTRAN_TYPE" >&5
  4486. echo "${ECHO_T}$CFORTRAN_TYPE" >&6; }
  4487. case "$OPSYS" in
  4488. aix*)
  4489. # Ensure adherence to the trailing-underscore convention.
  4490. for arg in -Dextname; do
  4491. case "$CPPFLAGS" in
  4492. *$arg*)
  4493. ;;
  4494. *)
  4495. CPPFLAGS="${CPPFLAGS-} $arg"
  4496. ;;
  4497. esac
  4498. done
  4499. for arg in -qextname; do
  4500. case "$FFLAGS" in
  4501. *$arg*)
  4502. ;;
  4503. *)
  4504. FFLAGS="${FFLAGS-} $arg"
  4505. ;;
  4506. esac
  4507. done
  4508. ;;
  4509. hp*)
  4510. # Ensure adherence to the trailing-underscore convention.
  4511. for arg in -Dextname; do
  4512. case "$CPPFLAGS" in
  4513. *$arg*)
  4514. ;;
  4515. *)
  4516. CPPFLAGS="${CPPFLAGS-} $arg"
  4517. ;;
  4518. esac
  4519. done
  4520. for arg in +ppu; do
  4521. case "$FFLAGS" in
  4522. *$arg*)
  4523. ;;
  4524. *)
  4525. FFLAGS="${FFLAGS-} $arg"
  4526. ;;
  4527. esac
  4528. done
  4529. ;;
  4530. esac
  4531. { echo "$as_me:$LINENO: checking for Fortran integer type equivalent to C pointer" >&5
  4532. echo $ECHO_N "checking for Fortran integer type equivalent to C pointer... $ECHO_C" >&6; }
  4533. cat << EOF >conftest.c
  4534. #include <stdio.h>
  4535. int main()
  4536. {
  4537. printf("%d\n", sizeof(char*));
  4538. exit(0);
  4539. }
  4540. EOF
  4541. doit='$CC -o conftest ${CFLAGS-} ${CPPFLAGS-} ${LDFLAGS-} conftest.c ${LIBS-}'
  4542. if { (eval echo "$as_me:$LINENO: \"$doit\"") >&5
  4543. (eval $doit) 2>&5
  4544. ac_status=$?
  4545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4546. (exit $ac_status); }; then
  4547. if type='integer*'`./conftest`; then
  4548. { echo "$as_me:$LINENO: result: $type" >&5
  4549. echo "${ECHO_T}$type" >&6; }
  4550. UD_POINTER=$type
  4551. unset type
  4552. else
  4553. { { echo "$as_me:$LINENO: error: Test program execution failure" >&5
  4554. echo "$as_me: error: Test program execution failure" >&2;}
  4555. { (exit 1); exit 1; }; }
  4556. fi
  4557. else
  4558. { { echo "$as_me:$LINENO: error: Test program build failure" >&5
  4559. echo "$as_me: error: Test program build failure" >&2;}
  4560. { (exit 1); exit 1; }; }
  4561. fi
  4562. rm conftest*
  4563. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4564. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4565. if test "${ac_cv_path_GREP+set}" = set; then
  4566. echo $ECHO_N "(cached) $ECHO_C" >&6
  4567. else
  4568. # Extract the first word of "grep ggrep" to use in msg output
  4569. if test -z "$GREP"; then
  4570. set dummy grep ggrep; ac_prog_name=$2
  4571. if test "${ac_cv_path_GREP+set}" = set; then
  4572. echo $ECHO_N "(cached) $ECHO_C" >&6
  4573. else
  4574. ac_path_GREP_found=false
  4575. # Loop through the user's path and test for each of PROGNAME-LIST
  4576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4577. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4578. do
  4579. IFS=$as_save_IFS
  4580. test -z "$as_dir" && as_dir=.
  4581. for ac_prog in grep ggrep; do
  4582. for ac_exec_ext in '' $ac_executable_extensions; do
  4583. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4584. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4585. # Check for GNU ac_path_GREP and select it if it is found.
  4586. # Check for GNU $ac_path_GREP
  4587. case `"$ac_path_GREP" --version 2>&1` in
  4588. *GNU*)
  4589. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4590. *)
  4591. ac_count=0
  4592. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4593. while :
  4594. do
  4595. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4596. mv "conftest.tmp" "conftest.in"
  4597. cp "conftest.in" "conftest.nl"
  4598. echo 'GREP' >> "conftest.nl"
  4599. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4600. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4601. ac_count=`expr $ac_count + 1`
  4602. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4603. # Best one so far, save it but keep looking for a better one
  4604. ac_cv_path_GREP="$ac_path_GREP"
  4605. ac_path_GREP_max=$ac_count
  4606. fi
  4607. # 10*(2^10) chars as input seems more than enough
  4608. test $ac_count -gt 10 && break
  4609. done
  4610. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4611. esac
  4612. $ac_path_GREP_found && break 3
  4613. done
  4614. done
  4615. done
  4616. IFS=$as_save_IFS
  4617. fi
  4618. GREP="$ac_cv_path_GREP"
  4619. if test -z "$GREP"; then
  4620. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4621. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4622. { (exit 1); exit 1; }; }
  4623. fi
  4624. else
  4625. ac_cv_path_GREP=$GREP
  4626. fi
  4627. fi
  4628. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4629. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4630. GREP="$ac_cv_path_GREP"
  4631. { echo "$as_me:$LINENO: checking for egrep" >&5
  4632. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4633. if test "${ac_cv_path_EGREP+set}" = set; then
  4634. echo $ECHO_N "(cached) $ECHO_C" >&6
  4635. else
  4636. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4637. then ac_cv_path_EGREP="$GREP -E"
  4638. else
  4639. # Extract the first word of "egrep" to use in msg output
  4640. if test -z "$EGREP"; then
  4641. set dummy egrep; ac_prog_name=$2
  4642. if test "${ac_cv_path_EGREP+set}" = set; then
  4643. echo $ECHO_N "(cached) $ECHO_C" >&6
  4644. else
  4645. ac_path_EGREP_found=false
  4646. # Loop through the user's path and test for each of PROGNAME-LIST
  4647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4648. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4649. do
  4650. IFS=$as_save_IFS
  4651. test -z "$as_dir" && as_dir=.
  4652. for ac_prog in egrep; do
  4653. for ac_exec_ext in '' $ac_executable_extensions; do
  4654. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4655. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4656. # Check for GNU ac_path_EGREP and select it if it is found.
  4657. # Check for GNU $ac_path_EGREP
  4658. case `"$ac_path_EGREP" --version 2>&1` in
  4659. *GNU*)
  4660. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4661. *)
  4662. ac_count=0
  4663. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4664. while :
  4665. do
  4666. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4667. mv "conftest.tmp" "conftest.in"
  4668. cp "conftest.in" "conftest.nl"
  4669. echo 'EGREP' >> "conftest.nl"
  4670. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4671. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4672. ac_count=`expr $ac_count + 1`
  4673. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4674. # Best one so far, save it but keep looking for a better one
  4675. ac_cv_path_EGREP="$ac_path_EGREP"
  4676. ac_path_EGREP_max=$ac_count
  4677. fi
  4678. # 10*(2^10) chars as input seems more than enough
  4679. test $ac_count -gt 10 && break
  4680. done
  4681. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4682. esac
  4683. $ac_path_EGREP_found && break 3
  4684. done
  4685. done
  4686. done
  4687. IFS=$as_save_IFS
  4688. fi
  4689. EGREP="$ac_cv_path_EGREP"
  4690. if test -z "$EGREP"; then
  4691. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4692. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4693. { (exit 1); exit 1; }; }
  4694. fi
  4695. else
  4696. ac_cv_path_EGREP=$EGREP
  4697. fi
  4698. fi
  4699. fi
  4700. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4701. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4702. EGREP="$ac_cv_path_EGREP"
  4703. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4704. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4705. if test "${ac_cv_header_stdc+set}" = set; then
  4706. echo $ECHO_N "(cached) $ECHO_C" >&6
  4707. else
  4708. cat >conftest.$ac_ext <<_ACEOF
  4709. /* confdefs.h. */
  4710. _ACEOF
  4711. cat confdefs.h >>conftest.$ac_ext
  4712. cat >>conftest.$ac_ext <<_ACEOF
  4713. /* end confdefs.h. */
  4714. #include <stdlib.h>
  4715. #include <stdarg.h>
  4716. #include <string.h>
  4717. #include <float.h>
  4718. int
  4719. main ()
  4720. {
  4721. ;
  4722. return 0;
  4723. }
  4724. _ACEOF
  4725. rm -f conftest.$ac_objext
  4726. if { (ac_try="$ac_compile"
  4727. case "(($ac_try" in
  4728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4729. *) ac_try_echo=$ac_try;;
  4730. esac
  4731. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4732. (eval "$ac_compile") 2>conftest.er1
  4733. ac_status=$?
  4734. grep -v '^ *+' conftest.er1 >conftest.err
  4735. rm -f conftest.er1
  4736. cat conftest.err >&5
  4737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4738. (exit $ac_status); } && {
  4739. test -z "$ac_c_werror_flag" ||
  4740. test ! -s conftest.err
  4741. } && test -s conftest.$ac_objext; then
  4742. ac_cv_header_stdc=yes
  4743. else
  4744. echo "$as_me: failed program was:" >&5
  4745. sed 's/^/| /' conftest.$ac_ext >&5
  4746. ac_cv_header_stdc=no
  4747. fi
  4748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4749. if test $ac_cv_header_stdc = yes; then
  4750. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4751. cat >conftest.$ac_ext <<_ACEOF
  4752. /* confdefs.h. */
  4753. _ACEOF
  4754. cat confdefs.h >>conftest.$ac_ext
  4755. cat >>conftest.$ac_ext <<_ACEOF
  4756. /* end confdefs.h. */
  4757. #include <string.h>
  4758. _ACEOF
  4759. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4760. $EGREP "memchr" >/dev/null 2>&1; then
  4761. :
  4762. else
  4763. ac_cv_header_stdc=no
  4764. fi
  4765. rm -f conftest*
  4766. fi
  4767. if test $ac_cv_header_stdc = yes; then
  4768. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4769. cat >conftest.$ac_ext <<_ACEOF
  4770. /* confdefs.h. */
  4771. _ACEOF
  4772. cat confdefs.h >>conftest.$ac_ext
  4773. cat >>conftest.$ac_ext <<_ACEOF
  4774. /* end confdefs.h. */
  4775. #include <stdlib.h>
  4776. _ACEOF
  4777. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4778. $EGREP "free" >/dev/null 2>&1; then
  4779. :
  4780. else
  4781. ac_cv_header_stdc=no
  4782. fi
  4783. rm -f conftest*
  4784. fi
  4785. if test $ac_cv_header_stdc = yes; then
  4786. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4787. if test "$cross_compiling" = yes; then
  4788. :
  4789. else
  4790. cat >conftest.$ac_ext <<_ACEOF
  4791. /* confdefs.h. */
  4792. _ACEOF
  4793. cat confdefs.h >>conftest.$ac_ext
  4794. cat >>conftest.$ac_ext <<_ACEOF
  4795. /* end confdefs.h. */
  4796. #include <ctype.h>
  4797. #include <stdlib.h>
  4798. #if ((' ' & 0x0FF) == 0x020)
  4799. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4800. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4801. #else
  4802. # define ISLOWER(c) \
  4803. (('a' <= (c) && (c) <= 'i') \
  4804. || ('j' <= (c) && (c) <= 'r') \
  4805. || ('s' <= (c) && (c) <= 'z'))
  4806. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4807. #endif
  4808. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4809. int
  4810. main ()
  4811. {
  4812. int i;
  4813. for (i = 0; i < 256; i++)
  4814. if (XOR (islower (i), ISLOWER (i))
  4815. || toupper (i) != TOUPPER (i))
  4816. return 2;
  4817. return 0;
  4818. }
  4819. _ACEOF
  4820. rm -f conftest$ac_exeext
  4821. if { (ac_try="$ac_link"
  4822. case "(($ac_try" in
  4823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4824. *) ac_try_echo=$ac_try;;
  4825. esac
  4826. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4827. (eval "$ac_link") 2>&5
  4828. ac_status=$?
  4829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4830. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4831. { (case "(($ac_try" in
  4832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4833. *) ac_try_echo=$ac_try;;
  4834. esac
  4835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4836. (eval "$ac_try") 2>&5
  4837. ac_status=$?
  4838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4839. (exit $ac_status); }; }; then
  4840. :
  4841. else
  4842. echo "$as_me: program exited with status $ac_status" >&5
  4843. echo "$as_me: failed program was:" >&5
  4844. sed 's/^/| /' conftest.$ac_ext >&5
  4845. ( exit $ac_status )
  4846. ac_cv_header_stdc=no
  4847. fi
  4848. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4849. fi
  4850. fi
  4851. fi
  4852. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4853. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4854. if test $ac_cv_header_stdc = yes; then
  4855. cat >>confdefs.h <<\_ACEOF
  4856. #define STDC_HEADERS 1
  4857. _ACEOF
  4858. fi
  4859. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4860. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4861. inttypes.h stdint.h unistd.h
  4862. do
  4863. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4864. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4865. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4866. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4867. echo $ECHO_N "(cached) $ECHO_C" >&6
  4868. else
  4869. cat >conftest.$ac_ext <<_ACEOF
  4870. /* confdefs.h. */
  4871. _ACEOF
  4872. cat confdefs.h >>conftest.$ac_ext
  4873. cat >>conftest.$ac_ext <<_ACEOF
  4874. /* end confdefs.h. */
  4875. $ac_includes_default
  4876. #include <$ac_header>
  4877. _ACEOF
  4878. rm -f conftest.$ac_objext
  4879. if { (ac_try="$ac_compile"
  4880. case "(($ac_try" in
  4881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4882. *) ac_try_echo=$ac_try;;
  4883. esac
  4884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4885. (eval "$ac_compile") 2>conftest.er1
  4886. ac_status=$?
  4887. grep -v '^ *+' conftest.er1 >conftest.err
  4888. rm -f conftest.er1
  4889. cat conftest.err >&5
  4890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4891. (exit $ac_status); } && {
  4892. test -z "$ac_c_werror_flag" ||
  4893. test ! -s conftest.err
  4894. } && test -s conftest.$ac_objext; then
  4895. eval "$as_ac_Header=yes"
  4896. else
  4897. echo "$as_me: failed program was:" >&5
  4898. sed 's/^/| /' conftest.$ac_ext >&5
  4899. eval "$as_ac_Header=no"
  4900. fi
  4901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4902. fi
  4903. ac_res=`eval echo '${'$as_ac_Header'}'`
  4904. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4905. echo "${ECHO_T}$ac_res" >&6; }
  4906. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4907. cat >>confdefs.h <<_ACEOF
  4908. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4909. _ACEOF
  4910. fi
  4911. done
  4912. for arg in stddef.h.in; do
  4913. case "$PORT_MANIFEST" in
  4914. *$arg*)
  4915. ;;
  4916. *)
  4917. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  4918. ;;
  4919. esac
  4920. done
  4921. for arg in misc; do
  4922. case "$PORT_SUBDIRS" in
  4923. *$arg*)
  4924. ;;
  4925. *)
  4926. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  4927. ;;
  4928. esac
  4929. done
  4930. echo "#include <stddef.h>" > conftestpath.c
  4931. #
  4932. # We add additional `/'s to the header file name to preclude compiler
  4933. # warnings about the non-portability of `#include "/usr/include/..."'.
  4934. #
  4935. case `uname -s`${GCC-} in
  4936. AIX)
  4937. #
  4938. # AIX's C compiler doesn't emit a line that gives the pathname of
  4939. # the included file.
  4940. #
  4941. # AIX's C compiler puts dependency information in a `.u' file.
  4942. #
  4943. # AIX 4.1's cc(1) makes the following complaint:
  4944. # ld: 0711-317 ERROR: Undefined symbol: .main
  4945. #
  4946. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  4947. # /dev/null.
  4948. #
  4949. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  4950. path=`sed -n '/[^\/]*\(\/[^ ]*stddef\.h\).*/s//\1/p' \
  4951. conftestpath.u | head -1`
  4952. rm conftestpath.u
  4953. ;;
  4954. HP-UX)
  4955. #
  4956. # HP-UX's C compiler doesn't have a dependency-generation option,
  4957. # so we use another method.
  4958. #
  4959. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  4960. sed -n '/[^\/]*\(\/[^ ]*stddef\.h\).*/s//\1/p' |
  4961. head -1`
  4962. ;;
  4963. *)
  4964. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  4965. sed -n '/[^\/]*\(\/[^ ]*stddef\.h\).*/s//\1/p' |
  4966. head -1`
  4967. ;;
  4968. esac
  4969. case "$path" in
  4970. '')
  4971. path=/dev/null
  4972. ;;
  4973. *)
  4974. path=//$path
  4975. ;;
  4976. esac
  4977. cat >>confdefs.h <<_ACEOF
  4978. #define UD_SYSTEM_STDDEF_H "$path"
  4979. _ACEOF
  4980. for arg in misc; do
  4981. case "$PORT_SUBDIRS" in
  4982. *$arg*)
  4983. ;;
  4984. *)
  4985. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  4986. ;;
  4987. esac
  4988. done
  4989. if test "${ac_cv_header_stddef_h+set}" = set; then
  4990. { echo "$as_me:$LINENO: checking for stddef.h" >&5
  4991. echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
  4992. if test "${ac_cv_header_stddef_h+set}" = set; then
  4993. echo $ECHO_N "(cached) $ECHO_C" >&6
  4994. fi
  4995. { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
  4996. echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
  4997. else
  4998. # Is the header compilable?
  4999. { echo "$as_me:$LINENO: checking stddef.h usability" >&5
  5000. echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; }
  5001. cat >conftest.$ac_ext <<_ACEOF
  5002. /* confdefs.h. */
  5003. _ACEOF
  5004. cat confdefs.h >>conftest.$ac_ext
  5005. cat >>conftest.$ac_ext <<_ACEOF
  5006. /* end confdefs.h. */
  5007. $ac_includes_default
  5008. #include <stddef.h>
  5009. _ACEOF
  5010. rm -f conftest.$ac_objext
  5011. if { (ac_try="$ac_compile"
  5012. case "(($ac_try" in
  5013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5014. *) ac_try_echo=$ac_try;;
  5015. esac
  5016. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5017. (eval "$ac_compile") 2>conftest.er1
  5018. ac_status=$?
  5019. grep -v '^ *+' conftest.er1 >conftest.err
  5020. rm -f conftest.er1
  5021. cat conftest.err >&5
  5022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5023. (exit $ac_status); } && {
  5024. test -z "$ac_c_werror_flag" ||
  5025. test ! -s conftest.err
  5026. } && test -s conftest.$ac_objext; then
  5027. ac_header_compiler=yes
  5028. else
  5029. echo "$as_me: failed program was:" >&5
  5030. sed 's/^/| /' conftest.$ac_ext >&5
  5031. ac_header_compiler=no
  5032. fi
  5033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5034. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5035. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5036. # Is the header present?
  5037. { echo "$as_me:$LINENO: checking stddef.h presence" >&5
  5038. echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; }
  5039. cat >conftest.$ac_ext <<_ACEOF
  5040. /* confdefs.h. */
  5041. _ACEOF
  5042. cat confdefs.h >>conftest.$ac_ext
  5043. cat >>conftest.$ac_ext <<_ACEOF
  5044. /* end confdefs.h. */
  5045. #include <stddef.h>
  5046. _ACEOF
  5047. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5048. case "(($ac_try" in
  5049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5050. *) ac_try_echo=$ac_try;;
  5051. esac
  5052. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5053. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5054. ac_status=$?
  5055. grep -v '^ *+' conftest.er1 >conftest.err
  5056. rm -f conftest.er1
  5057. cat conftest.err >&5
  5058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5059. (exit $ac_status); } >/dev/null && {
  5060. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5061. test ! -s conftest.err
  5062. }; then
  5063. ac_header_preproc=yes
  5064. else
  5065. echo "$as_me: failed program was:" >&5
  5066. sed 's/^/| /' conftest.$ac_ext >&5
  5067. ac_header_preproc=no
  5068. fi
  5069. rm -f conftest.err conftest.$ac_ext
  5070. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5071. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5072. # So? What about this header?
  5073. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5074. yes:no: )
  5075. { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5076. echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5077. { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
  5078. echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
  5079. ac_header_preproc=yes
  5080. ;;
  5081. no:yes:* )
  5082. { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
  5083. echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
  5084. { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
  5085. echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
  5086. { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
  5087. echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
  5088. { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
  5089. echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
  5090. { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
  5091. echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
  5092. { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
  5093. echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
  5094. ;;
  5095. esac
  5096. { echo "$as_me:$LINENO: checking for stddef.h" >&5
  5097. echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
  5098. if test "${ac_cv_header_stddef_h+set}" = set; then
  5099. echo $ECHO_N "(cached) $ECHO_C" >&6
  5100. else
  5101. ac_cv_header_stddef_h=$ac_header_preproc
  5102. fi
  5103. { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
  5104. echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
  5105. fi
  5106. if test $ac_cv_header_stddef_h = yes; then
  5107. found=yes
  5108. else
  5109. found=no
  5110. fi
  5111. case $found in
  5112. yes)
  5113. { echo "$as_me:$LINENO: checking C header file <stddef.h> for typedef size_t" >&5
  5114. echo $ECHO_N "checking C header file <stddef.h> for typedef size_t... $ECHO_C" >&6; }
  5115. echo '#include <stddef.h>' >conftest.c
  5116. if ($CPP conftest.c | grep size_t >/dev/null) 2>&5; then
  5117. { echo "$as_me:$LINENO: result: declared" >&5
  5118. echo "${ECHO_T}declared" >&6; }
  5119. rm conftest.c
  5120. else
  5121. cat >conftest.$ac_ext <<_ACEOF
  5122. /* confdefs.h. */
  5123. _ACEOF
  5124. cat confdefs.h >>conftest.$ac_ext
  5125. cat >>conftest.$ac_ext <<_ACEOF
  5126. /* end confdefs.h. */
  5127. #include <stddef.h>
  5128. int size_t;
  5129. int
  5130. main ()
  5131. {
  5132. ;
  5133. return 0;
  5134. }
  5135. _ACEOF
  5136. rm -f conftest.$ac_objext
  5137. if { (ac_try="$ac_compile"
  5138. case "(($ac_try" in
  5139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5140. *) ac_try_echo=$ac_try;;
  5141. esac
  5142. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5143. (eval "$ac_compile") 2>conftest.er1
  5144. ac_status=$?
  5145. grep -v '^ *+' conftest.er1 >conftest.err
  5146. rm -f conftest.er1
  5147. cat conftest.err >&5
  5148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5149. (exit $ac_status); } && {
  5150. test -z "$ac_c_werror_flag" ||
  5151. test ! -s conftest.err
  5152. } && test -s conftest.$ac_objext; then
  5153. { echo "$as_me:$LINENO: result: undeclared" >&5
  5154. echo "${ECHO_T}undeclared" >&6; }
  5155. cat >>confdefs.h <<\_ACEOF
  5156. #define UD_NO_STDDEF_H_SIZE_T 1
  5157. _ACEOF
  5158. else
  5159. echo "$as_me: failed program was:" >&5
  5160. sed 's/^/| /' conftest.$ac_ext >&5
  5161. { echo "$as_me:$LINENO: result: declared" >&5
  5162. echo "${ECHO_T}declared" >&6; }
  5163. fi
  5164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5165. fi
  5166. ;;
  5167. no)
  5168. cat >>confdefs.h <<\_ACEOF
  5169. #define UD_NO_STDDEF_H_SIZE_T 1
  5170. _ACEOF
  5171. ;;
  5172. esac
  5173. if test "${ac_cv_header_stddef_h+set}" = set; then
  5174. { echo "$as_me:$LINENO: checking for stddef.h" >&5
  5175. echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
  5176. if test "${ac_cv_header_stddef_h+set}" = set; then
  5177. echo $ECHO_N "(cached) $ECHO_C" >&6
  5178. fi
  5179. { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
  5180. echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
  5181. else
  5182. # Is the header compilable?
  5183. { echo "$as_me:$LINENO: checking stddef.h usability" >&5
  5184. echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; }
  5185. cat >conftest.$ac_ext <<_ACEOF
  5186. /* confdefs.h. */
  5187. _ACEOF
  5188. cat confdefs.h >>conftest.$ac_ext
  5189. cat >>conftest.$ac_ext <<_ACEOF
  5190. /* end confdefs.h. */
  5191. $ac_includes_default
  5192. #include <stddef.h>
  5193. _ACEOF
  5194. rm -f conftest.$ac_objext
  5195. if { (ac_try="$ac_compile"
  5196. case "(($ac_try" in
  5197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5198. *) ac_try_echo=$ac_try;;
  5199. esac
  5200. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5201. (eval "$ac_compile") 2>conftest.er1
  5202. ac_status=$?
  5203. grep -v '^ *+' conftest.er1 >conftest.err
  5204. rm -f conftest.er1
  5205. cat conftest.err >&5
  5206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5207. (exit $ac_status); } && {
  5208. test -z "$ac_c_werror_flag" ||
  5209. test ! -s conftest.err
  5210. } && test -s conftest.$ac_objext; then
  5211. ac_header_compiler=yes
  5212. else
  5213. echo "$as_me: failed program was:" >&5
  5214. sed 's/^/| /' conftest.$ac_ext >&5
  5215. ac_header_compiler=no
  5216. fi
  5217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5218. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5219. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5220. # Is the header present?
  5221. { echo "$as_me:$LINENO: checking stddef.h presence" >&5
  5222. echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; }
  5223. cat >conftest.$ac_ext <<_ACEOF
  5224. /* confdefs.h. */
  5225. _ACEOF
  5226. cat confdefs.h >>conftest.$ac_ext
  5227. cat >>conftest.$ac_ext <<_ACEOF
  5228. /* end confdefs.h. */
  5229. #include <stddef.h>
  5230. _ACEOF
  5231. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5232. case "(($ac_try" in
  5233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5234. *) ac_try_echo=$ac_try;;
  5235. esac
  5236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5237. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5238. ac_status=$?
  5239. grep -v '^ *+' conftest.er1 >conftest.err
  5240. rm -f conftest.er1
  5241. cat conftest.err >&5
  5242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5243. (exit $ac_status); } >/dev/null && {
  5244. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5245. test ! -s conftest.err
  5246. }; then
  5247. ac_header_preproc=yes
  5248. else
  5249. echo "$as_me: failed program was:" >&5
  5250. sed 's/^/| /' conftest.$ac_ext >&5
  5251. ac_header_preproc=no
  5252. fi
  5253. rm -f conftest.err conftest.$ac_ext
  5254. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5255. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5256. # So? What about this header?
  5257. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5258. yes:no: )
  5259. { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5260. echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5261. { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
  5262. echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
  5263. ac_header_preproc=yes
  5264. ;;
  5265. no:yes:* )
  5266. { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
  5267. echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
  5268. { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
  5269. echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
  5270. { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
  5271. echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
  5272. { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
  5273. echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
  5274. { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
  5275. echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
  5276. { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
  5277. echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
  5278. ;;
  5279. esac
  5280. { echo "$as_me:$LINENO: checking for stddef.h" >&5
  5281. echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
  5282. if test "${ac_cv_header_stddef_h+set}" = set; then
  5283. echo $ECHO_N "(cached) $ECHO_C" >&6
  5284. else
  5285. ac_cv_header_stddef_h=$ac_header_preproc
  5286. fi
  5287. { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
  5288. echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
  5289. fi
  5290. if test $ac_cv_header_stddef_h = yes; then
  5291. found=yes
  5292. else
  5293. found=no
  5294. fi
  5295. case $found in
  5296. yes)
  5297. { echo "$as_me:$LINENO: checking C header file <stddef.h> for typedef ptrdiff_t" >&5
  5298. echo $ECHO_N "checking C header file <stddef.h> for typedef ptrdiff_t... $ECHO_C" >&6; }
  5299. echo '#include <stddef.h>' >conftest.c
  5300. if ($CPP conftest.c | grep ptrdiff_t >/dev/null) 2>&5; then
  5301. { echo "$as_me:$LINENO: result: declared" >&5
  5302. echo "${ECHO_T}declared" >&6; }
  5303. rm conftest.c
  5304. else
  5305. cat >conftest.$ac_ext <<_ACEOF
  5306. /* confdefs.h. */
  5307. _ACEOF
  5308. cat confdefs.h >>conftest.$ac_ext
  5309. cat >>conftest.$ac_ext <<_ACEOF
  5310. /* end confdefs.h. */
  5311. #include <stddef.h>
  5312. int ptrdiff_t;
  5313. int
  5314. main ()
  5315. {
  5316. ;
  5317. return 0;
  5318. }
  5319. _ACEOF
  5320. rm -f conftest.$ac_objext
  5321. if { (ac_try="$ac_compile"
  5322. case "(($ac_try" in
  5323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5324. *) ac_try_echo=$ac_try;;
  5325. esac
  5326. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5327. (eval "$ac_compile") 2>conftest.er1
  5328. ac_status=$?
  5329. grep -v '^ *+' conftest.er1 >conftest.err
  5330. rm -f conftest.er1
  5331. cat conftest.err >&5
  5332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5333. (exit $ac_status); } && {
  5334. test -z "$ac_c_werror_flag" ||
  5335. test ! -s conftest.err
  5336. } && test -s conftest.$ac_objext; then
  5337. { echo "$as_me:$LINENO: result: undeclared" >&5
  5338. echo "${ECHO_T}undeclared" >&6; }
  5339. cat >>confdefs.h <<\_ACEOF
  5340. #define UD_NO_STDDEF_H_PTRDIFF_T 1
  5341. _ACEOF
  5342. else
  5343. echo "$as_me: failed program was:" >&5
  5344. sed 's/^/| /' conftest.$ac_ext >&5
  5345. { echo "$as_me:$LINENO: result: declared" >&5
  5346. echo "${ECHO_T}declared" >&6; }
  5347. fi
  5348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5349. fi
  5350. ;;
  5351. no)
  5352. cat >>confdefs.h <<\_ACEOF
  5353. #define UD_NO_STDDEF_H_PTRDIFF_T 1
  5354. _ACEOF
  5355. ;;
  5356. esac
  5357. for arg in config.c; do
  5358. case "$PORT_MANIFEST" in
  5359. *$arg*)
  5360. ;;
  5361. *)
  5362. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  5363. ;;
  5364. esac
  5365. done
  5366. if test "${ac_cv_header_float_h+set}" = set; then
  5367. { echo "$as_me:$LINENO: checking for float.h" >&5
  5368. echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
  5369. if test "${ac_cv_header_float_h+set}" = set; then
  5370. echo $ECHO_N "(cached) $ECHO_C" >&6
  5371. fi
  5372. { echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
  5373. echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
  5374. else
  5375. # Is the header compilable?
  5376. { echo "$as_me:$LINENO: checking float.h usability" >&5
  5377. echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; }
  5378. cat >conftest.$ac_ext <<_ACEOF
  5379. /* confdefs.h. */
  5380. _ACEOF
  5381. cat confdefs.h >>conftest.$ac_ext
  5382. cat >>conftest.$ac_ext <<_ACEOF
  5383. /* end confdefs.h. */
  5384. $ac_includes_default
  5385. #include <float.h>
  5386. _ACEOF
  5387. rm -f conftest.$ac_objext
  5388. if { (ac_try="$ac_compile"
  5389. case "(($ac_try" in
  5390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5391. *) ac_try_echo=$ac_try;;
  5392. esac
  5393. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5394. (eval "$ac_compile") 2>conftest.er1
  5395. ac_status=$?
  5396. grep -v '^ *+' conftest.er1 >conftest.err
  5397. rm -f conftest.er1
  5398. cat conftest.err >&5
  5399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5400. (exit $ac_status); } && {
  5401. test -z "$ac_c_werror_flag" ||
  5402. test ! -s conftest.err
  5403. } && test -s conftest.$ac_objext; then
  5404. ac_header_compiler=yes
  5405. else
  5406. echo "$as_me: failed program was:" >&5
  5407. sed 's/^/| /' conftest.$ac_ext >&5
  5408. ac_header_compiler=no
  5409. fi
  5410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5411. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5412. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5413. # Is the header present?
  5414. { echo "$as_me:$LINENO: checking float.h presence" >&5
  5415. echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; }
  5416. cat >conftest.$ac_ext <<_ACEOF
  5417. /* confdefs.h. */
  5418. _ACEOF
  5419. cat confdefs.h >>conftest.$ac_ext
  5420. cat >>conftest.$ac_ext <<_ACEOF
  5421. /* end confdefs.h. */
  5422. #include <float.h>
  5423. _ACEOF
  5424. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5425. case "(($ac_try" in
  5426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5427. *) ac_try_echo=$ac_try;;
  5428. esac
  5429. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5430. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5431. ac_status=$?
  5432. grep -v '^ *+' conftest.er1 >conftest.err
  5433. rm -f conftest.er1
  5434. cat conftest.err >&5
  5435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5436. (exit $ac_status); } >/dev/null && {
  5437. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5438. test ! -s conftest.err
  5439. }; then
  5440. ac_header_preproc=yes
  5441. else
  5442. echo "$as_me: failed program was:" >&5
  5443. sed 's/^/| /' conftest.$ac_ext >&5
  5444. ac_header_preproc=no
  5445. fi
  5446. rm -f conftest.err conftest.$ac_ext
  5447. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5448. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5449. # So? What about this header?
  5450. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5451. yes:no: )
  5452. { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5453. echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5454. { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5
  5455. echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;}
  5456. ac_header_preproc=yes
  5457. ;;
  5458. no:yes:* )
  5459. { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5
  5460. echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;}
  5461. { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5
  5462. echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;}
  5463. { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5
  5464. echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;}
  5465. { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5
  5466. echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;}
  5467. { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5
  5468. echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;}
  5469. { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5
  5470. echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;}
  5471. ;;
  5472. esac
  5473. { echo "$as_me:$LINENO: checking for float.h" >&5
  5474. echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
  5475. if test "${ac_cv_header_float_h+set}" = set; then
  5476. echo $ECHO_N "(cached) $ECHO_C" >&6
  5477. else
  5478. ac_cv_header_float_h=$ac_header_preproc
  5479. fi
  5480. { echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
  5481. echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
  5482. fi
  5483. if test $ac_cv_header_float_h = yes; then
  5484. cat >conftest.$ac_ext <<_ACEOF
  5485. /* confdefs.h. */
  5486. _ACEOF
  5487. cat confdefs.h >>conftest.$ac_ext
  5488. cat >>conftest.$ac_ext <<_ACEOF
  5489. /* end confdefs.h. */
  5490. #include <float.h>
  5491. #ifdef DBL_DIG
  5492. #include "DBL_DIG is defined" /* hard error in case warnings suppressed*/
  5493. #endif
  5494. _ACEOF
  5495. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5496. case "(($ac_try" in
  5497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5498. *) ac_try_echo=$ac_try;;
  5499. esac
  5500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5501. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5502. ac_status=$?
  5503. grep -v '^ *+' conftest.er1 >conftest.err
  5504. rm -f conftest.er1
  5505. cat conftest.err >&5
  5506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5507. (exit $ac_status); } >/dev/null && {
  5508. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5509. test ! -s conftest.err
  5510. }; then
  5511. for arg in float.h; do
  5512. case "$PORT_HEADERS" in
  5513. *$arg*)
  5514. ;;
  5515. *)
  5516. PORT_HEADERS="${PORT_HEADERS-} $arg"
  5517. ;;
  5518. esac
  5519. done
  5520. for arg in misc; do
  5521. case "$PORT_SUBDIRS" in
  5522. *$arg*)
  5523. ;;
  5524. *)
  5525. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  5526. ;;
  5527. esac
  5528. done
  5529. { echo "$as_me:$LINENO: result: supplying own" >&5
  5530. echo "${ECHO_T}supplying own" >&6; }
  5531. else
  5532. echo "$as_me: failed program was:" >&5
  5533. sed 's/^/| /' conftest.$ac_ext >&5
  5534. fi
  5535. rm -f conftest.err conftest.$ac_ext
  5536. else
  5537. for arg in float.h; do
  5538. case "$PORT_HEADERS" in
  5539. *$arg*)
  5540. ;;
  5541. *)
  5542. PORT_HEADERS="${PORT_HEADERS-} $arg"
  5543. ;;
  5544. esac
  5545. done
  5546. for arg in misc; do
  5547. case "$PORT_SUBDIRS" in
  5548. *$arg*)
  5549. ;;
  5550. *)
  5551. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  5552. ;;
  5553. esac
  5554. done
  5555. { echo "$as_me:$LINENO: result: supplying own" >&5
  5556. echo "${ECHO_T}supplying own" >&6; }
  5557. fi
  5558. for arg in stdlib.h.in atexit.c; do
  5559. case "$PORT_MANIFEST" in
  5560. *$arg*)
  5561. ;;
  5562. *)
  5563. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  5564. ;;
  5565. esac
  5566. done
  5567. for arg in misc; do
  5568. case "$PORT_SUBDIRS" in
  5569. *$arg*)
  5570. ;;
  5571. *)
  5572. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  5573. ;;
  5574. esac
  5575. done
  5576. echo "#include <stdlib.h>" > conftestpath.c
  5577. #
  5578. # We add additional `/'s to the header file name to preclude compiler
  5579. # warnings about the non-portability of `#include "/usr/include/..."'.
  5580. #
  5581. case `uname -s`${GCC-} in
  5582. AIX)
  5583. #
  5584. # AIX's C compiler doesn't emit a line that gives the pathname of
  5585. # the included file.
  5586. #
  5587. # AIX's C compiler puts dependency information in a `.u' file.
  5588. #
  5589. # AIX 4.1's cc(1) makes the following complaint:
  5590. # ld: 0711-317 ERROR: Undefined symbol: .main
  5591. #
  5592. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  5593. # /dev/null.
  5594. #
  5595. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  5596. path=`sed -n '/[^\/]*\(\/[^ ]*stdlib\.h\).*/s//\1/p' \
  5597. conftestpath.u | head -1`
  5598. rm conftestpath.u
  5599. ;;
  5600. HP-UX)
  5601. #
  5602. # HP-UX's C compiler doesn't have a dependency-generation option,
  5603. # so we use another method.
  5604. #
  5605. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  5606. sed -n '/[^\/]*\(\/[^ ]*stdlib\.h\).*/s//\1/p' |
  5607. head -1`
  5608. ;;
  5609. *)
  5610. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  5611. sed -n '/[^\/]*\(\/[^ ]*stdlib\.h\).*/s//\1/p' |
  5612. head -1`
  5613. ;;
  5614. esac
  5615. case "$path" in
  5616. '')
  5617. path=/dev/null
  5618. ;;
  5619. *)
  5620. path=//$path
  5621. ;;
  5622. esac
  5623. cat >>confdefs.h <<_ACEOF
  5624. #define UD_SYSTEM_STDLIB_H "$path"
  5625. _ACEOF
  5626. for arg in misc; do
  5627. case "$PORT_SUBDIRS" in
  5628. *$arg*)
  5629. ;;
  5630. *)
  5631. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  5632. ;;
  5633. esac
  5634. done
  5635. if test "${ac_cv_header_stdlib_h+set}" = set; then
  5636. { echo "$as_me:$LINENO: checking for stdlib.h" >&5
  5637. echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
  5638. if test "${ac_cv_header_stdlib_h+set}" = set; then
  5639. echo $ECHO_N "(cached) $ECHO_C" >&6
  5640. fi
  5641. { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
  5642. echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
  5643. else
  5644. # Is the header compilable?
  5645. { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
  5646. echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
  5647. cat >conftest.$ac_ext <<_ACEOF
  5648. /* confdefs.h. */
  5649. _ACEOF
  5650. cat confdefs.h >>conftest.$ac_ext
  5651. cat >>conftest.$ac_ext <<_ACEOF
  5652. /* end confdefs.h. */
  5653. $ac_includes_default
  5654. #include <stdlib.h>
  5655. _ACEOF
  5656. rm -f conftest.$ac_objext
  5657. if { (ac_try="$ac_compile"
  5658. case "(($ac_try" in
  5659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5660. *) ac_try_echo=$ac_try;;
  5661. esac
  5662. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5663. (eval "$ac_compile") 2>conftest.er1
  5664. ac_status=$?
  5665. grep -v '^ *+' conftest.er1 >conftest.err
  5666. rm -f conftest.er1
  5667. cat conftest.err >&5
  5668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5669. (exit $ac_status); } && {
  5670. test -z "$ac_c_werror_flag" ||
  5671. test ! -s conftest.err
  5672. } && test -s conftest.$ac_objext; then
  5673. ac_header_compiler=yes
  5674. else
  5675. echo "$as_me: failed program was:" >&5
  5676. sed 's/^/| /' conftest.$ac_ext >&5
  5677. ac_header_compiler=no
  5678. fi
  5679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5680. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5681. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5682. # Is the header present?
  5683. { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
  5684. echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
  5685. cat >conftest.$ac_ext <<_ACEOF
  5686. /* confdefs.h. */
  5687. _ACEOF
  5688. cat confdefs.h >>conftest.$ac_ext
  5689. cat >>conftest.$ac_ext <<_ACEOF
  5690. /* end confdefs.h. */
  5691. #include <stdlib.h>
  5692. _ACEOF
  5693. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5694. case "(($ac_try" in
  5695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5696. *) ac_try_echo=$ac_try;;
  5697. esac
  5698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5699. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5700. ac_status=$?
  5701. grep -v '^ *+' conftest.er1 >conftest.err
  5702. rm -f conftest.er1
  5703. cat conftest.err >&5
  5704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5705. (exit $ac_status); } >/dev/null && {
  5706. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5707. test ! -s conftest.err
  5708. }; then
  5709. ac_header_preproc=yes
  5710. else
  5711. echo "$as_me: failed program was:" >&5
  5712. sed 's/^/| /' conftest.$ac_ext >&5
  5713. ac_header_preproc=no
  5714. fi
  5715. rm -f conftest.err conftest.$ac_ext
  5716. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5717. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5718. # So? What about this header?
  5719. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5720. yes:no: )
  5721. { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5722. echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5723. { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
  5724. echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
  5725. ac_header_preproc=yes
  5726. ;;
  5727. no:yes:* )
  5728. { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
  5729. echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
  5730. { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
  5731. echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
  5732. { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
  5733. echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
  5734. { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
  5735. echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  5736. { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
  5737. echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
  5738. { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
  5739. echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
  5740. ;;
  5741. esac
  5742. { echo "$as_me:$LINENO: checking for stdlib.h" >&5
  5743. echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
  5744. if test "${ac_cv_header_stdlib_h+set}" = set; then
  5745. echo $ECHO_N "(cached) $ECHO_C" >&6
  5746. else
  5747. ac_cv_header_stdlib_h=$ac_header_preproc
  5748. fi
  5749. { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
  5750. echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
  5751. fi
  5752. if test $ac_cv_header_stdlib_h = yes; then
  5753. found=yes
  5754. else
  5755. found=no
  5756. fi
  5757. case $found in
  5758. yes)
  5759. { echo "$as_me:$LINENO: checking C header file <stdlib.h> for typedef size_t" >&5
  5760. echo $ECHO_N "checking C header file <stdlib.h> for typedef size_t... $ECHO_C" >&6; }
  5761. echo '#include <stdlib.h>' >conftest.c
  5762. if ($CPP conftest.c | grep size_t >/dev/null) 2>&5; then
  5763. { echo "$as_me:$LINENO: result: declared" >&5
  5764. echo "${ECHO_T}declared" >&6; }
  5765. rm conftest.c
  5766. else
  5767. cat >conftest.$ac_ext <<_ACEOF
  5768. /* confdefs.h. */
  5769. _ACEOF
  5770. cat confdefs.h >>conftest.$ac_ext
  5771. cat >>conftest.$ac_ext <<_ACEOF
  5772. /* end confdefs.h. */
  5773. #include <stdlib.h>
  5774. int size_t;
  5775. int
  5776. main ()
  5777. {
  5778. ;
  5779. return 0;
  5780. }
  5781. _ACEOF
  5782. rm -f conftest.$ac_objext
  5783. if { (ac_try="$ac_compile"
  5784. case "(($ac_try" in
  5785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5786. *) ac_try_echo=$ac_try;;
  5787. esac
  5788. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5789. (eval "$ac_compile") 2>conftest.er1
  5790. ac_status=$?
  5791. grep -v '^ *+' conftest.er1 >conftest.err
  5792. rm -f conftest.er1
  5793. cat conftest.err >&5
  5794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5795. (exit $ac_status); } && {
  5796. test -z "$ac_c_werror_flag" ||
  5797. test ! -s conftest.err
  5798. } && test -s conftest.$ac_objext; then
  5799. { echo "$as_me:$LINENO: result: undeclared" >&5
  5800. echo "${ECHO_T}undeclared" >&6; }
  5801. cat >>confdefs.h <<\_ACEOF
  5802. #define UD_NO_STDLIB_H_SIZE_T 1
  5803. _ACEOF
  5804. else
  5805. echo "$as_me: failed program was:" >&5
  5806. sed 's/^/| /' conftest.$ac_ext >&5
  5807. { echo "$as_me:$LINENO: result: declared" >&5
  5808. echo "${ECHO_T}declared" >&6; }
  5809. fi
  5810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5811. fi
  5812. ;;
  5813. no)
  5814. cat >>confdefs.h <<\_ACEOF
  5815. #define UD_NO_STDLIB_H_SIZE_T 1
  5816. _ACEOF
  5817. ;;
  5818. esac
  5819. for ac_func in atexit
  5820. do
  5821. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5822. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5823. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5824. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5825. echo $ECHO_N "(cached) $ECHO_C" >&6
  5826. else
  5827. cat >conftest.$ac_ext <<_ACEOF
  5828. /* confdefs.h. */
  5829. _ACEOF
  5830. cat confdefs.h >>conftest.$ac_ext
  5831. cat >>conftest.$ac_ext <<_ACEOF
  5832. /* end confdefs.h. */
  5833. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5834. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5835. #define $ac_func innocuous_$ac_func
  5836. /* System header to define __stub macros and hopefully few prototypes,
  5837. which can conflict with char $ac_func (); below.
  5838. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5839. <limits.h> exists even on freestanding compilers. */
  5840. #ifdef __STDC__
  5841. # include <limits.h>
  5842. #else
  5843. # include <assert.h>
  5844. #endif
  5845. #undef $ac_func
  5846. /* Override any GCC internal prototype to avoid an error.
  5847. Use char because int might match the return type of a GCC
  5848. builtin and then its argument prototype would still apply. */
  5849. #ifdef __cplusplus
  5850. extern "C"
  5851. #endif
  5852. char $ac_func ();
  5853. /* The GNU C library defines this for functions which it implements
  5854. to always fail with ENOSYS. Some functions are actually named
  5855. something starting with __ and the normal name is an alias. */
  5856. #if defined __stub_$ac_func || defined __stub___$ac_func
  5857. choke me
  5858. #endif
  5859. int
  5860. main ()
  5861. {
  5862. return $ac_func ();
  5863. ;
  5864. return 0;
  5865. }
  5866. _ACEOF
  5867. rm -f conftest.$ac_objext conftest$ac_exeext
  5868. if { (ac_try="$ac_link"
  5869. case "(($ac_try" in
  5870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5871. *) ac_try_echo=$ac_try;;
  5872. esac
  5873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5874. (eval "$ac_link") 2>conftest.er1
  5875. ac_status=$?
  5876. grep -v '^ *+' conftest.er1 >conftest.err
  5877. rm -f conftest.er1
  5878. cat conftest.err >&5
  5879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5880. (exit $ac_status); } && {
  5881. test -z "$ac_c_werror_flag" ||
  5882. test ! -s conftest.err
  5883. } && test -s conftest$ac_exeext &&
  5884. $as_test_x conftest$ac_exeext; then
  5885. eval "$as_ac_var=yes"
  5886. else
  5887. echo "$as_me: failed program was:" >&5
  5888. sed 's/^/| /' conftest.$ac_ext >&5
  5889. eval "$as_ac_var=no"
  5890. fi
  5891. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5892. conftest$ac_exeext conftest.$ac_ext
  5893. fi
  5894. ac_res=`eval echo '${'$as_ac_var'}'`
  5895. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5896. echo "${ECHO_T}$ac_res" >&6; }
  5897. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5898. cat >>confdefs.h <<_ACEOF
  5899. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5900. _ACEOF
  5901. else
  5902. case " $LIBOBJS " in
  5903. *" $ac_func.$ac_objext "* ) ;;
  5904. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  5905. ;;
  5906. esac
  5907. fi
  5908. done
  5909. if test "${ac_cv_header_stdlib_h+set}" = set; then
  5910. { echo "$as_me:$LINENO: checking for stdlib.h" >&5
  5911. echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
  5912. if test "${ac_cv_header_stdlib_h+set}" = set; then
  5913. echo $ECHO_N "(cached) $ECHO_C" >&6
  5914. fi
  5915. { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
  5916. echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
  5917. else
  5918. # Is the header compilable?
  5919. { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
  5920. echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
  5921. cat >conftest.$ac_ext <<_ACEOF
  5922. /* confdefs.h. */
  5923. _ACEOF
  5924. cat confdefs.h >>conftest.$ac_ext
  5925. cat >>conftest.$ac_ext <<_ACEOF
  5926. /* end confdefs.h. */
  5927. $ac_includes_default
  5928. #include <stdlib.h>
  5929. _ACEOF
  5930. rm -f conftest.$ac_objext
  5931. if { (ac_try="$ac_compile"
  5932. case "(($ac_try" in
  5933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5934. *) ac_try_echo=$ac_try;;
  5935. esac
  5936. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5937. (eval "$ac_compile") 2>conftest.er1
  5938. ac_status=$?
  5939. grep -v '^ *+' conftest.er1 >conftest.err
  5940. rm -f conftest.er1
  5941. cat conftest.err >&5
  5942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5943. (exit $ac_status); } && {
  5944. test -z "$ac_c_werror_flag" ||
  5945. test ! -s conftest.err
  5946. } && test -s conftest.$ac_objext; then
  5947. ac_header_compiler=yes
  5948. else
  5949. echo "$as_me: failed program was:" >&5
  5950. sed 's/^/| /' conftest.$ac_ext >&5
  5951. ac_header_compiler=no
  5952. fi
  5953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5954. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5955. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5956. # Is the header present?
  5957. { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
  5958. echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
  5959. cat >conftest.$ac_ext <<_ACEOF
  5960. /* confdefs.h. */
  5961. _ACEOF
  5962. cat confdefs.h >>conftest.$ac_ext
  5963. cat >>conftest.$ac_ext <<_ACEOF
  5964. /* end confdefs.h. */
  5965. #include <stdlib.h>
  5966. _ACEOF
  5967. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5968. case "(($ac_try" in
  5969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5970. *) ac_try_echo=$ac_try;;
  5971. esac
  5972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5973. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5974. ac_status=$?
  5975. grep -v '^ *+' conftest.er1 >conftest.err
  5976. rm -f conftest.er1
  5977. cat conftest.err >&5
  5978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5979. (exit $ac_status); } >/dev/null && {
  5980. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5981. test ! -s conftest.err
  5982. }; then
  5983. ac_header_preproc=yes
  5984. else
  5985. echo "$as_me: failed program was:" >&5
  5986. sed 's/^/| /' conftest.$ac_ext >&5
  5987. ac_header_preproc=no
  5988. fi
  5989. rm -f conftest.err conftest.$ac_ext
  5990. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5991. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5992. # So? What about this header?
  5993. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5994. yes:no: )
  5995. { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5996. echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5997. { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
  5998. echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
  5999. ac_header_preproc=yes
  6000. ;;
  6001. no:yes:* )
  6002. { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
  6003. echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
  6004. { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
  6005. echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
  6006. { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
  6007. echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
  6008. { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
  6009. echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  6010. { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
  6011. echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
  6012. { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
  6013. echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
  6014. ;;
  6015. esac
  6016. { echo "$as_me:$LINENO: checking for stdlib.h" >&5
  6017. echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
  6018. if test "${ac_cv_header_stdlib_h+set}" = set; then
  6019. echo $ECHO_N "(cached) $ECHO_C" >&6
  6020. else
  6021. ac_cv_header_stdlib_h=$ac_header_preproc
  6022. fi
  6023. { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
  6024. echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
  6025. fi
  6026. if test $ac_cv_header_stdlib_h = yes; then
  6027. { echo "$as_me:$LINENO: checking C header file <stdlib.h> for function atexit()" >&5
  6028. echo $ECHO_N "checking C header file <stdlib.h> for function atexit()... $ECHO_C" >&6; }
  6029. cat >conftest.$ac_ext <<_ACEOF
  6030. /* confdefs.h. */
  6031. _ACEOF
  6032. cat confdefs.h >>conftest.$ac_ext
  6033. cat >>conftest.$ac_ext <<_ACEOF
  6034. /* end confdefs.h. */
  6035. #include <stdlib.h>
  6036. extern struct {int a; int b;} *atexit();
  6037. int
  6038. main ()
  6039. {
  6040. ;
  6041. return 0;
  6042. }
  6043. _ACEOF
  6044. rm -f conftest.$ac_objext
  6045. if { (ac_try="$ac_compile"
  6046. case "(($ac_try" in
  6047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6048. *) ac_try_echo=$ac_try;;
  6049. esac
  6050. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6051. (eval "$ac_compile") 2>conftest.er1
  6052. ac_status=$?
  6053. grep -v '^ *+' conftest.er1 >conftest.err
  6054. rm -f conftest.er1
  6055. cat conftest.err >&5
  6056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6057. (exit $ac_status); } && {
  6058. test -z "$ac_c_werror_flag" ||
  6059. test ! -s conftest.err
  6060. } && test -s conftest.$ac_objext; then
  6061. { echo "$as_me:$LINENO: result: undeclared" >&5
  6062. echo "${ECHO_T}undeclared" >&6; }
  6063. UD_NO_ATEXIT_DECL="1"
  6064. cat >>confdefs.h <<\_ACEOF
  6065. #define UD_NO_ATEXIT_DECL 1
  6066. _ACEOF
  6067. else
  6068. echo "$as_me: failed program was:" >&5
  6069. sed 's/^/| /' conftest.$ac_ext >&5
  6070. { echo "$as_me:$LINENO: result: declared" >&5
  6071. echo "${ECHO_T}declared" >&6; }
  6072. fi
  6073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6074. else
  6075. UD_NO_ATEXIT_DECL="1"
  6076. cat >>confdefs.h <<\_ACEOF
  6077. #define UD_NO_ATEXIT_DECL 1
  6078. _ACEOF
  6079. fi
  6080. for ac_func in getenv
  6081. do
  6082. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6083. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6084. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6085. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6086. echo $ECHO_N "(cached) $ECHO_C" >&6
  6087. else
  6088. cat >conftest.$ac_ext <<_ACEOF
  6089. /* confdefs.h. */
  6090. _ACEOF
  6091. cat confdefs.h >>conftest.$ac_ext
  6092. cat >>conftest.$ac_ext <<_ACEOF
  6093. /* end confdefs.h. */
  6094. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6095. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6096. #define $ac_func innocuous_$ac_func
  6097. /* System header to define __stub macros and hopefully few prototypes,
  6098. which can conflict with char $ac_func (); below.
  6099. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6100. <limits.h> exists even on freestanding compilers. */
  6101. #ifdef __STDC__
  6102. # include <limits.h>
  6103. #else
  6104. # include <assert.h>
  6105. #endif
  6106. #undef $ac_func
  6107. /* Override any GCC internal prototype to avoid an error.
  6108. Use char because int might match the return type of a GCC
  6109. builtin and then its argument prototype would still apply. */
  6110. #ifdef __cplusplus
  6111. extern "C"
  6112. #endif
  6113. char $ac_func ();
  6114. /* The GNU C library defines this for functions which it implements
  6115. to always fail with ENOSYS. Some functions are actually named
  6116. something starting with __ and the normal name is an alias. */
  6117. #if defined __stub_$ac_func || defined __stub___$ac_func
  6118. choke me
  6119. #endif
  6120. int
  6121. main ()
  6122. {
  6123. return $ac_func ();
  6124. ;
  6125. return 0;
  6126. }
  6127. _ACEOF
  6128. rm -f conftest.$ac_objext conftest$ac_exeext
  6129. if { (ac_try="$ac_link"
  6130. case "(($ac_try" in
  6131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6132. *) ac_try_echo=$ac_try;;
  6133. esac
  6134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6135. (eval "$ac_link") 2>conftest.er1
  6136. ac_status=$?
  6137. grep -v '^ *+' conftest.er1 >conftest.err
  6138. rm -f conftest.er1
  6139. cat conftest.err >&5
  6140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6141. (exit $ac_status); } && {
  6142. test -z "$ac_c_werror_flag" ||
  6143. test ! -s conftest.err
  6144. } && test -s conftest$ac_exeext &&
  6145. $as_test_x conftest$ac_exeext; then
  6146. eval "$as_ac_var=yes"
  6147. else
  6148. echo "$as_me: failed program was:" >&5
  6149. sed 's/^/| /' conftest.$ac_ext >&5
  6150. eval "$as_ac_var=no"
  6151. fi
  6152. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6153. conftest$ac_exeext conftest.$ac_ext
  6154. fi
  6155. ac_res=`eval echo '${'$as_ac_var'}'`
  6156. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6157. echo "${ECHO_T}$ac_res" >&6; }
  6158. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6159. cat >>confdefs.h <<_ACEOF
  6160. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6161. _ACEOF
  6162. else
  6163. case " $LIBOBJS " in
  6164. *" $ac_func.$ac_objext "* ) ;;
  6165. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  6166. ;;
  6167. esac
  6168. fi
  6169. done
  6170. if test "${ac_cv_header_stdlib_h+set}" = set; then
  6171. { echo "$as_me:$LINENO: checking for stdlib.h" >&5
  6172. echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
  6173. if test "${ac_cv_header_stdlib_h+set}" = set; then
  6174. echo $ECHO_N "(cached) $ECHO_C" >&6
  6175. fi
  6176. { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
  6177. echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
  6178. else
  6179. # Is the header compilable?
  6180. { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
  6181. echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
  6182. cat >conftest.$ac_ext <<_ACEOF
  6183. /* confdefs.h. */
  6184. _ACEOF
  6185. cat confdefs.h >>conftest.$ac_ext
  6186. cat >>conftest.$ac_ext <<_ACEOF
  6187. /* end confdefs.h. */
  6188. $ac_includes_default
  6189. #include <stdlib.h>
  6190. _ACEOF
  6191. rm -f conftest.$ac_objext
  6192. if { (ac_try="$ac_compile"
  6193. case "(($ac_try" in
  6194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6195. *) ac_try_echo=$ac_try;;
  6196. esac
  6197. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6198. (eval "$ac_compile") 2>conftest.er1
  6199. ac_status=$?
  6200. grep -v '^ *+' conftest.er1 >conftest.err
  6201. rm -f conftest.er1
  6202. cat conftest.err >&5
  6203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6204. (exit $ac_status); } && {
  6205. test -z "$ac_c_werror_flag" ||
  6206. test ! -s conftest.err
  6207. } && test -s conftest.$ac_objext; then
  6208. ac_header_compiler=yes
  6209. else
  6210. echo "$as_me: failed program was:" >&5
  6211. sed 's/^/| /' conftest.$ac_ext >&5
  6212. ac_header_compiler=no
  6213. fi
  6214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6215. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6216. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6217. # Is the header present?
  6218. { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
  6219. echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
  6220. cat >conftest.$ac_ext <<_ACEOF
  6221. /* confdefs.h. */
  6222. _ACEOF
  6223. cat confdefs.h >>conftest.$ac_ext
  6224. cat >>conftest.$ac_ext <<_ACEOF
  6225. /* end confdefs.h. */
  6226. #include <stdlib.h>
  6227. _ACEOF
  6228. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6229. case "(($ac_try" in
  6230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6231. *) ac_try_echo=$ac_try;;
  6232. esac
  6233. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6234. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6235. ac_status=$?
  6236. grep -v '^ *+' conftest.er1 >conftest.err
  6237. rm -f conftest.er1
  6238. cat conftest.err >&5
  6239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6240. (exit $ac_status); } >/dev/null && {
  6241. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6242. test ! -s conftest.err
  6243. }; then
  6244. ac_header_preproc=yes
  6245. else
  6246. echo "$as_me: failed program was:" >&5
  6247. sed 's/^/| /' conftest.$ac_ext >&5
  6248. ac_header_preproc=no
  6249. fi
  6250. rm -f conftest.err conftest.$ac_ext
  6251. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6252. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6253. # So? What about this header?
  6254. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6255. yes:no: )
  6256. { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6257. echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6258. { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
  6259. echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
  6260. ac_header_preproc=yes
  6261. ;;
  6262. no:yes:* )
  6263. { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
  6264. echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
  6265. { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
  6266. echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
  6267. { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
  6268. echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
  6269. { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
  6270. echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  6271. { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
  6272. echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
  6273. { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
  6274. echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
  6275. ;;
  6276. esac
  6277. { echo "$as_me:$LINENO: checking for stdlib.h" >&5
  6278. echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
  6279. if test "${ac_cv_header_stdlib_h+set}" = set; then
  6280. echo $ECHO_N "(cached) $ECHO_C" >&6
  6281. else
  6282. ac_cv_header_stdlib_h=$ac_header_preproc
  6283. fi
  6284. { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
  6285. echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
  6286. fi
  6287. if test $ac_cv_header_stdlib_h = yes; then
  6288. { echo "$as_me:$LINENO: checking C header file <stdlib.h> for function getenv()" >&5
  6289. echo $ECHO_N "checking C header file <stdlib.h> for function getenv()... $ECHO_C" >&6; }
  6290. cat >conftest.$ac_ext <<_ACEOF
  6291. /* confdefs.h. */
  6292. _ACEOF
  6293. cat confdefs.h >>conftest.$ac_ext
  6294. cat >>conftest.$ac_ext <<_ACEOF
  6295. /* end confdefs.h. */
  6296. #include <stdlib.h>
  6297. extern struct {int a; int b;} *getenv();
  6298. int
  6299. main ()
  6300. {
  6301. ;
  6302. return 0;
  6303. }
  6304. _ACEOF
  6305. rm -f conftest.$ac_objext
  6306. if { (ac_try="$ac_compile"
  6307. case "(($ac_try" in
  6308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6309. *) ac_try_echo=$ac_try;;
  6310. esac
  6311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6312. (eval "$ac_compile") 2>conftest.er1
  6313. ac_status=$?
  6314. grep -v '^ *+' conftest.er1 >conftest.err
  6315. rm -f conftest.er1
  6316. cat conftest.err >&5
  6317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6318. (exit $ac_status); } && {
  6319. test -z "$ac_c_werror_flag" ||
  6320. test ! -s conftest.err
  6321. } && test -s conftest.$ac_objext; then
  6322. { echo "$as_me:$LINENO: result: undeclared" >&5
  6323. echo "${ECHO_T}undeclared" >&6; }
  6324. UD_NO_GETENV_DECL="1"
  6325. cat >>confdefs.h <<\_ACEOF
  6326. #define UD_NO_GETENV_DECL 1
  6327. _ACEOF
  6328. else
  6329. echo "$as_me: failed program was:" >&5
  6330. sed 's/^/| /' conftest.$ac_ext >&5
  6331. { echo "$as_me:$LINENO: result: declared" >&5
  6332. echo "${ECHO_T}declared" >&6; }
  6333. fi
  6334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6335. else
  6336. UD_NO_GETENV_DECL="1"
  6337. cat >>confdefs.h <<\_ACEOF
  6338. #define UD_NO_GETENV_DECL 1
  6339. _ACEOF
  6340. fi
  6341. for arg in strerror.c strstr.c string.h.in memmove.c; do
  6342. case "$PORT_MANIFEST" in
  6343. *$arg*)
  6344. ;;
  6345. *)
  6346. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  6347. ;;
  6348. esac
  6349. done
  6350. for arg in misc; do
  6351. case "$PORT_SUBDIRS" in
  6352. *$arg*)
  6353. ;;
  6354. *)
  6355. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  6356. ;;
  6357. esac
  6358. done
  6359. echo "#include <string.h>" > conftestpath.c
  6360. #
  6361. # We add additional `/'s to the header file name to preclude compiler
  6362. # warnings about the non-portability of `#include "/usr/include/..."'.
  6363. #
  6364. case `uname -s`${GCC-} in
  6365. AIX)
  6366. #
  6367. # AIX's C compiler doesn't emit a line that gives the pathname of
  6368. # the included file.
  6369. #
  6370. # AIX's C compiler puts dependency information in a `.u' file.
  6371. #
  6372. # AIX 4.1's cc(1) makes the following complaint:
  6373. # ld: 0711-317 ERROR: Undefined symbol: .main
  6374. #
  6375. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  6376. # /dev/null.
  6377. #
  6378. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  6379. path=`sed -n '/[^\/]*\(\/[^ ]*string\.h\).*/s//\1/p' \
  6380. conftestpath.u | head -1`
  6381. rm conftestpath.u
  6382. ;;
  6383. HP-UX)
  6384. #
  6385. # HP-UX's C compiler doesn't have a dependency-generation option,
  6386. # so we use another method.
  6387. #
  6388. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  6389. sed -n '/[^\/]*\(\/[^ ]*string\.h\).*/s//\1/p' |
  6390. head -1`
  6391. ;;
  6392. *)
  6393. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  6394. sed -n '/[^\/]*\(\/[^ ]*string\.h\).*/s//\1/p' |
  6395. head -1`
  6396. ;;
  6397. esac
  6398. case "$path" in
  6399. '')
  6400. path=/dev/null
  6401. ;;
  6402. *)
  6403. path=//$path
  6404. ;;
  6405. esac
  6406. cat >>confdefs.h <<_ACEOF
  6407. #define UD_SYSTEM_STRING_H "$path"
  6408. _ACEOF
  6409. for arg in misc; do
  6410. case "$PORT_SUBDIRS" in
  6411. *$arg*)
  6412. ;;
  6413. *)
  6414. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  6415. ;;
  6416. esac
  6417. done
  6418. if test "${ac_cv_header_string_h+set}" = set; then
  6419. { echo "$as_me:$LINENO: checking for string.h" >&5
  6420. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  6421. if test "${ac_cv_header_string_h+set}" = set; then
  6422. echo $ECHO_N "(cached) $ECHO_C" >&6
  6423. fi
  6424. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  6425. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  6426. else
  6427. # Is the header compilable?
  6428. { echo "$as_me:$LINENO: checking string.h usability" >&5
  6429. echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
  6430. cat >conftest.$ac_ext <<_ACEOF
  6431. /* confdefs.h. */
  6432. _ACEOF
  6433. cat confdefs.h >>conftest.$ac_ext
  6434. cat >>conftest.$ac_ext <<_ACEOF
  6435. /* end confdefs.h. */
  6436. $ac_includes_default
  6437. #include <string.h>
  6438. _ACEOF
  6439. rm -f conftest.$ac_objext
  6440. if { (ac_try="$ac_compile"
  6441. case "(($ac_try" in
  6442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6443. *) ac_try_echo=$ac_try;;
  6444. esac
  6445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6446. (eval "$ac_compile") 2>conftest.er1
  6447. ac_status=$?
  6448. grep -v '^ *+' conftest.er1 >conftest.err
  6449. rm -f conftest.er1
  6450. cat conftest.err >&5
  6451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6452. (exit $ac_status); } && {
  6453. test -z "$ac_c_werror_flag" ||
  6454. test ! -s conftest.err
  6455. } && test -s conftest.$ac_objext; then
  6456. ac_header_compiler=yes
  6457. else
  6458. echo "$as_me: failed program was:" >&5
  6459. sed 's/^/| /' conftest.$ac_ext >&5
  6460. ac_header_compiler=no
  6461. fi
  6462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6463. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6464. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6465. # Is the header present?
  6466. { echo "$as_me:$LINENO: checking string.h presence" >&5
  6467. echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
  6468. cat >conftest.$ac_ext <<_ACEOF
  6469. /* confdefs.h. */
  6470. _ACEOF
  6471. cat confdefs.h >>conftest.$ac_ext
  6472. cat >>conftest.$ac_ext <<_ACEOF
  6473. /* end confdefs.h. */
  6474. #include <string.h>
  6475. _ACEOF
  6476. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6477. case "(($ac_try" in
  6478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6479. *) ac_try_echo=$ac_try;;
  6480. esac
  6481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6482. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6483. ac_status=$?
  6484. grep -v '^ *+' conftest.er1 >conftest.err
  6485. rm -f conftest.er1
  6486. cat conftest.err >&5
  6487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6488. (exit $ac_status); } >/dev/null && {
  6489. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6490. test ! -s conftest.err
  6491. }; then
  6492. ac_header_preproc=yes
  6493. else
  6494. echo "$as_me: failed program was:" >&5
  6495. sed 's/^/| /' conftest.$ac_ext >&5
  6496. ac_header_preproc=no
  6497. fi
  6498. rm -f conftest.err conftest.$ac_ext
  6499. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6500. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6501. # So? What about this header?
  6502. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6503. yes:no: )
  6504. { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6505. echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6506. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
  6507. echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
  6508. ac_header_preproc=yes
  6509. ;;
  6510. no:yes:* )
  6511. { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
  6512. echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
  6513. { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
  6514. echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
  6515. { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
  6516. echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
  6517. { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
  6518. echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
  6519. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
  6520. echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
  6521. { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
  6522. echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
  6523. ;;
  6524. esac
  6525. { echo "$as_me:$LINENO: checking for string.h" >&5
  6526. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  6527. if test "${ac_cv_header_string_h+set}" = set; then
  6528. echo $ECHO_N "(cached) $ECHO_C" >&6
  6529. else
  6530. ac_cv_header_string_h=$ac_header_preproc
  6531. fi
  6532. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  6533. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  6534. fi
  6535. if test $ac_cv_header_string_h = yes; then
  6536. found=yes
  6537. else
  6538. found=no
  6539. fi
  6540. case $found in
  6541. yes)
  6542. { echo "$as_me:$LINENO: checking C header file <string.h> for typedef size_t" >&5
  6543. echo $ECHO_N "checking C header file <string.h> for typedef size_t... $ECHO_C" >&6; }
  6544. echo '#include <string.h>' >conftest.c
  6545. if ($CPP conftest.c | grep size_t >/dev/null) 2>&5; then
  6546. { echo "$as_me:$LINENO: result: declared" >&5
  6547. echo "${ECHO_T}declared" >&6; }
  6548. rm conftest.c
  6549. else
  6550. cat >conftest.$ac_ext <<_ACEOF
  6551. /* confdefs.h. */
  6552. _ACEOF
  6553. cat confdefs.h >>conftest.$ac_ext
  6554. cat >>conftest.$ac_ext <<_ACEOF
  6555. /* end confdefs.h. */
  6556. #include <string.h>
  6557. int size_t;
  6558. int
  6559. main ()
  6560. {
  6561. ;
  6562. return 0;
  6563. }
  6564. _ACEOF
  6565. rm -f conftest.$ac_objext
  6566. if { (ac_try="$ac_compile"
  6567. case "(($ac_try" in
  6568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6569. *) ac_try_echo=$ac_try;;
  6570. esac
  6571. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6572. (eval "$ac_compile") 2>conftest.er1
  6573. ac_status=$?
  6574. grep -v '^ *+' conftest.er1 >conftest.err
  6575. rm -f conftest.er1
  6576. cat conftest.err >&5
  6577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6578. (exit $ac_status); } && {
  6579. test -z "$ac_c_werror_flag" ||
  6580. test ! -s conftest.err
  6581. } && test -s conftest.$ac_objext; then
  6582. { echo "$as_me:$LINENO: result: undeclared" >&5
  6583. echo "${ECHO_T}undeclared" >&6; }
  6584. cat >>confdefs.h <<\_ACEOF
  6585. #define UD_NO_STRING_H_SIZE_T 1
  6586. _ACEOF
  6587. else
  6588. echo "$as_me: failed program was:" >&5
  6589. sed 's/^/| /' conftest.$ac_ext >&5
  6590. { echo "$as_me:$LINENO: result: declared" >&5
  6591. echo "${ECHO_T}declared" >&6; }
  6592. fi
  6593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6594. fi
  6595. ;;
  6596. no)
  6597. cat >>confdefs.h <<\_ACEOF
  6598. #define UD_NO_STRING_H_SIZE_T 1
  6599. _ACEOF
  6600. ;;
  6601. esac
  6602. for ac_func in strerror
  6603. do
  6604. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6605. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6606. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6607. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6608. echo $ECHO_N "(cached) $ECHO_C" >&6
  6609. else
  6610. cat >conftest.$ac_ext <<_ACEOF
  6611. /* confdefs.h. */
  6612. _ACEOF
  6613. cat confdefs.h >>conftest.$ac_ext
  6614. cat >>conftest.$ac_ext <<_ACEOF
  6615. /* end confdefs.h. */
  6616. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6617. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6618. #define $ac_func innocuous_$ac_func
  6619. /* System header to define __stub macros and hopefully few prototypes,
  6620. which can conflict with char $ac_func (); below.
  6621. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6622. <limits.h> exists even on freestanding compilers. */
  6623. #ifdef __STDC__
  6624. # include <limits.h>
  6625. #else
  6626. # include <assert.h>
  6627. #endif
  6628. #undef $ac_func
  6629. /* Override any GCC internal prototype to avoid an error.
  6630. Use char because int might match the return type of a GCC
  6631. builtin and then its argument prototype would still apply. */
  6632. #ifdef __cplusplus
  6633. extern "C"
  6634. #endif
  6635. char $ac_func ();
  6636. /* The GNU C library defines this for functions which it implements
  6637. to always fail with ENOSYS. Some functions are actually named
  6638. something starting with __ and the normal name is an alias. */
  6639. #if defined __stub_$ac_func || defined __stub___$ac_func
  6640. choke me
  6641. #endif
  6642. int
  6643. main ()
  6644. {
  6645. return $ac_func ();
  6646. ;
  6647. return 0;
  6648. }
  6649. _ACEOF
  6650. rm -f conftest.$ac_objext conftest$ac_exeext
  6651. if { (ac_try="$ac_link"
  6652. case "(($ac_try" in
  6653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6654. *) ac_try_echo=$ac_try;;
  6655. esac
  6656. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6657. (eval "$ac_link") 2>conftest.er1
  6658. ac_status=$?
  6659. grep -v '^ *+' conftest.er1 >conftest.err
  6660. rm -f conftest.er1
  6661. cat conftest.err >&5
  6662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6663. (exit $ac_status); } && {
  6664. test -z "$ac_c_werror_flag" ||
  6665. test ! -s conftest.err
  6666. } && test -s conftest$ac_exeext &&
  6667. $as_test_x conftest$ac_exeext; then
  6668. eval "$as_ac_var=yes"
  6669. else
  6670. echo "$as_me: failed program was:" >&5
  6671. sed 's/^/| /' conftest.$ac_ext >&5
  6672. eval "$as_ac_var=no"
  6673. fi
  6674. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6675. conftest$ac_exeext conftest.$ac_ext
  6676. fi
  6677. ac_res=`eval echo '${'$as_ac_var'}'`
  6678. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6679. echo "${ECHO_T}$ac_res" >&6; }
  6680. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6681. cat >>confdefs.h <<_ACEOF
  6682. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6683. _ACEOF
  6684. else
  6685. case " $LIBOBJS " in
  6686. *" $ac_func.$ac_objext "* ) ;;
  6687. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  6688. ;;
  6689. esac
  6690. fi
  6691. done
  6692. if test "${ac_cv_header_string_h+set}" = set; then
  6693. { echo "$as_me:$LINENO: checking for string.h" >&5
  6694. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  6695. if test "${ac_cv_header_string_h+set}" = set; then
  6696. echo $ECHO_N "(cached) $ECHO_C" >&6
  6697. fi
  6698. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  6699. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  6700. else
  6701. # Is the header compilable?
  6702. { echo "$as_me:$LINENO: checking string.h usability" >&5
  6703. echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
  6704. cat >conftest.$ac_ext <<_ACEOF
  6705. /* confdefs.h. */
  6706. _ACEOF
  6707. cat confdefs.h >>conftest.$ac_ext
  6708. cat >>conftest.$ac_ext <<_ACEOF
  6709. /* end confdefs.h. */
  6710. $ac_includes_default
  6711. #include <string.h>
  6712. _ACEOF
  6713. rm -f conftest.$ac_objext
  6714. if { (ac_try="$ac_compile"
  6715. case "(($ac_try" in
  6716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6717. *) ac_try_echo=$ac_try;;
  6718. esac
  6719. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6720. (eval "$ac_compile") 2>conftest.er1
  6721. ac_status=$?
  6722. grep -v '^ *+' conftest.er1 >conftest.err
  6723. rm -f conftest.er1
  6724. cat conftest.err >&5
  6725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6726. (exit $ac_status); } && {
  6727. test -z "$ac_c_werror_flag" ||
  6728. test ! -s conftest.err
  6729. } && test -s conftest.$ac_objext; then
  6730. ac_header_compiler=yes
  6731. else
  6732. echo "$as_me: failed program was:" >&5
  6733. sed 's/^/| /' conftest.$ac_ext >&5
  6734. ac_header_compiler=no
  6735. fi
  6736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6737. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6738. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6739. # Is the header present?
  6740. { echo "$as_me:$LINENO: checking string.h presence" >&5
  6741. echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
  6742. cat >conftest.$ac_ext <<_ACEOF
  6743. /* confdefs.h. */
  6744. _ACEOF
  6745. cat confdefs.h >>conftest.$ac_ext
  6746. cat >>conftest.$ac_ext <<_ACEOF
  6747. /* end confdefs.h. */
  6748. #include <string.h>
  6749. _ACEOF
  6750. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6751. case "(($ac_try" in
  6752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6753. *) ac_try_echo=$ac_try;;
  6754. esac
  6755. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6756. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6757. ac_status=$?
  6758. grep -v '^ *+' conftest.er1 >conftest.err
  6759. rm -f conftest.er1
  6760. cat conftest.err >&5
  6761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6762. (exit $ac_status); } >/dev/null && {
  6763. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6764. test ! -s conftest.err
  6765. }; then
  6766. ac_header_preproc=yes
  6767. else
  6768. echo "$as_me: failed program was:" >&5
  6769. sed 's/^/| /' conftest.$ac_ext >&5
  6770. ac_header_preproc=no
  6771. fi
  6772. rm -f conftest.err conftest.$ac_ext
  6773. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6774. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6775. # So? What about this header?
  6776. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6777. yes:no: )
  6778. { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6779. echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6780. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
  6781. echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
  6782. ac_header_preproc=yes
  6783. ;;
  6784. no:yes:* )
  6785. { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
  6786. echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
  6787. { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
  6788. echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
  6789. { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
  6790. echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
  6791. { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
  6792. echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
  6793. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
  6794. echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
  6795. { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
  6796. echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
  6797. ;;
  6798. esac
  6799. { echo "$as_me:$LINENO: checking for string.h" >&5
  6800. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  6801. if test "${ac_cv_header_string_h+set}" = set; then
  6802. echo $ECHO_N "(cached) $ECHO_C" >&6
  6803. else
  6804. ac_cv_header_string_h=$ac_header_preproc
  6805. fi
  6806. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  6807. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  6808. fi
  6809. if test $ac_cv_header_string_h = yes; then
  6810. { echo "$as_me:$LINENO: checking C header file <string.h> for function strerror()" >&5
  6811. echo $ECHO_N "checking C header file <string.h> for function strerror()... $ECHO_C" >&6; }
  6812. cat >conftest.$ac_ext <<_ACEOF
  6813. /* confdefs.h. */
  6814. _ACEOF
  6815. cat confdefs.h >>conftest.$ac_ext
  6816. cat >>conftest.$ac_ext <<_ACEOF
  6817. /* end confdefs.h. */
  6818. #include <string.h>
  6819. extern struct {int a; int b;} *strerror();
  6820. int
  6821. main ()
  6822. {
  6823. ;
  6824. return 0;
  6825. }
  6826. _ACEOF
  6827. rm -f conftest.$ac_objext
  6828. if { (ac_try="$ac_compile"
  6829. case "(($ac_try" in
  6830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6831. *) ac_try_echo=$ac_try;;
  6832. esac
  6833. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6834. (eval "$ac_compile") 2>conftest.er1
  6835. ac_status=$?
  6836. grep -v '^ *+' conftest.er1 >conftest.err
  6837. rm -f conftest.er1
  6838. cat conftest.err >&5
  6839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6840. (exit $ac_status); } && {
  6841. test -z "$ac_c_werror_flag" ||
  6842. test ! -s conftest.err
  6843. } && test -s conftest.$ac_objext; then
  6844. { echo "$as_me:$LINENO: result: undeclared" >&5
  6845. echo "${ECHO_T}undeclared" >&6; }
  6846. UD_NO_STRERROR_DECL="1"
  6847. cat >>confdefs.h <<\_ACEOF
  6848. #define UD_NO_STRERROR_DECL 1
  6849. _ACEOF
  6850. else
  6851. echo "$as_me: failed program was:" >&5
  6852. sed 's/^/| /' conftest.$ac_ext >&5
  6853. { echo "$as_me:$LINENO: result: declared" >&5
  6854. echo "${ECHO_T}declared" >&6; }
  6855. fi
  6856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6857. else
  6858. UD_NO_STRERROR_DECL="1"
  6859. cat >>confdefs.h <<\_ACEOF
  6860. #define UD_NO_STRERROR_DECL 1
  6861. _ACEOF
  6862. fi
  6863. if test "${ac_cv_header_string_h+set}" = set; then
  6864. { echo "$as_me:$LINENO: checking for string.h" >&5
  6865. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  6866. if test "${ac_cv_header_string_h+set}" = set; then
  6867. echo $ECHO_N "(cached) $ECHO_C" >&6
  6868. fi
  6869. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  6870. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  6871. else
  6872. # Is the header compilable?
  6873. { echo "$as_me:$LINENO: checking string.h usability" >&5
  6874. echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
  6875. cat >conftest.$ac_ext <<_ACEOF
  6876. /* confdefs.h. */
  6877. _ACEOF
  6878. cat confdefs.h >>conftest.$ac_ext
  6879. cat >>conftest.$ac_ext <<_ACEOF
  6880. /* end confdefs.h. */
  6881. $ac_includes_default
  6882. #include <string.h>
  6883. _ACEOF
  6884. rm -f conftest.$ac_objext
  6885. if { (ac_try="$ac_compile"
  6886. case "(($ac_try" in
  6887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6888. *) ac_try_echo=$ac_try;;
  6889. esac
  6890. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6891. (eval "$ac_compile") 2>conftest.er1
  6892. ac_status=$?
  6893. grep -v '^ *+' conftest.er1 >conftest.err
  6894. rm -f conftest.er1
  6895. cat conftest.err >&5
  6896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6897. (exit $ac_status); } && {
  6898. test -z "$ac_c_werror_flag" ||
  6899. test ! -s conftest.err
  6900. } && test -s conftest.$ac_objext; then
  6901. ac_header_compiler=yes
  6902. else
  6903. echo "$as_me: failed program was:" >&5
  6904. sed 's/^/| /' conftest.$ac_ext >&5
  6905. ac_header_compiler=no
  6906. fi
  6907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6908. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6909. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6910. # Is the header present?
  6911. { echo "$as_me:$LINENO: checking string.h presence" >&5
  6912. echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
  6913. cat >conftest.$ac_ext <<_ACEOF
  6914. /* confdefs.h. */
  6915. _ACEOF
  6916. cat confdefs.h >>conftest.$ac_ext
  6917. cat >>conftest.$ac_ext <<_ACEOF
  6918. /* end confdefs.h. */
  6919. #include <string.h>
  6920. _ACEOF
  6921. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6922. case "(($ac_try" in
  6923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6924. *) ac_try_echo=$ac_try;;
  6925. esac
  6926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6927. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6928. ac_status=$?
  6929. grep -v '^ *+' conftest.er1 >conftest.err
  6930. rm -f conftest.er1
  6931. cat conftest.err >&5
  6932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6933. (exit $ac_status); } >/dev/null && {
  6934. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6935. test ! -s conftest.err
  6936. }; then
  6937. ac_header_preproc=yes
  6938. else
  6939. echo "$as_me: failed program was:" >&5
  6940. sed 's/^/| /' conftest.$ac_ext >&5
  6941. ac_header_preproc=no
  6942. fi
  6943. rm -f conftest.err conftest.$ac_ext
  6944. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6945. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6946. # So? What about this header?
  6947. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6948. yes:no: )
  6949. { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6950. echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6951. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
  6952. echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
  6953. ac_header_preproc=yes
  6954. ;;
  6955. no:yes:* )
  6956. { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
  6957. echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
  6958. { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
  6959. echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
  6960. { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
  6961. echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
  6962. { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
  6963. echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
  6964. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
  6965. echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
  6966. { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
  6967. echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
  6968. ;;
  6969. esac
  6970. { echo "$as_me:$LINENO: checking for string.h" >&5
  6971. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  6972. if test "${ac_cv_header_string_h+set}" = set; then
  6973. echo $ECHO_N "(cached) $ECHO_C" >&6
  6974. else
  6975. ac_cv_header_string_h=$ac_header_preproc
  6976. fi
  6977. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  6978. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  6979. fi
  6980. if test $ac_cv_header_string_h = yes; then
  6981. { echo "$as_me:$LINENO: checking C header file <string.h> for function strchr()" >&5
  6982. echo $ECHO_N "checking C header file <string.h> for function strchr()... $ECHO_C" >&6; }
  6983. cat >conftest.$ac_ext <<_ACEOF
  6984. /* confdefs.h. */
  6985. _ACEOF
  6986. cat confdefs.h >>conftest.$ac_ext
  6987. cat >>conftest.$ac_ext <<_ACEOF
  6988. /* end confdefs.h. */
  6989. #include <string.h>
  6990. extern struct {int a; int b;} *strchr();
  6991. int
  6992. main ()
  6993. {
  6994. ;
  6995. return 0;
  6996. }
  6997. _ACEOF
  6998. rm -f conftest.$ac_objext
  6999. if { (ac_try="$ac_compile"
  7000. case "(($ac_try" in
  7001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7002. *) ac_try_echo=$ac_try;;
  7003. esac
  7004. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7005. (eval "$ac_compile") 2>conftest.er1
  7006. ac_status=$?
  7007. grep -v '^ *+' conftest.er1 >conftest.err
  7008. rm -f conftest.er1
  7009. cat conftest.err >&5
  7010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7011. (exit $ac_status); } && {
  7012. test -z "$ac_c_werror_flag" ||
  7013. test ! -s conftest.err
  7014. } && test -s conftest.$ac_objext; then
  7015. { echo "$as_me:$LINENO: result: undeclared" >&5
  7016. echo "${ECHO_T}undeclared" >&6; }
  7017. UD_NO_STRCHR_DECL="1"
  7018. cat >>confdefs.h <<\_ACEOF
  7019. #define UD_NO_STRCHR_DECL 1
  7020. _ACEOF
  7021. else
  7022. echo "$as_me: failed program was:" >&5
  7023. sed 's/^/| /' conftest.$ac_ext >&5
  7024. { echo "$as_me:$LINENO: result: declared" >&5
  7025. echo "${ECHO_T}declared" >&6; }
  7026. fi
  7027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7028. else
  7029. UD_NO_STRCHR_DECL="1"
  7030. cat >>confdefs.h <<\_ACEOF
  7031. #define UD_NO_STRCHR_DECL 1
  7032. _ACEOF
  7033. fi
  7034. if test "${ac_cv_header_string_h+set}" = set; then
  7035. { echo "$as_me:$LINENO: checking for string.h" >&5
  7036. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  7037. if test "${ac_cv_header_string_h+set}" = set; then
  7038. echo $ECHO_N "(cached) $ECHO_C" >&6
  7039. fi
  7040. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  7041. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  7042. else
  7043. # Is the header compilable?
  7044. { echo "$as_me:$LINENO: checking string.h usability" >&5
  7045. echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
  7046. cat >conftest.$ac_ext <<_ACEOF
  7047. /* confdefs.h. */
  7048. _ACEOF
  7049. cat confdefs.h >>conftest.$ac_ext
  7050. cat >>conftest.$ac_ext <<_ACEOF
  7051. /* end confdefs.h. */
  7052. $ac_includes_default
  7053. #include <string.h>
  7054. _ACEOF
  7055. rm -f conftest.$ac_objext
  7056. if { (ac_try="$ac_compile"
  7057. case "(($ac_try" in
  7058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7059. *) ac_try_echo=$ac_try;;
  7060. esac
  7061. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7062. (eval "$ac_compile") 2>conftest.er1
  7063. ac_status=$?
  7064. grep -v '^ *+' conftest.er1 >conftest.err
  7065. rm -f conftest.er1
  7066. cat conftest.err >&5
  7067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7068. (exit $ac_status); } && {
  7069. test -z "$ac_c_werror_flag" ||
  7070. test ! -s conftest.err
  7071. } && test -s conftest.$ac_objext; then
  7072. ac_header_compiler=yes
  7073. else
  7074. echo "$as_me: failed program was:" >&5
  7075. sed 's/^/| /' conftest.$ac_ext >&5
  7076. ac_header_compiler=no
  7077. fi
  7078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7079. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7080. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7081. # Is the header present?
  7082. { echo "$as_me:$LINENO: checking string.h presence" >&5
  7083. echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
  7084. cat >conftest.$ac_ext <<_ACEOF
  7085. /* confdefs.h. */
  7086. _ACEOF
  7087. cat confdefs.h >>conftest.$ac_ext
  7088. cat >>conftest.$ac_ext <<_ACEOF
  7089. /* end confdefs.h. */
  7090. #include <string.h>
  7091. _ACEOF
  7092. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7093. case "(($ac_try" in
  7094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7095. *) ac_try_echo=$ac_try;;
  7096. esac
  7097. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7098. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7099. ac_status=$?
  7100. grep -v '^ *+' conftest.er1 >conftest.err
  7101. rm -f conftest.er1
  7102. cat conftest.err >&5
  7103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7104. (exit $ac_status); } >/dev/null && {
  7105. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7106. test ! -s conftest.err
  7107. }; then
  7108. ac_header_preproc=yes
  7109. else
  7110. echo "$as_me: failed program was:" >&5
  7111. sed 's/^/| /' conftest.$ac_ext >&5
  7112. ac_header_preproc=no
  7113. fi
  7114. rm -f conftest.err conftest.$ac_ext
  7115. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7116. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7117. # So? What about this header?
  7118. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7119. yes:no: )
  7120. { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7121. echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7122. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
  7123. echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
  7124. ac_header_preproc=yes
  7125. ;;
  7126. no:yes:* )
  7127. { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
  7128. echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
  7129. { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
  7130. echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
  7131. { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
  7132. echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
  7133. { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
  7134. echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
  7135. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
  7136. echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
  7137. { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
  7138. echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
  7139. ;;
  7140. esac
  7141. { echo "$as_me:$LINENO: checking for string.h" >&5
  7142. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  7143. if test "${ac_cv_header_string_h+set}" = set; then
  7144. echo $ECHO_N "(cached) $ECHO_C" >&6
  7145. else
  7146. ac_cv_header_string_h=$ac_header_preproc
  7147. fi
  7148. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  7149. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  7150. fi
  7151. if test $ac_cv_header_string_h = yes; then
  7152. { echo "$as_me:$LINENO: checking C header file <string.h> for function strcpy()" >&5
  7153. echo $ECHO_N "checking C header file <string.h> for function strcpy()... $ECHO_C" >&6; }
  7154. cat >conftest.$ac_ext <<_ACEOF
  7155. /* confdefs.h. */
  7156. _ACEOF
  7157. cat confdefs.h >>conftest.$ac_ext
  7158. cat >>conftest.$ac_ext <<_ACEOF
  7159. /* end confdefs.h. */
  7160. #include <string.h>
  7161. extern struct {int a; int b;} *strcpy();
  7162. int
  7163. main ()
  7164. {
  7165. ;
  7166. return 0;
  7167. }
  7168. _ACEOF
  7169. rm -f conftest.$ac_objext
  7170. if { (ac_try="$ac_compile"
  7171. case "(($ac_try" in
  7172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7173. *) ac_try_echo=$ac_try;;
  7174. esac
  7175. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7176. (eval "$ac_compile") 2>conftest.er1
  7177. ac_status=$?
  7178. grep -v '^ *+' conftest.er1 >conftest.err
  7179. rm -f conftest.er1
  7180. cat conftest.err >&5
  7181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7182. (exit $ac_status); } && {
  7183. test -z "$ac_c_werror_flag" ||
  7184. test ! -s conftest.err
  7185. } && test -s conftest.$ac_objext; then
  7186. { echo "$as_me:$LINENO: result: undeclared" >&5
  7187. echo "${ECHO_T}undeclared" >&6; }
  7188. UD_NO_STRCPY_DECL="1"
  7189. cat >>confdefs.h <<\_ACEOF
  7190. #define UD_NO_STRCPY_DECL 1
  7191. _ACEOF
  7192. else
  7193. echo "$as_me: failed program was:" >&5
  7194. sed 's/^/| /' conftest.$ac_ext >&5
  7195. { echo "$as_me:$LINENO: result: declared" >&5
  7196. echo "${ECHO_T}declared" >&6; }
  7197. fi
  7198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7199. else
  7200. UD_NO_STRCPY_DECL="1"
  7201. cat >>confdefs.h <<\_ACEOF
  7202. #define UD_NO_STRCPY_DECL 1
  7203. _ACEOF
  7204. fi
  7205. if test "${ac_cv_header_string_h+set}" = set; then
  7206. { echo "$as_me:$LINENO: checking for string.h" >&5
  7207. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  7208. if test "${ac_cv_header_string_h+set}" = set; then
  7209. echo $ECHO_N "(cached) $ECHO_C" >&6
  7210. fi
  7211. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  7212. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  7213. else
  7214. # Is the header compilable?
  7215. { echo "$as_me:$LINENO: checking string.h usability" >&5
  7216. echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
  7217. cat >conftest.$ac_ext <<_ACEOF
  7218. /* confdefs.h. */
  7219. _ACEOF
  7220. cat confdefs.h >>conftest.$ac_ext
  7221. cat >>conftest.$ac_ext <<_ACEOF
  7222. /* end confdefs.h. */
  7223. $ac_includes_default
  7224. #include <string.h>
  7225. _ACEOF
  7226. rm -f conftest.$ac_objext
  7227. if { (ac_try="$ac_compile"
  7228. case "(($ac_try" in
  7229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7230. *) ac_try_echo=$ac_try;;
  7231. esac
  7232. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7233. (eval "$ac_compile") 2>conftest.er1
  7234. ac_status=$?
  7235. grep -v '^ *+' conftest.er1 >conftest.err
  7236. rm -f conftest.er1
  7237. cat conftest.err >&5
  7238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7239. (exit $ac_status); } && {
  7240. test -z "$ac_c_werror_flag" ||
  7241. test ! -s conftest.err
  7242. } && test -s conftest.$ac_objext; then
  7243. ac_header_compiler=yes
  7244. else
  7245. echo "$as_me: failed program was:" >&5
  7246. sed 's/^/| /' conftest.$ac_ext >&5
  7247. ac_header_compiler=no
  7248. fi
  7249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7250. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7251. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7252. # Is the header present?
  7253. { echo "$as_me:$LINENO: checking string.h presence" >&5
  7254. echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
  7255. cat >conftest.$ac_ext <<_ACEOF
  7256. /* confdefs.h. */
  7257. _ACEOF
  7258. cat confdefs.h >>conftest.$ac_ext
  7259. cat >>conftest.$ac_ext <<_ACEOF
  7260. /* end confdefs.h. */
  7261. #include <string.h>
  7262. _ACEOF
  7263. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7264. case "(($ac_try" in
  7265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7266. *) ac_try_echo=$ac_try;;
  7267. esac
  7268. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7269. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7270. ac_status=$?
  7271. grep -v '^ *+' conftest.er1 >conftest.err
  7272. rm -f conftest.er1
  7273. cat conftest.err >&5
  7274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7275. (exit $ac_status); } >/dev/null && {
  7276. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7277. test ! -s conftest.err
  7278. }; then
  7279. ac_header_preproc=yes
  7280. else
  7281. echo "$as_me: failed program was:" >&5
  7282. sed 's/^/| /' conftest.$ac_ext >&5
  7283. ac_header_preproc=no
  7284. fi
  7285. rm -f conftest.err conftest.$ac_ext
  7286. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7287. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7288. # So? What about this header?
  7289. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7290. yes:no: )
  7291. { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7292. echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7293. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
  7294. echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
  7295. ac_header_preproc=yes
  7296. ;;
  7297. no:yes:* )
  7298. { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
  7299. echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
  7300. { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
  7301. echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
  7302. { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
  7303. echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
  7304. { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
  7305. echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
  7306. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
  7307. echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
  7308. { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
  7309. echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
  7310. ;;
  7311. esac
  7312. { echo "$as_me:$LINENO: checking for string.h" >&5
  7313. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  7314. if test "${ac_cv_header_string_h+set}" = set; then
  7315. echo $ECHO_N "(cached) $ECHO_C" >&6
  7316. else
  7317. ac_cv_header_string_h=$ac_header_preproc
  7318. fi
  7319. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  7320. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  7321. fi
  7322. if test $ac_cv_header_string_h = yes; then
  7323. { echo "$as_me:$LINENO: checking C header file <string.h> for function strrchr()" >&5
  7324. echo $ECHO_N "checking C header file <string.h> for function strrchr()... $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. #include <string.h>
  7332. extern struct {int a; int b;} *strrchr();
  7333. int
  7334. main ()
  7335. {
  7336. ;
  7337. return 0;
  7338. }
  7339. _ACEOF
  7340. rm -f conftest.$ac_objext
  7341. if { (ac_try="$ac_compile"
  7342. case "(($ac_try" in
  7343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7344. *) ac_try_echo=$ac_try;;
  7345. esac
  7346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7347. (eval "$ac_compile") 2>conftest.er1
  7348. ac_status=$?
  7349. grep -v '^ *+' conftest.er1 >conftest.err
  7350. rm -f conftest.er1
  7351. cat conftest.err >&5
  7352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7353. (exit $ac_status); } && {
  7354. test -z "$ac_c_werror_flag" ||
  7355. test ! -s conftest.err
  7356. } && test -s conftest.$ac_objext; then
  7357. { echo "$as_me:$LINENO: result: undeclared" >&5
  7358. echo "${ECHO_T}undeclared" >&6; }
  7359. UD_NO_STRRCHR_DECL="1"
  7360. cat >>confdefs.h <<\_ACEOF
  7361. #define UD_NO_STRRCHR_DECL 1
  7362. _ACEOF
  7363. else
  7364. echo "$as_me: failed program was:" >&5
  7365. sed 's/^/| /' conftest.$ac_ext >&5
  7366. { echo "$as_me:$LINENO: result: declared" >&5
  7367. echo "${ECHO_T}declared" >&6; }
  7368. fi
  7369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7370. else
  7371. UD_NO_STRRCHR_DECL="1"
  7372. cat >>confdefs.h <<\_ACEOF
  7373. #define UD_NO_STRRCHR_DECL 1
  7374. _ACEOF
  7375. fi
  7376. if test "${ac_cv_header_string_h+set}" = set; then
  7377. { echo "$as_me:$LINENO: checking for string.h" >&5
  7378. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  7379. if test "${ac_cv_header_string_h+set}" = set; then
  7380. echo $ECHO_N "(cached) $ECHO_C" >&6
  7381. fi
  7382. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  7383. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  7384. else
  7385. # Is the header compilable?
  7386. { echo "$as_me:$LINENO: checking string.h usability" >&5
  7387. echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
  7388. cat >conftest.$ac_ext <<_ACEOF
  7389. /* confdefs.h. */
  7390. _ACEOF
  7391. cat confdefs.h >>conftest.$ac_ext
  7392. cat >>conftest.$ac_ext <<_ACEOF
  7393. /* end confdefs.h. */
  7394. $ac_includes_default
  7395. #include <string.h>
  7396. _ACEOF
  7397. rm -f conftest.$ac_objext
  7398. if { (ac_try="$ac_compile"
  7399. case "(($ac_try" in
  7400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7401. *) ac_try_echo=$ac_try;;
  7402. esac
  7403. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7404. (eval "$ac_compile") 2>conftest.er1
  7405. ac_status=$?
  7406. grep -v '^ *+' conftest.er1 >conftest.err
  7407. rm -f conftest.er1
  7408. cat conftest.err >&5
  7409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7410. (exit $ac_status); } && {
  7411. test -z "$ac_c_werror_flag" ||
  7412. test ! -s conftest.err
  7413. } && test -s conftest.$ac_objext; then
  7414. ac_header_compiler=yes
  7415. else
  7416. echo "$as_me: failed program was:" >&5
  7417. sed 's/^/| /' conftest.$ac_ext >&5
  7418. ac_header_compiler=no
  7419. fi
  7420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7421. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7422. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7423. # Is the header present?
  7424. { echo "$as_me:$LINENO: checking string.h presence" >&5
  7425. echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
  7426. cat >conftest.$ac_ext <<_ACEOF
  7427. /* confdefs.h. */
  7428. _ACEOF
  7429. cat confdefs.h >>conftest.$ac_ext
  7430. cat >>conftest.$ac_ext <<_ACEOF
  7431. /* end confdefs.h. */
  7432. #include <string.h>
  7433. _ACEOF
  7434. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7435. case "(($ac_try" in
  7436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7437. *) ac_try_echo=$ac_try;;
  7438. esac
  7439. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7440. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7441. ac_status=$?
  7442. grep -v '^ *+' conftest.er1 >conftest.err
  7443. rm -f conftest.er1
  7444. cat conftest.err >&5
  7445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7446. (exit $ac_status); } >/dev/null && {
  7447. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7448. test ! -s conftest.err
  7449. }; then
  7450. ac_header_preproc=yes
  7451. else
  7452. echo "$as_me: failed program was:" >&5
  7453. sed 's/^/| /' conftest.$ac_ext >&5
  7454. ac_header_preproc=no
  7455. fi
  7456. rm -f conftest.err conftest.$ac_ext
  7457. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7458. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7459. # So? What about this header?
  7460. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7461. yes:no: )
  7462. { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7463. echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7464. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
  7465. echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
  7466. ac_header_preproc=yes
  7467. ;;
  7468. no:yes:* )
  7469. { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
  7470. echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
  7471. { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
  7472. echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
  7473. { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
  7474. echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
  7475. { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
  7476. echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
  7477. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
  7478. echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
  7479. { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
  7480. echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
  7481. ;;
  7482. esac
  7483. { echo "$as_me:$LINENO: checking for string.h" >&5
  7484. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  7485. if test "${ac_cv_header_string_h+set}" = set; then
  7486. echo $ECHO_N "(cached) $ECHO_C" >&6
  7487. else
  7488. ac_cv_header_string_h=$ac_header_preproc
  7489. fi
  7490. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  7491. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  7492. fi
  7493. if test $ac_cv_header_string_h = yes; then
  7494. { echo "$as_me:$LINENO: checking C header file <string.h> for function strncpy()" >&5
  7495. echo $ECHO_N "checking C header file <string.h> for function strncpy()... $ECHO_C" >&6; }
  7496. cat >conftest.$ac_ext <<_ACEOF
  7497. /* confdefs.h. */
  7498. _ACEOF
  7499. cat confdefs.h >>conftest.$ac_ext
  7500. cat >>conftest.$ac_ext <<_ACEOF
  7501. /* end confdefs.h. */
  7502. #include <string.h>
  7503. extern struct {int a; int b;} *strncpy();
  7504. int
  7505. main ()
  7506. {
  7507. ;
  7508. return 0;
  7509. }
  7510. _ACEOF
  7511. rm -f conftest.$ac_objext
  7512. if { (ac_try="$ac_compile"
  7513. case "(($ac_try" in
  7514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7515. *) ac_try_echo=$ac_try;;
  7516. esac
  7517. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7518. (eval "$ac_compile") 2>conftest.er1
  7519. ac_status=$?
  7520. grep -v '^ *+' conftest.er1 >conftest.err
  7521. rm -f conftest.er1
  7522. cat conftest.err >&5
  7523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7524. (exit $ac_status); } && {
  7525. test -z "$ac_c_werror_flag" ||
  7526. test ! -s conftest.err
  7527. } && test -s conftest.$ac_objext; then
  7528. { echo "$as_me:$LINENO: result: undeclared" >&5
  7529. echo "${ECHO_T}undeclared" >&6; }
  7530. UD_NO_STRNCPY_DECL="1"
  7531. cat >>confdefs.h <<\_ACEOF
  7532. #define UD_NO_STRNCPY_DECL 1
  7533. _ACEOF
  7534. else
  7535. echo "$as_me: failed program was:" >&5
  7536. sed 's/^/| /' conftest.$ac_ext >&5
  7537. { echo "$as_me:$LINENO: result: declared" >&5
  7538. echo "${ECHO_T}declared" >&6; }
  7539. fi
  7540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7541. else
  7542. UD_NO_STRNCPY_DECL="1"
  7543. cat >>confdefs.h <<\_ACEOF
  7544. #define UD_NO_STRNCPY_DECL 1
  7545. _ACEOF
  7546. fi
  7547. if test "${ac_cv_header_string_h+set}" = set; then
  7548. { echo "$as_me:$LINENO: checking for string.h" >&5
  7549. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  7550. if test "${ac_cv_header_string_h+set}" = set; then
  7551. echo $ECHO_N "(cached) $ECHO_C" >&6
  7552. fi
  7553. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  7554. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  7555. else
  7556. # Is the header compilable?
  7557. { echo "$as_me:$LINENO: checking string.h usability" >&5
  7558. echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
  7559. cat >conftest.$ac_ext <<_ACEOF
  7560. /* confdefs.h. */
  7561. _ACEOF
  7562. cat confdefs.h >>conftest.$ac_ext
  7563. cat >>conftest.$ac_ext <<_ACEOF
  7564. /* end confdefs.h. */
  7565. $ac_includes_default
  7566. #include <string.h>
  7567. _ACEOF
  7568. rm -f conftest.$ac_objext
  7569. if { (ac_try="$ac_compile"
  7570. case "(($ac_try" in
  7571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7572. *) ac_try_echo=$ac_try;;
  7573. esac
  7574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7575. (eval "$ac_compile") 2>conftest.er1
  7576. ac_status=$?
  7577. grep -v '^ *+' conftest.er1 >conftest.err
  7578. rm -f conftest.er1
  7579. cat conftest.err >&5
  7580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7581. (exit $ac_status); } && {
  7582. test -z "$ac_c_werror_flag" ||
  7583. test ! -s conftest.err
  7584. } && test -s conftest.$ac_objext; then
  7585. ac_header_compiler=yes
  7586. else
  7587. echo "$as_me: failed program was:" >&5
  7588. sed 's/^/| /' conftest.$ac_ext >&5
  7589. ac_header_compiler=no
  7590. fi
  7591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7592. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7593. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7594. # Is the header present?
  7595. { echo "$as_me:$LINENO: checking string.h presence" >&5
  7596. echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
  7597. cat >conftest.$ac_ext <<_ACEOF
  7598. /* confdefs.h. */
  7599. _ACEOF
  7600. cat confdefs.h >>conftest.$ac_ext
  7601. cat >>conftest.$ac_ext <<_ACEOF
  7602. /* end confdefs.h. */
  7603. #include <string.h>
  7604. _ACEOF
  7605. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7606. case "(($ac_try" in
  7607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7608. *) ac_try_echo=$ac_try;;
  7609. esac
  7610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7611. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7612. ac_status=$?
  7613. grep -v '^ *+' conftest.er1 >conftest.err
  7614. rm -f conftest.er1
  7615. cat conftest.err >&5
  7616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7617. (exit $ac_status); } >/dev/null && {
  7618. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7619. test ! -s conftest.err
  7620. }; then
  7621. ac_header_preproc=yes
  7622. else
  7623. echo "$as_me: failed program was:" >&5
  7624. sed 's/^/| /' conftest.$ac_ext >&5
  7625. ac_header_preproc=no
  7626. fi
  7627. rm -f conftest.err conftest.$ac_ext
  7628. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7629. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7630. # So? What about this header?
  7631. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7632. yes:no: )
  7633. { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7634. echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7635. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
  7636. echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
  7637. ac_header_preproc=yes
  7638. ;;
  7639. no:yes:* )
  7640. { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
  7641. echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
  7642. { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
  7643. echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
  7644. { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
  7645. echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
  7646. { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
  7647. echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
  7648. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
  7649. echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
  7650. { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
  7651. echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
  7652. ;;
  7653. esac
  7654. { echo "$as_me:$LINENO: checking for string.h" >&5
  7655. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  7656. if test "${ac_cv_header_string_h+set}" = set; then
  7657. echo $ECHO_N "(cached) $ECHO_C" >&6
  7658. else
  7659. ac_cv_header_string_h=$ac_header_preproc
  7660. fi
  7661. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  7662. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  7663. fi
  7664. if test $ac_cv_header_string_h = yes; then
  7665. { echo "$as_me:$LINENO: checking C header file <string.h> for function strtok()" >&5
  7666. echo $ECHO_N "checking C header file <string.h> for function strtok()... $ECHO_C" >&6; }
  7667. cat >conftest.$ac_ext <<_ACEOF
  7668. /* confdefs.h. */
  7669. _ACEOF
  7670. cat confdefs.h >>conftest.$ac_ext
  7671. cat >>conftest.$ac_ext <<_ACEOF
  7672. /* end confdefs.h. */
  7673. #include <string.h>
  7674. extern struct {int a; int b;} *strtok();
  7675. int
  7676. main ()
  7677. {
  7678. ;
  7679. return 0;
  7680. }
  7681. _ACEOF
  7682. rm -f conftest.$ac_objext
  7683. if { (ac_try="$ac_compile"
  7684. case "(($ac_try" in
  7685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7686. *) ac_try_echo=$ac_try;;
  7687. esac
  7688. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7689. (eval "$ac_compile") 2>conftest.er1
  7690. ac_status=$?
  7691. grep -v '^ *+' conftest.er1 >conftest.err
  7692. rm -f conftest.er1
  7693. cat conftest.err >&5
  7694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7695. (exit $ac_status); } && {
  7696. test -z "$ac_c_werror_flag" ||
  7697. test ! -s conftest.err
  7698. } && test -s conftest.$ac_objext; then
  7699. { echo "$as_me:$LINENO: result: undeclared" >&5
  7700. echo "${ECHO_T}undeclared" >&6; }
  7701. UD_NO_STRTOK_DECL="1"
  7702. cat >>confdefs.h <<\_ACEOF
  7703. #define UD_NO_STRTOK_DECL 1
  7704. _ACEOF
  7705. else
  7706. echo "$as_me: failed program was:" >&5
  7707. sed 's/^/| /' conftest.$ac_ext >&5
  7708. { echo "$as_me:$LINENO: result: declared" >&5
  7709. echo "${ECHO_T}declared" >&6; }
  7710. fi
  7711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7712. else
  7713. UD_NO_STRTOK_DECL="1"
  7714. cat >>confdefs.h <<\_ACEOF
  7715. #define UD_NO_STRTOK_DECL 1
  7716. _ACEOF
  7717. fi
  7718. for ac_func in strstr
  7719. do
  7720. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7721. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7722. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7723. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7724. echo $ECHO_N "(cached) $ECHO_C" >&6
  7725. else
  7726. cat >conftest.$ac_ext <<_ACEOF
  7727. /* confdefs.h. */
  7728. _ACEOF
  7729. cat confdefs.h >>conftest.$ac_ext
  7730. cat >>conftest.$ac_ext <<_ACEOF
  7731. /* end confdefs.h. */
  7732. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7733. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7734. #define $ac_func innocuous_$ac_func
  7735. /* System header to define __stub macros and hopefully few prototypes,
  7736. which can conflict with char $ac_func (); below.
  7737. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7738. <limits.h> exists even on freestanding compilers. */
  7739. #ifdef __STDC__
  7740. # include <limits.h>
  7741. #else
  7742. # include <assert.h>
  7743. #endif
  7744. #undef $ac_func
  7745. /* Override any GCC internal prototype to avoid an error.
  7746. Use char because int might match the return type of a GCC
  7747. builtin and then its argument prototype would still apply. */
  7748. #ifdef __cplusplus
  7749. extern "C"
  7750. #endif
  7751. char $ac_func ();
  7752. /* The GNU C library defines this for functions which it implements
  7753. to always fail with ENOSYS. Some functions are actually named
  7754. something starting with __ and the normal name is an alias. */
  7755. #if defined __stub_$ac_func || defined __stub___$ac_func
  7756. choke me
  7757. #endif
  7758. int
  7759. main ()
  7760. {
  7761. return $ac_func ();
  7762. ;
  7763. return 0;
  7764. }
  7765. _ACEOF
  7766. rm -f conftest.$ac_objext conftest$ac_exeext
  7767. if { (ac_try="$ac_link"
  7768. case "(($ac_try" in
  7769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7770. *) ac_try_echo=$ac_try;;
  7771. esac
  7772. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7773. (eval "$ac_link") 2>conftest.er1
  7774. ac_status=$?
  7775. grep -v '^ *+' conftest.er1 >conftest.err
  7776. rm -f conftest.er1
  7777. cat conftest.err >&5
  7778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7779. (exit $ac_status); } && {
  7780. test -z "$ac_c_werror_flag" ||
  7781. test ! -s conftest.err
  7782. } && test -s conftest$ac_exeext &&
  7783. $as_test_x conftest$ac_exeext; then
  7784. eval "$as_ac_var=yes"
  7785. else
  7786. echo "$as_me: failed program was:" >&5
  7787. sed 's/^/| /' conftest.$ac_ext >&5
  7788. eval "$as_ac_var=no"
  7789. fi
  7790. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7791. conftest$ac_exeext conftest.$ac_ext
  7792. fi
  7793. ac_res=`eval echo '${'$as_ac_var'}'`
  7794. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7795. echo "${ECHO_T}$ac_res" >&6; }
  7796. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7797. cat >>confdefs.h <<_ACEOF
  7798. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7799. _ACEOF
  7800. else
  7801. case " $LIBOBJS " in
  7802. *" $ac_func.$ac_objext "* ) ;;
  7803. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  7804. ;;
  7805. esac
  7806. fi
  7807. done
  7808. if test "${ac_cv_header_string_h+set}" = set; then
  7809. { echo "$as_me:$LINENO: checking for string.h" >&5
  7810. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  7811. if test "${ac_cv_header_string_h+set}" = set; then
  7812. echo $ECHO_N "(cached) $ECHO_C" >&6
  7813. fi
  7814. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  7815. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  7816. else
  7817. # Is the header compilable?
  7818. { echo "$as_me:$LINENO: checking string.h usability" >&5
  7819. echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
  7820. cat >conftest.$ac_ext <<_ACEOF
  7821. /* confdefs.h. */
  7822. _ACEOF
  7823. cat confdefs.h >>conftest.$ac_ext
  7824. cat >>conftest.$ac_ext <<_ACEOF
  7825. /* end confdefs.h. */
  7826. $ac_includes_default
  7827. #include <string.h>
  7828. _ACEOF
  7829. rm -f conftest.$ac_objext
  7830. if { (ac_try="$ac_compile"
  7831. case "(($ac_try" in
  7832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7833. *) ac_try_echo=$ac_try;;
  7834. esac
  7835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7836. (eval "$ac_compile") 2>conftest.er1
  7837. ac_status=$?
  7838. grep -v '^ *+' conftest.er1 >conftest.err
  7839. rm -f conftest.er1
  7840. cat conftest.err >&5
  7841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7842. (exit $ac_status); } && {
  7843. test -z "$ac_c_werror_flag" ||
  7844. test ! -s conftest.err
  7845. } && test -s conftest.$ac_objext; then
  7846. ac_header_compiler=yes
  7847. else
  7848. echo "$as_me: failed program was:" >&5
  7849. sed 's/^/| /' conftest.$ac_ext >&5
  7850. ac_header_compiler=no
  7851. fi
  7852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7853. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7854. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7855. # Is the header present?
  7856. { echo "$as_me:$LINENO: checking string.h presence" >&5
  7857. echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
  7858. cat >conftest.$ac_ext <<_ACEOF
  7859. /* confdefs.h. */
  7860. _ACEOF
  7861. cat confdefs.h >>conftest.$ac_ext
  7862. cat >>conftest.$ac_ext <<_ACEOF
  7863. /* end confdefs.h. */
  7864. #include <string.h>
  7865. _ACEOF
  7866. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7867. case "(($ac_try" in
  7868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7869. *) ac_try_echo=$ac_try;;
  7870. esac
  7871. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7872. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7873. ac_status=$?
  7874. grep -v '^ *+' conftest.er1 >conftest.err
  7875. rm -f conftest.er1
  7876. cat conftest.err >&5
  7877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7878. (exit $ac_status); } >/dev/null && {
  7879. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7880. test ! -s conftest.err
  7881. }; then
  7882. ac_header_preproc=yes
  7883. else
  7884. echo "$as_me: failed program was:" >&5
  7885. sed 's/^/| /' conftest.$ac_ext >&5
  7886. ac_header_preproc=no
  7887. fi
  7888. rm -f conftest.err conftest.$ac_ext
  7889. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7890. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7891. # So? What about this header?
  7892. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7893. yes:no: )
  7894. { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7895. echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7896. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
  7897. echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
  7898. ac_header_preproc=yes
  7899. ;;
  7900. no:yes:* )
  7901. { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
  7902. echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
  7903. { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
  7904. echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
  7905. { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
  7906. echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
  7907. { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
  7908. echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
  7909. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
  7910. echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
  7911. { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
  7912. echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
  7913. ;;
  7914. esac
  7915. { echo "$as_me:$LINENO: checking for string.h" >&5
  7916. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  7917. if test "${ac_cv_header_string_h+set}" = set; then
  7918. echo $ECHO_N "(cached) $ECHO_C" >&6
  7919. else
  7920. ac_cv_header_string_h=$ac_header_preproc
  7921. fi
  7922. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  7923. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  7924. fi
  7925. if test $ac_cv_header_string_h = yes; then
  7926. { echo "$as_me:$LINENO: checking C header file <string.h> for function strstr()" >&5
  7927. echo $ECHO_N "checking C header file <string.h> for function strstr()... $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 <string.h>
  7935. extern struct {int a; int b;} *strstr();
  7936. int
  7937. main ()
  7938. {
  7939. ;
  7940. return 0;
  7941. }
  7942. _ACEOF
  7943. rm -f conftest.$ac_objext
  7944. if { (ac_try="$ac_compile"
  7945. case "(($ac_try" in
  7946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7947. *) ac_try_echo=$ac_try;;
  7948. esac
  7949. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7950. (eval "$ac_compile") 2>conftest.er1
  7951. ac_status=$?
  7952. grep -v '^ *+' conftest.er1 >conftest.err
  7953. rm -f conftest.er1
  7954. cat conftest.err >&5
  7955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7956. (exit $ac_status); } && {
  7957. test -z "$ac_c_werror_flag" ||
  7958. test ! -s conftest.err
  7959. } && test -s conftest.$ac_objext; then
  7960. { echo "$as_me:$LINENO: result: undeclared" >&5
  7961. echo "${ECHO_T}undeclared" >&6; }
  7962. UD_NO_STRSTR_DECL="1"
  7963. cat >>confdefs.h <<\_ACEOF
  7964. #define UD_NO_STRSTR_DECL 1
  7965. _ACEOF
  7966. else
  7967. echo "$as_me: failed program was:" >&5
  7968. sed 's/^/| /' conftest.$ac_ext >&5
  7969. { echo "$as_me:$LINENO: result: declared" >&5
  7970. echo "${ECHO_T}declared" >&6; }
  7971. fi
  7972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7973. else
  7974. UD_NO_STRSTR_DECL="1"
  7975. cat >>confdefs.h <<\_ACEOF
  7976. #define UD_NO_STRSTR_DECL 1
  7977. _ACEOF
  7978. fi
  7979. for ac_func in memmove
  7980. do
  7981. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7982. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7983. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7984. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7985. echo $ECHO_N "(cached) $ECHO_C" >&6
  7986. else
  7987. cat >conftest.$ac_ext <<_ACEOF
  7988. /* confdefs.h. */
  7989. _ACEOF
  7990. cat confdefs.h >>conftest.$ac_ext
  7991. cat >>conftest.$ac_ext <<_ACEOF
  7992. /* end confdefs.h. */
  7993. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7994. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7995. #define $ac_func innocuous_$ac_func
  7996. /* System header to define __stub macros and hopefully few prototypes,
  7997. which can conflict with char $ac_func (); below.
  7998. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7999. <limits.h> exists even on freestanding compilers. */
  8000. #ifdef __STDC__
  8001. # include <limits.h>
  8002. #else
  8003. # include <assert.h>
  8004. #endif
  8005. #undef $ac_func
  8006. /* Override any GCC internal prototype to avoid an error.
  8007. Use char because int might match the return type of a GCC
  8008. builtin and then its argument prototype would still apply. */
  8009. #ifdef __cplusplus
  8010. extern "C"
  8011. #endif
  8012. char $ac_func ();
  8013. /* The GNU C library defines this for functions which it implements
  8014. to always fail with ENOSYS. Some functions are actually named
  8015. something starting with __ and the normal name is an alias. */
  8016. #if defined __stub_$ac_func || defined __stub___$ac_func
  8017. choke me
  8018. #endif
  8019. int
  8020. main ()
  8021. {
  8022. return $ac_func ();
  8023. ;
  8024. return 0;
  8025. }
  8026. _ACEOF
  8027. rm -f conftest.$ac_objext conftest$ac_exeext
  8028. if { (ac_try="$ac_link"
  8029. case "(($ac_try" in
  8030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8031. *) ac_try_echo=$ac_try;;
  8032. esac
  8033. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8034. (eval "$ac_link") 2>conftest.er1
  8035. ac_status=$?
  8036. grep -v '^ *+' conftest.er1 >conftest.err
  8037. rm -f conftest.er1
  8038. cat conftest.err >&5
  8039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8040. (exit $ac_status); } && {
  8041. test -z "$ac_c_werror_flag" ||
  8042. test ! -s conftest.err
  8043. } && test -s conftest$ac_exeext &&
  8044. $as_test_x conftest$ac_exeext; then
  8045. eval "$as_ac_var=yes"
  8046. else
  8047. echo "$as_me: failed program was:" >&5
  8048. sed 's/^/| /' conftest.$ac_ext >&5
  8049. eval "$as_ac_var=no"
  8050. fi
  8051. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8052. conftest$ac_exeext conftest.$ac_ext
  8053. fi
  8054. ac_res=`eval echo '${'$as_ac_var'}'`
  8055. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8056. echo "${ECHO_T}$ac_res" >&6; }
  8057. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8058. cat >>confdefs.h <<_ACEOF
  8059. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8060. _ACEOF
  8061. else
  8062. case " $LIBOBJS " in
  8063. *" $ac_func.$ac_objext "* ) ;;
  8064. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  8065. ;;
  8066. esac
  8067. fi
  8068. done
  8069. if test "${ac_cv_header_string_h+set}" = set; then
  8070. { echo "$as_me:$LINENO: checking for string.h" >&5
  8071. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  8072. if test "${ac_cv_header_string_h+set}" = set; then
  8073. echo $ECHO_N "(cached) $ECHO_C" >&6
  8074. fi
  8075. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  8076. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  8077. else
  8078. # Is the header compilable?
  8079. { echo "$as_me:$LINENO: checking string.h usability" >&5
  8080. echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
  8081. cat >conftest.$ac_ext <<_ACEOF
  8082. /* confdefs.h. */
  8083. _ACEOF
  8084. cat confdefs.h >>conftest.$ac_ext
  8085. cat >>conftest.$ac_ext <<_ACEOF
  8086. /* end confdefs.h. */
  8087. $ac_includes_default
  8088. #include <string.h>
  8089. _ACEOF
  8090. rm -f conftest.$ac_objext
  8091. if { (ac_try="$ac_compile"
  8092. case "(($ac_try" in
  8093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8094. *) ac_try_echo=$ac_try;;
  8095. esac
  8096. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8097. (eval "$ac_compile") 2>conftest.er1
  8098. ac_status=$?
  8099. grep -v '^ *+' conftest.er1 >conftest.err
  8100. rm -f conftest.er1
  8101. cat conftest.err >&5
  8102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8103. (exit $ac_status); } && {
  8104. test -z "$ac_c_werror_flag" ||
  8105. test ! -s conftest.err
  8106. } && test -s conftest.$ac_objext; then
  8107. ac_header_compiler=yes
  8108. else
  8109. echo "$as_me: failed program was:" >&5
  8110. sed 's/^/| /' conftest.$ac_ext >&5
  8111. ac_header_compiler=no
  8112. fi
  8113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8114. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8115. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8116. # Is the header present?
  8117. { echo "$as_me:$LINENO: checking string.h presence" >&5
  8118. echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
  8119. cat >conftest.$ac_ext <<_ACEOF
  8120. /* confdefs.h. */
  8121. _ACEOF
  8122. cat confdefs.h >>conftest.$ac_ext
  8123. cat >>conftest.$ac_ext <<_ACEOF
  8124. /* end confdefs.h. */
  8125. #include <string.h>
  8126. _ACEOF
  8127. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8128. case "(($ac_try" in
  8129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8130. *) ac_try_echo=$ac_try;;
  8131. esac
  8132. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8133. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8134. ac_status=$?
  8135. grep -v '^ *+' conftest.er1 >conftest.err
  8136. rm -f conftest.er1
  8137. cat conftest.err >&5
  8138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8139. (exit $ac_status); } >/dev/null && {
  8140. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8141. test ! -s conftest.err
  8142. }; then
  8143. ac_header_preproc=yes
  8144. else
  8145. echo "$as_me: failed program was:" >&5
  8146. sed 's/^/| /' conftest.$ac_ext >&5
  8147. ac_header_preproc=no
  8148. fi
  8149. rm -f conftest.err conftest.$ac_ext
  8150. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8151. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8152. # So? What about this header?
  8153. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8154. yes:no: )
  8155. { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8156. echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8157. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
  8158. echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
  8159. ac_header_preproc=yes
  8160. ;;
  8161. no:yes:* )
  8162. { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
  8163. echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
  8164. { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
  8165. echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
  8166. { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
  8167. echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
  8168. { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
  8169. echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
  8170. { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
  8171. echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
  8172. { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
  8173. echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
  8174. ;;
  8175. esac
  8176. { echo "$as_me:$LINENO: checking for string.h" >&5
  8177. echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
  8178. if test "${ac_cv_header_string_h+set}" = set; then
  8179. echo $ECHO_N "(cached) $ECHO_C" >&6
  8180. else
  8181. ac_cv_header_string_h=$ac_header_preproc
  8182. fi
  8183. { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  8184. echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
  8185. fi
  8186. if test $ac_cv_header_string_h = yes; then
  8187. { echo "$as_me:$LINENO: checking C header file <string.h> for function memmove()" >&5
  8188. echo $ECHO_N "checking C header file <string.h> for function memmove()... $ECHO_C" >&6; }
  8189. cat >conftest.$ac_ext <<_ACEOF
  8190. /* confdefs.h. */
  8191. _ACEOF
  8192. cat confdefs.h >>conftest.$ac_ext
  8193. cat >>conftest.$ac_ext <<_ACEOF
  8194. /* end confdefs.h. */
  8195. #include <string.h>
  8196. extern struct {int a; int b;} *memmove();
  8197. int
  8198. main ()
  8199. {
  8200. ;
  8201. return 0;
  8202. }
  8203. _ACEOF
  8204. rm -f conftest.$ac_objext
  8205. if { (ac_try="$ac_compile"
  8206. case "(($ac_try" in
  8207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8208. *) ac_try_echo=$ac_try;;
  8209. esac
  8210. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8211. (eval "$ac_compile") 2>conftest.er1
  8212. ac_status=$?
  8213. grep -v '^ *+' conftest.er1 >conftest.err
  8214. rm -f conftest.er1
  8215. cat conftest.err >&5
  8216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8217. (exit $ac_status); } && {
  8218. test -z "$ac_c_werror_flag" ||
  8219. test ! -s conftest.err
  8220. } && test -s conftest.$ac_objext; then
  8221. { echo "$as_me:$LINENO: result: undeclared" >&5
  8222. echo "${ECHO_T}undeclared" >&6; }
  8223. UD_NO_MEMMOVE_DECL="1"
  8224. cat >>confdefs.h <<\_ACEOF
  8225. #define UD_NO_MEMMOVE_DECL 1
  8226. _ACEOF
  8227. else
  8228. echo "$as_me: failed program was:" >&5
  8229. sed 's/^/| /' conftest.$ac_ext >&5
  8230. { echo "$as_me:$LINENO: result: declared" >&5
  8231. echo "${ECHO_T}declared" >&6; }
  8232. fi
  8233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8234. else
  8235. UD_NO_MEMMOVE_DECL="1"
  8236. cat >>confdefs.h <<\_ACEOF
  8237. #define UD_NO_MEMMOVE_DECL 1
  8238. _ACEOF
  8239. fi
  8240. for arg in difftime.c strftime.c time.h.in; do
  8241. case "$PORT_MANIFEST" in
  8242. *$arg*)
  8243. ;;
  8244. *)
  8245. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  8246. ;;
  8247. esac
  8248. done
  8249. echo "#include <time.h>" > conftestpath.c
  8250. #
  8251. # We add additional `/'s to the header file name to preclude compiler
  8252. # warnings about the non-portability of `#include "/usr/include/..."'.
  8253. #
  8254. case `uname -s`${GCC-} in
  8255. AIX)
  8256. #
  8257. # AIX's C compiler doesn't emit a line that gives the pathname of
  8258. # the included file.
  8259. #
  8260. # AIX's C compiler puts dependency information in a `.u' file.
  8261. #
  8262. # AIX 4.1's cc(1) makes the following complaint:
  8263. # ld: 0711-317 ERROR: Undefined symbol: .main
  8264. #
  8265. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  8266. # /dev/null.
  8267. #
  8268. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  8269. path=`sed -n '/[^\/]*\(\/[^ ]*time\.h\).*/s//\1/p' \
  8270. conftestpath.u | head -1`
  8271. rm conftestpath.u
  8272. ;;
  8273. HP-UX)
  8274. #
  8275. # HP-UX's C compiler doesn't have a dependency-generation option,
  8276. # so we use another method.
  8277. #
  8278. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  8279. sed -n '/[^\/]*\(\/[^ ]*time\.h\).*/s//\1/p' |
  8280. head -1`
  8281. ;;
  8282. *)
  8283. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  8284. sed -n '/[^\/]*\(\/[^ ]*time\.h\).*/s//\1/p' |
  8285. head -1`
  8286. ;;
  8287. esac
  8288. case "$path" in
  8289. '')
  8290. path=/dev/null
  8291. ;;
  8292. *)
  8293. path=//$path
  8294. ;;
  8295. esac
  8296. cat >>confdefs.h <<_ACEOF
  8297. #define UD_SYSTEM_TIME_H "$path"
  8298. _ACEOF
  8299. for arg in misc; do
  8300. case "$PORT_SUBDIRS" in
  8301. *$arg*)
  8302. ;;
  8303. *)
  8304. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  8305. ;;
  8306. esac
  8307. done
  8308. if test "${ac_cv_header_time_h+set}" = set; then
  8309. { echo "$as_me:$LINENO: checking for time.h" >&5
  8310. echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
  8311. if test "${ac_cv_header_time_h+set}" = set; then
  8312. echo $ECHO_N "(cached) $ECHO_C" >&6
  8313. fi
  8314. { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
  8315. echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
  8316. else
  8317. # Is the header compilable?
  8318. { echo "$as_me:$LINENO: checking time.h usability" >&5
  8319. echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; }
  8320. cat >conftest.$ac_ext <<_ACEOF
  8321. /* confdefs.h. */
  8322. _ACEOF
  8323. cat confdefs.h >>conftest.$ac_ext
  8324. cat >>conftest.$ac_ext <<_ACEOF
  8325. /* end confdefs.h. */
  8326. $ac_includes_default
  8327. #include <time.h>
  8328. _ACEOF
  8329. rm -f conftest.$ac_objext
  8330. if { (ac_try="$ac_compile"
  8331. case "(($ac_try" in
  8332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8333. *) ac_try_echo=$ac_try;;
  8334. esac
  8335. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8336. (eval "$ac_compile") 2>conftest.er1
  8337. ac_status=$?
  8338. grep -v '^ *+' conftest.er1 >conftest.err
  8339. rm -f conftest.er1
  8340. cat conftest.err >&5
  8341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8342. (exit $ac_status); } && {
  8343. test -z "$ac_c_werror_flag" ||
  8344. test ! -s conftest.err
  8345. } && test -s conftest.$ac_objext; then
  8346. ac_header_compiler=yes
  8347. else
  8348. echo "$as_me: failed program was:" >&5
  8349. sed 's/^/| /' conftest.$ac_ext >&5
  8350. ac_header_compiler=no
  8351. fi
  8352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8353. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8354. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8355. # Is the header present?
  8356. { echo "$as_me:$LINENO: checking time.h presence" >&5
  8357. echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; }
  8358. cat >conftest.$ac_ext <<_ACEOF
  8359. /* confdefs.h. */
  8360. _ACEOF
  8361. cat confdefs.h >>conftest.$ac_ext
  8362. cat >>conftest.$ac_ext <<_ACEOF
  8363. /* end confdefs.h. */
  8364. #include <time.h>
  8365. _ACEOF
  8366. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8367. case "(($ac_try" in
  8368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8369. *) ac_try_echo=$ac_try;;
  8370. esac
  8371. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8372. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8373. ac_status=$?
  8374. grep -v '^ *+' conftest.er1 >conftest.err
  8375. rm -f conftest.er1
  8376. cat conftest.err >&5
  8377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8378. (exit $ac_status); } >/dev/null && {
  8379. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8380. test ! -s conftest.err
  8381. }; then
  8382. ac_header_preproc=yes
  8383. else
  8384. echo "$as_me: failed program was:" >&5
  8385. sed 's/^/| /' conftest.$ac_ext >&5
  8386. ac_header_preproc=no
  8387. fi
  8388. rm -f conftest.err conftest.$ac_ext
  8389. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8390. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8391. # So? What about this header?
  8392. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8393. yes:no: )
  8394. { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8395. echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8396. { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
  8397. echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
  8398. ac_header_preproc=yes
  8399. ;;
  8400. no:yes:* )
  8401. { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
  8402. echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
  8403. { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
  8404. echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
  8405. { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
  8406. echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
  8407. { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
  8408. echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
  8409. { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
  8410. echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
  8411. { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
  8412. echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
  8413. ;;
  8414. esac
  8415. { echo "$as_me:$LINENO: checking for time.h" >&5
  8416. echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
  8417. if test "${ac_cv_header_time_h+set}" = set; then
  8418. echo $ECHO_N "(cached) $ECHO_C" >&6
  8419. else
  8420. ac_cv_header_time_h=$ac_header_preproc
  8421. fi
  8422. { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
  8423. echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
  8424. fi
  8425. if test $ac_cv_header_time_h = yes; then
  8426. found=yes
  8427. else
  8428. found=no
  8429. fi
  8430. case $found in
  8431. yes)
  8432. { echo "$as_me:$LINENO: checking C header file <time.h> for typedef time_t" >&5
  8433. echo $ECHO_N "checking C header file <time.h> for typedef time_t... $ECHO_C" >&6; }
  8434. echo '#include <time.h>' >conftest.c
  8435. if ($CPP conftest.c | grep time_t >/dev/null) 2>&5; then
  8436. { echo "$as_me:$LINENO: result: declared" >&5
  8437. echo "${ECHO_T}declared" >&6; }
  8438. rm conftest.c
  8439. else
  8440. cat >conftest.$ac_ext <<_ACEOF
  8441. /* confdefs.h. */
  8442. _ACEOF
  8443. cat confdefs.h >>conftest.$ac_ext
  8444. cat >>conftest.$ac_ext <<_ACEOF
  8445. /* end confdefs.h. */
  8446. #include <time.h>
  8447. int time_t;
  8448. int
  8449. main ()
  8450. {
  8451. ;
  8452. return 0;
  8453. }
  8454. _ACEOF
  8455. rm -f conftest.$ac_objext
  8456. if { (ac_try="$ac_compile"
  8457. case "(($ac_try" in
  8458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8459. *) ac_try_echo=$ac_try;;
  8460. esac
  8461. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8462. (eval "$ac_compile") 2>conftest.er1
  8463. ac_status=$?
  8464. grep -v '^ *+' conftest.er1 >conftest.err
  8465. rm -f conftest.er1
  8466. cat conftest.err >&5
  8467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8468. (exit $ac_status); } && {
  8469. test -z "$ac_c_werror_flag" ||
  8470. test ! -s conftest.err
  8471. } && test -s conftest.$ac_objext; then
  8472. { echo "$as_me:$LINENO: result: undeclared" >&5
  8473. echo "${ECHO_T}undeclared" >&6; }
  8474. cat >>confdefs.h <<\_ACEOF
  8475. #define UD_NO_TIME_H_TIME_T 1
  8476. _ACEOF
  8477. else
  8478. echo "$as_me: failed program was:" >&5
  8479. sed 's/^/| /' conftest.$ac_ext >&5
  8480. { echo "$as_me:$LINENO: result: declared" >&5
  8481. echo "${ECHO_T}declared" >&6; }
  8482. fi
  8483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8484. fi
  8485. ;;
  8486. no)
  8487. cat >>confdefs.h <<\_ACEOF
  8488. #define UD_NO_TIME_H_TIME_T 1
  8489. _ACEOF
  8490. ;;
  8491. esac
  8492. if test "${ac_cv_header_time_h+set}" = set; then
  8493. { echo "$as_me:$LINENO: checking for time.h" >&5
  8494. echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
  8495. if test "${ac_cv_header_time_h+set}" = set; then
  8496. echo $ECHO_N "(cached) $ECHO_C" >&6
  8497. fi
  8498. { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
  8499. echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
  8500. else
  8501. # Is the header compilable?
  8502. { echo "$as_me:$LINENO: checking time.h usability" >&5
  8503. echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; }
  8504. cat >conftest.$ac_ext <<_ACEOF
  8505. /* confdefs.h. */
  8506. _ACEOF
  8507. cat confdefs.h >>conftest.$ac_ext
  8508. cat >>conftest.$ac_ext <<_ACEOF
  8509. /* end confdefs.h. */
  8510. $ac_includes_default
  8511. #include <time.h>
  8512. _ACEOF
  8513. rm -f conftest.$ac_objext
  8514. if { (ac_try="$ac_compile"
  8515. case "(($ac_try" in
  8516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8517. *) ac_try_echo=$ac_try;;
  8518. esac
  8519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8520. (eval "$ac_compile") 2>conftest.er1
  8521. ac_status=$?
  8522. grep -v '^ *+' conftest.er1 >conftest.err
  8523. rm -f conftest.er1
  8524. cat conftest.err >&5
  8525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8526. (exit $ac_status); } && {
  8527. test -z "$ac_c_werror_flag" ||
  8528. test ! -s conftest.err
  8529. } && test -s conftest.$ac_objext; then
  8530. ac_header_compiler=yes
  8531. else
  8532. echo "$as_me: failed program was:" >&5
  8533. sed 's/^/| /' conftest.$ac_ext >&5
  8534. ac_header_compiler=no
  8535. fi
  8536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8537. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8538. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8539. # Is the header present?
  8540. { echo "$as_me:$LINENO: checking time.h presence" >&5
  8541. echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; }
  8542. cat >conftest.$ac_ext <<_ACEOF
  8543. /* confdefs.h. */
  8544. _ACEOF
  8545. cat confdefs.h >>conftest.$ac_ext
  8546. cat >>conftest.$ac_ext <<_ACEOF
  8547. /* end confdefs.h. */
  8548. #include <time.h>
  8549. _ACEOF
  8550. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8551. case "(($ac_try" in
  8552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8553. *) ac_try_echo=$ac_try;;
  8554. esac
  8555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8556. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8557. ac_status=$?
  8558. grep -v '^ *+' conftest.er1 >conftest.err
  8559. rm -f conftest.er1
  8560. cat conftest.err >&5
  8561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8562. (exit $ac_status); } >/dev/null && {
  8563. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8564. test ! -s conftest.err
  8565. }; then
  8566. ac_header_preproc=yes
  8567. else
  8568. echo "$as_me: failed program was:" >&5
  8569. sed 's/^/| /' conftest.$ac_ext >&5
  8570. ac_header_preproc=no
  8571. fi
  8572. rm -f conftest.err conftest.$ac_ext
  8573. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8574. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8575. # So? What about this header?
  8576. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8577. yes:no: )
  8578. { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8579. echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8580. { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
  8581. echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
  8582. ac_header_preproc=yes
  8583. ;;
  8584. no:yes:* )
  8585. { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
  8586. echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
  8587. { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
  8588. echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
  8589. { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
  8590. echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
  8591. { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
  8592. echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
  8593. { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
  8594. echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
  8595. { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
  8596. echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
  8597. ;;
  8598. esac
  8599. { echo "$as_me:$LINENO: checking for time.h" >&5
  8600. echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
  8601. if test "${ac_cv_header_time_h+set}" = set; then
  8602. echo $ECHO_N "(cached) $ECHO_C" >&6
  8603. else
  8604. ac_cv_header_time_h=$ac_header_preproc
  8605. fi
  8606. { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
  8607. echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
  8608. fi
  8609. if test $ac_cv_header_time_h = yes; then
  8610. found=yes
  8611. else
  8612. found=no
  8613. fi
  8614. case $found in
  8615. yes)
  8616. { echo "$as_me:$LINENO: checking C header file <time.h> for typedef size_t" >&5
  8617. echo $ECHO_N "checking C header file <time.h> for typedef size_t... $ECHO_C" >&6; }
  8618. echo '#include <time.h>' >conftest.c
  8619. if ($CPP conftest.c | grep size_t >/dev/null) 2>&5; then
  8620. { echo "$as_me:$LINENO: result: declared" >&5
  8621. echo "${ECHO_T}declared" >&6; }
  8622. rm conftest.c
  8623. else
  8624. cat >conftest.$ac_ext <<_ACEOF
  8625. /* confdefs.h. */
  8626. _ACEOF
  8627. cat confdefs.h >>conftest.$ac_ext
  8628. cat >>conftest.$ac_ext <<_ACEOF
  8629. /* end confdefs.h. */
  8630. #include <time.h>
  8631. int size_t;
  8632. int
  8633. main ()
  8634. {
  8635. ;
  8636. return 0;
  8637. }
  8638. _ACEOF
  8639. rm -f conftest.$ac_objext
  8640. if { (ac_try="$ac_compile"
  8641. case "(($ac_try" in
  8642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8643. *) ac_try_echo=$ac_try;;
  8644. esac
  8645. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8646. (eval "$ac_compile") 2>conftest.er1
  8647. ac_status=$?
  8648. grep -v '^ *+' conftest.er1 >conftest.err
  8649. rm -f conftest.er1
  8650. cat conftest.err >&5
  8651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8652. (exit $ac_status); } && {
  8653. test -z "$ac_c_werror_flag" ||
  8654. test ! -s conftest.err
  8655. } && test -s conftest.$ac_objext; then
  8656. { echo "$as_me:$LINENO: result: undeclared" >&5
  8657. echo "${ECHO_T}undeclared" >&6; }
  8658. cat >>confdefs.h <<\_ACEOF
  8659. #define UD_NO_TIME_H_SIZE_T 1
  8660. _ACEOF
  8661. else
  8662. echo "$as_me: failed program was:" >&5
  8663. sed 's/^/| /' conftest.$ac_ext >&5
  8664. { echo "$as_me:$LINENO: result: declared" >&5
  8665. echo "${ECHO_T}declared" >&6; }
  8666. fi
  8667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8668. fi
  8669. ;;
  8670. no)
  8671. cat >>confdefs.h <<\_ACEOF
  8672. #define UD_NO_TIME_H_SIZE_T 1
  8673. _ACEOF
  8674. ;;
  8675. esac
  8676. for ac_func in difftime
  8677. do
  8678. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8679. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8680. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8681. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8682. echo $ECHO_N "(cached) $ECHO_C" >&6
  8683. else
  8684. cat >conftest.$ac_ext <<_ACEOF
  8685. /* confdefs.h. */
  8686. _ACEOF
  8687. cat confdefs.h >>conftest.$ac_ext
  8688. cat >>conftest.$ac_ext <<_ACEOF
  8689. /* end confdefs.h. */
  8690. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8691. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8692. #define $ac_func innocuous_$ac_func
  8693. /* System header to define __stub macros and hopefully few prototypes,
  8694. which can conflict with char $ac_func (); below.
  8695. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8696. <limits.h> exists even on freestanding compilers. */
  8697. #ifdef __STDC__
  8698. # include <limits.h>
  8699. #else
  8700. # include <assert.h>
  8701. #endif
  8702. #undef $ac_func
  8703. /* Override any GCC internal prototype to avoid an error.
  8704. Use char because int might match the return type of a GCC
  8705. builtin and then its argument prototype would still apply. */
  8706. #ifdef __cplusplus
  8707. extern "C"
  8708. #endif
  8709. char $ac_func ();
  8710. /* The GNU C library defines this for functions which it implements
  8711. to always fail with ENOSYS. Some functions are actually named
  8712. something starting with __ and the normal name is an alias. */
  8713. #if defined __stub_$ac_func || defined __stub___$ac_func
  8714. choke me
  8715. #endif
  8716. int
  8717. main ()
  8718. {
  8719. return $ac_func ();
  8720. ;
  8721. return 0;
  8722. }
  8723. _ACEOF
  8724. rm -f conftest.$ac_objext conftest$ac_exeext
  8725. if { (ac_try="$ac_link"
  8726. case "(($ac_try" in
  8727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8728. *) ac_try_echo=$ac_try;;
  8729. esac
  8730. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8731. (eval "$ac_link") 2>conftest.er1
  8732. ac_status=$?
  8733. grep -v '^ *+' conftest.er1 >conftest.err
  8734. rm -f conftest.er1
  8735. cat conftest.err >&5
  8736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8737. (exit $ac_status); } && {
  8738. test -z "$ac_c_werror_flag" ||
  8739. test ! -s conftest.err
  8740. } && test -s conftest$ac_exeext &&
  8741. $as_test_x conftest$ac_exeext; then
  8742. eval "$as_ac_var=yes"
  8743. else
  8744. echo "$as_me: failed program was:" >&5
  8745. sed 's/^/| /' conftest.$ac_ext >&5
  8746. eval "$as_ac_var=no"
  8747. fi
  8748. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8749. conftest$ac_exeext conftest.$ac_ext
  8750. fi
  8751. ac_res=`eval echo '${'$as_ac_var'}'`
  8752. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8753. echo "${ECHO_T}$ac_res" >&6; }
  8754. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8755. cat >>confdefs.h <<_ACEOF
  8756. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8757. _ACEOF
  8758. else
  8759. case " $LIBOBJS " in
  8760. *" $ac_func.$ac_objext "* ) ;;
  8761. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  8762. ;;
  8763. esac
  8764. fi
  8765. done
  8766. if test "${ac_cv_header_time_h+set}" = set; then
  8767. { echo "$as_me:$LINENO: checking for time.h" >&5
  8768. echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
  8769. if test "${ac_cv_header_time_h+set}" = set; then
  8770. echo $ECHO_N "(cached) $ECHO_C" >&6
  8771. fi
  8772. { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
  8773. echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
  8774. else
  8775. # Is the header compilable?
  8776. { echo "$as_me:$LINENO: checking time.h usability" >&5
  8777. echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; }
  8778. cat >conftest.$ac_ext <<_ACEOF
  8779. /* confdefs.h. */
  8780. _ACEOF
  8781. cat confdefs.h >>conftest.$ac_ext
  8782. cat >>conftest.$ac_ext <<_ACEOF
  8783. /* end confdefs.h. */
  8784. $ac_includes_default
  8785. #include <time.h>
  8786. _ACEOF
  8787. rm -f conftest.$ac_objext
  8788. if { (ac_try="$ac_compile"
  8789. case "(($ac_try" in
  8790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8791. *) ac_try_echo=$ac_try;;
  8792. esac
  8793. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8794. (eval "$ac_compile") 2>conftest.er1
  8795. ac_status=$?
  8796. grep -v '^ *+' conftest.er1 >conftest.err
  8797. rm -f conftest.er1
  8798. cat conftest.err >&5
  8799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8800. (exit $ac_status); } && {
  8801. test -z "$ac_c_werror_flag" ||
  8802. test ! -s conftest.err
  8803. } && test -s conftest.$ac_objext; then
  8804. ac_header_compiler=yes
  8805. else
  8806. echo "$as_me: failed program was:" >&5
  8807. sed 's/^/| /' conftest.$ac_ext >&5
  8808. ac_header_compiler=no
  8809. fi
  8810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8811. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8812. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8813. # Is the header present?
  8814. { echo "$as_me:$LINENO: checking time.h presence" >&5
  8815. echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; }
  8816. cat >conftest.$ac_ext <<_ACEOF
  8817. /* confdefs.h. */
  8818. _ACEOF
  8819. cat confdefs.h >>conftest.$ac_ext
  8820. cat >>conftest.$ac_ext <<_ACEOF
  8821. /* end confdefs.h. */
  8822. #include <time.h>
  8823. _ACEOF
  8824. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8825. case "(($ac_try" in
  8826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8827. *) ac_try_echo=$ac_try;;
  8828. esac
  8829. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8830. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8831. ac_status=$?
  8832. grep -v '^ *+' conftest.er1 >conftest.err
  8833. rm -f conftest.er1
  8834. cat conftest.err >&5
  8835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8836. (exit $ac_status); } >/dev/null && {
  8837. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8838. test ! -s conftest.err
  8839. }; then
  8840. ac_header_preproc=yes
  8841. else
  8842. echo "$as_me: failed program was:" >&5
  8843. sed 's/^/| /' conftest.$ac_ext >&5
  8844. ac_header_preproc=no
  8845. fi
  8846. rm -f conftest.err conftest.$ac_ext
  8847. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8848. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8849. # So? What about this header?
  8850. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8851. yes:no: )
  8852. { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8853. echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8854. { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
  8855. echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
  8856. ac_header_preproc=yes
  8857. ;;
  8858. no:yes:* )
  8859. { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
  8860. echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
  8861. { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
  8862. echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
  8863. { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
  8864. echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
  8865. { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
  8866. echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
  8867. { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
  8868. echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
  8869. { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
  8870. echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
  8871. ;;
  8872. esac
  8873. { echo "$as_me:$LINENO: checking for time.h" >&5
  8874. echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
  8875. if test "${ac_cv_header_time_h+set}" = set; then
  8876. echo $ECHO_N "(cached) $ECHO_C" >&6
  8877. else
  8878. ac_cv_header_time_h=$ac_header_preproc
  8879. fi
  8880. { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
  8881. echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
  8882. fi
  8883. if test $ac_cv_header_time_h = yes; then
  8884. { echo "$as_me:$LINENO: checking C header file <time.h> for function difftime()" >&5
  8885. echo $ECHO_N "checking C header file <time.h> for function difftime()... $ECHO_C" >&6; }
  8886. cat >conftest.$ac_ext <<_ACEOF
  8887. /* confdefs.h. */
  8888. _ACEOF
  8889. cat confdefs.h >>conftest.$ac_ext
  8890. cat >>conftest.$ac_ext <<_ACEOF
  8891. /* end confdefs.h. */
  8892. #include <time.h>
  8893. extern struct {int a; int b;} *difftime();
  8894. int
  8895. main ()
  8896. {
  8897. ;
  8898. return 0;
  8899. }
  8900. _ACEOF
  8901. rm -f conftest.$ac_objext
  8902. if { (ac_try="$ac_compile"
  8903. case "(($ac_try" in
  8904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8905. *) ac_try_echo=$ac_try;;
  8906. esac
  8907. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8908. (eval "$ac_compile") 2>conftest.er1
  8909. ac_status=$?
  8910. grep -v '^ *+' conftest.er1 >conftest.err
  8911. rm -f conftest.er1
  8912. cat conftest.err >&5
  8913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8914. (exit $ac_status); } && {
  8915. test -z "$ac_c_werror_flag" ||
  8916. test ! -s conftest.err
  8917. } && test -s conftest.$ac_objext; then
  8918. { echo "$as_me:$LINENO: result: undeclared" >&5
  8919. echo "${ECHO_T}undeclared" >&6; }
  8920. UD_NO_DIFFTIME_DECL="1"
  8921. cat >>confdefs.h <<\_ACEOF
  8922. #define UD_NO_DIFFTIME_DECL 1
  8923. _ACEOF
  8924. else
  8925. echo "$as_me: failed program was:" >&5
  8926. sed 's/^/| /' conftest.$ac_ext >&5
  8927. { echo "$as_me:$LINENO: result: declared" >&5
  8928. echo "${ECHO_T}declared" >&6; }
  8929. fi
  8930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8931. else
  8932. UD_NO_DIFFTIME_DECL="1"
  8933. cat >>confdefs.h <<\_ACEOF
  8934. #define UD_NO_DIFFTIME_DECL 1
  8935. _ACEOF
  8936. fi
  8937. for ac_func in strftime
  8938. do
  8939. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8940. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8941. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8942. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8943. echo $ECHO_N "(cached) $ECHO_C" >&6
  8944. else
  8945. cat >conftest.$ac_ext <<_ACEOF
  8946. /* confdefs.h. */
  8947. _ACEOF
  8948. cat confdefs.h >>conftest.$ac_ext
  8949. cat >>conftest.$ac_ext <<_ACEOF
  8950. /* end confdefs.h. */
  8951. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8952. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8953. #define $ac_func innocuous_$ac_func
  8954. /* System header to define __stub macros and hopefully few prototypes,
  8955. which can conflict with char $ac_func (); below.
  8956. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8957. <limits.h> exists even on freestanding compilers. */
  8958. #ifdef __STDC__
  8959. # include <limits.h>
  8960. #else
  8961. # include <assert.h>
  8962. #endif
  8963. #undef $ac_func
  8964. /* Override any GCC internal prototype to avoid an error.
  8965. Use char because int might match the return type of a GCC
  8966. builtin and then its argument prototype would still apply. */
  8967. #ifdef __cplusplus
  8968. extern "C"
  8969. #endif
  8970. char $ac_func ();
  8971. /* The GNU C library defines this for functions which it implements
  8972. to always fail with ENOSYS. Some functions are actually named
  8973. something starting with __ and the normal name is an alias. */
  8974. #if defined __stub_$ac_func || defined __stub___$ac_func
  8975. choke me
  8976. #endif
  8977. int
  8978. main ()
  8979. {
  8980. return $ac_func ();
  8981. ;
  8982. return 0;
  8983. }
  8984. _ACEOF
  8985. rm -f conftest.$ac_objext conftest$ac_exeext
  8986. if { (ac_try="$ac_link"
  8987. case "(($ac_try" in
  8988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8989. *) ac_try_echo=$ac_try;;
  8990. esac
  8991. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8992. (eval "$ac_link") 2>conftest.er1
  8993. ac_status=$?
  8994. grep -v '^ *+' conftest.er1 >conftest.err
  8995. rm -f conftest.er1
  8996. cat conftest.err >&5
  8997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8998. (exit $ac_status); } && {
  8999. test -z "$ac_c_werror_flag" ||
  9000. test ! -s conftest.err
  9001. } && test -s conftest$ac_exeext &&
  9002. $as_test_x conftest$ac_exeext; then
  9003. eval "$as_ac_var=yes"
  9004. else
  9005. echo "$as_me: failed program was:" >&5
  9006. sed 's/^/| /' conftest.$ac_ext >&5
  9007. eval "$as_ac_var=no"
  9008. fi
  9009. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9010. conftest$ac_exeext conftest.$ac_ext
  9011. fi
  9012. ac_res=`eval echo '${'$as_ac_var'}'`
  9013. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9014. echo "${ECHO_T}$ac_res" >&6; }
  9015. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9016. cat >>confdefs.h <<_ACEOF
  9017. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9018. _ACEOF
  9019. else
  9020. case " $LIBOBJS " in
  9021. *" $ac_func.$ac_objext "* ) ;;
  9022. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  9023. ;;
  9024. esac
  9025. fi
  9026. done
  9027. if test "${ac_cv_header_time_h+set}" = set; then
  9028. { echo "$as_me:$LINENO: checking for time.h" >&5
  9029. echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
  9030. if test "${ac_cv_header_time_h+set}" = set; then
  9031. echo $ECHO_N "(cached) $ECHO_C" >&6
  9032. fi
  9033. { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
  9034. echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
  9035. else
  9036. # Is the header compilable?
  9037. { echo "$as_me:$LINENO: checking time.h usability" >&5
  9038. echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; }
  9039. cat >conftest.$ac_ext <<_ACEOF
  9040. /* confdefs.h. */
  9041. _ACEOF
  9042. cat confdefs.h >>conftest.$ac_ext
  9043. cat >>conftest.$ac_ext <<_ACEOF
  9044. /* end confdefs.h. */
  9045. $ac_includes_default
  9046. #include <time.h>
  9047. _ACEOF
  9048. rm -f conftest.$ac_objext
  9049. if { (ac_try="$ac_compile"
  9050. case "(($ac_try" in
  9051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9052. *) ac_try_echo=$ac_try;;
  9053. esac
  9054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9055. (eval "$ac_compile") 2>conftest.er1
  9056. ac_status=$?
  9057. grep -v '^ *+' conftest.er1 >conftest.err
  9058. rm -f conftest.er1
  9059. cat conftest.err >&5
  9060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9061. (exit $ac_status); } && {
  9062. test -z "$ac_c_werror_flag" ||
  9063. test ! -s conftest.err
  9064. } && test -s conftest.$ac_objext; then
  9065. ac_header_compiler=yes
  9066. else
  9067. echo "$as_me: failed program was:" >&5
  9068. sed 's/^/| /' conftest.$ac_ext >&5
  9069. ac_header_compiler=no
  9070. fi
  9071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9072. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9073. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9074. # Is the header present?
  9075. { echo "$as_me:$LINENO: checking time.h presence" >&5
  9076. echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; }
  9077. cat >conftest.$ac_ext <<_ACEOF
  9078. /* confdefs.h. */
  9079. _ACEOF
  9080. cat confdefs.h >>conftest.$ac_ext
  9081. cat >>conftest.$ac_ext <<_ACEOF
  9082. /* end confdefs.h. */
  9083. #include <time.h>
  9084. _ACEOF
  9085. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9086. case "(($ac_try" in
  9087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9088. *) ac_try_echo=$ac_try;;
  9089. esac
  9090. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9091. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9092. ac_status=$?
  9093. grep -v '^ *+' conftest.er1 >conftest.err
  9094. rm -f conftest.er1
  9095. cat conftest.err >&5
  9096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9097. (exit $ac_status); } >/dev/null && {
  9098. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9099. test ! -s conftest.err
  9100. }; then
  9101. ac_header_preproc=yes
  9102. else
  9103. echo "$as_me: failed program was:" >&5
  9104. sed 's/^/| /' conftest.$ac_ext >&5
  9105. ac_header_preproc=no
  9106. fi
  9107. rm -f conftest.err conftest.$ac_ext
  9108. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9109. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9110. # So? What about this header?
  9111. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9112. yes:no: )
  9113. { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9114. echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9115. { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
  9116. echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
  9117. ac_header_preproc=yes
  9118. ;;
  9119. no:yes:* )
  9120. { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
  9121. echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
  9122. { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
  9123. echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
  9124. { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
  9125. echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
  9126. { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
  9127. echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
  9128. { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
  9129. echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
  9130. { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
  9131. echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
  9132. ;;
  9133. esac
  9134. { echo "$as_me:$LINENO: checking for time.h" >&5
  9135. echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
  9136. if test "${ac_cv_header_time_h+set}" = set; then
  9137. echo $ECHO_N "(cached) $ECHO_C" >&6
  9138. else
  9139. ac_cv_header_time_h=$ac_header_preproc
  9140. fi
  9141. { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
  9142. echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
  9143. fi
  9144. if test $ac_cv_header_time_h = yes; then
  9145. { echo "$as_me:$LINENO: checking C header file <time.h> for function strftime()" >&5
  9146. echo $ECHO_N "checking C header file <time.h> for function strftime()... $ECHO_C" >&6; }
  9147. cat >conftest.$ac_ext <<_ACEOF
  9148. /* confdefs.h. */
  9149. _ACEOF
  9150. cat confdefs.h >>conftest.$ac_ext
  9151. cat >>conftest.$ac_ext <<_ACEOF
  9152. /* end confdefs.h. */
  9153. #include <time.h>
  9154. extern struct {int a; int b;} *strftime();
  9155. int
  9156. main ()
  9157. {
  9158. ;
  9159. return 0;
  9160. }
  9161. _ACEOF
  9162. rm -f conftest.$ac_objext
  9163. if { (ac_try="$ac_compile"
  9164. case "(($ac_try" in
  9165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9166. *) ac_try_echo=$ac_try;;
  9167. esac
  9168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9169. (eval "$ac_compile") 2>conftest.er1
  9170. ac_status=$?
  9171. grep -v '^ *+' conftest.er1 >conftest.err
  9172. rm -f conftest.er1
  9173. cat conftest.err >&5
  9174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9175. (exit $ac_status); } && {
  9176. test -z "$ac_c_werror_flag" ||
  9177. test ! -s conftest.err
  9178. } && test -s conftest.$ac_objext; then
  9179. { echo "$as_me:$LINENO: result: undeclared" >&5
  9180. echo "${ECHO_T}undeclared" >&6; }
  9181. UD_NO_STRFTIME_DECL="1"
  9182. cat >>confdefs.h <<\_ACEOF
  9183. #define UD_NO_STRFTIME_DECL 1
  9184. _ACEOF
  9185. else
  9186. echo "$as_me: failed program was:" >&5
  9187. sed 's/^/| /' conftest.$ac_ext >&5
  9188. { echo "$as_me:$LINENO: result: declared" >&5
  9189. echo "${ECHO_T}declared" >&6; }
  9190. fi
  9191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9192. else
  9193. UD_NO_STRFTIME_DECL="1"
  9194. cat >>confdefs.h <<\_ACEOF
  9195. #define UD_NO_STRFTIME_DECL 1
  9196. _ACEOF
  9197. fi
  9198. for arg in limits.h.in; do
  9199. case "$PORT_MANIFEST" in
  9200. *$arg*)
  9201. ;;
  9202. *)
  9203. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  9204. ;;
  9205. esac
  9206. done
  9207. for arg in misc; do
  9208. case "$PORT_SUBDIRS" in
  9209. *$arg*)
  9210. ;;
  9211. *)
  9212. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  9213. ;;
  9214. esac
  9215. done
  9216. echo "#include <limits.h>" > conftestpath.c
  9217. #
  9218. # We add additional `/'s to the header file name to preclude compiler
  9219. # warnings about the non-portability of `#include "/usr/include/..."'.
  9220. #
  9221. case `uname -s`${GCC-} in
  9222. AIX)
  9223. #
  9224. # AIX's C compiler doesn't emit a line that gives the pathname of
  9225. # the included file.
  9226. #
  9227. # AIX's C compiler puts dependency information in a `.u' file.
  9228. #
  9229. # AIX 4.1's cc(1) makes the following complaint:
  9230. # ld: 0711-317 ERROR: Undefined symbol: .main
  9231. #
  9232. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  9233. # /dev/null.
  9234. #
  9235. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  9236. path=`sed -n '/[^\/]*\(\/[^ ]*limits\.h\).*/s//\1/p' \
  9237. conftestpath.u | head -1`
  9238. rm conftestpath.u
  9239. ;;
  9240. HP-UX)
  9241. #
  9242. # HP-UX's C compiler doesn't have a dependency-generation option,
  9243. # so we use another method.
  9244. #
  9245. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  9246. sed -n '/[^\/]*\(\/[^ ]*limits\.h\).*/s//\1/p' |
  9247. head -1`
  9248. ;;
  9249. *)
  9250. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  9251. sed -n '/[^\/]*\(\/[^ ]*limits\.h\).*/s//\1/p' |
  9252. head -1`
  9253. ;;
  9254. esac
  9255. case "$path" in
  9256. '')
  9257. path=/dev/null
  9258. ;;
  9259. *)
  9260. path=//$path
  9261. ;;
  9262. esac
  9263. cat >>confdefs.h <<_ACEOF
  9264. #define UD_SYSTEM_LIMITS_H "$path"
  9265. _ACEOF
  9266. for arg in misc; do
  9267. case "$PORT_SUBDIRS" in
  9268. *$arg*)
  9269. ;;
  9270. *)
  9271. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  9272. ;;
  9273. esac
  9274. done
  9275. for arg in search.h.in tsearch.c tfind.c tdelete.c twalk.c \
  9276. search-node.h; do
  9277. case "$PORT_MANIFEST" in
  9278. *$arg*)
  9279. ;;
  9280. *)
  9281. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  9282. ;;
  9283. esac
  9284. done
  9285. for arg in misc; do
  9286. case "$PORT_SUBDIRS" in
  9287. *$arg*)
  9288. ;;
  9289. *)
  9290. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  9291. ;;
  9292. esac
  9293. done
  9294. echo "#include <search.h>" > conftestpath.c
  9295. #
  9296. # We add additional `/'s to the header file name to preclude compiler
  9297. # warnings about the non-portability of `#include "/usr/include/..."'.
  9298. #
  9299. case `uname -s`${GCC-} in
  9300. AIX)
  9301. #
  9302. # AIX's C compiler doesn't emit a line that gives the pathname of
  9303. # the included file.
  9304. #
  9305. # AIX's C compiler puts dependency information in a `.u' file.
  9306. #
  9307. # AIX 4.1's cc(1) makes the following complaint:
  9308. # ld: 0711-317 ERROR: Undefined symbol: .main
  9309. #
  9310. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  9311. # /dev/null.
  9312. #
  9313. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  9314. path=`sed -n '/[^\/]*\(\/[^ ]*search\.h\).*/s//\1/p' \
  9315. conftestpath.u | head -1`
  9316. rm conftestpath.u
  9317. ;;
  9318. HP-UX)
  9319. #
  9320. # HP-UX's C compiler doesn't have a dependency-generation option,
  9321. # so we use another method.
  9322. #
  9323. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  9324. sed -n '/[^\/]*\(\/[^ ]*search\.h\).*/s//\1/p' |
  9325. head -1`
  9326. ;;
  9327. *)
  9328. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  9329. sed -n '/[^\/]*\(\/[^ ]*search\.h\).*/s//\1/p' |
  9330. head -1`
  9331. ;;
  9332. esac
  9333. case "$path" in
  9334. '')
  9335. path=/dev/null
  9336. ;;
  9337. *)
  9338. path=//$path
  9339. ;;
  9340. esac
  9341. cat >>confdefs.h <<_ACEOF
  9342. #define UD_SYSTEM_SEARCH_H "$path"
  9343. _ACEOF
  9344. for arg in misc; do
  9345. case "$PORT_SUBDIRS" in
  9346. *$arg*)
  9347. ;;
  9348. *)
  9349. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  9350. ;;
  9351. esac
  9352. done
  9353. if test "${ac_cv_header_search_h+set}" = set; then
  9354. { echo "$as_me:$LINENO: checking for search.h" >&5
  9355. echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
  9356. if test "${ac_cv_header_search_h+set}" = set; then
  9357. echo $ECHO_N "(cached) $ECHO_C" >&6
  9358. fi
  9359. { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
  9360. echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
  9361. else
  9362. # Is the header compilable?
  9363. { echo "$as_me:$LINENO: checking search.h usability" >&5
  9364. echo $ECHO_N "checking search.h usability... $ECHO_C" >&6; }
  9365. cat >conftest.$ac_ext <<_ACEOF
  9366. /* confdefs.h. */
  9367. _ACEOF
  9368. cat confdefs.h >>conftest.$ac_ext
  9369. cat >>conftest.$ac_ext <<_ACEOF
  9370. /* end confdefs.h. */
  9371. $ac_includes_default
  9372. #include <search.h>
  9373. _ACEOF
  9374. rm -f conftest.$ac_objext
  9375. if { (ac_try="$ac_compile"
  9376. case "(($ac_try" in
  9377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9378. *) ac_try_echo=$ac_try;;
  9379. esac
  9380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9381. (eval "$ac_compile") 2>conftest.er1
  9382. ac_status=$?
  9383. grep -v '^ *+' conftest.er1 >conftest.err
  9384. rm -f conftest.er1
  9385. cat conftest.err >&5
  9386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9387. (exit $ac_status); } && {
  9388. test -z "$ac_c_werror_flag" ||
  9389. test ! -s conftest.err
  9390. } && test -s conftest.$ac_objext; then
  9391. ac_header_compiler=yes
  9392. else
  9393. echo "$as_me: failed program was:" >&5
  9394. sed 's/^/| /' conftest.$ac_ext >&5
  9395. ac_header_compiler=no
  9396. fi
  9397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9398. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9399. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9400. # Is the header present?
  9401. { echo "$as_me:$LINENO: checking search.h presence" >&5
  9402. echo $ECHO_N "checking search.h presence... $ECHO_C" >&6; }
  9403. cat >conftest.$ac_ext <<_ACEOF
  9404. /* confdefs.h. */
  9405. _ACEOF
  9406. cat confdefs.h >>conftest.$ac_ext
  9407. cat >>conftest.$ac_ext <<_ACEOF
  9408. /* end confdefs.h. */
  9409. #include <search.h>
  9410. _ACEOF
  9411. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9412. case "(($ac_try" in
  9413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9414. *) ac_try_echo=$ac_try;;
  9415. esac
  9416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9417. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9418. ac_status=$?
  9419. grep -v '^ *+' conftest.er1 >conftest.err
  9420. rm -f conftest.er1
  9421. cat conftest.err >&5
  9422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9423. (exit $ac_status); } >/dev/null && {
  9424. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9425. test ! -s conftest.err
  9426. }; then
  9427. ac_header_preproc=yes
  9428. else
  9429. echo "$as_me: failed program was:" >&5
  9430. sed 's/^/| /' conftest.$ac_ext >&5
  9431. ac_header_preproc=no
  9432. fi
  9433. rm -f conftest.err conftest.$ac_ext
  9434. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9435. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9436. # So? What about this header?
  9437. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9438. yes:no: )
  9439. { echo "$as_me:$LINENO: WARNING: search.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9440. echo "$as_me: WARNING: search.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9441. { echo "$as_me:$LINENO: WARNING: search.h: proceeding with the compiler's result" >&5
  9442. echo "$as_me: WARNING: search.h: proceeding with the compiler's result" >&2;}
  9443. ac_header_preproc=yes
  9444. ;;
  9445. no:yes:* )
  9446. { echo "$as_me:$LINENO: WARNING: search.h: present but cannot be compiled" >&5
  9447. echo "$as_me: WARNING: search.h: present but cannot be compiled" >&2;}
  9448. { echo "$as_me:$LINENO: WARNING: search.h: check for missing prerequisite headers?" >&5
  9449. echo "$as_me: WARNING: search.h: check for missing prerequisite headers?" >&2;}
  9450. { echo "$as_me:$LINENO: WARNING: search.h: see the Autoconf documentation" >&5
  9451. echo "$as_me: WARNING: search.h: see the Autoconf documentation" >&2;}
  9452. { echo "$as_me:$LINENO: WARNING: search.h: section \"Present But Cannot Be Compiled\"" >&5
  9453. echo "$as_me: WARNING: search.h: section \"Present But Cannot Be Compiled\"" >&2;}
  9454. { echo "$as_me:$LINENO: WARNING: search.h: proceeding with the preprocessor's result" >&5
  9455. echo "$as_me: WARNING: search.h: proceeding with the preprocessor's result" >&2;}
  9456. { echo "$as_me:$LINENO: WARNING: search.h: in the future, the compiler will take precedence" >&5
  9457. echo "$as_me: WARNING: search.h: in the future, the compiler will take precedence" >&2;}
  9458. ;;
  9459. esac
  9460. { echo "$as_me:$LINENO: checking for search.h" >&5
  9461. echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
  9462. if test "${ac_cv_header_search_h+set}" = set; then
  9463. echo $ECHO_N "(cached) $ECHO_C" >&6
  9464. else
  9465. ac_cv_header_search_h=$ac_header_preproc
  9466. fi
  9467. { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
  9468. echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
  9469. fi
  9470. if test $ac_cv_header_search_h = yes; then
  9471. found=yes
  9472. else
  9473. found=no
  9474. fi
  9475. case $found in
  9476. yes)
  9477. { echo "$as_me:$LINENO: checking C header file <search.h> for typedef ENTRY" >&5
  9478. echo $ECHO_N "checking C header file <search.h> for typedef ENTRY... $ECHO_C" >&6; }
  9479. echo '#include <search.h>' >conftest.c
  9480. if ($CPP conftest.c | grep ENTRY >/dev/null) 2>&5; then
  9481. { echo "$as_me:$LINENO: result: declared" >&5
  9482. echo "${ECHO_T}declared" >&6; }
  9483. rm conftest.c
  9484. else
  9485. cat >conftest.$ac_ext <<_ACEOF
  9486. /* confdefs.h. */
  9487. _ACEOF
  9488. cat confdefs.h >>conftest.$ac_ext
  9489. cat >>conftest.$ac_ext <<_ACEOF
  9490. /* end confdefs.h. */
  9491. #include <search.h>
  9492. int ENTRY;
  9493. int
  9494. main ()
  9495. {
  9496. ;
  9497. return 0;
  9498. }
  9499. _ACEOF
  9500. rm -f conftest.$ac_objext
  9501. if { (ac_try="$ac_compile"
  9502. case "(($ac_try" in
  9503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9504. *) ac_try_echo=$ac_try;;
  9505. esac
  9506. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9507. (eval "$ac_compile") 2>conftest.er1
  9508. ac_status=$?
  9509. grep -v '^ *+' conftest.er1 >conftest.err
  9510. rm -f conftest.er1
  9511. cat conftest.err >&5
  9512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9513. (exit $ac_status); } && {
  9514. test -z "$ac_c_werror_flag" ||
  9515. test ! -s conftest.err
  9516. } && test -s conftest.$ac_objext; then
  9517. { echo "$as_me:$LINENO: result: undeclared" >&5
  9518. echo "${ECHO_T}undeclared" >&6; }
  9519. cat >>confdefs.h <<\_ACEOF
  9520. #define UD_NO_SEARCH_H_ENTRY 1
  9521. _ACEOF
  9522. else
  9523. echo "$as_me: failed program was:" >&5
  9524. sed 's/^/| /' conftest.$ac_ext >&5
  9525. { echo "$as_me:$LINENO: result: declared" >&5
  9526. echo "${ECHO_T}declared" >&6; }
  9527. fi
  9528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9529. fi
  9530. ;;
  9531. no)
  9532. cat >>confdefs.h <<\_ACEOF
  9533. #define UD_NO_SEARCH_H_ENTRY 1
  9534. _ACEOF
  9535. ;;
  9536. esac
  9537. if test "${ac_cv_header_search_h+set}" = set; then
  9538. { echo "$as_me:$LINENO: checking for search.h" >&5
  9539. echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
  9540. if test "${ac_cv_header_search_h+set}" = set; then
  9541. echo $ECHO_N "(cached) $ECHO_C" >&6
  9542. fi
  9543. { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
  9544. echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
  9545. else
  9546. # Is the header compilable?
  9547. { echo "$as_me:$LINENO: checking search.h usability" >&5
  9548. echo $ECHO_N "checking search.h usability... $ECHO_C" >&6; }
  9549. cat >conftest.$ac_ext <<_ACEOF
  9550. /* confdefs.h. */
  9551. _ACEOF
  9552. cat confdefs.h >>conftest.$ac_ext
  9553. cat >>conftest.$ac_ext <<_ACEOF
  9554. /* end confdefs.h. */
  9555. $ac_includes_default
  9556. #include <search.h>
  9557. _ACEOF
  9558. rm -f conftest.$ac_objext
  9559. if { (ac_try="$ac_compile"
  9560. case "(($ac_try" in
  9561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9562. *) ac_try_echo=$ac_try;;
  9563. esac
  9564. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9565. (eval "$ac_compile") 2>conftest.er1
  9566. ac_status=$?
  9567. grep -v '^ *+' conftest.er1 >conftest.err
  9568. rm -f conftest.er1
  9569. cat conftest.err >&5
  9570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9571. (exit $ac_status); } && {
  9572. test -z "$ac_c_werror_flag" ||
  9573. test ! -s conftest.err
  9574. } && test -s conftest.$ac_objext; then
  9575. ac_header_compiler=yes
  9576. else
  9577. echo "$as_me: failed program was:" >&5
  9578. sed 's/^/| /' conftest.$ac_ext >&5
  9579. ac_header_compiler=no
  9580. fi
  9581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9582. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9583. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9584. # Is the header present?
  9585. { echo "$as_me:$LINENO: checking search.h presence" >&5
  9586. echo $ECHO_N "checking search.h presence... $ECHO_C" >&6; }
  9587. cat >conftest.$ac_ext <<_ACEOF
  9588. /* confdefs.h. */
  9589. _ACEOF
  9590. cat confdefs.h >>conftest.$ac_ext
  9591. cat >>conftest.$ac_ext <<_ACEOF
  9592. /* end confdefs.h. */
  9593. #include <search.h>
  9594. _ACEOF
  9595. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9596. case "(($ac_try" in
  9597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9598. *) ac_try_echo=$ac_try;;
  9599. esac
  9600. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9601. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9602. ac_status=$?
  9603. grep -v '^ *+' conftest.er1 >conftest.err
  9604. rm -f conftest.er1
  9605. cat conftest.err >&5
  9606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9607. (exit $ac_status); } >/dev/null && {
  9608. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9609. test ! -s conftest.err
  9610. }; then
  9611. ac_header_preproc=yes
  9612. else
  9613. echo "$as_me: failed program was:" >&5
  9614. sed 's/^/| /' conftest.$ac_ext >&5
  9615. ac_header_preproc=no
  9616. fi
  9617. rm -f conftest.err conftest.$ac_ext
  9618. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9619. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9620. # So? What about this header?
  9621. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9622. yes:no: )
  9623. { echo "$as_me:$LINENO: WARNING: search.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9624. echo "$as_me: WARNING: search.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9625. { echo "$as_me:$LINENO: WARNING: search.h: proceeding with the compiler's result" >&5
  9626. echo "$as_me: WARNING: search.h: proceeding with the compiler's result" >&2;}
  9627. ac_header_preproc=yes
  9628. ;;
  9629. no:yes:* )
  9630. { echo "$as_me:$LINENO: WARNING: search.h: present but cannot be compiled" >&5
  9631. echo "$as_me: WARNING: search.h: present but cannot be compiled" >&2;}
  9632. { echo "$as_me:$LINENO: WARNING: search.h: check for missing prerequisite headers?" >&5
  9633. echo "$as_me: WARNING: search.h: check for missing prerequisite headers?" >&2;}
  9634. { echo "$as_me:$LINENO: WARNING: search.h: see the Autoconf documentation" >&5
  9635. echo "$as_me: WARNING: search.h: see the Autoconf documentation" >&2;}
  9636. { echo "$as_me:$LINENO: WARNING: search.h: section \"Present But Cannot Be Compiled\"" >&5
  9637. echo "$as_me: WARNING: search.h: section \"Present But Cannot Be Compiled\"" >&2;}
  9638. { echo "$as_me:$LINENO: WARNING: search.h: proceeding with the preprocessor's result" >&5
  9639. echo "$as_me: WARNING: search.h: proceeding with the preprocessor's result" >&2;}
  9640. { echo "$as_me:$LINENO: WARNING: search.h: in the future, the compiler will take precedence" >&5
  9641. echo "$as_me: WARNING: search.h: in the future, the compiler will take precedence" >&2;}
  9642. ;;
  9643. esac
  9644. { echo "$as_me:$LINENO: checking for search.h" >&5
  9645. echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
  9646. if test "${ac_cv_header_search_h+set}" = set; then
  9647. echo $ECHO_N "(cached) $ECHO_C" >&6
  9648. else
  9649. ac_cv_header_search_h=$ac_header_preproc
  9650. fi
  9651. { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
  9652. echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
  9653. fi
  9654. if test $ac_cv_header_search_h = yes; then
  9655. found=yes
  9656. else
  9657. found=no
  9658. fi
  9659. case $found in
  9660. yes)
  9661. { echo "$as_me:$LINENO: checking C header file <search.h> for typedef ACTION" >&5
  9662. echo $ECHO_N "checking C header file <search.h> for typedef ACTION... $ECHO_C" >&6; }
  9663. echo '#include <search.h>' >conftest.c
  9664. if ($CPP conftest.c | grep ACTION >/dev/null) 2>&5; then
  9665. { echo "$as_me:$LINENO: result: declared" >&5
  9666. echo "${ECHO_T}declared" >&6; }
  9667. rm conftest.c
  9668. else
  9669. cat >conftest.$ac_ext <<_ACEOF
  9670. /* confdefs.h. */
  9671. _ACEOF
  9672. cat confdefs.h >>conftest.$ac_ext
  9673. cat >>conftest.$ac_ext <<_ACEOF
  9674. /* end confdefs.h. */
  9675. #include <search.h>
  9676. int ACTION;
  9677. int
  9678. main ()
  9679. {
  9680. ;
  9681. return 0;
  9682. }
  9683. _ACEOF
  9684. rm -f conftest.$ac_objext
  9685. if { (ac_try="$ac_compile"
  9686. case "(($ac_try" in
  9687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9688. *) ac_try_echo=$ac_try;;
  9689. esac
  9690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9691. (eval "$ac_compile") 2>conftest.er1
  9692. ac_status=$?
  9693. grep -v '^ *+' conftest.er1 >conftest.err
  9694. rm -f conftest.er1
  9695. cat conftest.err >&5
  9696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9697. (exit $ac_status); } && {
  9698. test -z "$ac_c_werror_flag" ||
  9699. test ! -s conftest.err
  9700. } && test -s conftest.$ac_objext; then
  9701. { echo "$as_me:$LINENO: result: undeclared" >&5
  9702. echo "${ECHO_T}undeclared" >&6; }
  9703. cat >>confdefs.h <<\_ACEOF
  9704. #define UD_NO_SEARCH_H_ACTION 1
  9705. _ACEOF
  9706. else
  9707. echo "$as_me: failed program was:" >&5
  9708. sed 's/^/| /' conftest.$ac_ext >&5
  9709. { echo "$as_me:$LINENO: result: declared" >&5
  9710. echo "${ECHO_T}declared" >&6; }
  9711. fi
  9712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9713. fi
  9714. ;;
  9715. no)
  9716. cat >>confdefs.h <<\_ACEOF
  9717. #define UD_NO_SEARCH_H_ACTION 1
  9718. _ACEOF
  9719. ;;
  9720. esac
  9721. if test "${ac_cv_header_search_h+set}" = set; then
  9722. { echo "$as_me:$LINENO: checking for search.h" >&5
  9723. echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
  9724. if test "${ac_cv_header_search_h+set}" = set; then
  9725. echo $ECHO_N "(cached) $ECHO_C" >&6
  9726. fi
  9727. { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
  9728. echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
  9729. else
  9730. # Is the header compilable?
  9731. { echo "$as_me:$LINENO: checking search.h usability" >&5
  9732. echo $ECHO_N "checking search.h usability... $ECHO_C" >&6; }
  9733. cat >conftest.$ac_ext <<_ACEOF
  9734. /* confdefs.h. */
  9735. _ACEOF
  9736. cat confdefs.h >>conftest.$ac_ext
  9737. cat >>conftest.$ac_ext <<_ACEOF
  9738. /* end confdefs.h. */
  9739. $ac_includes_default
  9740. #include <search.h>
  9741. _ACEOF
  9742. rm -f conftest.$ac_objext
  9743. if { (ac_try="$ac_compile"
  9744. case "(($ac_try" in
  9745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9746. *) ac_try_echo=$ac_try;;
  9747. esac
  9748. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9749. (eval "$ac_compile") 2>conftest.er1
  9750. ac_status=$?
  9751. grep -v '^ *+' conftest.er1 >conftest.err
  9752. rm -f conftest.er1
  9753. cat conftest.err >&5
  9754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9755. (exit $ac_status); } && {
  9756. test -z "$ac_c_werror_flag" ||
  9757. test ! -s conftest.err
  9758. } && test -s conftest.$ac_objext; then
  9759. ac_header_compiler=yes
  9760. else
  9761. echo "$as_me: failed program was:" >&5
  9762. sed 's/^/| /' conftest.$ac_ext >&5
  9763. ac_header_compiler=no
  9764. fi
  9765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9766. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9767. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9768. # Is the header present?
  9769. { echo "$as_me:$LINENO: checking search.h presence" >&5
  9770. echo $ECHO_N "checking search.h presence... $ECHO_C" >&6; }
  9771. cat >conftest.$ac_ext <<_ACEOF
  9772. /* confdefs.h. */
  9773. _ACEOF
  9774. cat confdefs.h >>conftest.$ac_ext
  9775. cat >>conftest.$ac_ext <<_ACEOF
  9776. /* end confdefs.h. */
  9777. #include <search.h>
  9778. _ACEOF
  9779. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9780. case "(($ac_try" in
  9781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9782. *) ac_try_echo=$ac_try;;
  9783. esac
  9784. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9785. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9786. ac_status=$?
  9787. grep -v '^ *+' conftest.er1 >conftest.err
  9788. rm -f conftest.er1
  9789. cat conftest.err >&5
  9790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9791. (exit $ac_status); } >/dev/null && {
  9792. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9793. test ! -s conftest.err
  9794. }; then
  9795. ac_header_preproc=yes
  9796. else
  9797. echo "$as_me: failed program was:" >&5
  9798. sed 's/^/| /' conftest.$ac_ext >&5
  9799. ac_header_preproc=no
  9800. fi
  9801. rm -f conftest.err conftest.$ac_ext
  9802. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9803. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9804. # So? What about this header?
  9805. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9806. yes:no: )
  9807. { echo "$as_me:$LINENO: WARNING: search.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9808. echo "$as_me: WARNING: search.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9809. { echo "$as_me:$LINENO: WARNING: search.h: proceeding with the compiler's result" >&5
  9810. echo "$as_me: WARNING: search.h: proceeding with the compiler's result" >&2;}
  9811. ac_header_preproc=yes
  9812. ;;
  9813. no:yes:* )
  9814. { echo "$as_me:$LINENO: WARNING: search.h: present but cannot be compiled" >&5
  9815. echo "$as_me: WARNING: search.h: present but cannot be compiled" >&2;}
  9816. { echo "$as_me:$LINENO: WARNING: search.h: check for missing prerequisite headers?" >&5
  9817. echo "$as_me: WARNING: search.h: check for missing prerequisite headers?" >&2;}
  9818. { echo "$as_me:$LINENO: WARNING: search.h: see the Autoconf documentation" >&5
  9819. echo "$as_me: WARNING: search.h: see the Autoconf documentation" >&2;}
  9820. { echo "$as_me:$LINENO: WARNING: search.h: section \"Present But Cannot Be Compiled\"" >&5
  9821. echo "$as_me: WARNING: search.h: section \"Present But Cannot Be Compiled\"" >&2;}
  9822. { echo "$as_me:$LINENO: WARNING: search.h: proceeding with the preprocessor's result" >&5
  9823. echo "$as_me: WARNING: search.h: proceeding with the preprocessor's result" >&2;}
  9824. { echo "$as_me:$LINENO: WARNING: search.h: in the future, the compiler will take precedence" >&5
  9825. echo "$as_me: WARNING: search.h: in the future, the compiler will take precedence" >&2;}
  9826. ;;
  9827. esac
  9828. { echo "$as_me:$LINENO: checking for search.h" >&5
  9829. echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
  9830. if test "${ac_cv_header_search_h+set}" = set; then
  9831. echo $ECHO_N "(cached) $ECHO_C" >&6
  9832. else
  9833. ac_cv_header_search_h=$ac_header_preproc
  9834. fi
  9835. { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
  9836. echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
  9837. fi
  9838. if test $ac_cv_header_search_h = yes; then
  9839. found=yes
  9840. else
  9841. found=no
  9842. fi
  9843. case $found in
  9844. yes)
  9845. { echo "$as_me:$LINENO: checking C header file <search.h> for typedef VISIT" >&5
  9846. echo $ECHO_N "checking C header file <search.h> for typedef VISIT... $ECHO_C" >&6; }
  9847. echo '#include <search.h>' >conftest.c
  9848. if ($CPP conftest.c | grep VISIT >/dev/null) 2>&5; then
  9849. { echo "$as_me:$LINENO: result: declared" >&5
  9850. echo "${ECHO_T}declared" >&6; }
  9851. rm conftest.c
  9852. else
  9853. cat >conftest.$ac_ext <<_ACEOF
  9854. /* confdefs.h. */
  9855. _ACEOF
  9856. cat confdefs.h >>conftest.$ac_ext
  9857. cat >>conftest.$ac_ext <<_ACEOF
  9858. /* end confdefs.h. */
  9859. #include <search.h>
  9860. int VISIT;
  9861. int
  9862. main ()
  9863. {
  9864. ;
  9865. return 0;
  9866. }
  9867. _ACEOF
  9868. rm -f conftest.$ac_objext
  9869. if { (ac_try="$ac_compile"
  9870. case "(($ac_try" in
  9871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9872. *) ac_try_echo=$ac_try;;
  9873. esac
  9874. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9875. (eval "$ac_compile") 2>conftest.er1
  9876. ac_status=$?
  9877. grep -v '^ *+' conftest.er1 >conftest.err
  9878. rm -f conftest.er1
  9879. cat conftest.err >&5
  9880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9881. (exit $ac_status); } && {
  9882. test -z "$ac_c_werror_flag" ||
  9883. test ! -s conftest.err
  9884. } && test -s conftest.$ac_objext; then
  9885. { echo "$as_me:$LINENO: result: undeclared" >&5
  9886. echo "${ECHO_T}undeclared" >&6; }
  9887. cat >>confdefs.h <<\_ACEOF
  9888. #define UD_NO_SEARCH_H_VISIT 1
  9889. _ACEOF
  9890. else
  9891. echo "$as_me: failed program was:" >&5
  9892. sed 's/^/| /' conftest.$ac_ext >&5
  9893. { echo "$as_me:$LINENO: result: declared" >&5
  9894. echo "${ECHO_T}declared" >&6; }
  9895. fi
  9896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9897. fi
  9898. ;;
  9899. no)
  9900. cat >>confdefs.h <<\_ACEOF
  9901. #define UD_NO_SEARCH_H_VISIT 1
  9902. _ACEOF
  9903. ;;
  9904. esac
  9905. for ac_func in tsearch
  9906. do
  9907. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9908. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9909. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9910. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9911. echo $ECHO_N "(cached) $ECHO_C" >&6
  9912. else
  9913. cat >conftest.$ac_ext <<_ACEOF
  9914. /* confdefs.h. */
  9915. _ACEOF
  9916. cat confdefs.h >>conftest.$ac_ext
  9917. cat >>conftest.$ac_ext <<_ACEOF
  9918. /* end confdefs.h. */
  9919. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9920. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9921. #define $ac_func innocuous_$ac_func
  9922. /* System header to define __stub macros and hopefully few prototypes,
  9923. which can conflict with char $ac_func (); below.
  9924. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9925. <limits.h> exists even on freestanding compilers. */
  9926. #ifdef __STDC__
  9927. # include <limits.h>
  9928. #else
  9929. # include <assert.h>
  9930. #endif
  9931. #undef $ac_func
  9932. /* Override any GCC internal prototype to avoid an error.
  9933. Use char because int might match the return type of a GCC
  9934. builtin and then its argument prototype would still apply. */
  9935. #ifdef __cplusplus
  9936. extern "C"
  9937. #endif
  9938. char $ac_func ();
  9939. /* The GNU C library defines this for functions which it implements
  9940. to always fail with ENOSYS. Some functions are actually named
  9941. something starting with __ and the normal name is an alias. */
  9942. #if defined __stub_$ac_func || defined __stub___$ac_func
  9943. choke me
  9944. #endif
  9945. int
  9946. main ()
  9947. {
  9948. return $ac_func ();
  9949. ;
  9950. return 0;
  9951. }
  9952. _ACEOF
  9953. rm -f conftest.$ac_objext conftest$ac_exeext
  9954. if { (ac_try="$ac_link"
  9955. case "(($ac_try" in
  9956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9957. *) ac_try_echo=$ac_try;;
  9958. esac
  9959. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9960. (eval "$ac_link") 2>conftest.er1
  9961. ac_status=$?
  9962. grep -v '^ *+' conftest.er1 >conftest.err
  9963. rm -f conftest.er1
  9964. cat conftest.err >&5
  9965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9966. (exit $ac_status); } && {
  9967. test -z "$ac_c_werror_flag" ||
  9968. test ! -s conftest.err
  9969. } && test -s conftest$ac_exeext &&
  9970. $as_test_x conftest$ac_exeext; then
  9971. eval "$as_ac_var=yes"
  9972. else
  9973. echo "$as_me: failed program was:" >&5
  9974. sed 's/^/| /' conftest.$ac_ext >&5
  9975. eval "$as_ac_var=no"
  9976. fi
  9977. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9978. conftest$ac_exeext conftest.$ac_ext
  9979. fi
  9980. ac_res=`eval echo '${'$as_ac_var'}'`
  9981. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9982. echo "${ECHO_T}$ac_res" >&6; }
  9983. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9984. cat >>confdefs.h <<_ACEOF
  9985. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9986. _ACEOF
  9987. else
  9988. case " $LIBOBJS " in
  9989. *" $ac_func.$ac_objext "* ) ;;
  9990. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  9991. ;;
  9992. esac
  9993. fi
  9994. done
  9995. if test "${ac_cv_header_search_h+set}" = set; then
  9996. { echo "$as_me:$LINENO: checking for search.h" >&5
  9997. echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
  9998. if test "${ac_cv_header_search_h+set}" = set; then
  9999. echo $ECHO_N "(cached) $ECHO_C" >&6
  10000. fi
  10001. { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
  10002. echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
  10003. else
  10004. # Is the header compilable?
  10005. { echo "$as_me:$LINENO: checking search.h usability" >&5
  10006. echo $ECHO_N "checking search.h usability... $ECHO_C" >&6; }
  10007. cat >conftest.$ac_ext <<_ACEOF
  10008. /* confdefs.h. */
  10009. _ACEOF
  10010. cat confdefs.h >>conftest.$ac_ext
  10011. cat >>conftest.$ac_ext <<_ACEOF
  10012. /* end confdefs.h. */
  10013. $ac_includes_default
  10014. #include <search.h>
  10015. _ACEOF
  10016. rm -f conftest.$ac_objext
  10017. if { (ac_try="$ac_compile"
  10018. case "(($ac_try" in
  10019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10020. *) ac_try_echo=$ac_try;;
  10021. esac
  10022. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10023. (eval "$ac_compile") 2>conftest.er1
  10024. ac_status=$?
  10025. grep -v '^ *+' conftest.er1 >conftest.err
  10026. rm -f conftest.er1
  10027. cat conftest.err >&5
  10028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10029. (exit $ac_status); } && {
  10030. test -z "$ac_c_werror_flag" ||
  10031. test ! -s conftest.err
  10032. } && test -s conftest.$ac_objext; then
  10033. ac_header_compiler=yes
  10034. else
  10035. echo "$as_me: failed program was:" >&5
  10036. sed 's/^/| /' conftest.$ac_ext >&5
  10037. ac_header_compiler=no
  10038. fi
  10039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10040. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10041. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10042. # Is the header present?
  10043. { echo "$as_me:$LINENO: checking search.h presence" >&5
  10044. echo $ECHO_N "checking search.h presence... $ECHO_C" >&6; }
  10045. cat >conftest.$ac_ext <<_ACEOF
  10046. /* confdefs.h. */
  10047. _ACEOF
  10048. cat confdefs.h >>conftest.$ac_ext
  10049. cat >>conftest.$ac_ext <<_ACEOF
  10050. /* end confdefs.h. */
  10051. #include <search.h>
  10052. _ACEOF
  10053. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10054. case "(($ac_try" in
  10055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10056. *) ac_try_echo=$ac_try;;
  10057. esac
  10058. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10059. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10060. ac_status=$?
  10061. grep -v '^ *+' conftest.er1 >conftest.err
  10062. rm -f conftest.er1
  10063. cat conftest.err >&5
  10064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10065. (exit $ac_status); } >/dev/null && {
  10066. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10067. test ! -s conftest.err
  10068. }; then
  10069. ac_header_preproc=yes
  10070. else
  10071. echo "$as_me: failed program was:" >&5
  10072. sed 's/^/| /' conftest.$ac_ext >&5
  10073. ac_header_preproc=no
  10074. fi
  10075. rm -f conftest.err conftest.$ac_ext
  10076. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10077. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10078. # So? What about this header?
  10079. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10080. yes:no: )
  10081. { echo "$as_me:$LINENO: WARNING: search.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10082. echo "$as_me: WARNING: search.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10083. { echo "$as_me:$LINENO: WARNING: search.h: proceeding with the compiler's result" >&5
  10084. echo "$as_me: WARNING: search.h: proceeding with the compiler's result" >&2;}
  10085. ac_header_preproc=yes
  10086. ;;
  10087. no:yes:* )
  10088. { echo "$as_me:$LINENO: WARNING: search.h: present but cannot be compiled" >&5
  10089. echo "$as_me: WARNING: search.h: present but cannot be compiled" >&2;}
  10090. { echo "$as_me:$LINENO: WARNING: search.h: check for missing prerequisite headers?" >&5
  10091. echo "$as_me: WARNING: search.h: check for missing prerequisite headers?" >&2;}
  10092. { echo "$as_me:$LINENO: WARNING: search.h: see the Autoconf documentation" >&5
  10093. echo "$as_me: WARNING: search.h: see the Autoconf documentation" >&2;}
  10094. { echo "$as_me:$LINENO: WARNING: search.h: section \"Present But Cannot Be Compiled\"" >&5
  10095. echo "$as_me: WARNING: search.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10096. { echo "$as_me:$LINENO: WARNING: search.h: proceeding with the preprocessor's result" >&5
  10097. echo "$as_me: WARNING: search.h: proceeding with the preprocessor's result" >&2;}
  10098. { echo "$as_me:$LINENO: WARNING: search.h: in the future, the compiler will take precedence" >&5
  10099. echo "$as_me: WARNING: search.h: in the future, the compiler will take precedence" >&2;}
  10100. ;;
  10101. esac
  10102. { echo "$as_me:$LINENO: checking for search.h" >&5
  10103. echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
  10104. if test "${ac_cv_header_search_h+set}" = set; then
  10105. echo $ECHO_N "(cached) $ECHO_C" >&6
  10106. else
  10107. ac_cv_header_search_h=$ac_header_preproc
  10108. fi
  10109. { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
  10110. echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
  10111. fi
  10112. if test $ac_cv_header_search_h = yes; then
  10113. { echo "$as_me:$LINENO: checking C header file <search.h> for function tsearch()" >&5
  10114. echo $ECHO_N "checking C header file <search.h> for function tsearch()... $ECHO_C" >&6; }
  10115. cat >conftest.$ac_ext <<_ACEOF
  10116. /* confdefs.h. */
  10117. _ACEOF
  10118. cat confdefs.h >>conftest.$ac_ext
  10119. cat >>conftest.$ac_ext <<_ACEOF
  10120. /* end confdefs.h. */
  10121. #include <search.h>
  10122. extern struct {int a; int b;} *tsearch();
  10123. int
  10124. main ()
  10125. {
  10126. ;
  10127. return 0;
  10128. }
  10129. _ACEOF
  10130. rm -f conftest.$ac_objext
  10131. if { (ac_try="$ac_compile"
  10132. case "(($ac_try" in
  10133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10134. *) ac_try_echo=$ac_try;;
  10135. esac
  10136. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10137. (eval "$ac_compile") 2>conftest.er1
  10138. ac_status=$?
  10139. grep -v '^ *+' conftest.er1 >conftest.err
  10140. rm -f conftest.er1
  10141. cat conftest.err >&5
  10142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10143. (exit $ac_status); } && {
  10144. test -z "$ac_c_werror_flag" ||
  10145. test ! -s conftest.err
  10146. } && test -s conftest.$ac_objext; then
  10147. { echo "$as_me:$LINENO: result: undeclared" >&5
  10148. echo "${ECHO_T}undeclared" >&6; }
  10149. UD_NO_TSEARCH_DECL="1"
  10150. cat >>confdefs.h <<\_ACEOF
  10151. #define UD_NO_TSEARCH_DECL 1
  10152. _ACEOF
  10153. else
  10154. echo "$as_me: failed program was:" >&5
  10155. sed 's/^/| /' conftest.$ac_ext >&5
  10156. { echo "$as_me:$LINENO: result: declared" >&5
  10157. echo "${ECHO_T}declared" >&6; }
  10158. fi
  10159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10160. else
  10161. UD_NO_TSEARCH_DECL="1"
  10162. cat >>confdefs.h <<\_ACEOF
  10163. #define UD_NO_TSEARCH_DECL 1
  10164. _ACEOF
  10165. fi
  10166. for ac_func in tfind
  10167. do
  10168. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10169. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10170. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10171. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10172. echo $ECHO_N "(cached) $ECHO_C" >&6
  10173. else
  10174. cat >conftest.$ac_ext <<_ACEOF
  10175. /* confdefs.h. */
  10176. _ACEOF
  10177. cat confdefs.h >>conftest.$ac_ext
  10178. cat >>conftest.$ac_ext <<_ACEOF
  10179. /* end confdefs.h. */
  10180. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10181. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10182. #define $ac_func innocuous_$ac_func
  10183. /* System header to define __stub macros and hopefully few prototypes,
  10184. which can conflict with char $ac_func (); below.
  10185. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10186. <limits.h> exists even on freestanding compilers. */
  10187. #ifdef __STDC__
  10188. # include <limits.h>
  10189. #else
  10190. # include <assert.h>
  10191. #endif
  10192. #undef $ac_func
  10193. /* Override any GCC internal prototype to avoid an error.
  10194. Use char because int might match the return type of a GCC
  10195. builtin and then its argument prototype would still apply. */
  10196. #ifdef __cplusplus
  10197. extern "C"
  10198. #endif
  10199. char $ac_func ();
  10200. /* The GNU C library defines this for functions which it implements
  10201. to always fail with ENOSYS. Some functions are actually named
  10202. something starting with __ and the normal name is an alias. */
  10203. #if defined __stub_$ac_func || defined __stub___$ac_func
  10204. choke me
  10205. #endif
  10206. int
  10207. main ()
  10208. {
  10209. return $ac_func ();
  10210. ;
  10211. return 0;
  10212. }
  10213. _ACEOF
  10214. rm -f conftest.$ac_objext conftest$ac_exeext
  10215. if { (ac_try="$ac_link"
  10216. case "(($ac_try" in
  10217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10218. *) ac_try_echo=$ac_try;;
  10219. esac
  10220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10221. (eval "$ac_link") 2>conftest.er1
  10222. ac_status=$?
  10223. grep -v '^ *+' conftest.er1 >conftest.err
  10224. rm -f conftest.er1
  10225. cat conftest.err >&5
  10226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10227. (exit $ac_status); } && {
  10228. test -z "$ac_c_werror_flag" ||
  10229. test ! -s conftest.err
  10230. } && test -s conftest$ac_exeext &&
  10231. $as_test_x conftest$ac_exeext; then
  10232. eval "$as_ac_var=yes"
  10233. else
  10234. echo "$as_me: failed program was:" >&5
  10235. sed 's/^/| /' conftest.$ac_ext >&5
  10236. eval "$as_ac_var=no"
  10237. fi
  10238. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10239. conftest$ac_exeext conftest.$ac_ext
  10240. fi
  10241. ac_res=`eval echo '${'$as_ac_var'}'`
  10242. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10243. echo "${ECHO_T}$ac_res" >&6; }
  10244. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10245. cat >>confdefs.h <<_ACEOF
  10246. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10247. _ACEOF
  10248. else
  10249. case " $LIBOBJS " in
  10250. *" $ac_func.$ac_objext "* ) ;;
  10251. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  10252. ;;
  10253. esac
  10254. fi
  10255. done
  10256. if test "${ac_cv_header_search_h+set}" = set; then
  10257. { echo "$as_me:$LINENO: checking for search.h" >&5
  10258. echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
  10259. if test "${ac_cv_header_search_h+set}" = set; then
  10260. echo $ECHO_N "(cached) $ECHO_C" >&6
  10261. fi
  10262. { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
  10263. echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
  10264. else
  10265. # Is the header compilable?
  10266. { echo "$as_me:$LINENO: checking search.h usability" >&5
  10267. echo $ECHO_N "checking search.h usability... $ECHO_C" >&6; }
  10268. cat >conftest.$ac_ext <<_ACEOF
  10269. /* confdefs.h. */
  10270. _ACEOF
  10271. cat confdefs.h >>conftest.$ac_ext
  10272. cat >>conftest.$ac_ext <<_ACEOF
  10273. /* end confdefs.h. */
  10274. $ac_includes_default
  10275. #include <search.h>
  10276. _ACEOF
  10277. rm -f conftest.$ac_objext
  10278. if { (ac_try="$ac_compile"
  10279. case "(($ac_try" in
  10280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10281. *) ac_try_echo=$ac_try;;
  10282. esac
  10283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10284. (eval "$ac_compile") 2>conftest.er1
  10285. ac_status=$?
  10286. grep -v '^ *+' conftest.er1 >conftest.err
  10287. rm -f conftest.er1
  10288. cat conftest.err >&5
  10289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10290. (exit $ac_status); } && {
  10291. test -z "$ac_c_werror_flag" ||
  10292. test ! -s conftest.err
  10293. } && test -s conftest.$ac_objext; then
  10294. ac_header_compiler=yes
  10295. else
  10296. echo "$as_me: failed program was:" >&5
  10297. sed 's/^/| /' conftest.$ac_ext >&5
  10298. ac_header_compiler=no
  10299. fi
  10300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10301. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10302. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10303. # Is the header present?
  10304. { echo "$as_me:$LINENO: checking search.h presence" >&5
  10305. echo $ECHO_N "checking search.h presence... $ECHO_C" >&6; }
  10306. cat >conftest.$ac_ext <<_ACEOF
  10307. /* confdefs.h. */
  10308. _ACEOF
  10309. cat confdefs.h >>conftest.$ac_ext
  10310. cat >>conftest.$ac_ext <<_ACEOF
  10311. /* end confdefs.h. */
  10312. #include <search.h>
  10313. _ACEOF
  10314. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10315. case "(($ac_try" in
  10316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10317. *) ac_try_echo=$ac_try;;
  10318. esac
  10319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10320. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10321. ac_status=$?
  10322. grep -v '^ *+' conftest.er1 >conftest.err
  10323. rm -f conftest.er1
  10324. cat conftest.err >&5
  10325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10326. (exit $ac_status); } >/dev/null && {
  10327. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10328. test ! -s conftest.err
  10329. }; then
  10330. ac_header_preproc=yes
  10331. else
  10332. echo "$as_me: failed program was:" >&5
  10333. sed 's/^/| /' conftest.$ac_ext >&5
  10334. ac_header_preproc=no
  10335. fi
  10336. rm -f conftest.err conftest.$ac_ext
  10337. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10338. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10339. # So? What about this header?
  10340. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10341. yes:no: )
  10342. { echo "$as_me:$LINENO: WARNING: search.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10343. echo "$as_me: WARNING: search.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10344. { echo "$as_me:$LINENO: WARNING: search.h: proceeding with the compiler's result" >&5
  10345. echo "$as_me: WARNING: search.h: proceeding with the compiler's result" >&2;}
  10346. ac_header_preproc=yes
  10347. ;;
  10348. no:yes:* )
  10349. { echo "$as_me:$LINENO: WARNING: search.h: present but cannot be compiled" >&5
  10350. echo "$as_me: WARNING: search.h: present but cannot be compiled" >&2;}
  10351. { echo "$as_me:$LINENO: WARNING: search.h: check for missing prerequisite headers?" >&5
  10352. echo "$as_me: WARNING: search.h: check for missing prerequisite headers?" >&2;}
  10353. { echo "$as_me:$LINENO: WARNING: search.h: see the Autoconf documentation" >&5
  10354. echo "$as_me: WARNING: search.h: see the Autoconf documentation" >&2;}
  10355. { echo "$as_me:$LINENO: WARNING: search.h: section \"Present But Cannot Be Compiled\"" >&5
  10356. echo "$as_me: WARNING: search.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10357. { echo "$as_me:$LINENO: WARNING: search.h: proceeding with the preprocessor's result" >&5
  10358. echo "$as_me: WARNING: search.h: proceeding with the preprocessor's result" >&2;}
  10359. { echo "$as_me:$LINENO: WARNING: search.h: in the future, the compiler will take precedence" >&5
  10360. echo "$as_me: WARNING: search.h: in the future, the compiler will take precedence" >&2;}
  10361. ;;
  10362. esac
  10363. { echo "$as_me:$LINENO: checking for search.h" >&5
  10364. echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
  10365. if test "${ac_cv_header_search_h+set}" = set; then
  10366. echo $ECHO_N "(cached) $ECHO_C" >&6
  10367. else
  10368. ac_cv_header_search_h=$ac_header_preproc
  10369. fi
  10370. { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
  10371. echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
  10372. fi
  10373. if test $ac_cv_header_search_h = yes; then
  10374. { echo "$as_me:$LINENO: checking C header file <search.h> for function tfind()" >&5
  10375. echo $ECHO_N "checking C header file <search.h> for function tfind()... $ECHO_C" >&6; }
  10376. cat >conftest.$ac_ext <<_ACEOF
  10377. /* confdefs.h. */
  10378. _ACEOF
  10379. cat confdefs.h >>conftest.$ac_ext
  10380. cat >>conftest.$ac_ext <<_ACEOF
  10381. /* end confdefs.h. */
  10382. #include <search.h>
  10383. extern struct {int a; int b;} *tfind();
  10384. int
  10385. main ()
  10386. {
  10387. ;
  10388. return 0;
  10389. }
  10390. _ACEOF
  10391. rm -f conftest.$ac_objext
  10392. if { (ac_try="$ac_compile"
  10393. case "(($ac_try" in
  10394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10395. *) ac_try_echo=$ac_try;;
  10396. esac
  10397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10398. (eval "$ac_compile") 2>conftest.er1
  10399. ac_status=$?
  10400. grep -v '^ *+' conftest.er1 >conftest.err
  10401. rm -f conftest.er1
  10402. cat conftest.err >&5
  10403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10404. (exit $ac_status); } && {
  10405. test -z "$ac_c_werror_flag" ||
  10406. test ! -s conftest.err
  10407. } && test -s conftest.$ac_objext; then
  10408. { echo "$as_me:$LINENO: result: undeclared" >&5
  10409. echo "${ECHO_T}undeclared" >&6; }
  10410. UD_NO_TFIND_DECL="1"
  10411. cat >>confdefs.h <<\_ACEOF
  10412. #define UD_NO_TFIND_DECL 1
  10413. _ACEOF
  10414. else
  10415. echo "$as_me: failed program was:" >&5
  10416. sed 's/^/| /' conftest.$ac_ext >&5
  10417. { echo "$as_me:$LINENO: result: declared" >&5
  10418. echo "${ECHO_T}declared" >&6; }
  10419. fi
  10420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10421. else
  10422. UD_NO_TFIND_DECL="1"
  10423. cat >>confdefs.h <<\_ACEOF
  10424. #define UD_NO_TFIND_DECL 1
  10425. _ACEOF
  10426. fi
  10427. for ac_func in tdelete
  10428. do
  10429. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10430. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10431. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10432. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10433. echo $ECHO_N "(cached) $ECHO_C" >&6
  10434. else
  10435. cat >conftest.$ac_ext <<_ACEOF
  10436. /* confdefs.h. */
  10437. _ACEOF
  10438. cat confdefs.h >>conftest.$ac_ext
  10439. cat >>conftest.$ac_ext <<_ACEOF
  10440. /* end confdefs.h. */
  10441. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10442. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10443. #define $ac_func innocuous_$ac_func
  10444. /* System header to define __stub macros and hopefully few prototypes,
  10445. which can conflict with char $ac_func (); below.
  10446. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10447. <limits.h> exists even on freestanding compilers. */
  10448. #ifdef __STDC__
  10449. # include <limits.h>
  10450. #else
  10451. # include <assert.h>
  10452. #endif
  10453. #undef $ac_func
  10454. /* Override any GCC internal prototype to avoid an error.
  10455. Use char because int might match the return type of a GCC
  10456. builtin and then its argument prototype would still apply. */
  10457. #ifdef __cplusplus
  10458. extern "C"
  10459. #endif
  10460. char $ac_func ();
  10461. /* The GNU C library defines this for functions which it implements
  10462. to always fail with ENOSYS. Some functions are actually named
  10463. something starting with __ and the normal name is an alias. */
  10464. #if defined __stub_$ac_func || defined __stub___$ac_func
  10465. choke me
  10466. #endif
  10467. int
  10468. main ()
  10469. {
  10470. return $ac_func ();
  10471. ;
  10472. return 0;
  10473. }
  10474. _ACEOF
  10475. rm -f conftest.$ac_objext conftest$ac_exeext
  10476. if { (ac_try="$ac_link"
  10477. case "(($ac_try" in
  10478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10479. *) ac_try_echo=$ac_try;;
  10480. esac
  10481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10482. (eval "$ac_link") 2>conftest.er1
  10483. ac_status=$?
  10484. grep -v '^ *+' conftest.er1 >conftest.err
  10485. rm -f conftest.er1
  10486. cat conftest.err >&5
  10487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10488. (exit $ac_status); } && {
  10489. test -z "$ac_c_werror_flag" ||
  10490. test ! -s conftest.err
  10491. } && test -s conftest$ac_exeext &&
  10492. $as_test_x conftest$ac_exeext; then
  10493. eval "$as_ac_var=yes"
  10494. else
  10495. echo "$as_me: failed program was:" >&5
  10496. sed 's/^/| /' conftest.$ac_ext >&5
  10497. eval "$as_ac_var=no"
  10498. fi
  10499. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10500. conftest$ac_exeext conftest.$ac_ext
  10501. fi
  10502. ac_res=`eval echo '${'$as_ac_var'}'`
  10503. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10504. echo "${ECHO_T}$ac_res" >&6; }
  10505. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10506. cat >>confdefs.h <<_ACEOF
  10507. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10508. _ACEOF
  10509. else
  10510. case " $LIBOBJS " in
  10511. *" $ac_func.$ac_objext "* ) ;;
  10512. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  10513. ;;
  10514. esac
  10515. fi
  10516. done
  10517. if test "${ac_cv_header_search_h+set}" = set; then
  10518. { echo "$as_me:$LINENO: checking for search.h" >&5
  10519. echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
  10520. if test "${ac_cv_header_search_h+set}" = set; then
  10521. echo $ECHO_N "(cached) $ECHO_C" >&6
  10522. fi
  10523. { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
  10524. echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
  10525. else
  10526. # Is the header compilable?
  10527. { echo "$as_me:$LINENO: checking search.h usability" >&5
  10528. echo $ECHO_N "checking search.h usability... $ECHO_C" >&6; }
  10529. cat >conftest.$ac_ext <<_ACEOF
  10530. /* confdefs.h. */
  10531. _ACEOF
  10532. cat confdefs.h >>conftest.$ac_ext
  10533. cat >>conftest.$ac_ext <<_ACEOF
  10534. /* end confdefs.h. */
  10535. $ac_includes_default
  10536. #include <search.h>
  10537. _ACEOF
  10538. rm -f conftest.$ac_objext
  10539. if { (ac_try="$ac_compile"
  10540. case "(($ac_try" in
  10541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10542. *) ac_try_echo=$ac_try;;
  10543. esac
  10544. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10545. (eval "$ac_compile") 2>conftest.er1
  10546. ac_status=$?
  10547. grep -v '^ *+' conftest.er1 >conftest.err
  10548. rm -f conftest.er1
  10549. cat conftest.err >&5
  10550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10551. (exit $ac_status); } && {
  10552. test -z "$ac_c_werror_flag" ||
  10553. test ! -s conftest.err
  10554. } && test -s conftest.$ac_objext; then
  10555. ac_header_compiler=yes
  10556. else
  10557. echo "$as_me: failed program was:" >&5
  10558. sed 's/^/| /' conftest.$ac_ext >&5
  10559. ac_header_compiler=no
  10560. fi
  10561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10562. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10563. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10564. # Is the header present?
  10565. { echo "$as_me:$LINENO: checking search.h presence" >&5
  10566. echo $ECHO_N "checking search.h presence... $ECHO_C" >&6; }
  10567. cat >conftest.$ac_ext <<_ACEOF
  10568. /* confdefs.h. */
  10569. _ACEOF
  10570. cat confdefs.h >>conftest.$ac_ext
  10571. cat >>conftest.$ac_ext <<_ACEOF
  10572. /* end confdefs.h. */
  10573. #include <search.h>
  10574. _ACEOF
  10575. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10576. case "(($ac_try" in
  10577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10578. *) ac_try_echo=$ac_try;;
  10579. esac
  10580. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10581. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10582. ac_status=$?
  10583. grep -v '^ *+' conftest.er1 >conftest.err
  10584. rm -f conftest.er1
  10585. cat conftest.err >&5
  10586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10587. (exit $ac_status); } >/dev/null && {
  10588. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10589. test ! -s conftest.err
  10590. }; then
  10591. ac_header_preproc=yes
  10592. else
  10593. echo "$as_me: failed program was:" >&5
  10594. sed 's/^/| /' conftest.$ac_ext >&5
  10595. ac_header_preproc=no
  10596. fi
  10597. rm -f conftest.err conftest.$ac_ext
  10598. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10599. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10600. # So? What about this header?
  10601. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10602. yes:no: )
  10603. { echo "$as_me:$LINENO: WARNING: search.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10604. echo "$as_me: WARNING: search.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10605. { echo "$as_me:$LINENO: WARNING: search.h: proceeding with the compiler's result" >&5
  10606. echo "$as_me: WARNING: search.h: proceeding with the compiler's result" >&2;}
  10607. ac_header_preproc=yes
  10608. ;;
  10609. no:yes:* )
  10610. { echo "$as_me:$LINENO: WARNING: search.h: present but cannot be compiled" >&5
  10611. echo "$as_me: WARNING: search.h: present but cannot be compiled" >&2;}
  10612. { echo "$as_me:$LINENO: WARNING: search.h: check for missing prerequisite headers?" >&5
  10613. echo "$as_me: WARNING: search.h: check for missing prerequisite headers?" >&2;}
  10614. { echo "$as_me:$LINENO: WARNING: search.h: see the Autoconf documentation" >&5
  10615. echo "$as_me: WARNING: search.h: see the Autoconf documentation" >&2;}
  10616. { echo "$as_me:$LINENO: WARNING: search.h: section \"Present But Cannot Be Compiled\"" >&5
  10617. echo "$as_me: WARNING: search.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10618. { echo "$as_me:$LINENO: WARNING: search.h: proceeding with the preprocessor's result" >&5
  10619. echo "$as_me: WARNING: search.h: proceeding with the preprocessor's result" >&2;}
  10620. { echo "$as_me:$LINENO: WARNING: search.h: in the future, the compiler will take precedence" >&5
  10621. echo "$as_me: WARNING: search.h: in the future, the compiler will take precedence" >&2;}
  10622. ;;
  10623. esac
  10624. { echo "$as_me:$LINENO: checking for search.h" >&5
  10625. echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
  10626. if test "${ac_cv_header_search_h+set}" = set; then
  10627. echo $ECHO_N "(cached) $ECHO_C" >&6
  10628. else
  10629. ac_cv_header_search_h=$ac_header_preproc
  10630. fi
  10631. { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
  10632. echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
  10633. fi
  10634. if test $ac_cv_header_search_h = yes; then
  10635. { echo "$as_me:$LINENO: checking C header file <search.h> for function tdelete()" >&5
  10636. echo $ECHO_N "checking C header file <search.h> for function tdelete()... $ECHO_C" >&6; }
  10637. cat >conftest.$ac_ext <<_ACEOF
  10638. /* confdefs.h. */
  10639. _ACEOF
  10640. cat confdefs.h >>conftest.$ac_ext
  10641. cat >>conftest.$ac_ext <<_ACEOF
  10642. /* end confdefs.h. */
  10643. #include <search.h>
  10644. extern struct {int a; int b;} *tdelete();
  10645. int
  10646. main ()
  10647. {
  10648. ;
  10649. return 0;
  10650. }
  10651. _ACEOF
  10652. rm -f conftest.$ac_objext
  10653. if { (ac_try="$ac_compile"
  10654. case "(($ac_try" in
  10655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10656. *) ac_try_echo=$ac_try;;
  10657. esac
  10658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10659. (eval "$ac_compile") 2>conftest.er1
  10660. ac_status=$?
  10661. grep -v '^ *+' conftest.er1 >conftest.err
  10662. rm -f conftest.er1
  10663. cat conftest.err >&5
  10664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10665. (exit $ac_status); } && {
  10666. test -z "$ac_c_werror_flag" ||
  10667. test ! -s conftest.err
  10668. } && test -s conftest.$ac_objext; then
  10669. { echo "$as_me:$LINENO: result: undeclared" >&5
  10670. echo "${ECHO_T}undeclared" >&6; }
  10671. UD_NO_TDELETE_DECL="1"
  10672. cat >>confdefs.h <<\_ACEOF
  10673. #define UD_NO_TDELETE_DECL 1
  10674. _ACEOF
  10675. else
  10676. echo "$as_me: failed program was:" >&5
  10677. sed 's/^/| /' conftest.$ac_ext >&5
  10678. { echo "$as_me:$LINENO: result: declared" >&5
  10679. echo "${ECHO_T}declared" >&6; }
  10680. fi
  10681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10682. else
  10683. UD_NO_TDELETE_DECL="1"
  10684. cat >>confdefs.h <<\_ACEOF
  10685. #define UD_NO_TDELETE_DECL 1
  10686. _ACEOF
  10687. fi
  10688. for ac_func in twalk
  10689. do
  10690. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10691. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10692. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10693. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10694. echo $ECHO_N "(cached) $ECHO_C" >&6
  10695. else
  10696. cat >conftest.$ac_ext <<_ACEOF
  10697. /* confdefs.h. */
  10698. _ACEOF
  10699. cat confdefs.h >>conftest.$ac_ext
  10700. cat >>conftest.$ac_ext <<_ACEOF
  10701. /* end confdefs.h. */
  10702. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10703. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10704. #define $ac_func innocuous_$ac_func
  10705. /* System header to define __stub macros and hopefully few prototypes,
  10706. which can conflict with char $ac_func (); below.
  10707. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10708. <limits.h> exists even on freestanding compilers. */
  10709. #ifdef __STDC__
  10710. # include <limits.h>
  10711. #else
  10712. # include <assert.h>
  10713. #endif
  10714. #undef $ac_func
  10715. /* Override any GCC internal prototype to avoid an error.
  10716. Use char because int might match the return type of a GCC
  10717. builtin and then its argument prototype would still apply. */
  10718. #ifdef __cplusplus
  10719. extern "C"
  10720. #endif
  10721. char $ac_func ();
  10722. /* The GNU C library defines this for functions which it implements
  10723. to always fail with ENOSYS. Some functions are actually named
  10724. something starting with __ and the normal name is an alias. */
  10725. #if defined __stub_$ac_func || defined __stub___$ac_func
  10726. choke me
  10727. #endif
  10728. int
  10729. main ()
  10730. {
  10731. return $ac_func ();
  10732. ;
  10733. return 0;
  10734. }
  10735. _ACEOF
  10736. rm -f conftest.$ac_objext conftest$ac_exeext
  10737. if { (ac_try="$ac_link"
  10738. case "(($ac_try" in
  10739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10740. *) ac_try_echo=$ac_try;;
  10741. esac
  10742. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10743. (eval "$ac_link") 2>conftest.er1
  10744. ac_status=$?
  10745. grep -v '^ *+' conftest.er1 >conftest.err
  10746. rm -f conftest.er1
  10747. cat conftest.err >&5
  10748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10749. (exit $ac_status); } && {
  10750. test -z "$ac_c_werror_flag" ||
  10751. test ! -s conftest.err
  10752. } && test -s conftest$ac_exeext &&
  10753. $as_test_x conftest$ac_exeext; then
  10754. eval "$as_ac_var=yes"
  10755. else
  10756. echo "$as_me: failed program was:" >&5
  10757. sed 's/^/| /' conftest.$ac_ext >&5
  10758. eval "$as_ac_var=no"
  10759. fi
  10760. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10761. conftest$ac_exeext conftest.$ac_ext
  10762. fi
  10763. ac_res=`eval echo '${'$as_ac_var'}'`
  10764. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10765. echo "${ECHO_T}$ac_res" >&6; }
  10766. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10767. cat >>confdefs.h <<_ACEOF
  10768. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10769. _ACEOF
  10770. else
  10771. case " $LIBOBJS " in
  10772. *" $ac_func.$ac_objext "* ) ;;
  10773. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  10774. ;;
  10775. esac
  10776. fi
  10777. done
  10778. if test "${ac_cv_header_search_h+set}" = set; then
  10779. { echo "$as_me:$LINENO: checking for search.h" >&5
  10780. echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
  10781. if test "${ac_cv_header_search_h+set}" = set; then
  10782. echo $ECHO_N "(cached) $ECHO_C" >&6
  10783. fi
  10784. { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
  10785. echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
  10786. else
  10787. # Is the header compilable?
  10788. { echo "$as_me:$LINENO: checking search.h usability" >&5
  10789. echo $ECHO_N "checking search.h usability... $ECHO_C" >&6; }
  10790. cat >conftest.$ac_ext <<_ACEOF
  10791. /* confdefs.h. */
  10792. _ACEOF
  10793. cat confdefs.h >>conftest.$ac_ext
  10794. cat >>conftest.$ac_ext <<_ACEOF
  10795. /* end confdefs.h. */
  10796. $ac_includes_default
  10797. #include <search.h>
  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_header_compiler=yes
  10817. else
  10818. echo "$as_me: failed program was:" >&5
  10819. sed 's/^/| /' conftest.$ac_ext >&5
  10820. ac_header_compiler=no
  10821. fi
  10822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10823. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10824. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10825. # Is the header present?
  10826. { echo "$as_me:$LINENO: checking search.h presence" >&5
  10827. echo $ECHO_N "checking search.h presence... $ECHO_C" >&6; }
  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 <search.h>
  10835. _ACEOF
  10836. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10837. case "(($ac_try" in
  10838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10839. *) ac_try_echo=$ac_try;;
  10840. esac
  10841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10842. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10843. ac_status=$?
  10844. grep -v '^ *+' conftest.er1 >conftest.err
  10845. rm -f conftest.er1
  10846. cat conftest.err >&5
  10847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10848. (exit $ac_status); } >/dev/null && {
  10849. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10850. test ! -s conftest.err
  10851. }; then
  10852. ac_header_preproc=yes
  10853. else
  10854. echo "$as_me: failed program was:" >&5
  10855. sed 's/^/| /' conftest.$ac_ext >&5
  10856. ac_header_preproc=no
  10857. fi
  10858. rm -f conftest.err conftest.$ac_ext
  10859. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10860. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10861. # So? What about this header?
  10862. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10863. yes:no: )
  10864. { echo "$as_me:$LINENO: WARNING: search.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10865. echo "$as_me: WARNING: search.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10866. { echo "$as_me:$LINENO: WARNING: search.h: proceeding with the compiler's result" >&5
  10867. echo "$as_me: WARNING: search.h: proceeding with the compiler's result" >&2;}
  10868. ac_header_preproc=yes
  10869. ;;
  10870. no:yes:* )
  10871. { echo "$as_me:$LINENO: WARNING: search.h: present but cannot be compiled" >&5
  10872. echo "$as_me: WARNING: search.h: present but cannot be compiled" >&2;}
  10873. { echo "$as_me:$LINENO: WARNING: search.h: check for missing prerequisite headers?" >&5
  10874. echo "$as_me: WARNING: search.h: check for missing prerequisite headers?" >&2;}
  10875. { echo "$as_me:$LINENO: WARNING: search.h: see the Autoconf documentation" >&5
  10876. echo "$as_me: WARNING: search.h: see the Autoconf documentation" >&2;}
  10877. { echo "$as_me:$LINENO: WARNING: search.h: section \"Present But Cannot Be Compiled\"" >&5
  10878. echo "$as_me: WARNING: search.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10879. { echo "$as_me:$LINENO: WARNING: search.h: proceeding with the preprocessor's result" >&5
  10880. echo "$as_me: WARNING: search.h: proceeding with the preprocessor's result" >&2;}
  10881. { echo "$as_me:$LINENO: WARNING: search.h: in the future, the compiler will take precedence" >&5
  10882. echo "$as_me: WARNING: search.h: in the future, the compiler will take precedence" >&2;}
  10883. ;;
  10884. esac
  10885. { echo "$as_me:$LINENO: checking for search.h" >&5
  10886. echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
  10887. if test "${ac_cv_header_search_h+set}" = set; then
  10888. echo $ECHO_N "(cached) $ECHO_C" >&6
  10889. else
  10890. ac_cv_header_search_h=$ac_header_preproc
  10891. fi
  10892. { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
  10893. echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
  10894. fi
  10895. if test $ac_cv_header_search_h = yes; then
  10896. { echo "$as_me:$LINENO: checking C header file <search.h> for function twalk()" >&5
  10897. echo $ECHO_N "checking C header file <search.h> for function twalk()... $ECHO_C" >&6; }
  10898. cat >conftest.$ac_ext <<_ACEOF
  10899. /* confdefs.h. */
  10900. _ACEOF
  10901. cat confdefs.h >>conftest.$ac_ext
  10902. cat >>conftest.$ac_ext <<_ACEOF
  10903. /* end confdefs.h. */
  10904. #include <search.h>
  10905. extern struct {int a; int b;} *twalk();
  10906. int
  10907. main ()
  10908. {
  10909. ;
  10910. return 0;
  10911. }
  10912. _ACEOF
  10913. rm -f conftest.$ac_objext
  10914. if { (ac_try="$ac_compile"
  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_compile") 2>conftest.er1
  10921. ac_status=$?
  10922. grep -v '^ *+' conftest.er1 >conftest.err
  10923. rm -f conftest.er1
  10924. cat conftest.err >&5
  10925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10926. (exit $ac_status); } && {
  10927. test -z "$ac_c_werror_flag" ||
  10928. test ! -s conftest.err
  10929. } && test -s conftest.$ac_objext; then
  10930. { echo "$as_me:$LINENO: result: undeclared" >&5
  10931. echo "${ECHO_T}undeclared" >&6; }
  10932. UD_NO_TWALK_DECL="1"
  10933. cat >>confdefs.h <<\_ACEOF
  10934. #define UD_NO_TWALK_DECL 1
  10935. _ACEOF
  10936. else
  10937. echo "$as_me: failed program was:" >&5
  10938. sed 's/^/| /' conftest.$ac_ext >&5
  10939. { echo "$as_me:$LINENO: result: declared" >&5
  10940. echo "${ECHO_T}declared" >&6; }
  10941. fi
  10942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10943. else
  10944. UD_NO_TWALK_DECL="1"
  10945. cat >>confdefs.h <<\_ACEOF
  10946. #define UD_NO_TWALK_DECL 1
  10947. _ACEOF
  10948. fi
  10949. case "${PERL-unset}" in
  10950. unset)
  10951. for ac_prog in perl
  10952. do
  10953. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10954. set dummy $ac_prog; ac_word=$2
  10955. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  10956. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  10957. if test "${ac_cv_prog_PERL+set}" = set; then
  10958. echo $ECHO_N "(cached) $ECHO_C" >&6
  10959. else
  10960. if test -n "$PERL"; then
  10961. ac_cv_prog_PERL="$PERL" # Let the user override the test.
  10962. else
  10963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10964. for as_dir in $PATH
  10965. do
  10966. IFS=$as_save_IFS
  10967. test -z "$as_dir" && as_dir=.
  10968. for ac_exec_ext in '' $ac_executable_extensions; do
  10969. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10970. ac_cv_prog_PERL="$ac_prog"
  10971. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10972. break 2
  10973. fi
  10974. done
  10975. done
  10976. IFS=$as_save_IFS
  10977. fi
  10978. fi
  10979. PERL=$ac_cv_prog_PERL
  10980. if test -n "$PERL"; then
  10981. { echo "$as_me:$LINENO: result: $PERL" >&5
  10982. echo "${ECHO_T}$PERL" >&6; }
  10983. else
  10984. { echo "$as_me:$LINENO: result: no" >&5
  10985. echo "${ECHO_T}no" >&6; }
  10986. fi
  10987. test -n "$PERL" && break
  10988. done
  10989. case "$PERL" in
  10990. '') echo "PERL:perl utility:/usr/local/bin/perl" >> confdefs.missing
  10991. ;;
  10992. *)
  10993. ;;
  10994. esac
  10995. ;;
  10996. *)
  10997. { echo "$as_me:$LINENO: checking for perl utility" >&5
  10998. echo $ECHO_N "checking for perl utility... $ECHO_C" >&6; }
  10999. { echo "$as_me:$LINENO: result: $PERL" >&5
  11000. echo "${ECHO_T}$PERL" >&6; }
  11001. ;;
  11002. esac
  11003. { echo "$as_me:$LINENO: checking for type of perl executable to create" >&5
  11004. echo $ECHO_N "checking for type of perl executable to create... $ECHO_C" >&6; }
  11005. case ${LINKTYPE-unset} in
  11006. unset)
  11007. case `uname -s` in
  11008. ULTRIX)
  11009. LINKTYPE=static
  11010. ;;
  11011. *)
  11012. LINKTYPE=dynamic
  11013. ;;
  11014. esac
  11015. ;;
  11016. esac
  11017. { echo "$as_me:$LINENO: result: $LINKTYPE" >&5
  11018. echo "${ECHO_T}$LINKTYPE" >&6; }
  11019. { echo "$as_me:$LINENO: checking for position-independent compilation flags" >&5
  11020. echo $ECHO_N "checking for position-independent compilation flags... $ECHO_C" >&6; }
  11021. picflag=
  11022. case `uname -s` in
  11023. HP-UX)
  11024. picflag=+z
  11025. ;;
  11026. esac
  11027. case "$picflag" in
  11028. '')
  11029. { echo "$as_me:$LINENO: result: ''" >&5
  11030. echo "${ECHO_T}''" >&6; }
  11031. ;;
  11032. *)
  11033. { echo "$as_me:$LINENO: result: $picflag" >&5
  11034. echo "${ECHO_T}$picflag" >&6; }
  11035. for arg in $picflag; do
  11036. case "$CFLAGS" in
  11037. *$arg*)
  11038. ;;
  11039. *)
  11040. CFLAGS="${CFLAGS-} $arg"
  11041. ;;
  11042. esac
  11043. done
  11044. for arg in $picflag; do
  11045. case "$FFLAGS" in
  11046. *$arg*)
  11047. ;;
  11048. *)
  11049. FFLAGS="${FFLAGS-} $arg"
  11050. ;;
  11051. esac
  11052. done
  11053. for arg in $picflag; do
  11054. case "$CXXFLAGS" in
  11055. *$arg*)
  11056. ;;
  11057. *)
  11058. CXXFLAGS="${CXXFLAGS-} $arg"
  11059. ;;
  11060. esac
  11061. done
  11062. ;;
  11063. esac
  11064. case "${PERL}" in
  11065. '')
  11066. PERL_ALL=
  11067. PERL_TEST=
  11068. PERL_INSTALL=
  11069. PERL_CLEAN=
  11070. PERL_DISTCLEAN=
  11071. PERL_MANUAL=
  11072. ;;
  11073. *)
  11074. case "$LINKTYPE" in
  11075. static)
  11076. PERL_ALL=perl/perl
  11077. PERL_INSTALL=perl/inst_perl
  11078. ;;
  11079. *)
  11080. PERL_ALL=perl/dynamic
  11081. PERL_INSTALL=perl/install
  11082. ;;
  11083. esac
  11084. PERL_TEST=perl/test
  11085. PERL_CLEAN=perl/clean
  11086. PERL_DISTCLEAN=perl/distclean
  11087. PERL_MANUAL=udunitsperl.1
  11088. ;;
  11089. esac
  11090. FTPDIR=${FTPDIR-/web/ftp/pub}/udunits
  11091. if test -s confdefs.missing; then
  11092. echo
  11093. echo "$0: ERROR: The following variables need values:"
  11094. echo
  11095. awk -F: 'BEGIN {printf "%-13s%-27s%s\n", "VARIABLE", "DESCRIPTION", "EXAMPLE";
  11096. printf "%-13s%-27s%s\n", "--------", "-------", "-------"}
  11097. {printf "%-13s%-27s%s\n", $1, $2, $3}' confdefs.missing
  11098. if test -t 0 -a -t 1; then
  11099. cat << \UD_CAT_EOF
  11100. For each variable above, this script will now request that you input
  11101. a value appropriate for your system (note that this value will not
  11102. be interpolated by a shell -- so don't use shell substitutions).
  11103. Alternatively, you can interrupt this script, set the above variables
  11104. in the environment or in the file CUSTOMIZE, and then re-execute this
  11105. script. (Variables referring to executable programs needn't be set if
  11106. the relevant directory is added to PATH. See file INSTALL for details.)
  11107. UD_CAT_EOF
  11108. saveifs="$IFS"; IFS=:
  11109. while read variable description example; do
  11110. echo "Enter a value for the $description (e.g. \"$example\"):" >/dev/tty
  11111. read value </dev/tty
  11112. echo "$variable='$value'"
  11113. echo >/dev/tty
  11114. done <confdefs.missing >conf.assigns
  11115. IFS="$saveifs"
  11116. . ./conf.assigns
  11117. rm -f conf.assigns
  11118. else
  11119. cat << UD_CAT_EOF
  11120. The above variables may be set in the environment or in the file
  11121. CUSTOMIZE. Variables referring to executable programs needn't be set
  11122. if the relevant directory is added to PATH. In any case, ./configure
  11123. should probably be rerun. See file INSTALL for details.
  11124. UD_CAT_EOF
  11125. rm confdefs.missing
  11126. exit 1
  11127. fi
  11128. fi
  11129. rm -f confdefs.missing
  11130. ac_config_files="$ac_config_files Makefile lib/Makefile lib/udunits.inc udunits/Makefile perl/Makefile.PL ${CONFIG_FILES-}"
  11131. ac_config_commands="$ac_config_commands default"
  11132. cat >confcache <<\_ACEOF
  11133. # This file is a shell script that caches the results of configure
  11134. # tests run on this system so they can be shared between configure
  11135. # scripts and configure runs, see configure's option --config-cache.
  11136. # It is not useful on other systems. If it contains results you don't
  11137. # want to keep, you may remove or edit it.
  11138. #
  11139. # config.status only pays attention to the cache file if you give it
  11140. # the --recheck option to rerun configure.
  11141. #
  11142. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11143. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11144. # following values.
  11145. _ACEOF
  11146. # The following way of writing the cache mishandles newlines in values,
  11147. # but we know of no workaround that is simple, portable, and efficient.
  11148. # So, we kill variables containing newlines.
  11149. # Ultrix sh set writes to stderr and can't be redirected directly,
  11150. # and sets the high bit in the cache file unless we assign to the vars.
  11151. (
  11152. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11153. eval ac_val=\$$ac_var
  11154. case $ac_val in #(
  11155. *${as_nl}*)
  11156. case $ac_var in #(
  11157. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11158. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11159. esac
  11160. case $ac_var in #(
  11161. _ | IFS | as_nl) ;; #(
  11162. *) $as_unset $ac_var ;;
  11163. esac ;;
  11164. esac
  11165. done
  11166. (set) 2>&1 |
  11167. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11168. *${as_nl}ac_space=\ *)
  11169. # `set' does not quote correctly, so add quotes (double-quote
  11170. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11171. sed -n \
  11172. "s/'/'\\\\''/g;
  11173. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11174. ;; #(
  11175. *)
  11176. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11177. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11178. ;;
  11179. esac |
  11180. sort
  11181. ) |
  11182. sed '
  11183. /^ac_cv_env_/b end
  11184. t clear
  11185. :clear
  11186. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11187. t end
  11188. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11189. :end' >>confcache
  11190. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11191. if test -w "$cache_file"; then
  11192. test "x$cache_file" != "x/dev/null" &&
  11193. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11194. echo "$as_me: updating cache $cache_file" >&6;}
  11195. cat confcache >$cache_file
  11196. else
  11197. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11198. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11199. fi
  11200. fi
  11201. rm -f confcache
  11202. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11203. # Let make expand exec_prefix.
  11204. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11205. DEFS=-DHAVE_CONFIG_H
  11206. ac_libobjs=
  11207. ac_ltlibobjs=
  11208. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11209. # 1. Remove the extension, and $U if already installed.
  11210. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11211. ac_i=`echo "$ac_i" | sed "$ac_script"`
  11212. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11213. # will be set to the directory where LIBOBJS objects are built.
  11214. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11215. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  11216. done
  11217. LIBOBJS=$ac_libobjs
  11218. LTLIBOBJS=$ac_ltlibobjs
  11219. : ${CONFIG_STATUS=./config.status}
  11220. ac_clean_files_save=$ac_clean_files
  11221. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11222. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11223. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11224. cat >$CONFIG_STATUS <<_ACEOF
  11225. #! $SHELL
  11226. # Generated by $as_me.
  11227. # Run this file to recreate the current configuration.
  11228. # Compiler output produced by configure, useful for debugging
  11229. # configure, is in config.log if it exists.
  11230. debug=false
  11231. ac_cs_recheck=false
  11232. ac_cs_silent=false
  11233. SHELL=\${CONFIG_SHELL-$SHELL}
  11234. _ACEOF
  11235. cat >>$CONFIG_STATUS <<\_ACEOF
  11236. ## --------------------- ##
  11237. ## M4sh Initialization. ##
  11238. ## --------------------- ##
  11239. # Be more Bourne compatible
  11240. DUALCASE=1; export DUALCASE # for MKS sh
  11241. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11242. emulate sh
  11243. NULLCMD=:
  11244. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11245. # is contrary to our usage. Disable this feature.
  11246. alias -g '${1+"$@"}'='"$@"'
  11247. setopt NO_GLOB_SUBST
  11248. else
  11249. case `(set -o) 2>/dev/null` in
  11250. *posix*) set -o posix ;;
  11251. esac
  11252. fi
  11253. # PATH needs CR
  11254. # Avoid depending upon Character Ranges.
  11255. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11256. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11257. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11258. as_cr_digits='0123456789'
  11259. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11260. # The user is always right.
  11261. if test "${PATH_SEPARATOR+set}" != set; then
  11262. echo "#! /bin/sh" >conf$$.sh
  11263. echo "exit 0" >>conf$$.sh
  11264. chmod +x conf$$.sh
  11265. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11266. PATH_SEPARATOR=';'
  11267. else
  11268. PATH_SEPARATOR=:
  11269. fi
  11270. rm -f conf$$.sh
  11271. fi
  11272. # Support unset when possible.
  11273. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11274. as_unset=unset
  11275. else
  11276. as_unset=false
  11277. fi
  11278. # IFS
  11279. # We need space, tab and new line, in precisely that order. Quoting is
  11280. # there to prevent editors from complaining about space-tab.
  11281. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11282. # splitting by setting IFS to empty value.)
  11283. as_nl='
  11284. '
  11285. IFS=" "" $as_nl"
  11286. # Find who we are. Look in the path if we contain no directory separator.
  11287. case $0 in
  11288. *[\\/]* ) as_myself=$0 ;;
  11289. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11290. for as_dir in $PATH
  11291. do
  11292. IFS=$as_save_IFS
  11293. test -z "$as_dir" && as_dir=.
  11294. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11295. done
  11296. IFS=$as_save_IFS
  11297. ;;
  11298. esac
  11299. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11300. # in which case we are not to be found in the path.
  11301. if test "x$as_myself" = x; then
  11302. as_myself=$0
  11303. fi
  11304. if test ! -f "$as_myself"; then
  11305. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11306. { (exit 1); exit 1; }
  11307. fi
  11308. # Work around bugs in pre-3.0 UWIN ksh.
  11309. for as_var in ENV MAIL MAILPATH
  11310. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  11311. done
  11312. PS1='$ '
  11313. PS2='> '
  11314. PS4='+ '
  11315. # NLS nuisances.
  11316. for as_var in \
  11317. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11318. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11319. LC_TELEPHONE LC_TIME
  11320. do
  11321. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11322. eval $as_var=C; export $as_var
  11323. else
  11324. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  11325. fi
  11326. done
  11327. # Required to use basename.
  11328. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11329. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11330. as_expr=expr
  11331. else
  11332. as_expr=false
  11333. fi
  11334. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11335. as_basename=basename
  11336. else
  11337. as_basename=false
  11338. fi
  11339. # Name of the executable.
  11340. as_me=`$as_basename -- "$0" ||
  11341. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11342. X"$0" : 'X\(//\)$' \| \
  11343. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11344. echo X/"$0" |
  11345. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11346. s//\1/
  11347. q
  11348. }
  11349. /^X\/\(\/\/\)$/{
  11350. s//\1/
  11351. q
  11352. }
  11353. /^X\/\(\/\).*/{
  11354. s//\1/
  11355. q
  11356. }
  11357. s/.*/./; q'`
  11358. # CDPATH.
  11359. $as_unset CDPATH
  11360. as_lineno_1=$LINENO
  11361. as_lineno_2=$LINENO
  11362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  11364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11365. # uniformly replaced by the line number. The first 'sed' inserts a
  11366. # line-number line after each line using $LINENO; the second 'sed'
  11367. # does the real work. The second script uses 'N' to pair each
  11368. # line-number line with the line containing $LINENO, and appends
  11369. # trailing '-' during substitution so that $LINENO is not a special
  11370. # case at line end.
  11371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  11373. # E. McMahon (1931-1989) for sed's syntax. :-)
  11374. sed -n '
  11375. p
  11376. /[$]LINENO/=
  11377. ' <$as_myself |
  11378. sed '
  11379. s/[$]LINENO.*/&-/
  11380. t lineno
  11381. b
  11382. :lineno
  11383. N
  11384. :loop
  11385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  11386. t loop
  11387. s/-\n.*//
  11388. ' >$as_me.lineno &&
  11389. chmod +x "$as_me.lineno" ||
  11390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  11391. { (exit 1); exit 1; }; }
  11392. # Don't try to exec as it changes $[0], causing all sort of problems
  11393. # (the dirname of $[0] is not the place where we might find the
  11394. # original and so on. Autoconf is especially sensitive to this).
  11395. . "./$as_me.lineno"
  11396. # Exit status is that of the last command.
  11397. exit
  11398. }
  11399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11400. as_dirname=dirname
  11401. else
  11402. as_dirname=false
  11403. fi
  11404. ECHO_C= ECHO_N= ECHO_T=
  11405. case `echo -n x` in
  11406. -n*)
  11407. case `echo 'x\c'` in
  11408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11409. *) ECHO_C='\c';;
  11410. esac;;
  11411. *)
  11412. ECHO_N='-n';;
  11413. esac
  11414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11416. as_expr=expr
  11417. else
  11418. as_expr=false
  11419. fi
  11420. rm -f conf$$ conf$$.exe conf$$.file
  11421. if test -d conf$$.dir; then
  11422. rm -f conf$$.dir/conf$$.file
  11423. else
  11424. rm -f conf$$.dir
  11425. mkdir conf$$.dir
  11426. fi
  11427. echo >conf$$.file
  11428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11429. as_ln_s='ln -s'
  11430. # ... but there are two gotchas:
  11431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11433. # In both cases, we have to default to `cp -p'.
  11434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11435. as_ln_s='cp -p'
  11436. elif ln conf$$.file conf$$ 2>/dev/null; then
  11437. as_ln_s=ln
  11438. else
  11439. as_ln_s='cp -p'
  11440. fi
  11441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11442. rmdir conf$$.dir 2>/dev/null
  11443. if mkdir -p . 2>/dev/null; then
  11444. as_mkdir_p=:
  11445. else
  11446. test -d ./-p && rmdir ./-p
  11447. as_mkdir_p=false
  11448. fi
  11449. if test -x / >/dev/null 2>&1; then
  11450. as_test_x='test -x'
  11451. else
  11452. if ls -dL / >/dev/null 2>&1; then
  11453. as_ls_L_option=L
  11454. else
  11455. as_ls_L_option=
  11456. fi
  11457. as_test_x='
  11458. eval sh -c '\''
  11459. if test -d "$1"; then
  11460. test -d "$1/.";
  11461. else
  11462. case $1 in
  11463. -*)set "./$1";;
  11464. esac;
  11465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  11466. ???[sx]*):;;*)false;;esac;fi
  11467. '\'' sh
  11468. '
  11469. fi
  11470. as_executable_p=$as_test_x
  11471. # Sed expression to map a string onto a valid CPP name.
  11472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11473. # Sed expression to map a string onto a valid variable name.
  11474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11475. exec 6>&1
  11476. # Save the log message, to keep $[0] and so on meaningful, and to
  11477. # report actual input values of CONFIG_FILES etc. instead of their
  11478. # values after options handling.
  11479. ac_log="
  11480. This file was extended by $as_me, which was
  11481. generated by GNU Autoconf 2.61. Invocation command line was
  11482. CONFIG_FILES = $CONFIG_FILES
  11483. CONFIG_HEADERS = $CONFIG_HEADERS
  11484. CONFIG_LINKS = $CONFIG_LINKS
  11485. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11486. $ $0 $@
  11487. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11488. "
  11489. _ACEOF
  11490. cat >>$CONFIG_STATUS <<_ACEOF
  11491. # Files that config.status was made for.
  11492. config_files="$ac_config_files"
  11493. config_headers="$ac_config_headers"
  11494. config_commands="$ac_config_commands"
  11495. _ACEOF
  11496. cat >>$CONFIG_STATUS <<\_ACEOF
  11497. ac_cs_usage="\
  11498. \`$as_me' instantiates files from templates according to the
  11499. current configuration.
  11500. Usage: $0 [OPTIONS] [FILE]...
  11501. -h, --help print this help, then exit
  11502. -V, --version print version number and configuration settings, then exit
  11503. -q, --quiet do not print progress messages
  11504. -d, --debug don't remove temporary files
  11505. --recheck update $as_me by reconfiguring in the same conditions
  11506. --file=FILE[:TEMPLATE]
  11507. instantiate the configuration file FILE
  11508. --header=FILE[:TEMPLATE]
  11509. instantiate the configuration header FILE
  11510. Configuration files:
  11511. $config_files
  11512. Configuration headers:
  11513. $config_headers
  11514. Configuration commands:
  11515. $config_commands
  11516. Report bugs to <bug-autoconf@gnu.org>."
  11517. _ACEOF
  11518. cat >>$CONFIG_STATUS <<_ACEOF
  11519. ac_cs_version="\\
  11520. config.status
  11521. configured by $0, generated by GNU Autoconf 2.61,
  11522. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11523. Copyright (C) 2006 Free Software Foundation, Inc.
  11524. This config.status script is free software; the Free Software Foundation
  11525. gives unlimited permission to copy, distribute and modify it."
  11526. ac_pwd='$ac_pwd'
  11527. srcdir='$srcdir'
  11528. _ACEOF
  11529. cat >>$CONFIG_STATUS <<\_ACEOF
  11530. # If no file are specified by the user, then we need to provide default
  11531. # value. By we need to know if files were specified by the user.
  11532. ac_need_defaults=:
  11533. while test $# != 0
  11534. do
  11535. case $1 in
  11536. --*=*)
  11537. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11538. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11539. ac_shift=:
  11540. ;;
  11541. *)
  11542. ac_option=$1
  11543. ac_optarg=$2
  11544. ac_shift=shift
  11545. ;;
  11546. esac
  11547. case $ac_option in
  11548. # Handling of the options.
  11549. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11550. ac_cs_recheck=: ;;
  11551. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11552. echo "$ac_cs_version"; exit ;;
  11553. --debug | --debu | --deb | --de | --d | -d )
  11554. debug=: ;;
  11555. --file | --fil | --fi | --f )
  11556. $ac_shift
  11557. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11558. ac_need_defaults=false;;
  11559. --header | --heade | --head | --hea )
  11560. $ac_shift
  11561. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11562. ac_need_defaults=false;;
  11563. --he | --h)
  11564. # Conflict between --help and --header
  11565. { echo "$as_me: error: ambiguous option: $1
  11566. Try \`$0 --help' for more information." >&2
  11567. { (exit 1); exit 1; }; };;
  11568. --help | --hel | -h )
  11569. echo "$ac_cs_usage"; exit ;;
  11570. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11571. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11572. ac_cs_silent=: ;;
  11573. # This is an error.
  11574. -*) { echo "$as_me: error: unrecognized option: $1
  11575. Try \`$0 --help' for more information." >&2
  11576. { (exit 1); exit 1; }; } ;;
  11577. *) ac_config_targets="$ac_config_targets $1"
  11578. ac_need_defaults=false ;;
  11579. esac
  11580. shift
  11581. done
  11582. ac_configure_extra_args=
  11583. if $ac_cs_silent; then
  11584. exec 6>/dev/null
  11585. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11586. fi
  11587. _ACEOF
  11588. cat >>$CONFIG_STATUS <<_ACEOF
  11589. if \$ac_cs_recheck; then
  11590. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11591. CONFIG_SHELL=$SHELL
  11592. export CONFIG_SHELL
  11593. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11594. fi
  11595. _ACEOF
  11596. cat >>$CONFIG_STATUS <<\_ACEOF
  11597. exec 5>>config.log
  11598. {
  11599. echo
  11600. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11601. ## Running $as_me. ##
  11602. _ASBOX
  11603. echo "$ac_log"
  11604. } >&5
  11605. _ACEOF
  11606. cat >>$CONFIG_STATUS <<_ACEOF
  11607. #
  11608. # INIT-COMMANDS
  11609. #
  11610. CC="$CC"
  11611. _ACEOF
  11612. cat >>$CONFIG_STATUS <<\_ACEOF
  11613. # Handling of arguments.
  11614. for ac_config_target in $ac_config_targets
  11615. do
  11616. case $ac_config_target in
  11617. "port/misc/udposix.h") CONFIG_HEADERS="$CONFIG_HEADERS port/misc/udposix.h" ;;
  11618. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11619. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  11620. "lib/udunits.inc") CONFIG_FILES="$CONFIG_FILES lib/udunits.inc" ;;
  11621. "udunits/Makefile") CONFIG_FILES="$CONFIG_FILES udunits/Makefile" ;;
  11622. "perl/Makefile.PL") CONFIG_FILES="$CONFIG_FILES perl/Makefile.PL" ;;
  11623. "${CONFIG_FILES-}") CONFIG_FILES="$CONFIG_FILES ${CONFIG_FILES-}" ;;
  11624. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  11625. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11626. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11627. { (exit 1); exit 1; }; };;
  11628. esac
  11629. done
  11630. # If the user did not use the arguments to specify the items to instantiate,
  11631. # then the envvar interface is used. Set only those that are not.
  11632. # We use the long form for the default assignment because of an extremely
  11633. # bizarre bug on SunOS 4.1.3.
  11634. if $ac_need_defaults; then
  11635. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11636. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11637. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11638. fi
  11639. # Have a temporary directory for convenience. Make it in the build tree
  11640. # simply because there is no reason against having it here, and in addition,
  11641. # creating and moving files from /tmp can sometimes cause problems.
  11642. # Hook for its removal unless debugging.
  11643. # Note that there is a small window in which the directory will not be cleaned:
  11644. # after its creation but before its name has been assigned to `$tmp'.
  11645. $debug ||
  11646. {
  11647. tmp=
  11648. trap 'exit_status=$?
  11649. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11650. ' 0
  11651. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11652. }
  11653. # Create a (secure) tmp directory for tmp files.
  11654. {
  11655. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11656. test -n "$tmp" && test -d "$tmp"
  11657. } ||
  11658. {
  11659. tmp=./conf$$-$RANDOM
  11660. (umask 077 && mkdir "$tmp")
  11661. } ||
  11662. {
  11663. echo "$me: cannot create a temporary directory in ." >&2
  11664. { (exit 1); exit 1; }
  11665. }
  11666. #
  11667. # Set up the sed scripts for CONFIG_FILES section.
  11668. #
  11669. # No need to generate the scripts if there are no CONFIG_FILES.
  11670. # This happens for instance when ./config.status config.h
  11671. if test -n "$CONFIG_FILES"; then
  11672. _ACEOF
  11673. ac_delim='%!_!# '
  11674. for ac_last_try in false false false false false :; do
  11675. cat >conf$$subs.sed <<_ACEOF
  11676. SHELL!$SHELL$ac_delim
  11677. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  11678. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  11679. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  11680. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  11681. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  11682. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  11683. exec_prefix!$exec_prefix$ac_delim
  11684. prefix!$prefix$ac_delim
  11685. program_transform_name!$program_transform_name$ac_delim
  11686. bindir!$bindir$ac_delim
  11687. sbindir!$sbindir$ac_delim
  11688. libexecdir!$libexecdir$ac_delim
  11689. datarootdir!$datarootdir$ac_delim
  11690. datadir!$datadir$ac_delim
  11691. sysconfdir!$sysconfdir$ac_delim
  11692. sharedstatedir!$sharedstatedir$ac_delim
  11693. localstatedir!$localstatedir$ac_delim
  11694. includedir!$includedir$ac_delim
  11695. oldincludedir!$oldincludedir$ac_delim
  11696. docdir!$docdir$ac_delim
  11697. infodir!$infodir$ac_delim
  11698. htmldir!$htmldir$ac_delim
  11699. dvidir!$dvidir$ac_delim
  11700. pdfdir!$pdfdir$ac_delim
  11701. psdir!$psdir$ac_delim
  11702. libdir!$libdir$ac_delim
  11703. localedir!$localedir$ac_delim
  11704. mandir!$mandir$ac_delim
  11705. DEFS!$DEFS$ac_delim
  11706. ECHO_C!$ECHO_C$ac_delim
  11707. ECHO_N!$ECHO_N$ac_delim
  11708. ECHO_T!$ECHO_T$ac_delim
  11709. LIBS!$LIBS$ac_delim
  11710. build_alias!$build_alias$ac_delim
  11711. host_alias!$host_alias$ac_delim
  11712. target_alias!$target_alias$ac_delim
  11713. CONFIG_FILES!$CONFIG_FILES$ac_delim
  11714. PORT_SUBDIRS!$PORT_SUBDIRS$ac_delim
  11715. PORT_MANIFEST!$PORT_MANIFEST$ac_delim
  11716. PORT_ALL!$PORT_ALL$ac_delim
  11717. PORT_CLEAN!$PORT_CLEAN$ac_delim
  11718. PORT_DISTCLEAN!$PORT_DISTCLEAN$ac_delim
  11719. PORT_INSTALL!$PORT_INSTALL$ac_delim
  11720. prog!$prog$ac_delim
  11721. WHATIS!$WHATIS$ac_delim
  11722. MAKEWHATIS_CMD!$MAKEWHATIS_CMD$ac_delim
  11723. CC!$CC$ac_delim
  11724. CPPFLAGS!$CPPFLAGS$ac_delim
  11725. OPSYS!$OPSYS$ac_delim
  11726. CC_MAKEDEPEND!$CC_MAKEDEPEND$ac_delim
  11727. CFLAGS!$CFLAGS$ac_delim
  11728. LDFLAGS!$LDFLAGS$ac_delim
  11729. ac_ct_CC!$ac_ct_CC$ac_delim
  11730. EXEEXT!$EXEEXT$ac_delim
  11731. OBJEXT!$OBJEXT$ac_delim
  11732. CPP!$CPP$ac_delim
  11733. UD_NO_CONST!$UD_NO_CONST$ac_delim
  11734. UD_NO_VOLATILE!$UD_NO_VOLATILE$ac_delim
  11735. UD_NO_SIGNED!$UD_NO_SIGNED$ac_delim
  11736. UD_NO_PROTOTYPES!$UD_NO_PROTOTYPES$ac_delim
  11737. UD_NO_HASH!$UD_NO_HASH$ac_delim
  11738. UD_NO_HASHHASH!$UD_NO_HASHHASH$ac_delim
  11739. UD_NO_VOIDSTAR!$UD_NO_VOIDSTAR$ac_delim
  11740. AR!$AR$ac_delim
  11741. TARFLAGS!$TARFLAGS$ac_delim
  11742. RANLIB!$RANLIB$ac_delim
  11743. FTPBINDIR!$FTPBINDIR$ac_delim
  11744. UC_LIBOBJS!$UC_LIBOBJS$ac_delim
  11745. PORT_HEADERS!$PORT_HEADERS$ac_delim
  11746. PORT_CPP_LDM!$PORT_CPP_LDM$ac_delim
  11747. LD_UDPORT!$LD_UDPORT$ac_delim
  11748. NEQN!$NEQN$ac_delim
  11749. TBL!$TBL$ac_delim
  11750. LD_UDUNITS!$LD_UDUNITS$ac_delim
  11751. LD_YACC!$LD_YACC$ac_delim
  11752. LD_MATH!$LD_MATH$ac_delim
  11753. CFORTRAN_TYPE!$CFORTRAN_TYPE$ac_delim
  11754. FFLAGS!$FFLAGS$ac_delim
  11755. UD_POINTER!$UD_POINTER$ac_delim
  11756. GREP!$GREP$ac_delim
  11757. EGREP!$EGREP$ac_delim
  11758. LIBOBJS!$LIBOBJS$ac_delim
  11759. UD_NO_ATEXIT_DECL!$UD_NO_ATEXIT_DECL$ac_delim
  11760. UD_NO_GETENV_DECL!$UD_NO_GETENV_DECL$ac_delim
  11761. UD_NO_STRERROR_DECL!$UD_NO_STRERROR_DECL$ac_delim
  11762. UD_NO_STRCHR_DECL!$UD_NO_STRCHR_DECL$ac_delim
  11763. UD_NO_STRCPY_DECL!$UD_NO_STRCPY_DECL$ac_delim
  11764. UD_NO_STRRCHR_DECL!$UD_NO_STRRCHR_DECL$ac_delim
  11765. UD_NO_STRNCPY_DECL!$UD_NO_STRNCPY_DECL$ac_delim
  11766. UD_NO_STRTOK_DECL!$UD_NO_STRTOK_DECL$ac_delim
  11767. UD_NO_STRSTR_DECL!$UD_NO_STRSTR_DECL$ac_delim
  11768. UD_NO_MEMMOVE_DECL!$UD_NO_MEMMOVE_DECL$ac_delim
  11769. UD_NO_DIFFTIME_DECL!$UD_NO_DIFFTIME_DECL$ac_delim
  11770. UD_NO_STRFTIME_DECL!$UD_NO_STRFTIME_DECL$ac_delim
  11771. UD_NO_TSEARCH_DECL!$UD_NO_TSEARCH_DECL$ac_delim
  11772. UD_NO_TFIND_DECL!$UD_NO_TFIND_DECL$ac_delim
  11773. _ACEOF
  11774. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  11775. break
  11776. elif $ac_last_try; then
  11777. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  11778. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  11779. { (exit 1); exit 1; }; }
  11780. else
  11781. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11782. fi
  11783. done
  11784. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  11785. if test -n "$ac_eof"; then
  11786. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  11787. ac_eof=`expr $ac_eof + 1`
  11788. fi
  11789. cat >>$CONFIG_STATUS <<_ACEOF
  11790. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  11791. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11792. _ACEOF
  11793. sed '
  11794. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  11795. s/^/s,@/; s/!/@,|#_!!_#|/
  11796. :n
  11797. t n
  11798. s/'"$ac_delim"'$/,g/; t
  11799. s/$/\\/; p
  11800. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  11801. ' >>$CONFIG_STATUS <conf$$subs.sed
  11802. rm -f conf$$subs.sed
  11803. cat >>$CONFIG_STATUS <<_ACEOF
  11804. CEOF$ac_eof
  11805. _ACEOF
  11806. ac_delim='%!_!# '
  11807. for ac_last_try in false false false false false :; do
  11808. cat >conf$$subs.sed <<_ACEOF
  11809. UD_NO_TDELETE_DECL!$UD_NO_TDELETE_DECL$ac_delim
  11810. UD_NO_TWALK_DECL!$UD_NO_TWALK_DECL$ac_delim
  11811. PERL!$PERL$ac_delim
  11812. LINKTYPE!$LINKTYPE$ac_delim
  11813. CXXFLAGS!$CXXFLAGS$ac_delim
  11814. PERL_ALL!$PERL_ALL$ac_delim
  11815. PERL_TEST!$PERL_TEST$ac_delim
  11816. PERL_INSTALL!$PERL_INSTALL$ac_delim
  11817. PERL_CLEAN!$PERL_CLEAN$ac_delim
  11818. PERL_DISTCLEAN!$PERL_DISTCLEAN$ac_delim
  11819. PERL_MANUAL!$PERL_MANUAL$ac_delim
  11820. FTPDIR!$FTPDIR$ac_delim
  11821. LTLIBOBJS!$LTLIBOBJS$ac_delim
  11822. _ACEOF
  11823. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
  11824. break
  11825. elif $ac_last_try; then
  11826. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  11827. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  11828. { (exit 1); exit 1; }; }
  11829. else
  11830. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11831. fi
  11832. done
  11833. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  11834. if test -n "$ac_eof"; then
  11835. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  11836. ac_eof=`expr $ac_eof + 1`
  11837. fi
  11838. cat >>$CONFIG_STATUS <<_ACEOF
  11839. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  11840. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  11841. _ACEOF
  11842. sed '
  11843. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  11844. s/^/s,@/; s/!/@,|#_!!_#|/
  11845. :n
  11846. t n
  11847. s/'"$ac_delim"'$/,g/; t
  11848. s/$/\\/; p
  11849. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  11850. ' >>$CONFIG_STATUS <conf$$subs.sed
  11851. rm -f conf$$subs.sed
  11852. cat >>$CONFIG_STATUS <<_ACEOF
  11853. :end
  11854. s/|#_!!_#|//g
  11855. CEOF$ac_eof
  11856. _ACEOF
  11857. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11858. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11859. # trailing colons and then remove the whole line if VPATH becomes empty
  11860. # (actually we leave an empty line to preserve line numbers).
  11861. if test "x$srcdir" = x.; then
  11862. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11863. s/:*\$(srcdir):*/:/
  11864. s/:*\${srcdir}:*/:/
  11865. s/:*@srcdir@:*/:/
  11866. s/^\([^=]*=[ ]*\):*/\1/
  11867. s/:*$//
  11868. s/^[^=]*=[ ]*$//
  11869. }'
  11870. fi
  11871. cat >>$CONFIG_STATUS <<\_ACEOF
  11872. fi # test -n "$CONFIG_FILES"
  11873. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  11874. do
  11875. case $ac_tag in
  11876. :[FHLC]) ac_mode=$ac_tag; continue;;
  11877. esac
  11878. case $ac_mode$ac_tag in
  11879. :[FHL]*:*);;
  11880. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  11881. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  11882. { (exit 1); exit 1; }; };;
  11883. :[FH]-) ac_tag=-:-;;
  11884. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11885. esac
  11886. ac_save_IFS=$IFS
  11887. IFS=:
  11888. set x $ac_tag
  11889. IFS=$ac_save_IFS
  11890. shift
  11891. ac_file=$1
  11892. shift
  11893. case $ac_mode in
  11894. :L) ac_source=$1;;
  11895. :[FH])
  11896. ac_file_inputs=
  11897. for ac_f
  11898. do
  11899. case $ac_f in
  11900. -) ac_f="$tmp/stdin";;
  11901. *) # Look for the file first in the build tree, then in the source tree
  11902. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11903. # because $ac_f cannot contain `:'.
  11904. test -f "$ac_f" ||
  11905. case $ac_f in
  11906. [\\/$]*) false;;
  11907. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11908. esac ||
  11909. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  11910. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  11911. { (exit 1); exit 1; }; };;
  11912. esac
  11913. ac_file_inputs="$ac_file_inputs $ac_f"
  11914. done
  11915. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11916. # use $as_me), people would be surprised to read:
  11917. # /* config.h. Generated by config.status. */
  11918. configure_input="Generated from "`IFS=:
  11919. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  11920. if test x"$ac_file" != x-; then
  11921. configure_input="$ac_file. $configure_input"
  11922. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11923. echo "$as_me: creating $ac_file" >&6;}
  11924. fi
  11925. case $ac_tag in
  11926. *:-:* | *:-) cat >"$tmp/stdin";;
  11927. esac
  11928. ;;
  11929. esac
  11930. ac_dir=`$as_dirname -- "$ac_file" ||
  11931. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11932. X"$ac_file" : 'X\(//\)[^/]' \| \
  11933. X"$ac_file" : 'X\(//\)$' \| \
  11934. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11935. echo X"$ac_file" |
  11936. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11937. s//\1/
  11938. q
  11939. }
  11940. /^X\(\/\/\)[^/].*/{
  11941. s//\1/
  11942. q
  11943. }
  11944. /^X\(\/\/\)$/{
  11945. s//\1/
  11946. q
  11947. }
  11948. /^X\(\/\).*/{
  11949. s//\1/
  11950. q
  11951. }
  11952. s/.*/./; q'`
  11953. { as_dir="$ac_dir"
  11954. case $as_dir in #(
  11955. -*) as_dir=./$as_dir;;
  11956. esac
  11957. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  11958. as_dirs=
  11959. while :; do
  11960. case $as_dir in #(
  11961. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  11962. *) as_qdir=$as_dir;;
  11963. esac
  11964. as_dirs="'$as_qdir' $as_dirs"
  11965. as_dir=`$as_dirname -- "$as_dir" ||
  11966. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11967. X"$as_dir" : 'X\(//\)[^/]' \| \
  11968. X"$as_dir" : 'X\(//\)$' \| \
  11969. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11970. echo X"$as_dir" |
  11971. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11972. s//\1/
  11973. q
  11974. }
  11975. /^X\(\/\/\)[^/].*/{
  11976. s//\1/
  11977. q
  11978. }
  11979. /^X\(\/\/\)$/{
  11980. s//\1/
  11981. q
  11982. }
  11983. /^X\(\/\).*/{
  11984. s//\1/
  11985. q
  11986. }
  11987. s/.*/./; q'`
  11988. test -d "$as_dir" && break
  11989. done
  11990. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11991. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  11992. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  11993. { (exit 1); exit 1; }; }; }
  11994. ac_builddir=.
  11995. case "$ac_dir" in
  11996. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11997. *)
  11998. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11999. # A ".." for each directory in $ac_dir_suffix.
  12000. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  12001. case $ac_top_builddir_sub in
  12002. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12003. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12004. esac ;;
  12005. esac
  12006. ac_abs_top_builddir=$ac_pwd
  12007. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12008. # for backward compatibility:
  12009. ac_top_builddir=$ac_top_build_prefix
  12010. case $srcdir in
  12011. .) # We are building in place.
  12012. ac_srcdir=.
  12013. ac_top_srcdir=$ac_top_builddir_sub
  12014. ac_abs_top_srcdir=$ac_pwd ;;
  12015. [\\/]* | ?:[\\/]* ) # Absolute name.
  12016. ac_srcdir=$srcdir$ac_dir_suffix;
  12017. ac_top_srcdir=$srcdir
  12018. ac_abs_top_srcdir=$srcdir ;;
  12019. *) # Relative name.
  12020. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12021. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12022. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12023. esac
  12024. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12025. case $ac_mode in
  12026. :F)
  12027. #
  12028. # CONFIG_FILE
  12029. #
  12030. _ACEOF
  12031. cat >>$CONFIG_STATUS <<\_ACEOF
  12032. # If the template does not know about datarootdir, expand it.
  12033. # FIXME: This hack should be removed a few years after 2.60.
  12034. ac_datarootdir_hack=; ac_datarootdir_seen=
  12035. case `sed -n '/datarootdir/ {
  12036. p
  12037. q
  12038. }
  12039. /@datadir@/p
  12040. /@docdir@/p
  12041. /@infodir@/p
  12042. /@localedir@/p
  12043. /@mandir@/p
  12044. ' $ac_file_inputs` in
  12045. *datarootdir*) ac_datarootdir_seen=yes;;
  12046. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12047. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12048. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12049. _ACEOF
  12050. cat >>$CONFIG_STATUS <<_ACEOF
  12051. ac_datarootdir_hack='
  12052. s&@datadir@&$datadir&g
  12053. s&@docdir@&$docdir&g
  12054. s&@infodir@&$infodir&g
  12055. s&@localedir@&$localedir&g
  12056. s&@mandir@&$mandir&g
  12057. s&\\\${datarootdir}&$datarootdir&g' ;;
  12058. esac
  12059. _ACEOF
  12060. # Neutralize VPATH when `$srcdir' = `.'.
  12061. # Shell code in configure.ac might set extrasub.
  12062. # FIXME: do we really want to maintain this feature?
  12063. cat >>$CONFIG_STATUS <<_ACEOF
  12064. sed "$ac_vpsub
  12065. $extrasub
  12066. _ACEOF
  12067. cat >>$CONFIG_STATUS <<\_ACEOF
  12068. :t
  12069. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12070. s&@configure_input@&$configure_input&;t t
  12071. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12072. s&@srcdir@&$ac_srcdir&;t t
  12073. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12074. s&@top_srcdir@&$ac_top_srcdir&;t t
  12075. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12076. s&@builddir@&$ac_builddir&;t t
  12077. s&@abs_builddir@&$ac_abs_builddir&;t t
  12078. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12079. $ac_datarootdir_hack
  12080. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  12081. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12082. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12083. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12084. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12085. which seems to be undefined. Please make sure it is defined." >&5
  12086. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12087. which seems to be undefined. Please make sure it is defined." >&2;}
  12088. rm -f "$tmp/stdin"
  12089. case $ac_file in
  12090. -) cat "$tmp/out"; rm -f "$tmp/out";;
  12091. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  12092. esac
  12093. ;;
  12094. :H)
  12095. #
  12096. # CONFIG_HEADER
  12097. #
  12098. _ACEOF
  12099. # Transform confdefs.h into a sed script `conftest.defines', that
  12100. # substitutes the proper values into config.h.in to produce config.h.
  12101. rm -f conftest.defines conftest.tail
  12102. # First, append a space to every undef/define line, to ease matching.
  12103. echo 's/$/ /' >conftest.defines
  12104. # Then, protect against being on the right side of a sed subst, or in
  12105. # an unquoted here document, in config.status. If some macros were
  12106. # called several times there might be several #defines for the same
  12107. # symbol, which is useless. But do not sort them, since the last
  12108. # AC_DEFINE must be honored.
  12109. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12110. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  12111. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  12112. # PARAMS is the parameter list in the macro definition--in most cases, it's
  12113. # just an empty string.
  12114. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  12115. ac_dB='\\)[ (].*,\\1define\\2'
  12116. ac_dC=' '
  12117. ac_dD=' ,'
  12118. uniq confdefs.h |
  12119. sed -n '
  12120. t rset
  12121. :rset
  12122. s/^[ ]*#[ ]*define[ ][ ]*//
  12123. t ok
  12124. d
  12125. :ok
  12126. s/[\\&,]/\\&/g
  12127. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  12128. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  12129. ' >>conftest.defines
  12130. # Remove the space that was appended to ease matching.
  12131. # Then replace #undef with comments. This is necessary, for
  12132. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12133. # on some systems where configure will not decide to define it.
  12134. # (The regexp can be short, since the line contains either #define or #undef.)
  12135. echo 's/ $//
  12136. s,^[ #]*u.*,/* & */,' >>conftest.defines
  12137. # Break up conftest.defines:
  12138. ac_max_sed_lines=50
  12139. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  12140. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  12141. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  12142. # et cetera.
  12143. ac_in='$ac_file_inputs'
  12144. ac_out='"$tmp/out1"'
  12145. ac_nxt='"$tmp/out2"'
  12146. while :
  12147. do
  12148. # Write a here document:
  12149. cat >>$CONFIG_STATUS <<_ACEOF
  12150. # First, check the format of the line:
  12151. cat >"\$tmp/defines.sed" <<\\CEOF
  12152. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  12153. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  12154. b
  12155. :def
  12156. _ACEOF
  12157. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  12158. echo 'CEOF
  12159. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  12160. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  12161. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  12162. grep . conftest.tail >/dev/null || break
  12163. rm -f conftest.defines
  12164. mv conftest.tail conftest.defines
  12165. done
  12166. rm -f conftest.defines conftest.tail
  12167. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  12168. cat >>$CONFIG_STATUS <<\_ACEOF
  12169. if test x"$ac_file" != x-; then
  12170. echo "/* $configure_input */" >"$tmp/config.h"
  12171. cat "$ac_result" >>"$tmp/config.h"
  12172. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  12173. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12174. echo "$as_me: $ac_file is unchanged" >&6;}
  12175. else
  12176. rm -f $ac_file
  12177. mv "$tmp/config.h" $ac_file
  12178. fi
  12179. else
  12180. echo "/* $configure_input */"
  12181. cat "$ac_result"
  12182. fi
  12183. rm -f "$tmp/out12"
  12184. ;;
  12185. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  12186. echo "$as_me: executing $ac_file commands" >&6;}
  12187. ;;
  12188. esac
  12189. case $ac_file$ac_mode in
  12190. "default":C) #
  12191. # Create a script to accomplish the post processing.
  12192. #
  12193. cat << UD_EOF_CONFTEST_C > conftest.c
  12194. #include <stdio.h>
  12195. int readsub(inpath)
  12196. char *inpath;
  12197. {
  12198. char buf[2048], path[1024];
  12199. FILE *fp = inpath == NULL
  12200. ? stdin
  12201. : fopen(inpath, "r");
  12202. if (fp == NULL) {
  12203. (void) perror(inpath);
  12204. return 0;
  12205. }
  12206. buf[sizeof(buf)-1] = 0;
  12207. while (fgets(buf, sizeof(buf), fp) != NULL) {
  12208. if (sscanf(buf, "include%*[ \t]%s", path) == 1) {
  12209. if (!readsub(path))
  12210. return 0;
  12211. } else {
  12212. (void) fputs(buf, stdout);
  12213. }
  12214. }
  12215. return 1;
  12216. }
  12217. int main(int argc, char* argv[])
  12218. {
  12219. return readsub((char*)NULL) ? 0 : 1;
  12220. }
  12221. UD_EOF_CONFTEST_C
  12222. if eval $CC -o conftest ${CFLAGS-} ${CPPFLAGS-} ${LDFLAGS-} conftest.c; then
  12223. conftest=`pwd`/conftest
  12224. case "${CONFIG_FILES-}" in
  12225. '')
  12226. ;;
  12227. *)
  12228. for file in ${CONFIG_FILES-}; do
  12229. echo 1>&2 "expanding \`include's in file \`$file'"
  12230. sd=`pwd`/`echo $file | sed 's,[^/]*$,,'`
  12231. base=`basename $file`
  12232. (cd $sd && $conftest < $base > conftest.mk &&
  12233. mv conftest.mk $base) || exit 1
  12234. done
  12235. ;;
  12236. esac
  12237. fi
  12238. rm conftest conftest.c
  12239. ;;
  12240. esac
  12241. done # for ac_tag
  12242. { (exit 0); exit 0; }
  12243. _ACEOF
  12244. chmod +x $CONFIG_STATUS
  12245. ac_clean_files=$ac_clean_files_save
  12246. # configure is writing to config.log, and then calls config.status.
  12247. # config.status does its own redirection, appending to config.log.
  12248. # Unfortunately, on DOS this fails, as config.log is still kept open
  12249. # by configure, so config.status won't be able to write to it; its
  12250. # output is simply discarded. So we exec the FD to /dev/null,
  12251. # effectively closing config.log, so it can be properly (re)opened and
  12252. # appended to by config.status. When coming back to configure, we
  12253. # need to make the FD available again.
  12254. if test "$no_create" != yes; then
  12255. ac_cs_success=:
  12256. ac_config_status_args=
  12257. test "$silent" = yes &&
  12258. ac_config_status_args="$ac_config_status_args --quiet"
  12259. exec 5>/dev/null
  12260. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12261. exec 5>>config.log
  12262. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12263. # would make configure fail if this is the last instruction.
  12264. $ac_cs_success || { (exit 1); exit 1; }
  12265. fi