Newer
Older
NetAddr-IP / Lite / Util / configure
@Michael Robinton Michael Robinton on 21 Oct 2014 170 KB Import of MIKER/NetAddr-IP-4.013 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.  
  3238. for ac_header in arpa/inet.h netdb.h netinet/in.h stdint.h sys/socket.h
  3239. do
  3240. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3241. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3242. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3243. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3244. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3245. echo $ECHO_N "(cached) $ECHO_C" >&6
  3246. fi
  3247. ac_res=`eval echo '${'$as_ac_Header'}'`
  3248. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3249. echo "${ECHO_T}$ac_res" >&6; }
  3250. else
  3251. # Is the header compilable?
  3252. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3253. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  3254. cat >conftest.$ac_ext <<_ACEOF
  3255. /* confdefs.h. */
  3256. _ACEOF
  3257. cat confdefs.h >>conftest.$ac_ext
  3258. cat >>conftest.$ac_ext <<_ACEOF
  3259. /* end confdefs.h. */
  3260. $ac_includes_default
  3261. #include <$ac_header>
  3262. _ACEOF
  3263. rm -f conftest.$ac_objext
  3264. if { (ac_try="$ac_compile"
  3265. case "(($ac_try" in
  3266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3267. *) ac_try_echo=$ac_try;;
  3268. esac
  3269. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3270. (eval "$ac_compile") 2>conftest.er1
  3271. ac_status=$?
  3272. grep -v '^ *+' conftest.er1 >conftest.err
  3273. rm -f conftest.er1
  3274. cat conftest.err >&5
  3275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3276. (exit $ac_status); } && {
  3277. test -z "$ac_c_werror_flag" ||
  3278. test ! -s conftest.err
  3279. } && test -s conftest.$ac_objext; then
  3280. ac_header_compiler=yes
  3281. else
  3282. echo "$as_me: failed program was:" >&5
  3283. sed 's/^/| /' conftest.$ac_ext >&5
  3284.  
  3285. ac_header_compiler=no
  3286. fi
  3287.  
  3288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3289. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3290. echo "${ECHO_T}$ac_header_compiler" >&6; }
  3291.  
  3292. # Is the header present?
  3293. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3294. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  3295. cat >conftest.$ac_ext <<_ACEOF
  3296. /* confdefs.h. */
  3297. _ACEOF
  3298. cat confdefs.h >>conftest.$ac_ext
  3299. cat >>conftest.$ac_ext <<_ACEOF
  3300. /* end confdefs.h. */
  3301. #include <$ac_header>
  3302. _ACEOF
  3303. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3304. case "(($ac_try" in
  3305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3306. *) ac_try_echo=$ac_try;;
  3307. esac
  3308. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3309. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3310. ac_status=$?
  3311. grep -v '^ *+' conftest.er1 >conftest.err
  3312. rm -f conftest.er1
  3313. cat conftest.err >&5
  3314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3315. (exit $ac_status); } >/dev/null && {
  3316. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3317. test ! -s conftest.err
  3318. }; then
  3319. ac_header_preproc=yes
  3320. else
  3321. echo "$as_me: failed program was:" >&5
  3322. sed 's/^/| /' conftest.$ac_ext >&5
  3323.  
  3324. ac_header_preproc=no
  3325. fi
  3326.  
  3327. rm -f conftest.err conftest.$ac_ext
  3328. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3329. echo "${ECHO_T}$ac_header_preproc" >&6; }
  3330.  
  3331. # So? What about this header?
  3332. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3333. yes:no: )
  3334. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3335. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3336. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3337. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3338. ac_header_preproc=yes
  3339. ;;
  3340. no:yes:* )
  3341. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3342. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3343. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3344. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3345. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3346. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3347. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3348. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3349. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3350. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3351. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3352. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3353.  
  3354. ;;
  3355. esac
  3356. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3357. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3358. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3359. echo $ECHO_N "(cached) $ECHO_C" >&6
  3360. else
  3361. eval "$as_ac_Header=\$ac_header_preproc"
  3362. fi
  3363. ac_res=`eval echo '${'$as_ac_Header'}'`
  3364. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3365. echo "${ECHO_T}$ac_res" >&6; }
  3366.  
  3367. fi
  3368. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3369. cat >>confdefs.h <<_ACEOF
  3370. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3371. _ACEOF
  3372.  
  3373. fi
  3374.  
  3375. done
  3376.  
  3377.  
  3378.  
  3379. # Checks for typedefs, structures, and compiler characteristics.
  3380. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  3381. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  3382. if test "${ac_cv_c_const+set}" = set; then
  3383. echo $ECHO_N "(cached) $ECHO_C" >&6
  3384. else
  3385. cat >conftest.$ac_ext <<_ACEOF
  3386. /* confdefs.h. */
  3387. _ACEOF
  3388. cat confdefs.h >>conftest.$ac_ext
  3389. cat >>conftest.$ac_ext <<_ACEOF
  3390. /* end confdefs.h. */
  3391.  
  3392. int
  3393. main ()
  3394. {
  3395. /* FIXME: Include the comments suggested by Paul. */
  3396. #ifndef __cplusplus
  3397. /* Ultrix mips cc rejects this. */
  3398. typedef int charset[2];
  3399. const charset cs;
  3400. /* SunOS 4.1.1 cc rejects this. */
  3401. char const *const *pcpcc;
  3402. char **ppc;
  3403. /* NEC SVR4.0.2 mips cc rejects this. */
  3404. struct point {int x, y;};
  3405. static struct point const zero = {0,0};
  3406. /* AIX XL C 1.02.0.0 rejects this.
  3407. It does not let you subtract one const X* pointer from another in
  3408. an arm of an if-expression whose if-part is not a constant
  3409. expression */
  3410. const char *g = "string";
  3411. pcpcc = &g + (g ? g-g : 0);
  3412. /* HPUX 7.0 cc rejects these. */
  3413. ++pcpcc;
  3414. ppc = (char**) pcpcc;
  3415. pcpcc = (char const *const *) ppc;
  3416. { /* SCO 3.2v4 cc rejects this. */
  3417. char *t;
  3418. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3419.  
  3420. *t++ = 0;
  3421. if (s) return 0;
  3422. }
  3423. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3424. int x[] = {25, 17};
  3425. const int *foo = &x[0];
  3426. ++foo;
  3427. }
  3428. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3429. typedef const int *iptr;
  3430. iptr p = 0;
  3431. ++p;
  3432. }
  3433. { /* AIX XL C 1.02.0.0 rejects this saying
  3434. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3435. struct s { int j; const int *ap[3]; };
  3436. struct s *b; b->j = 5;
  3437. }
  3438. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3439. const int foo = 10;
  3440. if (!foo) return 0;
  3441. }
  3442. return !cs[0] && !zero.x;
  3443. #endif
  3444.  
  3445. ;
  3446. return 0;
  3447. }
  3448. _ACEOF
  3449. rm -f conftest.$ac_objext
  3450. if { (ac_try="$ac_compile"
  3451. case "(($ac_try" in
  3452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3453. *) ac_try_echo=$ac_try;;
  3454. esac
  3455. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3456. (eval "$ac_compile") 2>conftest.er1
  3457. ac_status=$?
  3458. grep -v '^ *+' conftest.er1 >conftest.err
  3459. rm -f conftest.er1
  3460. cat conftest.err >&5
  3461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3462. (exit $ac_status); } && {
  3463. test -z "$ac_c_werror_flag" ||
  3464. test ! -s conftest.err
  3465. } && test -s conftest.$ac_objext; then
  3466. ac_cv_c_const=yes
  3467. else
  3468. echo "$as_me: failed program was:" >&5
  3469. sed 's/^/| /' conftest.$ac_ext >&5
  3470.  
  3471. ac_cv_c_const=no
  3472. fi
  3473.  
  3474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3475. fi
  3476. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  3477. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  3478. if test $ac_cv_c_const = no; then
  3479.  
  3480. cat >>confdefs.h <<\_ACEOF
  3481. #define const
  3482. _ACEOF
  3483.  
  3484. fi
  3485.  
  3486.  
  3487. { echo "$as_me:$LINENO: checking for int32_t" >&5
  3488. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  3489. if test "${ac_cv_c_int32_t+set}" = set; then
  3490. echo $ECHO_N "(cached) $ECHO_C" >&6
  3491. else
  3492. ac_cv_c_int32_t=no
  3493. for ac_type in 'int32_t' 'int' 'long int' \
  3494. 'long long int' 'short int' 'signed char'; do
  3495. cat >conftest.$ac_ext <<_ACEOF
  3496. /* confdefs.h. */
  3497. _ACEOF
  3498. cat confdefs.h >>conftest.$ac_ext
  3499. cat >>conftest.$ac_ext <<_ACEOF
  3500. /* end confdefs.h. */
  3501. $ac_includes_default
  3502. int
  3503. main ()
  3504. {
  3505. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  3506. test_array [0] = 0
  3507.  
  3508. ;
  3509. return 0;
  3510. }
  3511. _ACEOF
  3512. rm -f conftest.$ac_objext
  3513. if { (ac_try="$ac_compile"
  3514. case "(($ac_try" in
  3515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3516. *) ac_try_echo=$ac_try;;
  3517. esac
  3518. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3519. (eval "$ac_compile") 2>conftest.er1
  3520. ac_status=$?
  3521. grep -v '^ *+' conftest.er1 >conftest.err
  3522. rm -f conftest.er1
  3523. cat conftest.err >&5
  3524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3525. (exit $ac_status); } && {
  3526. test -z "$ac_c_werror_flag" ||
  3527. test ! -s conftest.err
  3528. } && test -s conftest.$ac_objext; then
  3529. cat >conftest.$ac_ext <<_ACEOF
  3530. /* confdefs.h. */
  3531. _ACEOF
  3532. cat confdefs.h >>conftest.$ac_ext
  3533. cat >>conftest.$ac_ext <<_ACEOF
  3534. /* end confdefs.h. */
  3535. $ac_includes_default
  3536. int
  3537. main ()
  3538. {
  3539. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  3540. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  3541. test_array [0] = 0
  3542.  
  3543. ;
  3544. return 0;
  3545. }
  3546. _ACEOF
  3547. rm -f conftest.$ac_objext
  3548. if { (ac_try="$ac_compile"
  3549. case "(($ac_try" in
  3550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3551. *) ac_try_echo=$ac_try;;
  3552. esac
  3553. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3554. (eval "$ac_compile") 2>conftest.er1
  3555. ac_status=$?
  3556. grep -v '^ *+' conftest.er1 >conftest.err
  3557. rm -f conftest.er1
  3558. cat conftest.err >&5
  3559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3560. (exit $ac_status); } && {
  3561. test -z "$ac_c_werror_flag" ||
  3562. test ! -s conftest.err
  3563. } && test -s conftest.$ac_objext; then
  3564. :
  3565. else
  3566. echo "$as_me: failed program was:" >&5
  3567. sed 's/^/| /' conftest.$ac_ext >&5
  3568.  
  3569. case $ac_type in
  3570. int32_t) ac_cv_c_int32_t=yes ;;
  3571. *) ac_cv_c_int32_t=$ac_type ;;
  3572. esac
  3573.  
  3574. fi
  3575.  
  3576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3577. else
  3578. echo "$as_me: failed program was:" >&5
  3579. sed 's/^/| /' conftest.$ac_ext >&5
  3580.  
  3581.  
  3582. fi
  3583.  
  3584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3585. test "$ac_cv_c_int32_t" != no && break
  3586. done
  3587. fi
  3588. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  3589. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  3590. case $ac_cv_c_int32_t in #(
  3591. no|yes) ;; #(
  3592. *)
  3593.  
  3594. cat >>confdefs.h <<_ACEOF
  3595. #define int32_t $ac_cv_c_int32_t
  3596. _ACEOF
  3597. ;;
  3598. esac
  3599.  
  3600.  
  3601. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  3602. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  3603. if test "${ac_cv_c_uint16_t+set}" = set; then
  3604. echo $ECHO_N "(cached) $ECHO_C" >&6
  3605. else
  3606. ac_cv_c_uint16_t=no
  3607. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  3608. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  3609. cat >conftest.$ac_ext <<_ACEOF
  3610. /* confdefs.h. */
  3611. _ACEOF
  3612. cat confdefs.h >>conftest.$ac_ext
  3613. cat >>conftest.$ac_ext <<_ACEOF
  3614. /* end confdefs.h. */
  3615. $ac_includes_default
  3616. int
  3617. main ()
  3618. {
  3619. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  3620. test_array [0] = 0
  3621.  
  3622. ;
  3623. return 0;
  3624. }
  3625. _ACEOF
  3626. rm -f conftest.$ac_objext
  3627. if { (ac_try="$ac_compile"
  3628. case "(($ac_try" in
  3629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3630. *) ac_try_echo=$ac_try;;
  3631. esac
  3632. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3633. (eval "$ac_compile") 2>conftest.er1
  3634. ac_status=$?
  3635. grep -v '^ *+' conftest.er1 >conftest.err
  3636. rm -f conftest.er1
  3637. cat conftest.err >&5
  3638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3639. (exit $ac_status); } && {
  3640. test -z "$ac_c_werror_flag" ||
  3641. test ! -s conftest.err
  3642. } && test -s conftest.$ac_objext; then
  3643. case $ac_type in
  3644. uint16_t) ac_cv_c_uint16_t=yes ;;
  3645. *) ac_cv_c_uint16_t=$ac_type ;;
  3646. esac
  3647.  
  3648. else
  3649. echo "$as_me: failed program was:" >&5
  3650. sed 's/^/| /' conftest.$ac_ext >&5
  3651.  
  3652.  
  3653. fi
  3654.  
  3655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3656. test "$ac_cv_c_uint16_t" != no && break
  3657. done
  3658. fi
  3659. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  3660. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  3661. case $ac_cv_c_uint16_t in #(
  3662. no|yes) ;; #(
  3663. *)
  3664.  
  3665.  
  3666. cat >>confdefs.h <<_ACEOF
  3667. #define uint16_t $ac_cv_c_uint16_t
  3668. _ACEOF
  3669. ;;
  3670. esac
  3671.  
  3672.  
  3673. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  3674. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  3675. if test "${ac_cv_c_uint32_t+set}" = set; then
  3676. echo $ECHO_N "(cached) $ECHO_C" >&6
  3677. else
  3678. ac_cv_c_uint32_t=no
  3679. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  3680. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  3681. cat >conftest.$ac_ext <<_ACEOF
  3682. /* confdefs.h. */
  3683. _ACEOF
  3684. cat confdefs.h >>conftest.$ac_ext
  3685. cat >>conftest.$ac_ext <<_ACEOF
  3686. /* end confdefs.h. */
  3687. $ac_includes_default
  3688. int
  3689. main ()
  3690. {
  3691. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  3692. test_array [0] = 0
  3693.  
  3694. ;
  3695. return 0;
  3696. }
  3697. _ACEOF
  3698. rm -f conftest.$ac_objext
  3699. if { (ac_try="$ac_compile"
  3700. case "(($ac_try" in
  3701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3702. *) ac_try_echo=$ac_try;;
  3703. esac
  3704. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3705. (eval "$ac_compile") 2>conftest.er1
  3706. ac_status=$?
  3707. grep -v '^ *+' conftest.er1 >conftest.err
  3708. rm -f conftest.er1
  3709. cat conftest.err >&5
  3710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3711. (exit $ac_status); } && {
  3712. test -z "$ac_c_werror_flag" ||
  3713. test ! -s conftest.err
  3714. } && test -s conftest.$ac_objext; then
  3715. case $ac_type in
  3716. uint32_t) ac_cv_c_uint32_t=yes ;;
  3717. *) ac_cv_c_uint32_t=$ac_type ;;
  3718. esac
  3719.  
  3720. else
  3721. echo "$as_me: failed program was:" >&5
  3722. sed 's/^/| /' conftest.$ac_ext >&5
  3723.  
  3724.  
  3725. fi
  3726.  
  3727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3728. test "$ac_cv_c_uint32_t" != no && break
  3729. done
  3730. fi
  3731. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  3732. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  3733. case $ac_cv_c_uint32_t in #(
  3734. no|yes) ;; #(
  3735. *)
  3736.  
  3737. cat >>confdefs.h <<\_ACEOF
  3738. #define _UINT32_T 1
  3739. _ACEOF
  3740.  
  3741.  
  3742. cat >>confdefs.h <<_ACEOF
  3743. #define uint32_t $ac_cv_c_uint32_t
  3744. _ACEOF
  3745. ;;
  3746. esac
  3747.  
  3748.  
  3749. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  3750. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  3751. if test "${ac_cv_c_uint8_t+set}" = set; then
  3752. echo $ECHO_N "(cached) $ECHO_C" >&6
  3753. else
  3754. ac_cv_c_uint8_t=no
  3755. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  3756. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  3757. cat >conftest.$ac_ext <<_ACEOF
  3758. /* confdefs.h. */
  3759. _ACEOF
  3760. cat confdefs.h >>conftest.$ac_ext
  3761. cat >>conftest.$ac_ext <<_ACEOF
  3762. /* end confdefs.h. */
  3763. $ac_includes_default
  3764. int
  3765. main ()
  3766. {
  3767. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  3768. test_array [0] = 0
  3769.  
  3770. ;
  3771. return 0;
  3772. }
  3773. _ACEOF
  3774. rm -f conftest.$ac_objext
  3775. if { (ac_try="$ac_compile"
  3776. case "(($ac_try" in
  3777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3778. *) ac_try_echo=$ac_try;;
  3779. esac
  3780. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3781. (eval "$ac_compile") 2>conftest.er1
  3782. ac_status=$?
  3783. grep -v '^ *+' conftest.er1 >conftest.err
  3784. rm -f conftest.er1
  3785. cat conftest.err >&5
  3786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3787. (exit $ac_status); } && {
  3788. test -z "$ac_c_werror_flag" ||
  3789. test ! -s conftest.err
  3790. } && test -s conftest.$ac_objext; then
  3791. case $ac_type in
  3792. uint8_t) ac_cv_c_uint8_t=yes ;;
  3793. *) ac_cv_c_uint8_t=$ac_type ;;
  3794. esac
  3795.  
  3796. else
  3797. echo "$as_me: failed program was:" >&5
  3798. sed 's/^/| /' conftest.$ac_ext >&5
  3799.  
  3800.  
  3801. fi
  3802.  
  3803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3804. test "$ac_cv_c_uint8_t" != no && break
  3805. done
  3806. fi
  3807. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  3808. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  3809. case $ac_cv_c_uint8_t in #(
  3810. no|yes) ;; #(
  3811. *)
  3812.  
  3813. cat >>confdefs.h <<\_ACEOF
  3814. #define _UINT8_T 1
  3815. _ACEOF
  3816.  
  3817.  
  3818. cat >>confdefs.h <<_ACEOF
  3819. #define uint8_t $ac_cv_c_uint8_t
  3820. _ACEOF
  3821. ;;
  3822. esac
  3823.  
  3824.  
  3825. # Checks for library functions.
  3826. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3827. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  3828. if test "${ac_cv_header_stdc+set}" = set; then
  3829. echo $ECHO_N "(cached) $ECHO_C" >&6
  3830. else
  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 <stdlib.h>
  3838. #include <stdarg.h>
  3839. #include <string.h>
  3840. #include <float.h>
  3841.  
  3842. int
  3843. main ()
  3844. {
  3845.  
  3846. ;
  3847. return 0;
  3848. }
  3849. _ACEOF
  3850. rm -f conftest.$ac_objext
  3851. if { (ac_try="$ac_compile"
  3852. case "(($ac_try" in
  3853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3854. *) ac_try_echo=$ac_try;;
  3855. esac
  3856. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3857. (eval "$ac_compile") 2>conftest.er1
  3858. ac_status=$?
  3859. grep -v '^ *+' conftest.er1 >conftest.err
  3860. rm -f conftest.er1
  3861. cat conftest.err >&5
  3862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3863. (exit $ac_status); } && {
  3864. test -z "$ac_c_werror_flag" ||
  3865. test ! -s conftest.err
  3866. } && test -s conftest.$ac_objext; then
  3867. ac_cv_header_stdc=yes
  3868. else
  3869. echo "$as_me: failed program was:" >&5
  3870. sed 's/^/| /' conftest.$ac_ext >&5
  3871.  
  3872. ac_cv_header_stdc=no
  3873. fi
  3874.  
  3875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3876.  
  3877. if test $ac_cv_header_stdc = yes; then
  3878. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3879. cat >conftest.$ac_ext <<_ACEOF
  3880. /* confdefs.h. */
  3881. _ACEOF
  3882. cat confdefs.h >>conftest.$ac_ext
  3883. cat >>conftest.$ac_ext <<_ACEOF
  3884. /* end confdefs.h. */
  3885. #include <string.h>
  3886.  
  3887. _ACEOF
  3888. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3889. $EGREP "memchr" >/dev/null 2>&1; then
  3890. :
  3891. else
  3892. ac_cv_header_stdc=no
  3893. fi
  3894. rm -f conftest*
  3895.  
  3896. fi
  3897.  
  3898. if test $ac_cv_header_stdc = yes; then
  3899. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3900. cat >conftest.$ac_ext <<_ACEOF
  3901. /* confdefs.h. */
  3902. _ACEOF
  3903. cat confdefs.h >>conftest.$ac_ext
  3904. cat >>conftest.$ac_ext <<_ACEOF
  3905. /* end confdefs.h. */
  3906. #include <stdlib.h>
  3907.  
  3908. _ACEOF
  3909. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3910. $EGREP "free" >/dev/null 2>&1; then
  3911. :
  3912. else
  3913. ac_cv_header_stdc=no
  3914. fi
  3915. rm -f conftest*
  3916.  
  3917. fi
  3918.  
  3919. if test $ac_cv_header_stdc = yes; then
  3920. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3921. if test "$cross_compiling" = yes; then
  3922. :
  3923. else
  3924. cat >conftest.$ac_ext <<_ACEOF
  3925. /* confdefs.h. */
  3926. _ACEOF
  3927. cat confdefs.h >>conftest.$ac_ext
  3928. cat >>conftest.$ac_ext <<_ACEOF
  3929. /* end confdefs.h. */
  3930. #include <ctype.h>
  3931. #include <stdlib.h>
  3932. #if ((' ' & 0x0FF) == 0x020)
  3933. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3934. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3935. #else
  3936. # define ISLOWER(c) \
  3937. (('a' <= (c) && (c) <= 'i') \
  3938. || ('j' <= (c) && (c) <= 'r') \
  3939. || ('s' <= (c) && (c) <= 'z'))
  3940. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3941. #endif
  3942.  
  3943. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3944. int
  3945. main ()
  3946. {
  3947. int i;
  3948. for (i = 0; i < 256; i++)
  3949. if (XOR (islower (i), ISLOWER (i))
  3950. || toupper (i) != TOUPPER (i))
  3951. return 2;
  3952. return 0;
  3953. }
  3954. _ACEOF
  3955. rm -f conftest$ac_exeext
  3956. if { (ac_try="$ac_link"
  3957. case "(($ac_try" in
  3958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3959. *) ac_try_echo=$ac_try;;
  3960. esac
  3961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3962. (eval "$ac_link") 2>&5
  3963. ac_status=$?
  3964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3965. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3966. { (case "(($ac_try" in
  3967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3968. *) ac_try_echo=$ac_try;;
  3969. esac
  3970. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3971. (eval "$ac_try") 2>&5
  3972. ac_status=$?
  3973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3974. (exit $ac_status); }; }; then
  3975. :
  3976. else
  3977. echo "$as_me: program exited with status $ac_status" >&5
  3978. echo "$as_me: failed program was:" >&5
  3979. sed 's/^/| /' conftest.$ac_ext >&5
  3980.  
  3981. ( exit $ac_status )
  3982. ac_cv_header_stdc=no
  3983. fi
  3984. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3985. fi
  3986.  
  3987.  
  3988. fi
  3989. fi
  3990. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3991. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  3992. if test $ac_cv_header_stdc = yes; then
  3993.  
  3994. cat >>confdefs.h <<\_ACEOF
  3995. #define STDC_HEADERS 1
  3996. _ACEOF
  3997.  
  3998. fi
  3999.  
  4000. if test $ac_cv_c_compiler_gnu = yes; then
  4001. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  4002. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  4003. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  4004. echo $ECHO_N "(cached) $ECHO_C" >&6
  4005. else
  4006. ac_pattern="Autoconf.*'x'"
  4007. cat >conftest.$ac_ext <<_ACEOF
  4008. /* confdefs.h. */
  4009. _ACEOF
  4010. cat confdefs.h >>conftest.$ac_ext
  4011. cat >>conftest.$ac_ext <<_ACEOF
  4012. /* end confdefs.h. */
  4013. #include <sgtty.h>
  4014. Autoconf TIOCGETP
  4015. _ACEOF
  4016. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4017. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  4018. ac_cv_prog_gcc_traditional=yes
  4019. else
  4020. ac_cv_prog_gcc_traditional=no
  4021. fi
  4022. rm -f conftest*
  4023.  
  4024.  
  4025. if test $ac_cv_prog_gcc_traditional = no; then
  4026. cat >conftest.$ac_ext <<_ACEOF
  4027. /* confdefs.h. */
  4028. _ACEOF
  4029. cat confdefs.h >>conftest.$ac_ext
  4030. cat >>conftest.$ac_ext <<_ACEOF
  4031. /* end confdefs.h. */
  4032. #include <termio.h>
  4033. Autoconf TCGETA
  4034. _ACEOF
  4035. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4036. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  4037. ac_cv_prog_gcc_traditional=yes
  4038. fi
  4039. rm -f conftest*
  4040.  
  4041. fi
  4042. fi
  4043. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  4044. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  4045. if test $ac_cv_prog_gcc_traditional = yes; then
  4046. CC="$CC -traditional"
  4047. fi
  4048. fi
  4049.  
  4050.  
  4051.  
  4052.  
  4053.  
  4054.  
  4055. for ac_func in gethostbyname memset inet_addr inet_aton inet_pton
  4056. do
  4057. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4058. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  4059. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  4060. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  4061. echo $ECHO_N "(cached) $ECHO_C" >&6
  4062. else
  4063. cat >conftest.$ac_ext <<_ACEOF
  4064. /* confdefs.h. */
  4065. _ACEOF
  4066. cat confdefs.h >>conftest.$ac_ext
  4067. cat >>conftest.$ac_ext <<_ACEOF
  4068. /* end confdefs.h. */
  4069. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4070. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4071. #define $ac_func innocuous_$ac_func
  4072.  
  4073. /* System header to define __stub macros and hopefully few prototypes,
  4074. which can conflict with char $ac_func (); below.
  4075. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4076. <limits.h> exists even on freestanding compilers. */
  4077.  
  4078. #ifdef __STDC__
  4079. # include <limits.h>
  4080. #else
  4081. # include <assert.h>
  4082. #endif
  4083.  
  4084. #undef $ac_func
  4085.  
  4086. /* Override any GCC internal prototype to avoid an error.
  4087. Use char because int might match the return type of a GCC
  4088. builtin and then its argument prototype would still apply. */
  4089. #ifdef __cplusplus
  4090. extern "C"
  4091. #endif
  4092. char $ac_func ();
  4093. /* The GNU C library defines this for functions which it implements
  4094. to always fail with ENOSYS. Some functions are actually named
  4095. something starting with __ and the normal name is an alias. */
  4096. #if defined __stub_$ac_func || defined __stub___$ac_func
  4097. choke me
  4098. #endif
  4099.  
  4100. int
  4101. main ()
  4102. {
  4103. return $ac_func ();
  4104. ;
  4105. return 0;
  4106. }
  4107. _ACEOF
  4108. rm -f conftest.$ac_objext conftest$ac_exeext
  4109. if { (ac_try="$ac_link"
  4110. case "(($ac_try" in
  4111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4112. *) ac_try_echo=$ac_try;;
  4113. esac
  4114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4115. (eval "$ac_link") 2>conftest.er1
  4116. ac_status=$?
  4117. grep -v '^ *+' conftest.er1 >conftest.err
  4118. rm -f conftest.er1
  4119. cat conftest.err >&5
  4120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4121. (exit $ac_status); } && {
  4122. test -z "$ac_c_werror_flag" ||
  4123. test ! -s conftest.err
  4124. } && test -s conftest$ac_exeext &&
  4125. $as_test_x conftest$ac_exeext; then
  4126. eval "$as_ac_var=yes"
  4127. else
  4128. echo "$as_me: failed program was:" >&5
  4129. sed 's/^/| /' conftest.$ac_ext >&5
  4130.  
  4131. eval "$as_ac_var=no"
  4132. fi
  4133.  
  4134. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4135. conftest$ac_exeext conftest.$ac_ext
  4136. fi
  4137. ac_res=`eval echo '${'$as_ac_var'}'`
  4138. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4139. echo "${ECHO_T}$ac_res" >&6; }
  4140. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4141. cat >>confdefs.h <<_ACEOF
  4142. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4143. _ACEOF
  4144.  
  4145. fi
  4146. done
  4147.  
  4148.  
  4149. # my additions
  4150. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  4151. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  4152. if test "${ac_cv_c_bigendian+set}" = set; then
  4153. echo $ECHO_N "(cached) $ECHO_C" >&6
  4154. else
  4155. # See if sys/param.h defines the BYTE_ORDER macro.
  4156. cat >conftest.$ac_ext <<_ACEOF
  4157. /* confdefs.h. */
  4158. _ACEOF
  4159. cat confdefs.h >>conftest.$ac_ext
  4160. cat >>conftest.$ac_ext <<_ACEOF
  4161. /* end confdefs.h. */
  4162. #include <sys/types.h>
  4163. #include <sys/param.h>
  4164.  
  4165. int
  4166. main ()
  4167. {
  4168. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  4169. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  4170. bogus endian macros
  4171. #endif
  4172.  
  4173. ;
  4174. return 0;
  4175. }
  4176. _ACEOF
  4177. rm -f conftest.$ac_objext
  4178. if { (ac_try="$ac_compile"
  4179. case "(($ac_try" in
  4180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4181. *) ac_try_echo=$ac_try;;
  4182. esac
  4183. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4184. (eval "$ac_compile") 2>conftest.er1
  4185. ac_status=$?
  4186. grep -v '^ *+' conftest.er1 >conftest.err
  4187. rm -f conftest.er1
  4188. cat conftest.err >&5
  4189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4190. (exit $ac_status); } && {
  4191. test -z "$ac_c_werror_flag" ||
  4192. test ! -s conftest.err
  4193. } && test -s conftest.$ac_objext; then
  4194. # It does; now see whether it defined to BIG_ENDIAN or not.
  4195. cat >conftest.$ac_ext <<_ACEOF
  4196. /* confdefs.h. */
  4197. _ACEOF
  4198. cat confdefs.h >>conftest.$ac_ext
  4199. cat >>conftest.$ac_ext <<_ACEOF
  4200. /* end confdefs.h. */
  4201. #include <sys/types.h>
  4202. #include <sys/param.h>
  4203.  
  4204. int
  4205. main ()
  4206. {
  4207. #if BYTE_ORDER != BIG_ENDIAN
  4208. not big endian
  4209. #endif
  4210.  
  4211. ;
  4212. return 0;
  4213. }
  4214. _ACEOF
  4215. rm -f conftest.$ac_objext
  4216. if { (ac_try="$ac_compile"
  4217. case "(($ac_try" in
  4218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4219. *) ac_try_echo=$ac_try;;
  4220. esac
  4221. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4222. (eval "$ac_compile") 2>conftest.er1
  4223. ac_status=$?
  4224. grep -v '^ *+' conftest.er1 >conftest.err
  4225. rm -f conftest.er1
  4226. cat conftest.err >&5
  4227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4228. (exit $ac_status); } && {
  4229. test -z "$ac_c_werror_flag" ||
  4230. test ! -s conftest.err
  4231. } && test -s conftest.$ac_objext; then
  4232. ac_cv_c_bigendian=yes
  4233. else
  4234. echo "$as_me: failed program was:" >&5
  4235. sed 's/^/| /' conftest.$ac_ext >&5
  4236.  
  4237. ac_cv_c_bigendian=no
  4238. fi
  4239.  
  4240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4241. else
  4242. echo "$as_me: failed program was:" >&5
  4243. sed 's/^/| /' conftest.$ac_ext >&5
  4244.  
  4245. # It does not; compile a test program.
  4246. if test "$cross_compiling" = yes; then
  4247. # try to guess the endianness by grepping values into an object file
  4248. ac_cv_c_bigendian=unknown
  4249. cat >conftest.$ac_ext <<_ACEOF
  4250. /* confdefs.h. */
  4251. _ACEOF
  4252. cat confdefs.h >>conftest.$ac_ext
  4253. cat >>conftest.$ac_ext <<_ACEOF
  4254. /* end confdefs.h. */
  4255. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4256. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4257. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  4258. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4259. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4260. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  4261. int
  4262. main ()
  4263. {
  4264. _ascii (); _ebcdic ();
  4265. ;
  4266. return 0;
  4267. }
  4268. _ACEOF
  4269. rm -f conftest.$ac_objext
  4270. if { (ac_try="$ac_compile"
  4271. case "(($ac_try" in
  4272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4273. *) ac_try_echo=$ac_try;;
  4274. esac
  4275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4276. (eval "$ac_compile") 2>conftest.er1
  4277. ac_status=$?
  4278. grep -v '^ *+' conftest.er1 >conftest.err
  4279. rm -f conftest.er1
  4280. cat conftest.err >&5
  4281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4282. (exit $ac_status); } && {
  4283. test -z "$ac_c_werror_flag" ||
  4284. test ! -s conftest.err
  4285. } && test -s conftest.$ac_objext; then
  4286. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  4287. ac_cv_c_bigendian=yes
  4288. fi
  4289. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4290. if test "$ac_cv_c_bigendian" = unknown; then
  4291. ac_cv_c_bigendian=no
  4292. else
  4293. # finding both strings is unlikely to happen, but who knows?
  4294. ac_cv_c_bigendian=unknown
  4295. fi
  4296. fi
  4297. else
  4298. echo "$as_me: failed program was:" >&5
  4299. sed 's/^/| /' conftest.$ac_ext >&5
  4300.  
  4301.  
  4302. fi
  4303.  
  4304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4305. else
  4306. cat >conftest.$ac_ext <<_ACEOF
  4307. /* confdefs.h. */
  4308. _ACEOF
  4309. cat confdefs.h >>conftest.$ac_ext
  4310. cat >>conftest.$ac_ext <<_ACEOF
  4311. /* end confdefs.h. */
  4312. $ac_includes_default
  4313. int
  4314. main ()
  4315. {
  4316.  
  4317. /* Are we little or big endian? From Harbison&Steele. */
  4318. union
  4319. {
  4320. long int l;
  4321. char c[sizeof (long int)];
  4322. } u;
  4323. u.l = 1;
  4324. return u.c[sizeof (long int) - 1] == 1;
  4325.  
  4326. ;
  4327. return 0;
  4328. }
  4329. _ACEOF
  4330. rm -f conftest$ac_exeext
  4331. if { (ac_try="$ac_link"
  4332. case "(($ac_try" in
  4333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4334. *) ac_try_echo=$ac_try;;
  4335. esac
  4336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4337. (eval "$ac_link") 2>&5
  4338. ac_status=$?
  4339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4340. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4341. { (case "(($ac_try" in
  4342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4343. *) ac_try_echo=$ac_try;;
  4344. esac
  4345. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4346. (eval "$ac_try") 2>&5
  4347. ac_status=$?
  4348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4349. (exit $ac_status); }; }; then
  4350. ac_cv_c_bigendian=no
  4351. else
  4352. echo "$as_me: program exited with status $ac_status" >&5
  4353. echo "$as_me: failed program was:" >&5
  4354. sed 's/^/| /' conftest.$ac_ext >&5
  4355.  
  4356. ( exit $ac_status )
  4357. ac_cv_c_bigendian=yes
  4358. fi
  4359. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4360. fi
  4361.  
  4362.  
  4363. fi
  4364.  
  4365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4366. fi
  4367. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  4368. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  4369. case $ac_cv_c_bigendian in
  4370. yes)
  4371.  
  4372. cat >>confdefs.h <<\_ACEOF
  4373. #define WORDS_BIGENDIAN 1
  4374. _ACEOF
  4375. ;;
  4376. no)
  4377. ;;
  4378. *)
  4379. { { echo "$as_me:$LINENO: error: unknown endianness
  4380. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  4381. echo "$as_me: error: unknown endianness
  4382. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  4383. { (exit 1); exit 1; }; } ;;
  4384. esac
  4385.  
  4386. { echo "$as_me:$LINENO: checking for u_int8_t" >&5
  4387. echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
  4388. if test "${ac_cv_type_u_int8_t+set}" = set; then
  4389. echo $ECHO_N "(cached) $ECHO_C" >&6
  4390. else
  4391. cat >conftest.$ac_ext <<_ACEOF
  4392. /* confdefs.h. */
  4393. _ACEOF
  4394. cat confdefs.h >>conftest.$ac_ext
  4395. cat >>conftest.$ac_ext <<_ACEOF
  4396. /* end confdefs.h. */
  4397. $ac_includes_default
  4398. typedef u_int8_t ac__type_new_;
  4399. int
  4400. main ()
  4401. {
  4402. if ((ac__type_new_ *) 0)
  4403. return 0;
  4404. if (sizeof (ac__type_new_))
  4405. return 0;
  4406. ;
  4407. return 0;
  4408. }
  4409. _ACEOF
  4410. rm -f conftest.$ac_objext
  4411. if { (ac_try="$ac_compile"
  4412. case "(($ac_try" in
  4413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4414. *) ac_try_echo=$ac_try;;
  4415. esac
  4416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4417. (eval "$ac_compile") 2>conftest.er1
  4418. ac_status=$?
  4419. grep -v '^ *+' conftest.er1 >conftest.err
  4420. rm -f conftest.er1
  4421. cat conftest.err >&5
  4422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4423. (exit $ac_status); } && {
  4424. test -z "$ac_c_werror_flag" ||
  4425. test ! -s conftest.err
  4426. } && test -s conftest.$ac_objext; then
  4427. ac_cv_type_u_int8_t=yes
  4428. else
  4429. echo "$as_me: failed program was:" >&5
  4430. sed 's/^/| /' conftest.$ac_ext >&5
  4431.  
  4432. ac_cv_type_u_int8_t=no
  4433. fi
  4434.  
  4435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4436. fi
  4437. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  4438. echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
  4439.  
  4440. # The cast to long int works around a bug in the HP C Compiler
  4441. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4442. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4443. # This bug is HP SR number 8606223364.
  4444. { echo "$as_me:$LINENO: checking size of u_int8_t" >&5
  4445. echo $ECHO_N "checking size of u_int8_t... $ECHO_C" >&6; }
  4446. if test "${ac_cv_sizeof_u_int8_t+set}" = set; then
  4447. echo $ECHO_N "(cached) $ECHO_C" >&6
  4448. else
  4449. if test "$cross_compiling" = yes; then
  4450. # Depending upon the size, compute the lo and hi bounds.
  4451. cat >conftest.$ac_ext <<_ACEOF
  4452. /* confdefs.h. */
  4453. _ACEOF
  4454. cat confdefs.h >>conftest.$ac_ext
  4455. cat >>conftest.$ac_ext <<_ACEOF
  4456. /* end confdefs.h. */
  4457. $ac_includes_default
  4458. typedef u_int8_t ac__type_sizeof_;
  4459. int
  4460. main ()
  4461. {
  4462. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  4463. test_array [0] = 0
  4464.  
  4465. ;
  4466. return 0;
  4467. }
  4468. _ACEOF
  4469. rm -f conftest.$ac_objext
  4470. if { (ac_try="$ac_compile"
  4471. case "(($ac_try" in
  4472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4473. *) ac_try_echo=$ac_try;;
  4474. esac
  4475. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4476. (eval "$ac_compile") 2>conftest.er1
  4477. ac_status=$?
  4478. grep -v '^ *+' conftest.er1 >conftest.err
  4479. rm -f conftest.er1
  4480. cat conftest.err >&5
  4481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4482. (exit $ac_status); } && {
  4483. test -z "$ac_c_werror_flag" ||
  4484. test ! -s conftest.err
  4485. } && test -s conftest.$ac_objext; then
  4486. ac_lo=0 ac_mid=0
  4487. while :; do
  4488. cat >conftest.$ac_ext <<_ACEOF
  4489. /* confdefs.h. */
  4490. _ACEOF
  4491. cat confdefs.h >>conftest.$ac_ext
  4492. cat >>conftest.$ac_ext <<_ACEOF
  4493. /* end confdefs.h. */
  4494. $ac_includes_default
  4495. typedef u_int8_t ac__type_sizeof_;
  4496. int
  4497. main ()
  4498. {
  4499. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  4500. test_array [0] = 0
  4501.  
  4502. ;
  4503. return 0;
  4504. }
  4505. _ACEOF
  4506. rm -f conftest.$ac_objext
  4507. if { (ac_try="$ac_compile"
  4508. case "(($ac_try" in
  4509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4510. *) ac_try_echo=$ac_try;;
  4511. esac
  4512. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4513. (eval "$ac_compile") 2>conftest.er1
  4514. ac_status=$?
  4515. grep -v '^ *+' conftest.er1 >conftest.err
  4516. rm -f conftest.er1
  4517. cat conftest.err >&5
  4518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4519. (exit $ac_status); } && {
  4520. test -z "$ac_c_werror_flag" ||
  4521. test ! -s conftest.err
  4522. } && test -s conftest.$ac_objext; then
  4523. ac_hi=$ac_mid; break
  4524. else
  4525. echo "$as_me: failed program was:" >&5
  4526. sed 's/^/| /' conftest.$ac_ext >&5
  4527.  
  4528. ac_lo=`expr $ac_mid + 1`
  4529. if test $ac_lo -le $ac_mid; then
  4530. ac_lo= ac_hi=
  4531. break
  4532. fi
  4533. ac_mid=`expr 2 '*' $ac_mid + 1`
  4534. fi
  4535.  
  4536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4537. done
  4538. else
  4539. echo "$as_me: failed program was:" >&5
  4540. sed 's/^/| /' conftest.$ac_ext >&5
  4541.  
  4542. cat >conftest.$ac_ext <<_ACEOF
  4543. /* confdefs.h. */
  4544. _ACEOF
  4545. cat confdefs.h >>conftest.$ac_ext
  4546. cat >>conftest.$ac_ext <<_ACEOF
  4547. /* end confdefs.h. */
  4548. $ac_includes_default
  4549. typedef u_int8_t ac__type_sizeof_;
  4550. int
  4551. main ()
  4552. {
  4553. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  4554. test_array [0] = 0
  4555.  
  4556. ;
  4557. return 0;
  4558. }
  4559. _ACEOF
  4560. rm -f conftest.$ac_objext
  4561. if { (ac_try="$ac_compile"
  4562. case "(($ac_try" in
  4563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4564. *) ac_try_echo=$ac_try;;
  4565. esac
  4566. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4567. (eval "$ac_compile") 2>conftest.er1
  4568. ac_status=$?
  4569. grep -v '^ *+' conftest.er1 >conftest.err
  4570. rm -f conftest.er1
  4571. cat conftest.err >&5
  4572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4573. (exit $ac_status); } && {
  4574. test -z "$ac_c_werror_flag" ||
  4575. test ! -s conftest.err
  4576. } && test -s conftest.$ac_objext; then
  4577. ac_hi=-1 ac_mid=-1
  4578. while :; do
  4579. cat >conftest.$ac_ext <<_ACEOF
  4580. /* confdefs.h. */
  4581. _ACEOF
  4582. cat confdefs.h >>conftest.$ac_ext
  4583. cat >>conftest.$ac_ext <<_ACEOF
  4584. /* end confdefs.h. */
  4585. $ac_includes_default
  4586. typedef u_int8_t ac__type_sizeof_;
  4587. int
  4588. main ()
  4589. {
  4590. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  4591. test_array [0] = 0
  4592.  
  4593. ;
  4594. return 0;
  4595. }
  4596. _ACEOF
  4597. rm -f conftest.$ac_objext
  4598. if { (ac_try="$ac_compile"
  4599. case "(($ac_try" in
  4600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4601. *) ac_try_echo=$ac_try;;
  4602. esac
  4603. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4604. (eval "$ac_compile") 2>conftest.er1
  4605. ac_status=$?
  4606. grep -v '^ *+' conftest.er1 >conftest.err
  4607. rm -f conftest.er1
  4608. cat conftest.err >&5
  4609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4610. (exit $ac_status); } && {
  4611. test -z "$ac_c_werror_flag" ||
  4612. test ! -s conftest.err
  4613. } && test -s conftest.$ac_objext; then
  4614. ac_lo=$ac_mid; break
  4615. else
  4616. echo "$as_me: failed program was:" >&5
  4617. sed 's/^/| /' conftest.$ac_ext >&5
  4618.  
  4619. ac_hi=`expr '(' $ac_mid ')' - 1`
  4620. if test $ac_mid -le $ac_hi; then
  4621. ac_lo= ac_hi=
  4622. break
  4623. fi
  4624. ac_mid=`expr 2 '*' $ac_mid`
  4625. fi
  4626.  
  4627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4628. done
  4629. else
  4630. echo "$as_me: failed program was:" >&5
  4631. sed 's/^/| /' conftest.$ac_ext >&5
  4632.  
  4633. ac_lo= ac_hi=
  4634. fi
  4635.  
  4636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4637. fi
  4638.  
  4639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4640. # Binary search between lo and hi bounds.
  4641. while test "x$ac_lo" != "x$ac_hi"; do
  4642. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  4643. cat >conftest.$ac_ext <<_ACEOF
  4644. /* confdefs.h. */
  4645. _ACEOF
  4646. cat confdefs.h >>conftest.$ac_ext
  4647. cat >>conftest.$ac_ext <<_ACEOF
  4648. /* end confdefs.h. */
  4649. $ac_includes_default
  4650. typedef u_int8_t ac__type_sizeof_;
  4651. int
  4652. main ()
  4653. {
  4654. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  4655. test_array [0] = 0
  4656.  
  4657. ;
  4658. return 0;
  4659. }
  4660. _ACEOF
  4661. rm -f conftest.$ac_objext
  4662. if { (ac_try="$ac_compile"
  4663. case "(($ac_try" in
  4664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4665. *) ac_try_echo=$ac_try;;
  4666. esac
  4667. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4668. (eval "$ac_compile") 2>conftest.er1
  4669. ac_status=$?
  4670. grep -v '^ *+' conftest.er1 >conftest.err
  4671. rm -f conftest.er1
  4672. cat conftest.err >&5
  4673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4674. (exit $ac_status); } && {
  4675. test -z "$ac_c_werror_flag" ||
  4676. test ! -s conftest.err
  4677. } && test -s conftest.$ac_objext; then
  4678. ac_hi=$ac_mid
  4679. else
  4680. echo "$as_me: failed program was:" >&5
  4681. sed 's/^/| /' conftest.$ac_ext >&5
  4682.  
  4683. ac_lo=`expr '(' $ac_mid ')' + 1`
  4684. fi
  4685.  
  4686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4687. done
  4688. case $ac_lo in
  4689. ?*) ac_cv_sizeof_u_int8_t=$ac_lo;;
  4690. '') if test "$ac_cv_type_u_int8_t" = yes; then
  4691. { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int8_t)
  4692. See \`config.log' for more details." >&5
  4693. echo "$as_me: error: cannot compute sizeof (u_int8_t)
  4694. See \`config.log' for more details." >&2;}
  4695. { (exit 77); exit 77; }; }
  4696. else
  4697. ac_cv_sizeof_u_int8_t=0
  4698. fi ;;
  4699. esac
  4700. else
  4701. cat >conftest.$ac_ext <<_ACEOF
  4702. /* confdefs.h. */
  4703. _ACEOF
  4704. cat confdefs.h >>conftest.$ac_ext
  4705. cat >>conftest.$ac_ext <<_ACEOF
  4706. /* end confdefs.h. */
  4707. $ac_includes_default
  4708. typedef u_int8_t ac__type_sizeof_;
  4709. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  4710. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  4711. #include <stdio.h>
  4712. #include <stdlib.h>
  4713. int
  4714. main ()
  4715. {
  4716.  
  4717. FILE *f = fopen ("conftest.val", "w");
  4718. if (! f)
  4719. return 1;
  4720. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  4721. {
  4722. long int i = longval ();
  4723. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  4724. return 1;
  4725. fprintf (f, "%ld\n", i);
  4726. }
  4727. else
  4728. {
  4729. unsigned long int i = ulongval ();
  4730. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  4731. return 1;
  4732. fprintf (f, "%lu\n", i);
  4733. }
  4734. return ferror (f) || fclose (f) != 0;
  4735.  
  4736. ;
  4737. return 0;
  4738. }
  4739. _ACEOF
  4740. rm -f conftest$ac_exeext
  4741. if { (ac_try="$ac_link"
  4742. case "(($ac_try" in
  4743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4744. *) ac_try_echo=$ac_try;;
  4745. esac
  4746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4747. (eval "$ac_link") 2>&5
  4748. ac_status=$?
  4749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4750. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4751. { (case "(($ac_try" in
  4752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4753. *) ac_try_echo=$ac_try;;
  4754. esac
  4755. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4756. (eval "$ac_try") 2>&5
  4757. ac_status=$?
  4758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4759. (exit $ac_status); }; }; then
  4760. ac_cv_sizeof_u_int8_t=`cat conftest.val`
  4761. else
  4762. echo "$as_me: program exited with status $ac_status" >&5
  4763. echo "$as_me: failed program was:" >&5
  4764. sed 's/^/| /' conftest.$ac_ext >&5
  4765.  
  4766. ( exit $ac_status )
  4767. if test "$ac_cv_type_u_int8_t" = yes; then
  4768. { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int8_t)
  4769. See \`config.log' for more details." >&5
  4770. echo "$as_me: error: cannot compute sizeof (u_int8_t)
  4771. See \`config.log' for more details." >&2;}
  4772. { (exit 77); exit 77; }; }
  4773. else
  4774. ac_cv_sizeof_u_int8_t=0
  4775. fi
  4776. fi
  4777. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4778. fi
  4779. rm -f conftest.val
  4780. fi
  4781. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int8_t" >&5
  4782. echo "${ECHO_T}$ac_cv_sizeof_u_int8_t" >&6; }
  4783.  
  4784.  
  4785.  
  4786. cat >>confdefs.h <<_ACEOF
  4787. #define SIZEOF_U_INT8_T $ac_cv_sizeof_u_int8_t
  4788. _ACEOF
  4789.  
  4790.  
  4791. { echo "$as_me:$LINENO: checking for u_int16_t" >&5
  4792. echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
  4793. if test "${ac_cv_type_u_int16_t+set}" = set; then
  4794. echo $ECHO_N "(cached) $ECHO_C" >&6
  4795. else
  4796. cat >conftest.$ac_ext <<_ACEOF
  4797. /* confdefs.h. */
  4798. _ACEOF
  4799. cat confdefs.h >>conftest.$ac_ext
  4800. cat >>conftest.$ac_ext <<_ACEOF
  4801. /* end confdefs.h. */
  4802. $ac_includes_default
  4803. typedef u_int16_t ac__type_new_;
  4804. int
  4805. main ()
  4806. {
  4807. if ((ac__type_new_ *) 0)
  4808. return 0;
  4809. if (sizeof (ac__type_new_))
  4810. return 0;
  4811. ;
  4812. return 0;
  4813. }
  4814. _ACEOF
  4815. rm -f conftest.$ac_objext
  4816. if { (ac_try="$ac_compile"
  4817. case "(($ac_try" in
  4818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4819. *) ac_try_echo=$ac_try;;
  4820. esac
  4821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4822. (eval "$ac_compile") 2>conftest.er1
  4823. ac_status=$?
  4824. grep -v '^ *+' conftest.er1 >conftest.err
  4825. rm -f conftest.er1
  4826. cat conftest.err >&5
  4827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4828. (exit $ac_status); } && {
  4829. test -z "$ac_c_werror_flag" ||
  4830. test ! -s conftest.err
  4831. } && test -s conftest.$ac_objext; then
  4832. ac_cv_type_u_int16_t=yes
  4833. else
  4834. echo "$as_me: failed program was:" >&5
  4835. sed 's/^/| /' conftest.$ac_ext >&5
  4836.  
  4837. ac_cv_type_u_int16_t=no
  4838. fi
  4839.  
  4840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4841. fi
  4842. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  4843. echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
  4844.  
  4845. # The cast to long int works around a bug in the HP C Compiler
  4846. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4847. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4848. # This bug is HP SR number 8606223364.
  4849. { echo "$as_me:$LINENO: checking size of u_int16_t" >&5
  4850. echo $ECHO_N "checking size of u_int16_t... $ECHO_C" >&6; }
  4851. if test "${ac_cv_sizeof_u_int16_t+set}" = set; then
  4852. echo $ECHO_N "(cached) $ECHO_C" >&6
  4853. else
  4854. if test "$cross_compiling" = yes; then
  4855. # Depending upon the size, compute the lo and hi bounds.
  4856. cat >conftest.$ac_ext <<_ACEOF
  4857. /* confdefs.h. */
  4858. _ACEOF
  4859. cat confdefs.h >>conftest.$ac_ext
  4860. cat >>conftest.$ac_ext <<_ACEOF
  4861. /* end confdefs.h. */
  4862. $ac_includes_default
  4863. typedef u_int16_t ac__type_sizeof_;
  4864. int
  4865. main ()
  4866. {
  4867. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  4868. test_array [0] = 0
  4869.  
  4870. ;
  4871. return 0;
  4872. }
  4873. _ACEOF
  4874. rm -f conftest.$ac_objext
  4875. if { (ac_try="$ac_compile"
  4876. case "(($ac_try" in
  4877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4878. *) ac_try_echo=$ac_try;;
  4879. esac
  4880. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4881. (eval "$ac_compile") 2>conftest.er1
  4882. ac_status=$?
  4883. grep -v '^ *+' conftest.er1 >conftest.err
  4884. rm -f conftest.er1
  4885. cat conftest.err >&5
  4886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4887. (exit $ac_status); } && {
  4888. test -z "$ac_c_werror_flag" ||
  4889. test ! -s conftest.err
  4890. } && test -s conftest.$ac_objext; then
  4891. ac_lo=0 ac_mid=0
  4892. while :; do
  4893. cat >conftest.$ac_ext <<_ACEOF
  4894. /* confdefs.h. */
  4895. _ACEOF
  4896. cat confdefs.h >>conftest.$ac_ext
  4897. cat >>conftest.$ac_ext <<_ACEOF
  4898. /* end confdefs.h. */
  4899. $ac_includes_default
  4900. typedef u_int16_t ac__type_sizeof_;
  4901. int
  4902. main ()
  4903. {
  4904. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  4905. test_array [0] = 0
  4906.  
  4907. ;
  4908. return 0;
  4909. }
  4910. _ACEOF
  4911. rm -f conftest.$ac_objext
  4912. if { (ac_try="$ac_compile"
  4913. case "(($ac_try" in
  4914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4915. *) ac_try_echo=$ac_try;;
  4916. esac
  4917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4918. (eval "$ac_compile") 2>conftest.er1
  4919. ac_status=$?
  4920. grep -v '^ *+' conftest.er1 >conftest.err
  4921. rm -f conftest.er1
  4922. cat conftest.err >&5
  4923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4924. (exit $ac_status); } && {
  4925. test -z "$ac_c_werror_flag" ||
  4926. test ! -s conftest.err
  4927. } && test -s conftest.$ac_objext; then
  4928. ac_hi=$ac_mid; break
  4929. else
  4930. echo "$as_me: failed program was:" >&5
  4931. sed 's/^/| /' conftest.$ac_ext >&5
  4932.  
  4933. ac_lo=`expr $ac_mid + 1`
  4934. if test $ac_lo -le $ac_mid; then
  4935. ac_lo= ac_hi=
  4936. break
  4937. fi
  4938. ac_mid=`expr 2 '*' $ac_mid + 1`
  4939. fi
  4940.  
  4941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4942. done
  4943. else
  4944. echo "$as_me: failed program was:" >&5
  4945. sed 's/^/| /' conftest.$ac_ext >&5
  4946.  
  4947. cat >conftest.$ac_ext <<_ACEOF
  4948. /* confdefs.h. */
  4949. _ACEOF
  4950. cat confdefs.h >>conftest.$ac_ext
  4951. cat >>conftest.$ac_ext <<_ACEOF
  4952. /* end confdefs.h. */
  4953. $ac_includes_default
  4954. typedef u_int16_t ac__type_sizeof_;
  4955. int
  4956. main ()
  4957. {
  4958. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  4959. test_array [0] = 0
  4960.  
  4961. ;
  4962. return 0;
  4963. }
  4964. _ACEOF
  4965. rm -f conftest.$ac_objext
  4966. if { (ac_try="$ac_compile"
  4967. case "(($ac_try" in
  4968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4969. *) ac_try_echo=$ac_try;;
  4970. esac
  4971. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4972. (eval "$ac_compile") 2>conftest.er1
  4973. ac_status=$?
  4974. grep -v '^ *+' conftest.er1 >conftest.err
  4975. rm -f conftest.er1
  4976. cat conftest.err >&5
  4977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4978. (exit $ac_status); } && {
  4979. test -z "$ac_c_werror_flag" ||
  4980. test ! -s conftest.err
  4981. } && test -s conftest.$ac_objext; then
  4982. ac_hi=-1 ac_mid=-1
  4983. while :; do
  4984. cat >conftest.$ac_ext <<_ACEOF
  4985. /* confdefs.h. */
  4986. _ACEOF
  4987. cat confdefs.h >>conftest.$ac_ext
  4988. cat >>conftest.$ac_ext <<_ACEOF
  4989. /* end confdefs.h. */
  4990. $ac_includes_default
  4991. typedef u_int16_t ac__type_sizeof_;
  4992. int
  4993. main ()
  4994. {
  4995. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  4996. test_array [0] = 0
  4997.  
  4998. ;
  4999. return 0;
  5000. }
  5001. _ACEOF
  5002. rm -f conftest.$ac_objext
  5003. if { (ac_try="$ac_compile"
  5004. case "(($ac_try" in
  5005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5006. *) ac_try_echo=$ac_try;;
  5007. esac
  5008. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5009. (eval "$ac_compile") 2>conftest.er1
  5010. ac_status=$?
  5011. grep -v '^ *+' conftest.er1 >conftest.err
  5012. rm -f conftest.er1
  5013. cat conftest.err >&5
  5014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5015. (exit $ac_status); } && {
  5016. test -z "$ac_c_werror_flag" ||
  5017. test ! -s conftest.err
  5018. } && test -s conftest.$ac_objext; then
  5019. ac_lo=$ac_mid; break
  5020. else
  5021. echo "$as_me: failed program was:" >&5
  5022. sed 's/^/| /' conftest.$ac_ext >&5
  5023.  
  5024. ac_hi=`expr '(' $ac_mid ')' - 1`
  5025. if test $ac_mid -le $ac_hi; then
  5026. ac_lo= ac_hi=
  5027. break
  5028. fi
  5029. ac_mid=`expr 2 '*' $ac_mid`
  5030. fi
  5031.  
  5032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5033. done
  5034. else
  5035. echo "$as_me: failed program was:" >&5
  5036. sed 's/^/| /' conftest.$ac_ext >&5
  5037.  
  5038. ac_lo= ac_hi=
  5039. fi
  5040.  
  5041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5042. fi
  5043.  
  5044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5045. # Binary search between lo and hi bounds.
  5046. while test "x$ac_lo" != "x$ac_hi"; do
  5047. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5048. cat >conftest.$ac_ext <<_ACEOF
  5049. /* confdefs.h. */
  5050. _ACEOF
  5051. cat confdefs.h >>conftest.$ac_ext
  5052. cat >>conftest.$ac_ext <<_ACEOF
  5053. /* end confdefs.h. */
  5054. $ac_includes_default
  5055. typedef u_int16_t ac__type_sizeof_;
  5056. int
  5057. main ()
  5058. {
  5059. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5060. test_array [0] = 0
  5061.  
  5062. ;
  5063. return 0;
  5064. }
  5065. _ACEOF
  5066. rm -f conftest.$ac_objext
  5067. if { (ac_try="$ac_compile"
  5068. case "(($ac_try" in
  5069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5070. *) ac_try_echo=$ac_try;;
  5071. esac
  5072. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5073. (eval "$ac_compile") 2>conftest.er1
  5074. ac_status=$?
  5075. grep -v '^ *+' conftest.er1 >conftest.err
  5076. rm -f conftest.er1
  5077. cat conftest.err >&5
  5078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5079. (exit $ac_status); } && {
  5080. test -z "$ac_c_werror_flag" ||
  5081. test ! -s conftest.err
  5082. } && test -s conftest.$ac_objext; then
  5083. ac_hi=$ac_mid
  5084. else
  5085. echo "$as_me: failed program was:" >&5
  5086. sed 's/^/| /' conftest.$ac_ext >&5
  5087.  
  5088. ac_lo=`expr '(' $ac_mid ')' + 1`
  5089. fi
  5090.  
  5091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5092. done
  5093. case $ac_lo in
  5094. ?*) ac_cv_sizeof_u_int16_t=$ac_lo;;
  5095. '') if test "$ac_cv_type_u_int16_t" = yes; then
  5096. { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int16_t)
  5097. See \`config.log' for more details." >&5
  5098. echo "$as_me: error: cannot compute sizeof (u_int16_t)
  5099. See \`config.log' for more details." >&2;}
  5100. { (exit 77); exit 77; }; }
  5101. else
  5102. ac_cv_sizeof_u_int16_t=0
  5103. fi ;;
  5104. esac
  5105. else
  5106. cat >conftest.$ac_ext <<_ACEOF
  5107. /* confdefs.h. */
  5108. _ACEOF
  5109. cat confdefs.h >>conftest.$ac_ext
  5110. cat >>conftest.$ac_ext <<_ACEOF
  5111. /* end confdefs.h. */
  5112. $ac_includes_default
  5113. typedef u_int16_t ac__type_sizeof_;
  5114. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5115. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5116. #include <stdio.h>
  5117. #include <stdlib.h>
  5118. int
  5119. main ()
  5120. {
  5121.  
  5122. FILE *f = fopen ("conftest.val", "w");
  5123. if (! f)
  5124. return 1;
  5125. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  5126. {
  5127. long int i = longval ();
  5128. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5129. return 1;
  5130. fprintf (f, "%ld\n", i);
  5131. }
  5132. else
  5133. {
  5134. unsigned long int i = ulongval ();
  5135. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5136. return 1;
  5137. fprintf (f, "%lu\n", i);
  5138. }
  5139. return ferror (f) || fclose (f) != 0;
  5140.  
  5141. ;
  5142. return 0;
  5143. }
  5144. _ACEOF
  5145. rm -f conftest$ac_exeext
  5146. if { (ac_try="$ac_link"
  5147. case "(($ac_try" in
  5148. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5149. *) ac_try_echo=$ac_try;;
  5150. esac
  5151. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5152. (eval "$ac_link") 2>&5
  5153. ac_status=$?
  5154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5155. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5156. { (case "(($ac_try" in
  5157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5158. *) ac_try_echo=$ac_try;;
  5159. esac
  5160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5161. (eval "$ac_try") 2>&5
  5162. ac_status=$?
  5163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5164. (exit $ac_status); }; }; then
  5165. ac_cv_sizeof_u_int16_t=`cat conftest.val`
  5166. else
  5167. echo "$as_me: program exited with status $ac_status" >&5
  5168. echo "$as_me: failed program was:" >&5
  5169. sed 's/^/| /' conftest.$ac_ext >&5
  5170.  
  5171. ( exit $ac_status )
  5172. if test "$ac_cv_type_u_int16_t" = yes; then
  5173. { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int16_t)
  5174. See \`config.log' for more details." >&5
  5175. echo "$as_me: error: cannot compute sizeof (u_int16_t)
  5176. See \`config.log' for more details." >&2;}
  5177. { (exit 77); exit 77; }; }
  5178. else
  5179. ac_cv_sizeof_u_int16_t=0
  5180. fi
  5181. fi
  5182. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5183. fi
  5184. rm -f conftest.val
  5185. fi
  5186. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int16_t" >&5
  5187. echo "${ECHO_T}$ac_cv_sizeof_u_int16_t" >&6; }
  5188.  
  5189.  
  5190.  
  5191. cat >>confdefs.h <<_ACEOF
  5192. #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
  5193. _ACEOF
  5194.  
  5195.  
  5196. { echo "$as_me:$LINENO: checking for u_int32_t" >&5
  5197. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
  5198. if test "${ac_cv_type_u_int32_t+set}" = set; then
  5199. echo $ECHO_N "(cached) $ECHO_C" >&6
  5200. else
  5201. cat >conftest.$ac_ext <<_ACEOF
  5202. /* confdefs.h. */
  5203. _ACEOF
  5204. cat confdefs.h >>conftest.$ac_ext
  5205. cat >>conftest.$ac_ext <<_ACEOF
  5206. /* end confdefs.h. */
  5207. $ac_includes_default
  5208. typedef u_int32_t ac__type_new_;
  5209. int
  5210. main ()
  5211. {
  5212. if ((ac__type_new_ *) 0)
  5213. return 0;
  5214. if (sizeof (ac__type_new_))
  5215. return 0;
  5216. ;
  5217. return 0;
  5218. }
  5219. _ACEOF
  5220. rm -f conftest.$ac_objext
  5221. if { (ac_try="$ac_compile"
  5222. case "(($ac_try" in
  5223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5224. *) ac_try_echo=$ac_try;;
  5225. esac
  5226. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5227. (eval "$ac_compile") 2>conftest.er1
  5228. ac_status=$?
  5229. grep -v '^ *+' conftest.er1 >conftest.err
  5230. rm -f conftest.er1
  5231. cat conftest.err >&5
  5232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5233. (exit $ac_status); } && {
  5234. test -z "$ac_c_werror_flag" ||
  5235. test ! -s conftest.err
  5236. } && test -s conftest.$ac_objext; then
  5237. ac_cv_type_u_int32_t=yes
  5238. else
  5239. echo "$as_me: failed program was:" >&5
  5240. sed 's/^/| /' conftest.$ac_ext >&5
  5241.  
  5242. ac_cv_type_u_int32_t=no
  5243. fi
  5244.  
  5245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5246. fi
  5247. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  5248. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
  5249.  
  5250. # The cast to long int works around a bug in the HP C Compiler
  5251. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5252. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5253. # This bug is HP SR number 8606223364.
  5254. { echo "$as_me:$LINENO: checking size of u_int32_t" >&5
  5255. echo $ECHO_N "checking size of u_int32_t... $ECHO_C" >&6; }
  5256. if test "${ac_cv_sizeof_u_int32_t+set}" = set; then
  5257. echo $ECHO_N "(cached) $ECHO_C" >&6
  5258. else
  5259. if test "$cross_compiling" = yes; then
  5260. # Depending upon the size, compute the lo and hi bounds.
  5261. cat >conftest.$ac_ext <<_ACEOF
  5262. /* confdefs.h. */
  5263. _ACEOF
  5264. cat confdefs.h >>conftest.$ac_ext
  5265. cat >>conftest.$ac_ext <<_ACEOF
  5266. /* end confdefs.h. */
  5267. $ac_includes_default
  5268. typedef u_int32_t ac__type_sizeof_;
  5269. int
  5270. main ()
  5271. {
  5272. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  5273. test_array [0] = 0
  5274.  
  5275. ;
  5276. return 0;
  5277. }
  5278. _ACEOF
  5279. rm -f conftest.$ac_objext
  5280. if { (ac_try="$ac_compile"
  5281. case "(($ac_try" in
  5282. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5283. *) ac_try_echo=$ac_try;;
  5284. esac
  5285. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5286. (eval "$ac_compile") 2>conftest.er1
  5287. ac_status=$?
  5288. grep -v '^ *+' conftest.er1 >conftest.err
  5289. rm -f conftest.er1
  5290. cat conftest.err >&5
  5291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5292. (exit $ac_status); } && {
  5293. test -z "$ac_c_werror_flag" ||
  5294. test ! -s conftest.err
  5295. } && test -s conftest.$ac_objext; then
  5296. ac_lo=0 ac_mid=0
  5297. while :; do
  5298. cat >conftest.$ac_ext <<_ACEOF
  5299. /* confdefs.h. */
  5300. _ACEOF
  5301. cat confdefs.h >>conftest.$ac_ext
  5302. cat >>conftest.$ac_ext <<_ACEOF
  5303. /* end confdefs.h. */
  5304. $ac_includes_default
  5305. typedef u_int32_t ac__type_sizeof_;
  5306. int
  5307. main ()
  5308. {
  5309. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5310. test_array [0] = 0
  5311.  
  5312. ;
  5313. return 0;
  5314. }
  5315. _ACEOF
  5316. rm -f conftest.$ac_objext
  5317. if { (ac_try="$ac_compile"
  5318. case "(($ac_try" in
  5319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5320. *) ac_try_echo=$ac_try;;
  5321. esac
  5322. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5323. (eval "$ac_compile") 2>conftest.er1
  5324. ac_status=$?
  5325. grep -v '^ *+' conftest.er1 >conftest.err
  5326. rm -f conftest.er1
  5327. cat conftest.err >&5
  5328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5329. (exit $ac_status); } && {
  5330. test -z "$ac_c_werror_flag" ||
  5331. test ! -s conftest.err
  5332. } && test -s conftest.$ac_objext; then
  5333. ac_hi=$ac_mid; break
  5334. else
  5335. echo "$as_me: failed program was:" >&5
  5336. sed 's/^/| /' conftest.$ac_ext >&5
  5337.  
  5338. ac_lo=`expr $ac_mid + 1`
  5339. if test $ac_lo -le $ac_mid; then
  5340. ac_lo= ac_hi=
  5341. break
  5342. fi
  5343. ac_mid=`expr 2 '*' $ac_mid + 1`
  5344. fi
  5345.  
  5346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5347. done
  5348. else
  5349. echo "$as_me: failed program was:" >&5
  5350. sed 's/^/| /' conftest.$ac_ext >&5
  5351.  
  5352. cat >conftest.$ac_ext <<_ACEOF
  5353. /* confdefs.h. */
  5354. _ACEOF
  5355. cat confdefs.h >>conftest.$ac_ext
  5356. cat >>conftest.$ac_ext <<_ACEOF
  5357. /* end confdefs.h. */
  5358. $ac_includes_default
  5359. typedef u_int32_t ac__type_sizeof_;
  5360. int
  5361. main ()
  5362. {
  5363. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  5364. test_array [0] = 0
  5365.  
  5366. ;
  5367. return 0;
  5368. }
  5369. _ACEOF
  5370. rm -f conftest.$ac_objext
  5371. if { (ac_try="$ac_compile"
  5372. case "(($ac_try" in
  5373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5374. *) ac_try_echo=$ac_try;;
  5375. esac
  5376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5377. (eval "$ac_compile") 2>conftest.er1
  5378. ac_status=$?
  5379. grep -v '^ *+' conftest.er1 >conftest.err
  5380. rm -f conftest.er1
  5381. cat conftest.err >&5
  5382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5383. (exit $ac_status); } && {
  5384. test -z "$ac_c_werror_flag" ||
  5385. test ! -s conftest.err
  5386. } && test -s conftest.$ac_objext; then
  5387. ac_hi=-1 ac_mid=-1
  5388. while :; do
  5389. cat >conftest.$ac_ext <<_ACEOF
  5390. /* confdefs.h. */
  5391. _ACEOF
  5392. cat confdefs.h >>conftest.$ac_ext
  5393. cat >>conftest.$ac_ext <<_ACEOF
  5394. /* end confdefs.h. */
  5395. $ac_includes_default
  5396. typedef u_int32_t ac__type_sizeof_;
  5397. int
  5398. main ()
  5399. {
  5400. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  5401. test_array [0] = 0
  5402.  
  5403. ;
  5404. return 0;
  5405. }
  5406. _ACEOF
  5407. rm -f conftest.$ac_objext
  5408. if { (ac_try="$ac_compile"
  5409. case "(($ac_try" in
  5410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5411. *) ac_try_echo=$ac_try;;
  5412. esac
  5413. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5414. (eval "$ac_compile") 2>conftest.er1
  5415. ac_status=$?
  5416. grep -v '^ *+' conftest.er1 >conftest.err
  5417. rm -f conftest.er1
  5418. cat conftest.err >&5
  5419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5420. (exit $ac_status); } && {
  5421. test -z "$ac_c_werror_flag" ||
  5422. test ! -s conftest.err
  5423. } && test -s conftest.$ac_objext; then
  5424. ac_lo=$ac_mid; break
  5425. else
  5426. echo "$as_me: failed program was:" >&5
  5427. sed 's/^/| /' conftest.$ac_ext >&5
  5428.  
  5429. ac_hi=`expr '(' $ac_mid ')' - 1`
  5430. if test $ac_mid -le $ac_hi; then
  5431. ac_lo= ac_hi=
  5432. break
  5433. fi
  5434. ac_mid=`expr 2 '*' $ac_mid`
  5435. fi
  5436.  
  5437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5438. done
  5439. else
  5440. echo "$as_me: failed program was:" >&5
  5441. sed 's/^/| /' conftest.$ac_ext >&5
  5442.  
  5443. ac_lo= ac_hi=
  5444. fi
  5445.  
  5446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5447. fi
  5448.  
  5449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5450. # Binary search between lo and hi bounds.
  5451. while test "x$ac_lo" != "x$ac_hi"; do
  5452. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5453. cat >conftest.$ac_ext <<_ACEOF
  5454. /* confdefs.h. */
  5455. _ACEOF
  5456. cat confdefs.h >>conftest.$ac_ext
  5457. cat >>conftest.$ac_ext <<_ACEOF
  5458. /* end confdefs.h. */
  5459. $ac_includes_default
  5460. typedef u_int32_t ac__type_sizeof_;
  5461. int
  5462. main ()
  5463. {
  5464. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5465. test_array [0] = 0
  5466.  
  5467. ;
  5468. return 0;
  5469. }
  5470. _ACEOF
  5471. rm -f conftest.$ac_objext
  5472. if { (ac_try="$ac_compile"
  5473. case "(($ac_try" in
  5474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5475. *) ac_try_echo=$ac_try;;
  5476. esac
  5477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5478. (eval "$ac_compile") 2>conftest.er1
  5479. ac_status=$?
  5480. grep -v '^ *+' conftest.er1 >conftest.err
  5481. rm -f conftest.er1
  5482. cat conftest.err >&5
  5483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5484. (exit $ac_status); } && {
  5485. test -z "$ac_c_werror_flag" ||
  5486. test ! -s conftest.err
  5487. } && test -s conftest.$ac_objext; then
  5488. ac_hi=$ac_mid
  5489. else
  5490. echo "$as_me: failed program was:" >&5
  5491. sed 's/^/| /' conftest.$ac_ext >&5
  5492.  
  5493. ac_lo=`expr '(' $ac_mid ')' + 1`
  5494. fi
  5495.  
  5496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5497. done
  5498. case $ac_lo in
  5499. ?*) ac_cv_sizeof_u_int32_t=$ac_lo;;
  5500. '') if test "$ac_cv_type_u_int32_t" = yes; then
  5501. { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int32_t)
  5502. See \`config.log' for more details." >&5
  5503. echo "$as_me: error: cannot compute sizeof (u_int32_t)
  5504. See \`config.log' for more details." >&2;}
  5505. { (exit 77); exit 77; }; }
  5506. else
  5507. ac_cv_sizeof_u_int32_t=0
  5508. fi ;;
  5509. esac
  5510. else
  5511. cat >conftest.$ac_ext <<_ACEOF
  5512. /* confdefs.h. */
  5513. _ACEOF
  5514. cat confdefs.h >>conftest.$ac_ext
  5515. cat >>conftest.$ac_ext <<_ACEOF
  5516. /* end confdefs.h. */
  5517. $ac_includes_default
  5518. typedef u_int32_t ac__type_sizeof_;
  5519. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5520. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5521. #include <stdio.h>
  5522. #include <stdlib.h>
  5523. int
  5524. main ()
  5525. {
  5526.  
  5527. FILE *f = fopen ("conftest.val", "w");
  5528. if (! f)
  5529. return 1;
  5530. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  5531. {
  5532. long int i = longval ();
  5533. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5534. return 1;
  5535. fprintf (f, "%ld\n", i);
  5536. }
  5537. else
  5538. {
  5539. unsigned long int i = ulongval ();
  5540. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5541. return 1;
  5542. fprintf (f, "%lu\n", i);
  5543. }
  5544. return ferror (f) || fclose (f) != 0;
  5545.  
  5546. ;
  5547. return 0;
  5548. }
  5549. _ACEOF
  5550. rm -f conftest$ac_exeext
  5551. if { (ac_try="$ac_link"
  5552. case "(($ac_try" in
  5553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5554. *) ac_try_echo=$ac_try;;
  5555. esac
  5556. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5557. (eval "$ac_link") 2>&5
  5558. ac_status=$?
  5559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5560. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5561. { (case "(($ac_try" in
  5562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5563. *) ac_try_echo=$ac_try;;
  5564. esac
  5565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5566. (eval "$ac_try") 2>&5
  5567. ac_status=$?
  5568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5569. (exit $ac_status); }; }; then
  5570. ac_cv_sizeof_u_int32_t=`cat conftest.val`
  5571. else
  5572. echo "$as_me: program exited with status $ac_status" >&5
  5573. echo "$as_me: failed program was:" >&5
  5574. sed 's/^/| /' conftest.$ac_ext >&5
  5575.  
  5576. ( exit $ac_status )
  5577. if test "$ac_cv_type_u_int32_t" = yes; then
  5578. { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int32_t)
  5579. See \`config.log' for more details." >&5
  5580. echo "$as_me: error: cannot compute sizeof (u_int32_t)
  5581. See \`config.log' for more details." >&2;}
  5582. { (exit 77); exit 77; }; }
  5583. else
  5584. ac_cv_sizeof_u_int32_t=0
  5585. fi
  5586. fi
  5587. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5588. fi
  5589. rm -f conftest.val
  5590. fi
  5591. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int32_t" >&5
  5592. echo "${ECHO_T}$ac_cv_sizeof_u_int32_t" >&6; }
  5593.  
  5594.  
  5595.  
  5596. cat >>confdefs.h <<_ACEOF
  5597. #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
  5598. _ACEOF
  5599.  
  5600.  
  5601.  
  5602. cat >confcache <<\_ACEOF
  5603. # This file is a shell script that caches the results of configure
  5604. # tests run on this system so they can be shared between configure
  5605. # scripts and configure runs, see configure's option --config-cache.
  5606. # It is not useful on other systems. If it contains results you don't
  5607. # want to keep, you may remove or edit it.
  5608. #
  5609. # config.status only pays attention to the cache file if you give it
  5610. # the --recheck option to rerun configure.
  5611. #
  5612. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5613. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5614. # following values.
  5615.  
  5616. _ACEOF
  5617.  
  5618. # The following way of writing the cache mishandles newlines in values,
  5619. # but we know of no workaround that is simple, portable, and efficient.
  5620. # So, we kill variables containing newlines.
  5621. # Ultrix sh set writes to stderr and can't be redirected directly,
  5622. # and sets the high bit in the cache file unless we assign to the vars.
  5623. (
  5624. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5625. eval ac_val=\$$ac_var
  5626. case $ac_val in #(
  5627. *${as_nl}*)
  5628. case $ac_var in #(
  5629. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  5630. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  5631. esac
  5632. case $ac_var in #(
  5633. _ | IFS | as_nl) ;; #(
  5634. *) $as_unset $ac_var ;;
  5635. esac ;;
  5636. esac
  5637. done
  5638.  
  5639. (set) 2>&1 |
  5640. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5641. *${as_nl}ac_space=\ *)
  5642. # `set' does not quote correctly, so add quotes (double-quote
  5643. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5644. sed -n \
  5645. "s/'/'\\\\''/g;
  5646. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5647. ;; #(
  5648. *)
  5649. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5650. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5651. ;;
  5652. esac |
  5653. sort
  5654. ) |
  5655. sed '
  5656. /^ac_cv_env_/b end
  5657. t clear
  5658. :clear
  5659. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5660. t end
  5661. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5662. :end' >>confcache
  5663. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5664. if test -w "$cache_file"; then
  5665. test "x$cache_file" != "x/dev/null" &&
  5666. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5667. echo "$as_me: updating cache $cache_file" >&6;}
  5668. cat confcache >$cache_file
  5669. else
  5670. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5671. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5672. fi
  5673. fi
  5674. rm -f confcache
  5675.  
  5676. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5677. # Let make expand exec_prefix.
  5678. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5679.  
  5680. DEFS=-DHAVE_CONFIG_H
  5681.  
  5682. ac_libobjs=
  5683. ac_ltlibobjs=
  5684. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5685. # 1. Remove the extension, and $U if already installed.
  5686. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  5687. ac_i=`echo "$ac_i" | sed "$ac_script"`
  5688. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  5689. # will be set to the directory where LIBOBJS objects are built.
  5690. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  5691. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  5692. done
  5693. LIBOBJS=$ac_libobjs
  5694.  
  5695. LTLIBOBJS=$ac_ltlibobjs
  5696.  
  5697.  
  5698.  
  5699. : ${CONFIG_STATUS=./config.status}
  5700. ac_clean_files_save=$ac_clean_files
  5701. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5702. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  5703. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5704. cat >$CONFIG_STATUS <<_ACEOF
  5705. #! $SHELL
  5706. # Generated by $as_me.
  5707. # Run this file to recreate the current configuration.
  5708. # Compiler output produced by configure, useful for debugging
  5709. # configure, is in config.log if it exists.
  5710.  
  5711. debug=false
  5712. ac_cs_recheck=false
  5713. ac_cs_silent=false
  5714. SHELL=\${CONFIG_SHELL-$SHELL}
  5715. _ACEOF
  5716.  
  5717. cat >>$CONFIG_STATUS <<\_ACEOF
  5718. ## --------------------- ##
  5719. ## M4sh Initialization. ##
  5720. ## --------------------- ##
  5721.  
  5722. # Be more Bourne compatible
  5723. DUALCASE=1; export DUALCASE # for MKS sh
  5724. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  5725. emulate sh
  5726. NULLCMD=:
  5727. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  5728. # is contrary to our usage. Disable this feature.
  5729. alias -g '${1+"$@"}'='"$@"'
  5730. setopt NO_GLOB_SUBST
  5731. else
  5732. case `(set -o) 2>/dev/null` in
  5733. *posix*) set -o posix ;;
  5734. esac
  5735.  
  5736. fi
  5737.  
  5738.  
  5739.  
  5740.  
  5741. # PATH needs CR
  5742. # Avoid depending upon Character Ranges.
  5743. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5744. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5745. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5746. as_cr_digits='0123456789'
  5747. as_cr_alnum=$as_cr_Letters$as_cr_digits
  5748.  
  5749. # The user is always right.
  5750. if test "${PATH_SEPARATOR+set}" != set; then
  5751. echo "#! /bin/sh" >conf$$.sh
  5752. echo "exit 0" >>conf$$.sh
  5753. chmod +x conf$$.sh
  5754. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5755. PATH_SEPARATOR=';'
  5756. else
  5757. PATH_SEPARATOR=:
  5758. fi
  5759. rm -f conf$$.sh
  5760. fi
  5761.  
  5762. # Support unset when possible.
  5763. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5764. as_unset=unset
  5765. else
  5766. as_unset=false
  5767. fi
  5768.  
  5769.  
  5770. # IFS
  5771. # We need space, tab and new line, in precisely that order. Quoting is
  5772. # there to prevent editors from complaining about space-tab.
  5773. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  5774. # splitting by setting IFS to empty value.)
  5775. as_nl='
  5776. '
  5777. IFS=" "" $as_nl"
  5778.  
  5779. # Find who we are. Look in the path if we contain no directory separator.
  5780. case $0 in
  5781. *[\\/]* ) as_myself=$0 ;;
  5782. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5783. for as_dir in $PATH
  5784. do
  5785. IFS=$as_save_IFS
  5786. test -z "$as_dir" && as_dir=.
  5787. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5788. done
  5789. IFS=$as_save_IFS
  5790.  
  5791. ;;
  5792. esac
  5793. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5794. # in which case we are not to be found in the path.
  5795. if test "x$as_myself" = x; then
  5796. as_myself=$0
  5797. fi
  5798. if test ! -f "$as_myself"; then
  5799. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5800. { (exit 1); exit 1; }
  5801. fi
  5802.  
  5803. # Work around bugs in pre-3.0 UWIN ksh.
  5804. for as_var in ENV MAIL MAILPATH
  5805. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  5806. done
  5807. PS1='$ '
  5808. PS2='> '
  5809. PS4='+ '
  5810.  
  5811. # NLS nuisances.
  5812. for as_var in \
  5813. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  5814. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  5815. LC_TELEPHONE LC_TIME
  5816. do
  5817. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  5818. eval $as_var=C; export $as_var
  5819. else
  5820. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  5821. fi
  5822. done
  5823.  
  5824. # Required to use basename.
  5825. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5826. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5827. as_expr=expr
  5828. else
  5829. as_expr=false
  5830. fi
  5831.  
  5832. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5833. as_basename=basename
  5834. else
  5835. as_basename=false
  5836. fi
  5837.  
  5838.  
  5839. # Name of the executable.
  5840. as_me=`$as_basename -- "$0" ||
  5841. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5842. X"$0" : 'X\(//\)$' \| \
  5843. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5844. echo X/"$0" |
  5845. sed '/^.*\/\([^/][^/]*\)\/*$/{
  5846. s//\1/
  5847. q
  5848. }
  5849. /^X\/\(\/\/\)$/{
  5850. s//\1/
  5851. q
  5852. }
  5853. /^X\/\(\/\).*/{
  5854. s//\1/
  5855. q
  5856. }
  5857. s/.*/./; q'`
  5858.  
  5859. # CDPATH.
  5860. $as_unset CDPATH
  5861.  
  5862.  
  5863.  
  5864. as_lineno_1=$LINENO
  5865. as_lineno_2=$LINENO
  5866. test "x$as_lineno_1" != "x$as_lineno_2" &&
  5867. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  5868.  
  5869. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  5870. # uniformly replaced by the line number. The first 'sed' inserts a
  5871. # line-number line after each line using $LINENO; the second 'sed'
  5872. # does the real work. The second script uses 'N' to pair each
  5873. # line-number line with the line containing $LINENO, and appends
  5874. # trailing '-' during substitution so that $LINENO is not a special
  5875. # case at line end.
  5876. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  5877. # scripts with optimization help from Paolo Bonzini. Blame Lee
  5878. # E. McMahon (1931-1989) for sed's syntax. :-)
  5879. sed -n '
  5880. p
  5881. /[$]LINENO/=
  5882. ' <$as_myself |
  5883. sed '
  5884. s/[$]LINENO.*/&-/
  5885. t lineno
  5886. b
  5887. :lineno
  5888. N
  5889. :loop
  5890. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  5891. t loop
  5892. s/-\n.*//
  5893. ' >$as_me.lineno &&
  5894. chmod +x "$as_me.lineno" ||
  5895. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  5896. { (exit 1); exit 1; }; }
  5897.  
  5898. # Don't try to exec as it changes $[0], causing all sort of problems
  5899. # (the dirname of $[0] is not the place where we might find the
  5900. # original and so on. Autoconf is especially sensitive to this).
  5901. . "./$as_me.lineno"
  5902. # Exit status is that of the last command.
  5903. exit
  5904. }
  5905.  
  5906.  
  5907. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5908. as_dirname=dirname
  5909. else
  5910. as_dirname=false
  5911. fi
  5912.  
  5913. ECHO_C= ECHO_N= ECHO_T=
  5914. case `echo -n x` in
  5915. -n*)
  5916. case `echo 'x\c'` in
  5917. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  5918. *) ECHO_C='\c';;
  5919. esac;;
  5920. *)
  5921. ECHO_N='-n';;
  5922. esac
  5923.  
  5924. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5925. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5926. as_expr=expr
  5927. else
  5928. as_expr=false
  5929. fi
  5930.  
  5931. rm -f conf$$ conf$$.exe conf$$.file
  5932. if test -d conf$$.dir; then
  5933. rm -f conf$$.dir/conf$$.file
  5934. else
  5935. rm -f conf$$.dir
  5936. mkdir conf$$.dir
  5937. fi
  5938. echo >conf$$.file
  5939. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5940. as_ln_s='ln -s'
  5941. # ... but there are two gotchas:
  5942. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  5943. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  5944. # In both cases, we have to default to `cp -p'.
  5945. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  5946. as_ln_s='cp -p'
  5947. elif ln conf$$.file conf$$ 2>/dev/null; then
  5948. as_ln_s=ln
  5949. else
  5950. as_ln_s='cp -p'
  5951. fi
  5952. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  5953. rmdir conf$$.dir 2>/dev/null
  5954.  
  5955. if mkdir -p . 2>/dev/null; then
  5956. as_mkdir_p=:
  5957. else
  5958. test -d ./-p && rmdir ./-p
  5959. as_mkdir_p=false
  5960. fi
  5961.  
  5962. if test -x / >/dev/null 2>&1; then
  5963. as_test_x='test -x'
  5964. else
  5965. if ls -dL / >/dev/null 2>&1; then
  5966. as_ls_L_option=L
  5967. else
  5968. as_ls_L_option=
  5969. fi
  5970. as_test_x='
  5971. eval sh -c '\''
  5972. if test -d "$1"; then
  5973. test -d "$1/.";
  5974. else
  5975. case $1 in
  5976. -*)set "./$1";;
  5977. esac;
  5978. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  5979. ???[sx]*):;;*)false;;esac;fi
  5980. '\'' sh
  5981. '
  5982. fi
  5983. as_executable_p=$as_test_x
  5984.  
  5985. # Sed expression to map a string onto a valid CPP name.
  5986. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5987.  
  5988. # Sed expression to map a string onto a valid variable name.
  5989. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5990.  
  5991.  
  5992. exec 6>&1
  5993.  
  5994. # Save the log message, to keep $[0] and so on meaningful, and to
  5995. # report actual input values of CONFIG_FILES etc. instead of their
  5996. # values after options handling.
  5997. ac_log="
  5998. This file was extended by $as_me, which was
  5999. generated by GNU Autoconf 2.61. Invocation command line was
  6000.  
  6001. CONFIG_FILES = $CONFIG_FILES
  6002. CONFIG_HEADERS = $CONFIG_HEADERS
  6003. CONFIG_LINKS = $CONFIG_LINKS
  6004. CONFIG_COMMANDS = $CONFIG_COMMANDS
  6005. $ $0 $@
  6006.  
  6007. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6008. "
  6009.  
  6010. _ACEOF
  6011.  
  6012. cat >>$CONFIG_STATUS <<_ACEOF
  6013. # Files that config.status was made for.
  6014. config_headers="$ac_config_headers"
  6015.  
  6016. _ACEOF
  6017.  
  6018. cat >>$CONFIG_STATUS <<\_ACEOF
  6019. ac_cs_usage="\
  6020. \`$as_me' instantiates files from templates according to the
  6021. current configuration.
  6022.  
  6023. Usage: $0 [OPTIONS] [FILE]...
  6024.  
  6025. -h, --help print this help, then exit
  6026. -V, --version print version number and configuration settings, then exit
  6027. -q, --quiet do not print progress messages
  6028. -d, --debug don't remove temporary files
  6029. --recheck update $as_me by reconfiguring in the same conditions
  6030. --header=FILE[:TEMPLATE]
  6031. instantiate the configuration header FILE
  6032.  
  6033. Configuration headers:
  6034. $config_headers
  6035.  
  6036. Report bugs to <bug-autoconf@gnu.org>."
  6037.  
  6038. _ACEOF
  6039. cat >>$CONFIG_STATUS <<_ACEOF
  6040. ac_cs_version="\\
  6041. config.status
  6042. configured by $0, generated by GNU Autoconf 2.61,
  6043. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  6044.  
  6045. Copyright (C) 2006 Free Software Foundation, Inc.
  6046. This config.status script is free software; the Free Software Foundation
  6047. gives unlimited permission to copy, distribute and modify it."
  6048.  
  6049. ac_pwd='$ac_pwd'
  6050. srcdir='$srcdir'
  6051. _ACEOF
  6052.  
  6053. cat >>$CONFIG_STATUS <<\_ACEOF
  6054. # If no file are specified by the user, then we need to provide default
  6055. # value. By we need to know if files were specified by the user.
  6056. ac_need_defaults=:
  6057. while test $# != 0
  6058. do
  6059. case $1 in
  6060. --*=*)
  6061. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6062. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6063. ac_shift=:
  6064. ;;
  6065. *)
  6066. ac_option=$1
  6067. ac_optarg=$2
  6068. ac_shift=shift
  6069. ;;
  6070. esac
  6071.  
  6072. case $ac_option in
  6073. # Handling of the options.
  6074. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6075. ac_cs_recheck=: ;;
  6076. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6077. echo "$ac_cs_version"; exit ;;
  6078. --debug | --debu | --deb | --de | --d | -d )
  6079. debug=: ;;
  6080. --header | --heade | --head | --hea )
  6081. $ac_shift
  6082. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  6083. ac_need_defaults=false;;
  6084. --he | --h)
  6085. # Conflict between --help and --header
  6086. { echo "$as_me: error: ambiguous option: $1
  6087. Try \`$0 --help' for more information." >&2
  6088. { (exit 1); exit 1; }; };;
  6089. --help | --hel | -h )
  6090. echo "$ac_cs_usage"; exit ;;
  6091. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6092. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6093. ac_cs_silent=: ;;
  6094.  
  6095. # This is an error.
  6096. -*) { echo "$as_me: error: unrecognized option: $1
  6097. Try \`$0 --help' for more information." >&2
  6098. { (exit 1); exit 1; }; } ;;
  6099.  
  6100. *) ac_config_targets="$ac_config_targets $1"
  6101. ac_need_defaults=false ;;
  6102.  
  6103. esac
  6104. shift
  6105. done
  6106.  
  6107. ac_configure_extra_args=
  6108.  
  6109. if $ac_cs_silent; then
  6110. exec 6>/dev/null
  6111. ac_configure_extra_args="$ac_configure_extra_args --silent"
  6112. fi
  6113.  
  6114. _ACEOF
  6115. cat >>$CONFIG_STATUS <<_ACEOF
  6116. if \$ac_cs_recheck; then
  6117. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  6118. CONFIG_SHELL=$SHELL
  6119. export CONFIG_SHELL
  6120. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  6121. fi
  6122.  
  6123. _ACEOF
  6124. cat >>$CONFIG_STATUS <<\_ACEOF
  6125. exec 5>>config.log
  6126. {
  6127. echo
  6128. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  6129. ## Running $as_me. ##
  6130. _ASBOX
  6131. echo "$ac_log"
  6132. } >&5
  6133.  
  6134. _ACEOF
  6135. cat >>$CONFIG_STATUS <<_ACEOF
  6136. _ACEOF
  6137.  
  6138. cat >>$CONFIG_STATUS <<\_ACEOF
  6139.  
  6140. # Handling of arguments.
  6141. for ac_config_target in $ac_config_targets
  6142. do
  6143. case $ac_config_target in
  6144. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  6145.  
  6146. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  6147. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  6148. { (exit 1); exit 1; }; };;
  6149. esac
  6150. done
  6151.  
  6152.  
  6153. # If the user did not use the arguments to specify the items to instantiate,
  6154. # then the envvar interface is used. Set only those that are not.
  6155. # We use the long form for the default assignment because of an extremely
  6156. # bizarre bug on SunOS 4.1.3.
  6157. if $ac_need_defaults; then
  6158. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  6159. fi
  6160.  
  6161. # Have a temporary directory for convenience. Make it in the build tree
  6162. # simply because there is no reason against having it here, and in addition,
  6163. # creating and moving files from /tmp can sometimes cause problems.
  6164. # Hook for its removal unless debugging.
  6165. # Note that there is a small window in which the directory will not be cleaned:
  6166. # after its creation but before its name has been assigned to `$tmp'.
  6167. $debug ||
  6168. {
  6169. tmp=
  6170. trap 'exit_status=$?
  6171. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  6172. ' 0
  6173. trap '{ (exit 1); exit 1; }' 1 2 13 15
  6174. }
  6175. # Create a (secure) tmp directory for tmp files.
  6176.  
  6177. {
  6178. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6179. test -n "$tmp" && test -d "$tmp"
  6180. } ||
  6181. {
  6182. tmp=./conf$$-$RANDOM
  6183. (umask 077 && mkdir "$tmp")
  6184. } ||
  6185. {
  6186. echo "$me: cannot create a temporary directory in ." >&2
  6187. { (exit 1); exit 1; }
  6188. }
  6189.  
  6190.  
  6191. for ac_tag in :H $CONFIG_HEADERS
  6192. do
  6193. case $ac_tag in
  6194. :[FHLC]) ac_mode=$ac_tag; continue;;
  6195. esac
  6196. case $ac_mode$ac_tag in
  6197. :[FHL]*:*);;
  6198. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  6199. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  6200. { (exit 1); exit 1; }; };;
  6201. :[FH]-) ac_tag=-:-;;
  6202. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  6203. esac
  6204. ac_save_IFS=$IFS
  6205. IFS=:
  6206. set x $ac_tag
  6207. IFS=$ac_save_IFS
  6208. shift
  6209. ac_file=$1
  6210. shift
  6211.  
  6212. case $ac_mode in
  6213. :L) ac_source=$1;;
  6214. :[FH])
  6215. ac_file_inputs=
  6216. for ac_f
  6217. do
  6218. case $ac_f in
  6219. -) ac_f="$tmp/stdin";;
  6220. *) # Look for the file first in the build tree, then in the source tree
  6221. # (if the path is not absolute). The absolute path cannot be DOS-style,
  6222. # because $ac_f cannot contain `:'.
  6223. test -f "$ac_f" ||
  6224. case $ac_f in
  6225. [\\/$]*) false;;
  6226. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  6227. esac ||
  6228. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  6229. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  6230. { (exit 1); exit 1; }; };;
  6231. esac
  6232. ac_file_inputs="$ac_file_inputs $ac_f"
  6233. done
  6234.  
  6235. # Let's still pretend it is `configure' which instantiates (i.e., don't
  6236. # use $as_me), people would be surprised to read:
  6237. # /* config.h. Generated by config.status. */
  6238. configure_input="Generated from "`IFS=:
  6239. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  6240. if test x"$ac_file" != x-; then
  6241. configure_input="$ac_file. $configure_input"
  6242. { echo "$as_me:$LINENO: creating $ac_file" >&5
  6243. echo "$as_me: creating $ac_file" >&6;}
  6244. fi
  6245.  
  6246. case $ac_tag in
  6247. *:-:* | *:-) cat >"$tmp/stdin";;
  6248. esac
  6249. ;;
  6250. esac
  6251.  
  6252. ac_dir=`$as_dirname -- "$ac_file" ||
  6253. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6254. X"$ac_file" : 'X\(//\)[^/]' \| \
  6255. X"$ac_file" : 'X\(//\)$' \| \
  6256. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  6257. echo X"$ac_file" |
  6258. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6259. s//\1/
  6260. q
  6261. }
  6262. /^X\(\/\/\)[^/].*/{
  6263. s//\1/
  6264. q
  6265. }
  6266. /^X\(\/\/\)$/{
  6267. s//\1/
  6268. q
  6269. }
  6270. /^X\(\/\).*/{
  6271. s//\1/
  6272. q
  6273. }
  6274. s/.*/./; q'`
  6275. { as_dir="$ac_dir"
  6276. case $as_dir in #(
  6277. -*) as_dir=./$as_dir;;
  6278. esac
  6279. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  6280. as_dirs=
  6281. while :; do
  6282. case $as_dir in #(
  6283. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  6284. *) as_qdir=$as_dir;;
  6285. esac
  6286. as_dirs="'$as_qdir' $as_dirs"
  6287. as_dir=`$as_dirname -- "$as_dir" ||
  6288. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6289. X"$as_dir" : 'X\(//\)[^/]' \| \
  6290. X"$as_dir" : 'X\(//\)$' \| \
  6291. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6292. echo X"$as_dir" |
  6293. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6294. s//\1/
  6295. q
  6296. }
  6297. /^X\(\/\/\)[^/].*/{
  6298. s//\1/
  6299. q
  6300. }
  6301. /^X\(\/\/\)$/{
  6302. s//\1/
  6303. q
  6304. }
  6305. /^X\(\/\).*/{
  6306. s//\1/
  6307. q
  6308. }
  6309. s/.*/./; q'`
  6310. test -d "$as_dir" && break
  6311. done
  6312. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6313. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  6314. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  6315. { (exit 1); exit 1; }; }; }
  6316. ac_builddir=.
  6317.  
  6318. case "$ac_dir" in
  6319. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6320. *)
  6321. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  6322. # A ".." for each directory in $ac_dir_suffix.
  6323. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  6324. case $ac_top_builddir_sub in
  6325. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6326. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  6327. esac ;;
  6328. esac
  6329. ac_abs_top_builddir=$ac_pwd
  6330. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  6331. # for backward compatibility:
  6332. ac_top_builddir=$ac_top_build_prefix
  6333.  
  6334. case $srcdir in
  6335. .) # We are building in place.
  6336. ac_srcdir=.
  6337. ac_top_srcdir=$ac_top_builddir_sub
  6338. ac_abs_top_srcdir=$ac_pwd ;;
  6339. [\\/]* | ?:[\\/]* ) # Absolute name.
  6340. ac_srcdir=$srcdir$ac_dir_suffix;
  6341. ac_top_srcdir=$srcdir
  6342. ac_abs_top_srcdir=$srcdir ;;
  6343. *) # Relative name.
  6344. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  6345. ac_top_srcdir=$ac_top_build_prefix$srcdir
  6346. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  6347. esac
  6348. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  6349.  
  6350.  
  6351. case $ac_mode in
  6352.  
  6353. :H)
  6354. #
  6355. # CONFIG_HEADER
  6356. #
  6357. _ACEOF
  6358.  
  6359. # Transform confdefs.h into a sed script `conftest.defines', that
  6360. # substitutes the proper values into config.h.in to produce config.h.
  6361. rm -f conftest.defines conftest.tail
  6362. # First, append a space to every undef/define line, to ease matching.
  6363. echo 's/$/ /' >conftest.defines
  6364. # Then, protect against being on the right side of a sed subst, or in
  6365. # an unquoted here document, in config.status. If some macros were
  6366. # called several times there might be several #defines for the same
  6367. # symbol, which is useless. But do not sort them, since the last
  6368. # AC_DEFINE must be honored.
  6369. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  6370. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  6371. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  6372. # PARAMS is the parameter list in the macro definition--in most cases, it's
  6373. # just an empty string.
  6374. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  6375. ac_dB='\\)[ (].*,\\1define\\2'
  6376. ac_dC=' '
  6377. ac_dD=' ,'
  6378.  
  6379. uniq confdefs.h |
  6380. sed -n '
  6381. t rset
  6382. :rset
  6383. s/^[ ]*#[ ]*define[ ][ ]*//
  6384. t ok
  6385. d
  6386. :ok
  6387. s/[\\&,]/\\&/g
  6388. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  6389. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  6390. ' >>conftest.defines
  6391.  
  6392. # Remove the space that was appended to ease matching.
  6393. # Then replace #undef with comments. This is necessary, for
  6394. # example, in the case of _POSIX_SOURCE, which is predefined and required
  6395. # on some systems where configure will not decide to define it.
  6396. # (The regexp can be short, since the line contains either #define or #undef.)
  6397. echo 's/ $//
  6398. s,^[ #]*u.*,/* & */,' >>conftest.defines
  6399.  
  6400. # Break up conftest.defines:
  6401. ac_max_sed_lines=50
  6402.  
  6403. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  6404. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  6405. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  6406. # et cetera.
  6407. ac_in='$ac_file_inputs'
  6408. ac_out='"$tmp/out1"'
  6409. ac_nxt='"$tmp/out2"'
  6410.  
  6411. while :
  6412. do
  6413. # Write a here document:
  6414. cat >>$CONFIG_STATUS <<_ACEOF
  6415. # First, check the format of the line:
  6416. cat >"\$tmp/defines.sed" <<\\CEOF
  6417. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  6418. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  6419. b
  6420. :def
  6421. _ACEOF
  6422. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  6423. echo 'CEOF
  6424. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  6425. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  6426. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  6427. grep . conftest.tail >/dev/null || break
  6428. rm -f conftest.defines
  6429. mv conftest.tail conftest.defines
  6430. done
  6431. rm -f conftest.defines conftest.tail
  6432.  
  6433. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  6434. cat >>$CONFIG_STATUS <<\_ACEOF
  6435. if test x"$ac_file" != x-; then
  6436. echo "/* $configure_input */" >"$tmp/config.h"
  6437. cat "$ac_result" >>"$tmp/config.h"
  6438. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  6439. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  6440. echo "$as_me: $ac_file is unchanged" >&6;}
  6441. else
  6442. rm -f $ac_file
  6443. mv "$tmp/config.h" $ac_file
  6444. fi
  6445. else
  6446. echo "/* $configure_input */"
  6447. cat "$ac_result"
  6448. fi
  6449. rm -f "$tmp/out12"
  6450. ;;
  6451.  
  6452.  
  6453. esac
  6454.  
  6455. done # for ac_tag
  6456.  
  6457.  
  6458. { (exit 0); exit 0; }
  6459. _ACEOF
  6460. chmod +x $CONFIG_STATUS
  6461. ac_clean_files=$ac_clean_files_save
  6462.  
  6463.  
  6464. # configure is writing to config.log, and then calls config.status.
  6465. # config.status does its own redirection, appending to config.log.
  6466. # Unfortunately, on DOS this fails, as config.log is still kept open
  6467. # by configure, so config.status won't be able to write to it; its
  6468. # output is simply discarded. So we exec the FD to /dev/null,
  6469. # effectively closing config.log, so it can be properly (re)opened and
  6470. # appended to by config.status. When coming back to configure, we
  6471. # need to make the FD available again.
  6472. if test "$no_create" != yes; then
  6473. ac_cs_success=:
  6474. ac_config_status_args=
  6475. test "$silent" = yes &&
  6476. ac_config_status_args="$ac_config_status_args --quiet"
  6477. exec 5>/dev/null
  6478. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  6479. exec 5>>config.log
  6480. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  6481. # would make configure fail if this is the last instruction.
  6482. $ac_cs_success || { (exit 1); exit 1; }
  6483. fi
  6484.