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