You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14485 lines
401KB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. exec 7<&0 </dev/null 6>&1
  474. # Name of the host.
  475. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  476. # so uname gets run too.
  477. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  478. #
  479. # Initializations.
  480. #
  481. ac_default_prefix=/usr/local
  482. ac_clean_files=
  483. ac_config_libobj_dir=.
  484. LIBOBJS=
  485. cross_compiling=no
  486. subdirs=
  487. MFLAGS=
  488. MAKEFLAGS=
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. # Identity of this package.
  491. PACKAGE_NAME=
  492. PACKAGE_TARNAME=
  493. PACKAGE_VERSION=
  494. PACKAGE_STRING=
  495. PACKAGE_BUGREPORT=
  496. ac_unique_file="src/Fl.cxx"
  497. # Factoring default headers for most tests.
  498. ac_includes_default="\
  499. #include <stdio.h>
  500. #ifdef HAVE_SYS_TYPES_H
  501. # include <sys/types.h>
  502. #endif
  503. #ifdef HAVE_SYS_STAT_H
  504. # include <sys/stat.h>
  505. #endif
  506. #ifdef STDC_HEADERS
  507. # include <stdlib.h>
  508. # include <stddef.h>
  509. #else
  510. # ifdef HAVE_STDLIB_H
  511. # include <stdlib.h>
  512. # endif
  513. #endif
  514. #ifdef HAVE_STRING_H
  515. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  516. # include <memory.h>
  517. # endif
  518. # include <string.h>
  519. #endif
  520. #ifdef HAVE_STRINGS_H
  521. # include <strings.h>
  522. #endif
  523. #ifdef HAVE_INTTYPES_H
  524. # include <inttypes.h>
  525. #endif
  526. #ifdef HAVE_STDINT_H
  527. # include <stdint.h>
  528. #endif
  529. #ifdef HAVE_UNISTD_H
  530. # include <unistd.h>
  531. #endif"
  532. ac_subst_vars='SHELL
  533. PATH_SEPARATOR
  534. PACKAGE_NAME
  535. PACKAGE_TARNAME
  536. PACKAGE_VERSION
  537. PACKAGE_STRING
  538. PACKAGE_BUGREPORT
  539. exec_prefix
  540. prefix
  541. program_transform_name
  542. bindir
  543. sbindir
  544. libexecdir
  545. datarootdir
  546. datadir
  547. sysconfdir
  548. sharedstatedir
  549. localstatedir
  550. includedir
  551. oldincludedir
  552. docdir
  553. infodir
  554. htmldir
  555. dvidir
  556. pdfdir
  557. psdir
  558. libdir
  559. localedir
  560. mandir
  561. DEFS
  562. ECHO_C
  563. ECHO_N
  564. ECHO_T
  565. LIBS
  566. build_alias
  567. host_alias
  568. target_alias
  569. USEMMFILES
  570. FL_MAJOR_VERSION
  571. FL_MINOR_VERSION
  572. FL_PATCH_VERSION
  573. FL_API_VERSION
  574. ARCHFLAGS
  575. OPTIM
  576. CAIRODIR
  577. CAIROFLAGS
  578. CAIROLIBS
  579. LINKFLTKCAIRO
  580. FLTKCAIROOPTION
  581. FLLIBNAME
  582. GLDEMOS
  583. GLLIBNAME
  584. IMGLIBNAME
  585. CAIROLIBNAME
  586. LIBEXT
  587. LIBNAME
  588. LINKFLTK
  589. LINKFLTKFORMS
  590. LINKFLTKGL
  591. LINKFLTKIMG
  592. LIBBASENAME
  593. FLLIBBASENAME
  594. GLLIBBASENAME
  595. IMGLIBBASENAME
  596. CAIROLIBBASENAME
  597. DSOCOMMAND
  598. DSOFLAGS
  599. DSOLINK
  600. DSONAME
  601. FLDSONAME
  602. GLDSONAME
  603. IMGDSONAME
  604. CAIRODSONAME
  605. SHAREDSUFFIX
  606. LINKSHARED
  607. FLUID
  608. CC
  609. CFLAGS
  610. LDFLAGS
  611. CPPFLAGS
  612. ac_ct_CC
  613. EXEEXT
  614. OBJEXT
  615. CXX
  616. CXXFLAGS
  617. ac_ct_CXX
  618. INSTALL_PROGRAM
  619. INSTALL_SCRIPT
  620. INSTALL_DATA
  621. NROFF
  622. GROFF
  623. HTMLDOC
  624. DOXYDOC
  625. RANLIB
  626. AR
  627. LIBCOMMAND
  628. RC
  629. CPP
  630. GREP
  631. EGREP
  632. LARGEFILE
  633. AUDIOLIBS
  634. IMAGELIBS
  635. STATICIMAGELIBS
  636. JPEG
  637. JPEGINC
  638. PNG
  639. PNGINC
  640. ZLIB
  641. ZLIBINC
  642. PTHREAD_FLAGS
  643. XMKMF
  644. X_CFLAGS
  645. X_PRE_LIBS
  646. X_LIBS
  647. X_EXTRA_LIBS
  648. FTCONFIG
  649. XPROP
  650. GLLIB
  651. HLINKS
  652. OSX_ONLY
  653. THREADS
  654. INSTALL_DESKTOP
  655. UNINSTALL_DESKTOP
  656. CAT1EXT
  657. CAT3EXT
  658. CAT6EXT
  659. MAKEDEPEND
  660. LIBOBJS
  661. LTLIBOBJS'
  662. ac_subst_files=''
  663. ac_precious_vars='build_alias
  664. host_alias
  665. target_alias
  666. CC
  667. CFLAGS
  668. LDFLAGS
  669. LIBS
  670. CPPFLAGS
  671. CXX
  672. CXXFLAGS
  673. CCC
  674. CPP
  675. XMKMF'
  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. # Installation directory options.
  696. # These are left unexpanded so users can "make install exec_prefix=/foo"
  697. # and all the variables that are supposed to be based on exec_prefix
  698. # by default will actually change.
  699. # Use braces instead of parens because sh, perl, etc. also accept them.
  700. # (The list follows the same order as the GNU Coding Standards.)
  701. bindir='${exec_prefix}/bin'
  702. sbindir='${exec_prefix}/sbin'
  703. libexecdir='${exec_prefix}/libexec'
  704. datarootdir='${prefix}/share'
  705. datadir='${datarootdir}'
  706. sysconfdir='${prefix}/etc'
  707. sharedstatedir='${prefix}/com'
  708. localstatedir='${prefix}/var'
  709. includedir='${prefix}/include'
  710. oldincludedir='/usr/include'
  711. docdir='${datarootdir}/doc/${PACKAGE}'
  712. infodir='${datarootdir}/info'
  713. htmldir='${docdir}'
  714. dvidir='${docdir}'
  715. pdfdir='${docdir}'
  716. psdir='${docdir}'
  717. libdir='${exec_prefix}/lib'
  718. localedir='${datarootdir}/locale'
  719. mandir='${datarootdir}/man'
  720. ac_prev=
  721. ac_dashdash=
  722. for ac_option
  723. do
  724. # If the previous option needs an argument, assign it.
  725. if test -n "$ac_prev"; then
  726. eval $ac_prev=\$ac_option
  727. ac_prev=
  728. continue
  729. fi
  730. case $ac_option in
  731. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  732. *) ac_optarg=yes ;;
  733. esac
  734. # Accept the important Cygnus configure options, so we can diagnose typos.
  735. case $ac_dashdash$ac_option in
  736. --)
  737. ac_dashdash=yes ;;
  738. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  739. ac_prev=bindir ;;
  740. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  741. bindir=$ac_optarg ;;
  742. -build | --build | --buil | --bui | --bu)
  743. ac_prev=build_alias ;;
  744. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  745. build_alias=$ac_optarg ;;
  746. -cache-file | --cache-file | --cache-fil | --cache-fi \
  747. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  748. ac_prev=cache_file ;;
  749. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  750. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  751. cache_file=$ac_optarg ;;
  752. --config-cache | -C)
  753. cache_file=config.cache ;;
  754. -datadir | --datadir | --datadi | --datad)
  755. ac_prev=datadir ;;
  756. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  757. datadir=$ac_optarg ;;
  758. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  759. | --dataroo | --dataro | --datar)
  760. ac_prev=datarootdir ;;
  761. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  762. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  763. datarootdir=$ac_optarg ;;
  764. -disable-* | --disable-*)
  765. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  766. # Reject names that are not valid shell variable names.
  767. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  768. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  769. { (exit 1); exit 1; }; }
  770. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  771. eval enable_$ac_feature=no ;;
  772. -docdir | --docdir | --docdi | --doc | --do)
  773. ac_prev=docdir ;;
  774. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  775. docdir=$ac_optarg ;;
  776. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  777. ac_prev=dvidir ;;
  778. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  779. dvidir=$ac_optarg ;;
  780. -enable-* | --enable-*)
  781. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  782. # Reject names that are not valid shell variable names.
  783. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  784. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  785. { (exit 1); exit 1; }; }
  786. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  787. eval enable_$ac_feature=\$ac_optarg ;;
  788. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  789. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  790. | --exec | --exe | --ex)
  791. ac_prev=exec_prefix ;;
  792. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  793. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  794. | --exec=* | --exe=* | --ex=*)
  795. exec_prefix=$ac_optarg ;;
  796. -gas | --gas | --ga | --g)
  797. # Obsolete; use --with-gas.
  798. with_gas=yes ;;
  799. -help | --help | --hel | --he | -h)
  800. ac_init_help=long ;;
  801. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  802. ac_init_help=recursive ;;
  803. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  804. ac_init_help=short ;;
  805. -host | --host | --hos | --ho)
  806. ac_prev=host_alias ;;
  807. -host=* | --host=* | --hos=* | --ho=*)
  808. host_alias=$ac_optarg ;;
  809. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  810. ac_prev=htmldir ;;
  811. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  812. | --ht=*)
  813. htmldir=$ac_optarg ;;
  814. -includedir | --includedir | --includedi | --included | --include \
  815. | --includ | --inclu | --incl | --inc)
  816. ac_prev=includedir ;;
  817. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  818. | --includ=* | --inclu=* | --incl=* | --inc=*)
  819. includedir=$ac_optarg ;;
  820. -infodir | --infodir | --infodi | --infod | --info | --inf)
  821. ac_prev=infodir ;;
  822. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  823. infodir=$ac_optarg ;;
  824. -libdir | --libdir | --libdi | --libd)
  825. ac_prev=libdir ;;
  826. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  827. libdir=$ac_optarg ;;
  828. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  829. | --libexe | --libex | --libe)
  830. ac_prev=libexecdir ;;
  831. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  832. | --libexe=* | --libex=* | --libe=*)
  833. libexecdir=$ac_optarg ;;
  834. -localedir | --localedir | --localedi | --localed | --locale)
  835. ac_prev=localedir ;;
  836. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  837. localedir=$ac_optarg ;;
  838. -localstatedir | --localstatedir | --localstatedi | --localstated \
  839. | --localstate | --localstat | --localsta | --localst | --locals)
  840. ac_prev=localstatedir ;;
  841. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  842. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  843. localstatedir=$ac_optarg ;;
  844. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  845. ac_prev=mandir ;;
  846. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  847. mandir=$ac_optarg ;;
  848. -nfp | --nfp | --nf)
  849. # Obsolete; use --without-fp.
  850. with_fp=no ;;
  851. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  852. | --no-cr | --no-c | -n)
  853. no_create=yes ;;
  854. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  855. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  856. no_recursion=yes ;;
  857. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  858. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  859. | --oldin | --oldi | --old | --ol | --o)
  860. ac_prev=oldincludedir ;;
  861. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  862. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  863. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  864. oldincludedir=$ac_optarg ;;
  865. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  866. ac_prev=prefix ;;
  867. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  868. prefix=$ac_optarg ;;
  869. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  870. | --program-pre | --program-pr | --program-p)
  871. ac_prev=program_prefix ;;
  872. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  873. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  874. program_prefix=$ac_optarg ;;
  875. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  876. | --program-suf | --program-su | --program-s)
  877. ac_prev=program_suffix ;;
  878. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  879. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  880. program_suffix=$ac_optarg ;;
  881. -program-transform-name | --program-transform-name \
  882. | --program-transform-nam | --program-transform-na \
  883. | --program-transform-n | --program-transform- \
  884. | --program-transform | --program-transfor \
  885. | --program-transfo | --program-transf \
  886. | --program-trans | --program-tran \
  887. | --progr-tra | --program-tr | --program-t)
  888. ac_prev=program_transform_name ;;
  889. -program-transform-name=* | --program-transform-name=* \
  890. | --program-transform-nam=* | --program-transform-na=* \
  891. | --program-transform-n=* | --program-transform-=* \
  892. | --program-transform=* | --program-transfor=* \
  893. | --program-transfo=* | --program-transf=* \
  894. | --program-trans=* | --program-tran=* \
  895. | --progr-tra=* | --program-tr=* | --program-t=*)
  896. program_transform_name=$ac_optarg ;;
  897. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  898. ac_prev=pdfdir ;;
  899. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  900. pdfdir=$ac_optarg ;;
  901. -psdir | --psdir | --psdi | --psd | --ps)
  902. ac_prev=psdir ;;
  903. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  904. psdir=$ac_optarg ;;
  905. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  906. | -silent | --silent | --silen | --sile | --sil)
  907. silent=yes ;;
  908. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  909. ac_prev=sbindir ;;
  910. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  911. | --sbi=* | --sb=*)
  912. sbindir=$ac_optarg ;;
  913. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  914. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  915. | --sharedst | --shareds | --shared | --share | --shar \
  916. | --sha | --sh)
  917. ac_prev=sharedstatedir ;;
  918. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  919. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  920. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  921. | --sha=* | --sh=*)
  922. sharedstatedir=$ac_optarg ;;
  923. -site | --site | --sit)
  924. ac_prev=site ;;
  925. -site=* | --site=* | --sit=*)
  926. site=$ac_optarg ;;
  927. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  928. ac_prev=srcdir ;;
  929. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  930. srcdir=$ac_optarg ;;
  931. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  932. | --syscon | --sysco | --sysc | --sys | --sy)
  933. ac_prev=sysconfdir ;;
  934. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  935. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  936. sysconfdir=$ac_optarg ;;
  937. -target | --target | --targe | --targ | --tar | --ta | --t)
  938. ac_prev=target_alias ;;
  939. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  940. target_alias=$ac_optarg ;;
  941. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  942. verbose=yes ;;
  943. -version | --version | --versio | --versi | --vers | -V)
  944. ac_init_version=: ;;
  945. -with-* | --with-*)
  946. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  947. # Reject names that are not valid shell variable names.
  948. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  949. { echo "$as_me: error: invalid package name: $ac_package" >&2
  950. { (exit 1); exit 1; }; }
  951. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  952. eval with_$ac_package=\$ac_optarg ;;
  953. -without-* | --without-*)
  954. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  955. # Reject names that are not valid shell variable names.
  956. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  957. { echo "$as_me: error: invalid package name: $ac_package" >&2
  958. { (exit 1); exit 1; }; }
  959. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  960. eval with_$ac_package=no ;;
  961. --x)
  962. # Obsolete; use --with-x.
  963. with_x=yes ;;
  964. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  965. | --x-incl | --x-inc | --x-in | --x-i)
  966. ac_prev=x_includes ;;
  967. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  968. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  969. x_includes=$ac_optarg ;;
  970. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  971. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  972. ac_prev=x_libraries ;;
  973. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  974. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  975. x_libraries=$ac_optarg ;;
  976. -*) { echo "$as_me: error: unrecognized option: $ac_option
  977. Try \`$0 --help' for more information." >&2
  978. { (exit 1); exit 1; }; }
  979. ;;
  980. *=*)
  981. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  982. # Reject names that are not valid shell variable names.
  983. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  984. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  985. { (exit 1); exit 1; }; }
  986. eval $ac_envvar=\$ac_optarg
  987. export $ac_envvar ;;
  988. *)
  989. # FIXME: should be removed in autoconf 3.0.
  990. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  991. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  992. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  993. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  994. ;;
  995. esac
  996. done
  997. if test -n "$ac_prev"; then
  998. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  999. { echo "$as_me: error: missing argument to $ac_option" >&2
  1000. { (exit 1); exit 1; }; }
  1001. fi
  1002. # Be sure to have absolute directory names.
  1003. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1004. datadir sysconfdir sharedstatedir localstatedir includedir \
  1005. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1006. libdir localedir mandir
  1007. do
  1008. eval ac_val=\$$ac_var
  1009. case $ac_val in
  1010. [\\/$]* | ?:[\\/]* ) continue;;
  1011. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1012. esac
  1013. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1014. { (exit 1); exit 1; }; }
  1015. done
  1016. # There might be people who depend on the old broken behavior: `$host'
  1017. # used to hold the argument of --host etc.
  1018. # FIXME: To remove some day.
  1019. build=$build_alias
  1020. host=$host_alias
  1021. target=$target_alias
  1022. # FIXME: To remove some day.
  1023. if test "x$host_alias" != x; then
  1024. if test "x$build_alias" = x; then
  1025. cross_compiling=maybe
  1026. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1027. If a cross compiler is detected then cross compile mode will be used." >&2
  1028. elif test "x$build_alias" != "x$host_alias"; then
  1029. cross_compiling=yes
  1030. fi
  1031. fi
  1032. ac_tool_prefix=
  1033. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1034. test "$silent" = yes && exec 6>/dev/null
  1035. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1036. ac_ls_di=`ls -di .` &&
  1037. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1038. { echo "$as_me: error: Working directory cannot be determined" >&2
  1039. { (exit 1); exit 1; }; }
  1040. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1041. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1042. { (exit 1); exit 1; }; }
  1043. # Find the source files, if location was not specified.
  1044. if test -z "$srcdir"; then
  1045. ac_srcdir_defaulted=yes
  1046. # Try the directory containing this script, then the parent directory.
  1047. ac_confdir=`$as_dirname -- "$0" ||
  1048. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1049. X"$0" : 'X\(//\)[^/]' \| \
  1050. X"$0" : 'X\(//\)$' \| \
  1051. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1052. echo X"$0" |
  1053. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1054. s//\1/
  1055. q
  1056. }
  1057. /^X\(\/\/\)[^/].*/{
  1058. s//\1/
  1059. q
  1060. }
  1061. /^X\(\/\/\)$/{
  1062. s//\1/
  1063. q
  1064. }
  1065. /^X\(\/\).*/{
  1066. s//\1/
  1067. q
  1068. }
  1069. s/.*/./; q'`
  1070. srcdir=$ac_confdir
  1071. if test ! -r "$srcdir/$ac_unique_file"; then
  1072. srcdir=..
  1073. fi
  1074. else
  1075. ac_srcdir_defaulted=no
  1076. fi
  1077. if test ! -r "$srcdir/$ac_unique_file"; then
  1078. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1079. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1080. { (exit 1); exit 1; }; }
  1081. fi
  1082. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1083. ac_abs_confdir=`(
  1084. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1085. { (exit 1); exit 1; }; }
  1086. pwd)`
  1087. # When building in place, set srcdir=.
  1088. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1089. srcdir=.
  1090. fi
  1091. # Remove unnecessary trailing slashes from srcdir.
  1092. # Double slashes in file names in object file debugging info
  1093. # mess up M-x gdb in Emacs.
  1094. case $srcdir in
  1095. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1096. esac
  1097. for ac_var in $ac_precious_vars; do
  1098. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1099. eval ac_env_${ac_var}_value=\$${ac_var}
  1100. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1101. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1102. done
  1103. #
  1104. # Report the --help message.
  1105. #
  1106. if test "$ac_init_help" = "long"; then
  1107. # Omit some internal or obsolete options to make the list less imposing.
  1108. # This message is too long to be a string in the A/UX 3.1 sh.
  1109. cat <<_ACEOF
  1110. \`configure' configures this package to adapt to many kinds of systems.
  1111. Usage: $0 [OPTION]... [VAR=VALUE]...
  1112. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1113. VAR=VALUE. See below for descriptions of some of the useful variables.
  1114. Defaults for the options are specified in brackets.
  1115. Configuration:
  1116. -h, --help display this help and exit
  1117. --help=short display options specific to this package
  1118. --help=recursive display the short help of all the included packages
  1119. -V, --version display version information and exit
  1120. -q, --quiet, --silent do not print \`checking...' messages
  1121. --cache-file=FILE cache test results in FILE [disabled]
  1122. -C, --config-cache alias for \`--cache-file=config.cache'
  1123. -n, --no-create do not create output files
  1124. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1125. Installation directories:
  1126. --prefix=PREFIX install architecture-independent files in PREFIX
  1127. [$ac_default_prefix]
  1128. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1129. [PREFIX]
  1130. By default, \`make install' will install all the files in
  1131. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1132. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1133. for instance \`--prefix=\$HOME'.
  1134. For better control, use the options below.
  1135. Fine tuning of the installation directories:
  1136. --bindir=DIR user executables [EPREFIX/bin]
  1137. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1138. --libexecdir=DIR program executables [EPREFIX/libexec]
  1139. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1140. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1141. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1142. --libdir=DIR object code libraries [EPREFIX/lib]
  1143. --includedir=DIR C header files [PREFIX/include]
  1144. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1145. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1146. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1147. --infodir=DIR info documentation [DATAROOTDIR/info]
  1148. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1149. --mandir=DIR man documentation [DATAROOTDIR/man]
  1150. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1151. --htmldir=DIR html documentation [DOCDIR]
  1152. --dvidir=DIR dvi documentation [DOCDIR]
  1153. --pdfdir=DIR pdf documentation [DOCDIR]
  1154. --psdir=DIR ps documentation [DOCDIR]
  1155. _ACEOF
  1156. cat <<\_ACEOF
  1157. X features:
  1158. --x-includes=DIR X include files are in DIR
  1159. --x-libraries=DIR X library files are in DIR
  1160. _ACEOF
  1161. fi
  1162. if test -n "$ac_init_help"; then
  1163. cat <<\_ACEOF
  1164. Optional Features:
  1165. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1166. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1167. --enable-cygwin use the Cygwin libraries (default=no)
  1168. --enable-x11 use Cygwin with X11 (default=no)
  1169. --enable-cairoext use fltk code instrumentation for cairo extended use (default=no)
  1170. --enable-cairo use lib Cairo (default=no)
  1171. --enable-debug turn on debugging default=no
  1172. --enable-cp936 turn on CP936 default=no
  1173. --enable-gl turn on OpenGL support default=yes
  1174. --enable-shared turn on shared libraries default=no
  1175. --enable-threads enable multi-threading support (default=yes)
  1176. --disable-largefile omit support for large files
  1177. --enable-localjpeg use local JPEG library, default=auto
  1178. --enable-localzlib use local ZLIB library, default=auto
  1179. --enable-localpng use local PNG library, default=auto
  1180. --enable-xinerama turn on Xinerama support default=yes
  1181. --enable-xft turn on Xft support default=yes
  1182. --enable-xdbe turn on Xdbe support default=yes
  1183. Optional Packages:
  1184. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1185. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1186. --with-optim="flags" use custom optimization flags
  1187. --with-archflags="flags"
  1188. use custom architecture flags
  1189. (possible Mac OS X values include -arch i386, -arch x86_64, -arch ppc)
  1190. --with-links make header links for common misspellings (default=no)
  1191. --with-x use the X Window System
  1192. Some influential environment variables:
  1193. CC C compiler command
  1194. CFLAGS C compiler flags
  1195. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1196. nonstandard directory <lib dir>
  1197. LIBS libraries to pass to the linker, e.g. -l<library>
  1198. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1199. you have headers in a nonstandard directory <include dir>
  1200. CXX C++ compiler command
  1201. CXXFLAGS C++ compiler flags
  1202. CPP C preprocessor
  1203. XMKMF Path to xmkmf, Makefile generator for X Window System
  1204. Use these variables to override the choices made by `configure' or to help
  1205. it to find libraries and programs with nonstandard names/locations.
  1206. _ACEOF
  1207. ac_status=$?
  1208. fi
  1209. if test "$ac_init_help" = "recursive"; then
  1210. # If there are subdirs, report their specific --help.
  1211. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1212. test -d "$ac_dir" || continue
  1213. ac_builddir=.
  1214. case "$ac_dir" in
  1215. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1216. *)
  1217. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1218. # A ".." for each directory in $ac_dir_suffix.
  1219. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1220. case $ac_top_builddir_sub in
  1221. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1222. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1223. esac ;;
  1224. esac
  1225. ac_abs_top_builddir=$ac_pwd
  1226. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1227. # for backward compatibility:
  1228. ac_top_builddir=$ac_top_build_prefix
  1229. case $srcdir in
  1230. .) # We are building in place.
  1231. ac_srcdir=.
  1232. ac_top_srcdir=$ac_top_builddir_sub
  1233. ac_abs_top_srcdir=$ac_pwd ;;
  1234. [\\/]* | ?:[\\/]* ) # Absolute name.
  1235. ac_srcdir=$srcdir$ac_dir_suffix;
  1236. ac_top_srcdir=$srcdir
  1237. ac_abs_top_srcdir=$srcdir ;;
  1238. *) # Relative name.
  1239. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1240. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1241. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1242. esac
  1243. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1244. cd "$ac_dir" || { ac_status=$?; continue; }
  1245. # Check for guested configure.
  1246. if test -f "$ac_srcdir/configure.gnu"; then
  1247. echo &&
  1248. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1249. elif test -f "$ac_srcdir/configure"; then
  1250. echo &&
  1251. $SHELL "$ac_srcdir/configure" --help=recursive
  1252. else
  1253. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1254. fi || ac_status=$?
  1255. cd "$ac_pwd" || { ac_status=$?; break; }
  1256. done
  1257. fi
  1258. test -n "$ac_init_help" && exit $ac_status
  1259. if $ac_init_version; then
  1260. cat <<\_ACEOF
  1261. configure
  1262. generated by GNU Autoconf 2.61
  1263. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1264. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1265. This configure script is free software; the Free Software Foundation
  1266. gives unlimited permission to copy, distribute and modify it.
  1267. _ACEOF
  1268. exit
  1269. fi
  1270. cat >config.log <<_ACEOF
  1271. This file contains any messages produced by compilers while
  1272. running configure, to aid debugging if configure makes a mistake.
  1273. It was created by $as_me, which was
  1274. generated by GNU Autoconf 2.61. Invocation command line was
  1275. $ $0 $@
  1276. _ACEOF
  1277. exec 5>>config.log
  1278. {
  1279. cat <<_ASUNAME
  1280. ## --------- ##
  1281. ## Platform. ##
  1282. ## --------- ##
  1283. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1284. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1285. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1286. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1287. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1288. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1289. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1290. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1291. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1292. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1293. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1294. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1295. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1296. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1297. _ASUNAME
  1298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1299. for as_dir in $PATH
  1300. do
  1301. IFS=$as_save_IFS
  1302. test -z "$as_dir" && as_dir=.
  1303. echo "PATH: $as_dir"
  1304. done
  1305. IFS=$as_save_IFS
  1306. } >&5
  1307. cat >&5 <<_ACEOF
  1308. ## ----------- ##
  1309. ## Core tests. ##
  1310. ## ----------- ##
  1311. _ACEOF
  1312. # Keep a trace of the command line.
  1313. # Strip out --no-create and --no-recursion so they do not pile up.
  1314. # Strip out --silent because we don't want to record it for future runs.
  1315. # Also quote any args containing shell meta-characters.
  1316. # Make two passes to allow for proper duplicate-argument suppression.
  1317. ac_configure_args=
  1318. ac_configure_args0=
  1319. ac_configure_args1=
  1320. ac_must_keep_next=false
  1321. for ac_pass in 1 2
  1322. do
  1323. for ac_arg
  1324. do
  1325. case $ac_arg in
  1326. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1327. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1328. | -silent | --silent | --silen | --sile | --sil)
  1329. continue ;;
  1330. *\'*)
  1331. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1332. esac
  1333. case $ac_pass in
  1334. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1335. 2)
  1336. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1337. if test $ac_must_keep_next = true; then
  1338. ac_must_keep_next=false # Got value, back to normal.
  1339. else
  1340. case $ac_arg in
  1341. *=* | --config-cache | -C | -disable-* | --disable-* \
  1342. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1343. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1344. | -with-* | --with-* | -without-* | --without-* | --x)
  1345. case "$ac_configure_args0 " in
  1346. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1347. esac
  1348. ;;
  1349. -* ) ac_must_keep_next=true ;;
  1350. esac
  1351. fi
  1352. ac_configure_args="$ac_configure_args '$ac_arg'"
  1353. ;;
  1354. esac
  1355. done
  1356. done
  1357. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1358. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1359. # When interrupted or exit'd, cleanup temporary files, and complete
  1360. # config.log. We remove comments because anyway the quotes in there
  1361. # would cause problems or look ugly.
  1362. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1363. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1364. trap 'exit_status=$?
  1365. # Save into config.log some information that might help in debugging.
  1366. {
  1367. echo
  1368. cat <<\_ASBOX
  1369. ## ---------------- ##
  1370. ## Cache variables. ##
  1371. ## ---------------- ##
  1372. _ASBOX
  1373. echo
  1374. # The following way of writing the cache mishandles newlines in values,
  1375. (
  1376. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1377. eval ac_val=\$$ac_var
  1378. case $ac_val in #(
  1379. *${as_nl}*)
  1380. case $ac_var in #(
  1381. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1382. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1383. esac
  1384. case $ac_var in #(
  1385. _ | IFS | as_nl) ;; #(
  1386. *) $as_unset $ac_var ;;
  1387. esac ;;
  1388. esac
  1389. done
  1390. (set) 2>&1 |
  1391. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1392. *${as_nl}ac_space=\ *)
  1393. sed -n \
  1394. "s/'\''/'\''\\\\'\'''\''/g;
  1395. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1396. ;; #(
  1397. *)
  1398. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1399. ;;
  1400. esac |
  1401. sort
  1402. )
  1403. echo
  1404. cat <<\_ASBOX
  1405. ## ----------------- ##
  1406. ## Output variables. ##
  1407. ## ----------------- ##
  1408. _ASBOX
  1409. echo
  1410. for ac_var in $ac_subst_vars
  1411. do
  1412. eval ac_val=\$$ac_var
  1413. case $ac_val in
  1414. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1415. esac
  1416. echo "$ac_var='\''$ac_val'\''"
  1417. done | sort
  1418. echo
  1419. if test -n "$ac_subst_files"; then
  1420. cat <<\_ASBOX
  1421. ## ------------------- ##
  1422. ## File substitutions. ##
  1423. ## ------------------- ##
  1424. _ASBOX
  1425. echo
  1426. for ac_var in $ac_subst_files
  1427. do
  1428. eval ac_val=\$$ac_var
  1429. case $ac_val in
  1430. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1431. esac
  1432. echo "$ac_var='\''$ac_val'\''"
  1433. done | sort
  1434. echo
  1435. fi
  1436. if test -s confdefs.h; then
  1437. cat <<\_ASBOX
  1438. ## ----------- ##
  1439. ## confdefs.h. ##
  1440. ## ----------- ##
  1441. _ASBOX
  1442. echo
  1443. cat confdefs.h
  1444. echo
  1445. fi
  1446. test "$ac_signal" != 0 &&
  1447. echo "$as_me: caught signal $ac_signal"
  1448. echo "$as_me: exit $exit_status"
  1449. } >&5
  1450. rm -f core *.core core.conftest.* &&
  1451. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1452. exit $exit_status
  1453. ' 0
  1454. for ac_signal in 1 2 13 15; do
  1455. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1456. done
  1457. ac_signal=0
  1458. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1459. rm -f -r conftest* confdefs.h
  1460. # Predefined preprocessor variables.
  1461. cat >>confdefs.h <<_ACEOF
  1462. #define PACKAGE_NAME "$PACKAGE_NAME"
  1463. _ACEOF
  1464. cat >>confdefs.h <<_ACEOF
  1465. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1466. _ACEOF
  1467. cat >>confdefs.h <<_ACEOF
  1468. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1469. _ACEOF
  1470. cat >>confdefs.h <<_ACEOF
  1471. #define PACKAGE_STRING "$PACKAGE_STRING"
  1472. _ACEOF
  1473. cat >>confdefs.h <<_ACEOF
  1474. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1475. _ACEOF
  1476. # Let the site file select an alternate cache file if it wants to.
  1477. # Prefer explicitly selected file to automatically selected ones.
  1478. if test -n "$CONFIG_SITE"; then
  1479. set x "$CONFIG_SITE"
  1480. elif test "x$prefix" != xNONE; then
  1481. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1482. else
  1483. set x "$ac_default_prefix/share/config.site" \
  1484. "$ac_default_prefix/etc/config.site"
  1485. fi
  1486. shift
  1487. for ac_site_file
  1488. do
  1489. if test -r "$ac_site_file"; then
  1490. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1491. echo "$as_me: loading site script $ac_site_file" >&6;}
  1492. sed 's/^/| /' "$ac_site_file" >&5
  1493. . "$ac_site_file"
  1494. fi
  1495. done
  1496. if test -r "$cache_file"; then
  1497. # Some versions of bash will fail to source /dev/null (special
  1498. # files actually), so we avoid doing that.
  1499. if test -f "$cache_file"; then
  1500. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1501. echo "$as_me: loading cache $cache_file" >&6;}
  1502. case $cache_file in
  1503. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1504. *) . "./$cache_file";;
  1505. esac
  1506. fi
  1507. else
  1508. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1509. echo "$as_me: creating cache $cache_file" >&6;}
  1510. >$cache_file
  1511. fi
  1512. # Check that the precious variables saved in the cache have kept the same
  1513. # value.
  1514. ac_cache_corrupted=false
  1515. for ac_var in $ac_precious_vars; do
  1516. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1517. eval ac_new_set=\$ac_env_${ac_var}_set
  1518. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1519. eval ac_new_val=\$ac_env_${ac_var}_value
  1520. case $ac_old_set,$ac_new_set in
  1521. set,)
  1522. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1523. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1524. ac_cache_corrupted=: ;;
  1525. ,set)
  1526. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1527. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1528. ac_cache_corrupted=: ;;
  1529. ,);;
  1530. *)
  1531. if test "x$ac_old_val" != "x$ac_new_val"; then
  1532. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1533. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1534. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1535. echo "$as_me: former value: $ac_old_val" >&2;}
  1536. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1537. echo "$as_me: current value: $ac_new_val" >&2;}
  1538. ac_cache_corrupted=:
  1539. fi;;
  1540. esac
  1541. # Pass precious variables to config.status.
  1542. if test "$ac_new_set" = set; then
  1543. case $ac_new_val in
  1544. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1545. *) ac_arg=$ac_var=$ac_new_val ;;
  1546. esac
  1547. case " $ac_configure_args " in
  1548. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1549. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1550. esac
  1551. fi
  1552. done
  1553. if $ac_cache_corrupted; then
  1554. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1555. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1556. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1557. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1558. { (exit 1); exit 1; }; }
  1559. fi
  1560. ac_ext=c
  1561. ac_cpp='$CPP $CPPFLAGS'
  1562. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1563. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1564. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1565. if test `uname` = Darwin; then
  1566. if test "x$with_archflags" != x ; then
  1567. CFLAGS="$CFLAGS $with_archflags"
  1568. fi
  1569. USEMMFILES="Yes"
  1570. else
  1571. USEMMFILES="No"
  1572. fi
  1573. FL_MAJOR_VERSION=1
  1574. FL_MINOR_VERSION=3
  1575. FL_PATCH_VERSION=0
  1576. FL_API_VERSION=${FL_MAJOR_VERSION}.${FL_MINOR_VERSION}
  1577. uname=`uname`
  1578. uversion=`uname -r | sed -e '1,$s/[^0-9]//g'`
  1579. if test "x$uname" = xIRIX64; then
  1580. uname="IRIX"
  1581. fi
  1582. if test "x$uname" = x; then
  1583. # Older MinGW doesn't provide any output when uname is run, even with "-s".
  1584. # Current MinGW (as of Jan. 2011) however does, so this is not necessary anymore...
  1585. uname="MINGW"
  1586. fi
  1587. ARCHFLAGS="${ARCHFLAGS:=}"
  1588. CFLAGS="${CFLAGS:=}"
  1589. CPPFLAGS="${CPPFLAGS:=}"
  1590. CXXFLAGS="${CXXFLAGS:=}"
  1591. DSOFLAGS="${DSOFLAGS:=}"
  1592. LDFLAGS="${LDFLAGS:=}"
  1593. OPTIM="${OPTIM:=}"
  1594. if test "x$cross_compiling" != xno ; then
  1595. case $host_alias in
  1596. *mingw*)
  1597. uname=MINGW
  1598. ;;
  1599. esac
  1600. fi
  1601. uname_GUI=$uname
  1602. case $uname in
  1603. CYGWIN*)
  1604. # Handle Cygwin option *first*, before all other tests.
  1605. # Check whether --enable-cygwin was given.
  1606. if test "${enable_cygwin+set}" = set; then
  1607. enableval=$enable_cygwin;
  1608. fi
  1609. # Check whether --enable-x11 was given.
  1610. if test "${enable_x11+set}" = set; then
  1611. enableval=$enable_x11;
  1612. fi
  1613. if test x$enable_cygwin != xyes; then
  1614. # NOTE: We can't use ARCHFLAGS for this, since it does not work
  1615. # with some of the function tests - Cygwin uses a
  1616. # different C library...
  1617. CFLAGS="$CFLAGS -mno-cygwin"
  1618. CPPFLAGS="$CPPFLAGS -mno-cygwin"
  1619. CXXFLAGS="$CXXFLAGS -mno-cygwin"
  1620. LDFLAGS="$LDFLAGS -mno-cygwin"
  1621. DSOFLAGS="$DSOFLAGS -mno-cygwin"
  1622. else
  1623. # we target Cygwin in combination with X11
  1624. if test x$enable_x11 = xyes; then
  1625. uname_GUI="X11$uname"
  1626. fi
  1627. fi
  1628. ;;
  1629. esac
  1630. LINKFLTK="../lib/libfltk.a"
  1631. LINKFLTKFORMS="../lib/libfltk_forms.a"
  1632. LINKFLTKGL="../lib/libfltk_gl.a"
  1633. LINKFLTKIMG="../lib/libfltk_images.a"
  1634. GLDEMOS="gldemos"
  1635. LIBEXT=".a"
  1636. LIBNAME="../lib/libfltk.a"
  1637. FLLIBNAME="../lib/libfltk_forms.a"
  1638. GLLIBNAME="../lib/libfltk_gl.a"
  1639. IMGLIBNAME="../lib/libfltk_images.a"
  1640. CAIROLIBNAME="../lib/libfltk_cairo.a"
  1641. LIBBASENAME="libfltk.a"
  1642. FLLIBBASENAME="libfltk_forms.a"
  1643. GLLIBBASENAME="libfltk_gl.a"
  1644. IMGLIBBASENAME="libfltk_images.a"
  1645. CAIROLIBBASENAME="libfltk_cairo.a"
  1646. CAIRODIR=""
  1647. CAIROFLAGS=""
  1648. LINKFLTKCAIRO=""
  1649. FLTKCAIROOPTION=""
  1650. CAIROLIBS=""
  1651. # Check whether --enable-cairoext was given.
  1652. if test "${enable_cairoext+set}" = set; then
  1653. enableval=$enable_cairoext;
  1654. fi
  1655. # Check whether --enable-cairo was given.
  1656. if test "${enable_cairo+set}" = set; then
  1657. enableval=$enable_cairo;
  1658. fi
  1659. if test x$enable_cairoext = xyes; then
  1660. cat >>confdefs.h <<\_ACEOF
  1661. #define FLTK_USE_CAIRO 1
  1662. _ACEOF
  1663. cat >>confdefs.h <<\_ACEOF
  1664. #define FLTK_HAVE_CAIRO 1
  1665. _ACEOF
  1666. CAIRODIR="cairo"
  1667. CAIROFLAGS="`pkg-config --cflags cairo`"
  1668. CAIROLIBS="-lcairo -lpixman-1"
  1669. CXXFLAGS="$CAIROFLAGS $CXXFLAGS"
  1670. LINKFLTKCAIRO="../lib/libfltk_cairo.a"
  1671. FLTKCAIROOPTION="-L ../cairo -lfltk_cairo$SHAREDSUFFIX"
  1672. LIBS="$CAIROLIBS $LIBS"
  1673. LINKFLTK+=" $LINKFLTKCAIRO"
  1674. else
  1675. if test x$enable_cairo = xyes; then
  1676. cat >>confdefs.h <<\_ACEOF
  1677. #define FLTK_HAVE_CAIRO 1
  1678. _ACEOF
  1679. CAIRODIR="cairo"
  1680. CAIROFLAGS="`pkg-config --cflags cairo`"
  1681. CAIROLIBS="-lcairo -lpixman-1"
  1682. CXXFLAGS="$CAIROFLAGS $CXXFLAGS"
  1683. LINKFLTKCAIRO="../lib/libfltk_cairo.a"
  1684. FLTKCAIROOPTION="-L ../cairo -lfltk_cairo$SHAREDSUFFIX"
  1685. fi
  1686. fi
  1687. # Check whether --enable-debug was given.
  1688. if test "${enable_debug+set}" = set; then
  1689. enableval=$enable_debug;
  1690. fi
  1691. if test x$enable_debug = xyes; then
  1692. DEBUGFLAG="-g "
  1693. else
  1694. DEBUGFLAG=""
  1695. fi
  1696. # Check whether --enable-cp936 was given.
  1697. if test "${enable_cp936+set}" = set; then
  1698. enableval=$enable_cp936;
  1699. fi
  1700. if test x$enable_cp936 = xyes; then
  1701. CFLAGS="$CFLAGS -DCP936"
  1702. fi
  1703. # Check whether --enable-gl was given.
  1704. if test "${enable_gl+set}" = set; then
  1705. enableval=$enable_gl;
  1706. fi
  1707. # Check whether --enable-shared was given.
  1708. if test "${enable_shared+set}" = set; then
  1709. enableval=$enable_shared;
  1710. fi
  1711. if test x$enable_shared = xyes; then
  1712. PICFLAG=1
  1713. SHAREDSUFFIX=""
  1714. FLUID="fluid-shared"
  1715. case $uname in
  1716. Darwin*)
  1717. DSONAME="libfltk.$FL_API_VERSION.dylib"
  1718. FLDSONAME="libfltk_forms.$FL_API_VERSION.dylib"
  1719. GLDSONAME="libfltk_gl.$FL_API_VERSION.dylib"
  1720. IMGDSONAME="libfltk_images.$FL_API_VERSION.dylib"
  1721. CAIRODSONAME="libfltk_cairo.$FL_API_VERSION.dylib"
  1722. DSOCOMMAND="\$(CXX) \$(ARCHFLAGS) \$(DSOFLAGS) -dynamiclib -lc -o"
  1723. ;;
  1724. SunOS* | UNIX_S*)
  1725. DSONAME="libfltk.so.$FL_API_VERSION"
  1726. FLDSONAME="libfltk_forms.so.$FL_API_VERSION"
  1727. GLDSONAME="libfltk_gl.so.$FL_API_VERSION"
  1728. IMGDSONAME="libfltk_images.so.$FL_API_VERSION"
  1729. CAIRODSONAME="libfltk_cairo.so.$FL_API_VERSION"
  1730. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -h \$@ \$(LDLIBS) -G $DEBUGFLAG -o"
  1731. if test "x$libdir" != "x/usr/lib"; then
  1732. DSOLINK="-R$libdir"
  1733. fi
  1734. ;;
  1735. HP-UX*)
  1736. DSONAME="libfltk.sl.$FL_API_VERSION"
  1737. FLDSONAME="libfltk_forms.sl.$FL_API_VERSION"
  1738. GLDSONAME="libfltk_gl.sl.$FL_API_VERSION"
  1739. IMGDSONAME="libfltk_images.sl.$FL_API_VERSION"
  1740. CAIRODSONAME="libfltk_cairo.sl.$FL_API_VERSION"
  1741. DSOCOMMAND="ld \$(DSOFLAGS) -b -z +h \$@ $DEBUGFLAG -o"
  1742. if test "x$libdir" != "x/usr/lib"; then
  1743. DSOLINK="-Wl,-rpath,$libdir"
  1744. fi
  1745. ;;
  1746. IRIX*)
  1747. DSONAME="libfltk.so.$FL_API_VERSION"
  1748. FLDSONAME="libfltk_forms.so.$FL_API_VERSION"
  1749. GLDSONAME="libfltk_gl.so.$FL_API_VERSION"
  1750. IMGDSONAME="libfltk_images.so.$FL_API_VERSION"
  1751. CAIRODSONAME="libfltk_cairo.so.$FL_API_VERSION"
  1752. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@,-set_version,sgi1.1 \$(LDLIBS) -shared $DEBUGFLAG -o"
  1753. if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib32" -a "x$libdir" != "x/usr/lib64"; then
  1754. DSOLINK="-Wl,-rpath,$libdir"
  1755. fi
  1756. ;;
  1757. OSF1*)
  1758. DSONAME="libfltk.so.$FL_API_VERSION"
  1759. FLDSONAME="libfltk_forms.so.$FL_API_VERSION"
  1760. GLDSONAME="libfltk_gl.so.$FL_API_VERSION"
  1761. IMGDSONAME="libfltk_images.so.$FL_API_VERSION"
  1762. CAIRODSONAME="libfltk_cairo.so.$FL_API_VERSION"
  1763. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@ \$(LDLIBS) -shared $DEBUGFLAG -o"
  1764. if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib32"; then
  1765. DSOLINK="-Wl,-rpath,$libdir"
  1766. fi
  1767. ;;
  1768. Linux* | *BSD*)
  1769. DSONAME="libfltk.so.$FL_API_VERSION"
  1770. FLDSONAME="libfltk_forms.so.$FL_API_VERSION"
  1771. GLDSONAME="libfltk_gl.so.$FL_API_VERSION"
  1772. IMGDSONAME="libfltk_images.so.$FL_API_VERSION"
  1773. CAIRODSONAME="libfltk_cairo.so.$FL_API_VERSION"
  1774. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@ \$(LDLIBS) -shared -fPIC $DEBUGFLAG -o"
  1775. if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib64"; then
  1776. DSOLINK="-Wl,-rpath,$libdir"
  1777. fi
  1778. ;;
  1779. AIX*)
  1780. DSONAME="libfltk_s.a"
  1781. FLDSONAME="libfltk_forms_s.a"
  1782. GLDSONAME="libfltk_gl_s.a"
  1783. IMGDSONAME="libfltk_images_s.a"
  1784. CAIRODSONAME="libfltk_cairo_s.a"
  1785. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-bexpall,-bM:SRE,-bnoentry -o"
  1786. SHAREDSUFFIX="_s"
  1787. ;;
  1788. CYGWIN* | MINGW*)
  1789. PICFLAG=0
  1790. if test x$enable_cygwin != xyes; then
  1791. DSONAME="mgwfltknox-$FL_API_VERSION.dll"
  1792. FLDSONAME="mgwfltknox_forms-$FL_API_VERSION.dll"
  1793. GLDSONAME="mgwfltknox_gl-$FL_API_VERSION.dll"
  1794. IMGDSONAME="mgwfltknox_images-$FL_API_VERSION.dll"
  1795. CAIRODSONAME="mgwfltknox_cairo-$FL_API_VERSION.dll"
  1796. else
  1797. if test x$enable_x11 = xyes; then
  1798. DSONAME="cygfltk-$FL_API_VERSION.dll"
  1799. FLDSONAME="cygfltk_forms-$FL_API_VERSION.dll"
  1800. GLDSONAME="cygfltk_gl-$FL_API_VERSION.dll"
  1801. IMGDSONAME="cygfltk_images-$FL_API_VERSION.dll"
  1802. CAIRODSONAME="cygfltk_cairo-$FL_API_VERSION.dll"
  1803. else
  1804. DSONAME="cygfltknox-$FL_API_VERSION.dll"
  1805. FLDSONAME="cygfltknox_forms-$FL_API_VERSION.dll"
  1806. GLDSONAME="cygfltknox_gl-$FL_API_VERSION.dll"
  1807. IMGDSONAME="cygfltknox_images-$FL_API_VERSION.dll"
  1808. CAIRODSONAME="cygfltknox_cairo-$FL_API_VERSION.dll"
  1809. fi
  1810. fi
  1811. #-----------------------------------------------------------
  1812. # -Wl,--enable-runtime-pseudo-reloc: See str 1585
  1813. # appears to be necessary for older binutils versions < 2.16
  1814. #-----------------------------------------------------------
  1815. LDFLAGS="$LDFLAGS -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc"
  1816. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -shared \
  1817. -Wl,--whole-archive -Wl,--export-all-symbols \
  1818. -Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-import \
  1819. -Wl,--enable-auto-image-base -o \$@"
  1820. ;;
  1821. *)
  1822. { echo "$as_me:$LINENO: WARNING: Shared libraries may not be supported. Trying -shared option with compiler." >&5
  1823. echo "$as_me: WARNING: Shared libraries may not be supported. Trying -shared option with compiler." >&2;}
  1824. DSONAME="libfltk.so.$FL_API_VERSION"
  1825. FLDSONAME="libfltk_forms.so.$FL_API_VERSION"
  1826. GLDSONAME="libfltk_gl.so.$FL_API_VERSION"
  1827. IMGDSONAME="libfltk_images.so.$FL_API_VERSION"
  1828. CAIRODSONAME="libfltk_cairo.so.$FL_API_VERSION"
  1829. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@ \$(LDLIBS) -shared $DEBUGFLAG -o"
  1830. ;;
  1831. esac
  1832. LINKSHARED="-L../src $FLTKCAIROOPTION -lfltk_images$SHAREDSUFFIX -lfltk_forms$SHAREDSUFFIX -lfltk$SHAREDSUFFIX"
  1833. else
  1834. DSOCOMMAND="echo"
  1835. DSOLINK=""
  1836. DSONAME=""
  1837. FLDSONAME=""
  1838. GLDSONAME=""
  1839. IMGDSONAME=""
  1840. CAIRODSONAME=""
  1841. PICFLAG=0
  1842. SHAREDSUFFIX=""
  1843. FLUID="fluid"
  1844. LINKSHARED="$LINKFLTKCAIRO ../lib/libfltk_images.a ../lib/libfltk_forms.a ../lib/libfltk.a"
  1845. fi
  1846. # Check whether --enable-threads was given.
  1847. if test "${enable_threads+set}" = set; then
  1848. enableval=$enable_threads;
  1849. fi
  1850. # Check whether --with-optim was given.
  1851. if test "${with_optim+set}" = set; then
  1852. withval=$with_optim;
  1853. fi
  1854. # Check whether --with-archflags was given.
  1855. if test "${with_archflags+set}" = set; then
  1856. withval=$with_archflags; ARCHFLAGS="$withval"
  1857. fi
  1858. case $uname in
  1859. Darwin*)
  1860. # QD is not supported anymore since 1.3
  1861. cat >>confdefs.h <<\_ACEOF
  1862. #define __APPLE_QUARTZ__ 1
  1863. _ACEOF
  1864. ;;
  1865. esac
  1866. ac_ext=c
  1867. ac_cpp='$CPP $CPPFLAGS'
  1868. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1869. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1870. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1871. if test -n "$ac_tool_prefix"; then
  1872. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1873. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1874. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1875. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1876. if test "${ac_cv_prog_CC+set}" = set; then
  1877. echo $ECHO_N "(cached) $ECHO_C" >&6
  1878. else
  1879. if test -n "$CC"; then
  1880. ac_cv_prog_CC="$CC" # Let the user override the test.
  1881. else
  1882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1883. for as_dir in $PATH
  1884. do
  1885. IFS=$as_save_IFS
  1886. test -z "$as_dir" && as_dir=.
  1887. for ac_exec_ext in '' $ac_executable_extensions; do
  1888. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1889. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1890. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1891. break 2
  1892. fi
  1893. done
  1894. done
  1895. IFS=$as_save_IFS
  1896. fi
  1897. fi
  1898. CC=$ac_cv_prog_CC
  1899. if test -n "$CC"; then
  1900. { echo "$as_me:$LINENO: result: $CC" >&5
  1901. echo "${ECHO_T}$CC" >&6; }
  1902. else
  1903. { echo "$as_me:$LINENO: result: no" >&5
  1904. echo "${ECHO_T}no" >&6; }
  1905. fi
  1906. fi
  1907. if test -z "$ac_cv_prog_CC"; then
  1908. ac_ct_CC=$CC
  1909. # Extract the first word of "gcc", so it can be a program name with args.
  1910. set dummy gcc; ac_word=$2
  1911. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1912. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1913. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1914. echo $ECHO_N "(cached) $ECHO_C" >&6
  1915. else
  1916. if test -n "$ac_ct_CC"; then
  1917. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1918. else
  1919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1920. for as_dir in $PATH
  1921. do
  1922. IFS=$as_save_IFS
  1923. test -z "$as_dir" && as_dir=.
  1924. for ac_exec_ext in '' $ac_executable_extensions; do
  1925. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1926. ac_cv_prog_ac_ct_CC="gcc"
  1927. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1928. break 2
  1929. fi
  1930. done
  1931. done
  1932. IFS=$as_save_IFS
  1933. fi
  1934. fi
  1935. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1936. if test -n "$ac_ct_CC"; then
  1937. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1938. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1939. else
  1940. { echo "$as_me:$LINENO: result: no" >&5
  1941. echo "${ECHO_T}no" >&6; }
  1942. fi
  1943. if test "x$ac_ct_CC" = x; then
  1944. CC=""
  1945. else
  1946. case $cross_compiling:$ac_tool_warned in
  1947. yes:)
  1948. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1949. whose name does not start with the host triplet. If you think this
  1950. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1951. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1952. whose name does not start with the host triplet. If you think this
  1953. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1954. ac_tool_warned=yes ;;
  1955. esac
  1956. CC=$ac_ct_CC
  1957. fi
  1958. else
  1959. CC="$ac_cv_prog_CC"
  1960. fi
  1961. if test -z "$CC"; then
  1962. if test -n "$ac_tool_prefix"; then
  1963. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1964. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1965. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1966. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1967. if test "${ac_cv_prog_CC+set}" = set; then
  1968. echo $ECHO_N "(cached) $ECHO_C" >&6
  1969. else
  1970. if test -n "$CC"; then
  1971. ac_cv_prog_CC="$CC" # Let the user override the test.
  1972. else
  1973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1974. for as_dir in $PATH
  1975. do
  1976. IFS=$as_save_IFS
  1977. test -z "$as_dir" && as_dir=.
  1978. for ac_exec_ext in '' $ac_executable_extensions; do
  1979. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1980. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1981. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1982. break 2
  1983. fi
  1984. done
  1985. done
  1986. IFS=$as_save_IFS
  1987. fi
  1988. fi
  1989. CC=$ac_cv_prog_CC
  1990. if test -n "$CC"; then
  1991. { echo "$as_me:$LINENO: result: $CC" >&5
  1992. echo "${ECHO_T}$CC" >&6; }
  1993. else
  1994. { echo "$as_me:$LINENO: result: no" >&5
  1995. echo "${ECHO_T}no" >&6; }
  1996. fi
  1997. fi
  1998. fi
  1999. if test -z "$CC"; then
  2000. # Extract the first word of "cc", so it can be a program name with args.
  2001. set dummy cc; ac_word=$2
  2002. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2003. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2004. if test "${ac_cv_prog_CC+set}" = set; then
  2005. echo $ECHO_N "(cached) $ECHO_C" >&6
  2006. else
  2007. if test -n "$CC"; then
  2008. ac_cv_prog_CC="$CC" # Let the user override the test.
  2009. else
  2010. ac_prog_rejected=no
  2011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2012. for as_dir in $PATH
  2013. do
  2014. IFS=$as_save_IFS
  2015. test -z "$as_dir" && as_dir=.
  2016. for ac_exec_ext in '' $ac_executable_extensions; do
  2017. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2018. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2019. ac_prog_rejected=yes
  2020. continue
  2021. fi
  2022. ac_cv_prog_CC="cc"
  2023. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2024. break 2
  2025. fi
  2026. done
  2027. done
  2028. IFS=$as_save_IFS
  2029. if test $ac_prog_rejected = yes; then
  2030. # We found a bogon in the path, so make sure we never use it.
  2031. set dummy $ac_cv_prog_CC
  2032. shift
  2033. if test $# != 0; then
  2034. # We chose a different compiler from the bogus one.
  2035. # However, it has the same basename, so the bogon will be chosen
  2036. # first if we set CC to just the basename; use the full file name.
  2037. shift
  2038. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2039. fi
  2040. fi
  2041. fi
  2042. fi
  2043. CC=$ac_cv_prog_CC
  2044. if test -n "$CC"; then
  2045. { echo "$as_me:$LINENO: result: $CC" >&5
  2046. echo "${ECHO_T}$CC" >&6; }
  2047. else
  2048. { echo "$as_me:$LINENO: result: no" >&5
  2049. echo "${ECHO_T}no" >&6; }
  2050. fi
  2051. fi
  2052. if test -z "$CC"; then
  2053. if test -n "$ac_tool_prefix"; then
  2054. for ac_prog in cl.exe
  2055. do
  2056. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2057. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2058. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2059. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2060. if test "${ac_cv_prog_CC+set}" = set; then
  2061. echo $ECHO_N "(cached) $ECHO_C" >&6
  2062. else
  2063. if test -n "$CC"; then
  2064. ac_cv_prog_CC="$CC" # Let the user override the test.
  2065. else
  2066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2067. for as_dir in $PATH
  2068. do
  2069. IFS=$as_save_IFS
  2070. test -z "$as_dir" && as_dir=.
  2071. for ac_exec_ext in '' $ac_executable_extensions; do
  2072. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2073. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2074. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2075. break 2
  2076. fi
  2077. done
  2078. done
  2079. IFS=$as_save_IFS
  2080. fi
  2081. fi
  2082. CC=$ac_cv_prog_CC
  2083. if test -n "$CC"; then
  2084. { echo "$as_me:$LINENO: result: $CC" >&5
  2085. echo "${ECHO_T}$CC" >&6; }
  2086. else
  2087. { echo "$as_me:$LINENO: result: no" >&5
  2088. echo "${ECHO_T}no" >&6; }
  2089. fi
  2090. test -n "$CC" && break
  2091. done
  2092. fi
  2093. if test -z "$CC"; then
  2094. ac_ct_CC=$CC
  2095. for ac_prog in cl.exe
  2096. do
  2097. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2098. set dummy $ac_prog; ac_word=$2
  2099. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2100. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2101. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2102. echo $ECHO_N "(cached) $ECHO_C" >&6
  2103. else
  2104. if test -n "$ac_ct_CC"; then
  2105. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2106. else
  2107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2108. for as_dir in $PATH
  2109. do
  2110. IFS=$as_save_IFS
  2111. test -z "$as_dir" && as_dir=.
  2112. for ac_exec_ext in '' $ac_executable_extensions; do
  2113. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2114. ac_cv_prog_ac_ct_CC="$ac_prog"
  2115. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2116. break 2
  2117. fi
  2118. done
  2119. done
  2120. IFS=$as_save_IFS
  2121. fi
  2122. fi
  2123. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2124. if test -n "$ac_ct_CC"; then
  2125. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2126. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2127. else
  2128. { echo "$as_me:$LINENO: result: no" >&5
  2129. echo "${ECHO_T}no" >&6; }
  2130. fi
  2131. test -n "$ac_ct_CC" && break
  2132. done
  2133. if test "x$ac_ct_CC" = x; then
  2134. CC=""
  2135. else
  2136. case $cross_compiling:$ac_tool_warned in
  2137. yes:)
  2138. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2139. whose name does not start with the host triplet. If you think this
  2140. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2141. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2142. whose name does not start with the host triplet. If you think this
  2143. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2144. ac_tool_warned=yes ;;
  2145. esac
  2146. CC=$ac_ct_CC
  2147. fi
  2148. fi
  2149. fi
  2150. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2151. See \`config.log' for more details." >&5
  2152. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2153. See \`config.log' for more details." >&2;}
  2154. { (exit 1); exit 1; }; }
  2155. # Provide some information about the compiler.
  2156. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2157. ac_compiler=`set X $ac_compile; echo $2`
  2158. { (ac_try="$ac_compiler --version >&5"
  2159. case "(($ac_try" in
  2160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2161. *) ac_try_echo=$ac_try;;
  2162. esac
  2163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2164. (eval "$ac_compiler --version >&5") 2>&5
  2165. ac_status=$?
  2166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2167. (exit $ac_status); }
  2168. { (ac_try="$ac_compiler -v >&5"
  2169. case "(($ac_try" in
  2170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2171. *) ac_try_echo=$ac_try;;
  2172. esac
  2173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2174. (eval "$ac_compiler -v >&5") 2>&5
  2175. ac_status=$?
  2176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2177. (exit $ac_status); }
  2178. { (ac_try="$ac_compiler -V >&5"
  2179. case "(($ac_try" in
  2180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2181. *) ac_try_echo=$ac_try;;
  2182. esac
  2183. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2184. (eval "$ac_compiler -V >&5") 2>&5
  2185. ac_status=$?
  2186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2187. (exit $ac_status); }
  2188. cat >conftest.$ac_ext <<_ACEOF
  2189. /* confdefs.h. */
  2190. _ACEOF
  2191. cat confdefs.h >>conftest.$ac_ext
  2192. cat >>conftest.$ac_ext <<_ACEOF
  2193. /* end confdefs.h. */
  2194. int
  2195. main ()
  2196. {
  2197. ;
  2198. return 0;
  2199. }
  2200. _ACEOF
  2201. ac_clean_files_save=$ac_clean_files
  2202. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2203. # Try to create an executable without -o first, disregard a.out.
  2204. # It will help us diagnose broken compilers, and finding out an intuition
  2205. # of exeext.
  2206. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2207. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2208. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2209. #
  2210. # List of possible output files, starting from the most likely.
  2211. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2212. # only as a last resort. b.out is created by i960 compilers.
  2213. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2214. #
  2215. # The IRIX 6 linker writes into existing files which may not be
  2216. # executable, retaining their permissions. Remove them first so a
  2217. # subsequent execution test works.
  2218. ac_rmfiles=
  2219. for ac_file in $ac_files
  2220. do
  2221. case $ac_file in
  2222. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2223. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2224. esac
  2225. done
  2226. rm -f $ac_rmfiles
  2227. if { (ac_try="$ac_link_default"
  2228. case "(($ac_try" in
  2229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2230. *) ac_try_echo=$ac_try;;
  2231. esac
  2232. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2233. (eval "$ac_link_default") 2>&5
  2234. ac_status=$?
  2235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2236. (exit $ac_status); }; then
  2237. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2238. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2239. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2240. # so that the user can short-circuit this test for compilers unknown to
  2241. # Autoconf.
  2242. for ac_file in $ac_files ''
  2243. do
  2244. test -f "$ac_file" || continue
  2245. case $ac_file in
  2246. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2247. ;;
  2248. [ab].out )
  2249. # We found the default executable, but exeext='' is most
  2250. # certainly right.
  2251. break;;
  2252. *.* )
  2253. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2254. then :; else
  2255. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2256. fi
  2257. # We set ac_cv_exeext here because the later test for it is not
  2258. # safe: cross compilers may not add the suffix if given an `-o'
  2259. # argument, so we may need to know it at that point already.
  2260. # Even if this section looks crufty: it has the advantage of
  2261. # actually working.
  2262. break;;
  2263. * )
  2264. break;;
  2265. esac
  2266. done
  2267. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2268. else
  2269. ac_file=''
  2270. fi
  2271. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2272. echo "${ECHO_T}$ac_file" >&6; }
  2273. if test -z "$ac_file"; then
  2274. echo "$as_me: failed program was:" >&5
  2275. sed 's/^/| /' conftest.$ac_ext >&5
  2276. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2277. See \`config.log' for more details." >&5
  2278. echo "$as_me: error: C compiler cannot create executables
  2279. See \`config.log' for more details." >&2;}
  2280. { (exit 77); exit 77; }; }
  2281. fi
  2282. ac_exeext=$ac_cv_exeext
  2283. # Check that the compiler produces executables we can run. If not, either
  2284. # the compiler is broken, or we cross compile.
  2285. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2286. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2287. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2288. # If not cross compiling, check that we can run a simple program.
  2289. if test "$cross_compiling" != yes; then
  2290. if { ac_try='./$ac_file'
  2291. { (case "(($ac_try" in
  2292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2293. *) ac_try_echo=$ac_try;;
  2294. esac
  2295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2296. (eval "$ac_try") 2>&5
  2297. ac_status=$?
  2298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2299. (exit $ac_status); }; }; then
  2300. cross_compiling=no
  2301. else
  2302. if test "$cross_compiling" = maybe; then
  2303. cross_compiling=yes
  2304. else
  2305. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2306. If you meant to cross compile, use \`--host'.
  2307. See \`config.log' for more details." >&5
  2308. echo "$as_me: error: cannot run C compiled programs.
  2309. If you meant to cross compile, use \`--host'.
  2310. See \`config.log' for more details." >&2;}
  2311. { (exit 1); exit 1; }; }
  2312. fi
  2313. fi
  2314. fi
  2315. { echo "$as_me:$LINENO: result: yes" >&5
  2316. echo "${ECHO_T}yes" >&6; }
  2317. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2318. ac_clean_files=$ac_clean_files_save
  2319. # Check that the compiler produces executables we can run. If not, either
  2320. # the compiler is broken, or we cross compile.
  2321. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2322. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2323. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2324. echo "${ECHO_T}$cross_compiling" >&6; }
  2325. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2326. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2327. if { (ac_try="$ac_link"
  2328. case "(($ac_try" in
  2329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2330. *) ac_try_echo=$ac_try;;
  2331. esac
  2332. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2333. (eval "$ac_link") 2>&5
  2334. ac_status=$?
  2335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2336. (exit $ac_status); }; then
  2337. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2338. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2339. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2340. # `rm'.
  2341. for ac_file in conftest.exe conftest conftest.*; do
  2342. test -f "$ac_file" || continue
  2343. case $ac_file in
  2344. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2345. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2346. break;;
  2347. * ) break;;
  2348. esac
  2349. done
  2350. else
  2351. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2352. See \`config.log' for more details." >&5
  2353. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2354. See \`config.log' for more details." >&2;}
  2355. { (exit 1); exit 1; }; }
  2356. fi
  2357. rm -f conftest$ac_cv_exeext
  2358. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2359. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2360. rm -f conftest.$ac_ext
  2361. EXEEXT=$ac_cv_exeext
  2362. ac_exeext=$EXEEXT
  2363. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2364. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2365. if test "${ac_cv_objext+set}" = set; then
  2366. echo $ECHO_N "(cached) $ECHO_C" >&6
  2367. else
  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. int
  2375. main ()
  2376. {
  2377. ;
  2378. return 0;
  2379. }
  2380. _ACEOF
  2381. rm -f conftest.o conftest.obj
  2382. if { (ac_try="$ac_compile"
  2383. case "(($ac_try" in
  2384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2385. *) ac_try_echo=$ac_try;;
  2386. esac
  2387. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2388. (eval "$ac_compile") 2>&5
  2389. ac_status=$?
  2390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2391. (exit $ac_status); }; then
  2392. for ac_file in conftest.o conftest.obj conftest.*; do
  2393. test -f "$ac_file" || continue;
  2394. case $ac_file in
  2395. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2396. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2397. break;;
  2398. esac
  2399. done
  2400. else
  2401. echo "$as_me: failed program was:" >&5
  2402. sed 's/^/| /' conftest.$ac_ext >&5
  2403. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2404. See \`config.log' for more details." >&5
  2405. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2406. See \`config.log' for more details." >&2;}
  2407. { (exit 1); exit 1; }; }
  2408. fi
  2409. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2410. fi
  2411. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2412. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2413. OBJEXT=$ac_cv_objext
  2414. ac_objext=$OBJEXT
  2415. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2416. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2417. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2418. echo $ECHO_N "(cached) $ECHO_C" >&6
  2419. else
  2420. cat >conftest.$ac_ext <<_ACEOF
  2421. /* confdefs.h. */
  2422. _ACEOF
  2423. cat confdefs.h >>conftest.$ac_ext
  2424. cat >>conftest.$ac_ext <<_ACEOF
  2425. /* end confdefs.h. */
  2426. int
  2427. main ()
  2428. {
  2429. #ifndef __GNUC__
  2430. choke me
  2431. #endif
  2432. ;
  2433. return 0;
  2434. }
  2435. _ACEOF
  2436. rm -f conftest.$ac_objext
  2437. if { (ac_try="$ac_compile"
  2438. case "(($ac_try" in
  2439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2440. *) ac_try_echo=$ac_try;;
  2441. esac
  2442. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2443. (eval "$ac_compile") 2>conftest.er1
  2444. ac_status=$?
  2445. grep -v '^ *+' conftest.er1 >conftest.err
  2446. rm -f conftest.er1
  2447. cat conftest.err >&5
  2448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2449. (exit $ac_status); } && {
  2450. test -z "$ac_c_werror_flag" ||
  2451. test ! -s conftest.err
  2452. } && test -s conftest.$ac_objext; then
  2453. ac_compiler_gnu=yes
  2454. else
  2455. echo "$as_me: failed program was:" >&5
  2456. sed 's/^/| /' conftest.$ac_ext >&5
  2457. ac_compiler_gnu=no
  2458. fi
  2459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2460. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2461. fi
  2462. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2463. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2464. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2465. ac_test_CFLAGS=${CFLAGS+set}
  2466. ac_save_CFLAGS=$CFLAGS
  2467. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2468. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2469. if test "${ac_cv_prog_cc_g+set}" = set; then
  2470. echo $ECHO_N "(cached) $ECHO_C" >&6
  2471. else
  2472. ac_save_c_werror_flag=$ac_c_werror_flag
  2473. ac_c_werror_flag=yes
  2474. ac_cv_prog_cc_g=no
  2475. CFLAGS="-g"
  2476. cat >conftest.$ac_ext <<_ACEOF
  2477. /* confdefs.h. */
  2478. _ACEOF
  2479. cat confdefs.h >>conftest.$ac_ext
  2480. cat >>conftest.$ac_ext <<_ACEOF
  2481. /* end confdefs.h. */
  2482. int
  2483. main ()
  2484. {
  2485. ;
  2486. return 0;
  2487. }
  2488. _ACEOF
  2489. rm -f conftest.$ac_objext
  2490. if { (ac_try="$ac_compile"
  2491. case "(($ac_try" in
  2492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2493. *) ac_try_echo=$ac_try;;
  2494. esac
  2495. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2496. (eval "$ac_compile") 2>conftest.er1
  2497. ac_status=$?
  2498. grep -v '^ *+' conftest.er1 >conftest.err
  2499. rm -f conftest.er1
  2500. cat conftest.err >&5
  2501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2502. (exit $ac_status); } && {
  2503. test -z "$ac_c_werror_flag" ||
  2504. test ! -s conftest.err
  2505. } && test -s conftest.$ac_objext; then
  2506. ac_cv_prog_cc_g=yes
  2507. else
  2508. echo "$as_me: failed program was:" >&5
  2509. sed 's/^/| /' conftest.$ac_ext >&5
  2510. CFLAGS=""
  2511. cat >conftest.$ac_ext <<_ACEOF
  2512. /* confdefs.h. */
  2513. _ACEOF
  2514. cat confdefs.h >>conftest.$ac_ext
  2515. cat >>conftest.$ac_ext <<_ACEOF
  2516. /* end confdefs.h. */
  2517. int
  2518. main ()
  2519. {
  2520. ;
  2521. return 0;
  2522. }
  2523. _ACEOF
  2524. rm -f conftest.$ac_objext
  2525. if { (ac_try="$ac_compile"
  2526. case "(($ac_try" in
  2527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2528. *) ac_try_echo=$ac_try;;
  2529. esac
  2530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2531. (eval "$ac_compile") 2>conftest.er1
  2532. ac_status=$?
  2533. grep -v '^ *+' conftest.er1 >conftest.err
  2534. rm -f conftest.er1
  2535. cat conftest.err >&5
  2536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2537. (exit $ac_status); } && {
  2538. test -z "$ac_c_werror_flag" ||
  2539. test ! -s conftest.err
  2540. } && test -s conftest.$ac_objext; then
  2541. :
  2542. else
  2543. echo "$as_me: failed program was:" >&5
  2544. sed 's/^/| /' conftest.$ac_ext >&5
  2545. ac_c_werror_flag=$ac_save_c_werror_flag
  2546. CFLAGS="-g"
  2547. cat >conftest.$ac_ext <<_ACEOF
  2548. /* confdefs.h. */
  2549. _ACEOF
  2550. cat confdefs.h >>conftest.$ac_ext
  2551. cat >>conftest.$ac_ext <<_ACEOF
  2552. /* end confdefs.h. */
  2553. int
  2554. main ()
  2555. {
  2556. ;
  2557. return 0;
  2558. }
  2559. _ACEOF
  2560. rm -f conftest.$ac_objext
  2561. if { (ac_try="$ac_compile"
  2562. case "(($ac_try" in
  2563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2564. *) ac_try_echo=$ac_try;;
  2565. esac
  2566. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2567. (eval "$ac_compile") 2>conftest.er1
  2568. ac_status=$?
  2569. grep -v '^ *+' conftest.er1 >conftest.err
  2570. rm -f conftest.er1
  2571. cat conftest.err >&5
  2572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2573. (exit $ac_status); } && {
  2574. test -z "$ac_c_werror_flag" ||
  2575. test ! -s conftest.err
  2576. } && test -s conftest.$ac_objext; then
  2577. ac_cv_prog_cc_g=yes
  2578. else
  2579. echo "$as_me: failed program was:" >&5
  2580. sed 's/^/| /' conftest.$ac_ext >&5
  2581. fi
  2582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2583. fi
  2584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2585. fi
  2586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2587. ac_c_werror_flag=$ac_save_c_werror_flag
  2588. fi
  2589. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2590. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2591. if test "$ac_test_CFLAGS" = set; then
  2592. CFLAGS=$ac_save_CFLAGS
  2593. elif test $ac_cv_prog_cc_g = yes; then
  2594. if test "$GCC" = yes; then
  2595. CFLAGS="-g -O2"
  2596. else
  2597. CFLAGS="-g"
  2598. fi
  2599. else
  2600. if test "$GCC" = yes; then
  2601. CFLAGS="-O2"
  2602. else
  2603. CFLAGS=
  2604. fi
  2605. fi
  2606. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2607. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2608. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2609. echo $ECHO_N "(cached) $ECHO_C" >&6
  2610. else
  2611. ac_cv_prog_cc_c89=no
  2612. ac_save_CC=$CC
  2613. cat >conftest.$ac_ext <<_ACEOF
  2614. /* confdefs.h. */
  2615. _ACEOF
  2616. cat confdefs.h >>conftest.$ac_ext
  2617. cat >>conftest.$ac_ext <<_ACEOF
  2618. /* end confdefs.h. */
  2619. #include <stdarg.h>
  2620. #include <stdio.h>
  2621. #include <sys/types.h>
  2622. #include <sys/stat.h>
  2623. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2624. struct buf { int x; };
  2625. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2626. static char *e (p, i)
  2627. char **p;
  2628. int i;
  2629. {
  2630. return p[i];
  2631. }
  2632. static char *f (char * (*g) (char **, int), char **p, ...)
  2633. {
  2634. char *s;
  2635. va_list v;
  2636. va_start (v,p);
  2637. s = g (p, va_arg (v,int));
  2638. va_end (v);
  2639. return s;
  2640. }
  2641. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2642. function prototypes and stuff, but not '\xHH' hex character constants.
  2643. These don't provoke an error unfortunately, instead are silently treated
  2644. as 'x'. The following induces an error, until -std is added to get
  2645. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2646. array size at least. It's necessary to write '\x00'==0 to get something
  2647. that's true only with -std. */
  2648. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2649. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2650. inside strings and character constants. */
  2651. #define FOO(x) 'x'
  2652. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2653. int test (int i, double x);
  2654. struct s1 {int (*f) (int a);};
  2655. struct s2 {int (*f) (double a);};
  2656. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2657. int argc;
  2658. char **argv;
  2659. int
  2660. main ()
  2661. {
  2662. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2663. ;
  2664. return 0;
  2665. }
  2666. _ACEOF
  2667. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2668. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2669. do
  2670. CC="$ac_save_CC $ac_arg"
  2671. rm -f conftest.$ac_objext
  2672. if { (ac_try="$ac_compile"
  2673. case "(($ac_try" in
  2674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2675. *) ac_try_echo=$ac_try;;
  2676. esac
  2677. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2678. (eval "$ac_compile") 2>conftest.er1
  2679. ac_status=$?
  2680. grep -v '^ *+' conftest.er1 >conftest.err
  2681. rm -f conftest.er1
  2682. cat conftest.err >&5
  2683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2684. (exit $ac_status); } && {
  2685. test -z "$ac_c_werror_flag" ||
  2686. test ! -s conftest.err
  2687. } && test -s conftest.$ac_objext; then
  2688. ac_cv_prog_cc_c89=$ac_arg
  2689. else
  2690. echo "$as_me: failed program was:" >&5
  2691. sed 's/^/| /' conftest.$ac_ext >&5
  2692. fi
  2693. rm -f core conftest.err conftest.$ac_objext
  2694. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2695. done
  2696. rm -f conftest.$ac_ext
  2697. CC=$ac_save_CC
  2698. fi
  2699. # AC_CACHE_VAL
  2700. case "x$ac_cv_prog_cc_c89" in
  2701. x)
  2702. { echo "$as_me:$LINENO: result: none needed" >&5
  2703. echo "${ECHO_T}none needed" >&6; } ;;
  2704. xno)
  2705. { echo "$as_me:$LINENO: result: unsupported" >&5
  2706. echo "${ECHO_T}unsupported" >&6; } ;;
  2707. *)
  2708. CC="$CC $ac_cv_prog_cc_c89"
  2709. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2710. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2711. esac
  2712. ac_ext=c
  2713. ac_cpp='$CPP $CPPFLAGS'
  2714. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2715. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2716. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2717. ac_ext=cpp
  2718. ac_cpp='$CXXCPP $CPPFLAGS'
  2719. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2720. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2721. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2722. if test -z "$CXX"; then
  2723. if test -n "$CCC"; then
  2724. CXX=$CCC
  2725. else
  2726. if test -n "$ac_tool_prefix"; then
  2727. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2728. do
  2729. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2730. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2731. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2732. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2733. if test "${ac_cv_prog_CXX+set}" = set; then
  2734. echo $ECHO_N "(cached) $ECHO_C" >&6
  2735. else
  2736. if test -n "$CXX"; then
  2737. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2738. else
  2739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2740. for as_dir in $PATH
  2741. do
  2742. IFS=$as_save_IFS
  2743. test -z "$as_dir" && as_dir=.
  2744. for ac_exec_ext in '' $ac_executable_extensions; do
  2745. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2746. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2747. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2748. break 2
  2749. fi
  2750. done
  2751. done
  2752. IFS=$as_save_IFS
  2753. fi
  2754. fi
  2755. CXX=$ac_cv_prog_CXX
  2756. if test -n "$CXX"; then
  2757. { echo "$as_me:$LINENO: result: $CXX" >&5
  2758. echo "${ECHO_T}$CXX" >&6; }
  2759. else
  2760. { echo "$as_me:$LINENO: result: no" >&5
  2761. echo "${ECHO_T}no" >&6; }
  2762. fi
  2763. test -n "$CXX" && break
  2764. done
  2765. fi
  2766. if test -z "$CXX"; then
  2767. ac_ct_CXX=$CXX
  2768. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2769. do
  2770. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2771. set dummy $ac_prog; ac_word=$2
  2772. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2773. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2774. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2775. echo $ECHO_N "(cached) $ECHO_C" >&6
  2776. else
  2777. if test -n "$ac_ct_CXX"; then
  2778. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2779. else
  2780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2781. for as_dir in $PATH
  2782. do
  2783. IFS=$as_save_IFS
  2784. test -z "$as_dir" && as_dir=.
  2785. for ac_exec_ext in '' $ac_executable_extensions; do
  2786. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2787. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2788. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2789. break 2
  2790. fi
  2791. done
  2792. done
  2793. IFS=$as_save_IFS
  2794. fi
  2795. fi
  2796. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2797. if test -n "$ac_ct_CXX"; then
  2798. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2799. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2800. else
  2801. { echo "$as_me:$LINENO: result: no" >&5
  2802. echo "${ECHO_T}no" >&6; }
  2803. fi
  2804. test -n "$ac_ct_CXX" && break
  2805. done
  2806. if test "x$ac_ct_CXX" = x; then
  2807. CXX="g++"
  2808. else
  2809. case $cross_compiling:$ac_tool_warned in
  2810. yes:)
  2811. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2812. whose name does not start with the host triplet. If you think this
  2813. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2814. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2815. whose name does not start with the host triplet. If you think this
  2816. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2817. ac_tool_warned=yes ;;
  2818. esac
  2819. CXX=$ac_ct_CXX
  2820. fi
  2821. fi
  2822. fi
  2823. fi
  2824. # Provide some information about the compiler.
  2825. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2826. ac_compiler=`set X $ac_compile; echo $2`
  2827. { (ac_try="$ac_compiler --version >&5"
  2828. case "(($ac_try" in
  2829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2830. *) ac_try_echo=$ac_try;;
  2831. esac
  2832. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2833. (eval "$ac_compiler --version >&5") 2>&5
  2834. ac_status=$?
  2835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2836. (exit $ac_status); }
  2837. { (ac_try="$ac_compiler -v >&5"
  2838. case "(($ac_try" in
  2839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2840. *) ac_try_echo=$ac_try;;
  2841. esac
  2842. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2843. (eval "$ac_compiler -v >&5") 2>&5
  2844. ac_status=$?
  2845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2846. (exit $ac_status); }
  2847. { (ac_try="$ac_compiler -V >&5"
  2848. case "(($ac_try" in
  2849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2850. *) ac_try_echo=$ac_try;;
  2851. esac
  2852. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2853. (eval "$ac_compiler -V >&5") 2>&5
  2854. ac_status=$?
  2855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2856. (exit $ac_status); }
  2857. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2858. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2859. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2860. echo $ECHO_N "(cached) $ECHO_C" >&6
  2861. else
  2862. cat >conftest.$ac_ext <<_ACEOF
  2863. /* confdefs.h. */
  2864. _ACEOF
  2865. cat confdefs.h >>conftest.$ac_ext
  2866. cat >>conftest.$ac_ext <<_ACEOF
  2867. /* end confdefs.h. */
  2868. int
  2869. main ()
  2870. {
  2871. #ifndef __GNUC__
  2872. choke me
  2873. #endif
  2874. ;
  2875. return 0;
  2876. }
  2877. _ACEOF
  2878. rm -f conftest.$ac_objext
  2879. if { (ac_try="$ac_compile"
  2880. case "(($ac_try" in
  2881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2882. *) ac_try_echo=$ac_try;;
  2883. esac
  2884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2885. (eval "$ac_compile") 2>conftest.er1
  2886. ac_status=$?
  2887. grep -v '^ *+' conftest.er1 >conftest.err
  2888. rm -f conftest.er1
  2889. cat conftest.err >&5
  2890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2891. (exit $ac_status); } && {
  2892. test -z "$ac_cxx_werror_flag" ||
  2893. test ! -s conftest.err
  2894. } && test -s conftest.$ac_objext; then
  2895. ac_compiler_gnu=yes
  2896. else
  2897. echo "$as_me: failed program was:" >&5
  2898. sed 's/^/| /' conftest.$ac_ext >&5
  2899. ac_compiler_gnu=no
  2900. fi
  2901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2902. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2903. fi
  2904. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2905. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2906. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2907. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2908. ac_save_CXXFLAGS=$CXXFLAGS
  2909. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2910. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2911. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2912. echo $ECHO_N "(cached) $ECHO_C" >&6
  2913. else
  2914. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2915. ac_cxx_werror_flag=yes
  2916. ac_cv_prog_cxx_g=no
  2917. CXXFLAGS="-g"
  2918. cat >conftest.$ac_ext <<_ACEOF
  2919. /* confdefs.h. */
  2920. _ACEOF
  2921. cat confdefs.h >>conftest.$ac_ext
  2922. cat >>conftest.$ac_ext <<_ACEOF
  2923. /* end confdefs.h. */
  2924. int
  2925. main ()
  2926. {
  2927. ;
  2928. return 0;
  2929. }
  2930. _ACEOF
  2931. rm -f conftest.$ac_objext
  2932. if { (ac_try="$ac_compile"
  2933. case "(($ac_try" in
  2934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2935. *) ac_try_echo=$ac_try;;
  2936. esac
  2937. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2938. (eval "$ac_compile") 2>conftest.er1
  2939. ac_status=$?
  2940. grep -v '^ *+' conftest.er1 >conftest.err
  2941. rm -f conftest.er1
  2942. cat conftest.err >&5
  2943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2944. (exit $ac_status); } && {
  2945. test -z "$ac_cxx_werror_flag" ||
  2946. test ! -s conftest.err
  2947. } && test -s conftest.$ac_objext; then
  2948. ac_cv_prog_cxx_g=yes
  2949. else
  2950. echo "$as_me: failed program was:" >&5
  2951. sed 's/^/| /' conftest.$ac_ext >&5
  2952. CXXFLAGS=""
  2953. cat >conftest.$ac_ext <<_ACEOF
  2954. /* confdefs.h. */
  2955. _ACEOF
  2956. cat confdefs.h >>conftest.$ac_ext
  2957. cat >>conftest.$ac_ext <<_ACEOF
  2958. /* end confdefs.h. */
  2959. int
  2960. main ()
  2961. {
  2962. ;
  2963. return 0;
  2964. }
  2965. _ACEOF
  2966. rm -f conftest.$ac_objext
  2967. if { (ac_try="$ac_compile"
  2968. case "(($ac_try" in
  2969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2970. *) ac_try_echo=$ac_try;;
  2971. esac
  2972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2973. (eval "$ac_compile") 2>conftest.er1
  2974. ac_status=$?
  2975. grep -v '^ *+' conftest.er1 >conftest.err
  2976. rm -f conftest.er1
  2977. cat conftest.err >&5
  2978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2979. (exit $ac_status); } && {
  2980. test -z "$ac_cxx_werror_flag" ||
  2981. test ! -s conftest.err
  2982. } && test -s conftest.$ac_objext; then
  2983. :
  2984. else
  2985. echo "$as_me: failed program was:" >&5
  2986. sed 's/^/| /' conftest.$ac_ext >&5
  2987. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2988. CXXFLAGS="-g"
  2989. cat >conftest.$ac_ext <<_ACEOF
  2990. /* confdefs.h. */
  2991. _ACEOF
  2992. cat confdefs.h >>conftest.$ac_ext
  2993. cat >>conftest.$ac_ext <<_ACEOF
  2994. /* end confdefs.h. */
  2995. int
  2996. main ()
  2997. {
  2998. ;
  2999. return 0;
  3000. }
  3001. _ACEOF
  3002. rm -f conftest.$ac_objext
  3003. if { (ac_try="$ac_compile"
  3004. case "(($ac_try" in
  3005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3006. *) ac_try_echo=$ac_try;;
  3007. esac
  3008. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3009. (eval "$ac_compile") 2>conftest.er1
  3010. ac_status=$?
  3011. grep -v '^ *+' conftest.er1 >conftest.err
  3012. rm -f conftest.er1
  3013. cat conftest.err >&5
  3014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3015. (exit $ac_status); } && {
  3016. test -z "$ac_cxx_werror_flag" ||
  3017. test ! -s conftest.err
  3018. } && test -s conftest.$ac_objext; then
  3019. ac_cv_prog_cxx_g=yes
  3020. else
  3021. echo "$as_me: failed program was:" >&5
  3022. sed 's/^/| /' conftest.$ac_ext >&5
  3023. fi
  3024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3025. fi
  3026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3027. fi
  3028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3029. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3030. fi
  3031. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3032. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  3033. if test "$ac_test_CXXFLAGS" = set; then
  3034. CXXFLAGS=$ac_save_CXXFLAGS
  3035. elif test $ac_cv_prog_cxx_g = yes; then
  3036. if test "$GXX" = yes; then
  3037. CXXFLAGS="-g -O2"
  3038. else
  3039. CXXFLAGS="-g"
  3040. fi
  3041. else
  3042. if test "$GXX" = yes; then
  3043. CXXFLAGS="-O2"
  3044. else
  3045. CXXFLAGS=
  3046. fi
  3047. fi
  3048. ac_ext=c
  3049. ac_cpp='$CPP $CPPFLAGS'
  3050. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3051. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3052. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3053. ac_aux_dir=
  3054. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3055. if test -f "$ac_dir/install-sh"; then
  3056. ac_aux_dir=$ac_dir
  3057. ac_install_sh="$ac_aux_dir/install-sh -c"
  3058. break
  3059. elif test -f "$ac_dir/install.sh"; then
  3060. ac_aux_dir=$ac_dir
  3061. ac_install_sh="$ac_aux_dir/install.sh -c"
  3062. break
  3063. elif test -f "$ac_dir/shtool"; then
  3064. ac_aux_dir=$ac_dir
  3065. ac_install_sh="$ac_aux_dir/shtool install -c"
  3066. break
  3067. fi
  3068. done
  3069. if test -z "$ac_aux_dir"; then
  3070. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  3071. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  3072. { (exit 1); exit 1; }; }
  3073. fi
  3074. # These three variables are undocumented and unsupported,
  3075. # and are intended to be withdrawn in a future Autoconf release.
  3076. # They can cause serious problems if a builder's source tree is in a directory
  3077. # whose full name contains unusual characters.
  3078. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3079. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3080. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3081. # Find a good install program. We prefer a C program (faster),
  3082. # so one script is as good as another. But avoid the broken or
  3083. # incompatible versions:
  3084. # SysV /etc/install, /usr/sbin/install
  3085. # SunOS /usr/etc/install
  3086. # IRIX /sbin/install
  3087. # AIX /bin/install
  3088. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3089. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3090. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3091. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3092. # OS/2's system install, which has a completely different semantic
  3093. # ./install, which can be erroneously created by make from ./install.sh.
  3094. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3095. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3096. if test -z "$INSTALL"; then
  3097. if test "${ac_cv_path_install+set}" = set; then
  3098. echo $ECHO_N "(cached) $ECHO_C" >&6
  3099. else
  3100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3101. for as_dir in $PATH
  3102. do
  3103. IFS=$as_save_IFS
  3104. test -z "$as_dir" && as_dir=.
  3105. # Account for people who put trailing slashes in PATH elements.
  3106. case $as_dir/ in
  3107. ./ | .// | /cC/* | \
  3108. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3109. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3110. /usr/ucb/* ) ;;
  3111. *)
  3112. # OSF1 and SCO ODT 3.0 have their own names for install.
  3113. # Don't use installbsd from OSF since it installs stuff as root
  3114. # by default.
  3115. for ac_prog in ginstall scoinst install; do
  3116. for ac_exec_ext in '' $ac_executable_extensions; do
  3117. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3118. if test $ac_prog = install &&
  3119. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3120. # AIX install. It has an incompatible calling convention.
  3121. :
  3122. elif test $ac_prog = install &&
  3123. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3124. # program-specific install script used by HP pwplus--don't use.
  3125. :
  3126. else
  3127. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3128. break 3
  3129. fi
  3130. fi
  3131. done
  3132. done
  3133. ;;
  3134. esac
  3135. done
  3136. IFS=$as_save_IFS
  3137. fi
  3138. if test "${ac_cv_path_install+set}" = set; then
  3139. INSTALL=$ac_cv_path_install
  3140. else
  3141. # As a last resort, use the slow shell script. Don't cache a
  3142. # value for INSTALL within a source directory, because that will
  3143. # break other packages using the cache if that directory is
  3144. # removed, or if the value is a relative name.
  3145. INSTALL=$ac_install_sh
  3146. fi
  3147. fi
  3148. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3149. echo "${ECHO_T}$INSTALL" >&6; }
  3150. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3151. # It thinks the first close brace ends the variable substitution.
  3152. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3153. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3154. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3155. case $uname in
  3156. OSF1*)
  3157. INSTALL="`pwd`/install-sh -c"
  3158. ;;
  3159. esac
  3160. if test "$INSTALL" = "$ac_install_sh"; then
  3161. # Use full path to install-sh script...
  3162. INSTALL="`pwd`/install-sh -c"
  3163. fi
  3164. # Extract the first word of "nroff", so it can be a program name with args.
  3165. set dummy nroff; ac_word=$2
  3166. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3167. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3168. if test "${ac_cv_path_NROFF+set}" = set; then
  3169. echo $ECHO_N "(cached) $ECHO_C" >&6
  3170. else
  3171. case $NROFF in
  3172. [\\/]* | ?:[\\/]*)
  3173. ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  3174. ;;
  3175. *)
  3176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3177. for as_dir in $PATH
  3178. do
  3179. IFS=$as_save_IFS
  3180. test -z "$as_dir" && as_dir=.
  3181. for ac_exec_ext in '' $ac_executable_extensions; do
  3182. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3183. ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
  3184. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3185. break 2
  3186. fi
  3187. done
  3188. done
  3189. IFS=$as_save_IFS
  3190. ;;
  3191. esac
  3192. fi
  3193. NROFF=$ac_cv_path_NROFF
  3194. if test -n "$NROFF"; then
  3195. { echo "$as_me:$LINENO: result: $NROFF" >&5
  3196. echo "${ECHO_T}$NROFF" >&6; }
  3197. else
  3198. { echo "$as_me:$LINENO: result: no" >&5
  3199. echo "${ECHO_T}no" >&6; }
  3200. fi
  3201. if test "x$NROFF" = "x:"; then
  3202. # Try groff instead of nroff...
  3203. # Extract the first word of "groff", so it can be a program name with args.
  3204. set dummy groff; ac_word=$2
  3205. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3207. if test "${ac_cv_path_GROFF+set}" = set; then
  3208. echo $ECHO_N "(cached) $ECHO_C" >&6
  3209. else
  3210. case $GROFF in
  3211. [\\/]* | ?:[\\/]*)
  3212. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  3213. ;;
  3214. *)
  3215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3216. for as_dir in $PATH
  3217. do
  3218. IFS=$as_save_IFS
  3219. test -z "$as_dir" && as_dir=.
  3220. for ac_exec_ext in '' $ac_executable_extensions; do
  3221. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3222. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  3223. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3224. break 2
  3225. fi
  3226. done
  3227. done
  3228. IFS=$as_save_IFS
  3229. ;;
  3230. esac
  3231. fi
  3232. GROFF=$ac_cv_path_GROFF
  3233. if test -n "$GROFF"; then
  3234. { echo "$as_me:$LINENO: result: $GROFF" >&5
  3235. echo "${ECHO_T}$GROFF" >&6; }
  3236. else
  3237. { echo "$as_me:$LINENO: result: no" >&5
  3238. echo "${ECHO_T}no" >&6; }
  3239. fi
  3240. if test "x$GROFF" = "x:"; then
  3241. NROFF="echo"
  3242. else
  3243. NROFF="$GROFF -T ascii"
  3244. fi
  3245. fi
  3246. # Extract the first word of "htmldoc", so it can be a program name with args.
  3247. set dummy htmldoc; ac_word=$2
  3248. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3249. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3250. if test "${ac_cv_path_HTMLDOC+set}" = set; then
  3251. echo $ECHO_N "(cached) $ECHO_C" >&6
  3252. else
  3253. case $HTMLDOC in
  3254. [\\/]* | ?:[\\/]*)
  3255. ac_cv_path_HTMLDOC="$HTMLDOC" # Let the user override the test with a path.
  3256. ;;
  3257. *)
  3258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3259. for as_dir in $PATH
  3260. do
  3261. IFS=$as_save_IFS
  3262. test -z "$as_dir" && as_dir=.
  3263. for ac_exec_ext in '' $ac_executable_extensions; do
  3264. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3265. ac_cv_path_HTMLDOC="$as_dir/$ac_word$ac_exec_ext"
  3266. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3267. break 2
  3268. fi
  3269. done
  3270. done
  3271. IFS=$as_save_IFS
  3272. ;;
  3273. esac
  3274. fi
  3275. HTMLDOC=$ac_cv_path_HTMLDOC
  3276. if test -n "$HTMLDOC"; then
  3277. { echo "$as_me:$LINENO: result: $HTMLDOC" >&5
  3278. echo "${ECHO_T}$HTMLDOC" >&6; }
  3279. else
  3280. { echo "$as_me:$LINENO: result: no" >&5
  3281. echo "${ECHO_T}no" >&6; }
  3282. fi
  3283. # Extract the first word of "doxygen", so it can be a program name with args.
  3284. set dummy doxygen; ac_word=$2
  3285. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3286. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3287. if test "${ac_cv_path_DOXYDOC+set}" = set; then
  3288. echo $ECHO_N "(cached) $ECHO_C" >&6
  3289. else
  3290. case $DOXYDOC in
  3291. [\\/]* | ?:[\\/]*)
  3292. ac_cv_path_DOXYDOC="$DOXYDOC" # Let the user override the test with a path.
  3293. ;;
  3294. *)
  3295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3296. for as_dir in $PATH
  3297. do
  3298. IFS=$as_save_IFS
  3299. test -z "$as_dir" && as_dir=.
  3300. for ac_exec_ext in '' $ac_executable_extensions; do
  3301. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3302. ac_cv_path_DOXYDOC="$as_dir/$ac_word$ac_exec_ext"
  3303. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3304. break 2
  3305. fi
  3306. done
  3307. done
  3308. IFS=$as_save_IFS
  3309. ;;
  3310. esac
  3311. fi
  3312. DOXYDOC=$ac_cv_path_DOXYDOC
  3313. if test -n "$DOXYDOC"; then
  3314. { echo "$as_me:$LINENO: result: $DOXYDOC" >&5
  3315. echo "${ECHO_T}$DOXYDOC" >&6; }
  3316. else
  3317. { echo "$as_me:$LINENO: result: no" >&5
  3318. echo "${ECHO_T}no" >&6; }
  3319. fi
  3320. if test -n "$ac_tool_prefix"; then
  3321. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3322. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3323. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3324. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3325. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3326. echo $ECHO_N "(cached) $ECHO_C" >&6
  3327. else
  3328. if test -n "$RANLIB"; then
  3329. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3330. else
  3331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3332. for as_dir in $PATH
  3333. do
  3334. IFS=$as_save_IFS
  3335. test -z "$as_dir" && as_dir=.
  3336. for ac_exec_ext in '' $ac_executable_extensions; do
  3337. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3338. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3339. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3340. break 2
  3341. fi
  3342. done
  3343. done
  3344. IFS=$as_save_IFS
  3345. fi
  3346. fi
  3347. RANLIB=$ac_cv_prog_RANLIB
  3348. if test -n "$RANLIB"; then
  3349. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3350. echo "${ECHO_T}$RANLIB" >&6; }
  3351. else
  3352. { echo "$as_me:$LINENO: result: no" >&5
  3353. echo "${ECHO_T}no" >&6; }
  3354. fi
  3355. fi
  3356. if test -z "$ac_cv_prog_RANLIB"; then
  3357. ac_ct_RANLIB=$RANLIB
  3358. # Extract the first word of "ranlib", so it can be a program name with args.
  3359. set dummy ranlib; ac_word=$2
  3360. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3361. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3362. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3363. echo $ECHO_N "(cached) $ECHO_C" >&6
  3364. else
  3365. if test -n "$ac_ct_RANLIB"; then
  3366. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3367. else
  3368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3369. for as_dir in $PATH
  3370. do
  3371. IFS=$as_save_IFS
  3372. test -z "$as_dir" && as_dir=.
  3373. for ac_exec_ext in '' $ac_executable_extensions; do
  3374. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3375. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3376. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3377. break 2
  3378. fi
  3379. done
  3380. done
  3381. IFS=$as_save_IFS
  3382. fi
  3383. fi
  3384. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3385. if test -n "$ac_ct_RANLIB"; then
  3386. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3387. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3388. else
  3389. { echo "$as_me:$LINENO: result: no" >&5
  3390. echo "${ECHO_T}no" >&6; }
  3391. fi
  3392. if test "x$ac_ct_RANLIB" = x; then
  3393. RANLIB=":"
  3394. else
  3395. case $cross_compiling:$ac_tool_warned in
  3396. yes:)
  3397. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3398. whose name does not start with the host triplet. If you think this
  3399. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3400. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3401. whose name does not start with the host triplet. If you think this
  3402. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3403. ac_tool_warned=yes ;;
  3404. esac
  3405. RANLIB=$ac_ct_RANLIB
  3406. fi
  3407. else
  3408. RANLIB="$ac_cv_prog_RANLIB"
  3409. fi
  3410. if test -n "$ac_tool_prefix"; then
  3411. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3412. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3413. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3414. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3415. if test "${ac_cv_path_AR+set}" = set; then
  3416. echo $ECHO_N "(cached) $ECHO_C" >&6
  3417. else
  3418. case $AR in
  3419. [\\/]* | ?:[\\/]*)
  3420. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  3421. ;;
  3422. *)
  3423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3424. for as_dir in $PATH
  3425. do
  3426. IFS=$as_save_IFS
  3427. test -z "$as_dir" && as_dir=.
  3428. for ac_exec_ext in '' $ac_executable_extensions; do
  3429. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3430. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  3431. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3432. break 2
  3433. fi
  3434. done
  3435. done
  3436. IFS=$as_save_IFS
  3437. ;;
  3438. esac
  3439. fi
  3440. AR=$ac_cv_path_AR
  3441. if test -n "$AR"; then
  3442. { echo "$as_me:$LINENO: result: $AR" >&5
  3443. echo "${ECHO_T}$AR" >&6; }
  3444. else
  3445. { echo "$as_me:$LINENO: result: no" >&5
  3446. echo "${ECHO_T}no" >&6; }
  3447. fi
  3448. fi
  3449. if test -z "$ac_cv_path_AR"; then
  3450. ac_pt_AR=$AR
  3451. # Extract the first word of "ar", so it can be a program name with args.
  3452. set dummy ar; ac_word=$2
  3453. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3454. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3455. if test "${ac_cv_path_ac_pt_AR+set}" = set; then
  3456. echo $ECHO_N "(cached) $ECHO_C" >&6
  3457. else
  3458. case $ac_pt_AR in
  3459. [\\/]* | ?:[\\/]*)
  3460. ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
  3461. ;;
  3462. *)
  3463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3464. for as_dir in $PATH
  3465. do
  3466. IFS=$as_save_IFS
  3467. test -z "$as_dir" && as_dir=.
  3468. for ac_exec_ext in '' $ac_executable_extensions; do
  3469. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3470. ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
  3471. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3472. break 2
  3473. fi
  3474. done
  3475. done
  3476. IFS=$as_save_IFS
  3477. ;;
  3478. esac
  3479. fi
  3480. ac_pt_AR=$ac_cv_path_ac_pt_AR
  3481. if test -n "$ac_pt_AR"; then
  3482. { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
  3483. echo "${ECHO_T}$ac_pt_AR" >&6; }
  3484. else
  3485. { echo "$as_me:$LINENO: result: no" >&5
  3486. echo "${ECHO_T}no" >&6; }
  3487. fi
  3488. if test "x$ac_pt_AR" = x; then
  3489. AR=""
  3490. else
  3491. case $cross_compiling:$ac_tool_warned in
  3492. yes:)
  3493. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3494. whose name does not start with the host triplet. If you think this
  3495. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3496. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3497. whose name does not start with the host triplet. If you think this
  3498. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3499. ac_tool_warned=yes ;;
  3500. esac
  3501. AR=$ac_pt_AR
  3502. fi
  3503. else
  3504. AR="$ac_cv_path_AR"
  3505. fi
  3506. if test "x$AR" = "x:"; then
  3507. { { echo "$as_me:$LINENO: error: Configure could not find the library archiver" >&5
  3508. echo "$as_me: error: Configure could not find the library archiver" >&2;}
  3509. { (exit aborting.); exit aborting.; }; }
  3510. fi
  3511. if test "x$RANLIB" != "x:"; then
  3512. LIBCOMMAND="$AR cr"
  3513. else
  3514. LIBCOMMAND="$AR crs"
  3515. fi
  3516. if test -n "$ac_tool_prefix"; then
  3517. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  3518. set dummy ${ac_tool_prefix}windres; ac_word=$2
  3519. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3520. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3521. if test "${ac_cv_path_RC+set}" = set; then
  3522. echo $ECHO_N "(cached) $ECHO_C" >&6
  3523. else
  3524. case $RC in
  3525. [\\/]* | ?:[\\/]*)
  3526. ac_cv_path_RC="$RC" # Let the user override the test with a path.
  3527. ;;
  3528. *)
  3529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3530. for as_dir in $PATH
  3531. do
  3532. IFS=$as_save_IFS
  3533. test -z "$as_dir" && as_dir=.
  3534. for ac_exec_ext in '' $ac_executable_extensions; do
  3535. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3536. ac_cv_path_RC="$as_dir/$ac_word$ac_exec_ext"
  3537. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3538. break 2
  3539. fi
  3540. done
  3541. done
  3542. IFS=$as_save_IFS
  3543. ;;
  3544. esac
  3545. fi
  3546. RC=$ac_cv_path_RC
  3547. if test -n "$RC"; then
  3548. { echo "$as_me:$LINENO: result: $RC" >&5
  3549. echo "${ECHO_T}$RC" >&6; }
  3550. else
  3551. { echo "$as_me:$LINENO: result: no" >&5
  3552. echo "${ECHO_T}no" >&6; }
  3553. fi
  3554. fi
  3555. if test -z "$ac_cv_path_RC"; then
  3556. ac_pt_RC=$RC
  3557. # Extract the first word of "windres", so it can be a program name with args.
  3558. set dummy windres; ac_word=$2
  3559. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3560. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3561. if test "${ac_cv_path_ac_pt_RC+set}" = set; then
  3562. echo $ECHO_N "(cached) $ECHO_C" >&6
  3563. else
  3564. case $ac_pt_RC in
  3565. [\\/]* | ?:[\\/]*)
  3566. ac_cv_path_ac_pt_RC="$ac_pt_RC" # Let the user override the test with a path.
  3567. ;;
  3568. *)
  3569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3570. for as_dir in $PATH
  3571. do
  3572. IFS=$as_save_IFS
  3573. test -z "$as_dir" && as_dir=.
  3574. for ac_exec_ext in '' $ac_executable_extensions; do
  3575. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3576. ac_cv_path_ac_pt_RC="$as_dir/$ac_word$ac_exec_ext"
  3577. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3578. break 2
  3579. fi
  3580. done
  3581. done
  3582. IFS=$as_save_IFS
  3583. ;;
  3584. esac
  3585. fi
  3586. ac_pt_RC=$ac_cv_path_ac_pt_RC
  3587. if test -n "$ac_pt_RC"; then
  3588. { echo "$as_me:$LINENO: result: $ac_pt_RC" >&5
  3589. echo "${ECHO_T}$ac_pt_RC" >&6; }
  3590. else
  3591. { echo "$as_me:$LINENO: result: no" >&5
  3592. echo "${ECHO_T}no" >&6; }
  3593. fi
  3594. if test "x$ac_pt_RC" = x; then
  3595. RC=""
  3596. else
  3597. case $cross_compiling:$ac_tool_warned in
  3598. yes:)
  3599. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3600. whose name does not start with the host triplet. If you think this
  3601. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3602. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3603. whose name does not start with the host triplet. If you think this
  3604. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3605. ac_tool_warned=yes ;;
  3606. esac
  3607. RC=$ac_pt_RC
  3608. fi
  3609. else
  3610. RC="$ac_cv_path_RC"
  3611. fi
  3612. if test "$uname" != Darwin; then
  3613. ac_ext=c
  3614. ac_cpp='$CPP $CPPFLAGS'
  3615. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3616. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3617. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3618. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3619. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  3620. # On Suns, sometimes $CPP names a directory.
  3621. if test -n "$CPP" && test -d "$CPP"; then
  3622. CPP=
  3623. fi
  3624. if test -z "$CPP"; then
  3625. if test "${ac_cv_prog_CPP+set}" = set; then
  3626. echo $ECHO_N "(cached) $ECHO_C" >&6
  3627. else
  3628. # Double quotes because CPP needs to be expanded
  3629. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3630. do
  3631. ac_preproc_ok=false
  3632. for ac_c_preproc_warn_flag in '' yes
  3633. do
  3634. # Use a header file that comes with gcc, so configuring glibc
  3635. # with a fresh cross-compiler works.
  3636. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3637. # <limits.h> exists even on freestanding compilers.
  3638. # On the NeXT, cc -E runs the code through the compiler's parser,
  3639. # not just through cpp. "Syntax error" is here to catch this case.
  3640. cat >conftest.$ac_ext <<_ACEOF
  3641. /* confdefs.h. */
  3642. _ACEOF
  3643. cat confdefs.h >>conftest.$ac_ext
  3644. cat >>conftest.$ac_ext <<_ACEOF
  3645. /* end confdefs.h. */
  3646. #ifdef __STDC__
  3647. # include <limits.h>
  3648. #else
  3649. # include <assert.h>
  3650. #endif
  3651. Syntax error
  3652. _ACEOF
  3653. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3654. case "(($ac_try" in
  3655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3656. *) ac_try_echo=$ac_try;;
  3657. esac
  3658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3659. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3660. ac_status=$?
  3661. grep -v '^ *+' conftest.er1 >conftest.err
  3662. rm -f conftest.er1
  3663. cat conftest.err >&5
  3664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3665. (exit $ac_status); } >/dev/null && {
  3666. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3667. test ! -s conftest.err
  3668. }; then
  3669. :
  3670. else
  3671. echo "$as_me: failed program was:" >&5
  3672. sed 's/^/| /' conftest.$ac_ext >&5
  3673. # Broken: fails on valid input.
  3674. continue
  3675. fi
  3676. rm -f conftest.err conftest.$ac_ext
  3677. # OK, works on sane cases. Now check whether nonexistent headers
  3678. # can be detected and how.
  3679. cat >conftest.$ac_ext <<_ACEOF
  3680. /* confdefs.h. */
  3681. _ACEOF
  3682. cat confdefs.h >>conftest.$ac_ext
  3683. cat >>conftest.$ac_ext <<_ACEOF
  3684. /* end confdefs.h. */
  3685. #include <ac_nonexistent.h>
  3686. _ACEOF
  3687. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3688. case "(($ac_try" in
  3689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3690. *) ac_try_echo=$ac_try;;
  3691. esac
  3692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3693. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3694. ac_status=$?
  3695. grep -v '^ *+' conftest.er1 >conftest.err
  3696. rm -f conftest.er1
  3697. cat conftest.err >&5
  3698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3699. (exit $ac_status); } >/dev/null && {
  3700. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3701. test ! -s conftest.err
  3702. }; then
  3703. # Broken: success on invalid input.
  3704. continue
  3705. else
  3706. echo "$as_me: failed program was:" >&5
  3707. sed 's/^/| /' conftest.$ac_ext >&5
  3708. # Passes both tests.
  3709. ac_preproc_ok=:
  3710. break
  3711. fi
  3712. rm -f conftest.err conftest.$ac_ext
  3713. done
  3714. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3715. rm -f conftest.err conftest.$ac_ext
  3716. if $ac_preproc_ok; then
  3717. break
  3718. fi
  3719. done
  3720. ac_cv_prog_CPP=$CPP
  3721. fi
  3722. CPP=$ac_cv_prog_CPP
  3723. else
  3724. ac_cv_prog_CPP=$CPP
  3725. fi
  3726. { echo "$as_me:$LINENO: result: $CPP" >&5
  3727. echo "${ECHO_T}$CPP" >&6; }
  3728. ac_preproc_ok=false
  3729. for ac_c_preproc_warn_flag in '' yes
  3730. do
  3731. # Use a header file that comes with gcc, so configuring glibc
  3732. # with a fresh cross-compiler works.
  3733. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3734. # <limits.h> exists even on freestanding compilers.
  3735. # On the NeXT, cc -E runs the code through the compiler's parser,
  3736. # not just through cpp. "Syntax error" is here to catch this case.
  3737. cat >conftest.$ac_ext <<_ACEOF
  3738. /* confdefs.h. */
  3739. _ACEOF
  3740. cat confdefs.h >>conftest.$ac_ext
  3741. cat >>conftest.$ac_ext <<_ACEOF
  3742. /* end confdefs.h. */
  3743. #ifdef __STDC__
  3744. # include <limits.h>
  3745. #else
  3746. # include <assert.h>
  3747. #endif
  3748. Syntax error
  3749. _ACEOF
  3750. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3751. case "(($ac_try" in
  3752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3753. *) ac_try_echo=$ac_try;;
  3754. esac
  3755. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3756. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3757. ac_status=$?
  3758. grep -v '^ *+' conftest.er1 >conftest.err
  3759. rm -f conftest.er1
  3760. cat conftest.err >&5
  3761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3762. (exit $ac_status); } >/dev/null && {
  3763. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3764. test ! -s conftest.err
  3765. }; then
  3766. :
  3767. else
  3768. echo "$as_me: failed program was:" >&5
  3769. sed 's/^/| /' conftest.$ac_ext >&5
  3770. # Broken: fails on valid input.
  3771. continue
  3772. fi
  3773. rm -f conftest.err conftest.$ac_ext
  3774. # OK, works on sane cases. Now check whether nonexistent headers
  3775. # can be detected and how.
  3776. cat >conftest.$ac_ext <<_ACEOF
  3777. /* confdefs.h. */
  3778. _ACEOF
  3779. cat confdefs.h >>conftest.$ac_ext
  3780. cat >>conftest.$ac_ext <<_ACEOF
  3781. /* end confdefs.h. */
  3782. #include <ac_nonexistent.h>
  3783. _ACEOF
  3784. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3785. case "(($ac_try" in
  3786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3787. *) ac_try_echo=$ac_try;;
  3788. esac
  3789. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3790. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3791. ac_status=$?
  3792. grep -v '^ *+' conftest.er1 >conftest.err
  3793. rm -f conftest.er1
  3794. cat conftest.err >&5
  3795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3796. (exit $ac_status); } >/dev/null && {
  3797. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3798. test ! -s conftest.err
  3799. }; then
  3800. # Broken: success on invalid input.
  3801. continue
  3802. else
  3803. echo "$as_me: failed program was:" >&5
  3804. sed 's/^/| /' conftest.$ac_ext >&5
  3805. # Passes both tests.
  3806. ac_preproc_ok=:
  3807. break
  3808. fi
  3809. rm -f conftest.err conftest.$ac_ext
  3810. done
  3811. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3812. rm -f conftest.err conftest.$ac_ext
  3813. if $ac_preproc_ok; then
  3814. :
  3815. else
  3816. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3817. See \`config.log' for more details." >&5
  3818. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3819. See \`config.log' for more details." >&2;}
  3820. { (exit 1); exit 1; }; }
  3821. fi
  3822. ac_ext=c
  3823. ac_cpp='$CPP $CPPFLAGS'
  3824. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3825. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3826. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3827. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3828. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3829. if test "${ac_cv_path_GREP+set}" = set; then
  3830. echo $ECHO_N "(cached) $ECHO_C" >&6
  3831. else
  3832. # Extract the first word of "grep ggrep" to use in msg output
  3833. if test -z "$GREP"; then
  3834. set dummy grep ggrep; ac_prog_name=$2
  3835. if test "${ac_cv_path_GREP+set}" = set; then
  3836. echo $ECHO_N "(cached) $ECHO_C" >&6
  3837. else
  3838. ac_path_GREP_found=false
  3839. # Loop through the user's path and test for each of PROGNAME-LIST
  3840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3841. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3842. do
  3843. IFS=$as_save_IFS
  3844. test -z "$as_dir" && as_dir=.
  3845. for ac_prog in grep ggrep; do
  3846. for ac_exec_ext in '' $ac_executable_extensions; do
  3847. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3848. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3849. # Check for GNU ac_path_GREP and select it if it is found.
  3850. # Check for GNU $ac_path_GREP
  3851. case `"$ac_path_GREP" --version 2>&1` in
  3852. *GNU*)
  3853. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3854. *)
  3855. ac_count=0
  3856. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3857. while :
  3858. do
  3859. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3860. mv "conftest.tmp" "conftest.in"
  3861. cp "conftest.in" "conftest.nl"
  3862. echo 'GREP' >> "conftest.nl"
  3863. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3864. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3865. ac_count=`expr $ac_count + 1`
  3866. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3867. # Best one so far, save it but keep looking for a better one
  3868. ac_cv_path_GREP="$ac_path_GREP"
  3869. ac_path_GREP_max=$ac_count
  3870. fi
  3871. # 10*(2^10) chars as input seems more than enough
  3872. test $ac_count -gt 10 && break
  3873. done
  3874. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3875. esac
  3876. $ac_path_GREP_found && break 3
  3877. done
  3878. done
  3879. done
  3880. IFS=$as_save_IFS
  3881. fi
  3882. GREP="$ac_cv_path_GREP"
  3883. if test -z "$GREP"; then
  3884. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3885. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3886. { (exit 1); exit 1; }; }
  3887. fi
  3888. else
  3889. ac_cv_path_GREP=$GREP
  3890. fi
  3891. fi
  3892. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3893. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3894. GREP="$ac_cv_path_GREP"
  3895. { echo "$as_me:$LINENO: checking for egrep" >&5
  3896. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3897. if test "${ac_cv_path_EGREP+set}" = set; then
  3898. echo $ECHO_N "(cached) $ECHO_C" >&6
  3899. else
  3900. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3901. then ac_cv_path_EGREP="$GREP -E"
  3902. else
  3903. # Extract the first word of "egrep" to use in msg output
  3904. if test -z "$EGREP"; then
  3905. set dummy egrep; ac_prog_name=$2
  3906. if test "${ac_cv_path_EGREP+set}" = set; then
  3907. echo $ECHO_N "(cached) $ECHO_C" >&6
  3908. else
  3909. ac_path_EGREP_found=false
  3910. # Loop through the user's path and test for each of PROGNAME-LIST
  3911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3912. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3913. do
  3914. IFS=$as_save_IFS
  3915. test -z "$as_dir" && as_dir=.
  3916. for ac_prog in egrep; do
  3917. for ac_exec_ext in '' $ac_executable_extensions; do
  3918. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3919. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3920. # Check for GNU ac_path_EGREP and select it if it is found.
  3921. # Check for GNU $ac_path_EGREP
  3922. case `"$ac_path_EGREP" --version 2>&1` in
  3923. *GNU*)
  3924. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3925. *)
  3926. ac_count=0
  3927. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3928. while :
  3929. do
  3930. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3931. mv "conftest.tmp" "conftest.in"
  3932. cp "conftest.in" "conftest.nl"
  3933. echo 'EGREP' >> "conftest.nl"
  3934. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3935. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3936. ac_count=`expr $ac_count + 1`
  3937. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3938. # Best one so far, save it but keep looking for a better one
  3939. ac_cv_path_EGREP="$ac_path_EGREP"
  3940. ac_path_EGREP_max=$ac_count
  3941. fi
  3942. # 10*(2^10) chars as input seems more than enough
  3943. test $ac_count -gt 10 && break
  3944. done
  3945. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3946. esac
  3947. $ac_path_EGREP_found && break 3
  3948. done
  3949. done
  3950. done
  3951. IFS=$as_save_IFS
  3952. fi
  3953. EGREP="$ac_cv_path_EGREP"
  3954. if test -z "$EGREP"; then
  3955. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3956. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3957. { (exit 1); exit 1; }; }
  3958. fi
  3959. else
  3960. ac_cv_path_EGREP=$EGREP
  3961. fi
  3962. fi
  3963. fi
  3964. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3965. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3966. EGREP="$ac_cv_path_EGREP"
  3967. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3968. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  3969. if test "${ac_cv_header_stdc+set}" = set; then
  3970. echo $ECHO_N "(cached) $ECHO_C" >&6
  3971. else
  3972. cat >conftest.$ac_ext <<_ACEOF
  3973. /* confdefs.h. */
  3974. _ACEOF
  3975. cat confdefs.h >>conftest.$ac_ext
  3976. cat >>conftest.$ac_ext <<_ACEOF
  3977. /* end confdefs.h. */
  3978. #include <stdlib.h>
  3979. #include <stdarg.h>
  3980. #include <string.h>
  3981. #include <float.h>
  3982. int
  3983. main ()
  3984. {
  3985. ;
  3986. return 0;
  3987. }
  3988. _ACEOF
  3989. rm -f conftest.$ac_objext
  3990. if { (ac_try="$ac_compile"
  3991. case "(($ac_try" in
  3992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3993. *) ac_try_echo=$ac_try;;
  3994. esac
  3995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3996. (eval "$ac_compile") 2>conftest.er1
  3997. ac_status=$?
  3998. grep -v '^ *+' conftest.er1 >conftest.err
  3999. rm -f conftest.er1
  4000. cat conftest.err >&5
  4001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4002. (exit $ac_status); } && {
  4003. test -z "$ac_c_werror_flag" ||
  4004. test ! -s conftest.err
  4005. } && test -s conftest.$ac_objext; then
  4006. ac_cv_header_stdc=yes
  4007. else
  4008. echo "$as_me: failed program was:" >&5
  4009. sed 's/^/| /' conftest.$ac_ext >&5
  4010. ac_cv_header_stdc=no
  4011. fi
  4012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4013. if test $ac_cv_header_stdc = yes; then
  4014. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4015. cat >conftest.$ac_ext <<_ACEOF
  4016. /* confdefs.h. */
  4017. _ACEOF
  4018. cat confdefs.h >>conftest.$ac_ext
  4019. cat >>conftest.$ac_ext <<_ACEOF
  4020. /* end confdefs.h. */
  4021. #include <string.h>
  4022. _ACEOF
  4023. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4024. $EGREP "memchr" >/dev/null 2>&1; then
  4025. :
  4026. else
  4027. ac_cv_header_stdc=no
  4028. fi
  4029. rm -f -r conftest*
  4030. fi
  4031. if test $ac_cv_header_stdc = yes; then
  4032. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4033. cat >conftest.$ac_ext <<_ACEOF
  4034. /* confdefs.h. */
  4035. _ACEOF
  4036. cat confdefs.h >>conftest.$ac_ext
  4037. cat >>conftest.$ac_ext <<_ACEOF
  4038. /* end confdefs.h. */
  4039. #include <stdlib.h>
  4040. _ACEOF
  4041. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4042. $EGREP "free" >/dev/null 2>&1; then
  4043. :
  4044. else
  4045. ac_cv_header_stdc=no
  4046. fi
  4047. rm -f -r conftest*
  4048. fi
  4049. if test $ac_cv_header_stdc = yes; then
  4050. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4051. if test "$cross_compiling" = yes; then
  4052. :
  4053. else
  4054. cat >conftest.$ac_ext <<_ACEOF
  4055. /* confdefs.h. */
  4056. _ACEOF
  4057. cat confdefs.h >>conftest.$ac_ext
  4058. cat >>conftest.$ac_ext <<_ACEOF
  4059. /* end confdefs.h. */
  4060. #include <ctype.h>
  4061. #include <stdlib.h>
  4062. #if ((' ' & 0x0FF) == 0x020)
  4063. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4064. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4065. #else
  4066. # define ISLOWER(c) \
  4067. (('a' <= (c) && (c) <= 'i') \
  4068. || ('j' <= (c) && (c) <= 'r') \
  4069. || ('s' <= (c) && (c) <= 'z'))
  4070. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4071. #endif
  4072. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4073. int
  4074. main ()
  4075. {
  4076. int i;
  4077. for (i = 0; i < 256; i++)
  4078. if (XOR (islower (i), ISLOWER (i))
  4079. || toupper (i) != TOUPPER (i))
  4080. return 2;
  4081. return 0;
  4082. }
  4083. _ACEOF
  4084. rm -f conftest$ac_exeext
  4085. if { (ac_try="$ac_link"
  4086. case "(($ac_try" in
  4087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4088. *) ac_try_echo=$ac_try;;
  4089. esac
  4090. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4091. (eval "$ac_link") 2>&5
  4092. ac_status=$?
  4093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4094. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4095. { (case "(($ac_try" in
  4096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4097. *) ac_try_echo=$ac_try;;
  4098. esac
  4099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4100. (eval "$ac_try") 2>&5
  4101. ac_status=$?
  4102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4103. (exit $ac_status); }; }; then
  4104. :
  4105. else
  4106. echo "$as_me: program exited with status $ac_status" >&5
  4107. echo "$as_me: failed program was:" >&5
  4108. sed 's/^/| /' conftest.$ac_ext >&5
  4109. ( exit $ac_status )
  4110. ac_cv_header_stdc=no
  4111. fi
  4112. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4113. fi
  4114. fi
  4115. fi
  4116. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4117. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4118. if test $ac_cv_header_stdc = yes; then
  4119. cat >>confdefs.h <<\_ACEOF
  4120. #define STDC_HEADERS 1
  4121. _ACEOF
  4122. fi
  4123. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4124. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4125. inttypes.h stdint.h unistd.h
  4126. do
  4127. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4128. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4129. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4130. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4131. echo $ECHO_N "(cached) $ECHO_C" >&6
  4132. else
  4133. cat >conftest.$ac_ext <<_ACEOF
  4134. /* confdefs.h. */
  4135. _ACEOF
  4136. cat confdefs.h >>conftest.$ac_ext
  4137. cat >>conftest.$ac_ext <<_ACEOF
  4138. /* end confdefs.h. */
  4139. $ac_includes_default
  4140. #include <$ac_header>
  4141. _ACEOF
  4142. rm -f conftest.$ac_objext
  4143. if { (ac_try="$ac_compile"
  4144. case "(($ac_try" in
  4145. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4146. *) ac_try_echo=$ac_try;;
  4147. esac
  4148. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4149. (eval "$ac_compile") 2>conftest.er1
  4150. ac_status=$?
  4151. grep -v '^ *+' conftest.er1 >conftest.err
  4152. rm -f conftest.er1
  4153. cat conftest.err >&5
  4154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4155. (exit $ac_status); } && {
  4156. test -z "$ac_c_werror_flag" ||
  4157. test ! -s conftest.err
  4158. } && test -s conftest.$ac_objext; then
  4159. eval "$as_ac_Header=yes"
  4160. else
  4161. echo "$as_me: failed program was:" >&5
  4162. sed 's/^/| /' conftest.$ac_ext >&5
  4163. eval "$as_ac_Header=no"
  4164. fi
  4165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4166. fi
  4167. ac_res=`eval echo '${'$as_ac_Header'}'`
  4168. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4169. echo "${ECHO_T}$ac_res" >&6; }
  4170. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4171. cat >>confdefs.h <<_ACEOF
  4172. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4173. _ACEOF
  4174. fi
  4175. done
  4176. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  4177. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  4178. if test "${ac_cv_c_bigendian+set}" = set; then
  4179. echo $ECHO_N "(cached) $ECHO_C" >&6
  4180. else
  4181. # See if sys/param.h defines the BYTE_ORDER macro.
  4182. cat >conftest.$ac_ext <<_ACEOF
  4183. /* confdefs.h. */
  4184. _ACEOF
  4185. cat confdefs.h >>conftest.$ac_ext
  4186. cat >>conftest.$ac_ext <<_ACEOF
  4187. /* end confdefs.h. */
  4188. #include <sys/types.h>
  4189. #include <sys/param.h>
  4190. int
  4191. main ()
  4192. {
  4193. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  4194. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  4195. bogus endian macros
  4196. #endif
  4197. ;
  4198. return 0;
  4199. }
  4200. _ACEOF
  4201. rm -f conftest.$ac_objext
  4202. if { (ac_try="$ac_compile"
  4203. case "(($ac_try" in
  4204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4205. *) ac_try_echo=$ac_try;;
  4206. esac
  4207. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4208. (eval "$ac_compile") 2>conftest.er1
  4209. ac_status=$?
  4210. grep -v '^ *+' conftest.er1 >conftest.err
  4211. rm -f conftest.er1
  4212. cat conftest.err >&5
  4213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4214. (exit $ac_status); } && {
  4215. test -z "$ac_c_werror_flag" ||
  4216. test ! -s conftest.err
  4217. } && test -s conftest.$ac_objext; then
  4218. # It does; now see whether it defined to BIG_ENDIAN or not.
  4219. cat >conftest.$ac_ext <<_ACEOF
  4220. /* confdefs.h. */
  4221. _ACEOF
  4222. cat confdefs.h >>conftest.$ac_ext
  4223. cat >>conftest.$ac_ext <<_ACEOF
  4224. /* end confdefs.h. */
  4225. #include <sys/types.h>
  4226. #include <sys/param.h>
  4227. int
  4228. main ()
  4229. {
  4230. #if BYTE_ORDER != BIG_ENDIAN
  4231. not big endian
  4232. #endif
  4233. ;
  4234. return 0;
  4235. }
  4236. _ACEOF
  4237. rm -f conftest.$ac_objext
  4238. if { (ac_try="$ac_compile"
  4239. case "(($ac_try" in
  4240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4241. *) ac_try_echo=$ac_try;;
  4242. esac
  4243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4244. (eval "$ac_compile") 2>conftest.er1
  4245. ac_status=$?
  4246. grep -v '^ *+' conftest.er1 >conftest.err
  4247. rm -f conftest.er1
  4248. cat conftest.err >&5
  4249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4250. (exit $ac_status); } && {
  4251. test -z "$ac_c_werror_flag" ||
  4252. test ! -s conftest.err
  4253. } && test -s conftest.$ac_objext; then
  4254. ac_cv_c_bigendian=yes
  4255. else
  4256. echo "$as_me: failed program was:" >&5
  4257. sed 's/^/| /' conftest.$ac_ext >&5
  4258. ac_cv_c_bigendian=no
  4259. fi
  4260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4261. else
  4262. echo "$as_me: failed program was:" >&5
  4263. sed 's/^/| /' conftest.$ac_ext >&5
  4264. # It does not; compile a test program.
  4265. if test "$cross_compiling" = yes; then
  4266. # try to guess the endianness by grepping values into an object file
  4267. ac_cv_c_bigendian=unknown
  4268. cat >conftest.$ac_ext <<_ACEOF
  4269. /* confdefs.h. */
  4270. _ACEOF
  4271. cat confdefs.h >>conftest.$ac_ext
  4272. cat >>conftest.$ac_ext <<_ACEOF
  4273. /* end confdefs.h. */
  4274. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4275. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4276. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  4277. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4278. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4279. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  4280. int
  4281. main ()
  4282. {
  4283. _ascii (); _ebcdic ();
  4284. ;
  4285. return 0;
  4286. }
  4287. _ACEOF
  4288. rm -f conftest.$ac_objext
  4289. if { (ac_try="$ac_compile"
  4290. case "(($ac_try" in
  4291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4292. *) ac_try_echo=$ac_try;;
  4293. esac
  4294. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4295. (eval "$ac_compile") 2>conftest.er1
  4296. ac_status=$?
  4297. grep -v '^ *+' conftest.er1 >conftest.err
  4298. rm -f conftest.er1
  4299. cat conftest.err >&5
  4300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4301. (exit $ac_status); } && {
  4302. test -z "$ac_c_werror_flag" ||
  4303. test ! -s conftest.err
  4304. } && test -s conftest.$ac_objext; then
  4305. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  4306. ac_cv_c_bigendian=yes
  4307. fi
  4308. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4309. if test "$ac_cv_c_bigendian" = unknown; then
  4310. ac_cv_c_bigendian=no
  4311. else
  4312. # finding both strings is unlikely to happen, but who knows?
  4313. ac_cv_c_bigendian=unknown
  4314. fi
  4315. fi
  4316. else
  4317. echo "$as_me: failed program was:" >&5
  4318. sed 's/^/| /' conftest.$ac_ext >&5
  4319. fi
  4320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4321. else
  4322. cat >conftest.$ac_ext <<_ACEOF
  4323. /* confdefs.h. */
  4324. _ACEOF
  4325. cat confdefs.h >>conftest.$ac_ext
  4326. cat >>conftest.$ac_ext <<_ACEOF
  4327. /* end confdefs.h. */
  4328. $ac_includes_default
  4329. int
  4330. main ()
  4331. {
  4332. /* Are we little or big endian? From Harbison&Steele. */
  4333. union
  4334. {
  4335. long int l;
  4336. char c[sizeof (long int)];
  4337. } u;
  4338. u.l = 1;
  4339. return u.c[sizeof (long int) - 1] == 1;
  4340. ;
  4341. return 0;
  4342. }
  4343. _ACEOF
  4344. rm -f conftest$ac_exeext
  4345. if { (ac_try="$ac_link"
  4346. case "(($ac_try" in
  4347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4348. *) ac_try_echo=$ac_try;;
  4349. esac
  4350. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4351. (eval "$ac_link") 2>&5
  4352. ac_status=$?
  4353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4354. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4355. { (case "(($ac_try" in
  4356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4357. *) ac_try_echo=$ac_try;;
  4358. esac
  4359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4360. (eval "$ac_try") 2>&5
  4361. ac_status=$?
  4362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4363. (exit $ac_status); }; }; then
  4364. ac_cv_c_bigendian=no
  4365. else
  4366. echo "$as_me: program exited with status $ac_status" >&5
  4367. echo "$as_me: failed program was:" >&5
  4368. sed 's/^/| /' conftest.$ac_ext >&5
  4369. ( exit $ac_status )
  4370. ac_cv_c_bigendian=yes
  4371. fi
  4372. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4373. fi
  4374. fi
  4375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4376. fi
  4377. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  4378. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  4379. case $ac_cv_c_bigendian in
  4380. yes)
  4381. cat >>confdefs.h <<\_ACEOF
  4382. #define WORDS_BIGENDIAN 1
  4383. _ACEOF
  4384. ;;
  4385. no)
  4386. ;;
  4387. *)
  4388. { { echo "$as_me:$LINENO: error: unknown endianness
  4389. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  4390. echo "$as_me: error: unknown endianness
  4391. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  4392. { (exit 1); exit 1; }; } ;;
  4393. esac
  4394. fi
  4395. { echo "$as_me:$LINENO: checking for short" >&5
  4396. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  4397. if test "${ac_cv_type_short+set}" = set; then
  4398. echo $ECHO_N "(cached) $ECHO_C" >&6
  4399. else
  4400. cat >conftest.$ac_ext <<_ACEOF
  4401. /* confdefs.h. */
  4402. _ACEOF
  4403. cat confdefs.h >>conftest.$ac_ext
  4404. cat >>conftest.$ac_ext <<_ACEOF
  4405. /* end confdefs.h. */
  4406. $ac_includes_default
  4407. typedef short ac__type_new_;
  4408. int
  4409. main ()
  4410. {
  4411. if ((ac__type_new_ *) 0)
  4412. return 0;
  4413. if (sizeof (ac__type_new_))
  4414. return 0;
  4415. ;
  4416. return 0;
  4417. }
  4418. _ACEOF
  4419. rm -f conftest.$ac_objext
  4420. if { (ac_try="$ac_compile"
  4421. case "(($ac_try" in
  4422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4423. *) ac_try_echo=$ac_try;;
  4424. esac
  4425. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4426. (eval "$ac_compile") 2>conftest.er1
  4427. ac_status=$?
  4428. grep -v '^ *+' conftest.er1 >conftest.err
  4429. rm -f conftest.er1
  4430. cat conftest.err >&5
  4431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4432. (exit $ac_status); } && {
  4433. test -z "$ac_c_werror_flag" ||
  4434. test ! -s conftest.err
  4435. } && test -s conftest.$ac_objext; then
  4436. ac_cv_type_short=yes
  4437. else
  4438. echo "$as_me: failed program was:" >&5
  4439. sed 's/^/| /' conftest.$ac_ext >&5
  4440. ac_cv_type_short=no
  4441. fi
  4442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4443. fi
  4444. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  4445. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  4446. # The cast to long int works around a bug in the HP C Compiler
  4447. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4448. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4449. # This bug is HP SR number 8606223364.
  4450. { echo "$as_me:$LINENO: checking size of short" >&5
  4451. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  4452. if test "${ac_cv_sizeof_short+set}" = set; then
  4453. echo $ECHO_N "(cached) $ECHO_C" >&6
  4454. else
  4455. if test "$cross_compiling" = yes; then
  4456. # Depending upon the size, compute the lo and hi bounds.
  4457. cat >conftest.$ac_ext <<_ACEOF
  4458. /* confdefs.h. */
  4459. _ACEOF
  4460. cat confdefs.h >>conftest.$ac_ext
  4461. cat >>conftest.$ac_ext <<_ACEOF
  4462. /* end confdefs.h. */
  4463. $ac_includes_default
  4464. typedef short ac__type_sizeof_;
  4465. int
  4466. main ()
  4467. {
  4468. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  4469. test_array [0] = 0
  4470. ;
  4471. return 0;
  4472. }
  4473. _ACEOF
  4474. rm -f conftest.$ac_objext
  4475. if { (ac_try="$ac_compile"
  4476. case "(($ac_try" in
  4477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4478. *) ac_try_echo=$ac_try;;
  4479. esac
  4480. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4481. (eval "$ac_compile") 2>conftest.er1
  4482. ac_status=$?
  4483. grep -v '^ *+' conftest.er1 >conftest.err
  4484. rm -f conftest.er1
  4485. cat conftest.err >&5
  4486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4487. (exit $ac_status); } && {
  4488. test -z "$ac_c_werror_flag" ||
  4489. test ! -s conftest.err
  4490. } && test -s conftest.$ac_objext; then
  4491. ac_lo=0 ac_mid=0
  4492. while :; do
  4493. cat >conftest.$ac_ext <<_ACEOF
  4494. /* confdefs.h. */
  4495. _ACEOF
  4496. cat confdefs.h >>conftest.$ac_ext
  4497. cat >>conftest.$ac_ext <<_ACEOF
  4498. /* end confdefs.h. */
  4499. $ac_includes_default
  4500. typedef short ac__type_sizeof_;
  4501. int
  4502. main ()
  4503. {
  4504. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  4505. test_array [0] = 0
  4506. ;
  4507. return 0;
  4508. }
  4509. _ACEOF
  4510. rm -f conftest.$ac_objext
  4511. if { (ac_try="$ac_compile"
  4512. case "(($ac_try" in
  4513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4514. *) ac_try_echo=$ac_try;;
  4515. esac
  4516. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4517. (eval "$ac_compile") 2>conftest.er1
  4518. ac_status=$?
  4519. grep -v '^ *+' conftest.er1 >conftest.err
  4520. rm -f conftest.er1
  4521. cat conftest.err >&5
  4522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4523. (exit $ac_status); } && {
  4524. test -z "$ac_c_werror_flag" ||
  4525. test ! -s conftest.err
  4526. } && test -s conftest.$ac_objext; then
  4527. ac_hi=$ac_mid; break
  4528. else
  4529. echo "$as_me: failed program was:" >&5
  4530. sed 's/^/| /' conftest.$ac_ext >&5
  4531. ac_lo=`expr $ac_mid + 1`
  4532. if test $ac_lo -le $ac_mid; then
  4533. ac_lo= ac_hi=
  4534. break
  4535. fi
  4536. ac_mid=`expr 2 '*' $ac_mid + 1`
  4537. fi
  4538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4539. done
  4540. else
  4541. echo "$as_me: failed program was:" >&5
  4542. sed 's/^/| /' conftest.$ac_ext >&5
  4543. cat >conftest.$ac_ext <<_ACEOF
  4544. /* confdefs.h. */
  4545. _ACEOF
  4546. cat confdefs.h >>conftest.$ac_ext
  4547. cat >>conftest.$ac_ext <<_ACEOF
  4548. /* end confdefs.h. */
  4549. $ac_includes_default
  4550. typedef short ac__type_sizeof_;
  4551. int
  4552. main ()
  4553. {
  4554. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  4555. test_array [0] = 0
  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 short 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. return 0;
  4594. }
  4595. _ACEOF
  4596. rm -f conftest.$ac_objext
  4597. if { (ac_try="$ac_compile"
  4598. case "(($ac_try" in
  4599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4600. *) ac_try_echo=$ac_try;;
  4601. esac
  4602. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4603. (eval "$ac_compile") 2>conftest.er1
  4604. ac_status=$?
  4605. grep -v '^ *+' conftest.er1 >conftest.err
  4606. rm -f conftest.er1
  4607. cat conftest.err >&5
  4608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4609. (exit $ac_status); } && {
  4610. test -z "$ac_c_werror_flag" ||
  4611. test ! -s conftest.err
  4612. } && test -s conftest.$ac_objext; then
  4613. ac_lo=$ac_mid; break
  4614. else
  4615. echo "$as_me: failed program was:" >&5
  4616. sed 's/^/| /' conftest.$ac_ext >&5
  4617. ac_hi=`expr '(' $ac_mid ')' - 1`
  4618. if test $ac_mid -le $ac_hi; then
  4619. ac_lo= ac_hi=
  4620. break
  4621. fi
  4622. ac_mid=`expr 2 '*' $ac_mid`
  4623. fi
  4624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4625. done
  4626. else
  4627. echo "$as_me: failed program was:" >&5
  4628. sed 's/^/| /' conftest.$ac_ext >&5
  4629. ac_lo= ac_hi=
  4630. fi
  4631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4632. fi
  4633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4634. # Binary search between lo and hi bounds.
  4635. while test "x$ac_lo" != "x$ac_hi"; do
  4636. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  4637. cat >conftest.$ac_ext <<_ACEOF
  4638. /* confdefs.h. */
  4639. _ACEOF
  4640. cat confdefs.h >>conftest.$ac_ext
  4641. cat >>conftest.$ac_ext <<_ACEOF
  4642. /* end confdefs.h. */
  4643. $ac_includes_default
  4644. typedef short ac__type_sizeof_;
  4645. int
  4646. main ()
  4647. {
  4648. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  4649. test_array [0] = 0
  4650. ;
  4651. return 0;
  4652. }
  4653. _ACEOF
  4654. rm -f conftest.$ac_objext
  4655. if { (ac_try="$ac_compile"
  4656. case "(($ac_try" in
  4657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4658. *) ac_try_echo=$ac_try;;
  4659. esac
  4660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4661. (eval "$ac_compile") 2>conftest.er1
  4662. ac_status=$?
  4663. grep -v '^ *+' conftest.er1 >conftest.err
  4664. rm -f conftest.er1
  4665. cat conftest.err >&5
  4666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4667. (exit $ac_status); } && {
  4668. test -z "$ac_c_werror_flag" ||
  4669. test ! -s conftest.err
  4670. } && test -s conftest.$ac_objext; then
  4671. ac_hi=$ac_mid
  4672. else
  4673. echo "$as_me: failed program was:" >&5
  4674. sed 's/^/| /' conftest.$ac_ext >&5
  4675. ac_lo=`expr '(' $ac_mid ')' + 1`
  4676. fi
  4677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4678. done
  4679. case $ac_lo in
  4680. ?*) ac_cv_sizeof_short=$ac_lo;;
  4681. '') if test "$ac_cv_type_short" = yes; then
  4682. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  4683. See \`config.log' for more details." >&5
  4684. echo "$as_me: error: cannot compute sizeof (short)
  4685. See \`config.log' for more details." >&2;}
  4686. { (exit 77); exit 77; }; }
  4687. else
  4688. ac_cv_sizeof_short=0
  4689. fi ;;
  4690. esac
  4691. else
  4692. cat >conftest.$ac_ext <<_ACEOF
  4693. /* confdefs.h. */
  4694. _ACEOF
  4695. cat confdefs.h >>conftest.$ac_ext
  4696. cat >>conftest.$ac_ext <<_ACEOF
  4697. /* end confdefs.h. */
  4698. $ac_includes_default
  4699. typedef short ac__type_sizeof_;
  4700. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  4701. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  4702. #include <stdio.h>
  4703. #include <stdlib.h>
  4704. int
  4705. main ()
  4706. {
  4707. FILE *f = fopen ("conftest.val", "w");
  4708. if (! f)
  4709. return 1;
  4710. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  4711. {
  4712. long int i = longval ();
  4713. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  4714. return 1;
  4715. fprintf (f, "%ld\n", i);
  4716. }
  4717. else
  4718. {
  4719. unsigned long int i = ulongval ();
  4720. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  4721. return 1;
  4722. fprintf (f, "%lu\n", i);
  4723. }
  4724. return ferror (f) || fclose (f) != 0;
  4725. ;
  4726. return 0;
  4727. }
  4728. _ACEOF
  4729. rm -f conftest$ac_exeext
  4730. if { (ac_try="$ac_link"
  4731. case "(($ac_try" in
  4732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4733. *) ac_try_echo=$ac_try;;
  4734. esac
  4735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4736. (eval "$ac_link") 2>&5
  4737. ac_status=$?
  4738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4739. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4740. { (case "(($ac_try" in
  4741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4742. *) ac_try_echo=$ac_try;;
  4743. esac
  4744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4745. (eval "$ac_try") 2>&5
  4746. ac_status=$?
  4747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4748. (exit $ac_status); }; }; then
  4749. ac_cv_sizeof_short=`cat conftest.val`
  4750. else
  4751. echo "$as_me: program exited with status $ac_status" >&5
  4752. echo "$as_me: failed program was:" >&5
  4753. sed 's/^/| /' conftest.$ac_ext >&5
  4754. ( exit $ac_status )
  4755. if test "$ac_cv_type_short" = yes; then
  4756. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  4757. See \`config.log' for more details." >&5
  4758. echo "$as_me: error: cannot compute sizeof (short)
  4759. See \`config.log' for more details." >&2;}
  4760. { (exit 77); exit 77; }; }
  4761. else
  4762. ac_cv_sizeof_short=0
  4763. fi
  4764. fi
  4765. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4766. fi
  4767. rm -f conftest.val
  4768. fi
  4769. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  4770. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  4771. cat >>confdefs.h <<_ACEOF
  4772. #define SIZEOF_SHORT $ac_cv_sizeof_short
  4773. _ACEOF
  4774. { echo "$as_me:$LINENO: checking for int" >&5
  4775. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  4776. if test "${ac_cv_type_int+set}" = set; then
  4777. echo $ECHO_N "(cached) $ECHO_C" >&6
  4778. else
  4779. cat >conftest.$ac_ext <<_ACEOF
  4780. /* confdefs.h. */
  4781. _ACEOF
  4782. cat confdefs.h >>conftest.$ac_ext
  4783. cat >>conftest.$ac_ext <<_ACEOF
  4784. /* end confdefs.h. */
  4785. $ac_includes_default
  4786. typedef int ac__type_new_;
  4787. int
  4788. main ()
  4789. {
  4790. if ((ac__type_new_ *) 0)
  4791. return 0;
  4792. if (sizeof (ac__type_new_))
  4793. return 0;
  4794. ;
  4795. return 0;
  4796. }
  4797. _ACEOF
  4798. rm -f conftest.$ac_objext
  4799. if { (ac_try="$ac_compile"
  4800. case "(($ac_try" in
  4801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4802. *) ac_try_echo=$ac_try;;
  4803. esac
  4804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4805. (eval "$ac_compile") 2>conftest.er1
  4806. ac_status=$?
  4807. grep -v '^ *+' conftest.er1 >conftest.err
  4808. rm -f conftest.er1
  4809. cat conftest.err >&5
  4810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4811. (exit $ac_status); } && {
  4812. test -z "$ac_c_werror_flag" ||
  4813. test ! -s conftest.err
  4814. } && test -s conftest.$ac_objext; then
  4815. ac_cv_type_int=yes
  4816. else
  4817. echo "$as_me: failed program was:" >&5
  4818. sed 's/^/| /' conftest.$ac_ext >&5
  4819. ac_cv_type_int=no
  4820. fi
  4821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4822. fi
  4823. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  4824. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  4825. # The cast to long int works around a bug in the HP C Compiler
  4826. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4827. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4828. # This bug is HP SR number 8606223364.
  4829. { echo "$as_me:$LINENO: checking size of int" >&5
  4830. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  4831. if test "${ac_cv_sizeof_int+set}" = set; then
  4832. echo $ECHO_N "(cached) $ECHO_C" >&6
  4833. else
  4834. if test "$cross_compiling" = yes; then
  4835. # Depending upon the size, compute the lo and hi bounds.
  4836. cat >conftest.$ac_ext <<_ACEOF
  4837. /* confdefs.h. */
  4838. _ACEOF
  4839. cat confdefs.h >>conftest.$ac_ext
  4840. cat >>conftest.$ac_ext <<_ACEOF
  4841. /* end confdefs.h. */
  4842. $ac_includes_default
  4843. typedef int ac__type_sizeof_;
  4844. int
  4845. main ()
  4846. {
  4847. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  4848. test_array [0] = 0
  4849. ;
  4850. return 0;
  4851. }
  4852. _ACEOF
  4853. rm -f conftest.$ac_objext
  4854. if { (ac_try="$ac_compile"
  4855. case "(($ac_try" in
  4856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4857. *) ac_try_echo=$ac_try;;
  4858. esac
  4859. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4860. (eval "$ac_compile") 2>conftest.er1
  4861. ac_status=$?
  4862. grep -v '^ *+' conftest.er1 >conftest.err
  4863. rm -f conftest.er1
  4864. cat conftest.err >&5
  4865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4866. (exit $ac_status); } && {
  4867. test -z "$ac_c_werror_flag" ||
  4868. test ! -s conftest.err
  4869. } && test -s conftest.$ac_objext; then
  4870. ac_lo=0 ac_mid=0
  4871. while :; do
  4872. cat >conftest.$ac_ext <<_ACEOF
  4873. /* confdefs.h. */
  4874. _ACEOF
  4875. cat confdefs.h >>conftest.$ac_ext
  4876. cat >>conftest.$ac_ext <<_ACEOF
  4877. /* end confdefs.h. */
  4878. $ac_includes_default
  4879. typedef int ac__type_sizeof_;
  4880. int
  4881. main ()
  4882. {
  4883. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  4884. test_array [0] = 0
  4885. ;
  4886. return 0;
  4887. }
  4888. _ACEOF
  4889. rm -f conftest.$ac_objext
  4890. if { (ac_try="$ac_compile"
  4891. case "(($ac_try" in
  4892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4893. *) ac_try_echo=$ac_try;;
  4894. esac
  4895. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4896. (eval "$ac_compile") 2>conftest.er1
  4897. ac_status=$?
  4898. grep -v '^ *+' conftest.er1 >conftest.err
  4899. rm -f conftest.er1
  4900. cat conftest.err >&5
  4901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4902. (exit $ac_status); } && {
  4903. test -z "$ac_c_werror_flag" ||
  4904. test ! -s conftest.err
  4905. } && test -s conftest.$ac_objext; then
  4906. ac_hi=$ac_mid; break
  4907. else
  4908. echo "$as_me: failed program was:" >&5
  4909. sed 's/^/| /' conftest.$ac_ext >&5
  4910. ac_lo=`expr $ac_mid + 1`
  4911. if test $ac_lo -le $ac_mid; then
  4912. ac_lo= ac_hi=
  4913. break
  4914. fi
  4915. ac_mid=`expr 2 '*' $ac_mid + 1`
  4916. fi
  4917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4918. done
  4919. else
  4920. echo "$as_me: failed program was:" >&5
  4921. sed 's/^/| /' conftest.$ac_ext >&5
  4922. cat >conftest.$ac_ext <<_ACEOF
  4923. /* confdefs.h. */
  4924. _ACEOF
  4925. cat confdefs.h >>conftest.$ac_ext
  4926. cat >>conftest.$ac_ext <<_ACEOF
  4927. /* end confdefs.h. */
  4928. $ac_includes_default
  4929. typedef int ac__type_sizeof_;
  4930. int
  4931. main ()
  4932. {
  4933. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  4934. test_array [0] = 0
  4935. ;
  4936. return 0;
  4937. }
  4938. _ACEOF
  4939. rm -f conftest.$ac_objext
  4940. if { (ac_try="$ac_compile"
  4941. case "(($ac_try" in
  4942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4943. *) ac_try_echo=$ac_try;;
  4944. esac
  4945. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4946. (eval "$ac_compile") 2>conftest.er1
  4947. ac_status=$?
  4948. grep -v '^ *+' conftest.er1 >conftest.err
  4949. rm -f conftest.er1
  4950. cat conftest.err >&5
  4951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4952. (exit $ac_status); } && {
  4953. test -z "$ac_c_werror_flag" ||
  4954. test ! -s conftest.err
  4955. } && test -s conftest.$ac_objext; then
  4956. ac_hi=-1 ac_mid=-1
  4957. while :; do
  4958. cat >conftest.$ac_ext <<_ACEOF
  4959. /* confdefs.h. */
  4960. _ACEOF
  4961. cat confdefs.h >>conftest.$ac_ext
  4962. cat >>conftest.$ac_ext <<_ACEOF
  4963. /* end confdefs.h. */
  4964. $ac_includes_default
  4965. typedef int ac__type_sizeof_;
  4966. int
  4967. main ()
  4968. {
  4969. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  4970. test_array [0] = 0
  4971. ;
  4972. return 0;
  4973. }
  4974. _ACEOF
  4975. rm -f conftest.$ac_objext
  4976. if { (ac_try="$ac_compile"
  4977. case "(($ac_try" in
  4978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4979. *) ac_try_echo=$ac_try;;
  4980. esac
  4981. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4982. (eval "$ac_compile") 2>conftest.er1
  4983. ac_status=$?
  4984. grep -v '^ *+' conftest.er1 >conftest.err
  4985. rm -f conftest.er1
  4986. cat conftest.err >&5
  4987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4988. (exit $ac_status); } && {
  4989. test -z "$ac_c_werror_flag" ||
  4990. test ! -s conftest.err
  4991. } && test -s conftest.$ac_objext; then
  4992. ac_lo=$ac_mid; break
  4993. else
  4994. echo "$as_me: failed program was:" >&5
  4995. sed 's/^/| /' conftest.$ac_ext >&5
  4996. ac_hi=`expr '(' $ac_mid ')' - 1`
  4997. if test $ac_mid -le $ac_hi; then
  4998. ac_lo= ac_hi=
  4999. break
  5000. fi
  5001. ac_mid=`expr 2 '*' $ac_mid`
  5002. fi
  5003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5004. done
  5005. else
  5006. echo "$as_me: failed program was:" >&5
  5007. sed 's/^/| /' conftest.$ac_ext >&5
  5008. ac_lo= ac_hi=
  5009. fi
  5010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5011. fi
  5012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5013. # Binary search between lo and hi bounds.
  5014. while test "x$ac_lo" != "x$ac_hi"; do
  5015. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5016. cat >conftest.$ac_ext <<_ACEOF
  5017. /* confdefs.h. */
  5018. _ACEOF
  5019. cat confdefs.h >>conftest.$ac_ext
  5020. cat >>conftest.$ac_ext <<_ACEOF
  5021. /* end confdefs.h. */
  5022. $ac_includes_default
  5023. typedef int ac__type_sizeof_;
  5024. int
  5025. main ()
  5026. {
  5027. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5028. test_array [0] = 0
  5029. ;
  5030. return 0;
  5031. }
  5032. _ACEOF
  5033. rm -f conftest.$ac_objext
  5034. if { (ac_try="$ac_compile"
  5035. case "(($ac_try" in
  5036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5037. *) ac_try_echo=$ac_try;;
  5038. esac
  5039. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5040. (eval "$ac_compile") 2>conftest.er1
  5041. ac_status=$?
  5042. grep -v '^ *+' conftest.er1 >conftest.err
  5043. rm -f conftest.er1
  5044. cat conftest.err >&5
  5045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5046. (exit $ac_status); } && {
  5047. test -z "$ac_c_werror_flag" ||
  5048. test ! -s conftest.err
  5049. } && test -s conftest.$ac_objext; then
  5050. ac_hi=$ac_mid
  5051. else
  5052. echo "$as_me: failed program was:" >&5
  5053. sed 's/^/| /' conftest.$ac_ext >&5
  5054. ac_lo=`expr '(' $ac_mid ')' + 1`
  5055. fi
  5056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5057. done
  5058. case $ac_lo in
  5059. ?*) ac_cv_sizeof_int=$ac_lo;;
  5060. '') if test "$ac_cv_type_int" = yes; then
  5061. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  5062. See \`config.log' for more details." >&5
  5063. echo "$as_me: error: cannot compute sizeof (int)
  5064. See \`config.log' for more details." >&2;}
  5065. { (exit 77); exit 77; }; }
  5066. else
  5067. ac_cv_sizeof_int=0
  5068. fi ;;
  5069. esac
  5070. else
  5071. cat >conftest.$ac_ext <<_ACEOF
  5072. /* confdefs.h. */
  5073. _ACEOF
  5074. cat confdefs.h >>conftest.$ac_ext
  5075. cat >>conftest.$ac_ext <<_ACEOF
  5076. /* end confdefs.h. */
  5077. $ac_includes_default
  5078. typedef int ac__type_sizeof_;
  5079. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5080. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5081. #include <stdio.h>
  5082. #include <stdlib.h>
  5083. int
  5084. main ()
  5085. {
  5086. FILE *f = fopen ("conftest.val", "w");
  5087. if (! f)
  5088. return 1;
  5089. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  5090. {
  5091. long int i = longval ();
  5092. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5093. return 1;
  5094. fprintf (f, "%ld\n", i);
  5095. }
  5096. else
  5097. {
  5098. unsigned long int i = ulongval ();
  5099. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5100. return 1;
  5101. fprintf (f, "%lu\n", i);
  5102. }
  5103. return ferror (f) || fclose (f) != 0;
  5104. ;
  5105. return 0;
  5106. }
  5107. _ACEOF
  5108. rm -f conftest$ac_exeext
  5109. if { (ac_try="$ac_link"
  5110. case "(($ac_try" in
  5111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5112. *) ac_try_echo=$ac_try;;
  5113. esac
  5114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5115. (eval "$ac_link") 2>&5
  5116. ac_status=$?
  5117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5118. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5119. { (case "(($ac_try" in
  5120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5121. *) ac_try_echo=$ac_try;;
  5122. esac
  5123. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5124. (eval "$ac_try") 2>&5
  5125. ac_status=$?
  5126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5127. (exit $ac_status); }; }; then
  5128. ac_cv_sizeof_int=`cat conftest.val`
  5129. else
  5130. echo "$as_me: program exited with status $ac_status" >&5
  5131. echo "$as_me: failed program was:" >&5
  5132. sed 's/^/| /' conftest.$ac_ext >&5
  5133. ( exit $ac_status )
  5134. if test "$ac_cv_type_int" = yes; then
  5135. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  5136. See \`config.log' for more details." >&5
  5137. echo "$as_me: error: cannot compute sizeof (int)
  5138. See \`config.log' for more details." >&2;}
  5139. { (exit 77); exit 77; }; }
  5140. else
  5141. ac_cv_sizeof_int=0
  5142. fi
  5143. fi
  5144. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5145. fi
  5146. rm -f conftest.val
  5147. fi
  5148. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  5149. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  5150. cat >>confdefs.h <<_ACEOF
  5151. #define SIZEOF_INT $ac_cv_sizeof_int
  5152. _ACEOF
  5153. { echo "$as_me:$LINENO: checking for long" >&5
  5154. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  5155. if test "${ac_cv_type_long+set}" = set; then
  5156. echo $ECHO_N "(cached) $ECHO_C" >&6
  5157. else
  5158. cat >conftest.$ac_ext <<_ACEOF
  5159. /* confdefs.h. */
  5160. _ACEOF
  5161. cat confdefs.h >>conftest.$ac_ext
  5162. cat >>conftest.$ac_ext <<_ACEOF
  5163. /* end confdefs.h. */
  5164. $ac_includes_default
  5165. typedef long ac__type_new_;
  5166. int
  5167. main ()
  5168. {
  5169. if ((ac__type_new_ *) 0)
  5170. return 0;
  5171. if (sizeof (ac__type_new_))
  5172. return 0;
  5173. ;
  5174. return 0;
  5175. }
  5176. _ACEOF
  5177. rm -f conftest.$ac_objext
  5178. if { (ac_try="$ac_compile"
  5179. case "(($ac_try" in
  5180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5181. *) ac_try_echo=$ac_try;;
  5182. esac
  5183. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5184. (eval "$ac_compile") 2>conftest.er1
  5185. ac_status=$?
  5186. grep -v '^ *+' conftest.er1 >conftest.err
  5187. rm -f conftest.er1
  5188. cat conftest.err >&5
  5189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5190. (exit $ac_status); } && {
  5191. test -z "$ac_c_werror_flag" ||
  5192. test ! -s conftest.err
  5193. } && test -s conftest.$ac_objext; then
  5194. ac_cv_type_long=yes
  5195. else
  5196. echo "$as_me: failed program was:" >&5
  5197. sed 's/^/| /' conftest.$ac_ext >&5
  5198. ac_cv_type_long=no
  5199. fi
  5200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5201. fi
  5202. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  5203. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  5204. # The cast to long int works around a bug in the HP C Compiler
  5205. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5206. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5207. # This bug is HP SR number 8606223364.
  5208. { echo "$as_me:$LINENO: checking size of long" >&5
  5209. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  5210. if test "${ac_cv_sizeof_long+set}" = set; then
  5211. echo $ECHO_N "(cached) $ECHO_C" >&6
  5212. else
  5213. if test "$cross_compiling" = yes; then
  5214. # Depending upon the size, compute the lo and hi bounds.
  5215. cat >conftest.$ac_ext <<_ACEOF
  5216. /* confdefs.h. */
  5217. _ACEOF
  5218. cat confdefs.h >>conftest.$ac_ext
  5219. cat >>conftest.$ac_ext <<_ACEOF
  5220. /* end confdefs.h. */
  5221. $ac_includes_default
  5222. typedef long ac__type_sizeof_;
  5223. int
  5224. main ()
  5225. {
  5226. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  5227. test_array [0] = 0
  5228. ;
  5229. return 0;
  5230. }
  5231. _ACEOF
  5232. rm -f conftest.$ac_objext
  5233. if { (ac_try="$ac_compile"
  5234. case "(($ac_try" in
  5235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5236. *) ac_try_echo=$ac_try;;
  5237. esac
  5238. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5239. (eval "$ac_compile") 2>conftest.er1
  5240. ac_status=$?
  5241. grep -v '^ *+' conftest.er1 >conftest.err
  5242. rm -f conftest.er1
  5243. cat conftest.err >&5
  5244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5245. (exit $ac_status); } && {
  5246. test -z "$ac_c_werror_flag" ||
  5247. test ! -s conftest.err
  5248. } && test -s conftest.$ac_objext; then
  5249. ac_lo=0 ac_mid=0
  5250. while :; do
  5251. cat >conftest.$ac_ext <<_ACEOF
  5252. /* confdefs.h. */
  5253. _ACEOF
  5254. cat confdefs.h >>conftest.$ac_ext
  5255. cat >>conftest.$ac_ext <<_ACEOF
  5256. /* end confdefs.h. */
  5257. $ac_includes_default
  5258. typedef long ac__type_sizeof_;
  5259. int
  5260. main ()
  5261. {
  5262. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5263. test_array [0] = 0
  5264. ;
  5265. return 0;
  5266. }
  5267. _ACEOF
  5268. rm -f conftest.$ac_objext
  5269. if { (ac_try="$ac_compile"
  5270. case "(($ac_try" in
  5271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5272. *) ac_try_echo=$ac_try;;
  5273. esac
  5274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5275. (eval "$ac_compile") 2>conftest.er1
  5276. ac_status=$?
  5277. grep -v '^ *+' conftest.er1 >conftest.err
  5278. rm -f conftest.er1
  5279. cat conftest.err >&5
  5280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5281. (exit $ac_status); } && {
  5282. test -z "$ac_c_werror_flag" ||
  5283. test ! -s conftest.err
  5284. } && test -s conftest.$ac_objext; then
  5285. ac_hi=$ac_mid; break
  5286. else
  5287. echo "$as_me: failed program was:" >&5
  5288. sed 's/^/| /' conftest.$ac_ext >&5
  5289. ac_lo=`expr $ac_mid + 1`
  5290. if test $ac_lo -le $ac_mid; then
  5291. ac_lo= ac_hi=
  5292. break
  5293. fi
  5294. ac_mid=`expr 2 '*' $ac_mid + 1`
  5295. fi
  5296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5297. done
  5298. else
  5299. echo "$as_me: failed program was:" >&5
  5300. sed 's/^/| /' conftest.$ac_ext >&5
  5301. cat >conftest.$ac_ext <<_ACEOF
  5302. /* confdefs.h. */
  5303. _ACEOF
  5304. cat confdefs.h >>conftest.$ac_ext
  5305. cat >>conftest.$ac_ext <<_ACEOF
  5306. /* end confdefs.h. */
  5307. $ac_includes_default
  5308. typedef long ac__type_sizeof_;
  5309. int
  5310. main ()
  5311. {
  5312. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  5313. test_array [0] = 0
  5314. ;
  5315. return 0;
  5316. }
  5317. _ACEOF
  5318. rm -f conftest.$ac_objext
  5319. if { (ac_try="$ac_compile"
  5320. case "(($ac_try" in
  5321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5322. *) ac_try_echo=$ac_try;;
  5323. esac
  5324. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5325. (eval "$ac_compile") 2>conftest.er1
  5326. ac_status=$?
  5327. grep -v '^ *+' conftest.er1 >conftest.err
  5328. rm -f conftest.er1
  5329. cat conftest.err >&5
  5330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5331. (exit $ac_status); } && {
  5332. test -z "$ac_c_werror_flag" ||
  5333. test ! -s conftest.err
  5334. } && test -s conftest.$ac_objext; then
  5335. ac_hi=-1 ac_mid=-1
  5336. while :; do
  5337. cat >conftest.$ac_ext <<_ACEOF
  5338. /* confdefs.h. */
  5339. _ACEOF
  5340. cat confdefs.h >>conftest.$ac_ext
  5341. cat >>conftest.$ac_ext <<_ACEOF
  5342. /* end confdefs.h. */
  5343. $ac_includes_default
  5344. typedef long ac__type_sizeof_;
  5345. int
  5346. main ()
  5347. {
  5348. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  5349. test_array [0] = 0
  5350. ;
  5351. return 0;
  5352. }
  5353. _ACEOF
  5354. rm -f conftest.$ac_objext
  5355. if { (ac_try="$ac_compile"
  5356. case "(($ac_try" in
  5357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5358. *) ac_try_echo=$ac_try;;
  5359. esac
  5360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5361. (eval "$ac_compile") 2>conftest.er1
  5362. ac_status=$?
  5363. grep -v '^ *+' conftest.er1 >conftest.err
  5364. rm -f conftest.er1
  5365. cat conftest.err >&5
  5366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5367. (exit $ac_status); } && {
  5368. test -z "$ac_c_werror_flag" ||
  5369. test ! -s conftest.err
  5370. } && test -s conftest.$ac_objext; then
  5371. ac_lo=$ac_mid; break
  5372. else
  5373. echo "$as_me: failed program was:" >&5
  5374. sed 's/^/| /' conftest.$ac_ext >&5
  5375. ac_hi=`expr '(' $ac_mid ')' - 1`
  5376. if test $ac_mid -le $ac_hi; then
  5377. ac_lo= ac_hi=
  5378. break
  5379. fi
  5380. ac_mid=`expr 2 '*' $ac_mid`
  5381. fi
  5382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5383. done
  5384. else
  5385. echo "$as_me: failed program was:" >&5
  5386. sed 's/^/| /' conftest.$ac_ext >&5
  5387. ac_lo= ac_hi=
  5388. fi
  5389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5390. fi
  5391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5392. # Binary search between lo and hi bounds.
  5393. while test "x$ac_lo" != "x$ac_hi"; do
  5394. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5395. cat >conftest.$ac_ext <<_ACEOF
  5396. /* confdefs.h. */
  5397. _ACEOF
  5398. cat confdefs.h >>conftest.$ac_ext
  5399. cat >>conftest.$ac_ext <<_ACEOF
  5400. /* end confdefs.h. */
  5401. $ac_includes_default
  5402. typedef long ac__type_sizeof_;
  5403. int
  5404. main ()
  5405. {
  5406. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5407. test_array [0] = 0
  5408. ;
  5409. return 0;
  5410. }
  5411. _ACEOF
  5412. rm -f conftest.$ac_objext
  5413. if { (ac_try="$ac_compile"
  5414. case "(($ac_try" in
  5415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5416. *) ac_try_echo=$ac_try;;
  5417. esac
  5418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5419. (eval "$ac_compile") 2>conftest.er1
  5420. ac_status=$?
  5421. grep -v '^ *+' conftest.er1 >conftest.err
  5422. rm -f conftest.er1
  5423. cat conftest.err >&5
  5424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5425. (exit $ac_status); } && {
  5426. test -z "$ac_c_werror_flag" ||
  5427. test ! -s conftest.err
  5428. } && test -s conftest.$ac_objext; then
  5429. ac_hi=$ac_mid
  5430. else
  5431. echo "$as_me: failed program was:" >&5
  5432. sed 's/^/| /' conftest.$ac_ext >&5
  5433. ac_lo=`expr '(' $ac_mid ')' + 1`
  5434. fi
  5435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5436. done
  5437. case $ac_lo in
  5438. ?*) ac_cv_sizeof_long=$ac_lo;;
  5439. '') if test "$ac_cv_type_long" = yes; then
  5440. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  5441. See \`config.log' for more details." >&5
  5442. echo "$as_me: error: cannot compute sizeof (long)
  5443. See \`config.log' for more details." >&2;}
  5444. { (exit 77); exit 77; }; }
  5445. else
  5446. ac_cv_sizeof_long=0
  5447. fi ;;
  5448. esac
  5449. else
  5450. cat >conftest.$ac_ext <<_ACEOF
  5451. /* confdefs.h. */
  5452. _ACEOF
  5453. cat confdefs.h >>conftest.$ac_ext
  5454. cat >>conftest.$ac_ext <<_ACEOF
  5455. /* end confdefs.h. */
  5456. $ac_includes_default
  5457. typedef long ac__type_sizeof_;
  5458. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5459. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5460. #include <stdio.h>
  5461. #include <stdlib.h>
  5462. int
  5463. main ()
  5464. {
  5465. FILE *f = fopen ("conftest.val", "w");
  5466. if (! f)
  5467. return 1;
  5468. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  5469. {
  5470. long int i = longval ();
  5471. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5472. return 1;
  5473. fprintf (f, "%ld\n", i);
  5474. }
  5475. else
  5476. {
  5477. unsigned long int i = ulongval ();
  5478. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5479. return 1;
  5480. fprintf (f, "%lu\n", i);
  5481. }
  5482. return ferror (f) || fclose (f) != 0;
  5483. ;
  5484. return 0;
  5485. }
  5486. _ACEOF
  5487. rm -f conftest$ac_exeext
  5488. if { (ac_try="$ac_link"
  5489. case "(($ac_try" in
  5490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5491. *) ac_try_echo=$ac_try;;
  5492. esac
  5493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5494. (eval "$ac_link") 2>&5
  5495. ac_status=$?
  5496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5497. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5498. { (case "(($ac_try" in
  5499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5500. *) ac_try_echo=$ac_try;;
  5501. esac
  5502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5503. (eval "$ac_try") 2>&5
  5504. ac_status=$?
  5505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5506. (exit $ac_status); }; }; then
  5507. ac_cv_sizeof_long=`cat conftest.val`
  5508. else
  5509. echo "$as_me: program exited with status $ac_status" >&5
  5510. echo "$as_me: failed program was:" >&5
  5511. sed 's/^/| /' conftest.$ac_ext >&5
  5512. ( exit $ac_status )
  5513. if test "$ac_cv_type_long" = yes; then
  5514. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  5515. See \`config.log' for more details." >&5
  5516. echo "$as_me: error: cannot compute sizeof (long)
  5517. See \`config.log' for more details." >&2;}
  5518. { (exit 77); exit 77; }; }
  5519. else
  5520. ac_cv_sizeof_long=0
  5521. fi
  5522. fi
  5523. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5524. fi
  5525. rm -f conftest.val
  5526. fi
  5527. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  5528. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  5529. cat >>confdefs.h <<_ACEOF
  5530. #define SIZEOF_LONG $ac_cv_sizeof_long
  5531. _ACEOF
  5532. if test $ac_cv_sizeof_short -eq 2; then
  5533. cat >>confdefs.h <<\_ACEOF
  5534. #define U16 unsigned short
  5535. _ACEOF
  5536. fi
  5537. if test $ac_cv_sizeof_int -eq 4; then
  5538. cat >>confdefs.h <<\_ACEOF
  5539. #define U32 unsigned
  5540. _ACEOF
  5541. else
  5542. if test $ac_cv_sizeof_long -eq 4; then
  5543. cat >>confdefs.h <<\_ACEOF
  5544. #define U32 unsigned long
  5545. _ACEOF
  5546. fi
  5547. fi
  5548. if test "$uname" != Darwin; then
  5549. if test $ac_cv_sizeof_int -eq 8; then
  5550. cat >>confdefs.h <<\_ACEOF
  5551. #define U64 unsigned
  5552. _ACEOF
  5553. else
  5554. if test $ac_cv_sizeof_long -eq 8; then
  5555. cat >>confdefs.h <<\_ACEOF
  5556. #define U64 unsigned long
  5557. _ACEOF
  5558. fi
  5559. fi
  5560. fi
  5561. { echo "$as_me:$LINENO: checking whether the compiler recognizes bool as a built-in type" >&5
  5562. echo $ECHO_N "checking whether the compiler recognizes bool as a built-in type... $ECHO_C" >&6; }
  5563. if test "${ac_cv_cxx_bool+set}" = set; then
  5564. echo $ECHO_N "(cached) $ECHO_C" >&6
  5565. else
  5566. ac_ext=cpp
  5567. ac_cpp='$CXXCPP $CPPFLAGS'
  5568. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5569. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5570. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5571. cat >conftest.$ac_ext <<_ACEOF
  5572. /* confdefs.h. */
  5573. _ACEOF
  5574. cat confdefs.h >>conftest.$ac_ext
  5575. cat >>conftest.$ac_ext <<_ACEOF
  5576. /* end confdefs.h. */
  5577. int f(int x){return 1;}
  5578. int f(char x){return 1;}
  5579. int f(bool x){return 1;}
  5580. int
  5581. main ()
  5582. {
  5583. bool b = true;
  5584. return f(b);
  5585. ;
  5586. return 0;
  5587. }
  5588. _ACEOF
  5589. rm -f conftest.$ac_objext
  5590. if { (ac_try="$ac_compile"
  5591. case "(($ac_try" in
  5592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5593. *) ac_try_echo=$ac_try;;
  5594. esac
  5595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5596. (eval "$ac_compile") 2>conftest.er1
  5597. ac_status=$?
  5598. grep -v '^ *+' conftest.er1 >conftest.err
  5599. rm -f conftest.er1
  5600. cat conftest.err >&5
  5601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5602. (exit $ac_status); } && {
  5603. test -z "$ac_cxx_werror_flag" ||
  5604. test ! -s conftest.err
  5605. } && test -s conftest.$ac_objext; then
  5606. ac_cv_cxx_bool=yes
  5607. else
  5608. echo "$as_me: failed program was:" >&5
  5609. sed 's/^/| /' conftest.$ac_ext >&5
  5610. ac_cv_cxx_bool=no
  5611. fi
  5612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5613. ac_ext=c
  5614. ac_cpp='$CPP $CPPFLAGS'
  5615. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5616. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5617. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5618. fi
  5619. { echo "$as_me:$LINENO: result: $ac_cv_cxx_bool" >&5
  5620. echo "${ECHO_T}$ac_cv_cxx_bool" >&6; }
  5621. if test "$ac_cv_cxx_bool" != yes; then
  5622. CXXFLAGS="-Dbool=char -Dfalse=0 -Dtrue=1 $CXXFLAGS"
  5623. fi
  5624. ac_header_dirent=no
  5625. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  5626. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  5627. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  5628. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  5629. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5630. echo $ECHO_N "(cached) $ECHO_C" >&6
  5631. else
  5632. cat >conftest.$ac_ext <<_ACEOF
  5633. /* confdefs.h. */
  5634. _ACEOF
  5635. cat confdefs.h >>conftest.$ac_ext
  5636. cat >>conftest.$ac_ext <<_ACEOF
  5637. /* end confdefs.h. */
  5638. #include <sys/types.h>
  5639. #include <$ac_hdr>
  5640. int
  5641. main ()
  5642. {
  5643. if ((DIR *) 0)
  5644. return 0;
  5645. ;
  5646. return 0;
  5647. }
  5648. _ACEOF
  5649. rm -f conftest.$ac_objext
  5650. if { (ac_try="$ac_compile"
  5651. case "(($ac_try" in
  5652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5653. *) ac_try_echo=$ac_try;;
  5654. esac
  5655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5656. (eval "$ac_compile") 2>conftest.er1
  5657. ac_status=$?
  5658. grep -v '^ *+' conftest.er1 >conftest.err
  5659. rm -f conftest.er1
  5660. cat conftest.err >&5
  5661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5662. (exit $ac_status); } && {
  5663. test -z "$ac_c_werror_flag" ||
  5664. test ! -s conftest.err
  5665. } && test -s conftest.$ac_objext; then
  5666. eval "$as_ac_Header=yes"
  5667. else
  5668. echo "$as_me: failed program was:" >&5
  5669. sed 's/^/| /' conftest.$ac_ext >&5
  5670. eval "$as_ac_Header=no"
  5671. fi
  5672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5673. fi
  5674. ac_res=`eval echo '${'$as_ac_Header'}'`
  5675. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5676. echo "${ECHO_T}$ac_res" >&6; }
  5677. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5678. cat >>confdefs.h <<_ACEOF
  5679. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  5680. _ACEOF
  5681. ac_header_dirent=$ac_hdr; break
  5682. fi
  5683. done
  5684. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5685. if test $ac_header_dirent = dirent.h; then
  5686. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  5687. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  5688. if test "${ac_cv_search_opendir+set}" = set; then
  5689. echo $ECHO_N "(cached) $ECHO_C" >&6
  5690. else
  5691. ac_func_search_save_LIBS=$LIBS
  5692. cat >conftest.$ac_ext <<_ACEOF
  5693. /* confdefs.h. */
  5694. _ACEOF
  5695. cat confdefs.h >>conftest.$ac_ext
  5696. cat >>conftest.$ac_ext <<_ACEOF
  5697. /* end confdefs.h. */
  5698. /* Override any GCC internal prototype to avoid an error.
  5699. Use char because int might match the return type of a GCC
  5700. builtin and then its argument prototype would still apply. */
  5701. #ifdef __cplusplus
  5702. extern "C"
  5703. #endif
  5704. char opendir ();
  5705. int
  5706. main ()
  5707. {
  5708. return opendir ();
  5709. ;
  5710. return 0;
  5711. }
  5712. _ACEOF
  5713. for ac_lib in '' dir; do
  5714. if test -z "$ac_lib"; then
  5715. ac_res="none required"
  5716. else
  5717. ac_res=-l$ac_lib
  5718. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5719. fi
  5720. rm -f conftest.$ac_objext conftest$ac_exeext
  5721. if { (ac_try="$ac_link"
  5722. case "(($ac_try" in
  5723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5724. *) ac_try_echo=$ac_try;;
  5725. esac
  5726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5727. (eval "$ac_link") 2>conftest.er1
  5728. ac_status=$?
  5729. grep -v '^ *+' conftest.er1 >conftest.err
  5730. rm -f conftest.er1
  5731. cat conftest.err >&5
  5732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5733. (exit $ac_status); } && {
  5734. test -z "$ac_c_werror_flag" ||
  5735. test ! -s conftest.err
  5736. } && test -s conftest$ac_exeext &&
  5737. $as_test_x conftest$ac_exeext; then
  5738. ac_cv_search_opendir=$ac_res
  5739. else
  5740. echo "$as_me: failed program was:" >&5
  5741. sed 's/^/| /' conftest.$ac_ext >&5
  5742. fi
  5743. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5744. conftest$ac_exeext
  5745. if test "${ac_cv_search_opendir+set}" = set; then
  5746. break
  5747. fi
  5748. done
  5749. if test "${ac_cv_search_opendir+set}" = set; then
  5750. :
  5751. else
  5752. ac_cv_search_opendir=no
  5753. fi
  5754. rm conftest.$ac_ext
  5755. LIBS=$ac_func_search_save_LIBS
  5756. fi
  5757. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5758. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  5759. ac_res=$ac_cv_search_opendir
  5760. if test "$ac_res" != no; then
  5761. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5762. fi
  5763. else
  5764. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  5765. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  5766. if test "${ac_cv_search_opendir+set}" = set; then
  5767. echo $ECHO_N "(cached) $ECHO_C" >&6
  5768. else
  5769. ac_func_search_save_LIBS=$LIBS
  5770. cat >conftest.$ac_ext <<_ACEOF
  5771. /* confdefs.h. */
  5772. _ACEOF
  5773. cat confdefs.h >>conftest.$ac_ext
  5774. cat >>conftest.$ac_ext <<_ACEOF
  5775. /* end confdefs.h. */
  5776. /* Override any GCC internal prototype to avoid an error.
  5777. Use char because int might match the return type of a GCC
  5778. builtin and then its argument prototype would still apply. */
  5779. #ifdef __cplusplus
  5780. extern "C"
  5781. #endif
  5782. char opendir ();
  5783. int
  5784. main ()
  5785. {
  5786. return opendir ();
  5787. ;
  5788. return 0;
  5789. }
  5790. _ACEOF
  5791. for ac_lib in '' x; do
  5792. if test -z "$ac_lib"; then
  5793. ac_res="none required"
  5794. else
  5795. ac_res=-l$ac_lib
  5796. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5797. fi
  5798. rm -f conftest.$ac_objext conftest$ac_exeext
  5799. if { (ac_try="$ac_link"
  5800. case "(($ac_try" in
  5801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5802. *) ac_try_echo=$ac_try;;
  5803. esac
  5804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5805. (eval "$ac_link") 2>conftest.er1
  5806. ac_status=$?
  5807. grep -v '^ *+' conftest.er1 >conftest.err
  5808. rm -f conftest.er1
  5809. cat conftest.err >&5
  5810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5811. (exit $ac_status); } && {
  5812. test -z "$ac_c_werror_flag" ||
  5813. test ! -s conftest.err
  5814. } && test -s conftest$ac_exeext &&
  5815. $as_test_x conftest$ac_exeext; then
  5816. ac_cv_search_opendir=$ac_res
  5817. else
  5818. echo "$as_me: failed program was:" >&5
  5819. sed 's/^/| /' conftest.$ac_ext >&5
  5820. fi
  5821. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5822. conftest$ac_exeext
  5823. if test "${ac_cv_search_opendir+set}" = set; then
  5824. break
  5825. fi
  5826. done
  5827. if test "${ac_cv_search_opendir+set}" = set; then
  5828. :
  5829. else
  5830. ac_cv_search_opendir=no
  5831. fi
  5832. rm conftest.$ac_ext
  5833. LIBS=$ac_func_search_save_LIBS
  5834. fi
  5835. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5836. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  5837. ac_res=$ac_cv_search_opendir
  5838. if test "$ac_res" != no; then
  5839. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5840. fi
  5841. fi
  5842. if test "${ac_cv_header_sys_select_h+set}" = set; then
  5843. { echo "$as_me:$LINENO: checking for sys/select.h" >&5
  5844. echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
  5845. if test "${ac_cv_header_sys_select_h+set}" = set; then
  5846. echo $ECHO_N "(cached) $ECHO_C" >&6
  5847. fi
  5848. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
  5849. echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
  5850. else
  5851. # Is the header compilable?
  5852. { echo "$as_me:$LINENO: checking sys/select.h usability" >&5
  5853. echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; }
  5854. cat >conftest.$ac_ext <<_ACEOF
  5855. /* confdefs.h. */
  5856. _ACEOF
  5857. cat confdefs.h >>conftest.$ac_ext
  5858. cat >>conftest.$ac_ext <<_ACEOF
  5859. /* end confdefs.h. */
  5860. $ac_includes_default
  5861. #include <sys/select.h>
  5862. _ACEOF
  5863. rm -f conftest.$ac_objext
  5864. if { (ac_try="$ac_compile"
  5865. case "(($ac_try" in
  5866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5867. *) ac_try_echo=$ac_try;;
  5868. esac
  5869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5870. (eval "$ac_compile") 2>conftest.er1
  5871. ac_status=$?
  5872. grep -v '^ *+' conftest.er1 >conftest.err
  5873. rm -f conftest.er1
  5874. cat conftest.err >&5
  5875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5876. (exit $ac_status); } && {
  5877. test -z "$ac_c_werror_flag" ||
  5878. test ! -s conftest.err
  5879. } && test -s conftest.$ac_objext; then
  5880. ac_header_compiler=yes
  5881. else
  5882. echo "$as_me: failed program was:" >&5
  5883. sed 's/^/| /' conftest.$ac_ext >&5
  5884. ac_header_compiler=no
  5885. fi
  5886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5887. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5888. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5889. # Is the header present?
  5890. { echo "$as_me:$LINENO: checking sys/select.h presence" >&5
  5891. echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; }
  5892. cat >conftest.$ac_ext <<_ACEOF
  5893. /* confdefs.h. */
  5894. _ACEOF
  5895. cat confdefs.h >>conftest.$ac_ext
  5896. cat >>conftest.$ac_ext <<_ACEOF
  5897. /* end confdefs.h. */
  5898. #include <sys/select.h>
  5899. _ACEOF
  5900. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5901. case "(($ac_try" in
  5902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5903. *) ac_try_echo=$ac_try;;
  5904. esac
  5905. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5906. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5907. ac_status=$?
  5908. grep -v '^ *+' conftest.er1 >conftest.err
  5909. rm -f conftest.er1
  5910. cat conftest.err >&5
  5911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5912. (exit $ac_status); } >/dev/null && {
  5913. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5914. test ! -s conftest.err
  5915. }; then
  5916. ac_header_preproc=yes
  5917. else
  5918. echo "$as_me: failed program was:" >&5
  5919. sed 's/^/| /' conftest.$ac_ext >&5
  5920. ac_header_preproc=no
  5921. fi
  5922. rm -f conftest.err conftest.$ac_ext
  5923. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5924. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5925. # So? What about this header?
  5926. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5927. yes:no: )
  5928. { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5929. echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5930. { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
  5931. echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
  5932. ac_header_preproc=yes
  5933. ;;
  5934. no:yes:* )
  5935. { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
  5936. echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
  5937. { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
  5938. echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
  5939. { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
  5940. echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
  5941. { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
  5942. echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
  5943. { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
  5944. echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
  5945. { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
  5946. echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
  5947. ;;
  5948. esac
  5949. { echo "$as_me:$LINENO: checking for sys/select.h" >&5
  5950. echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
  5951. if test "${ac_cv_header_sys_select_h+set}" = set; then
  5952. echo $ECHO_N "(cached) $ECHO_C" >&6
  5953. else
  5954. ac_cv_header_sys_select_h=$ac_header_preproc
  5955. fi
  5956. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
  5957. echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
  5958. fi
  5959. if test $ac_cv_header_sys_select_h = yes; then
  5960. cat >>confdefs.h <<\_ACEOF
  5961. #define HAVE_SYS_SELECT_H 1
  5962. _ACEOF
  5963. fi
  5964. if test "${ac_cv_header_sys_stdtypes_h+set}" = set; then
  5965. { echo "$as_me:$LINENO: checking for sys/stdtypes.h" >&5
  5966. echo $ECHO_N "checking for sys/stdtypes.h... $ECHO_C" >&6; }
  5967. if test "${ac_cv_header_sys_stdtypes_h+set}" = set; then
  5968. echo $ECHO_N "(cached) $ECHO_C" >&6
  5969. fi
  5970. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_stdtypes_h" >&5
  5971. echo "${ECHO_T}$ac_cv_header_sys_stdtypes_h" >&6; }
  5972. else
  5973. # Is the header compilable?
  5974. { echo "$as_me:$LINENO: checking sys/stdtypes.h usability" >&5
  5975. echo $ECHO_N "checking sys/stdtypes.h usability... $ECHO_C" >&6; }
  5976. cat >conftest.$ac_ext <<_ACEOF
  5977. /* confdefs.h. */
  5978. _ACEOF
  5979. cat confdefs.h >>conftest.$ac_ext
  5980. cat >>conftest.$ac_ext <<_ACEOF
  5981. /* end confdefs.h. */
  5982. $ac_includes_default
  5983. #include <sys/stdtypes.h>
  5984. _ACEOF
  5985. rm -f conftest.$ac_objext
  5986. if { (ac_try="$ac_compile"
  5987. case "(($ac_try" in
  5988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5989. *) ac_try_echo=$ac_try;;
  5990. esac
  5991. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5992. (eval "$ac_compile") 2>conftest.er1
  5993. ac_status=$?
  5994. grep -v '^ *+' conftest.er1 >conftest.err
  5995. rm -f conftest.er1
  5996. cat conftest.err >&5
  5997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5998. (exit $ac_status); } && {
  5999. test -z "$ac_c_werror_flag" ||
  6000. test ! -s conftest.err
  6001. } && test -s conftest.$ac_objext; then
  6002. ac_header_compiler=yes
  6003. else
  6004. echo "$as_me: failed program was:" >&5
  6005. sed 's/^/| /' conftest.$ac_ext >&5
  6006. ac_header_compiler=no
  6007. fi
  6008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6009. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6010. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6011. # Is the header present?
  6012. { echo "$as_me:$LINENO: checking sys/stdtypes.h presence" >&5
  6013. echo $ECHO_N "checking sys/stdtypes.h presence... $ECHO_C" >&6; }
  6014. cat >conftest.$ac_ext <<_ACEOF
  6015. /* confdefs.h. */
  6016. _ACEOF
  6017. cat confdefs.h >>conftest.$ac_ext
  6018. cat >>conftest.$ac_ext <<_ACEOF
  6019. /* end confdefs.h. */
  6020. #include <sys/stdtypes.h>
  6021. _ACEOF
  6022. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6023. case "(($ac_try" in
  6024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6025. *) ac_try_echo=$ac_try;;
  6026. esac
  6027. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6028. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6029. ac_status=$?
  6030. grep -v '^ *+' conftest.er1 >conftest.err
  6031. rm -f conftest.er1
  6032. cat conftest.err >&5
  6033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6034. (exit $ac_status); } >/dev/null && {
  6035. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6036. test ! -s conftest.err
  6037. }; then
  6038. ac_header_preproc=yes
  6039. else
  6040. echo "$as_me: failed program was:" >&5
  6041. sed 's/^/| /' conftest.$ac_ext >&5
  6042. ac_header_preproc=no
  6043. fi
  6044. rm -f conftest.err conftest.$ac_ext
  6045. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6046. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6047. # So? What about this header?
  6048. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6049. yes:no: )
  6050. { echo "$as_me:$LINENO: WARNING: sys/stdtypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6051. echo "$as_me: WARNING: sys/stdtypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6052. { echo "$as_me:$LINENO: WARNING: sys/stdtypes.h: proceeding with the compiler's result" >&5
  6053. echo "$as_me: WARNING: sys/stdtypes.h: proceeding with the compiler's result" >&2;}
  6054. ac_header_preproc=yes
  6055. ;;
  6056. no:yes:* )
  6057. { echo "$as_me:$LINENO: WARNING: sys/stdtypes.h: present but cannot be compiled" >&5
  6058. echo "$as_me: WARNING: sys/stdtypes.h: present but cannot be compiled" >&2;}
  6059. { echo "$as_me:$LINENO: WARNING: sys/stdtypes.h: check for missing prerequisite headers?" >&5
  6060. echo "$as_me: WARNING: sys/stdtypes.h: check for missing prerequisite headers?" >&2;}
  6061. { echo "$as_me:$LINENO: WARNING: sys/stdtypes.h: see the Autoconf documentation" >&5
  6062. echo "$as_me: WARNING: sys/stdtypes.h: see the Autoconf documentation" >&2;}
  6063. { echo "$as_me:$LINENO: WARNING: sys/stdtypes.h: section \"Present But Cannot Be Compiled\"" >&5
  6064. echo "$as_me: WARNING: sys/stdtypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
  6065. { echo "$as_me:$LINENO: WARNING: sys/stdtypes.h: proceeding with the preprocessor's result" >&5
  6066. echo "$as_me: WARNING: sys/stdtypes.h: proceeding with the preprocessor's result" >&2;}
  6067. { echo "$as_me:$LINENO: WARNING: sys/stdtypes.h: in the future, the compiler will take precedence" >&5
  6068. echo "$as_me: WARNING: sys/stdtypes.h: in the future, the compiler will take precedence" >&2;}
  6069. ;;
  6070. esac
  6071. { echo "$as_me:$LINENO: checking for sys/stdtypes.h" >&5
  6072. echo $ECHO_N "checking for sys/stdtypes.h... $ECHO_C" >&6; }
  6073. if test "${ac_cv_header_sys_stdtypes_h+set}" = set; then
  6074. echo $ECHO_N "(cached) $ECHO_C" >&6
  6075. else
  6076. ac_cv_header_sys_stdtypes_h=$ac_header_preproc
  6077. fi
  6078. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_stdtypes_h" >&5
  6079. echo "${ECHO_T}$ac_cv_header_sys_stdtypes_h" >&6; }
  6080. fi
  6081. if test $ac_cv_header_sys_stdtypes_h = yes; then
  6082. cat >>confdefs.h <<\_ACEOF
  6083. #define HAVE_SYS_SELECT_H 1
  6084. _ACEOF
  6085. fi
  6086. { echo "$as_me:$LINENO: checking whether we have the POSIX compatible scandir() prototype" >&5
  6087. echo $ECHO_N "checking whether we have the POSIX compatible scandir() prototype... $ECHO_C" >&6; }
  6088. if test "${ac_cv_cxx_scandir_posix+set}" = set; then
  6089. echo $ECHO_N "(cached) $ECHO_C" >&6
  6090. else
  6091. ac_ext=cpp
  6092. ac_cpp='$CXXCPP $CPPFLAGS'
  6093. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6094. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6095. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6096. cat >conftest.$ac_ext <<_ACEOF
  6097. /* confdefs.h. */
  6098. _ACEOF
  6099. cat confdefs.h >>conftest.$ac_ext
  6100. cat >>conftest.$ac_ext <<_ACEOF
  6101. /* end confdefs.h. */
  6102. #include <dirent.h>
  6103. int func (const char *d, dirent ***list, void *sort) {
  6104. int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);
  6105. }
  6106. int
  6107. main ()
  6108. {
  6109. ;
  6110. return 0;
  6111. }
  6112. _ACEOF
  6113. rm -f conftest.$ac_objext
  6114. if { (ac_try="$ac_compile"
  6115. case "(($ac_try" in
  6116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6117. *) ac_try_echo=$ac_try;;
  6118. esac
  6119. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6120. (eval "$ac_compile") 2>conftest.er1
  6121. ac_status=$?
  6122. grep -v '^ *+' conftest.er1 >conftest.err
  6123. rm -f conftest.er1
  6124. cat conftest.err >&5
  6125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6126. (exit $ac_status); } && {
  6127. test -z "$ac_cxx_werror_flag" ||
  6128. test ! -s conftest.err
  6129. } && test -s conftest.$ac_objext; then
  6130. ac_cv_cxx_scandir_posix=yes
  6131. else
  6132. echo "$as_me: failed program was:" >&5
  6133. sed 's/^/| /' conftest.$ac_ext >&5
  6134. ac_cv_cxx_scandir_posix=no
  6135. fi
  6136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6137. ac_ext=c
  6138. ac_cpp='$CPP $CPPFLAGS'
  6139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6142. fi
  6143. { echo "$as_me:$LINENO: result: $ac_cv_cxx_scandir_posix" >&5
  6144. echo "${ECHO_T}$ac_cv_cxx_scandir_posix" >&6; }
  6145. if test "$ac_cv_cxx_scandir_posix" = yes; then
  6146. cat >>confdefs.h <<\_ACEOF
  6147. #define HAVE_SCANDIR 1
  6148. _ACEOF
  6149. cat >>confdefs.h <<\_ACEOF
  6150. #define HAVE_SCANDIR_POSIX 1
  6151. _ACEOF
  6152. else
  6153. { echo "$as_me:$LINENO: checking for scandir" >&5
  6154. echo $ECHO_N "checking for scandir... $ECHO_C" >&6; }
  6155. if test "${ac_cv_func_scandir+set}" = set; then
  6156. echo $ECHO_N "(cached) $ECHO_C" >&6
  6157. else
  6158. cat >conftest.$ac_ext <<_ACEOF
  6159. /* confdefs.h. */
  6160. _ACEOF
  6161. cat confdefs.h >>conftest.$ac_ext
  6162. cat >>conftest.$ac_ext <<_ACEOF
  6163. /* end confdefs.h. */
  6164. /* Define scandir to an innocuous variant, in case <limits.h> declares scandir.
  6165. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6166. #define scandir innocuous_scandir
  6167. /* System header to define __stub macros and hopefully few prototypes,
  6168. which can conflict with char scandir (); below.
  6169. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6170. <limits.h> exists even on freestanding compilers. */
  6171. #ifdef __STDC__
  6172. # include <limits.h>
  6173. #else
  6174. # include <assert.h>
  6175. #endif
  6176. #undef scandir
  6177. /* Override any GCC internal prototype to avoid an error.
  6178. Use char because int might match the return type of a GCC
  6179. builtin and then its argument prototype would still apply. */
  6180. #ifdef __cplusplus
  6181. extern "C"
  6182. #endif
  6183. char scandir ();
  6184. /* The GNU C library defines this for functions which it implements
  6185. to always fail with ENOSYS. Some functions are actually named
  6186. something starting with __ and the normal name is an alias. */
  6187. #if defined __stub_scandir || defined __stub___scandir
  6188. choke me
  6189. #endif
  6190. int
  6191. main ()
  6192. {
  6193. return scandir ();
  6194. ;
  6195. return 0;
  6196. }
  6197. _ACEOF
  6198. rm -f conftest.$ac_objext conftest$ac_exeext
  6199. if { (ac_try="$ac_link"
  6200. case "(($ac_try" in
  6201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6202. *) ac_try_echo=$ac_try;;
  6203. esac
  6204. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6205. (eval "$ac_link") 2>conftest.er1
  6206. ac_status=$?
  6207. grep -v '^ *+' conftest.er1 >conftest.err
  6208. rm -f conftest.er1
  6209. cat conftest.err >&5
  6210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6211. (exit $ac_status); } && {
  6212. test -z "$ac_c_werror_flag" ||
  6213. test ! -s conftest.err
  6214. } && test -s conftest$ac_exeext &&
  6215. $as_test_x conftest$ac_exeext; then
  6216. ac_cv_func_scandir=yes
  6217. else
  6218. echo "$as_me: failed program was:" >&5
  6219. sed 's/^/| /' conftest.$ac_ext >&5
  6220. ac_cv_func_scandir=no
  6221. fi
  6222. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6223. conftest$ac_exeext conftest.$ac_ext
  6224. fi
  6225. { echo "$as_me:$LINENO: result: $ac_cv_func_scandir" >&5
  6226. echo "${ECHO_T}$ac_cv_func_scandir" >&6; }
  6227. if test $ac_cv_func_scandir = yes; then
  6228. if test "x$uname" = xSunOS -o "x$uname" = xQNX; then
  6229. { echo "$as_me:$LINENO: WARNING: Not using $uname scandir emulation function." >&5
  6230. echo "$as_me: WARNING: Not using $uname scandir emulation function." >&2;}
  6231. else
  6232. cat >>confdefs.h <<\_ACEOF
  6233. #define HAVE_SCANDIR 1
  6234. _ACEOF
  6235. fi
  6236. fi
  6237. fi
  6238. { echo "$as_me:$LINENO: checking for vsnprintf" >&5
  6239. echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
  6240. if test "${ac_cv_func_vsnprintf+set}" = set; then
  6241. echo $ECHO_N "(cached) $ECHO_C" >&6
  6242. else
  6243. cat >conftest.$ac_ext <<_ACEOF
  6244. /* confdefs.h. */
  6245. _ACEOF
  6246. cat confdefs.h >>conftest.$ac_ext
  6247. cat >>conftest.$ac_ext <<_ACEOF
  6248. /* end confdefs.h. */
  6249. /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
  6250. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6251. #define vsnprintf innocuous_vsnprintf
  6252. /* System header to define __stub macros and hopefully few prototypes,
  6253. which can conflict with char vsnprintf (); below.
  6254. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6255. <limits.h> exists even on freestanding compilers. */
  6256. #ifdef __STDC__
  6257. # include <limits.h>
  6258. #else
  6259. # include <assert.h>
  6260. #endif
  6261. #undef vsnprintf
  6262. /* Override any GCC internal prototype to avoid an error.
  6263. Use char because int might match the return type of a GCC
  6264. builtin and then its argument prototype would still apply. */
  6265. #ifdef __cplusplus
  6266. extern "C"
  6267. #endif
  6268. char vsnprintf ();
  6269. /* The GNU C library defines this for functions which it implements
  6270. to always fail with ENOSYS. Some functions are actually named
  6271. something starting with __ and the normal name is an alias. */
  6272. #if defined __stub_vsnprintf || defined __stub___vsnprintf
  6273. choke me
  6274. #endif
  6275. int
  6276. main ()
  6277. {
  6278. return vsnprintf ();
  6279. ;
  6280. return 0;
  6281. }
  6282. _ACEOF
  6283. rm -f conftest.$ac_objext conftest$ac_exeext
  6284. if { (ac_try="$ac_link"
  6285. case "(($ac_try" in
  6286. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6287. *) ac_try_echo=$ac_try;;
  6288. esac
  6289. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6290. (eval "$ac_link") 2>conftest.er1
  6291. ac_status=$?
  6292. grep -v '^ *+' conftest.er1 >conftest.err
  6293. rm -f conftest.er1
  6294. cat conftest.err >&5
  6295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6296. (exit $ac_status); } && {
  6297. test -z "$ac_c_werror_flag" ||
  6298. test ! -s conftest.err
  6299. } && test -s conftest$ac_exeext &&
  6300. $as_test_x conftest$ac_exeext; then
  6301. ac_cv_func_vsnprintf=yes
  6302. else
  6303. echo "$as_me: failed program was:" >&5
  6304. sed 's/^/| /' conftest.$ac_ext >&5
  6305. ac_cv_func_vsnprintf=no
  6306. fi
  6307. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6308. conftest$ac_exeext conftest.$ac_ext
  6309. fi
  6310. { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
  6311. echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
  6312. if test $ac_cv_func_vsnprintf = yes; then
  6313. case "$uname" in
  6314. HP-UX*)
  6315. if test "$uversion" = "1020"; then
  6316. { echo "$as_me:$LINENO: WARNING: Not using built-in vsnprintf function because you are running HP-UX 10.20." >&5
  6317. echo "$as_me: WARNING: Not using built-in vsnprintf function because you are running HP-UX 10.20." >&2;}
  6318. else
  6319. cat >>confdefs.h <<\_ACEOF
  6320. #define HAVE_VSNPRINTF 1
  6321. _ACEOF
  6322. fi
  6323. ;;
  6324. OSF1*)
  6325. if test "$uversion" = "40"; then
  6326. { echo "$as_me:$LINENO: WARNING: Not using built-in vsnprintf function because you are running Tru64 4.0." >&5
  6327. echo "$as_me: WARNING: Not using built-in vsnprintf function because you are running Tru64 4.0." >&2;}
  6328. else
  6329. cat >>confdefs.h <<\_ACEOF
  6330. #define HAVE_VSNPRINTF 1
  6331. _ACEOF
  6332. fi
  6333. ;;
  6334. *)
  6335. cat >>confdefs.h <<\_ACEOF
  6336. #define HAVE_VSNPRINTF 1
  6337. _ACEOF
  6338. ;;
  6339. esac
  6340. fi
  6341. { echo "$as_me:$LINENO: checking for snprintf" >&5
  6342. echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; }
  6343. if test "${ac_cv_func_snprintf+set}" = set; then
  6344. echo $ECHO_N "(cached) $ECHO_C" >&6
  6345. else
  6346. cat >conftest.$ac_ext <<_ACEOF
  6347. /* confdefs.h. */
  6348. _ACEOF
  6349. cat confdefs.h >>conftest.$ac_ext
  6350. cat >>conftest.$ac_ext <<_ACEOF
  6351. /* end confdefs.h. */
  6352. /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
  6353. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6354. #define snprintf innocuous_snprintf
  6355. /* System header to define __stub macros and hopefully few prototypes,
  6356. which can conflict with char snprintf (); below.
  6357. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6358. <limits.h> exists even on freestanding compilers. */
  6359. #ifdef __STDC__
  6360. # include <limits.h>
  6361. #else
  6362. # include <assert.h>
  6363. #endif
  6364. #undef snprintf
  6365. /* Override any GCC internal prototype to avoid an error.
  6366. Use char because int might match the return type of a GCC
  6367. builtin and then its argument prototype would still apply. */
  6368. #ifdef __cplusplus
  6369. extern "C"
  6370. #endif
  6371. char snprintf ();
  6372. /* The GNU C library defines this for functions which it implements
  6373. to always fail with ENOSYS. Some functions are actually named
  6374. something starting with __ and the normal name is an alias. */
  6375. #if defined __stub_snprintf || defined __stub___snprintf
  6376. choke me
  6377. #endif
  6378. int
  6379. main ()
  6380. {
  6381. return snprintf ();
  6382. ;
  6383. return 0;
  6384. }
  6385. _ACEOF
  6386. rm -f conftest.$ac_objext conftest$ac_exeext
  6387. if { (ac_try="$ac_link"
  6388. case "(($ac_try" in
  6389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6390. *) ac_try_echo=$ac_try;;
  6391. esac
  6392. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6393. (eval "$ac_link") 2>conftest.er1
  6394. ac_status=$?
  6395. grep -v '^ *+' conftest.er1 >conftest.err
  6396. rm -f conftest.er1
  6397. cat conftest.err >&5
  6398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6399. (exit $ac_status); } && {
  6400. test -z "$ac_c_werror_flag" ||
  6401. test ! -s conftest.err
  6402. } && test -s conftest$ac_exeext &&
  6403. $as_test_x conftest$ac_exeext; then
  6404. ac_cv_func_snprintf=yes
  6405. else
  6406. echo "$as_me: failed program was:" >&5
  6407. sed 's/^/| /' conftest.$ac_ext >&5
  6408. ac_cv_func_snprintf=no
  6409. fi
  6410. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6411. conftest$ac_exeext conftest.$ac_ext
  6412. fi
  6413. { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
  6414. echo "${ECHO_T}$ac_cv_func_snprintf" >&6; }
  6415. if test $ac_cv_func_snprintf = yes; then
  6416. case "$uname" in
  6417. HP-UX*)
  6418. if test "$uversion" = "1020"; then
  6419. { echo "$as_me:$LINENO: WARNING: Not using built-in snprintf function because you are running HP-UX 10.20." >&5
  6420. echo "$as_me: WARNING: Not using built-in snprintf function because you are running HP-UX 10.20." >&2;}
  6421. else
  6422. cat >>confdefs.h <<\_ACEOF
  6423. #define HAVE_SNPRINTF 1
  6424. _ACEOF
  6425. fi
  6426. ;;
  6427. OSF1*)
  6428. if test "$uversion" = "40"; then
  6429. { echo "$as_me:$LINENO: WARNING: Not using built-in snprintf function because you are running Tru64 4.0." >&5
  6430. echo "$as_me: WARNING: Not using built-in snprintf function because you are running Tru64 4.0." >&2;}
  6431. else
  6432. cat >>confdefs.h <<\_ACEOF
  6433. #define HAVE_SNPRINTF 1
  6434. _ACEOF
  6435. fi
  6436. ;;
  6437. *)
  6438. cat >>confdefs.h <<\_ACEOF
  6439. #define HAVE_SNPRINTF 1
  6440. _ACEOF
  6441. ;;
  6442. esac
  6443. fi
  6444. if test "${ac_cv_header_strings_h+set}" = set; then
  6445. { echo "$as_me:$LINENO: checking for strings.h" >&5
  6446. echo $ECHO_N "checking for strings.h... $ECHO_C" >&6; }
  6447. if test "${ac_cv_header_strings_h+set}" = set; then
  6448. echo $ECHO_N "(cached) $ECHO_C" >&6
  6449. fi
  6450. { echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
  6451. echo "${ECHO_T}$ac_cv_header_strings_h" >&6; }
  6452. else
  6453. # Is the header compilable?
  6454. { echo "$as_me:$LINENO: checking strings.h usability" >&5
  6455. echo $ECHO_N "checking strings.h usability... $ECHO_C" >&6; }
  6456. cat >conftest.$ac_ext <<_ACEOF
  6457. /* confdefs.h. */
  6458. _ACEOF
  6459. cat confdefs.h >>conftest.$ac_ext
  6460. cat >>conftest.$ac_ext <<_ACEOF
  6461. /* end confdefs.h. */
  6462. $ac_includes_default
  6463. #include <strings.h>
  6464. _ACEOF
  6465. rm -f conftest.$ac_objext
  6466. if { (ac_try="$ac_compile"
  6467. case "(($ac_try" in
  6468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6469. *) ac_try_echo=$ac_try;;
  6470. esac
  6471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6472. (eval "$ac_compile") 2>conftest.er1
  6473. ac_status=$?
  6474. grep -v '^ *+' conftest.er1 >conftest.err
  6475. rm -f conftest.er1
  6476. cat conftest.err >&5
  6477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6478. (exit $ac_status); } && {
  6479. test -z "$ac_c_werror_flag" ||
  6480. test ! -s conftest.err
  6481. } && test -s conftest.$ac_objext; then
  6482. ac_header_compiler=yes
  6483. else
  6484. echo "$as_me: failed program was:" >&5
  6485. sed 's/^/| /' conftest.$ac_ext >&5
  6486. ac_header_compiler=no
  6487. fi
  6488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6489. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6490. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6491. # Is the header present?
  6492. { echo "$as_me:$LINENO: checking strings.h presence" >&5
  6493. echo $ECHO_N "checking strings.h presence... $ECHO_C" >&6; }
  6494. cat >conftest.$ac_ext <<_ACEOF
  6495. /* confdefs.h. */
  6496. _ACEOF
  6497. cat confdefs.h >>conftest.$ac_ext
  6498. cat >>conftest.$ac_ext <<_ACEOF
  6499. /* end confdefs.h. */
  6500. #include <strings.h>
  6501. _ACEOF
  6502. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6503. case "(($ac_try" in
  6504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6505. *) ac_try_echo=$ac_try;;
  6506. esac
  6507. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6508. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6509. ac_status=$?
  6510. grep -v '^ *+' conftest.er1 >conftest.err
  6511. rm -f conftest.er1
  6512. cat conftest.err >&5
  6513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6514. (exit $ac_status); } >/dev/null && {
  6515. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6516. test ! -s conftest.err
  6517. }; then
  6518. ac_header_preproc=yes
  6519. else
  6520. echo "$as_me: failed program was:" >&5
  6521. sed 's/^/| /' conftest.$ac_ext >&5
  6522. ac_header_preproc=no
  6523. fi
  6524. rm -f conftest.err conftest.$ac_ext
  6525. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6526. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6527. # So? What about this header?
  6528. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6529. yes:no: )
  6530. { echo "$as_me:$LINENO: WARNING: strings.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6531. echo "$as_me: WARNING: strings.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6532. { echo "$as_me:$LINENO: WARNING: strings.h: proceeding with the compiler's result" >&5
  6533. echo "$as_me: WARNING: strings.h: proceeding with the compiler's result" >&2;}
  6534. ac_header_preproc=yes
  6535. ;;
  6536. no:yes:* )
  6537. { echo "$as_me:$LINENO: WARNING: strings.h: present but cannot be compiled" >&5
  6538. echo "$as_me: WARNING: strings.h: present but cannot be compiled" >&2;}
  6539. { echo "$as_me:$LINENO: WARNING: strings.h: check for missing prerequisite headers?" >&5
  6540. echo "$as_me: WARNING: strings.h: check for missing prerequisite headers?" >&2;}
  6541. { echo "$as_me:$LINENO: WARNING: strings.h: see the Autoconf documentation" >&5
  6542. echo "$as_me: WARNING: strings.h: see the Autoconf documentation" >&2;}
  6543. { echo "$as_me:$LINENO: WARNING: strings.h: section \"Present But Cannot Be Compiled\"" >&5
  6544. echo "$as_me: WARNING: strings.h: section \"Present But Cannot Be Compiled\"" >&2;}
  6545. { echo "$as_me:$LINENO: WARNING: strings.h: proceeding with the preprocessor's result" >&5
  6546. echo "$as_me: WARNING: strings.h: proceeding with the preprocessor's result" >&2;}
  6547. { echo "$as_me:$LINENO: WARNING: strings.h: in the future, the compiler will take precedence" >&5
  6548. echo "$as_me: WARNING: strings.h: in the future, the compiler will take precedence" >&2;}
  6549. ;;
  6550. esac
  6551. { echo "$as_me:$LINENO: checking for strings.h" >&5
  6552. echo $ECHO_N "checking for strings.h... $ECHO_C" >&6; }
  6553. if test "${ac_cv_header_strings_h+set}" = set; then
  6554. echo $ECHO_N "(cached) $ECHO_C" >&6
  6555. else
  6556. ac_cv_header_strings_h=$ac_header_preproc
  6557. fi
  6558. { echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
  6559. echo "${ECHO_T}$ac_cv_header_strings_h" >&6; }
  6560. fi
  6561. if test $ac_cv_header_strings_h = yes; then
  6562. cat >>confdefs.h <<\_ACEOF
  6563. #define HAVE_STRINGS_H 1
  6564. _ACEOF
  6565. fi
  6566. for ac_func in strcasecmp strlcat strlcpy
  6567. do
  6568. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6569. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6570. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6571. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6572. echo $ECHO_N "(cached) $ECHO_C" >&6
  6573. else
  6574. cat >conftest.$ac_ext <<_ACEOF
  6575. /* confdefs.h. */
  6576. _ACEOF
  6577. cat confdefs.h >>conftest.$ac_ext
  6578. cat >>conftest.$ac_ext <<_ACEOF
  6579. /* end confdefs.h. */
  6580. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6581. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6582. #define $ac_func innocuous_$ac_func
  6583. /* System header to define __stub macros and hopefully few prototypes,
  6584. which can conflict with char $ac_func (); below.
  6585. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6586. <limits.h> exists even on freestanding compilers. */
  6587. #ifdef __STDC__
  6588. # include <limits.h>
  6589. #else
  6590. # include <assert.h>
  6591. #endif
  6592. #undef $ac_func
  6593. /* Override any GCC internal prototype to avoid an error.
  6594. Use char because int might match the return type of a GCC
  6595. builtin and then its argument prototype would still apply. */
  6596. #ifdef __cplusplus
  6597. extern "C"
  6598. #endif
  6599. char $ac_func ();
  6600. /* The GNU C library defines this for functions which it implements
  6601. to always fail with ENOSYS. Some functions are actually named
  6602. something starting with __ and the normal name is an alias. */
  6603. #if defined __stub_$ac_func || defined __stub___$ac_func
  6604. choke me
  6605. #endif
  6606. int
  6607. main ()
  6608. {
  6609. return $ac_func ();
  6610. ;
  6611. return 0;
  6612. }
  6613. _ACEOF
  6614. rm -f conftest.$ac_objext conftest$ac_exeext
  6615. if { (ac_try="$ac_link"
  6616. case "(($ac_try" in
  6617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6618. *) ac_try_echo=$ac_try;;
  6619. esac
  6620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6621. (eval "$ac_link") 2>conftest.er1
  6622. ac_status=$?
  6623. grep -v '^ *+' conftest.er1 >conftest.err
  6624. rm -f conftest.er1
  6625. cat conftest.err >&5
  6626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6627. (exit $ac_status); } && {
  6628. test -z "$ac_c_werror_flag" ||
  6629. test ! -s conftest.err
  6630. } && test -s conftest$ac_exeext &&
  6631. $as_test_x conftest$ac_exeext; then
  6632. eval "$as_ac_var=yes"
  6633. else
  6634. echo "$as_me: failed program was:" >&5
  6635. sed 's/^/| /' conftest.$ac_ext >&5
  6636. eval "$as_ac_var=no"
  6637. fi
  6638. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6639. conftest$ac_exeext conftest.$ac_ext
  6640. fi
  6641. ac_res=`eval echo '${'$as_ac_var'}'`
  6642. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6643. echo "${ECHO_T}$ac_res" >&6; }
  6644. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6645. cat >>confdefs.h <<_ACEOF
  6646. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6647. _ACEOF
  6648. fi
  6649. done
  6650. if test "${ac_cv_header_locale_h+set}" = set; then
  6651. { echo "$as_me:$LINENO: checking for locale.h" >&5
  6652. echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
  6653. if test "${ac_cv_header_locale_h+set}" = set; then
  6654. echo $ECHO_N "(cached) $ECHO_C" >&6
  6655. fi
  6656. { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
  6657. echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
  6658. else
  6659. # Is the header compilable?
  6660. { echo "$as_me:$LINENO: checking locale.h usability" >&5
  6661. echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
  6662. cat >conftest.$ac_ext <<_ACEOF
  6663. /* confdefs.h. */
  6664. _ACEOF
  6665. cat confdefs.h >>conftest.$ac_ext
  6666. cat >>conftest.$ac_ext <<_ACEOF
  6667. /* end confdefs.h. */
  6668. $ac_includes_default
  6669. #include <locale.h>
  6670. _ACEOF
  6671. rm -f conftest.$ac_objext
  6672. if { (ac_try="$ac_compile"
  6673. case "(($ac_try" in
  6674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6675. *) ac_try_echo=$ac_try;;
  6676. esac
  6677. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6678. (eval "$ac_compile") 2>conftest.er1
  6679. ac_status=$?
  6680. grep -v '^ *+' conftest.er1 >conftest.err
  6681. rm -f conftest.er1
  6682. cat conftest.err >&5
  6683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6684. (exit $ac_status); } && {
  6685. test -z "$ac_c_werror_flag" ||
  6686. test ! -s conftest.err
  6687. } && test -s conftest.$ac_objext; then
  6688. ac_header_compiler=yes
  6689. else
  6690. echo "$as_me: failed program was:" >&5
  6691. sed 's/^/| /' conftest.$ac_ext >&5
  6692. ac_header_compiler=no
  6693. fi
  6694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6695. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6696. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6697. # Is the header present?
  6698. { echo "$as_me:$LINENO: checking locale.h presence" >&5
  6699. echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
  6700. cat >conftest.$ac_ext <<_ACEOF
  6701. /* confdefs.h. */
  6702. _ACEOF
  6703. cat confdefs.h >>conftest.$ac_ext
  6704. cat >>conftest.$ac_ext <<_ACEOF
  6705. /* end confdefs.h. */
  6706. #include <locale.h>
  6707. _ACEOF
  6708. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6709. case "(($ac_try" in
  6710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6711. *) ac_try_echo=$ac_try;;
  6712. esac
  6713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6714. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6715. ac_status=$?
  6716. grep -v '^ *+' conftest.er1 >conftest.err
  6717. rm -f conftest.er1
  6718. cat conftest.err >&5
  6719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6720. (exit $ac_status); } >/dev/null && {
  6721. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6722. test ! -s conftest.err
  6723. }; then
  6724. ac_header_preproc=yes
  6725. else
  6726. echo "$as_me: failed program was:" >&5
  6727. sed 's/^/| /' conftest.$ac_ext >&5
  6728. ac_header_preproc=no
  6729. fi
  6730. rm -f conftest.err conftest.$ac_ext
  6731. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6732. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6733. # So? What about this header?
  6734. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6735. yes:no: )
  6736. { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6737. echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6738. { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
  6739. echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
  6740. ac_header_preproc=yes
  6741. ;;
  6742. no:yes:* )
  6743. { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
  6744. echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
  6745. { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
  6746. echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
  6747. { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
  6748. echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
  6749. { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
  6750. echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
  6751. { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
  6752. echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
  6753. { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
  6754. echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
  6755. ;;
  6756. esac
  6757. { echo "$as_me:$LINENO: checking for locale.h" >&5
  6758. echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
  6759. if test "${ac_cv_header_locale_h+set}" = set; then
  6760. echo $ECHO_N "(cached) $ECHO_C" >&6
  6761. else
  6762. ac_cv_header_locale_h=$ac_header_preproc
  6763. fi
  6764. { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
  6765. echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
  6766. fi
  6767. if test $ac_cv_header_locale_h = yes; then
  6768. cat >>confdefs.h <<\_ACEOF
  6769. #define HAVE_LOCALE_H 1
  6770. _ACEOF
  6771. fi
  6772. for ac_func in localeconv
  6773. do
  6774. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6775. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6776. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6777. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6778. echo $ECHO_N "(cached) $ECHO_C" >&6
  6779. else
  6780. cat >conftest.$ac_ext <<_ACEOF
  6781. /* confdefs.h. */
  6782. _ACEOF
  6783. cat confdefs.h >>conftest.$ac_ext
  6784. cat >>conftest.$ac_ext <<_ACEOF
  6785. /* end confdefs.h. */
  6786. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6787. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6788. #define $ac_func innocuous_$ac_func
  6789. /* System header to define __stub macros and hopefully few prototypes,
  6790. which can conflict with char $ac_func (); below.
  6791. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6792. <limits.h> exists even on freestanding compilers. */
  6793. #ifdef __STDC__
  6794. # include <limits.h>
  6795. #else
  6796. # include <assert.h>
  6797. #endif
  6798. #undef $ac_func
  6799. /* Override any GCC internal prototype to avoid an error.
  6800. Use char because int might match the return type of a GCC
  6801. builtin and then its argument prototype would still apply. */
  6802. #ifdef __cplusplus
  6803. extern "C"
  6804. #endif
  6805. char $ac_func ();
  6806. /* The GNU C library defines this for functions which it implements
  6807. to always fail with ENOSYS. Some functions are actually named
  6808. something starting with __ and the normal name is an alias. */
  6809. #if defined __stub_$ac_func || defined __stub___$ac_func
  6810. choke me
  6811. #endif
  6812. int
  6813. main ()
  6814. {
  6815. return $ac_func ();
  6816. ;
  6817. return 0;
  6818. }
  6819. _ACEOF
  6820. rm -f conftest.$ac_objext conftest$ac_exeext
  6821. if { (ac_try="$ac_link"
  6822. case "(($ac_try" in
  6823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6824. *) ac_try_echo=$ac_try;;
  6825. esac
  6826. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6827. (eval "$ac_link") 2>conftest.er1
  6828. ac_status=$?
  6829. grep -v '^ *+' conftest.er1 >conftest.err
  6830. rm -f conftest.er1
  6831. cat conftest.err >&5
  6832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6833. (exit $ac_status); } && {
  6834. test -z "$ac_c_werror_flag" ||
  6835. test ! -s conftest.err
  6836. } && test -s conftest$ac_exeext &&
  6837. $as_test_x conftest$ac_exeext; then
  6838. eval "$as_ac_var=yes"
  6839. else
  6840. echo "$as_me: failed program was:" >&5
  6841. sed 's/^/| /' conftest.$ac_ext >&5
  6842. eval "$as_ac_var=no"
  6843. fi
  6844. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6845. conftest$ac_exeext conftest.$ac_ext
  6846. fi
  6847. ac_res=`eval echo '${'$as_ac_var'}'`
  6848. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6849. echo "${ECHO_T}$ac_res" >&6; }
  6850. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6851. cat >>confdefs.h <<_ACEOF
  6852. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6853. _ACEOF
  6854. fi
  6855. done
  6856. { echo "$as_me:$LINENO: checking for library containing pow" >&5
  6857. echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6; }
  6858. if test "${ac_cv_search_pow+set}" = set; then
  6859. echo $ECHO_N "(cached) $ECHO_C" >&6
  6860. else
  6861. ac_func_search_save_LIBS=$LIBS
  6862. cat >conftest.$ac_ext <<_ACEOF
  6863. /* confdefs.h. */
  6864. _ACEOF
  6865. cat confdefs.h >>conftest.$ac_ext
  6866. cat >>conftest.$ac_ext <<_ACEOF
  6867. /* end confdefs.h. */
  6868. /* Override any GCC internal prototype to avoid an error.
  6869. Use char because int might match the return type of a GCC
  6870. builtin and then its argument prototype would still apply. */
  6871. #ifdef __cplusplus
  6872. extern "C"
  6873. #endif
  6874. char pow ();
  6875. int
  6876. main ()
  6877. {
  6878. return pow ();
  6879. ;
  6880. return 0;
  6881. }
  6882. _ACEOF
  6883. for ac_lib in '' m; do
  6884. if test -z "$ac_lib"; then
  6885. ac_res="none required"
  6886. else
  6887. ac_res=-l$ac_lib
  6888. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6889. fi
  6890. rm -f conftest.$ac_objext conftest$ac_exeext
  6891. if { (ac_try="$ac_link"
  6892. case "(($ac_try" in
  6893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6894. *) ac_try_echo=$ac_try;;
  6895. esac
  6896. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6897. (eval "$ac_link") 2>conftest.er1
  6898. ac_status=$?
  6899. grep -v '^ *+' conftest.er1 >conftest.err
  6900. rm -f conftest.er1
  6901. cat conftest.err >&5
  6902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6903. (exit $ac_status); } && {
  6904. test -z "$ac_c_werror_flag" ||
  6905. test ! -s conftest.err
  6906. } && test -s conftest$ac_exeext &&
  6907. $as_test_x conftest$ac_exeext; then
  6908. ac_cv_search_pow=$ac_res
  6909. else
  6910. echo "$as_me: failed program was:" >&5
  6911. sed 's/^/| /' conftest.$ac_ext >&5
  6912. fi
  6913. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6914. conftest$ac_exeext
  6915. if test "${ac_cv_search_pow+set}" = set; then
  6916. break
  6917. fi
  6918. done
  6919. if test "${ac_cv_search_pow+set}" = set; then
  6920. :
  6921. else
  6922. ac_cv_search_pow=no
  6923. fi
  6924. rm conftest.$ac_ext
  6925. LIBS=$ac_func_search_save_LIBS
  6926. fi
  6927. { echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5
  6928. echo "${ECHO_T}$ac_cv_search_pow" >&6; }
  6929. ac_res=$ac_cv_search_pow
  6930. if test "$ac_res" != no; then
  6931. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6932. fi
  6933. # Check whether --enable-largefile was given.
  6934. if test "${enable_largefile+set}" = set; then
  6935. enableval=$enable_largefile;
  6936. fi
  6937. if test "$enable_largefile" != no; then
  6938. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  6939. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  6940. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  6941. echo $ECHO_N "(cached) $ECHO_C" >&6
  6942. else
  6943. ac_cv_sys_largefile_CC=no
  6944. if test "$GCC" != yes; then
  6945. ac_save_CC=$CC
  6946. while :; do
  6947. # IRIX 6.2 and later do not support large files by default,
  6948. # so use the C compiler's -n32 option if that helps.
  6949. cat >conftest.$ac_ext <<_ACEOF
  6950. /* confdefs.h. */
  6951. _ACEOF
  6952. cat confdefs.h >>conftest.$ac_ext
  6953. cat >>conftest.$ac_ext <<_ACEOF
  6954. /* end confdefs.h. */
  6955. #include <sys/types.h>
  6956. /* Check that off_t can represent 2**63 - 1 correctly.
  6957. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6958. since some C++ compilers masquerading as C compilers
  6959. incorrectly reject 9223372036854775807. */
  6960. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6961. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6962. && LARGE_OFF_T % 2147483647 == 1)
  6963. ? 1 : -1];
  6964. int
  6965. main ()
  6966. {
  6967. ;
  6968. return 0;
  6969. }
  6970. _ACEOF
  6971. rm -f conftest.$ac_objext
  6972. if { (ac_try="$ac_compile"
  6973. case "(($ac_try" in
  6974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6975. *) ac_try_echo=$ac_try;;
  6976. esac
  6977. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6978. (eval "$ac_compile") 2>conftest.er1
  6979. ac_status=$?
  6980. grep -v '^ *+' conftest.er1 >conftest.err
  6981. rm -f conftest.er1
  6982. cat conftest.err >&5
  6983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6984. (exit $ac_status); } && {
  6985. test -z "$ac_c_werror_flag" ||
  6986. test ! -s conftest.err
  6987. } && test -s conftest.$ac_objext; then
  6988. break
  6989. else
  6990. echo "$as_me: failed program was:" >&5
  6991. sed 's/^/| /' conftest.$ac_ext >&5
  6992. fi
  6993. rm -f core conftest.err conftest.$ac_objext
  6994. CC="$CC -n32"
  6995. rm -f conftest.$ac_objext
  6996. if { (ac_try="$ac_compile"
  6997. case "(($ac_try" in
  6998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6999. *) ac_try_echo=$ac_try;;
  7000. esac
  7001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7002. (eval "$ac_compile") 2>conftest.er1
  7003. ac_status=$?
  7004. grep -v '^ *+' conftest.er1 >conftest.err
  7005. rm -f conftest.er1
  7006. cat conftest.err >&5
  7007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7008. (exit $ac_status); } && {
  7009. test -z "$ac_c_werror_flag" ||
  7010. test ! -s conftest.err
  7011. } && test -s conftest.$ac_objext; then
  7012. ac_cv_sys_largefile_CC=' -n32'; break
  7013. else
  7014. echo "$as_me: failed program was:" >&5
  7015. sed 's/^/| /' conftest.$ac_ext >&5
  7016. fi
  7017. rm -f core conftest.err conftest.$ac_objext
  7018. break
  7019. done
  7020. CC=$ac_save_CC
  7021. rm -f conftest.$ac_ext
  7022. fi
  7023. fi
  7024. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  7025. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  7026. if test "$ac_cv_sys_largefile_CC" != no; then
  7027. CC=$CC$ac_cv_sys_largefile_CC
  7028. fi
  7029. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7030. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  7031. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  7032. echo $ECHO_N "(cached) $ECHO_C" >&6
  7033. else
  7034. while :; do
  7035. cat >conftest.$ac_ext <<_ACEOF
  7036. /* confdefs.h. */
  7037. _ACEOF
  7038. cat confdefs.h >>conftest.$ac_ext
  7039. cat >>conftest.$ac_ext <<_ACEOF
  7040. /* end confdefs.h. */
  7041. #include <sys/types.h>
  7042. /* Check that off_t can represent 2**63 - 1 correctly.
  7043. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7044. since some C++ compilers masquerading as C compilers
  7045. incorrectly reject 9223372036854775807. */
  7046. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7047. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7048. && LARGE_OFF_T % 2147483647 == 1)
  7049. ? 1 : -1];
  7050. int
  7051. main ()
  7052. {
  7053. ;
  7054. return 0;
  7055. }
  7056. _ACEOF
  7057. rm -f conftest.$ac_objext
  7058. if { (ac_try="$ac_compile"
  7059. case "(($ac_try" in
  7060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7061. *) ac_try_echo=$ac_try;;
  7062. esac
  7063. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7064. (eval "$ac_compile") 2>conftest.er1
  7065. ac_status=$?
  7066. grep -v '^ *+' conftest.er1 >conftest.err
  7067. rm -f conftest.er1
  7068. cat conftest.err >&5
  7069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7070. (exit $ac_status); } && {
  7071. test -z "$ac_c_werror_flag" ||
  7072. test ! -s conftest.err
  7073. } && test -s conftest.$ac_objext; then
  7074. ac_cv_sys_file_offset_bits=no; break
  7075. else
  7076. echo "$as_me: failed program was:" >&5
  7077. sed 's/^/| /' conftest.$ac_ext >&5
  7078. fi
  7079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7080. cat >conftest.$ac_ext <<_ACEOF
  7081. /* confdefs.h. */
  7082. _ACEOF
  7083. cat confdefs.h >>conftest.$ac_ext
  7084. cat >>conftest.$ac_ext <<_ACEOF
  7085. /* end confdefs.h. */
  7086. #define _FILE_OFFSET_BITS 64
  7087. #include <sys/types.h>
  7088. /* Check that off_t can represent 2**63 - 1 correctly.
  7089. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7090. since some C++ compilers masquerading as C compilers
  7091. incorrectly reject 9223372036854775807. */
  7092. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7093. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7094. && LARGE_OFF_T % 2147483647 == 1)
  7095. ? 1 : -1];
  7096. int
  7097. main ()
  7098. {
  7099. ;
  7100. return 0;
  7101. }
  7102. _ACEOF
  7103. rm -f conftest.$ac_objext
  7104. if { (ac_try="$ac_compile"
  7105. case "(($ac_try" in
  7106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7107. *) ac_try_echo=$ac_try;;
  7108. esac
  7109. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7110. (eval "$ac_compile") 2>conftest.er1
  7111. ac_status=$?
  7112. grep -v '^ *+' conftest.er1 >conftest.err
  7113. rm -f conftest.er1
  7114. cat conftest.err >&5
  7115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7116. (exit $ac_status); } && {
  7117. test -z "$ac_c_werror_flag" ||
  7118. test ! -s conftest.err
  7119. } && test -s conftest.$ac_objext; then
  7120. ac_cv_sys_file_offset_bits=64; break
  7121. else
  7122. echo "$as_me: failed program was:" >&5
  7123. sed 's/^/| /' conftest.$ac_ext >&5
  7124. fi
  7125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7126. ac_cv_sys_file_offset_bits=unknown
  7127. break
  7128. done
  7129. fi
  7130. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  7131. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  7132. case $ac_cv_sys_file_offset_bits in #(
  7133. no | unknown) ;;
  7134. *)
  7135. cat >>confdefs.h <<_ACEOF
  7136. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7137. _ACEOF
  7138. ;;
  7139. esac
  7140. rm -f -r conftest*
  7141. if test $ac_cv_sys_file_offset_bits = unknown; then
  7142. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  7143. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  7144. if test "${ac_cv_sys_large_files+set}" = set; then
  7145. echo $ECHO_N "(cached) $ECHO_C" >&6
  7146. else
  7147. while :; do
  7148. cat >conftest.$ac_ext <<_ACEOF
  7149. /* confdefs.h. */
  7150. _ACEOF
  7151. cat confdefs.h >>conftest.$ac_ext
  7152. cat >>conftest.$ac_ext <<_ACEOF
  7153. /* end confdefs.h. */
  7154. #include <sys/types.h>
  7155. /* Check that off_t can represent 2**63 - 1 correctly.
  7156. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7157. since some C++ compilers masquerading as C compilers
  7158. incorrectly reject 9223372036854775807. */
  7159. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7160. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7161. && LARGE_OFF_T % 2147483647 == 1)
  7162. ? 1 : -1];
  7163. int
  7164. main ()
  7165. {
  7166. ;
  7167. return 0;
  7168. }
  7169. _ACEOF
  7170. rm -f conftest.$ac_objext
  7171. if { (ac_try="$ac_compile"
  7172. case "(($ac_try" in
  7173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7174. *) ac_try_echo=$ac_try;;
  7175. esac
  7176. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7177. (eval "$ac_compile") 2>conftest.er1
  7178. ac_status=$?
  7179. grep -v '^ *+' conftest.er1 >conftest.err
  7180. rm -f conftest.er1
  7181. cat conftest.err >&5
  7182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7183. (exit $ac_status); } && {
  7184. test -z "$ac_c_werror_flag" ||
  7185. test ! -s conftest.err
  7186. } && test -s conftest.$ac_objext; then
  7187. ac_cv_sys_large_files=no; break
  7188. else
  7189. echo "$as_me: failed program was:" >&5
  7190. sed 's/^/| /' conftest.$ac_ext >&5
  7191. fi
  7192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7193. cat >conftest.$ac_ext <<_ACEOF
  7194. /* confdefs.h. */
  7195. _ACEOF
  7196. cat confdefs.h >>conftest.$ac_ext
  7197. cat >>conftest.$ac_ext <<_ACEOF
  7198. /* end confdefs.h. */
  7199. #define _LARGE_FILES 1
  7200. #include <sys/types.h>
  7201. /* Check that off_t can represent 2**63 - 1 correctly.
  7202. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7203. since some C++ compilers masquerading as C compilers
  7204. incorrectly reject 9223372036854775807. */
  7205. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7206. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7207. && LARGE_OFF_T % 2147483647 == 1)
  7208. ? 1 : -1];
  7209. int
  7210. main ()
  7211. {
  7212. ;
  7213. return 0;
  7214. }
  7215. _ACEOF
  7216. rm -f conftest.$ac_objext
  7217. if { (ac_try="$ac_compile"
  7218. case "(($ac_try" in
  7219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7220. *) ac_try_echo=$ac_try;;
  7221. esac
  7222. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7223. (eval "$ac_compile") 2>conftest.er1
  7224. ac_status=$?
  7225. grep -v '^ *+' conftest.er1 >conftest.err
  7226. rm -f conftest.er1
  7227. cat conftest.err >&5
  7228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7229. (exit $ac_status); } && {
  7230. test -z "$ac_c_werror_flag" ||
  7231. test ! -s conftest.err
  7232. } && test -s conftest.$ac_objext; then
  7233. ac_cv_sys_large_files=1; break
  7234. else
  7235. echo "$as_me: failed program was:" >&5
  7236. sed 's/^/| /' conftest.$ac_ext >&5
  7237. fi
  7238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7239. ac_cv_sys_large_files=unknown
  7240. break
  7241. done
  7242. fi
  7243. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  7244. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  7245. case $ac_cv_sys_large_files in #(
  7246. no | unknown) ;;
  7247. *)
  7248. cat >>confdefs.h <<_ACEOF
  7249. #define _LARGE_FILES $ac_cv_sys_large_files
  7250. _ACEOF
  7251. ;;
  7252. esac
  7253. rm -f -r conftest*
  7254. fi
  7255. fi
  7256. LARGEFILE=""
  7257. if test x$enable_largefile != xno; then
  7258. LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
  7259. if test x$ac_cv_sys_large_files = x1; then
  7260. LARGEFILE="$LARGEFILE -D_LARGE_FILES"
  7261. fi
  7262. if test x$ac_cv_sys_file_offset_bits = x64; then
  7263. LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
  7264. fi
  7265. fi
  7266. { echo "$as_me:$LINENO: checking for long long int" >&5
  7267. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  7268. if test "${ac_cv_c_long_long+set}" = set; then
  7269. echo $ECHO_N "(cached) $ECHO_C" >&6
  7270. else
  7271. if test "$GCC" = yes; then
  7272. ac_cv_c_long_long=yes
  7273. else
  7274. cat >conftest.$ac_ext <<_ACEOF
  7275. /* confdefs.h. */
  7276. _ACEOF
  7277. cat confdefs.h >>conftest.$ac_ext
  7278. cat >>conftest.$ac_ext <<_ACEOF
  7279. /* end confdefs.h. */
  7280. int
  7281. main ()
  7282. {
  7283. long long int i;
  7284. ;
  7285. return 0;
  7286. }
  7287. _ACEOF
  7288. rm -f conftest.$ac_objext
  7289. if { (ac_try="$ac_compile"
  7290. case "(($ac_try" in
  7291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7292. *) ac_try_echo=$ac_try;;
  7293. esac
  7294. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7295. (eval "$ac_compile") 2>conftest.er1
  7296. ac_status=$?
  7297. grep -v '^ *+' conftest.er1 >conftest.err
  7298. rm -f conftest.er1
  7299. cat conftest.err >&5
  7300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7301. (exit $ac_status); } && {
  7302. test -z "$ac_c_werror_flag" ||
  7303. test ! -s conftest.err
  7304. } && test -s conftest.$ac_objext; then
  7305. ac_cv_c_long_long=yes
  7306. else
  7307. echo "$as_me: failed program was:" >&5
  7308. sed 's/^/| /' conftest.$ac_ext >&5
  7309. ac_cv_c_long_long=no
  7310. fi
  7311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7312. fi
  7313. fi
  7314. { echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
  7315. echo "${ECHO_T}$ac_cv_c_long_long" >&6; }
  7316. if test $ac_cv_c_long_long = yes; then
  7317. cat >>confdefs.h <<\_ACEOF
  7318. #define HAVE_LONG_LONG 1
  7319. _ACEOF
  7320. fi
  7321. { echo "$as_me:$LINENO: checking for strtoll" >&5
  7322. echo $ECHO_N "checking for strtoll... $ECHO_C" >&6; }
  7323. if test "${ac_cv_func_strtoll+set}" = set; then
  7324. echo $ECHO_N "(cached) $ECHO_C" >&6
  7325. else
  7326. cat >conftest.$ac_ext <<_ACEOF
  7327. /* confdefs.h. */
  7328. _ACEOF
  7329. cat confdefs.h >>conftest.$ac_ext
  7330. cat >>conftest.$ac_ext <<_ACEOF
  7331. /* end confdefs.h. */
  7332. /* Define strtoll to an innocuous variant, in case <limits.h> declares strtoll.
  7333. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7334. #define strtoll innocuous_strtoll
  7335. /* System header to define __stub macros and hopefully few prototypes,
  7336. which can conflict with char strtoll (); below.
  7337. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7338. <limits.h> exists even on freestanding compilers. */
  7339. #ifdef __STDC__
  7340. # include <limits.h>
  7341. #else
  7342. # include <assert.h>
  7343. #endif
  7344. #undef strtoll
  7345. /* Override any GCC internal prototype to avoid an error.
  7346. Use char because int might match the return type of a GCC
  7347. builtin and then its argument prototype would still apply. */
  7348. #ifdef __cplusplus
  7349. extern "C"
  7350. #endif
  7351. char strtoll ();
  7352. /* The GNU C library defines this for functions which it implements
  7353. to always fail with ENOSYS. Some functions are actually named
  7354. something starting with __ and the normal name is an alias. */
  7355. #if defined __stub_strtoll || defined __stub___strtoll
  7356. choke me
  7357. #endif
  7358. int
  7359. main ()
  7360. {
  7361. return strtoll ();
  7362. ;
  7363. return 0;
  7364. }
  7365. _ACEOF
  7366. rm -f conftest.$ac_objext conftest$ac_exeext
  7367. if { (ac_try="$ac_link"
  7368. case "(($ac_try" in
  7369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7370. *) ac_try_echo=$ac_try;;
  7371. esac
  7372. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7373. (eval "$ac_link") 2>conftest.er1
  7374. ac_status=$?
  7375. grep -v '^ *+' conftest.er1 >conftest.err
  7376. rm -f conftest.er1
  7377. cat conftest.err >&5
  7378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7379. (exit $ac_status); } && {
  7380. test -z "$ac_c_werror_flag" ||
  7381. test ! -s conftest.err
  7382. } && test -s conftest$ac_exeext &&
  7383. $as_test_x conftest$ac_exeext; then
  7384. ac_cv_func_strtoll=yes
  7385. else
  7386. echo "$as_me: failed program was:" >&5
  7387. sed 's/^/| /' conftest.$ac_ext >&5
  7388. ac_cv_func_strtoll=no
  7389. fi
  7390. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7391. conftest$ac_exeext conftest.$ac_ext
  7392. fi
  7393. { echo "$as_me:$LINENO: result: $ac_cv_func_strtoll" >&5
  7394. echo "${ECHO_T}$ac_cv_func_strtoll" >&6; }
  7395. if test $ac_cv_func_strtoll = yes; then
  7396. cat >>confdefs.h <<\_ACEOF
  7397. #define HAVE_STRTOLL 1
  7398. _ACEOF
  7399. fi
  7400. { echo "$as_me:$LINENO: checking for library containing dlsym" >&5
  7401. echo $ECHO_N "checking for library containing dlsym... $ECHO_C" >&6; }
  7402. if test "${ac_cv_search_dlsym+set}" = set; then
  7403. echo $ECHO_N "(cached) $ECHO_C" >&6
  7404. else
  7405. ac_func_search_save_LIBS=$LIBS
  7406. cat >conftest.$ac_ext <<_ACEOF
  7407. /* confdefs.h. */
  7408. _ACEOF
  7409. cat confdefs.h >>conftest.$ac_ext
  7410. cat >>conftest.$ac_ext <<_ACEOF
  7411. /* end confdefs.h. */
  7412. /* Override any GCC internal prototype to avoid an error.
  7413. Use char because int might match the return type of a GCC
  7414. builtin and then its argument prototype would still apply. */
  7415. #ifdef __cplusplus
  7416. extern "C"
  7417. #endif
  7418. char dlsym ();
  7419. int
  7420. main ()
  7421. {
  7422. return dlsym ();
  7423. ;
  7424. return 0;
  7425. }
  7426. _ACEOF
  7427. for ac_lib in '' dl; do
  7428. if test -z "$ac_lib"; then
  7429. ac_res="none required"
  7430. else
  7431. ac_res=-l$ac_lib
  7432. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7433. fi
  7434. rm -f conftest.$ac_objext conftest$ac_exeext
  7435. if { (ac_try="$ac_link"
  7436. case "(($ac_try" in
  7437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7438. *) ac_try_echo=$ac_try;;
  7439. esac
  7440. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7441. (eval "$ac_link") 2>conftest.er1
  7442. ac_status=$?
  7443. grep -v '^ *+' conftest.er1 >conftest.err
  7444. rm -f conftest.er1
  7445. cat conftest.err >&5
  7446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7447. (exit $ac_status); } && {
  7448. test -z "$ac_c_werror_flag" ||
  7449. test ! -s conftest.err
  7450. } && test -s conftest$ac_exeext &&
  7451. $as_test_x conftest$ac_exeext; then
  7452. ac_cv_search_dlsym=$ac_res
  7453. else
  7454. echo "$as_me: failed program was:" >&5
  7455. sed 's/^/| /' conftest.$ac_ext >&5
  7456. fi
  7457. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7458. conftest$ac_exeext
  7459. if test "${ac_cv_search_dlsym+set}" = set; then
  7460. break
  7461. fi
  7462. done
  7463. if test "${ac_cv_search_dlsym+set}" = set; then
  7464. :
  7465. else
  7466. ac_cv_search_dlsym=no
  7467. fi
  7468. rm conftest.$ac_ext
  7469. LIBS=$ac_func_search_save_LIBS
  7470. fi
  7471. { echo "$as_me:$LINENO: result: $ac_cv_search_dlsym" >&5
  7472. echo "${ECHO_T}$ac_cv_search_dlsym" >&6; }
  7473. ac_res=$ac_cv_search_dlsym
  7474. if test "$ac_res" != no; then
  7475. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7476. cat >>confdefs.h <<\_ACEOF
  7477. #define HAVE_DLSYM 1
  7478. _ACEOF
  7479. fi
  7480. if test "${ac_cv_header_dlfcn_h+set}" = set; then
  7481. { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  7482. echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
  7483. if test "${ac_cv_header_dlfcn_h+set}" = set; then
  7484. echo $ECHO_N "(cached) $ECHO_C" >&6
  7485. fi
  7486. { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  7487. echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
  7488. else
  7489. # Is the header compilable?
  7490. { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
  7491. echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
  7492. cat >conftest.$ac_ext <<_ACEOF
  7493. /* confdefs.h. */
  7494. _ACEOF
  7495. cat confdefs.h >>conftest.$ac_ext
  7496. cat >>conftest.$ac_ext <<_ACEOF
  7497. /* end confdefs.h. */
  7498. $ac_includes_default
  7499. #include <dlfcn.h>
  7500. _ACEOF
  7501. rm -f conftest.$ac_objext
  7502. if { (ac_try="$ac_compile"
  7503. case "(($ac_try" in
  7504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7505. *) ac_try_echo=$ac_try;;
  7506. esac
  7507. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7508. (eval "$ac_compile") 2>conftest.er1
  7509. ac_status=$?
  7510. grep -v '^ *+' conftest.er1 >conftest.err
  7511. rm -f conftest.er1
  7512. cat conftest.err >&5
  7513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7514. (exit $ac_status); } && {
  7515. test -z "$ac_c_werror_flag" ||
  7516. test ! -s conftest.err
  7517. } && test -s conftest.$ac_objext; then
  7518. ac_header_compiler=yes
  7519. else
  7520. echo "$as_me: failed program was:" >&5
  7521. sed 's/^/| /' conftest.$ac_ext >&5
  7522. ac_header_compiler=no
  7523. fi
  7524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7525. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7526. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7527. # Is the header present?
  7528. { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
  7529. echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
  7530. cat >conftest.$ac_ext <<_ACEOF
  7531. /* confdefs.h. */
  7532. _ACEOF
  7533. cat confdefs.h >>conftest.$ac_ext
  7534. cat >>conftest.$ac_ext <<_ACEOF
  7535. /* end confdefs.h. */
  7536. #include <dlfcn.h>
  7537. _ACEOF
  7538. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7539. case "(($ac_try" in
  7540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7541. *) ac_try_echo=$ac_try;;
  7542. esac
  7543. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7544. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7545. ac_status=$?
  7546. grep -v '^ *+' conftest.er1 >conftest.err
  7547. rm -f conftest.er1
  7548. cat conftest.err >&5
  7549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7550. (exit $ac_status); } >/dev/null && {
  7551. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7552. test ! -s conftest.err
  7553. }; then
  7554. ac_header_preproc=yes
  7555. else
  7556. echo "$as_me: failed program was:" >&5
  7557. sed 's/^/| /' conftest.$ac_ext >&5
  7558. ac_header_preproc=no
  7559. fi
  7560. rm -f conftest.err conftest.$ac_ext
  7561. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7562. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7563. # So? What about this header?
  7564. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7565. yes:no: )
  7566. { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7567. echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7568. { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
  7569. echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
  7570. ac_header_preproc=yes
  7571. ;;
  7572. no:yes:* )
  7573. { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
  7574. echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
  7575. { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
  7576. echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
  7577. { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
  7578. echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
  7579. { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
  7580. echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
  7581. { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
  7582. echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
  7583. { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
  7584. echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
  7585. ;;
  7586. esac
  7587. { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  7588. echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
  7589. if test "${ac_cv_header_dlfcn_h+set}" = set; then
  7590. echo $ECHO_N "(cached) $ECHO_C" >&6
  7591. else
  7592. ac_cv_header_dlfcn_h=$ac_header_preproc
  7593. fi
  7594. { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  7595. echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
  7596. fi
  7597. if test $ac_cv_header_dlfcn_h = yes; then
  7598. cat >>confdefs.h <<\_ACEOF
  7599. #define HAVE_DLFCN_H 1
  7600. _ACEOF
  7601. fi
  7602. AUDIOLIBS=""
  7603. case $uname in
  7604. CYGWIN* | MINGW*)
  7605. AUDIOLIBS="-lwinmm"
  7606. ;;
  7607. Darwin*)
  7608. AUDIOLIBS="-framework CoreAudio"
  7609. ;;
  7610. *)
  7611. if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
  7612. { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
  7613. echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
  7614. if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
  7615. echo $ECHO_N "(cached) $ECHO_C" >&6
  7616. fi
  7617. { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
  7618. echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
  7619. else
  7620. # Is the header compilable?
  7621. { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
  7622. echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
  7623. cat >conftest.$ac_ext <<_ACEOF
  7624. /* confdefs.h. */
  7625. _ACEOF
  7626. cat confdefs.h >>conftest.$ac_ext
  7627. cat >>conftest.$ac_ext <<_ACEOF
  7628. /* end confdefs.h. */
  7629. $ac_includes_default
  7630. #include <alsa/asoundlib.h>
  7631. _ACEOF
  7632. rm -f conftest.$ac_objext
  7633. if { (ac_try="$ac_compile"
  7634. case "(($ac_try" in
  7635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7636. *) ac_try_echo=$ac_try;;
  7637. esac
  7638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7639. (eval "$ac_compile") 2>conftest.er1
  7640. ac_status=$?
  7641. grep -v '^ *+' conftest.er1 >conftest.err
  7642. rm -f conftest.er1
  7643. cat conftest.err >&5
  7644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7645. (exit $ac_status); } && {
  7646. test -z "$ac_c_werror_flag" ||
  7647. test ! -s conftest.err
  7648. } && test -s conftest.$ac_objext; then
  7649. ac_header_compiler=yes
  7650. else
  7651. echo "$as_me: failed program was:" >&5
  7652. sed 's/^/| /' conftest.$ac_ext >&5
  7653. ac_header_compiler=no
  7654. fi
  7655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7656. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7657. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7658. # Is the header present?
  7659. { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
  7660. echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
  7661. cat >conftest.$ac_ext <<_ACEOF
  7662. /* confdefs.h. */
  7663. _ACEOF
  7664. cat confdefs.h >>conftest.$ac_ext
  7665. cat >>conftest.$ac_ext <<_ACEOF
  7666. /* end confdefs.h. */
  7667. #include <alsa/asoundlib.h>
  7668. _ACEOF
  7669. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7670. case "(($ac_try" in
  7671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7672. *) ac_try_echo=$ac_try;;
  7673. esac
  7674. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7675. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7676. ac_status=$?
  7677. grep -v '^ *+' conftest.er1 >conftest.err
  7678. rm -f conftest.er1
  7679. cat conftest.err >&5
  7680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7681. (exit $ac_status); } >/dev/null && {
  7682. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7683. test ! -s conftest.err
  7684. }; then
  7685. ac_header_preproc=yes
  7686. else
  7687. echo "$as_me: failed program was:" >&5
  7688. sed 's/^/| /' conftest.$ac_ext >&5
  7689. ac_header_preproc=no
  7690. fi
  7691. rm -f conftest.err conftest.$ac_ext
  7692. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7693. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7694. # So? What about this header?
  7695. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7696. yes:no: )
  7697. { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7698. echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7699. { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
  7700. echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
  7701. ac_header_preproc=yes
  7702. ;;
  7703. no:yes:* )
  7704. { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
  7705. echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
  7706. { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
  7707. echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
  7708. { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
  7709. echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
  7710. { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
  7711. echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  7712. { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
  7713. echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
  7714. { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
  7715. echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
  7716. ;;
  7717. esac
  7718. { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
  7719. echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
  7720. if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
  7721. echo $ECHO_N "(cached) $ECHO_C" >&6
  7722. else
  7723. ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
  7724. fi
  7725. { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
  7726. echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
  7727. fi
  7728. if test $ac_cv_header_alsa_asoundlib_h = yes; then
  7729. cat >>confdefs.h <<\_ACEOF
  7730. #define HAVE_ALSA_ASOUNDLIB_H 1
  7731. _ACEOF
  7732. AUDIOLIBS="-lasound"
  7733. fi
  7734. ;;
  7735. esac
  7736. SAVELIBS="$LIBS"
  7737. IMAGELIBS=""
  7738. STATICIMAGELIBS=""
  7739. # Handle the JPEG lib linking mode (use fltk local or system lib)
  7740. # If --enable-(resp. --disable-)localjpeg parameter is not set by user
  7741. # Then we check the JPEG lib usability, with result in sysjpeglib_ok variable
  7742. # Check whether --enable-localjpeg was given.
  7743. if test "${enable_localjpeg+set}" = set; then
  7744. enableval=$enable_localjpeg;
  7745. fi
  7746. # Check for System lib use if automatic mode or --disable-localjpeg is requested
  7747. sysjpeglib_ok=no
  7748. sysjpeginc_ok=no
  7749. if test x$enable_localjpeg != xyes; then
  7750. { echo "$as_me:$LINENO: checking for jpeg_CreateCompress in -ljpeg" >&5
  7751. echo $ECHO_N "checking for jpeg_CreateCompress in -ljpeg... $ECHO_C" >&6; }
  7752. if test "${ac_cv_lib_jpeg_jpeg_CreateCompress+set}" = set; then
  7753. echo $ECHO_N "(cached) $ECHO_C" >&6
  7754. else
  7755. ac_check_lib_save_LIBS=$LIBS
  7756. LIBS="-ljpeg $LIBS"
  7757. cat >conftest.$ac_ext <<_ACEOF
  7758. /* confdefs.h. */
  7759. _ACEOF
  7760. cat confdefs.h >>conftest.$ac_ext
  7761. cat >>conftest.$ac_ext <<_ACEOF
  7762. /* end confdefs.h. */
  7763. /* Override any GCC internal prototype to avoid an error.
  7764. Use char because int might match the return type of a GCC
  7765. builtin and then its argument prototype would still apply. */
  7766. #ifdef __cplusplus
  7767. extern "C"
  7768. #endif
  7769. char jpeg_CreateCompress ();
  7770. int
  7771. main ()
  7772. {
  7773. return jpeg_CreateCompress ();
  7774. ;
  7775. return 0;
  7776. }
  7777. _ACEOF
  7778. rm -f conftest.$ac_objext conftest$ac_exeext
  7779. if { (ac_try="$ac_link"
  7780. case "(($ac_try" in
  7781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7782. *) ac_try_echo=$ac_try;;
  7783. esac
  7784. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7785. (eval "$ac_link") 2>conftest.er1
  7786. ac_status=$?
  7787. grep -v '^ *+' conftest.er1 >conftest.err
  7788. rm -f conftest.er1
  7789. cat conftest.err >&5
  7790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7791. (exit $ac_status); } && {
  7792. test -z "$ac_c_werror_flag" ||
  7793. test ! -s conftest.err
  7794. } && test -s conftest$ac_exeext &&
  7795. $as_test_x conftest$ac_exeext; then
  7796. ac_cv_lib_jpeg_jpeg_CreateCompress=yes
  7797. else
  7798. echo "$as_me: failed program was:" >&5
  7799. sed 's/^/| /' conftest.$ac_ext >&5
  7800. ac_cv_lib_jpeg_jpeg_CreateCompress=no
  7801. fi
  7802. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7803. conftest$ac_exeext conftest.$ac_ext
  7804. LIBS=$ac_check_lib_save_LIBS
  7805. fi
  7806. { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_CreateCompress" >&5
  7807. echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_CreateCompress" >&6; }
  7808. if test $ac_cv_lib_jpeg_jpeg_CreateCompress = yes; then
  7809. if test "${ac_cv_header_jpeglib_h+set}" = set; then
  7810. { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
  7811. echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
  7812. if test "${ac_cv_header_jpeglib_h+set}" = set; then
  7813. echo $ECHO_N "(cached) $ECHO_C" >&6
  7814. fi
  7815. { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
  7816. echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
  7817. else
  7818. # Is the header compilable?
  7819. { echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
  7820. echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6; }
  7821. cat >conftest.$ac_ext <<_ACEOF
  7822. /* confdefs.h. */
  7823. _ACEOF
  7824. cat confdefs.h >>conftest.$ac_ext
  7825. cat >>conftest.$ac_ext <<_ACEOF
  7826. /* end confdefs.h. */
  7827. $ac_includes_default
  7828. #include <jpeglib.h>
  7829. _ACEOF
  7830. rm -f conftest.$ac_objext
  7831. if { (ac_try="$ac_compile"
  7832. case "(($ac_try" in
  7833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7834. *) ac_try_echo=$ac_try;;
  7835. esac
  7836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7837. (eval "$ac_compile") 2>conftest.er1
  7838. ac_status=$?
  7839. grep -v '^ *+' conftest.er1 >conftest.err
  7840. rm -f conftest.er1
  7841. cat conftest.err >&5
  7842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7843. (exit $ac_status); } && {
  7844. test -z "$ac_c_werror_flag" ||
  7845. test ! -s conftest.err
  7846. } && test -s conftest.$ac_objext; then
  7847. ac_header_compiler=yes
  7848. else
  7849. echo "$as_me: failed program was:" >&5
  7850. sed 's/^/| /' conftest.$ac_ext >&5
  7851. ac_header_compiler=no
  7852. fi
  7853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7854. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7855. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7856. # Is the header present?
  7857. { echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
  7858. echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6; }
  7859. cat >conftest.$ac_ext <<_ACEOF
  7860. /* confdefs.h. */
  7861. _ACEOF
  7862. cat confdefs.h >>conftest.$ac_ext
  7863. cat >>conftest.$ac_ext <<_ACEOF
  7864. /* end confdefs.h. */
  7865. #include <jpeglib.h>
  7866. _ACEOF
  7867. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7868. case "(($ac_try" in
  7869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7870. *) ac_try_echo=$ac_try;;
  7871. esac
  7872. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7873. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7874. ac_status=$?
  7875. grep -v '^ *+' conftest.er1 >conftest.err
  7876. rm -f conftest.er1
  7877. cat conftest.err >&5
  7878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7879. (exit $ac_status); } >/dev/null && {
  7880. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7881. test ! -s conftest.err
  7882. }; then
  7883. ac_header_preproc=yes
  7884. else
  7885. echo "$as_me: failed program was:" >&5
  7886. sed 's/^/| /' conftest.$ac_ext >&5
  7887. ac_header_preproc=no
  7888. fi
  7889. rm -f conftest.err conftest.$ac_ext
  7890. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7891. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7892. # So? What about this header?
  7893. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7894. yes:no: )
  7895. { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7896. echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7897. { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
  7898. echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
  7899. ac_header_preproc=yes
  7900. ;;
  7901. no:yes:* )
  7902. { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
  7903. echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
  7904. { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
  7905. echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
  7906. { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
  7907. echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
  7908. { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
  7909. echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  7910. { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
  7911. echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
  7912. { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
  7913. echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
  7914. ;;
  7915. esac
  7916. { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
  7917. echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
  7918. if test "${ac_cv_header_jpeglib_h+set}" = set; then
  7919. echo $ECHO_N "(cached) $ECHO_C" >&6
  7920. else
  7921. ac_cv_header_jpeglib_h=$ac_header_preproc
  7922. fi
  7923. { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
  7924. echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
  7925. fi
  7926. if test $ac_cv_header_jpeglib_h = yes; then
  7927. sysjpeginc_ok=yes
  7928. fi
  7929. if test x$sysjpeginc_ok = xyes; then
  7930. sysjpeglib_ok=yes
  7931. fi
  7932. fi
  7933. fi
  7934. # Now set the jpeg lib and include flags according to the requested mode and availability
  7935. if test x$enable_localjpeg = xyes -o x$sysjpeglib_ok = xno; then
  7936. JPEGINC="-I../jpeg"
  7937. JPEG="jpeg"
  7938. IMAGELIBS="-lfltk_jpeg $IMAGELIBS"
  7939. STATICIMAGELIBS="\$libdir/libfltk_jpeg.a $STATICIMAGELIBS"
  7940. cat >>confdefs.h <<\_ACEOF
  7941. #define HAVE_LIBJPEG 1
  7942. _ACEOF
  7943. #ac_cv_lib_jpeg_jpeg_CreateCompress=no # from ima: should not be necessary
  7944. # Finally, warn user if system lib was requested but not found
  7945. if test x$enable_localjpeg = xno; then
  7946. { echo "$as_me:$LINENO: WARNING: Cannot find system jpeg lib or header: choosing the local lib mode." >&5
  7947. echo "$as_me: WARNING: Cannot find system jpeg lib or header: choosing the local lib mode." >&2;}
  7948. fi
  7949. else
  7950. JPEGINC=""
  7951. JPEG=""
  7952. IMAGELIBS="-ljpeg $IMAGELIBS"
  7953. STATICIMAGELIBS="-ljpeg $STATICIMAGELIBS"
  7954. cat >>confdefs.h <<\_ACEOF
  7955. #define HAVE_LIBJPEG 1
  7956. _ACEOF
  7957. fi
  7958. # Handle the ZLIB lib linking mode (use fltk local or system lib)
  7959. # If --enable-(resp. --disable-)localzlib parameter is not set by user
  7960. # Then we check the ZLIB lib usability, with result in syszlib_ok variable
  7961. # Check whether --enable-localzlib was given.
  7962. if test "${enable_localzlib+set}" = set; then
  7963. enableval=$enable_localzlib;
  7964. fi
  7965. # Check for System lib use if automatic mode or --disable-localzlib is requested
  7966. syszlib_ok=no
  7967. syszinc_ok=no
  7968. if test x$enable_localzlib != xyes; then
  7969. { echo "$as_me:$LINENO: checking for gzgets in -lz" >&5
  7970. echo $ECHO_N "checking for gzgets in -lz... $ECHO_C" >&6; }
  7971. if test "${ac_cv_lib_z_gzgets+set}" = set; then
  7972. echo $ECHO_N "(cached) $ECHO_C" >&6
  7973. else
  7974. ac_check_lib_save_LIBS=$LIBS
  7975. LIBS="-lz $LIBS"
  7976. cat >conftest.$ac_ext <<_ACEOF
  7977. /* confdefs.h. */
  7978. _ACEOF
  7979. cat confdefs.h >>conftest.$ac_ext
  7980. cat >>conftest.$ac_ext <<_ACEOF
  7981. /* end confdefs.h. */
  7982. /* Override any GCC internal prototype to avoid an error.
  7983. Use char because int might match the return type of a GCC
  7984. builtin and then its argument prototype would still apply. */
  7985. #ifdef __cplusplus
  7986. extern "C"
  7987. #endif
  7988. char gzgets ();
  7989. int
  7990. main ()
  7991. {
  7992. return gzgets ();
  7993. ;
  7994. return 0;
  7995. }
  7996. _ACEOF
  7997. rm -f conftest.$ac_objext conftest$ac_exeext
  7998. if { (ac_try="$ac_link"
  7999. case "(($ac_try" in
  8000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8001. *) ac_try_echo=$ac_try;;
  8002. esac
  8003. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8004. (eval "$ac_link") 2>conftest.er1
  8005. ac_status=$?
  8006. grep -v '^ *+' conftest.er1 >conftest.err
  8007. rm -f conftest.er1
  8008. cat conftest.err >&5
  8009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8010. (exit $ac_status); } && {
  8011. test -z "$ac_c_werror_flag" ||
  8012. test ! -s conftest.err
  8013. } && test -s conftest$ac_exeext &&
  8014. $as_test_x conftest$ac_exeext; then
  8015. ac_cv_lib_z_gzgets=yes
  8016. else
  8017. echo "$as_me: failed program was:" >&5
  8018. sed 's/^/| /' conftest.$ac_ext >&5
  8019. ac_cv_lib_z_gzgets=no
  8020. fi
  8021. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8022. conftest$ac_exeext conftest.$ac_ext
  8023. LIBS=$ac_check_lib_save_LIBS
  8024. fi
  8025. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzgets" >&5
  8026. echo "${ECHO_T}$ac_cv_lib_z_gzgets" >&6; }
  8027. if test $ac_cv_lib_z_gzgets = yes; then
  8028. if test "${ac_cv_header_zlib_h+set}" = set; then
  8029. { echo "$as_me:$LINENO: checking for zlib.h" >&5
  8030. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
  8031. if test "${ac_cv_header_zlib_h+set}" = set; then
  8032. echo $ECHO_N "(cached) $ECHO_C" >&6
  8033. fi
  8034. { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  8035. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
  8036. else
  8037. # Is the header compilable?
  8038. { echo "$as_me:$LINENO: checking zlib.h usability" >&5
  8039. echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
  8040. cat >conftest.$ac_ext <<_ACEOF
  8041. /* confdefs.h. */
  8042. _ACEOF
  8043. cat confdefs.h >>conftest.$ac_ext
  8044. cat >>conftest.$ac_ext <<_ACEOF
  8045. /* end confdefs.h. */
  8046. $ac_includes_default
  8047. #include <zlib.h>
  8048. _ACEOF
  8049. rm -f conftest.$ac_objext
  8050. if { (ac_try="$ac_compile"
  8051. case "(($ac_try" in
  8052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8053. *) ac_try_echo=$ac_try;;
  8054. esac
  8055. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8056. (eval "$ac_compile") 2>conftest.er1
  8057. ac_status=$?
  8058. grep -v '^ *+' conftest.er1 >conftest.err
  8059. rm -f conftest.er1
  8060. cat conftest.err >&5
  8061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8062. (exit $ac_status); } && {
  8063. test -z "$ac_c_werror_flag" ||
  8064. test ! -s conftest.err
  8065. } && test -s conftest.$ac_objext; then
  8066. ac_header_compiler=yes
  8067. else
  8068. echo "$as_me: failed program was:" >&5
  8069. sed 's/^/| /' conftest.$ac_ext >&5
  8070. ac_header_compiler=no
  8071. fi
  8072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8073. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8074. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8075. # Is the header present?
  8076. { echo "$as_me:$LINENO: checking zlib.h presence" >&5
  8077. echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
  8078. cat >conftest.$ac_ext <<_ACEOF
  8079. /* confdefs.h. */
  8080. _ACEOF
  8081. cat confdefs.h >>conftest.$ac_ext
  8082. cat >>conftest.$ac_ext <<_ACEOF
  8083. /* end confdefs.h. */
  8084. #include <zlib.h>
  8085. _ACEOF
  8086. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8087. case "(($ac_try" in
  8088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8089. *) ac_try_echo=$ac_try;;
  8090. esac
  8091. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8092. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8093. ac_status=$?
  8094. grep -v '^ *+' conftest.er1 >conftest.err
  8095. rm -f conftest.er1
  8096. cat conftest.err >&5
  8097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8098. (exit $ac_status); } >/dev/null && {
  8099. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8100. test ! -s conftest.err
  8101. }; then
  8102. ac_header_preproc=yes
  8103. else
  8104. echo "$as_me: failed program was:" >&5
  8105. sed 's/^/| /' conftest.$ac_ext >&5
  8106. ac_header_preproc=no
  8107. fi
  8108. rm -f conftest.err conftest.$ac_ext
  8109. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8110. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8111. # So? What about this header?
  8112. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8113. yes:no: )
  8114. { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8115. echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8116. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
  8117. echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
  8118. ac_header_preproc=yes
  8119. ;;
  8120. no:yes:* )
  8121. { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
  8122. echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
  8123. { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
  8124. echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
  8125. { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
  8126. echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
  8127. { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
  8128. echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  8129. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
  8130. echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
  8131. { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
  8132. echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
  8133. ;;
  8134. esac
  8135. { echo "$as_me:$LINENO: checking for zlib.h" >&5
  8136. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
  8137. if test "${ac_cv_header_zlib_h+set}" = set; then
  8138. echo $ECHO_N "(cached) $ECHO_C" >&6
  8139. else
  8140. ac_cv_header_zlib_h=$ac_header_preproc
  8141. fi
  8142. { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  8143. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
  8144. fi
  8145. if test $ac_cv_header_zlib_h = yes; then
  8146. syszinc_ok=yes
  8147. fi
  8148. if test x$syszinc_ok = xyes; then
  8149. syszlib_ok=yes
  8150. fi
  8151. fi
  8152. fi
  8153. # Now set the Z lib and include flags according to the requested mode and availability
  8154. if test x$enable_localzlib = xyes -o x$syszlib_ok = xno ; then
  8155. ZLIBINC="-I../zlib"
  8156. ZLIB="zlib"
  8157. LIBS="-lfltk_z $LIBS"
  8158. IMAGELIBS="-lfltk_z $IMAGELIBS"
  8159. STATICIMAGELIBS="\$libdir/libfltk_z.a $STATICIMAGELIBS"
  8160. cat >>confdefs.h <<\_ACEOF
  8161. #define HAVE_LIBZ 1
  8162. _ACEOF
  8163. ac_cv_lib_z_gzgets=no # fc: is still necessary ?
  8164. # Finally, warn user if system lib was requested but not found
  8165. if test x$enable_localzlib = xno; then
  8166. { echo "$as_me:$LINENO: WARNING: Cannot find system z lib or header: choosing the local lib mode." >&5
  8167. echo "$as_me: WARNING: Cannot find system z lib or header: choosing the local lib mode." >&2;}
  8168. fi
  8169. else
  8170. ZLIBINC=""
  8171. ZLIB=""
  8172. LIBS="-lz $LIBS"
  8173. IMAGELIBS="-lz $IMAGELIBS"
  8174. STATICIMAGELIBS="-lz $STATICIMAGELIBS"
  8175. cat >>confdefs.h <<\_ACEOF
  8176. #define HAVE_LIBZ 1
  8177. _ACEOF
  8178. fi
  8179. # Handle the PNG lib linking mode (use fltk local or system lib)
  8180. # If --enable-(resp. --disable-)localpng parameter is not set by user
  8181. # Then we check the png lib usability with result in syspng_lib variable
  8182. # Check whether --enable-localpng was given.
  8183. if test "${enable_localpng+set}" = set; then
  8184. enableval=$enable_localpng;
  8185. fi
  8186. # Now check if system lib is usable, we check Lib AND include availability with inc variant,
  8187. # but only, if the builtin lib is not requested
  8188. syspnglib_ok=no
  8189. syspnginc_ok=no
  8190. if test x$enable_localpng != xyes; then
  8191. { echo "$as_me:$LINENO: checking for png_read_info in -lpng" >&5
  8192. echo $ECHO_N "checking for png_read_info in -lpng... $ECHO_C" >&6; }
  8193. if test "${ac_cv_lib_png_png_read_info+set}" = set; then
  8194. echo $ECHO_N "(cached) $ECHO_C" >&6
  8195. else
  8196. ac_check_lib_save_LIBS=$LIBS
  8197. LIBS="-lpng $LIBS"
  8198. cat >conftest.$ac_ext <<_ACEOF
  8199. /* confdefs.h. */
  8200. _ACEOF
  8201. cat confdefs.h >>conftest.$ac_ext
  8202. cat >>conftest.$ac_ext <<_ACEOF
  8203. /* end confdefs.h. */
  8204. /* Override any GCC internal prototype to avoid an error.
  8205. Use char because int might match the return type of a GCC
  8206. builtin and then its argument prototype would still apply. */
  8207. #ifdef __cplusplus
  8208. extern "C"
  8209. #endif
  8210. char png_read_info ();
  8211. int
  8212. main ()
  8213. {
  8214. return png_read_info ();
  8215. ;
  8216. return 0;
  8217. }
  8218. _ACEOF
  8219. rm -f conftest.$ac_objext conftest$ac_exeext
  8220. if { (ac_try="$ac_link"
  8221. case "(($ac_try" in
  8222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8223. *) ac_try_echo=$ac_try;;
  8224. esac
  8225. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8226. (eval "$ac_link") 2>conftest.er1
  8227. ac_status=$?
  8228. grep -v '^ *+' conftest.er1 >conftest.err
  8229. rm -f conftest.er1
  8230. cat conftest.err >&5
  8231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8232. (exit $ac_status); } && {
  8233. test -z "$ac_c_werror_flag" ||
  8234. test ! -s conftest.err
  8235. } && test -s conftest$ac_exeext &&
  8236. $as_test_x conftest$ac_exeext; then
  8237. ac_cv_lib_png_png_read_info=yes
  8238. else
  8239. echo "$as_me: failed program was:" >&5
  8240. sed 's/^/| /' conftest.$ac_ext >&5
  8241. ac_cv_lib_png_png_read_info=no
  8242. fi
  8243. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8244. conftest$ac_exeext conftest.$ac_ext
  8245. LIBS=$ac_check_lib_save_LIBS
  8246. fi
  8247. { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_read_info" >&5
  8248. echo "${ECHO_T}$ac_cv_lib_png_png_read_info" >&6; }
  8249. if test $ac_cv_lib_png_png_read_info = yes; then
  8250. if test "${ac_cv_header_png_h+set}" = set; then
  8251. { echo "$as_me:$LINENO: checking for png.h" >&5
  8252. echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
  8253. if test "${ac_cv_header_png_h+set}" = set; then
  8254. echo $ECHO_N "(cached) $ECHO_C" >&6
  8255. fi
  8256. { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
  8257. echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
  8258. else
  8259. # Is the header compilable?
  8260. { echo "$as_me:$LINENO: checking png.h usability" >&5
  8261. echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
  8262. cat >conftest.$ac_ext <<_ACEOF
  8263. /* confdefs.h. */
  8264. _ACEOF
  8265. cat confdefs.h >>conftest.$ac_ext
  8266. cat >>conftest.$ac_ext <<_ACEOF
  8267. /* end confdefs.h. */
  8268. $ac_includes_default
  8269. #include <png.h>
  8270. _ACEOF
  8271. rm -f conftest.$ac_objext
  8272. if { (ac_try="$ac_compile"
  8273. case "(($ac_try" in
  8274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8275. *) ac_try_echo=$ac_try;;
  8276. esac
  8277. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8278. (eval "$ac_compile") 2>conftest.er1
  8279. ac_status=$?
  8280. grep -v '^ *+' conftest.er1 >conftest.err
  8281. rm -f conftest.er1
  8282. cat conftest.err >&5
  8283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8284. (exit $ac_status); } && {
  8285. test -z "$ac_c_werror_flag" ||
  8286. test ! -s conftest.err
  8287. } && test -s conftest.$ac_objext; then
  8288. ac_header_compiler=yes
  8289. else
  8290. echo "$as_me: failed program was:" >&5
  8291. sed 's/^/| /' conftest.$ac_ext >&5
  8292. ac_header_compiler=no
  8293. fi
  8294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8295. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8296. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8297. # Is the header present?
  8298. { echo "$as_me:$LINENO: checking png.h presence" >&5
  8299. echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
  8300. cat >conftest.$ac_ext <<_ACEOF
  8301. /* confdefs.h. */
  8302. _ACEOF
  8303. cat confdefs.h >>conftest.$ac_ext
  8304. cat >>conftest.$ac_ext <<_ACEOF
  8305. /* end confdefs.h. */
  8306. #include <png.h>
  8307. _ACEOF
  8308. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8309. case "(($ac_try" in
  8310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8311. *) ac_try_echo=$ac_try;;
  8312. esac
  8313. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8314. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8315. ac_status=$?
  8316. grep -v '^ *+' conftest.er1 >conftest.err
  8317. rm -f conftest.er1
  8318. cat conftest.err >&5
  8319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8320. (exit $ac_status); } >/dev/null && {
  8321. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8322. test ! -s conftest.err
  8323. }; then
  8324. ac_header_preproc=yes
  8325. else
  8326. echo "$as_me: failed program was:" >&5
  8327. sed 's/^/| /' conftest.$ac_ext >&5
  8328. ac_header_preproc=no
  8329. fi
  8330. rm -f conftest.err conftest.$ac_ext
  8331. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8332. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8333. # So? What about this header?
  8334. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8335. yes:no: )
  8336. { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8337. echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8338. { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
  8339. echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
  8340. ac_header_preproc=yes
  8341. ;;
  8342. no:yes:* )
  8343. { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
  8344. echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
  8345. { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
  8346. echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
  8347. { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
  8348. echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
  8349. { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
  8350. echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
  8351. { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
  8352. echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
  8353. { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
  8354. echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
  8355. ;;
  8356. esac
  8357. { echo "$as_me:$LINENO: checking for png.h" >&5
  8358. echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
  8359. if test "${ac_cv_header_png_h+set}" = set; then
  8360. echo $ECHO_N "(cached) $ECHO_C" >&6
  8361. else
  8362. ac_cv_header_png_h=$ac_header_preproc
  8363. fi
  8364. { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
  8365. echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
  8366. fi
  8367. if test $ac_cv_header_png_h = yes; then
  8368. cat >>confdefs.h <<\_ACEOF
  8369. #define HAVE_PNG_H 1
  8370. _ACEOF
  8371. syspnginc_ok=yes
  8372. fi
  8373. if test "${ac_cv_header_libpng_png_h+set}" = set; then
  8374. { echo "$as_me:$LINENO: checking for libpng/png.h" >&5
  8375. echo $ECHO_N "checking for libpng/png.h... $ECHO_C" >&6; }
  8376. if test "${ac_cv_header_libpng_png_h+set}" = set; then
  8377. echo $ECHO_N "(cached) $ECHO_C" >&6
  8378. fi
  8379. { echo "$as_me:$LINENO: result: $ac_cv_header_libpng_png_h" >&5
  8380. echo "${ECHO_T}$ac_cv_header_libpng_png_h" >&6; }
  8381. else
  8382. # Is the header compilable?
  8383. { echo "$as_me:$LINENO: checking libpng/png.h usability" >&5
  8384. echo $ECHO_N "checking libpng/png.h usability... $ECHO_C" >&6; }
  8385. cat >conftest.$ac_ext <<_ACEOF
  8386. /* confdefs.h. */
  8387. _ACEOF
  8388. cat confdefs.h >>conftest.$ac_ext
  8389. cat >>conftest.$ac_ext <<_ACEOF
  8390. /* end confdefs.h. */
  8391. $ac_includes_default
  8392. #include <libpng/png.h>
  8393. _ACEOF
  8394. rm -f conftest.$ac_objext
  8395. if { (ac_try="$ac_compile"
  8396. case "(($ac_try" in
  8397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8398. *) ac_try_echo=$ac_try;;
  8399. esac
  8400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8401. (eval "$ac_compile") 2>conftest.er1
  8402. ac_status=$?
  8403. grep -v '^ *+' conftest.er1 >conftest.err
  8404. rm -f conftest.er1
  8405. cat conftest.err >&5
  8406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8407. (exit $ac_status); } && {
  8408. test -z "$ac_c_werror_flag" ||
  8409. test ! -s conftest.err
  8410. } && test -s conftest.$ac_objext; then
  8411. ac_header_compiler=yes
  8412. else
  8413. echo "$as_me: failed program was:" >&5
  8414. sed 's/^/| /' conftest.$ac_ext >&5
  8415. ac_header_compiler=no
  8416. fi
  8417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8418. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8419. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8420. # Is the header present?
  8421. { echo "$as_me:$LINENO: checking libpng/png.h presence" >&5
  8422. echo $ECHO_N "checking libpng/png.h presence... $ECHO_C" >&6; }
  8423. cat >conftest.$ac_ext <<_ACEOF
  8424. /* confdefs.h. */
  8425. _ACEOF
  8426. cat confdefs.h >>conftest.$ac_ext
  8427. cat >>conftest.$ac_ext <<_ACEOF
  8428. /* end confdefs.h. */
  8429. #include <libpng/png.h>
  8430. _ACEOF
  8431. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8432. case "(($ac_try" in
  8433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8434. *) ac_try_echo=$ac_try;;
  8435. esac
  8436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8437. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8438. ac_status=$?
  8439. grep -v '^ *+' conftest.er1 >conftest.err
  8440. rm -f conftest.er1
  8441. cat conftest.err >&5
  8442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8443. (exit $ac_status); } >/dev/null && {
  8444. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8445. test ! -s conftest.err
  8446. }; then
  8447. ac_header_preproc=yes
  8448. else
  8449. echo "$as_me: failed program was:" >&5
  8450. sed 's/^/| /' conftest.$ac_ext >&5
  8451. ac_header_preproc=no
  8452. fi
  8453. rm -f conftest.err conftest.$ac_ext
  8454. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8455. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8456. # So? What about this header?
  8457. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8458. yes:no: )
  8459. { echo "$as_me:$LINENO: WARNING: libpng/png.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8460. echo "$as_me: WARNING: libpng/png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8461. { echo "$as_me:$LINENO: WARNING: libpng/png.h: proceeding with the compiler's result" >&5
  8462. echo "$as_me: WARNING: libpng/png.h: proceeding with the compiler's result" >&2;}
  8463. ac_header_preproc=yes
  8464. ;;
  8465. no:yes:* )
  8466. { echo "$as_me:$LINENO: WARNING: libpng/png.h: present but cannot be compiled" >&5
  8467. echo "$as_me: WARNING: libpng/png.h: present but cannot be compiled" >&2;}
  8468. { echo "$as_me:$LINENO: WARNING: libpng/png.h: check for missing prerequisite headers?" >&5
  8469. echo "$as_me: WARNING: libpng/png.h: check for missing prerequisite headers?" >&2;}
  8470. { echo "$as_me:$LINENO: WARNING: libpng/png.h: see the Autoconf documentation" >&5
  8471. echo "$as_me: WARNING: libpng/png.h: see the Autoconf documentation" >&2;}
  8472. { echo "$as_me:$LINENO: WARNING: libpng/png.h: section \"Present But Cannot Be Compiled\"" >&5
  8473. echo "$as_me: WARNING: libpng/png.h: section \"Present But Cannot Be Compiled\"" >&2;}
  8474. { echo "$as_me:$LINENO: WARNING: libpng/png.h: proceeding with the preprocessor's result" >&5
  8475. echo "$as_me: WARNING: libpng/png.h: proceeding with the preprocessor's result" >&2;}
  8476. { echo "$as_me:$LINENO: WARNING: libpng/png.h: in the future, the compiler will take precedence" >&5
  8477. echo "$as_me: WARNING: libpng/png.h: in the future, the compiler will take precedence" >&2;}
  8478. ;;
  8479. esac
  8480. { echo "$as_me:$LINENO: checking for libpng/png.h" >&5
  8481. echo $ECHO_N "checking for libpng/png.h... $ECHO_C" >&6; }
  8482. if test "${ac_cv_header_libpng_png_h+set}" = set; then
  8483. echo $ECHO_N "(cached) $ECHO_C" >&6
  8484. else
  8485. ac_cv_header_libpng_png_h=$ac_header_preproc
  8486. fi
  8487. { echo "$as_me:$LINENO: result: $ac_cv_header_libpng_png_h" >&5
  8488. echo "${ECHO_T}$ac_cv_header_libpng_png_h" >&6; }
  8489. fi
  8490. if test $ac_cv_header_libpng_png_h = yes; then
  8491. cat >>confdefs.h <<\_ACEOF
  8492. #define HAVE_LIBPNG_PNG_H 1
  8493. _ACEOF
  8494. syspnginc_ok=yes
  8495. fi
  8496. if test x$syspnginc_ok = xyes; then
  8497. syspnglib_ok=yes
  8498. fi
  8499. fi
  8500. fi
  8501. # The following is executed if the lib was not found usable or if local lib is required explicitly
  8502. if test x$enable_localpng = xyes -o x$syspnglib_ok = xno ; then
  8503. PNGINC="-I../png"
  8504. PNG="png"
  8505. IMAGELIBS="-lfltk_png $IMAGELIBS"
  8506. STATICIMAGELIBS="\$libdir/libfltk_png.a $STATICIMAGELIBS"
  8507. cat >>confdefs.h <<\_ACEOF
  8508. #define HAVE_LIBPNG 1
  8509. _ACEOF
  8510. cat >>confdefs.h <<\_ACEOF
  8511. #define HAVE_PNG_H 1
  8512. _ACEOF
  8513. cat >>confdefs.h <<\_ACEOF
  8514. #define HAVE_PNG_GET_VALID 1
  8515. _ACEOF
  8516. cat >>confdefs.h <<\_ACEOF
  8517. #define HAVE_PNG_SET_TRNS_TO_ALPHA 1
  8518. _ACEOF
  8519. # Finally, warn user if system lib was requested but not found
  8520. if test x$enable_localpng = xno; then
  8521. { echo "$as_me:$LINENO: WARNING: Cannot find system png lib or header: choosing the local lib mode." >&5
  8522. echo "$as_me: WARNING: Cannot find system png lib or header: choosing the local lib mode." >&2;}
  8523. fi
  8524. else
  8525. PNGINC=""
  8526. PNG=""
  8527. IMAGELIBS="-lpng $IMAGELIBS"
  8528. STATICIMAGELIBS="-lpng $STATICIMAGELIBS"
  8529. cat >>confdefs.h <<\_ACEOF
  8530. #define HAVE_LIBPNG 1
  8531. _ACEOF
  8532. { echo "$as_me:$LINENO: checking for png_get_valid in -lpng" >&5
  8533. echo $ECHO_N "checking for png_get_valid in -lpng... $ECHO_C" >&6; }
  8534. if test "${ac_cv_lib_png_png_get_valid+set}" = set; then
  8535. echo $ECHO_N "(cached) $ECHO_C" >&6
  8536. else
  8537. ac_check_lib_save_LIBS=$LIBS
  8538. LIBS="-lpng $LIBS"
  8539. cat >conftest.$ac_ext <<_ACEOF
  8540. /* confdefs.h. */
  8541. _ACEOF
  8542. cat confdefs.h >>conftest.$ac_ext
  8543. cat >>conftest.$ac_ext <<_ACEOF
  8544. /* end confdefs.h. */
  8545. /* Override any GCC internal prototype to avoid an error.
  8546. Use char because int might match the return type of a GCC
  8547. builtin and then its argument prototype would still apply. */
  8548. #ifdef __cplusplus
  8549. extern "C"
  8550. #endif
  8551. char png_get_valid ();
  8552. int
  8553. main ()
  8554. {
  8555. return png_get_valid ();
  8556. ;
  8557. return 0;
  8558. }
  8559. _ACEOF
  8560. rm -f conftest.$ac_objext conftest$ac_exeext
  8561. if { (ac_try="$ac_link"
  8562. case "(($ac_try" in
  8563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8564. *) ac_try_echo=$ac_try;;
  8565. esac
  8566. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8567. (eval "$ac_link") 2>conftest.er1
  8568. ac_status=$?
  8569. grep -v '^ *+' conftest.er1 >conftest.err
  8570. rm -f conftest.er1
  8571. cat conftest.err >&5
  8572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8573. (exit $ac_status); } && {
  8574. test -z "$ac_c_werror_flag" ||
  8575. test ! -s conftest.err
  8576. } && test -s conftest$ac_exeext &&
  8577. $as_test_x conftest$ac_exeext; then
  8578. ac_cv_lib_png_png_get_valid=yes
  8579. else
  8580. echo "$as_me: failed program was:" >&5
  8581. sed 's/^/| /' conftest.$ac_ext >&5
  8582. ac_cv_lib_png_png_get_valid=no
  8583. fi
  8584. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8585. conftest$ac_exeext conftest.$ac_ext
  8586. LIBS=$ac_check_lib_save_LIBS
  8587. fi
  8588. { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_valid" >&5
  8589. echo "${ECHO_T}$ac_cv_lib_png_png_get_valid" >&6; }
  8590. if test $ac_cv_lib_png_png_get_valid = yes; then
  8591. cat >>confdefs.h <<\_ACEOF
  8592. #define HAVE_PNG_GET_VALID 1
  8593. _ACEOF
  8594. fi
  8595. { echo "$as_me:$LINENO: checking for png_set_tRNS_to_alpha in -lpng" >&5
  8596. echo $ECHO_N "checking for png_set_tRNS_to_alpha in -lpng... $ECHO_C" >&6; }
  8597. if test "${ac_cv_lib_png_png_set_tRNS_to_alpha+set}" = set; then
  8598. echo $ECHO_N "(cached) $ECHO_C" >&6
  8599. else
  8600. ac_check_lib_save_LIBS=$LIBS
  8601. LIBS="-lpng $LIBS"
  8602. cat >conftest.$ac_ext <<_ACEOF
  8603. /* confdefs.h. */
  8604. _ACEOF
  8605. cat confdefs.h >>conftest.$ac_ext
  8606. cat >>conftest.$ac_ext <<_ACEOF
  8607. /* end confdefs.h. */
  8608. /* Override any GCC internal prototype to avoid an error.
  8609. Use char because int might match the return type of a GCC
  8610. builtin and then its argument prototype would still apply. */
  8611. #ifdef __cplusplus
  8612. extern "C"
  8613. #endif
  8614. char png_set_tRNS_to_alpha ();
  8615. int
  8616. main ()
  8617. {
  8618. return png_set_tRNS_to_alpha ();
  8619. ;
  8620. return 0;
  8621. }
  8622. _ACEOF
  8623. rm -f conftest.$ac_objext conftest$ac_exeext
  8624. if { (ac_try="$ac_link"
  8625. case "(($ac_try" in
  8626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8627. *) ac_try_echo=$ac_try;;
  8628. esac
  8629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8630. (eval "$ac_link") 2>conftest.er1
  8631. ac_status=$?
  8632. grep -v '^ *+' conftest.er1 >conftest.err
  8633. rm -f conftest.er1
  8634. cat conftest.err >&5
  8635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8636. (exit $ac_status); } && {
  8637. test -z "$ac_c_werror_flag" ||
  8638. test ! -s conftest.err
  8639. } && test -s conftest$ac_exeext &&
  8640. $as_test_x conftest$ac_exeext; then
  8641. ac_cv_lib_png_png_set_tRNS_to_alpha=yes
  8642. else
  8643. echo "$as_me: failed program was:" >&5
  8644. sed 's/^/| /' conftest.$ac_ext >&5
  8645. ac_cv_lib_png_png_set_tRNS_to_alpha=no
  8646. fi
  8647. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8648. conftest$ac_exeext conftest.$ac_ext
  8649. LIBS=$ac_check_lib_save_LIBS
  8650. fi
  8651. { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_set_tRNS_to_alpha" >&5
  8652. echo "${ECHO_T}$ac_cv_lib_png_png_set_tRNS_to_alpha" >&6; }
  8653. if test $ac_cv_lib_png_png_set_tRNS_to_alpha = yes; then
  8654. cat >>confdefs.h <<\_ACEOF
  8655. #define HAVE_PNG_SET_TRNS_TO_ALPHA 1
  8656. _ACEOF
  8657. fi
  8658. fi
  8659. LIBS="$SAVELIBS"
  8660. have_pthread=no
  8661. PTHREAD_FLAGS=""
  8662. check_pthread=yes
  8663. case $uname in
  8664. MINGW*)
  8665. check_pthread=no
  8666. ;;
  8667. CYGWIN*)
  8668. if test "x$enable_cygwin" != xyes; then
  8669. check_pthread=no
  8670. fi
  8671. ;;
  8672. *)
  8673. ;;
  8674. esac
  8675. if test "x$enable_threads" != xno -a x$check_pthread = xyes; then
  8676. if test "${ac_cv_header_pthread_h+set}" = set; then
  8677. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  8678. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  8679. if test "${ac_cv_header_pthread_h+set}" = set; then
  8680. echo $ECHO_N "(cached) $ECHO_C" >&6
  8681. fi
  8682. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  8683. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  8684. else
  8685. # Is the header compilable?
  8686. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  8687. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  8688. cat >conftest.$ac_ext <<_ACEOF
  8689. /* confdefs.h. */
  8690. _ACEOF
  8691. cat confdefs.h >>conftest.$ac_ext
  8692. cat >>conftest.$ac_ext <<_ACEOF
  8693. /* end confdefs.h. */
  8694. $ac_includes_default
  8695. #include <pthread.h>
  8696. _ACEOF
  8697. rm -f conftest.$ac_objext
  8698. if { (ac_try="$ac_compile"
  8699. case "(($ac_try" in
  8700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8701. *) ac_try_echo=$ac_try;;
  8702. esac
  8703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8704. (eval "$ac_compile") 2>conftest.er1
  8705. ac_status=$?
  8706. grep -v '^ *+' conftest.er1 >conftest.err
  8707. rm -f conftest.er1
  8708. cat conftest.err >&5
  8709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8710. (exit $ac_status); } && {
  8711. test -z "$ac_c_werror_flag" ||
  8712. test ! -s conftest.err
  8713. } && test -s conftest.$ac_objext; then
  8714. ac_header_compiler=yes
  8715. else
  8716. echo "$as_me: failed program was:" >&5
  8717. sed 's/^/| /' conftest.$ac_ext >&5
  8718. ac_header_compiler=no
  8719. fi
  8720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8721. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8722. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8723. # Is the header present?
  8724. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  8725. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  8726. cat >conftest.$ac_ext <<_ACEOF
  8727. /* confdefs.h. */
  8728. _ACEOF
  8729. cat confdefs.h >>conftest.$ac_ext
  8730. cat >>conftest.$ac_ext <<_ACEOF
  8731. /* end confdefs.h. */
  8732. #include <pthread.h>
  8733. _ACEOF
  8734. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8735. case "(($ac_try" in
  8736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8737. *) ac_try_echo=$ac_try;;
  8738. esac
  8739. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8740. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8741. ac_status=$?
  8742. grep -v '^ *+' conftest.er1 >conftest.err
  8743. rm -f conftest.er1
  8744. cat conftest.err >&5
  8745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8746. (exit $ac_status); } >/dev/null && {
  8747. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8748. test ! -s conftest.err
  8749. }; then
  8750. ac_header_preproc=yes
  8751. else
  8752. echo "$as_me: failed program was:" >&5
  8753. sed 's/^/| /' conftest.$ac_ext >&5
  8754. ac_header_preproc=no
  8755. fi
  8756. rm -f conftest.err conftest.$ac_ext
  8757. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8758. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8759. # So? What about this header?
  8760. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8761. yes:no: )
  8762. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8763. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8764. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  8765. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  8766. ac_header_preproc=yes
  8767. ;;
  8768. no:yes:* )
  8769. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  8770. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  8771. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  8772. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  8773. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  8774. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  8775. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  8776. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  8777. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  8778. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  8779. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  8780. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  8781. ;;
  8782. esac
  8783. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  8784. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  8785. if test "${ac_cv_header_pthread_h+set}" = set; then
  8786. echo $ECHO_N "(cached) $ECHO_C" >&6
  8787. else
  8788. ac_cv_header_pthread_h=$ac_header_preproc
  8789. fi
  8790. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  8791. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  8792. fi
  8793. if test $ac_cv_header_pthread_h = yes; then
  8794. cat >>confdefs.h <<\_ACEOF
  8795. #define HAVE_PTHREAD_H 1
  8796. _ACEOF
  8797. fi
  8798. if test x$ac_cv_header_pthread_h = xyes; then
  8799. for flag in -lpthreads -lpthread -pthread; do
  8800. { echo "$as_me:$LINENO: checking for pthread_create using $flag" >&5
  8801. echo $ECHO_N "checking for pthread_create using $flag... $ECHO_C" >&6; }
  8802. SAVELIBS="$LIBS"
  8803. LIBS="$flag $LIBS"
  8804. cat >conftest.$ac_ext <<_ACEOF
  8805. /* confdefs.h. */
  8806. _ACEOF
  8807. cat confdefs.h >>conftest.$ac_ext
  8808. cat >>conftest.$ac_ext <<_ACEOF
  8809. /* end confdefs.h. */
  8810. #include <pthread.h>
  8811. int
  8812. main ()
  8813. {
  8814. pthread_create(0, 0, 0, 0);
  8815. ;
  8816. return 0;
  8817. }
  8818. _ACEOF
  8819. rm -f conftest.$ac_objext conftest$ac_exeext
  8820. if { (ac_try="$ac_link"
  8821. case "(($ac_try" in
  8822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8823. *) ac_try_echo=$ac_try;;
  8824. esac
  8825. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8826. (eval "$ac_link") 2>conftest.er1
  8827. ac_status=$?
  8828. grep -v '^ *+' conftest.er1 >conftest.err
  8829. rm -f conftest.er1
  8830. cat conftest.err >&5
  8831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8832. (exit $ac_status); } && {
  8833. test -z "$ac_c_werror_flag" ||
  8834. test ! -s conftest.err
  8835. } && test -s conftest$ac_exeext &&
  8836. $as_test_x conftest$ac_exeext; then
  8837. have_pthread=yes
  8838. else
  8839. echo "$as_me: failed program was:" >&5
  8840. sed 's/^/| /' conftest.$ac_ext >&5
  8841. LIBS="$SAVELIBS"
  8842. fi
  8843. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8844. conftest$ac_exeext conftest.$ac_ext
  8845. { echo "$as_me:$LINENO: result: $have_pthread" >&5
  8846. echo "${ECHO_T}$have_pthread" >&6; }
  8847. if test $have_pthread = yes; then
  8848. cat >>confdefs.h <<\_ACEOF
  8849. #define HAVE_PTHREAD 1
  8850. _ACEOF
  8851. PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
  8852. # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
  8853. # be POSIX-compliant... :(
  8854. if test $uname = SunOS; then
  8855. PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
  8856. fi
  8857. break
  8858. fi
  8859. done
  8860. fi
  8861. fi
  8862. HLINKS=
  8863. OSX_ONLY=:
  8864. THREADS=
  8865. # Check whether --with-links was given.
  8866. if test "${with_links+set}" = set; then
  8867. withval=$with_links;
  8868. fi
  8869. INSTALL_DESKTOP=""
  8870. UNINSTALL_DESKTOP=""
  8871. case $uname_GUI in
  8872. CYGWIN* | MINGW*)
  8873. # Recent versions of Cygwin are seriously broken and the size
  8874. # checks don't work because the shell puts out \r\n instead of
  8875. # \n. Here we just force U32 to be defined to "unsigned"...
  8876. cat >>confdefs.h <<\_ACEOF
  8877. #define U32 unsigned
  8878. _ACEOF
  8879. CFLAGS="-mwindows -DWIN32 -DUSE_OPENGL32 $CFLAGS"
  8880. CXXFLAGS="-mwindows -DWIN32 -DUSE_OPENGL32 $CXXFLAGS"
  8881. LDFLAGS="-mwindows $LDFLAGS"
  8882. DSOFLAGS="-mwindows $DSOFLAGS"
  8883. LIBS="$LIBS -lole32 -luuid -lcomctl32"
  8884. if test "x$with_optim" = x; then
  8885. with_optim="-O3"
  8886. fi
  8887. if test x$enable_gl != xno; then
  8888. if test "${ac_cv_header_GL_gl_h+set}" = set; then
  8889. { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  8890. echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  8891. if test "${ac_cv_header_GL_gl_h+set}" = set; then
  8892. echo $ECHO_N "(cached) $ECHO_C" >&6
  8893. fi
  8894. { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  8895. echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  8896. else
  8897. # Is the header compilable?
  8898. { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  8899. echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
  8900. cat >conftest.$ac_ext <<_ACEOF
  8901. /* confdefs.h. */
  8902. _ACEOF
  8903. cat confdefs.h >>conftest.$ac_ext
  8904. cat >>conftest.$ac_ext <<_ACEOF
  8905. /* end confdefs.h. */
  8906. $ac_includes_default
  8907. #include <GL/gl.h>
  8908. _ACEOF
  8909. rm -f conftest.$ac_objext
  8910. if { (ac_try="$ac_compile"
  8911. case "(($ac_try" in
  8912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8913. *) ac_try_echo=$ac_try;;
  8914. esac
  8915. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8916. (eval "$ac_compile") 2>conftest.er1
  8917. ac_status=$?
  8918. grep -v '^ *+' conftest.er1 >conftest.err
  8919. rm -f conftest.er1
  8920. cat conftest.err >&5
  8921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8922. (exit $ac_status); } && {
  8923. test -z "$ac_c_werror_flag" ||
  8924. test ! -s conftest.err
  8925. } && test -s conftest.$ac_objext; then
  8926. ac_header_compiler=yes
  8927. else
  8928. echo "$as_me: failed program was:" >&5
  8929. sed 's/^/| /' conftest.$ac_ext >&5
  8930. ac_header_compiler=no
  8931. fi
  8932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8933. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8934. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8935. # Is the header present?
  8936. { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  8937. echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
  8938. cat >conftest.$ac_ext <<_ACEOF
  8939. /* confdefs.h. */
  8940. _ACEOF
  8941. cat confdefs.h >>conftest.$ac_ext
  8942. cat >>conftest.$ac_ext <<_ACEOF
  8943. /* end confdefs.h. */
  8944. #include <GL/gl.h>
  8945. _ACEOF
  8946. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8947. case "(($ac_try" in
  8948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8949. *) ac_try_echo=$ac_try;;
  8950. esac
  8951. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8952. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8953. ac_status=$?
  8954. grep -v '^ *+' conftest.er1 >conftest.err
  8955. rm -f conftest.er1
  8956. cat conftest.err >&5
  8957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8958. (exit $ac_status); } >/dev/null && {
  8959. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8960. test ! -s conftest.err
  8961. }; then
  8962. ac_header_preproc=yes
  8963. else
  8964. echo "$as_me: failed program was:" >&5
  8965. sed 's/^/| /' conftest.$ac_ext >&5
  8966. ac_header_preproc=no
  8967. fi
  8968. rm -f conftest.err conftest.$ac_ext
  8969. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8970. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8971. # So? What about this header?
  8972. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8973. yes:no: )
  8974. { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8975. echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8976. { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  8977. echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  8978. ac_header_preproc=yes
  8979. ;;
  8980. no:yes:* )
  8981. { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  8982. echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  8983. { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
  8984. echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
  8985. { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  8986. echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  8987. { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
  8988. echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
  8989. { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  8990. echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  8991. { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  8992. echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  8993. ;;
  8994. esac
  8995. { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  8996. echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  8997. if test "${ac_cv_header_GL_gl_h+set}" = set; then
  8998. echo $ECHO_N "(cached) $ECHO_C" >&6
  8999. else
  9000. ac_cv_header_GL_gl_h=$ac_header_preproc
  9001. fi
  9002. { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  9003. echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  9004. fi
  9005. if test $ac_cv_header_GL_gl_h = yes; then
  9006. cat >>confdefs.h <<\_ACEOF
  9007. #define HAVE_GL 1
  9008. _ACEOF
  9009. GLLIB="-lopengl32"
  9010. fi
  9011. if test "${ac_cv_header_GL_glu_h+set}" = set; then
  9012. { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
  9013. echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
  9014. if test "${ac_cv_header_GL_glu_h+set}" = set; then
  9015. echo $ECHO_N "(cached) $ECHO_C" >&6
  9016. fi
  9017. { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
  9018. echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
  9019. else
  9020. # Is the header compilable?
  9021. { echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
  9022. echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6; }
  9023. cat >conftest.$ac_ext <<_ACEOF
  9024. /* confdefs.h. */
  9025. _ACEOF
  9026. cat confdefs.h >>conftest.$ac_ext
  9027. cat >>conftest.$ac_ext <<_ACEOF
  9028. /* end confdefs.h. */
  9029. $ac_includes_default
  9030. #include <GL/glu.h>
  9031. _ACEOF
  9032. rm -f conftest.$ac_objext
  9033. if { (ac_try="$ac_compile"
  9034. case "(($ac_try" in
  9035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9036. *) ac_try_echo=$ac_try;;
  9037. esac
  9038. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9039. (eval "$ac_compile") 2>conftest.er1
  9040. ac_status=$?
  9041. grep -v '^ *+' conftest.er1 >conftest.err
  9042. rm -f conftest.er1
  9043. cat conftest.err >&5
  9044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9045. (exit $ac_status); } && {
  9046. test -z "$ac_c_werror_flag" ||
  9047. test ! -s conftest.err
  9048. } && test -s conftest.$ac_objext; then
  9049. ac_header_compiler=yes
  9050. else
  9051. echo "$as_me: failed program was:" >&5
  9052. sed 's/^/| /' conftest.$ac_ext >&5
  9053. ac_header_compiler=no
  9054. fi
  9055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9056. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9057. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9058. # Is the header present?
  9059. { echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
  9060. echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6; }
  9061. cat >conftest.$ac_ext <<_ACEOF
  9062. /* confdefs.h. */
  9063. _ACEOF
  9064. cat confdefs.h >>conftest.$ac_ext
  9065. cat >>conftest.$ac_ext <<_ACEOF
  9066. /* end confdefs.h. */
  9067. #include <GL/glu.h>
  9068. _ACEOF
  9069. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9070. case "(($ac_try" in
  9071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9072. *) ac_try_echo=$ac_try;;
  9073. esac
  9074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9075. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9076. ac_status=$?
  9077. grep -v '^ *+' conftest.er1 >conftest.err
  9078. rm -f conftest.er1
  9079. cat conftest.err >&5
  9080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9081. (exit $ac_status); } >/dev/null && {
  9082. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9083. test ! -s conftest.err
  9084. }; then
  9085. ac_header_preproc=yes
  9086. else
  9087. echo "$as_me: failed program was:" >&5
  9088. sed 's/^/| /' conftest.$ac_ext >&5
  9089. ac_header_preproc=no
  9090. fi
  9091. rm -f conftest.err conftest.$ac_ext
  9092. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9093. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9094. # So? What about this header?
  9095. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9096. yes:no: )
  9097. { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9098. echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9099. { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
  9100. echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
  9101. ac_header_preproc=yes
  9102. ;;
  9103. no:yes:* )
  9104. { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
  9105. echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
  9106. { echo "$as_me:$LINENO: WARNING: GL/glu.h: check for missing prerequisite headers?" >&5
  9107. echo "$as_me: WARNING: GL/glu.h: check for missing prerequisite headers?" >&2;}
  9108. { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
  9109. echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
  9110. { echo "$as_me:$LINENO: WARNING: GL/glu.h: section \"Present But Cannot Be Compiled\"" >&5
  9111. echo "$as_me: WARNING: GL/glu.h: section \"Present But Cannot Be Compiled\"" >&2;}
  9112. { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
  9113. echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
  9114. { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
  9115. echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
  9116. ;;
  9117. esac
  9118. { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
  9119. echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
  9120. if test "${ac_cv_header_GL_glu_h+set}" = set; then
  9121. echo $ECHO_N "(cached) $ECHO_C" >&6
  9122. else
  9123. ac_cv_header_GL_glu_h=$ac_header_preproc
  9124. fi
  9125. { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
  9126. echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
  9127. fi
  9128. if test $ac_cv_header_GL_glu_h = yes; then
  9129. cat >>confdefs.h <<\_ACEOF
  9130. #define HAVE_GL_GLU_H 1
  9131. _ACEOF
  9132. GLLIB="-lglu32 $GLLIB"
  9133. fi
  9134. else
  9135. LINKFLTKGL=""
  9136. GLLIBNAME=""
  9137. GLDSONAME=""
  9138. GLDEMOS=""
  9139. fi
  9140. if test "x$enable_threads" != xno; then
  9141. if test x$have_pthread = xyes; then
  9142. cat >>confdefs.h <<\_ACEOF
  9143. #define HAVE_PTHREAD 1
  9144. _ACEOF
  9145. fi
  9146. fi
  9147. THREADS="threads$EXEEXT"
  9148. # Don't make symlinks since Windows is not case sensitive.
  9149. if test "x$with_links" != xyes; then
  9150. HLINKS="#"
  9151. fi
  9152. ;;
  9153. Darwin*)
  9154. # MacOS X uses Cocoa for graphics.
  9155. LIBS="$LIBS -framework Cocoa"
  9156. if test x$have_pthread = xyes; then
  9157. cat >>confdefs.h <<\_ACEOF
  9158. #define HAVE_PTHREAD 1
  9159. _ACEOF
  9160. THREADS="threads$EXEEXT"
  9161. fi
  9162. if test x$enable_gl != xno; then
  9163. cat >>confdefs.h <<\_ACEOF
  9164. #define HAVE_GL 1
  9165. _ACEOF
  9166. cat >>confdefs.h <<\_ACEOF
  9167. #define HAVE_GL_GLU_H 1
  9168. _ACEOF
  9169. GLLIB="-framework AGL -framework OpenGL -framework ApplicationServices"
  9170. else
  9171. LINKFLTKGL=""
  9172. GLLIBNAME=""
  9173. GLDSONAME=""
  9174. GLDEMOS=""
  9175. fi
  9176. # Don't make symlinks because HFS+ is not case sensitive...
  9177. if test "x$with_links" != xyes; then
  9178. HLINKS="#"
  9179. fi
  9180. # Some steps are only done for OS X package management
  9181. OSX_ONLY=
  9182. # Install/Uninstall FLUID application
  9183. INSTALL_DESKTOP="install-osx"
  9184. UNINSTALL_DESKTOP="uninstall-osx"
  9185. ;;
  9186. *)
  9187. # All others are UNIX/X11...
  9188. # This includes Cygwin target combined with X11
  9189. if test x$have_pthread = xyes; then
  9190. cat >>confdefs.h <<\_ACEOF
  9191. #define HAVE_PTHREAD 1
  9192. _ACEOF
  9193. THREADS="threads$EXEEXT"
  9194. fi
  9195. { echo "$as_me:$LINENO: checking for X" >&5
  9196. echo $ECHO_N "checking for X... $ECHO_C" >&6; }
  9197. # Check whether --with-x was given.
  9198. if test "${with_x+set}" = set; then
  9199. withval=$with_x;
  9200. fi
  9201. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  9202. if test "x$with_x" = xno; then
  9203. # The user explicitly disabled X.
  9204. have_x=disabled
  9205. else
  9206. case $x_includes,$x_libraries in #(
  9207. *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
  9208. echo "$as_me: error: Cannot use X directory names containing '" >&2;}
  9209. { (exit 1); exit 1; }; };; #(
  9210. *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
  9211. echo $ECHO_N "(cached) $ECHO_C" >&6
  9212. else
  9213. # One or both of the vars are not set, and there is no cached value.
  9214. ac_x_includes=no ac_x_libraries=no
  9215. rm -f -r conftest.dir
  9216. if mkdir conftest.dir; then
  9217. cd conftest.dir
  9218. cat >Imakefile <<'_ACEOF'
  9219. incroot:
  9220. @echo incroot='${INCROOT}'
  9221. usrlibdir:
  9222. @echo usrlibdir='${USRLIBDIR}'
  9223. libdir:
  9224. @echo libdir='${LIBDIR}'
  9225. _ACEOF
  9226. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  9227. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  9228. for ac_var in incroot usrlibdir libdir; do
  9229. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  9230. done
  9231. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  9232. for ac_extension in a so sl dylib la dll; do
  9233. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  9234. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  9235. ac_im_usrlibdir=$ac_im_libdir; break
  9236. fi
  9237. done
  9238. # Screen out bogus values from the imake configuration. They are
  9239. # bogus both because they are the default anyway, and because
  9240. # using them would break gcc on systems where it needs fixed includes.
  9241. case $ac_im_incroot in
  9242. /usr/include) ac_x_includes= ;;
  9243. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  9244. esac
  9245. case $ac_im_usrlibdir in
  9246. /usr/lib | /lib) ;;
  9247. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  9248. esac
  9249. fi
  9250. cd ..
  9251. rm -f -r conftest.dir
  9252. fi
  9253. # Standard set of common directories for X headers.
  9254. # Check X11 before X11Rn because it is often a symlink to the current release.
  9255. ac_x_header_dirs='
  9256. /usr/X11/include
  9257. /usr/X11R6/include
  9258. /usr/X11R5/include
  9259. /usr/X11R4/include
  9260. /usr/include/X11
  9261. /usr/include/X11R6
  9262. /usr/include/X11R5
  9263. /usr/include/X11R4
  9264. /usr/local/X11/include
  9265. /usr/local/X11R6/include
  9266. /usr/local/X11R5/include
  9267. /usr/local/X11R4/include
  9268. /usr/local/include/X11
  9269. /usr/local/include/X11R6
  9270. /usr/local/include/X11R5
  9271. /usr/local/include/X11R4
  9272. /usr/X386/include
  9273. /usr/x386/include
  9274. /usr/XFree86/include/X11
  9275. /usr/include
  9276. /usr/local/include
  9277. /usr/unsupported/include
  9278. /usr/athena/include
  9279. /usr/local/x11r5/include
  9280. /usr/lpp/Xamples/include
  9281. /usr/openwin/include
  9282. /usr/openwin/share/include'
  9283. if test "$ac_x_includes" = no; then
  9284. # Guess where to find include files, by looking for Xlib.h.
  9285. # First, try using that file with no special directory specified.
  9286. cat >conftest.$ac_ext <<_ACEOF
  9287. /* confdefs.h. */
  9288. _ACEOF
  9289. cat confdefs.h >>conftest.$ac_ext
  9290. cat >>conftest.$ac_ext <<_ACEOF
  9291. /* end confdefs.h. */
  9292. #include <X11/Xlib.h>
  9293. _ACEOF
  9294. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9295. case "(($ac_try" in
  9296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9297. *) ac_try_echo=$ac_try;;
  9298. esac
  9299. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9300. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9301. ac_status=$?
  9302. grep -v '^ *+' conftest.er1 >conftest.err
  9303. rm -f conftest.er1
  9304. cat conftest.err >&5
  9305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9306. (exit $ac_status); } >/dev/null && {
  9307. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9308. test ! -s conftest.err
  9309. }; then
  9310. # We can compile using X headers with no special include directory.
  9311. ac_x_includes=
  9312. else
  9313. echo "$as_me: failed program was:" >&5
  9314. sed 's/^/| /' conftest.$ac_ext >&5
  9315. for ac_dir in $ac_x_header_dirs; do
  9316. if test -r "$ac_dir/X11/Xlib.h"; then
  9317. ac_x_includes=$ac_dir
  9318. break
  9319. fi
  9320. done
  9321. fi
  9322. rm -f conftest.err conftest.$ac_ext
  9323. fi # $ac_x_includes = no
  9324. if test "$ac_x_libraries" = no; then
  9325. # Check for the libraries.
  9326. # See if we find them without any special options.
  9327. # Don't add to $LIBS permanently.
  9328. ac_save_LIBS=$LIBS
  9329. LIBS="-lX11 $LIBS"
  9330. cat >conftest.$ac_ext <<_ACEOF
  9331. /* confdefs.h. */
  9332. _ACEOF
  9333. cat confdefs.h >>conftest.$ac_ext
  9334. cat >>conftest.$ac_ext <<_ACEOF
  9335. /* end confdefs.h. */
  9336. #include <X11/Xlib.h>
  9337. int
  9338. main ()
  9339. {
  9340. XrmInitialize ()
  9341. ;
  9342. return 0;
  9343. }
  9344. _ACEOF
  9345. rm -f conftest.$ac_objext conftest$ac_exeext
  9346. if { (ac_try="$ac_link"
  9347. case "(($ac_try" in
  9348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9349. *) ac_try_echo=$ac_try;;
  9350. esac
  9351. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9352. (eval "$ac_link") 2>conftest.er1
  9353. ac_status=$?
  9354. grep -v '^ *+' conftest.er1 >conftest.err
  9355. rm -f conftest.er1
  9356. cat conftest.err >&5
  9357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9358. (exit $ac_status); } && {
  9359. test -z "$ac_c_werror_flag" ||
  9360. test ! -s conftest.err
  9361. } && test -s conftest$ac_exeext &&
  9362. $as_test_x conftest$ac_exeext; then
  9363. LIBS=$ac_save_LIBS
  9364. # We can link X programs with no special library path.
  9365. ac_x_libraries=
  9366. else
  9367. echo "$as_me: failed program was:" >&5
  9368. sed 's/^/| /' conftest.$ac_ext >&5
  9369. LIBS=$ac_save_LIBS
  9370. for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  9371. do
  9372. # Don't even attempt the hair of trying to link an X program!
  9373. for ac_extension in a so sl dylib la dll; do
  9374. if test -r "$ac_dir/libX11.$ac_extension"; then
  9375. ac_x_libraries=$ac_dir
  9376. break 2
  9377. fi
  9378. done
  9379. done
  9380. fi
  9381. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9382. conftest$ac_exeext conftest.$ac_ext
  9383. fi # $ac_x_libraries = no
  9384. case $ac_x_includes,$ac_x_libraries in #(
  9385. no,* | *,no | *\'*)
  9386. # Didn't find X, or a directory has "'" in its name.
  9387. ac_cv_have_x="have_x=no";; #(
  9388. *)
  9389. # Record where we found X for the cache.
  9390. ac_cv_have_x="have_x=yes\
  9391. ac_x_includes='$ac_x_includes'\
  9392. ac_x_libraries='$ac_x_libraries'"
  9393. esac
  9394. fi
  9395. ;; #(
  9396. *) have_x=yes;;
  9397. esac
  9398. eval "$ac_cv_have_x"
  9399. fi # $with_x != no
  9400. if test "$have_x" != yes; then
  9401. { echo "$as_me:$LINENO: result: $have_x" >&5
  9402. echo "${ECHO_T}$have_x" >&6; }
  9403. no_x=yes
  9404. else
  9405. # If each of the values was on the command line, it overrides each guess.
  9406. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  9407. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  9408. # Update the cache value to reflect the command line values.
  9409. ac_cv_have_x="have_x=yes\
  9410. ac_x_includes='$x_includes'\
  9411. ac_x_libraries='$x_libraries'"
  9412. { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
  9413. echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
  9414. fi
  9415. if test "$no_x" = yes; then
  9416. # Not all programs may use this symbol, but it does not hurt to define it.
  9417. cat >>confdefs.h <<\_ACEOF
  9418. #define X_DISPLAY_MISSING 1
  9419. _ACEOF
  9420. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  9421. else
  9422. if test -n "$x_includes"; then
  9423. X_CFLAGS="$X_CFLAGS -I$x_includes"
  9424. fi
  9425. # It would also be nice to do this for all -L options, not just this one.
  9426. if test -n "$x_libraries"; then
  9427. X_LIBS="$X_LIBS -L$x_libraries"
  9428. # For Solaris; some versions of Sun CC require a space after -R and
  9429. # others require no space. Words are not sufficient . . . .
  9430. { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
  9431. echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
  9432. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  9433. ac_xsave_c_werror_flag=$ac_c_werror_flag
  9434. ac_c_werror_flag=yes
  9435. cat >conftest.$ac_ext <<_ACEOF
  9436. /* confdefs.h. */
  9437. _ACEOF
  9438. cat confdefs.h >>conftest.$ac_ext
  9439. cat >>conftest.$ac_ext <<_ACEOF
  9440. /* end confdefs.h. */
  9441. int
  9442. main ()
  9443. {
  9444. ;
  9445. return 0;
  9446. }
  9447. _ACEOF
  9448. rm -f conftest.$ac_objext conftest$ac_exeext
  9449. if { (ac_try="$ac_link"
  9450. case "(($ac_try" in
  9451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9452. *) ac_try_echo=$ac_try;;
  9453. esac
  9454. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9455. (eval "$ac_link") 2>conftest.er1
  9456. ac_status=$?
  9457. grep -v '^ *+' conftest.er1 >conftest.err
  9458. rm -f conftest.er1
  9459. cat conftest.err >&5
  9460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9461. (exit $ac_status); } && {
  9462. test -z "$ac_c_werror_flag" ||
  9463. test ! -s conftest.err
  9464. } && test -s conftest$ac_exeext &&
  9465. $as_test_x conftest$ac_exeext; then
  9466. { echo "$as_me:$LINENO: result: no" >&5
  9467. echo "${ECHO_T}no" >&6; }
  9468. X_LIBS="$X_LIBS -R$x_libraries"
  9469. else
  9470. echo "$as_me: failed program was:" >&5
  9471. sed 's/^/| /' conftest.$ac_ext >&5
  9472. LIBS="$ac_xsave_LIBS -R $x_libraries"
  9473. cat >conftest.$ac_ext <<_ACEOF
  9474. /* confdefs.h. */
  9475. _ACEOF
  9476. cat confdefs.h >>conftest.$ac_ext
  9477. cat >>conftest.$ac_ext <<_ACEOF
  9478. /* end confdefs.h. */
  9479. int
  9480. main ()
  9481. {
  9482. ;
  9483. return 0;
  9484. }
  9485. _ACEOF
  9486. rm -f conftest.$ac_objext conftest$ac_exeext
  9487. if { (ac_try="$ac_link"
  9488. case "(($ac_try" in
  9489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9490. *) ac_try_echo=$ac_try;;
  9491. esac
  9492. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9493. (eval "$ac_link") 2>conftest.er1
  9494. ac_status=$?
  9495. grep -v '^ *+' conftest.er1 >conftest.err
  9496. rm -f conftest.er1
  9497. cat conftest.err >&5
  9498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9499. (exit $ac_status); } && {
  9500. test -z "$ac_c_werror_flag" ||
  9501. test ! -s conftest.err
  9502. } && test -s conftest$ac_exeext &&
  9503. $as_test_x conftest$ac_exeext; then
  9504. { echo "$as_me:$LINENO: result: yes" >&5
  9505. echo "${ECHO_T}yes" >&6; }
  9506. X_LIBS="$X_LIBS -R $x_libraries"
  9507. else
  9508. echo "$as_me: failed program was:" >&5
  9509. sed 's/^/| /' conftest.$ac_ext >&5
  9510. { echo "$as_me:$LINENO: result: neither works" >&5
  9511. echo "${ECHO_T}neither works" >&6; }
  9512. fi
  9513. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9514. conftest$ac_exeext conftest.$ac_ext
  9515. fi
  9516. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9517. conftest$ac_exeext conftest.$ac_ext
  9518. ac_c_werror_flag=$ac_xsave_c_werror_flag
  9519. LIBS=$ac_xsave_LIBS
  9520. fi
  9521. # Check for system-dependent libraries X programs must link with.
  9522. # Do this before checking for the system-independent R6 libraries
  9523. # (-lICE), since we may need -lsocket or whatever for X linking.
  9524. if test "$ISC" = yes; then
  9525. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  9526. else
  9527. # Martyn Johnson says this is needed for Ultrix, if the X
  9528. # libraries were built with DECnet support. And Karl Berry says
  9529. # the Alpha needs dnet_stub (dnet does not exist).
  9530. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  9531. cat >conftest.$ac_ext <<_ACEOF
  9532. /* confdefs.h. */
  9533. _ACEOF
  9534. cat confdefs.h >>conftest.$ac_ext
  9535. cat >>conftest.$ac_ext <<_ACEOF
  9536. /* end confdefs.h. */
  9537. /* Override any GCC internal prototype to avoid an error.
  9538. Use char because int might match the return type of a GCC
  9539. builtin and then its argument prototype would still apply. */
  9540. #ifdef __cplusplus
  9541. extern "C"
  9542. #endif
  9543. char XOpenDisplay ();
  9544. int
  9545. main ()
  9546. {
  9547. return XOpenDisplay ();
  9548. ;
  9549. return 0;
  9550. }
  9551. _ACEOF
  9552. rm -f conftest.$ac_objext conftest$ac_exeext
  9553. if { (ac_try="$ac_link"
  9554. case "(($ac_try" in
  9555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9556. *) ac_try_echo=$ac_try;;
  9557. esac
  9558. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9559. (eval "$ac_link") 2>conftest.er1
  9560. ac_status=$?
  9561. grep -v '^ *+' conftest.er1 >conftest.err
  9562. rm -f conftest.er1
  9563. cat conftest.err >&5
  9564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9565. (exit $ac_status); } && {
  9566. test -z "$ac_c_werror_flag" ||
  9567. test ! -s conftest.err
  9568. } && test -s conftest$ac_exeext &&
  9569. $as_test_x conftest$ac_exeext; then
  9570. :
  9571. else
  9572. echo "$as_me: failed program was:" >&5
  9573. sed 's/^/| /' conftest.$ac_ext >&5
  9574. { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
  9575. echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
  9576. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  9577. echo $ECHO_N "(cached) $ECHO_C" >&6
  9578. else
  9579. ac_check_lib_save_LIBS=$LIBS
  9580. LIBS="-ldnet $LIBS"
  9581. cat >conftest.$ac_ext <<_ACEOF
  9582. /* confdefs.h. */
  9583. _ACEOF
  9584. cat confdefs.h >>conftest.$ac_ext
  9585. cat >>conftest.$ac_ext <<_ACEOF
  9586. /* end confdefs.h. */
  9587. /* Override any GCC internal prototype to avoid an error.
  9588. Use char because int might match the return type of a GCC
  9589. builtin and then its argument prototype would still apply. */
  9590. #ifdef __cplusplus
  9591. extern "C"
  9592. #endif
  9593. char dnet_ntoa ();
  9594. int
  9595. main ()
  9596. {
  9597. return dnet_ntoa ();
  9598. ;
  9599. return 0;
  9600. }
  9601. _ACEOF
  9602. rm -f conftest.$ac_objext conftest$ac_exeext
  9603. if { (ac_try="$ac_link"
  9604. case "(($ac_try" in
  9605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9606. *) ac_try_echo=$ac_try;;
  9607. esac
  9608. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9609. (eval "$ac_link") 2>conftest.er1
  9610. ac_status=$?
  9611. grep -v '^ *+' conftest.er1 >conftest.err
  9612. rm -f conftest.er1
  9613. cat conftest.err >&5
  9614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9615. (exit $ac_status); } && {
  9616. test -z "$ac_c_werror_flag" ||
  9617. test ! -s conftest.err
  9618. } && test -s conftest$ac_exeext &&
  9619. $as_test_x conftest$ac_exeext; then
  9620. ac_cv_lib_dnet_dnet_ntoa=yes
  9621. else
  9622. echo "$as_me: failed program was:" >&5
  9623. sed 's/^/| /' conftest.$ac_ext >&5
  9624. ac_cv_lib_dnet_dnet_ntoa=no
  9625. fi
  9626. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9627. conftest$ac_exeext conftest.$ac_ext
  9628. LIBS=$ac_check_lib_save_LIBS
  9629. fi
  9630. { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  9631. echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  9632. if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  9633. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  9634. fi
  9635. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  9636. { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
  9637. echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
  9638. if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  9639. echo $ECHO_N "(cached) $ECHO_C" >&6
  9640. else
  9641. ac_check_lib_save_LIBS=$LIBS
  9642. LIBS="-ldnet_stub $LIBS"
  9643. cat >conftest.$ac_ext <<_ACEOF
  9644. /* confdefs.h. */
  9645. _ACEOF
  9646. cat confdefs.h >>conftest.$ac_ext
  9647. cat >>conftest.$ac_ext <<_ACEOF
  9648. /* end confdefs.h. */
  9649. /* Override any GCC internal prototype to avoid an error.
  9650. Use char because int might match the return type of a GCC
  9651. builtin and then its argument prototype would still apply. */
  9652. #ifdef __cplusplus
  9653. extern "C"
  9654. #endif
  9655. char dnet_ntoa ();
  9656. int
  9657. main ()
  9658. {
  9659. return dnet_ntoa ();
  9660. ;
  9661. return 0;
  9662. }
  9663. _ACEOF
  9664. rm -f conftest.$ac_objext conftest$ac_exeext
  9665. if { (ac_try="$ac_link"
  9666. case "(($ac_try" in
  9667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9668. *) ac_try_echo=$ac_try;;
  9669. esac
  9670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9671. (eval "$ac_link") 2>conftest.er1
  9672. ac_status=$?
  9673. grep -v '^ *+' conftest.er1 >conftest.err
  9674. rm -f conftest.er1
  9675. cat conftest.err >&5
  9676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9677. (exit $ac_status); } && {
  9678. test -z "$ac_c_werror_flag" ||
  9679. test ! -s conftest.err
  9680. } && test -s conftest$ac_exeext &&
  9681. $as_test_x conftest$ac_exeext; then
  9682. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  9683. else
  9684. echo "$as_me: failed program was:" >&5
  9685. sed 's/^/| /' conftest.$ac_ext >&5
  9686. ac_cv_lib_dnet_stub_dnet_ntoa=no
  9687. fi
  9688. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9689. conftest$ac_exeext conftest.$ac_ext
  9690. LIBS=$ac_check_lib_save_LIBS
  9691. fi
  9692. { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  9693. echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  9694. if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  9695. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  9696. fi
  9697. fi
  9698. fi
  9699. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9700. conftest$ac_exeext conftest.$ac_ext
  9701. LIBS="$ac_xsave_LIBS"
  9702. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  9703. # to get the SysV transport functions.
  9704. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  9705. # needs -lnsl.
  9706. # The nsl library prevents programs from opening the X display
  9707. # on Irix 5.2, according to T.E. Dickey.
  9708. # The functions gethostbyname, getservbyname, and inet_addr are
  9709. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  9710. { echo "$as_me:$LINENO: checking for gethostbyname" >&5
  9711. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
  9712. if test "${ac_cv_func_gethostbyname+set}" = set; then
  9713. echo $ECHO_N "(cached) $ECHO_C" >&6
  9714. else
  9715. cat >conftest.$ac_ext <<_ACEOF
  9716. /* confdefs.h. */
  9717. _ACEOF
  9718. cat confdefs.h >>conftest.$ac_ext
  9719. cat >>conftest.$ac_ext <<_ACEOF
  9720. /* end confdefs.h. */
  9721. /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
  9722. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9723. #define gethostbyname innocuous_gethostbyname
  9724. /* System header to define __stub macros and hopefully few prototypes,
  9725. which can conflict with char gethostbyname (); below.
  9726. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9727. <limits.h> exists even on freestanding compilers. */
  9728. #ifdef __STDC__
  9729. # include <limits.h>
  9730. #else
  9731. # include <assert.h>
  9732. #endif
  9733. #undef gethostbyname
  9734. /* Override any GCC internal prototype to avoid an error.
  9735. Use char because int might match the return type of a GCC
  9736. builtin and then its argument prototype would still apply. */
  9737. #ifdef __cplusplus
  9738. extern "C"
  9739. #endif
  9740. char gethostbyname ();
  9741. /* The GNU C library defines this for functions which it implements
  9742. to always fail with ENOSYS. Some functions are actually named
  9743. something starting with __ and the normal name is an alias. */
  9744. #if defined __stub_gethostbyname || defined __stub___gethostbyname
  9745. choke me
  9746. #endif
  9747. int
  9748. main ()
  9749. {
  9750. return gethostbyname ();
  9751. ;
  9752. return 0;
  9753. }
  9754. _ACEOF
  9755. rm -f conftest.$ac_objext conftest$ac_exeext
  9756. if { (ac_try="$ac_link"
  9757. case "(($ac_try" in
  9758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9759. *) ac_try_echo=$ac_try;;
  9760. esac
  9761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9762. (eval "$ac_link") 2>conftest.er1
  9763. ac_status=$?
  9764. grep -v '^ *+' conftest.er1 >conftest.err
  9765. rm -f conftest.er1
  9766. cat conftest.err >&5
  9767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9768. (exit $ac_status); } && {
  9769. test -z "$ac_c_werror_flag" ||
  9770. test ! -s conftest.err
  9771. } && test -s conftest$ac_exeext &&
  9772. $as_test_x conftest$ac_exeext; then
  9773. ac_cv_func_gethostbyname=yes
  9774. else
  9775. echo "$as_me: failed program was:" >&5
  9776. sed 's/^/| /' conftest.$ac_ext >&5
  9777. ac_cv_func_gethostbyname=no
  9778. fi
  9779. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9780. conftest$ac_exeext conftest.$ac_ext
  9781. fi
  9782. { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  9783. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
  9784. if test $ac_cv_func_gethostbyname = no; then
  9785. { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  9786. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
  9787. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  9788. echo $ECHO_N "(cached) $ECHO_C" >&6
  9789. else
  9790. ac_check_lib_save_LIBS=$LIBS
  9791. LIBS="-lnsl $LIBS"
  9792. cat >conftest.$ac_ext <<_ACEOF
  9793. /* confdefs.h. */
  9794. _ACEOF
  9795. cat confdefs.h >>conftest.$ac_ext
  9796. cat >>conftest.$ac_ext <<_ACEOF
  9797. /* end confdefs.h. */
  9798. /* Override any GCC internal prototype to avoid an error.
  9799. Use char because int might match the return type of a GCC
  9800. builtin and then its argument prototype would still apply. */
  9801. #ifdef __cplusplus
  9802. extern "C"
  9803. #endif
  9804. char gethostbyname ();
  9805. int
  9806. main ()
  9807. {
  9808. return gethostbyname ();
  9809. ;
  9810. return 0;
  9811. }
  9812. _ACEOF
  9813. rm -f conftest.$ac_objext conftest$ac_exeext
  9814. if { (ac_try="$ac_link"
  9815. case "(($ac_try" in
  9816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9817. *) ac_try_echo=$ac_try;;
  9818. esac
  9819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9820. (eval "$ac_link") 2>conftest.er1
  9821. ac_status=$?
  9822. grep -v '^ *+' conftest.er1 >conftest.err
  9823. rm -f conftest.er1
  9824. cat conftest.err >&5
  9825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9826. (exit $ac_status); } && {
  9827. test -z "$ac_c_werror_flag" ||
  9828. test ! -s conftest.err
  9829. } && test -s conftest$ac_exeext &&
  9830. $as_test_x conftest$ac_exeext; then
  9831. ac_cv_lib_nsl_gethostbyname=yes
  9832. else
  9833. echo "$as_me: failed program was:" >&5
  9834. sed 's/^/| /' conftest.$ac_ext >&5
  9835. ac_cv_lib_nsl_gethostbyname=no
  9836. fi
  9837. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9838. conftest$ac_exeext conftest.$ac_ext
  9839. LIBS=$ac_check_lib_save_LIBS
  9840. fi
  9841. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  9842. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
  9843. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  9844. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  9845. fi
  9846. if test $ac_cv_lib_nsl_gethostbyname = no; then
  9847. { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
  9848. echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
  9849. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  9850. echo $ECHO_N "(cached) $ECHO_C" >&6
  9851. else
  9852. ac_check_lib_save_LIBS=$LIBS
  9853. LIBS="-lbsd $LIBS"
  9854. cat >conftest.$ac_ext <<_ACEOF
  9855. /* confdefs.h. */
  9856. _ACEOF
  9857. cat confdefs.h >>conftest.$ac_ext
  9858. cat >>conftest.$ac_ext <<_ACEOF
  9859. /* end confdefs.h. */
  9860. /* Override any GCC internal prototype to avoid an error.
  9861. Use char because int might match the return type of a GCC
  9862. builtin and then its argument prototype would still apply. */
  9863. #ifdef __cplusplus
  9864. extern "C"
  9865. #endif
  9866. char gethostbyname ();
  9867. int
  9868. main ()
  9869. {
  9870. return gethostbyname ();
  9871. ;
  9872. return 0;
  9873. }
  9874. _ACEOF
  9875. rm -f conftest.$ac_objext conftest$ac_exeext
  9876. if { (ac_try="$ac_link"
  9877. case "(($ac_try" in
  9878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9879. *) ac_try_echo=$ac_try;;
  9880. esac
  9881. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9882. (eval "$ac_link") 2>conftest.er1
  9883. ac_status=$?
  9884. grep -v '^ *+' conftest.er1 >conftest.err
  9885. rm -f conftest.er1
  9886. cat conftest.err >&5
  9887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9888. (exit $ac_status); } && {
  9889. test -z "$ac_c_werror_flag" ||
  9890. test ! -s conftest.err
  9891. } && test -s conftest$ac_exeext &&
  9892. $as_test_x conftest$ac_exeext; then
  9893. ac_cv_lib_bsd_gethostbyname=yes
  9894. else
  9895. echo "$as_me: failed program was:" >&5
  9896. sed 's/^/| /' conftest.$ac_ext >&5
  9897. ac_cv_lib_bsd_gethostbyname=no
  9898. fi
  9899. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9900. conftest$ac_exeext conftest.$ac_ext
  9901. LIBS=$ac_check_lib_save_LIBS
  9902. fi
  9903. { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
  9904. echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
  9905. if test $ac_cv_lib_bsd_gethostbyname = yes; then
  9906. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  9907. fi
  9908. fi
  9909. fi
  9910. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  9911. # socket/setsockopt and other routines are undefined under SCO ODT
  9912. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  9913. # on later versions), says Simon Leinen: it contains gethostby*
  9914. # variants that don't use the name server (or something). -lsocket
  9915. # must be given before -lnsl if both are needed. We assume that
  9916. # if connect needs -lnsl, so does gethostbyname.
  9917. { echo "$as_me:$LINENO: checking for connect" >&5
  9918. echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
  9919. if test "${ac_cv_func_connect+set}" = set; then
  9920. echo $ECHO_N "(cached) $ECHO_C" >&6
  9921. else
  9922. cat >conftest.$ac_ext <<_ACEOF
  9923. /* confdefs.h. */
  9924. _ACEOF
  9925. cat confdefs.h >>conftest.$ac_ext
  9926. cat >>conftest.$ac_ext <<_ACEOF
  9927. /* end confdefs.h. */
  9928. /* Define connect to an innocuous variant, in case <limits.h> declares connect.
  9929. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9930. #define connect innocuous_connect
  9931. /* System header to define __stub macros and hopefully few prototypes,
  9932. which can conflict with char connect (); below.
  9933. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9934. <limits.h> exists even on freestanding compilers. */
  9935. #ifdef __STDC__
  9936. # include <limits.h>
  9937. #else
  9938. # include <assert.h>
  9939. #endif
  9940. #undef connect
  9941. /* Override any GCC internal prototype to avoid an error.
  9942. Use char because int might match the return type of a GCC
  9943. builtin and then its argument prototype would still apply. */
  9944. #ifdef __cplusplus
  9945. extern "C"
  9946. #endif
  9947. char connect ();
  9948. /* The GNU C library defines this for functions which it implements
  9949. to always fail with ENOSYS. Some functions are actually named
  9950. something starting with __ and the normal name is an alias. */
  9951. #if defined __stub_connect || defined __stub___connect
  9952. choke me
  9953. #endif
  9954. int
  9955. main ()
  9956. {
  9957. return connect ();
  9958. ;
  9959. return 0;
  9960. }
  9961. _ACEOF
  9962. rm -f conftest.$ac_objext conftest$ac_exeext
  9963. if { (ac_try="$ac_link"
  9964. case "(($ac_try" in
  9965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9966. *) ac_try_echo=$ac_try;;
  9967. esac
  9968. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9969. (eval "$ac_link") 2>conftest.er1
  9970. ac_status=$?
  9971. grep -v '^ *+' conftest.er1 >conftest.err
  9972. rm -f conftest.er1
  9973. cat conftest.err >&5
  9974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9975. (exit $ac_status); } && {
  9976. test -z "$ac_c_werror_flag" ||
  9977. test ! -s conftest.err
  9978. } && test -s conftest$ac_exeext &&
  9979. $as_test_x conftest$ac_exeext; then
  9980. ac_cv_func_connect=yes
  9981. else
  9982. echo "$as_me: failed program was:" >&5
  9983. sed 's/^/| /' conftest.$ac_ext >&5
  9984. ac_cv_func_connect=no
  9985. fi
  9986. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9987. conftest$ac_exeext conftest.$ac_ext
  9988. fi
  9989. { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  9990. echo "${ECHO_T}$ac_cv_func_connect" >&6; }
  9991. if test $ac_cv_func_connect = no; then
  9992. { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  9993. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
  9994. if test "${ac_cv_lib_socket_connect+set}" = set; then
  9995. echo $ECHO_N "(cached) $ECHO_C" >&6
  9996. else
  9997. ac_check_lib_save_LIBS=$LIBS
  9998. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  9999. cat >conftest.$ac_ext <<_ACEOF
  10000. /* confdefs.h. */
  10001. _ACEOF
  10002. cat confdefs.h >>conftest.$ac_ext
  10003. cat >>conftest.$ac_ext <<_ACEOF
  10004. /* end confdefs.h. */
  10005. /* Override any GCC internal prototype to avoid an error.
  10006. Use char because int might match the return type of a GCC
  10007. builtin and then its argument prototype would still apply. */
  10008. #ifdef __cplusplus
  10009. extern "C"
  10010. #endif
  10011. char connect ();
  10012. int
  10013. main ()
  10014. {
  10015. return connect ();
  10016. ;
  10017. return 0;
  10018. }
  10019. _ACEOF
  10020. rm -f conftest.$ac_objext conftest$ac_exeext
  10021. if { (ac_try="$ac_link"
  10022. case "(($ac_try" in
  10023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10024. *) ac_try_echo=$ac_try;;
  10025. esac
  10026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10027. (eval "$ac_link") 2>conftest.er1
  10028. ac_status=$?
  10029. grep -v '^ *+' conftest.er1 >conftest.err
  10030. rm -f conftest.er1
  10031. cat conftest.err >&5
  10032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10033. (exit $ac_status); } && {
  10034. test -z "$ac_c_werror_flag" ||
  10035. test ! -s conftest.err
  10036. } && test -s conftest$ac_exeext &&
  10037. $as_test_x conftest$ac_exeext; then
  10038. ac_cv_lib_socket_connect=yes
  10039. else
  10040. echo "$as_me: failed program was:" >&5
  10041. sed 's/^/| /' conftest.$ac_ext >&5
  10042. ac_cv_lib_socket_connect=no
  10043. fi
  10044. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10045. conftest$ac_exeext conftest.$ac_ext
  10046. LIBS=$ac_check_lib_save_LIBS
  10047. fi
  10048. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  10049. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
  10050. if test $ac_cv_lib_socket_connect = yes; then
  10051. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  10052. fi
  10053. fi
  10054. # Guillermo Gomez says -lposix is necessary on A/UX.
  10055. { echo "$as_me:$LINENO: checking for remove" >&5
  10056. echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
  10057. if test "${ac_cv_func_remove+set}" = set; then
  10058. echo $ECHO_N "(cached) $ECHO_C" >&6
  10059. else
  10060. cat >conftest.$ac_ext <<_ACEOF
  10061. /* confdefs.h. */
  10062. _ACEOF
  10063. cat confdefs.h >>conftest.$ac_ext
  10064. cat >>conftest.$ac_ext <<_ACEOF
  10065. /* end confdefs.h. */
  10066. /* Define remove to an innocuous variant, in case <limits.h> declares remove.
  10067. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10068. #define remove innocuous_remove
  10069. /* System header to define __stub macros and hopefully few prototypes,
  10070. which can conflict with char remove (); below.
  10071. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10072. <limits.h> exists even on freestanding compilers. */
  10073. #ifdef __STDC__
  10074. # include <limits.h>
  10075. #else
  10076. # include <assert.h>
  10077. #endif
  10078. #undef remove
  10079. /* Override any GCC internal prototype to avoid an error.
  10080. Use char because int might match the return type of a GCC
  10081. builtin and then its argument prototype would still apply. */
  10082. #ifdef __cplusplus
  10083. extern "C"
  10084. #endif
  10085. char remove ();
  10086. /* The GNU C library defines this for functions which it implements
  10087. to always fail with ENOSYS. Some functions are actually named
  10088. something starting with __ and the normal name is an alias. */
  10089. #if defined __stub_remove || defined __stub___remove
  10090. choke me
  10091. #endif
  10092. int
  10093. main ()
  10094. {
  10095. return remove ();
  10096. ;
  10097. return 0;
  10098. }
  10099. _ACEOF
  10100. rm -f conftest.$ac_objext conftest$ac_exeext
  10101. if { (ac_try="$ac_link"
  10102. case "(($ac_try" in
  10103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10104. *) ac_try_echo=$ac_try;;
  10105. esac
  10106. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10107. (eval "$ac_link") 2>conftest.er1
  10108. ac_status=$?
  10109. grep -v '^ *+' conftest.er1 >conftest.err
  10110. rm -f conftest.er1
  10111. cat conftest.err >&5
  10112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10113. (exit $ac_status); } && {
  10114. test -z "$ac_c_werror_flag" ||
  10115. test ! -s conftest.err
  10116. } && test -s conftest$ac_exeext &&
  10117. $as_test_x conftest$ac_exeext; then
  10118. ac_cv_func_remove=yes
  10119. else
  10120. echo "$as_me: failed program was:" >&5
  10121. sed 's/^/| /' conftest.$ac_ext >&5
  10122. ac_cv_func_remove=no
  10123. fi
  10124. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10125. conftest$ac_exeext conftest.$ac_ext
  10126. fi
  10127. { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
  10128. echo "${ECHO_T}$ac_cv_func_remove" >&6; }
  10129. if test $ac_cv_func_remove = no; then
  10130. { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
  10131. echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
  10132. if test "${ac_cv_lib_posix_remove+set}" = set; then
  10133. echo $ECHO_N "(cached) $ECHO_C" >&6
  10134. else
  10135. ac_check_lib_save_LIBS=$LIBS
  10136. LIBS="-lposix $LIBS"
  10137. cat >conftest.$ac_ext <<_ACEOF
  10138. /* confdefs.h. */
  10139. _ACEOF
  10140. cat confdefs.h >>conftest.$ac_ext
  10141. cat >>conftest.$ac_ext <<_ACEOF
  10142. /* end confdefs.h. */
  10143. /* Override any GCC internal prototype to avoid an error.
  10144. Use char because int might match the return type of a GCC
  10145. builtin and then its argument prototype would still apply. */
  10146. #ifdef __cplusplus
  10147. extern "C"
  10148. #endif
  10149. char remove ();
  10150. int
  10151. main ()
  10152. {
  10153. return remove ();
  10154. ;
  10155. return 0;
  10156. }
  10157. _ACEOF
  10158. rm -f conftest.$ac_objext conftest$ac_exeext
  10159. if { (ac_try="$ac_link"
  10160. case "(($ac_try" in
  10161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10162. *) ac_try_echo=$ac_try;;
  10163. esac
  10164. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10165. (eval "$ac_link") 2>conftest.er1
  10166. ac_status=$?
  10167. grep -v '^ *+' conftest.er1 >conftest.err
  10168. rm -f conftest.er1
  10169. cat conftest.err >&5
  10170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10171. (exit $ac_status); } && {
  10172. test -z "$ac_c_werror_flag" ||
  10173. test ! -s conftest.err
  10174. } && test -s conftest$ac_exeext &&
  10175. $as_test_x conftest$ac_exeext; then
  10176. ac_cv_lib_posix_remove=yes
  10177. else
  10178. echo "$as_me: failed program was:" >&5
  10179. sed 's/^/| /' conftest.$ac_ext >&5
  10180. ac_cv_lib_posix_remove=no
  10181. fi
  10182. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10183. conftest$ac_exeext conftest.$ac_ext
  10184. LIBS=$ac_check_lib_save_LIBS
  10185. fi
  10186. { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
  10187. echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
  10188. if test $ac_cv_lib_posix_remove = yes; then
  10189. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  10190. fi
  10191. fi
  10192. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  10193. { echo "$as_me:$LINENO: checking for shmat" >&5
  10194. echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
  10195. if test "${ac_cv_func_shmat+set}" = set; then
  10196. echo $ECHO_N "(cached) $ECHO_C" >&6
  10197. else
  10198. cat >conftest.$ac_ext <<_ACEOF
  10199. /* confdefs.h. */
  10200. _ACEOF
  10201. cat confdefs.h >>conftest.$ac_ext
  10202. cat >>conftest.$ac_ext <<_ACEOF
  10203. /* end confdefs.h. */
  10204. /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
  10205. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10206. #define shmat innocuous_shmat
  10207. /* System header to define __stub macros and hopefully few prototypes,
  10208. which can conflict with char shmat (); below.
  10209. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10210. <limits.h> exists even on freestanding compilers. */
  10211. #ifdef __STDC__
  10212. # include <limits.h>
  10213. #else
  10214. # include <assert.h>
  10215. #endif
  10216. #undef shmat
  10217. /* Override any GCC internal prototype to avoid an error.
  10218. Use char because int might match the return type of a GCC
  10219. builtin and then its argument prototype would still apply. */
  10220. #ifdef __cplusplus
  10221. extern "C"
  10222. #endif
  10223. char shmat ();
  10224. /* The GNU C library defines this for functions which it implements
  10225. to always fail with ENOSYS. Some functions are actually named
  10226. something starting with __ and the normal name is an alias. */
  10227. #if defined __stub_shmat || defined __stub___shmat
  10228. choke me
  10229. #endif
  10230. int
  10231. main ()
  10232. {
  10233. return shmat ();
  10234. ;
  10235. return 0;
  10236. }
  10237. _ACEOF
  10238. rm -f conftest.$ac_objext conftest$ac_exeext
  10239. if { (ac_try="$ac_link"
  10240. case "(($ac_try" in
  10241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10242. *) ac_try_echo=$ac_try;;
  10243. esac
  10244. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10245. (eval "$ac_link") 2>conftest.er1
  10246. ac_status=$?
  10247. grep -v '^ *+' conftest.er1 >conftest.err
  10248. rm -f conftest.er1
  10249. cat conftest.err >&5
  10250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10251. (exit $ac_status); } && {
  10252. test -z "$ac_c_werror_flag" ||
  10253. test ! -s conftest.err
  10254. } && test -s conftest$ac_exeext &&
  10255. $as_test_x conftest$ac_exeext; then
  10256. ac_cv_func_shmat=yes
  10257. else
  10258. echo "$as_me: failed program was:" >&5
  10259. sed 's/^/| /' conftest.$ac_ext >&5
  10260. ac_cv_func_shmat=no
  10261. fi
  10262. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10263. conftest$ac_exeext conftest.$ac_ext
  10264. fi
  10265. { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
  10266. echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
  10267. if test $ac_cv_func_shmat = no; then
  10268. { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
  10269. echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
  10270. if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  10271. echo $ECHO_N "(cached) $ECHO_C" >&6
  10272. else
  10273. ac_check_lib_save_LIBS=$LIBS
  10274. LIBS="-lipc $LIBS"
  10275. cat >conftest.$ac_ext <<_ACEOF
  10276. /* confdefs.h. */
  10277. _ACEOF
  10278. cat confdefs.h >>conftest.$ac_ext
  10279. cat >>conftest.$ac_ext <<_ACEOF
  10280. /* end confdefs.h. */
  10281. /* Override any GCC internal prototype to avoid an error.
  10282. Use char because int might match the return type of a GCC
  10283. builtin and then its argument prototype would still apply. */
  10284. #ifdef __cplusplus
  10285. extern "C"
  10286. #endif
  10287. char shmat ();
  10288. int
  10289. main ()
  10290. {
  10291. return shmat ();
  10292. ;
  10293. return 0;
  10294. }
  10295. _ACEOF
  10296. rm -f conftest.$ac_objext conftest$ac_exeext
  10297. if { (ac_try="$ac_link"
  10298. case "(($ac_try" in
  10299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10300. *) ac_try_echo=$ac_try;;
  10301. esac
  10302. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10303. (eval "$ac_link") 2>conftest.er1
  10304. ac_status=$?
  10305. grep -v '^ *+' conftest.er1 >conftest.err
  10306. rm -f conftest.er1
  10307. cat conftest.err >&5
  10308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10309. (exit $ac_status); } && {
  10310. test -z "$ac_c_werror_flag" ||
  10311. test ! -s conftest.err
  10312. } && test -s conftest$ac_exeext &&
  10313. $as_test_x conftest$ac_exeext; then
  10314. ac_cv_lib_ipc_shmat=yes
  10315. else
  10316. echo "$as_me: failed program was:" >&5
  10317. sed 's/^/| /' conftest.$ac_ext >&5
  10318. ac_cv_lib_ipc_shmat=no
  10319. fi
  10320. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10321. conftest$ac_exeext conftest.$ac_ext
  10322. LIBS=$ac_check_lib_save_LIBS
  10323. fi
  10324. { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
  10325. echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
  10326. if test $ac_cv_lib_ipc_shmat = yes; then
  10327. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  10328. fi
  10329. fi
  10330. fi
  10331. # Check for libraries that X11R6 Xt/Xaw programs need.
  10332. ac_save_LDFLAGS=$LDFLAGS
  10333. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  10334. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  10335. # check for ICE first), but we must link in the order -lSM -lICE or
  10336. # we get undefined symbols. So assume we have SM if we have ICE.
  10337. # These have to be linked with before -lX11, unlike the other
  10338. # libraries we check for below, so use a different variable.
  10339. # John Interrante, Karl Berry
  10340. { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
  10341. echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
  10342. if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  10343. echo $ECHO_N "(cached) $ECHO_C" >&6
  10344. else
  10345. ac_check_lib_save_LIBS=$LIBS
  10346. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  10347. cat >conftest.$ac_ext <<_ACEOF
  10348. /* confdefs.h. */
  10349. _ACEOF
  10350. cat confdefs.h >>conftest.$ac_ext
  10351. cat >>conftest.$ac_ext <<_ACEOF
  10352. /* end confdefs.h. */
  10353. /* Override any GCC internal prototype to avoid an error.
  10354. Use char because int might match the return type of a GCC
  10355. builtin and then its argument prototype would still apply. */
  10356. #ifdef __cplusplus
  10357. extern "C"
  10358. #endif
  10359. char IceConnectionNumber ();
  10360. int
  10361. main ()
  10362. {
  10363. return IceConnectionNumber ();
  10364. ;
  10365. return 0;
  10366. }
  10367. _ACEOF
  10368. rm -f conftest.$ac_objext conftest$ac_exeext
  10369. if { (ac_try="$ac_link"
  10370. case "(($ac_try" in
  10371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10372. *) ac_try_echo=$ac_try;;
  10373. esac
  10374. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10375. (eval "$ac_link") 2>conftest.er1
  10376. ac_status=$?
  10377. grep -v '^ *+' conftest.er1 >conftest.err
  10378. rm -f conftest.er1
  10379. cat conftest.err >&5
  10380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10381. (exit $ac_status); } && {
  10382. test -z "$ac_c_werror_flag" ||
  10383. test ! -s conftest.err
  10384. } && test -s conftest$ac_exeext &&
  10385. $as_test_x conftest$ac_exeext; then
  10386. ac_cv_lib_ICE_IceConnectionNumber=yes
  10387. else
  10388. echo "$as_me: failed program was:" >&5
  10389. sed 's/^/| /' conftest.$ac_ext >&5
  10390. ac_cv_lib_ICE_IceConnectionNumber=no
  10391. fi
  10392. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10393. conftest$ac_exeext conftest.$ac_ext
  10394. LIBS=$ac_check_lib_save_LIBS
  10395. fi
  10396. { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  10397. echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  10398. if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  10399. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  10400. fi
  10401. LDFLAGS=$ac_save_LDFLAGS
  10402. fi
  10403. if test x$no_x = xyes; then
  10404. { { echo "$as_me:$LINENO: error: Configure could not find required X11 libraries" >&5
  10405. echo "$as_me: error: Configure could not find required X11 libraries" >&2;}
  10406. { (exit aborting.); exit aborting.; }; }
  10407. fi
  10408. if test "x$X_PRE_LIBS" != x; then
  10409. { echo "$as_me:$LINENO: WARNING: Ignoring libraries \"$X_PRE_LIBS\" requested by configure." >&5
  10410. echo "$as_me: WARNING: Ignoring libraries \"$X_PRE_LIBS\" requested by configure." >&2;}
  10411. fi
  10412. LIBS="$LIBS -lX11 $X_EXTRA_LIBS"
  10413. CFLAGS="$CFLAGS $X_CFLAGS"
  10414. CXXFLAGS="$CXXFLAGS $X_CFLAGS"
  10415. LDFLAGS="$X_LIBS $LDFLAGS"
  10416. DSOFLAGS="$X_LIBS $DSOFLAGS"
  10417. cat >>confdefs.h <<\_ACEOF
  10418. #define USE_X11 1
  10419. _ACEOF
  10420. if test "x$x_includes" != x; then
  10421. ac_cpp="$ac_cpp -I$x_includes"
  10422. fi
  10423. GLLIB=
  10424. if test x$enable_gl != xno; then
  10425. { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
  10426. echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
  10427. if test "${ac_cv_search_dlopen+set}" = set; then
  10428. echo $ECHO_N "(cached) $ECHO_C" >&6
  10429. else
  10430. ac_func_search_save_LIBS=$LIBS
  10431. cat >conftest.$ac_ext <<_ACEOF
  10432. /* confdefs.h. */
  10433. _ACEOF
  10434. cat confdefs.h >>conftest.$ac_ext
  10435. cat >>conftest.$ac_ext <<_ACEOF
  10436. /* end confdefs.h. */
  10437. /* Override any GCC internal prototype to avoid an error.
  10438. Use char because int might match the return type of a GCC
  10439. builtin and then its argument prototype would still apply. */
  10440. #ifdef __cplusplus
  10441. extern "C"
  10442. #endif
  10443. char dlopen ();
  10444. int
  10445. main ()
  10446. {
  10447. return dlopen ();
  10448. ;
  10449. return 0;
  10450. }
  10451. _ACEOF
  10452. for ac_lib in '' dl; do
  10453. if test -z "$ac_lib"; then
  10454. ac_res="none required"
  10455. else
  10456. ac_res=-l$ac_lib
  10457. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10458. fi
  10459. rm -f conftest.$ac_objext conftest$ac_exeext
  10460. if { (ac_try="$ac_link"
  10461. case "(($ac_try" in
  10462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10463. *) ac_try_echo=$ac_try;;
  10464. esac
  10465. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10466. (eval "$ac_link") 2>conftest.er1
  10467. ac_status=$?
  10468. grep -v '^ *+' conftest.er1 >conftest.err
  10469. rm -f conftest.er1
  10470. cat conftest.err >&5
  10471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10472. (exit $ac_status); } && {
  10473. test -z "$ac_c_werror_flag" ||
  10474. test ! -s conftest.err
  10475. } && test -s conftest$ac_exeext &&
  10476. $as_test_x conftest$ac_exeext; then
  10477. ac_cv_search_dlopen=$ac_res
  10478. else
  10479. echo "$as_me: failed program was:" >&5
  10480. sed 's/^/| /' conftest.$ac_ext >&5
  10481. fi
  10482. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10483. conftest$ac_exeext
  10484. if test "${ac_cv_search_dlopen+set}" = set; then
  10485. break
  10486. fi
  10487. done
  10488. if test "${ac_cv_search_dlopen+set}" = set; then
  10489. :
  10490. else
  10491. ac_cv_search_dlopen=no
  10492. fi
  10493. rm conftest.$ac_ext
  10494. LIBS=$ac_func_search_save_LIBS
  10495. fi
  10496. { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
  10497. echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
  10498. ac_res=$ac_cv_search_dlopen
  10499. if test "$ac_res" != no; then
  10500. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10501. fi
  10502. if test "${ac_cv_header_GL_gl_h+set}" = set; then
  10503. { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  10504. echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  10505. if test "${ac_cv_header_GL_gl_h+set}" = set; then
  10506. echo $ECHO_N "(cached) $ECHO_C" >&6
  10507. fi
  10508. { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  10509. echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  10510. else
  10511. # Is the header compilable?
  10512. { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  10513. echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
  10514. cat >conftest.$ac_ext <<_ACEOF
  10515. /* confdefs.h. */
  10516. _ACEOF
  10517. cat confdefs.h >>conftest.$ac_ext
  10518. cat >>conftest.$ac_ext <<_ACEOF
  10519. /* end confdefs.h. */
  10520. $ac_includes_default
  10521. #include <GL/gl.h>
  10522. _ACEOF
  10523. rm -f conftest.$ac_objext
  10524. if { (ac_try="$ac_compile"
  10525. case "(($ac_try" in
  10526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10527. *) ac_try_echo=$ac_try;;
  10528. esac
  10529. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10530. (eval "$ac_compile") 2>conftest.er1
  10531. ac_status=$?
  10532. grep -v '^ *+' conftest.er1 >conftest.err
  10533. rm -f conftest.er1
  10534. cat conftest.err >&5
  10535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10536. (exit $ac_status); } && {
  10537. test -z "$ac_c_werror_flag" ||
  10538. test ! -s conftest.err
  10539. } && test -s conftest.$ac_objext; then
  10540. ac_header_compiler=yes
  10541. else
  10542. echo "$as_me: failed program was:" >&5
  10543. sed 's/^/| /' conftest.$ac_ext >&5
  10544. ac_header_compiler=no
  10545. fi
  10546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10547. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10548. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10549. # Is the header present?
  10550. { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  10551. echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
  10552. cat >conftest.$ac_ext <<_ACEOF
  10553. /* confdefs.h. */
  10554. _ACEOF
  10555. cat confdefs.h >>conftest.$ac_ext
  10556. cat >>conftest.$ac_ext <<_ACEOF
  10557. /* end confdefs.h. */
  10558. #include <GL/gl.h>
  10559. _ACEOF
  10560. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10561. case "(($ac_try" in
  10562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10563. *) ac_try_echo=$ac_try;;
  10564. esac
  10565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10566. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10567. ac_status=$?
  10568. grep -v '^ *+' conftest.er1 >conftest.err
  10569. rm -f conftest.er1
  10570. cat conftest.err >&5
  10571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10572. (exit $ac_status); } >/dev/null && {
  10573. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10574. test ! -s conftest.err
  10575. }; then
  10576. ac_header_preproc=yes
  10577. else
  10578. echo "$as_me: failed program was:" >&5
  10579. sed 's/^/| /' conftest.$ac_ext >&5
  10580. ac_header_preproc=no
  10581. fi
  10582. rm -f conftest.err conftest.$ac_ext
  10583. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10584. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10585. # So? What about this header?
  10586. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10587. yes:no: )
  10588. { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10589. echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10590. { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  10591. echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  10592. ac_header_preproc=yes
  10593. ;;
  10594. no:yes:* )
  10595. { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  10596. echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  10597. { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
  10598. echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
  10599. { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  10600. echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  10601. { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
  10602. echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10603. { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  10604. echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  10605. { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  10606. echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  10607. ;;
  10608. esac
  10609. { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  10610. echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  10611. if test "${ac_cv_header_GL_gl_h+set}" = set; then
  10612. echo $ECHO_N "(cached) $ECHO_C" >&6
  10613. else
  10614. ac_cv_header_GL_gl_h=$ac_header_preproc
  10615. fi
  10616. { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  10617. echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  10618. fi
  10619. if test $ac_cv_header_GL_gl_h = yes; then
  10620. { echo "$as_me:$LINENO: checking for glXMakeCurrent in -lGL" >&5
  10621. echo $ECHO_N "checking for glXMakeCurrent in -lGL... $ECHO_C" >&6; }
  10622. if test "${ac_cv_lib_GL_glXMakeCurrent+set}" = set; then
  10623. echo $ECHO_N "(cached) $ECHO_C" >&6
  10624. else
  10625. ac_check_lib_save_LIBS=$LIBS
  10626. LIBS="-lGL -lm $LIBS"
  10627. cat >conftest.$ac_ext <<_ACEOF
  10628. /* confdefs.h. */
  10629. _ACEOF
  10630. cat confdefs.h >>conftest.$ac_ext
  10631. cat >>conftest.$ac_ext <<_ACEOF
  10632. /* end confdefs.h. */
  10633. /* Override any GCC internal prototype to avoid an error.
  10634. Use char because int might match the return type of a GCC
  10635. builtin and then its argument prototype would still apply. */
  10636. #ifdef __cplusplus
  10637. extern "C"
  10638. #endif
  10639. char glXMakeCurrent ();
  10640. int
  10641. main ()
  10642. {
  10643. return glXMakeCurrent ();
  10644. ;
  10645. return 0;
  10646. }
  10647. _ACEOF
  10648. rm -f conftest.$ac_objext conftest$ac_exeext
  10649. if { (ac_try="$ac_link"
  10650. case "(($ac_try" in
  10651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10652. *) ac_try_echo=$ac_try;;
  10653. esac
  10654. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10655. (eval "$ac_link") 2>conftest.er1
  10656. ac_status=$?
  10657. grep -v '^ *+' conftest.er1 >conftest.err
  10658. rm -f conftest.er1
  10659. cat conftest.err >&5
  10660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10661. (exit $ac_status); } && {
  10662. test -z "$ac_c_werror_flag" ||
  10663. test ! -s conftest.err
  10664. } && test -s conftest$ac_exeext &&
  10665. $as_test_x conftest$ac_exeext; then
  10666. ac_cv_lib_GL_glXMakeCurrent=yes
  10667. else
  10668. echo "$as_me: failed program was:" >&5
  10669. sed 's/^/| /' conftest.$ac_ext >&5
  10670. ac_cv_lib_GL_glXMakeCurrent=no
  10671. fi
  10672. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10673. conftest$ac_exeext conftest.$ac_ext
  10674. LIBS=$ac_check_lib_save_LIBS
  10675. fi
  10676. { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXMakeCurrent" >&5
  10677. echo "${ECHO_T}$ac_cv_lib_GL_glXMakeCurrent" >&6; }
  10678. if test $ac_cv_lib_GL_glXMakeCurrent = yes; then
  10679. cat >>confdefs.h <<\_ACEOF
  10680. #define HAVE_GL 1
  10681. _ACEOF
  10682. GLLIB="-lGL"
  10683. else
  10684. { echo "$as_me:$LINENO: checking for glXMakeCurrent in -lMesaGL" >&5
  10685. echo $ECHO_N "checking for glXMakeCurrent in -lMesaGL... $ECHO_C" >&6; }
  10686. if test "${ac_cv_lib_MesaGL_glXMakeCurrent+set}" = set; then
  10687. echo $ECHO_N "(cached) $ECHO_C" >&6
  10688. else
  10689. ac_check_lib_save_LIBS=$LIBS
  10690. LIBS="-lMesaGL -lm $LIBS"
  10691. cat >conftest.$ac_ext <<_ACEOF
  10692. /* confdefs.h. */
  10693. _ACEOF
  10694. cat confdefs.h >>conftest.$ac_ext
  10695. cat >>conftest.$ac_ext <<_ACEOF
  10696. /* end confdefs.h. */
  10697. /* Override any GCC internal prototype to avoid an error.
  10698. Use char because int might match the return type of a GCC
  10699. builtin and then its argument prototype would still apply. */
  10700. #ifdef __cplusplus
  10701. extern "C"
  10702. #endif
  10703. char glXMakeCurrent ();
  10704. int
  10705. main ()
  10706. {
  10707. return glXMakeCurrent ();
  10708. ;
  10709. return 0;
  10710. }
  10711. _ACEOF
  10712. rm -f conftest.$ac_objext conftest$ac_exeext
  10713. if { (ac_try="$ac_link"
  10714. case "(($ac_try" in
  10715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10716. *) ac_try_echo=$ac_try;;
  10717. esac
  10718. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10719. (eval "$ac_link") 2>conftest.er1
  10720. ac_status=$?
  10721. grep -v '^ *+' conftest.er1 >conftest.err
  10722. rm -f conftest.er1
  10723. cat conftest.err >&5
  10724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10725. (exit $ac_status); } && {
  10726. test -z "$ac_c_werror_flag" ||
  10727. test ! -s conftest.err
  10728. } && test -s conftest$ac_exeext &&
  10729. $as_test_x conftest$ac_exeext; then
  10730. ac_cv_lib_MesaGL_glXMakeCurrent=yes
  10731. else
  10732. echo "$as_me: failed program was:" >&5
  10733. sed 's/^/| /' conftest.$ac_ext >&5
  10734. ac_cv_lib_MesaGL_glXMakeCurrent=no
  10735. fi
  10736. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10737. conftest$ac_exeext conftest.$ac_ext
  10738. LIBS=$ac_check_lib_save_LIBS
  10739. fi
  10740. { echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXMakeCurrent" >&5
  10741. echo "${ECHO_T}$ac_cv_lib_MesaGL_glXMakeCurrent" >&6; }
  10742. if test $ac_cv_lib_MesaGL_glXMakeCurrent = yes; then
  10743. cat >>confdefs.h <<\_ACEOF
  10744. #define HAVE_GL 1
  10745. _ACEOF
  10746. GLLIB=" -lMesaGL"
  10747. fi
  10748. fi
  10749. { echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
  10750. echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6; }
  10751. if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
  10752. echo $ECHO_N "(cached) $ECHO_C" >&6
  10753. else
  10754. ac_check_lib_save_LIBS=$LIBS
  10755. LIBS="-lGL -lm $LIBS"
  10756. cat >conftest.$ac_ext <<_ACEOF
  10757. /* confdefs.h. */
  10758. _ACEOF
  10759. cat confdefs.h >>conftest.$ac_ext
  10760. cat >>conftest.$ac_ext <<_ACEOF
  10761. /* end confdefs.h. */
  10762. /* Override any GCC internal prototype to avoid an error.
  10763. Use char because int might match the return type of a GCC
  10764. builtin and then its argument prototype would still apply. */
  10765. #ifdef __cplusplus
  10766. extern "C"
  10767. #endif
  10768. char glXGetProcAddressARB ();
  10769. int
  10770. main ()
  10771. {
  10772. return glXGetProcAddressARB ();
  10773. ;
  10774. return 0;
  10775. }
  10776. _ACEOF
  10777. rm -f conftest.$ac_objext conftest$ac_exeext
  10778. if { (ac_try="$ac_link"
  10779. case "(($ac_try" in
  10780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10781. *) ac_try_echo=$ac_try;;
  10782. esac
  10783. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10784. (eval "$ac_link") 2>conftest.er1
  10785. ac_status=$?
  10786. grep -v '^ *+' conftest.er1 >conftest.err
  10787. rm -f conftest.er1
  10788. cat conftest.err >&5
  10789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10790. (exit $ac_status); } && {
  10791. test -z "$ac_c_werror_flag" ||
  10792. test ! -s conftest.err
  10793. } && test -s conftest$ac_exeext &&
  10794. $as_test_x conftest$ac_exeext; then
  10795. ac_cv_lib_GL_glXGetProcAddressARB=yes
  10796. else
  10797. echo "$as_me: failed program was:" >&5
  10798. sed 's/^/| /' conftest.$ac_ext >&5
  10799. ac_cv_lib_GL_glXGetProcAddressARB=no
  10800. fi
  10801. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10802. conftest$ac_exeext conftest.$ac_ext
  10803. LIBS=$ac_check_lib_save_LIBS
  10804. fi
  10805. { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
  10806. echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6; }
  10807. if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
  10808. cat >>confdefs.h <<\_ACEOF
  10809. #define HAVE_GLXGETPROCADDRESSARB 1
  10810. _ACEOF
  10811. fi
  10812. fi
  10813. if test "${ac_cv_header_GL_glu_h+set}" = set; then
  10814. { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
  10815. echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
  10816. if test "${ac_cv_header_GL_glu_h+set}" = set; then
  10817. echo $ECHO_N "(cached) $ECHO_C" >&6
  10818. fi
  10819. { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
  10820. echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
  10821. else
  10822. # Is the header compilable?
  10823. { echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
  10824. echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6; }
  10825. cat >conftest.$ac_ext <<_ACEOF
  10826. /* confdefs.h. */
  10827. _ACEOF
  10828. cat confdefs.h >>conftest.$ac_ext
  10829. cat >>conftest.$ac_ext <<_ACEOF
  10830. /* end confdefs.h. */
  10831. $ac_includes_default
  10832. #include <GL/glu.h>
  10833. _ACEOF
  10834. rm -f conftest.$ac_objext
  10835. if { (ac_try="$ac_compile"
  10836. case "(($ac_try" in
  10837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10838. *) ac_try_echo=$ac_try;;
  10839. esac
  10840. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10841. (eval "$ac_compile") 2>conftest.er1
  10842. ac_status=$?
  10843. grep -v '^ *+' conftest.er1 >conftest.err
  10844. rm -f conftest.er1
  10845. cat conftest.err >&5
  10846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10847. (exit $ac_status); } && {
  10848. test -z "$ac_c_werror_flag" ||
  10849. test ! -s conftest.err
  10850. } && test -s conftest.$ac_objext; then
  10851. ac_header_compiler=yes
  10852. else
  10853. echo "$as_me: failed program was:" >&5
  10854. sed 's/^/| /' conftest.$ac_ext >&5
  10855. ac_header_compiler=no
  10856. fi
  10857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10858. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10859. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10860. # Is the header present?
  10861. { echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
  10862. echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6; }
  10863. cat >conftest.$ac_ext <<_ACEOF
  10864. /* confdefs.h. */
  10865. _ACEOF
  10866. cat confdefs.h >>conftest.$ac_ext
  10867. cat >>conftest.$ac_ext <<_ACEOF
  10868. /* end confdefs.h. */
  10869. #include <GL/glu.h>
  10870. _ACEOF
  10871. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10872. case "(($ac_try" in
  10873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10874. *) ac_try_echo=$ac_try;;
  10875. esac
  10876. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10877. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10878. ac_status=$?
  10879. grep -v '^ *+' conftest.er1 >conftest.err
  10880. rm -f conftest.er1
  10881. cat conftest.err >&5
  10882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10883. (exit $ac_status); } >/dev/null && {
  10884. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10885. test ! -s conftest.err
  10886. }; then
  10887. ac_header_preproc=yes
  10888. else
  10889. echo "$as_me: failed program was:" >&5
  10890. sed 's/^/| /' conftest.$ac_ext >&5
  10891. ac_header_preproc=no
  10892. fi
  10893. rm -f conftest.err conftest.$ac_ext
  10894. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10895. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10896. # So? What about this header?
  10897. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10898. yes:no: )
  10899. { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10900. echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10901. { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
  10902. echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
  10903. ac_header_preproc=yes
  10904. ;;
  10905. no:yes:* )
  10906. { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
  10907. echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
  10908. { echo "$as_me:$LINENO: WARNING: GL/glu.h: check for missing prerequisite headers?" >&5
  10909. echo "$as_me: WARNING: GL/glu.h: check for missing prerequisite headers?" >&2;}
  10910. { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
  10911. echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
  10912. { echo "$as_me:$LINENO: WARNING: GL/glu.h: section \"Present But Cannot Be Compiled\"" >&5
  10913. echo "$as_me: WARNING: GL/glu.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10914. { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
  10915. echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
  10916. { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
  10917. echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
  10918. ;;
  10919. esac
  10920. { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
  10921. echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
  10922. if test "${ac_cv_header_GL_glu_h+set}" = set; then
  10923. echo $ECHO_N "(cached) $ECHO_C" >&6
  10924. else
  10925. ac_cv_header_GL_glu_h=$ac_header_preproc
  10926. fi
  10927. { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
  10928. echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
  10929. fi
  10930. if test $ac_cv_header_GL_glu_h = yes; then
  10931. cat >>confdefs.h <<\_ACEOF
  10932. #define HAVE_GL_GLU_H 1
  10933. _ACEOF
  10934. if test x$ac_cv_lib_GL_glXMakeCurrent = xyes; then
  10935. GLLIB="-lGLU $GLLIB"
  10936. fi
  10937. if test x$ac_cv_lib_MesaGL_glXMakeCurrent = xyes; then
  10938. GLLIB="-lMesaGLU $GLLIB"
  10939. fi
  10940. fi
  10941. if test x$ac_cv_lib_GL_glXMakeCurrent != xyes -a x$ac_cv_lib_MesaGL_glXMakeCurrent != xyes; then
  10942. LINKFLTKGL=""
  10943. GLLIBNAME=""
  10944. GLDSONAME=""
  10945. GLDEMOS=""
  10946. fi
  10947. else
  10948. LINKFLTKGL=""
  10949. GLLIBNAME=""
  10950. GLDSONAME=""
  10951. GLDEMOS=""
  10952. fi
  10953. # Check whether --enable-xinerama was given.
  10954. if test "${enable_xinerama+set}" = set; then
  10955. enableval=$enable_xinerama;
  10956. fi
  10957. if test x$enable_xinerama != xno; then
  10958. { echo "$as_me:$LINENO: checking for XineramaIsActive in -lXinerama" >&5
  10959. echo $ECHO_N "checking for XineramaIsActive in -lXinerama... $ECHO_C" >&6; }
  10960. if test "${ac_cv_lib_Xinerama_XineramaIsActive+set}" = set; then
  10961. echo $ECHO_N "(cached) $ECHO_C" >&6
  10962. else
  10963. ac_check_lib_save_LIBS=$LIBS
  10964. LIBS="-lXinerama $LIBS"
  10965. cat >conftest.$ac_ext <<_ACEOF
  10966. /* confdefs.h. */
  10967. _ACEOF
  10968. cat confdefs.h >>conftest.$ac_ext
  10969. cat >>conftest.$ac_ext <<_ACEOF
  10970. /* end confdefs.h. */
  10971. /* Override any GCC internal prototype to avoid an error.
  10972. Use char because int might match the return type of a GCC
  10973. builtin and then its argument prototype would still apply. */
  10974. #ifdef __cplusplus
  10975. extern "C"
  10976. #endif
  10977. char XineramaIsActive ();
  10978. int
  10979. main ()
  10980. {
  10981. return XineramaIsActive ();
  10982. ;
  10983. return 0;
  10984. }
  10985. _ACEOF
  10986. rm -f conftest.$ac_objext conftest$ac_exeext
  10987. if { (ac_try="$ac_link"
  10988. case "(($ac_try" in
  10989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10990. *) ac_try_echo=$ac_try;;
  10991. esac
  10992. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10993. (eval "$ac_link") 2>conftest.er1
  10994. ac_status=$?
  10995. grep -v '^ *+' conftest.er1 >conftest.err
  10996. rm -f conftest.er1
  10997. cat conftest.err >&5
  10998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10999. (exit $ac_status); } && {
  11000. test -z "$ac_c_werror_flag" ||
  11001. test ! -s conftest.err
  11002. } && test -s conftest$ac_exeext &&
  11003. $as_test_x conftest$ac_exeext; then
  11004. ac_cv_lib_Xinerama_XineramaIsActive=yes
  11005. else
  11006. echo "$as_me: failed program was:" >&5
  11007. sed 's/^/| /' conftest.$ac_ext >&5
  11008. ac_cv_lib_Xinerama_XineramaIsActive=no
  11009. fi
  11010. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11011. conftest$ac_exeext conftest.$ac_ext
  11012. LIBS=$ac_check_lib_save_LIBS
  11013. fi
  11014. { echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaIsActive" >&5
  11015. echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaIsActive" >&6; }
  11016. if test $ac_cv_lib_Xinerama_XineramaIsActive = yes; then
  11017. cat >>confdefs.h <<\_ACEOF
  11018. #define HAVE_XINERAMA 1
  11019. _ACEOF
  11020. LIBS="-lXinerama $LIBS"
  11021. fi
  11022. fi
  11023. # Check whether --enable-xft was given.
  11024. if test "${enable_xft+set}" = set; then
  11025. enableval=$enable_xft;
  11026. fi
  11027. if test x$enable_xft != xno; then
  11028. # Extract the first word of "freetype-config", so it can be a program name with args.
  11029. set dummy freetype-config; ac_word=$2
  11030. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  11031. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11032. if test "${ac_cv_path_FTCONFIG+set}" = set; then
  11033. echo $ECHO_N "(cached) $ECHO_C" >&6
  11034. else
  11035. case $FTCONFIG in
  11036. [\\/]* | ?:[\\/]*)
  11037. ac_cv_path_FTCONFIG="$FTCONFIG" # Let the user override the test with a path.
  11038. ;;
  11039. *)
  11040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11041. for as_dir in $PATH
  11042. do
  11043. IFS=$as_save_IFS
  11044. test -z "$as_dir" && as_dir=.
  11045. for ac_exec_ext in '' $ac_executable_extensions; do
  11046. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11047. ac_cv_path_FTCONFIG="$as_dir/$ac_word$ac_exec_ext"
  11048. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11049. break 2
  11050. fi
  11051. done
  11052. done
  11053. IFS=$as_save_IFS
  11054. ;;
  11055. esac
  11056. fi
  11057. FTCONFIG=$ac_cv_path_FTCONFIG
  11058. if test -n "$FTCONFIG"; then
  11059. { echo "$as_me:$LINENO: result: $FTCONFIG" >&5
  11060. echo "${ECHO_T}$FTCONFIG" >&6; }
  11061. else
  11062. { echo "$as_me:$LINENO: result: no" >&5
  11063. echo "${ECHO_T}no" >&6; }
  11064. fi
  11065. if test "x$FTCONFIG" != x; then
  11066. CPPFLAGS="`$FTCONFIG --cflags` $CPPFLAGS"
  11067. CXXFLAGS="`$FTCONFIG --cflags` $CXXFLAGS"
  11068. { echo "$as_me:$LINENO: checking for FcPatternCreate in -lfontconfig" >&5
  11069. echo $ECHO_N "checking for FcPatternCreate in -lfontconfig... $ECHO_C" >&6; }
  11070. if test "${ac_cv_lib_fontconfig_FcPatternCreate+set}" = set; then
  11071. echo $ECHO_N "(cached) $ECHO_C" >&6
  11072. else
  11073. ac_check_lib_save_LIBS=$LIBS
  11074. LIBS="-lfontconfig $LIBS"
  11075. cat >conftest.$ac_ext <<_ACEOF
  11076. /* confdefs.h. */
  11077. _ACEOF
  11078. cat confdefs.h >>conftest.$ac_ext
  11079. cat >>conftest.$ac_ext <<_ACEOF
  11080. /* end confdefs.h. */
  11081. /* Override any GCC internal prototype to avoid an error.
  11082. Use char because int might match the return type of a GCC
  11083. builtin and then its argument prototype would still apply. */
  11084. #ifdef __cplusplus
  11085. extern "C"
  11086. #endif
  11087. char FcPatternCreate ();
  11088. int
  11089. main ()
  11090. {
  11091. return FcPatternCreate ();
  11092. ;
  11093. return 0;
  11094. }
  11095. _ACEOF
  11096. rm -f conftest.$ac_objext conftest$ac_exeext
  11097. if { (ac_try="$ac_link"
  11098. case "(($ac_try" in
  11099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11100. *) ac_try_echo=$ac_try;;
  11101. esac
  11102. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11103. (eval "$ac_link") 2>conftest.er1
  11104. ac_status=$?
  11105. grep -v '^ *+' conftest.er1 >conftest.err
  11106. rm -f conftest.er1
  11107. cat conftest.err >&5
  11108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11109. (exit $ac_status); } && {
  11110. test -z "$ac_c_werror_flag" ||
  11111. test ! -s conftest.err
  11112. } && test -s conftest$ac_exeext &&
  11113. $as_test_x conftest$ac_exeext; then
  11114. ac_cv_lib_fontconfig_FcPatternCreate=yes
  11115. else
  11116. echo "$as_me: failed program was:" >&5
  11117. sed 's/^/| /' conftest.$ac_ext >&5
  11118. ac_cv_lib_fontconfig_FcPatternCreate=no
  11119. fi
  11120. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11121. conftest$ac_exeext conftest.$ac_ext
  11122. LIBS=$ac_check_lib_save_LIBS
  11123. fi
  11124. { echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcPatternCreate" >&5
  11125. echo "${ECHO_T}$ac_cv_lib_fontconfig_FcPatternCreate" >&6; }
  11126. if test $ac_cv_lib_fontconfig_FcPatternCreate = yes; then
  11127. cat >>confdefs.h <<_ACEOF
  11128. #define HAVE_LIBFONTCONFIG 1
  11129. _ACEOF
  11130. LIBS="-lfontconfig $LIBS"
  11131. fi
  11132. if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
  11133. { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
  11134. echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
  11135. if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
  11136. echo $ECHO_N "(cached) $ECHO_C" >&6
  11137. fi
  11138. { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
  11139. echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
  11140. else
  11141. # Is the header compilable?
  11142. { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
  11143. echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
  11144. cat >conftest.$ac_ext <<_ACEOF
  11145. /* confdefs.h. */
  11146. _ACEOF
  11147. cat confdefs.h >>conftest.$ac_ext
  11148. cat >>conftest.$ac_ext <<_ACEOF
  11149. /* end confdefs.h. */
  11150. $ac_includes_default
  11151. #include <X11/Xft/Xft.h>
  11152. _ACEOF
  11153. rm -f conftest.$ac_objext
  11154. if { (ac_try="$ac_compile"
  11155. case "(($ac_try" in
  11156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11157. *) ac_try_echo=$ac_try;;
  11158. esac
  11159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11160. (eval "$ac_compile") 2>conftest.er1
  11161. ac_status=$?
  11162. grep -v '^ *+' conftest.er1 >conftest.err
  11163. rm -f conftest.er1
  11164. cat conftest.err >&5
  11165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11166. (exit $ac_status); } && {
  11167. test -z "$ac_c_werror_flag" ||
  11168. test ! -s conftest.err
  11169. } && test -s conftest.$ac_objext; then
  11170. ac_header_compiler=yes
  11171. else
  11172. echo "$as_me: failed program was:" >&5
  11173. sed 's/^/| /' conftest.$ac_ext >&5
  11174. ac_header_compiler=no
  11175. fi
  11176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11177. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11178. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11179. # Is the header present?
  11180. { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
  11181. echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
  11182. cat >conftest.$ac_ext <<_ACEOF
  11183. /* confdefs.h. */
  11184. _ACEOF
  11185. cat confdefs.h >>conftest.$ac_ext
  11186. cat >>conftest.$ac_ext <<_ACEOF
  11187. /* end confdefs.h. */
  11188. #include <X11/Xft/Xft.h>
  11189. _ACEOF
  11190. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11191. case "(($ac_try" in
  11192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11193. *) ac_try_echo=$ac_try;;
  11194. esac
  11195. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11196. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11197. ac_status=$?
  11198. grep -v '^ *+' conftest.er1 >conftest.err
  11199. rm -f conftest.er1
  11200. cat conftest.err >&5
  11201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11202. (exit $ac_status); } >/dev/null && {
  11203. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11204. test ! -s conftest.err
  11205. }; then
  11206. ac_header_preproc=yes
  11207. else
  11208. echo "$as_me: failed program was:" >&5
  11209. sed 's/^/| /' conftest.$ac_ext >&5
  11210. ac_header_preproc=no
  11211. fi
  11212. rm -f conftest.err conftest.$ac_ext
  11213. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11214. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11215. # So? What about this header?
  11216. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11217. yes:no: )
  11218. { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11219. echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11220. { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
  11221. echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
  11222. ac_header_preproc=yes
  11223. ;;
  11224. no:yes:* )
  11225. { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
  11226. echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
  11227. { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
  11228. echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
  11229. { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
  11230. echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
  11231. { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
  11232. echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11233. { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
  11234. echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
  11235. { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
  11236. echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
  11237. ;;
  11238. esac
  11239. { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
  11240. echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
  11241. if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
  11242. echo $ECHO_N "(cached) $ECHO_C" >&6
  11243. else
  11244. ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
  11245. fi
  11246. { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
  11247. echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
  11248. fi
  11249. if test $ac_cv_header_X11_Xft_Xft_h = yes; then
  11250. { echo "$as_me:$LINENO: checking for XftDrawCreate in -lXft" >&5
  11251. echo $ECHO_N "checking for XftDrawCreate in -lXft... $ECHO_C" >&6; }
  11252. if test "${ac_cv_lib_Xft_XftDrawCreate+set}" = set; then
  11253. echo $ECHO_N "(cached) $ECHO_C" >&6
  11254. else
  11255. ac_check_lib_save_LIBS=$LIBS
  11256. LIBS="-lXft $LIBS"
  11257. cat >conftest.$ac_ext <<_ACEOF
  11258. /* confdefs.h. */
  11259. _ACEOF
  11260. cat confdefs.h >>conftest.$ac_ext
  11261. cat >>conftest.$ac_ext <<_ACEOF
  11262. /* end confdefs.h. */
  11263. /* Override any GCC internal prototype to avoid an error.
  11264. Use char because int might match the return type of a GCC
  11265. builtin and then its argument prototype would still apply. */
  11266. #ifdef __cplusplus
  11267. extern "C"
  11268. #endif
  11269. char XftDrawCreate ();
  11270. int
  11271. main ()
  11272. {
  11273. return XftDrawCreate ();
  11274. ;
  11275. return 0;
  11276. }
  11277. _ACEOF
  11278. rm -f conftest.$ac_objext conftest$ac_exeext
  11279. if { (ac_try="$ac_link"
  11280. case "(($ac_try" in
  11281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11282. *) ac_try_echo=$ac_try;;
  11283. esac
  11284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11285. (eval "$ac_link") 2>conftest.er1
  11286. ac_status=$?
  11287. grep -v '^ *+' conftest.er1 >conftest.err
  11288. rm -f conftest.er1
  11289. cat conftest.err >&5
  11290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11291. (exit $ac_status); } && {
  11292. test -z "$ac_c_werror_flag" ||
  11293. test ! -s conftest.err
  11294. } && test -s conftest$ac_exeext &&
  11295. $as_test_x conftest$ac_exeext; then
  11296. ac_cv_lib_Xft_XftDrawCreate=yes
  11297. else
  11298. echo "$as_me: failed program was:" >&5
  11299. sed 's/^/| /' conftest.$ac_ext >&5
  11300. ac_cv_lib_Xft_XftDrawCreate=no
  11301. fi
  11302. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11303. conftest$ac_exeext conftest.$ac_ext
  11304. LIBS=$ac_check_lib_save_LIBS
  11305. fi
  11306. { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawCreate" >&5
  11307. echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawCreate" >&6; }
  11308. if test $ac_cv_lib_Xft_XftDrawCreate = yes; then
  11309. cat >>confdefs.h <<\_ACEOF
  11310. #define USE_XFT 1
  11311. _ACEOF
  11312. LIBS="-lXft $LIBS"
  11313. fi
  11314. fi
  11315. fi
  11316. fi
  11317. # Check whether --enable-xdbe was given.
  11318. if test "${enable_xdbe+set}" = set; then
  11319. enableval=$enable_xdbe;
  11320. fi
  11321. if test x$enable_xdbe != xno; then
  11322. { echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
  11323. echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6; }
  11324. if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
  11325. echo $ECHO_N "(cached) $ECHO_C" >&6
  11326. else
  11327. cat >conftest.$ac_ext <<_ACEOF
  11328. /* confdefs.h. */
  11329. _ACEOF
  11330. cat confdefs.h >>conftest.$ac_ext
  11331. cat >>conftest.$ac_ext <<_ACEOF
  11332. /* end confdefs.h. */
  11333. #include <X11/Xlib.h>
  11334. #include <X11/extensions/Xdbe.h>
  11335. _ACEOF
  11336. rm -f conftest.$ac_objext
  11337. if { (ac_try="$ac_compile"
  11338. case "(($ac_try" in
  11339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11340. *) ac_try_echo=$ac_try;;
  11341. esac
  11342. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11343. (eval "$ac_compile") 2>conftest.er1
  11344. ac_status=$?
  11345. grep -v '^ *+' conftest.er1 >conftest.err
  11346. rm -f conftest.er1
  11347. cat conftest.err >&5
  11348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11349. (exit $ac_status); } && {
  11350. test -z "$ac_c_werror_flag" ||
  11351. test ! -s conftest.err
  11352. } && test -s conftest.$ac_objext; then
  11353. ac_cv_header_X11_extensions_Xdbe_h=yes
  11354. else
  11355. echo "$as_me: failed program was:" >&5
  11356. sed 's/^/| /' conftest.$ac_ext >&5
  11357. ac_cv_header_X11_extensions_Xdbe_h=no
  11358. fi
  11359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11360. fi
  11361. { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
  11362. echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6; }
  11363. if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
  11364. cat >>confdefs.h <<\_ACEOF
  11365. #define HAVE_XDBE 1
  11366. _ACEOF
  11367. fi
  11368. { echo "$as_me:$LINENO: checking for XdbeQueryExtension in -lXext" >&5
  11369. echo $ECHO_N "checking for XdbeQueryExtension in -lXext... $ECHO_C" >&6; }
  11370. if test "${ac_cv_lib_Xext_XdbeQueryExtension+set}" = set; then
  11371. echo $ECHO_N "(cached) $ECHO_C" >&6
  11372. else
  11373. ac_check_lib_save_LIBS=$LIBS
  11374. LIBS="-lXext $LIBS"
  11375. cat >conftest.$ac_ext <<_ACEOF
  11376. /* confdefs.h. */
  11377. _ACEOF
  11378. cat confdefs.h >>conftest.$ac_ext
  11379. cat >>conftest.$ac_ext <<_ACEOF
  11380. /* end confdefs.h. */
  11381. /* Override any GCC internal prototype to avoid an error.
  11382. Use char because int might match the return type of a GCC
  11383. builtin and then its argument prototype would still apply. */
  11384. #ifdef __cplusplus
  11385. extern "C"
  11386. #endif
  11387. char XdbeQueryExtension ();
  11388. int
  11389. main ()
  11390. {
  11391. return XdbeQueryExtension ();
  11392. ;
  11393. return 0;
  11394. }
  11395. _ACEOF
  11396. rm -f conftest.$ac_objext conftest$ac_exeext
  11397. if { (ac_try="$ac_link"
  11398. case "(($ac_try" in
  11399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11400. *) ac_try_echo=$ac_try;;
  11401. esac
  11402. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11403. (eval "$ac_link") 2>conftest.er1
  11404. ac_status=$?
  11405. grep -v '^ *+' conftest.er1 >conftest.err
  11406. rm -f conftest.er1
  11407. cat conftest.err >&5
  11408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11409. (exit $ac_status); } && {
  11410. test -z "$ac_c_werror_flag" ||
  11411. test ! -s conftest.err
  11412. } && test -s conftest$ac_exeext &&
  11413. $as_test_x conftest$ac_exeext; then
  11414. ac_cv_lib_Xext_XdbeQueryExtension=yes
  11415. else
  11416. echo "$as_me: failed program was:" >&5
  11417. sed 's/^/| /' conftest.$ac_ext >&5
  11418. ac_cv_lib_Xext_XdbeQueryExtension=no
  11419. fi
  11420. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11421. conftest$ac_exeext conftest.$ac_ext
  11422. LIBS=$ac_check_lib_save_LIBS
  11423. fi
  11424. { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5
  11425. echo "${ECHO_T}$ac_cv_lib_Xext_XdbeQueryExtension" >&6; }
  11426. if test $ac_cv_lib_Xext_XdbeQueryExtension = yes; then
  11427. LIBS="-lXext $LIBS"
  11428. fi
  11429. fi
  11430. # Extract the first word of "xprop", so it can be a program name with args.
  11431. set dummy xprop; ac_word=$2
  11432. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  11433. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11434. if test "${ac_cv_path_XPROP+set}" = set; then
  11435. echo $ECHO_N "(cached) $ECHO_C" >&6
  11436. else
  11437. case $XPROP in
  11438. [\\/]* | ?:[\\/]*)
  11439. ac_cv_path_XPROP="$XPROP" # Let the user override the test with a path.
  11440. ;;
  11441. *)
  11442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11443. for as_dir in $PATH
  11444. do
  11445. IFS=$as_save_IFS
  11446. test -z "$as_dir" && as_dir=.
  11447. for ac_exec_ext in '' $ac_executable_extensions; do
  11448. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11449. ac_cv_path_XPROP="$as_dir/$ac_word$ac_exec_ext"
  11450. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11451. break 2
  11452. fi
  11453. done
  11454. done
  11455. IFS=$as_save_IFS
  11456. ;;
  11457. esac
  11458. fi
  11459. XPROP=$ac_cv_path_XPROP
  11460. if test -n "$XPROP"; then
  11461. { echo "$as_me:$LINENO: result: $XPROP" >&5
  11462. echo "${ECHO_T}$XPROP" >&6; }
  11463. else
  11464. { echo "$as_me:$LINENO: result: no" >&5
  11465. echo "${ECHO_T}no" >&6; }
  11466. fi
  11467. { echo "$as_me:$LINENO: checking for X overlay visuals" >&5
  11468. echo $ECHO_N "checking for X overlay visuals... $ECHO_C" >&6; }
  11469. if test "${ac_cv_have_overlay+set}" = set; then
  11470. echo $ECHO_N "(cached) $ECHO_C" >&6
  11471. else
  11472. if test "x$XPROP" != x; then
  11473. if $XPROP -root 2>/dev/null | grep -c "SERVER_OVERLAY_VISUALS" >/dev/null; then
  11474. ac_cv_have_overlay=yes
  11475. else
  11476. ac_cv_have_overlay=no
  11477. fi
  11478. else
  11479. ac_cv_have_overlay=no
  11480. fi
  11481. fi
  11482. { echo "$as_me:$LINENO: result: $ac_cv_have_overlay" >&5
  11483. echo "${ECHO_T}$ac_cv_have_overlay" >&6; }
  11484. if test x$ac_cv_have_overlay = xyes; then
  11485. cat >>confdefs.h <<\_ACEOF
  11486. #define HAVE_OVERLAY 1
  11487. _ACEOF
  11488. fi
  11489. # Make symlinks since UNIX/Linux is case sensitive,
  11490. # but Cygwin in general not.
  11491. case $uname in
  11492. CYGWIN*)
  11493. HLINKS="#"
  11494. ;;
  11495. *)
  11496. ;;
  11497. esac
  11498. # Make symlinks since UNIX/Linux is case sensitive,
  11499. # but only if explicitly configured (default=no)
  11500. if test "x$with_links" != xyes; then
  11501. HLINKS="#"
  11502. fi
  11503. # Install/Uninstall FLUID application support files
  11504. INSTALL_DESKTOP="install-linux"
  11505. UNINSTALL_DESKTOP="uninstall-linux"
  11506. ;;
  11507. esac
  11508. case "$uname" in
  11509. *BSD* | Darwin*)
  11510. # *BSD
  11511. CAT1EXT=0
  11512. CAT3EXT=0
  11513. CAT6EXT=0
  11514. ;;
  11515. IRIX*)
  11516. # SGI IRIX
  11517. CAT1EXT=z
  11518. CAT3EXT=z
  11519. CAT6EXT=z
  11520. ;;
  11521. *)
  11522. # All others
  11523. CAT1EXT=1
  11524. CAT3EXT=3
  11525. CAT6EXT=6
  11526. ;;
  11527. esac
  11528. if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/usr"; then
  11529. case "$uname" in
  11530. *BSD* | Darwin* | Linux*)
  11531. # *BSD, Darwin, and Linux
  11532. mandir="\${prefix}/share/man"
  11533. ;;
  11534. IRIX*)
  11535. # SGI IRIX
  11536. mandir="\${prefix}/share/catman"
  11537. ;;
  11538. esac
  11539. fi
  11540. if test "$prefix" = NONE; then
  11541. prefix=/usr/local
  11542. fi
  11543. if test "$exec_prefix" = NONE; then
  11544. exec_prefix="\${prefix}"
  11545. fi
  11546. if test "$uname" = "IRIX" -a $uversion -ge 62 -a "$libdir" = "\${exec_prefix}/lib" -a "$exec_prefix" = "\${prefix}" -a "$prefix" = "/usr"; then
  11547. libdir="/usr/lib32"
  11548. fi
  11549. MAKEDEPEND="\$(CXX) -M"
  11550. if test -n "$GCC"; then
  11551. # Show all standard warnings + unused variables, conversion errors,
  11552. # and inlining problems when compiling...
  11553. OPTIM="-Wall -Wunused -Wno-format-y2k $OPTIM"
  11554. # The following additional warnings are useful for tracking down problems...
  11555. #OPTIM="-Wshadow -Wconversion $OPTIM"
  11556. # We know that Carbon is deprecated on OS X 10.4. To avoid hundreds of warnings
  11557. # we will temporarily disable 'deprecated' warnings on OS X.
  11558. if test "$uname" = "Darwin" -a $uversion -ge 800; then
  11559. OPTIM="-Wno-deprecated-declarations $OPTIM"
  11560. fi
  11561. # Set the default compiler optimizations...
  11562. if test -z "$DEBUGFLAG"; then
  11563. #
  11564. # Note: Can't use -fomit-frame-pointer - prevents tools like
  11565. # libsafe from working!
  11566. #
  11567. # Don't use -fforce-mem, -fforce-addr, or -fcaller-saves.
  11568. # They all seem to make either no difference or enlarge
  11569. # the code by a few hundred bytes.
  11570. #
  11571. # "-Os" seems to be the best compromise between speed and
  11572. # code size. "-O3" and higher seem to make no effective
  11573. # difference in the speed of the code, but does bloat the
  11574. # library 10+%.
  11575. #
  11576. if test "x$with_optim" != x; then
  11577. OPTIM="$with_optim $OPTIM"
  11578. else
  11579. OPTIM="-Os $OPTIM"
  11580. fi
  11581. fi
  11582. # Generate position-independent code when needed...
  11583. if test $PICFLAG = 1; then
  11584. OPTIM="$OPTIM -fPIC"
  11585. fi
  11586. # See if GCC supports -fno-exceptions...
  11587. { echo "$as_me:$LINENO: checking if GCC supports -fno-exceptions" >&5
  11588. echo $ECHO_N "checking if GCC supports -fno-exceptions... $ECHO_C" >&6; }
  11589. OLDCFLAGS="$CFLAGS"
  11590. CFLAGS="$CFLAGS -fno-exceptions"
  11591. cat >conftest.$ac_ext <<_ACEOF
  11592. /* confdefs.h. */
  11593. _ACEOF
  11594. cat confdefs.h >>conftest.$ac_ext
  11595. cat >>conftest.$ac_ext <<_ACEOF
  11596. /* end confdefs.h. */
  11597. int
  11598. main ()
  11599. {
  11600. ;
  11601. return 0;
  11602. }
  11603. _ACEOF
  11604. rm -f conftest.$ac_objext
  11605. if { (ac_try="$ac_compile"
  11606. case "(($ac_try" in
  11607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11608. *) ac_try_echo=$ac_try;;
  11609. esac
  11610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11611. (eval "$ac_compile") 2>conftest.er1
  11612. ac_status=$?
  11613. grep -v '^ *+' conftest.er1 >conftest.err
  11614. rm -f conftest.er1
  11615. cat conftest.err >&5
  11616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11617. (exit $ac_status); } && {
  11618. test -z "$ac_c_werror_flag" ||
  11619. test ! -s conftest.err
  11620. } && test -s conftest.$ac_objext; then
  11621. OPTIM="$OPTIM -fno-exceptions"
  11622. { echo "$as_me:$LINENO: result: yes" >&5
  11623. echo "${ECHO_T}yes" >&6; }
  11624. else
  11625. echo "$as_me: failed program was:" >&5
  11626. sed 's/^/| /' conftest.$ac_ext >&5
  11627. { echo "$as_me:$LINENO: result: no" >&5
  11628. echo "${ECHO_T}no" >&6; }
  11629. fi
  11630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11631. CFLAGS="$OLDCFLAGS"
  11632. # See if GCC supports -fno-strict-aliasing...
  11633. { echo "$as_me:$LINENO: checking if GCC supports -fno-strict-aliasing" >&5
  11634. echo $ECHO_N "checking if GCC supports -fno-strict-aliasing... $ECHO_C" >&6; }
  11635. OLDCFLAGS="$CFLAGS"
  11636. CFLAGS="$CFLAGS -fno-strict-aliasing"
  11637. cat >conftest.$ac_ext <<_ACEOF
  11638. /* confdefs.h. */
  11639. _ACEOF
  11640. cat confdefs.h >>conftest.$ac_ext
  11641. cat >>conftest.$ac_ext <<_ACEOF
  11642. /* end confdefs.h. */
  11643. int
  11644. main ()
  11645. {
  11646. ;
  11647. return 0;
  11648. }
  11649. _ACEOF
  11650. rm -f conftest.$ac_objext
  11651. if { (ac_try="$ac_compile"
  11652. case "(($ac_try" in
  11653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11654. *) ac_try_echo=$ac_try;;
  11655. esac
  11656. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11657. (eval "$ac_compile") 2>conftest.er1
  11658. ac_status=$?
  11659. grep -v '^ *+' conftest.er1 >conftest.err
  11660. rm -f conftest.er1
  11661. cat conftest.err >&5
  11662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11663. (exit $ac_status); } && {
  11664. test -z "$ac_c_werror_flag" ||
  11665. test ! -s conftest.err
  11666. } && test -s conftest.$ac_objext; then
  11667. OPTIM="$OPTIM -fno-strict-aliasing"
  11668. { echo "$as_me:$LINENO: result: yes" >&5
  11669. echo "${ECHO_T}yes" >&6; }
  11670. else
  11671. echo "$as_me: failed program was:" >&5
  11672. sed 's/^/| /' conftest.$ac_ext >&5
  11673. { echo "$as_me:$LINENO: result: no" >&5
  11674. echo "${ECHO_T}no" >&6; }
  11675. fi
  11676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11677. CFLAGS="$OLDCFLAGS"
  11678. # See if we are running Solaris; if so, try the -fpermissive option...
  11679. # This option is required on some versions of Solaris to work around
  11680. # bugs in the X headers up through Solaris 7.
  11681. #
  11682. # Unlike the other compiler/optimization settings, this one is placed
  11683. # in CFLAGS and CXXFLAGS so that fltk-config will provide the option
  11684. # to clients - otherwise client apps will not compile properly...
  11685. if test "$uname" = SunOS; then
  11686. { echo "$as_me:$LINENO: checking if GCC supports -fpermissive" >&5
  11687. echo $ECHO_N "checking if GCC supports -fpermissive... $ECHO_C" >&6; }
  11688. OLDCFLAGS="$CFLAGS"
  11689. CFLAGS="$CFLAGS -fpermissive"
  11690. cat >conftest.$ac_ext <<_ACEOF
  11691. /* confdefs.h. */
  11692. _ACEOF
  11693. cat confdefs.h >>conftest.$ac_ext
  11694. cat >>conftest.$ac_ext <<_ACEOF
  11695. /* end confdefs.h. */
  11696. int
  11697. main ()
  11698. {
  11699. ;
  11700. return 0;
  11701. }
  11702. _ACEOF
  11703. rm -f conftest.$ac_objext
  11704. if { (ac_try="$ac_compile"
  11705. case "(($ac_try" in
  11706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11707. *) ac_try_echo=$ac_try;;
  11708. esac
  11709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11710. (eval "$ac_compile") 2>conftest.er1
  11711. ac_status=$?
  11712. grep -v '^ *+' conftest.er1 >conftest.err
  11713. rm -f conftest.er1
  11714. cat conftest.err >&5
  11715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11716. (exit $ac_status); } && {
  11717. test -z "$ac_c_werror_flag" ||
  11718. test ! -s conftest.err
  11719. } && test -s conftest.$ac_objext; then
  11720. CXXFLAGS="$CXXFLAGS -fpermissive"
  11721. { echo "$as_me:$LINENO: result: yes" >&5
  11722. echo "${ECHO_T}yes" >&6; }
  11723. else
  11724. echo "$as_me: failed program was:" >&5
  11725. sed 's/^/| /' conftest.$ac_ext >&5
  11726. CFLAGS="$OLDCFLAGS"
  11727. { echo "$as_me:$LINENO: result: no" >&5
  11728. echo "${ECHO_T}no" >&6; }
  11729. fi
  11730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11731. fi
  11732. else
  11733. case "$uname" in
  11734. IRIX*)
  11735. # Running some flavor of IRIX; see which version and
  11736. # set things up according...
  11737. if test "$uversion" -ge 62; then
  11738. # We are running IRIX 6.2 or higher; uncomment the following
  11739. # lines if you don't have IDO 7.2 or higher:
  11740. #
  11741. # CXX="CC -n32 -mips3"
  11742. # CC="cc -n32 -mips3"
  11743. # LD="ld -n32 -mips3"
  11744. # MAKEDEPEND="CC -M"
  11745. if test "x`grep abi=n32 /etc/compiler.defaults`" = x; then
  11746. { echo "$as_me:$LINENO: WARNING: FOR BEST RESULTS BEFORE COMPILING: setenv SGI_ABI \"-n32 -mips3\"" >&5
  11747. echo "$as_me: WARNING: FOR BEST RESULTS BEFORE COMPILING: setenv SGI_ABI \"-n32 -mips3\"" >&2;}
  11748. fi
  11749. OPTIM="-fullwarn $OPTIM"
  11750. fi
  11751. if test -z "$DEBUGFLAG"; then
  11752. if test "x$with_optim" != x; then
  11753. OPTIM="$with_optim $OPTIM"
  11754. else
  11755. OPTIM="-O2 $OPTIM"
  11756. if test $uversion -gt 62; then
  11757. OPTIM="-OPT:Olimit=4000 $OPTIM"
  11758. fi
  11759. fi
  11760. fi
  11761. ;;
  11762. HP-UX*)
  11763. # Running HP-UX; these options should work for the HP compilers.
  11764. if test -z "$DEBUGFLAG"; then
  11765. if test "x$with_optim" != x; then
  11766. OPTIM="$with_optim $OPTIM"
  11767. else
  11768. OPTIM="+O2 $OPTIM"
  11769. fi
  11770. fi
  11771. if test $PICFLAG = 1; then
  11772. OPTIM="+z $OPTIM"
  11773. fi
  11774. CXXFLAGS="$CXXFLAGS +W336,501,736,740,749,829"
  11775. ;;
  11776. OSF1*)
  11777. # Running Digital/Tru64 UNIX; these options should work for the
  11778. # Digital/Compaq/NewHP compilers.
  11779. if test -z "$DEBUGFLAG"; then
  11780. if test "x$with_optim" != x; then
  11781. OPTIM="$with_optim $OPTIM"
  11782. else
  11783. OPTIM="-O2 $OPTIM"
  11784. fi
  11785. fi
  11786. ;;
  11787. SunOS*)
  11788. # Solaris
  11789. if test -z "$DEBUGFLAG"; then
  11790. if test "x$with_optim" != x; then
  11791. OPTIM="$with_optim $OPTIM"
  11792. else
  11793. OPTIM="-xO3 $OPTIM"
  11794. fi
  11795. fi
  11796. if test $PICFLAG = 1; then
  11797. OPTIM="-KPIC $OPTIM"
  11798. fi
  11799. ;;
  11800. AIX*)
  11801. if test -z "$DEBUGFLAG"; then
  11802. if test "x$with_optim" != x; then
  11803. OPTIM="$with_optim $OPTIM"
  11804. else
  11805. OPTIM="-O2 $OPTIM"
  11806. fi
  11807. fi
  11808. { echo "$as_me:$LINENO: WARNING: The AIX C and C++ compilers are known not to correctly compile the FLTK library." >&5
  11809. echo "$as_me: WARNING: The AIX C and C++ compilers are known not to correctly compile the FLTK library." >&2;}
  11810. ;;
  11811. *)
  11812. # Running some other operating system; inform the user they
  11813. # should contribute the necessary options via the STR form..
  11814. { echo "$as_me:$LINENO: WARNING: Building FLTK with default compiler optimizations" >&5
  11815. echo "$as_me: WARNING: Building FLTK with default compiler optimizations" >&2;}
  11816. { echo "$as_me:$LINENO: WARNING: Send the FLTK developers your uname and compiler options via http://www.fltk.org/str.php" >&5
  11817. echo "$as_me: WARNING: Send the FLTK developers your uname and compiler options via http://www.fltk.org/str.php" >&2;}
  11818. ;;
  11819. esac
  11820. fi
  11821. OPTIM="$DEBUGFLAG $OPTIM"
  11822. if test `uname` = Darwin; then
  11823. if test "x$with_archflags" != x ; then
  11824. CFLAGS="`echo $CFLAGS | sed -e "s/$with_archflags//g"`"
  11825. fi
  11826. fi
  11827. case $uname in
  11828. MINGW*)
  11829. # Determine the path where MSys has /usr installed
  11830. msyspath=`mount | grep '\/usr' | grep -v '\/usr\/bin' | cut -d ' ' -f -1 | sed -e 's/\\\/\// g'`
  11831. # Then substitute that in the WIN32 path instead of /usr
  11832. cat >>confdefs.h <<_ACEOF
  11833. #define FLTK_DOCDIR "$msyspath/local/share/doc/fltk"
  11834. _ACEOF
  11835. ;;
  11836. *)
  11837. if test x$prefix = xNONE; then
  11838. cat >>confdefs.h <<_ACEOF
  11839. #define FLTK_DOCDIR "/usr/local/share/doc/fltk"
  11840. _ACEOF
  11841. else
  11842. cat >>confdefs.h <<_ACEOF
  11843. #define FLTK_DOCDIR "$prefix/share/doc/fltk"
  11844. _ACEOF
  11845. fi
  11846. ;;
  11847. esac
  11848. if test x$prefix = xNONE; then
  11849. cat >>confdefs.h <<_ACEOF
  11850. #define FLTK_DATADIR "/usr/local/share/fltk"
  11851. _ACEOF
  11852. else
  11853. cat >>confdefs.h <<_ACEOF
  11854. #define FLTK_DATADIR "$prefix/share/fltk"
  11855. _ACEOF
  11856. fi
  11857. echo ""
  11858. echo "Configuration Summary"
  11859. echo "-------------------------------------------------------------------------"
  11860. case $uname_GUI in
  11861. CYGWIN* | MINGW*)
  11862. graphics="GDI"
  11863. ;;
  11864. Darwin*)
  11865. graphics="Quartz"
  11866. ;;
  11867. *)
  11868. graphics="X11"
  11869. if test x$enable_xft != xno; then
  11870. graphics="$graphics+Xft"
  11871. fi
  11872. if test x$enable_xdbe != xno; then
  11873. graphics="$graphics+Xdbe"
  11874. fi
  11875. if test x$enable_xinerama != xno; then
  11876. graphics="$graphics+Xinerama"
  11877. fi
  11878. ;;
  11879. esac
  11880. echo " Directories: prefix=$prefix"
  11881. echo " bindir=$bindir"
  11882. echo " datadir=$datadir"
  11883. echo " datarootdir=$datarootdir"
  11884. echo " exec_prefix=$exec_prefix"
  11885. echo " includedir=$includedir"
  11886. echo " libdir=$libdir"
  11887. echo " mandir=$mandir"
  11888. case $uname in
  11889. MINGW*)
  11890. echo " MSys docpath=$msyspath/local/share/doc/fltk"
  11891. ;;
  11892. esac
  11893. echo " Graphics: $graphics"
  11894. if test x$JPEG = x; then
  11895. echo "Image Libraries: JPEG=System"
  11896. else
  11897. echo "Image Libraries: JPEG=Builtin"
  11898. fi
  11899. if test x$PNG = x; then
  11900. echo " PNG=System"
  11901. else
  11902. echo " PNG=Builtin"
  11903. fi
  11904. if test x$ZLIB = x; then
  11905. echo " ZLIB=System"
  11906. else
  11907. echo " ZLIB=Builtin"
  11908. fi
  11909. if test x$enable_cairo = xyes; then
  11910. echo " CAIRO=lib"
  11911. fi
  11912. if test x$enable_cairoext = xyes; then
  11913. echo " CAIRO=internal_use"
  11914. fi
  11915. if test x$enable_largefile != xno; then
  11916. echo " Large Files: YES"
  11917. else
  11918. echo " Large Files: NO"
  11919. fi
  11920. if test x$GLDEMOS = x; then
  11921. echo " OpenGL: NO"
  11922. else
  11923. echo " OpenGL: YES"
  11924. fi
  11925. if test x$THREADS = x; then
  11926. echo " Threads: NO"
  11927. else
  11928. echo " Threads: YES"
  11929. fi
  11930. ac_config_headers="$ac_config_headers config.h:configh.in"
  11931. ac_config_files="$ac_config_files makeinclude fltk.list fltk-config fltk.spec FL/Makefile"
  11932. cat >confcache <<\_ACEOF
  11933. # This file is a shell script that caches the results of configure
  11934. # tests run on this system so they can be shared between configure
  11935. # scripts and configure runs, see configure's option --config-cache.
  11936. # It is not useful on other systems. If it contains results you don't
  11937. # want to keep, you may remove or edit it.
  11938. #
  11939. # config.status only pays attention to the cache file if you give it
  11940. # the --recheck option to rerun configure.
  11941. #
  11942. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11943. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11944. # following values.
  11945. _ACEOF
  11946. # The following way of writing the cache mishandles newlines in values,
  11947. # but we know of no workaround that is simple, portable, and efficient.
  11948. # So, we kill variables containing newlines.
  11949. # Ultrix sh set writes to stderr and can't be redirected directly,
  11950. # and sets the high bit in the cache file unless we assign to the vars.
  11951. (
  11952. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11953. eval ac_val=\$$ac_var
  11954. case $ac_val in #(
  11955. *${as_nl}*)
  11956. case $ac_var in #(
  11957. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11958. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11959. esac
  11960. case $ac_var in #(
  11961. _ | IFS | as_nl) ;; #(
  11962. *) $as_unset $ac_var ;;
  11963. esac ;;
  11964. esac
  11965. done
  11966. (set) 2>&1 |
  11967. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11968. *${as_nl}ac_space=\ *)
  11969. # `set' does not quote correctly, so add quotes (double-quote
  11970. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11971. sed -n \
  11972. "s/'/'\\\\''/g;
  11973. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11974. ;; #(
  11975. *)
  11976. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11977. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11978. ;;
  11979. esac |
  11980. sort
  11981. ) |
  11982. sed '
  11983. /^ac_cv_env_/b end
  11984. t clear
  11985. :clear
  11986. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11987. t end
  11988. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11989. :end' >>confcache
  11990. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11991. if test -w "$cache_file"; then
  11992. test "x$cache_file" != "x/dev/null" &&
  11993. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11994. echo "$as_me: updating cache $cache_file" >&6;}
  11995. cat confcache >$cache_file
  11996. else
  11997. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11998. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11999. fi
  12000. fi
  12001. rm -f confcache
  12002. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12003. # Let make expand exec_prefix.
  12004. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12005. DEFS=-DHAVE_CONFIG_H
  12006. ac_libobjs=
  12007. ac_ltlibobjs=
  12008. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12009. # 1. Remove the extension, and $U if already installed.
  12010. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12011. ac_i=`echo "$ac_i" | sed "$ac_script"`
  12012. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12013. # will be set to the directory where LIBOBJS objects are built.
  12014. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12015. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12016. done
  12017. LIBOBJS=$ac_libobjs
  12018. LTLIBOBJS=$ac_ltlibobjs
  12019. : ${CONFIG_STATUS=./config.status}
  12020. ac_clean_files_save=$ac_clean_files
  12021. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12022. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12023. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12024. cat >$CONFIG_STATUS <<_ACEOF
  12025. #! $SHELL
  12026. # Generated by $as_me.
  12027. # Run this file to recreate the current configuration.
  12028. # Compiler output produced by configure, useful for debugging
  12029. # configure, is in config.log if it exists.
  12030. debug=false
  12031. ac_cs_recheck=false
  12032. ac_cs_silent=false
  12033. SHELL=\${CONFIG_SHELL-$SHELL}
  12034. _ACEOF
  12035. cat >>$CONFIG_STATUS <<\_ACEOF
  12036. ## --------------------- ##
  12037. ## M4sh Initialization. ##
  12038. ## --------------------- ##
  12039. # Be more Bourne compatible
  12040. DUALCASE=1; export DUALCASE # for MKS sh
  12041. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12042. emulate sh
  12043. NULLCMD=:
  12044. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12045. # is contrary to our usage. Disable this feature.
  12046. alias -g '${1+"$@"}'='"$@"'
  12047. setopt NO_GLOB_SUBST
  12048. else
  12049. case `(set -o) 2>/dev/null` in
  12050. *posix*) set -o posix ;;
  12051. esac
  12052. fi
  12053. # PATH needs CR
  12054. # Avoid depending upon Character Ranges.
  12055. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12056. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12057. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12058. as_cr_digits='0123456789'
  12059. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12060. # The user is always right.
  12061. if test "${PATH_SEPARATOR+set}" != set; then
  12062. echo "#! /bin/sh" >conf$$.sh
  12063. echo "exit 0" >>conf$$.sh
  12064. chmod +x conf$$.sh
  12065. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12066. PATH_SEPARATOR=';'
  12067. else
  12068. PATH_SEPARATOR=:
  12069. fi
  12070. rm -f conf$$.sh
  12071. fi
  12072. # Support unset when possible.
  12073. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12074. as_unset=unset
  12075. else
  12076. as_unset=false
  12077. fi
  12078. # IFS
  12079. # We need space, tab and new line, in precisely that order. Quoting is
  12080. # there to prevent editors from complaining about space-tab.
  12081. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12082. # splitting by setting IFS to empty value.)
  12083. as_nl='
  12084. '
  12085. IFS=" "" $as_nl"
  12086. # Find who we are. Look in the path if we contain no directory separator.
  12087. case $0 in
  12088. *[\\/]* ) as_myself=$0 ;;
  12089. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12090. for as_dir in $PATH
  12091. do
  12092. IFS=$as_save_IFS
  12093. test -z "$as_dir" && as_dir=.
  12094. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12095. done
  12096. IFS=$as_save_IFS
  12097. ;;
  12098. esac
  12099. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12100. # in which case we are not to be found in the path.
  12101. if test "x$as_myself" = x; then
  12102. as_myself=$0
  12103. fi
  12104. if test ! -f "$as_myself"; then
  12105. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12106. { (exit 1); exit 1; }
  12107. fi
  12108. # Work around bugs in pre-3.0 UWIN ksh.
  12109. for as_var in ENV MAIL MAILPATH
  12110. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12111. done
  12112. PS1='$ '
  12113. PS2='> '
  12114. PS4='+ '
  12115. # NLS nuisances.
  12116. for as_var in \
  12117. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12118. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12119. LC_TELEPHONE LC_TIME
  12120. do
  12121. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12122. eval $as_var=C; export $as_var
  12123. else
  12124. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12125. fi
  12126. done
  12127. # Required to use basename.
  12128. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12129. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12130. as_expr=expr
  12131. else
  12132. as_expr=false
  12133. fi
  12134. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12135. as_basename=basename
  12136. else
  12137. as_basename=false
  12138. fi
  12139. # Name of the executable.
  12140. as_me=`$as_basename -- "$0" ||
  12141. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12142. X"$0" : 'X\(//\)$' \| \
  12143. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12144. echo X/"$0" |
  12145. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12146. s//\1/
  12147. q
  12148. }
  12149. /^X\/\(\/\/\)$/{
  12150. s//\1/
  12151. q
  12152. }
  12153. /^X\/\(\/\).*/{
  12154. s//\1/
  12155. q
  12156. }
  12157. s/.*/./; q'`
  12158. # CDPATH.
  12159. $as_unset CDPATH
  12160. as_lineno_1=$LINENO
  12161. as_lineno_2=$LINENO
  12162. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12163. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12164. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12165. # uniformly replaced by the line number. The first 'sed' inserts a
  12166. # line-number line after each line using $LINENO; the second 'sed'
  12167. # does the real work. The second script uses 'N' to pair each
  12168. # line-number line with the line containing $LINENO, and appends
  12169. # trailing '-' during substitution so that $LINENO is not a special
  12170. # case at line end.
  12171. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12172. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12173. # E. McMahon (1931-1989) for sed's syntax. :-)
  12174. sed -n '
  12175. p
  12176. /[$]LINENO/=
  12177. ' <$as_myself |
  12178. sed '
  12179. s/[$]LINENO.*/&-/
  12180. t lineno
  12181. b
  12182. :lineno
  12183. N
  12184. :loop
  12185. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12186. t loop
  12187. s/-\n.*//
  12188. ' >$as_me.lineno &&
  12189. chmod +x "$as_me.lineno" ||
  12190. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12191. { (exit 1); exit 1; }; }
  12192. # Don't try to exec as it changes $[0], causing all sort of problems
  12193. # (the dirname of $[0] is not the place where we might find the
  12194. # original and so on. Autoconf is especially sensitive to this).
  12195. . "./$as_me.lineno"
  12196. # Exit status is that of the last command.
  12197. exit
  12198. }
  12199. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12200. as_dirname=dirname
  12201. else
  12202. as_dirname=false
  12203. fi
  12204. ECHO_C= ECHO_N= ECHO_T=
  12205. case `echo -n x` in
  12206. -n*)
  12207. case `echo 'x\c'` in
  12208. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12209. *) ECHO_C='\c';;
  12210. esac;;
  12211. *)
  12212. ECHO_N='-n';;
  12213. esac
  12214. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12215. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12216. as_expr=expr
  12217. else
  12218. as_expr=false
  12219. fi
  12220. rm -f conf$$ conf$$.exe conf$$.file
  12221. if test -d conf$$.dir; then
  12222. rm -f conf$$.dir/conf$$.file
  12223. else
  12224. rm -f conf$$.dir
  12225. mkdir conf$$.dir
  12226. fi
  12227. echo >conf$$.file
  12228. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12229. as_ln_s='ln -s'
  12230. # ... but there are two gotchas:
  12231. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12232. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12233. # In both cases, we have to default to `cp -p'.
  12234. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12235. as_ln_s='cp -p'
  12236. elif ln conf$$.file conf$$ 2>/dev/null; then
  12237. as_ln_s=ln
  12238. else
  12239. as_ln_s='cp -p'
  12240. fi
  12241. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12242. rmdir conf$$.dir 2>/dev/null
  12243. if mkdir -p . 2>/dev/null; then
  12244. as_mkdir_p=:
  12245. else
  12246. test -d ./-p && rmdir ./-p
  12247. as_mkdir_p=false
  12248. fi
  12249. if test -x / >/dev/null 2>&1; then
  12250. as_test_x='test -x'
  12251. else
  12252. if ls -dL / >/dev/null 2>&1; then
  12253. as_ls_L_option=L
  12254. else
  12255. as_ls_L_option=
  12256. fi
  12257. as_test_x='
  12258. eval sh -c '\''
  12259. if test -d "$1"; then
  12260. test -d "$1/.";
  12261. else
  12262. case $1 in
  12263. -*)set "./$1";;
  12264. esac;
  12265. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12266. ???[sx]*):;;*)false;;esac;fi
  12267. '\'' sh
  12268. '
  12269. fi
  12270. as_executable_p=$as_test_x
  12271. # Sed expression to map a string onto a valid CPP name.
  12272. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12273. # Sed expression to map a string onto a valid variable name.
  12274. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12275. exec 6>&1
  12276. # Save the log message, to keep $[0] and so on meaningful, and to
  12277. # report actual input values of CONFIG_FILES etc. instead of their
  12278. # values after options handling.
  12279. ac_log="
  12280. This file was extended by $as_me, which was
  12281. generated by GNU Autoconf 2.61. Invocation command line was
  12282. CONFIG_FILES = $CONFIG_FILES
  12283. CONFIG_HEADERS = $CONFIG_HEADERS
  12284. CONFIG_LINKS = $CONFIG_LINKS
  12285. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12286. $ $0 $@
  12287. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12288. "
  12289. _ACEOF
  12290. cat >>$CONFIG_STATUS <<_ACEOF
  12291. # Files that config.status was made for.
  12292. config_files="$ac_config_files"
  12293. config_headers="$ac_config_headers"
  12294. _ACEOF
  12295. cat >>$CONFIG_STATUS <<\_ACEOF
  12296. ac_cs_usage="\
  12297. \`$as_me' instantiates files from templates according to the
  12298. current configuration.
  12299. Usage: $0 [OPTIONS] [FILE]...
  12300. -h, --help print this help, then exit
  12301. -V, --version print version number and configuration settings, then exit
  12302. -q, --quiet do not print progress messages
  12303. -d, --debug don't remove temporary files
  12304. --recheck update $as_me by reconfiguring in the same conditions
  12305. --file=FILE[:TEMPLATE]
  12306. instantiate the configuration file FILE
  12307. --header=FILE[:TEMPLATE]
  12308. instantiate the configuration header FILE
  12309. Configuration files:
  12310. $config_files
  12311. Configuration headers:
  12312. $config_headers
  12313. Report bugs to <bug-autoconf@gnu.org>."
  12314. _ACEOF
  12315. cat >>$CONFIG_STATUS <<_ACEOF
  12316. ac_cs_version="\\
  12317. config.status
  12318. configured by $0, generated by GNU Autoconf 2.61,
  12319. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12320. Copyright (C) 2006 Free Software Foundation, Inc.
  12321. This config.status script is free software; the Free Software Foundation
  12322. gives unlimited permission to copy, distribute and modify it."
  12323. ac_pwd='$ac_pwd'
  12324. srcdir='$srcdir'
  12325. INSTALL='$INSTALL'
  12326. _ACEOF
  12327. cat >>$CONFIG_STATUS <<\_ACEOF
  12328. # If no file are specified by the user, then we need to provide default
  12329. # value. By we need to know if files were specified by the user.
  12330. ac_need_defaults=:
  12331. while test $# != 0
  12332. do
  12333. case $1 in
  12334. --*=*)
  12335. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12336. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12337. ac_shift=:
  12338. ;;
  12339. *)
  12340. ac_option=$1
  12341. ac_optarg=$2
  12342. ac_shift=shift
  12343. ;;
  12344. esac
  12345. case $ac_option in
  12346. # Handling of the options.
  12347. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12348. ac_cs_recheck=: ;;
  12349. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12350. echo "$ac_cs_version"; exit ;;
  12351. --debug | --debu | --deb | --de | --d | -d )
  12352. debug=: ;;
  12353. --file | --fil | --fi | --f )
  12354. $ac_shift
  12355. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12356. ac_need_defaults=false;;
  12357. --header | --heade | --head | --hea )
  12358. $ac_shift
  12359. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12360. ac_need_defaults=false;;
  12361. --he | --h)
  12362. # Conflict between --help and --header
  12363. { echo "$as_me: error: ambiguous option: $1
  12364. Try \`$0 --help' for more information." >&2
  12365. { (exit 1); exit 1; }; };;
  12366. --help | --hel | -h )
  12367. echo "$ac_cs_usage"; exit ;;
  12368. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12369. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12370. ac_cs_silent=: ;;
  12371. # This is an error.
  12372. -*) { echo "$as_me: error: unrecognized option: $1
  12373. Try \`$0 --help' for more information." >&2
  12374. { (exit 1); exit 1; }; } ;;
  12375. *) ac_config_targets="$ac_config_targets $1"
  12376. ac_need_defaults=false ;;
  12377. esac
  12378. shift
  12379. done
  12380. ac_configure_extra_args=
  12381. if $ac_cs_silent; then
  12382. exec 6>/dev/null
  12383. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12384. fi
  12385. _ACEOF
  12386. cat >>$CONFIG_STATUS <<_ACEOF
  12387. if \$ac_cs_recheck; then
  12388. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12389. CONFIG_SHELL=$SHELL
  12390. export CONFIG_SHELL
  12391. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12392. fi
  12393. _ACEOF
  12394. cat >>$CONFIG_STATUS <<\_ACEOF
  12395. exec 5>>config.log
  12396. {
  12397. echo
  12398. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12399. ## Running $as_me. ##
  12400. _ASBOX
  12401. echo "$ac_log"
  12402. } >&5
  12403. _ACEOF
  12404. cat >>$CONFIG_STATUS <<_ACEOF
  12405. _ACEOF
  12406. cat >>$CONFIG_STATUS <<\_ACEOF
  12407. # Handling of arguments.
  12408. for ac_config_target in $ac_config_targets
  12409. do
  12410. case $ac_config_target in
  12411. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:configh.in" ;;
  12412. "makeinclude") CONFIG_FILES="$CONFIG_FILES makeinclude" ;;
  12413. "fltk.list") CONFIG_FILES="$CONFIG_FILES fltk.list" ;;
  12414. "fltk-config") CONFIG_FILES="$CONFIG_FILES fltk-config" ;;
  12415. "fltk.spec") CONFIG_FILES="$CONFIG_FILES fltk.spec" ;;
  12416. "FL/Makefile") CONFIG_FILES="$CONFIG_FILES FL/Makefile" ;;
  12417. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12418. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12419. { (exit 1); exit 1; }; };;
  12420. esac
  12421. done
  12422. # If the user did not use the arguments to specify the items to instantiate,
  12423. # then the envvar interface is used. Set only those that are not.
  12424. # We use the long form for the default assignment because of an extremely
  12425. # bizarre bug on SunOS 4.1.3.
  12426. if $ac_need_defaults; then
  12427. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12428. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12429. fi
  12430. # Have a temporary directory for convenience. Make it in the build tree
  12431. # simply because there is no reason against having it here, and in addition,
  12432. # creating and moving files from /tmp can sometimes cause problems.
  12433. # Hook for its removal unless debugging.
  12434. # Note that there is a small window in which the directory will not be cleaned:
  12435. # after its creation but before its name has been assigned to `$tmp'.
  12436. $debug ||
  12437. {
  12438. tmp=
  12439. trap 'exit_status=$?
  12440. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12441. ' 0
  12442. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12443. }
  12444. # Create a (secure) tmp directory for tmp files.
  12445. {
  12446. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12447. test -n "$tmp" && test -d "$tmp"
  12448. } ||
  12449. {
  12450. tmp=./conf$$-$RANDOM
  12451. (umask 077 && mkdir "$tmp")
  12452. } ||
  12453. {
  12454. echo "$me: cannot create a temporary directory in ." >&2
  12455. { (exit 1); exit 1; }
  12456. }
  12457. #
  12458. # Set up the sed scripts for CONFIG_FILES section.
  12459. #
  12460. # No need to generate the scripts if there are no CONFIG_FILES.
  12461. # This happens for instance when ./config.status config.h
  12462. if test -n "$CONFIG_FILES"; then
  12463. _ACEOF
  12464. ac_delim='%!_!# '
  12465. for ac_last_try in false false false false false :; do
  12466. cat >conf$$subs.sed <<_ACEOF
  12467. SHELL!$SHELL$ac_delim
  12468. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  12469. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  12470. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  12471. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  12472. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  12473. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  12474. exec_prefix!$exec_prefix$ac_delim
  12475. prefix!$prefix$ac_delim
  12476. program_transform_name!$program_transform_name$ac_delim
  12477. bindir!$bindir$ac_delim
  12478. sbindir!$sbindir$ac_delim
  12479. libexecdir!$libexecdir$ac_delim
  12480. datarootdir!$datarootdir$ac_delim
  12481. datadir!$datadir$ac_delim
  12482. sysconfdir!$sysconfdir$ac_delim
  12483. sharedstatedir!$sharedstatedir$ac_delim
  12484. localstatedir!$localstatedir$ac_delim
  12485. includedir!$includedir$ac_delim
  12486. oldincludedir!$oldincludedir$ac_delim
  12487. docdir!$docdir$ac_delim
  12488. infodir!$infodir$ac_delim
  12489. htmldir!$htmldir$ac_delim
  12490. dvidir!$dvidir$ac_delim
  12491. pdfdir!$pdfdir$ac_delim
  12492. psdir!$psdir$ac_delim
  12493. libdir!$libdir$ac_delim
  12494. localedir!$localedir$ac_delim
  12495. mandir!$mandir$ac_delim
  12496. DEFS!$DEFS$ac_delim
  12497. ECHO_C!$ECHO_C$ac_delim
  12498. ECHO_N!$ECHO_N$ac_delim
  12499. ECHO_T!$ECHO_T$ac_delim
  12500. LIBS!$LIBS$ac_delim
  12501. build_alias!$build_alias$ac_delim
  12502. host_alias!$host_alias$ac_delim
  12503. target_alias!$target_alias$ac_delim
  12504. USEMMFILES!$USEMMFILES$ac_delim
  12505. FL_MAJOR_VERSION!$FL_MAJOR_VERSION$ac_delim
  12506. FL_MINOR_VERSION!$FL_MINOR_VERSION$ac_delim
  12507. FL_PATCH_VERSION!$FL_PATCH_VERSION$ac_delim
  12508. FL_API_VERSION!$FL_API_VERSION$ac_delim
  12509. ARCHFLAGS!$ARCHFLAGS$ac_delim
  12510. OPTIM!$OPTIM$ac_delim
  12511. CAIRODIR!$CAIRODIR$ac_delim
  12512. CAIROFLAGS!$CAIROFLAGS$ac_delim
  12513. CAIROLIBS!$CAIROLIBS$ac_delim
  12514. LINKFLTKCAIRO!$LINKFLTKCAIRO$ac_delim
  12515. FLTKCAIROOPTION!$FLTKCAIROOPTION$ac_delim
  12516. FLLIBNAME!$FLLIBNAME$ac_delim
  12517. GLDEMOS!$GLDEMOS$ac_delim
  12518. GLLIBNAME!$GLLIBNAME$ac_delim
  12519. IMGLIBNAME!$IMGLIBNAME$ac_delim
  12520. CAIROLIBNAME!$CAIROLIBNAME$ac_delim
  12521. LIBEXT!$LIBEXT$ac_delim
  12522. LIBNAME!$LIBNAME$ac_delim
  12523. LINKFLTK!$LINKFLTK$ac_delim
  12524. LINKFLTKFORMS!$LINKFLTKFORMS$ac_delim
  12525. LINKFLTKGL!$LINKFLTKGL$ac_delim
  12526. LINKFLTKIMG!$LINKFLTKIMG$ac_delim
  12527. LIBBASENAME!$LIBBASENAME$ac_delim
  12528. FLLIBBASENAME!$FLLIBBASENAME$ac_delim
  12529. GLLIBBASENAME!$GLLIBBASENAME$ac_delim
  12530. IMGLIBBASENAME!$IMGLIBBASENAME$ac_delim
  12531. CAIROLIBBASENAME!$CAIROLIBBASENAME$ac_delim
  12532. DSOCOMMAND!$DSOCOMMAND$ac_delim
  12533. DSOFLAGS!$DSOFLAGS$ac_delim
  12534. DSOLINK!$DSOLINK$ac_delim
  12535. DSONAME!$DSONAME$ac_delim
  12536. FLDSONAME!$FLDSONAME$ac_delim
  12537. GLDSONAME!$GLDSONAME$ac_delim
  12538. IMGDSONAME!$IMGDSONAME$ac_delim
  12539. CAIRODSONAME!$CAIRODSONAME$ac_delim
  12540. SHAREDSUFFIX!$SHAREDSUFFIX$ac_delim
  12541. LINKSHARED!$LINKSHARED$ac_delim
  12542. FLUID!$FLUID$ac_delim
  12543. CC!$CC$ac_delim
  12544. CFLAGS!$CFLAGS$ac_delim
  12545. LDFLAGS!$LDFLAGS$ac_delim
  12546. CPPFLAGS!$CPPFLAGS$ac_delim
  12547. ac_ct_CC!$ac_ct_CC$ac_delim
  12548. EXEEXT!$EXEEXT$ac_delim
  12549. OBJEXT!$OBJEXT$ac_delim
  12550. CXX!$CXX$ac_delim
  12551. CXXFLAGS!$CXXFLAGS$ac_delim
  12552. ac_ct_CXX!$ac_ct_CXX$ac_delim
  12553. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  12554. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  12555. INSTALL_DATA!$INSTALL_DATA$ac_delim
  12556. NROFF!$NROFF$ac_delim
  12557. GROFF!$GROFF$ac_delim
  12558. HTMLDOC!$HTMLDOC$ac_delim
  12559. DOXYDOC!$DOXYDOC$ac_delim
  12560. RANLIB!$RANLIB$ac_delim
  12561. AR!$AR$ac_delim
  12562. LIBCOMMAND!$LIBCOMMAND$ac_delim
  12563. RC!$RC$ac_delim
  12564. _ACEOF
  12565. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  12566. break
  12567. elif $ac_last_try; then
  12568. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12569. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12570. { (exit 1); exit 1; }; }
  12571. else
  12572. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12573. fi
  12574. done
  12575. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  12576. if test -n "$ac_eof"; then
  12577. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  12578. ac_eof=`expr $ac_eof + 1`
  12579. fi
  12580. cat >>$CONFIG_STATUS <<_ACEOF
  12581. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  12582. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12583. _ACEOF
  12584. sed '
  12585. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  12586. s/^/s,@/; s/!/@,|#_!!_#|/
  12587. :n
  12588. t n
  12589. s/'"$ac_delim"'$/,g/; t
  12590. s/$/\\/; p
  12591. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  12592. ' >>$CONFIG_STATUS <conf$$subs.sed
  12593. rm -f conf$$subs.sed
  12594. cat >>$CONFIG_STATUS <<_ACEOF
  12595. CEOF$ac_eof
  12596. _ACEOF
  12597. ac_delim='%!_!# '
  12598. for ac_last_try in false false false false false :; do
  12599. cat >conf$$subs.sed <<_ACEOF
  12600. CPP!$CPP$ac_delim
  12601. GREP!$GREP$ac_delim
  12602. EGREP!$EGREP$ac_delim
  12603. LARGEFILE!$LARGEFILE$ac_delim
  12604. AUDIOLIBS!$AUDIOLIBS$ac_delim
  12605. IMAGELIBS!$IMAGELIBS$ac_delim
  12606. STATICIMAGELIBS!$STATICIMAGELIBS$ac_delim
  12607. JPEG!$JPEG$ac_delim
  12608. JPEGINC!$JPEGINC$ac_delim
  12609. PNG!$PNG$ac_delim
  12610. PNGINC!$PNGINC$ac_delim
  12611. ZLIB!$ZLIB$ac_delim
  12612. ZLIBINC!$ZLIBINC$ac_delim
  12613. PTHREAD_FLAGS!$PTHREAD_FLAGS$ac_delim
  12614. XMKMF!$XMKMF$ac_delim
  12615. X_CFLAGS!$X_CFLAGS$ac_delim
  12616. X_PRE_LIBS!$X_PRE_LIBS$ac_delim
  12617. X_LIBS!$X_LIBS$ac_delim
  12618. X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
  12619. FTCONFIG!$FTCONFIG$ac_delim
  12620. XPROP!$XPROP$ac_delim
  12621. GLLIB!$GLLIB$ac_delim
  12622. HLINKS!$HLINKS$ac_delim
  12623. OSX_ONLY!$OSX_ONLY$ac_delim
  12624. THREADS!$THREADS$ac_delim
  12625. INSTALL_DESKTOP!$INSTALL_DESKTOP$ac_delim
  12626. UNINSTALL_DESKTOP!$UNINSTALL_DESKTOP$ac_delim
  12627. CAT1EXT!$CAT1EXT$ac_delim
  12628. CAT3EXT!$CAT3EXT$ac_delim
  12629. CAT6EXT!$CAT6EXT$ac_delim
  12630. MAKEDEPEND!$MAKEDEPEND$ac_delim
  12631. LIBOBJS!$LIBOBJS$ac_delim
  12632. LTLIBOBJS!$LTLIBOBJS$ac_delim
  12633. _ACEOF
  12634. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
  12635. break
  12636. elif $ac_last_try; then
  12637. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12638. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12639. { (exit 1); exit 1; }; }
  12640. else
  12641. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12642. fi
  12643. done
  12644. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  12645. if test -n "$ac_eof"; then
  12646. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  12647. ac_eof=`expr $ac_eof + 1`
  12648. fi
  12649. cat >>$CONFIG_STATUS <<_ACEOF
  12650. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  12651. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  12652. _ACEOF
  12653. sed '
  12654. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  12655. s/^/s,@/; s/!/@,|#_!!_#|/
  12656. :n
  12657. t n
  12658. s/'"$ac_delim"'$/,g/; t
  12659. s/$/\\/; p
  12660. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  12661. ' >>$CONFIG_STATUS <conf$$subs.sed
  12662. rm -f conf$$subs.sed
  12663. cat >>$CONFIG_STATUS <<_ACEOF
  12664. :end
  12665. s/|#_!!_#|//g
  12666. CEOF$ac_eof
  12667. _ACEOF
  12668. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12669. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12670. # trailing colons and then remove the whole line if VPATH becomes empty
  12671. # (actually we leave an empty line to preserve line numbers).
  12672. if test "x$srcdir" = x.; then
  12673. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12674. s/:*\$(srcdir):*/:/
  12675. s/:*\${srcdir}:*/:/
  12676. s/:*@srcdir@:*/:/
  12677. s/^\([^=]*=[ ]*\):*/\1/
  12678. s/:*$//
  12679. s/^[^=]*=[ ]*$//
  12680. }'
  12681. fi
  12682. cat >>$CONFIG_STATUS <<\_ACEOF
  12683. fi # test -n "$CONFIG_FILES"
  12684. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
  12685. do
  12686. case $ac_tag in
  12687. :[FHLC]) ac_mode=$ac_tag; continue;;
  12688. esac
  12689. case $ac_mode$ac_tag in
  12690. :[FHL]*:*);;
  12691. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  12692. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  12693. { (exit 1); exit 1; }; };;
  12694. :[FH]-) ac_tag=-:-;;
  12695. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12696. esac
  12697. ac_save_IFS=$IFS
  12698. IFS=:
  12699. set x $ac_tag
  12700. IFS=$ac_save_IFS
  12701. shift
  12702. ac_file=$1
  12703. shift
  12704. case $ac_mode in
  12705. :L) ac_source=$1;;
  12706. :[FH])
  12707. ac_file_inputs=
  12708. for ac_f
  12709. do
  12710. case $ac_f in
  12711. -) ac_f="$tmp/stdin";;
  12712. *) # Look for the file first in the build tree, then in the source tree
  12713. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12714. # because $ac_f cannot contain `:'.
  12715. test -f "$ac_f" ||
  12716. case $ac_f in
  12717. [\\/$]*) false;;
  12718. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12719. esac ||
  12720. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  12721. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  12722. { (exit 1); exit 1; }; };;
  12723. esac
  12724. ac_file_inputs="$ac_file_inputs $ac_f"
  12725. done
  12726. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12727. # use $as_me), people would be surprised to read:
  12728. # /* config.h. Generated by config.status. */
  12729. configure_input="Generated from "`IFS=:
  12730. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  12731. if test x"$ac_file" != x-; then
  12732. configure_input="$ac_file. $configure_input"
  12733. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12734. echo "$as_me: creating $ac_file" >&6;}
  12735. fi
  12736. case $ac_tag in
  12737. *:-:* | *:-) cat >"$tmp/stdin";;
  12738. esac
  12739. ;;
  12740. esac
  12741. ac_dir=`$as_dirname -- "$ac_file" ||
  12742. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12743. X"$ac_file" : 'X\(//\)[^/]' \| \
  12744. X"$ac_file" : 'X\(//\)$' \| \
  12745. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12746. echo X"$ac_file" |
  12747. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12748. s//\1/
  12749. q
  12750. }
  12751. /^X\(\/\/\)[^/].*/{
  12752. s//\1/
  12753. q
  12754. }
  12755. /^X\(\/\/\)$/{
  12756. s//\1/
  12757. q
  12758. }
  12759. /^X\(\/\).*/{
  12760. s//\1/
  12761. q
  12762. }
  12763. s/.*/./; q'`
  12764. { as_dir="$ac_dir"
  12765. case $as_dir in #(
  12766. -*) as_dir=./$as_dir;;
  12767. esac
  12768. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  12769. as_dirs=
  12770. while :; do
  12771. case $as_dir in #(
  12772. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  12773. *) as_qdir=$as_dir;;
  12774. esac
  12775. as_dirs="'$as_qdir' $as_dirs"
  12776. as_dir=`$as_dirname -- "$as_dir" ||
  12777. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12778. X"$as_dir" : 'X\(//\)[^/]' \| \
  12779. X"$as_dir" : 'X\(//\)$' \| \
  12780. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12781. echo X"$as_dir" |
  12782. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12783. s//\1/
  12784. q
  12785. }
  12786. /^X\(\/\/\)[^/].*/{
  12787. s//\1/
  12788. q
  12789. }
  12790. /^X\(\/\/\)$/{
  12791. s//\1/
  12792. q
  12793. }
  12794. /^X\(\/\).*/{
  12795. s//\1/
  12796. q
  12797. }
  12798. s/.*/./; q'`
  12799. test -d "$as_dir" && break
  12800. done
  12801. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12802. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  12803. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  12804. { (exit 1); exit 1; }; }; }
  12805. ac_builddir=.
  12806. case "$ac_dir" in
  12807. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12808. *)
  12809. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12810. # A ".." for each directory in $ac_dir_suffix.
  12811. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  12812. case $ac_top_builddir_sub in
  12813. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12814. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12815. esac ;;
  12816. esac
  12817. ac_abs_top_builddir=$ac_pwd
  12818. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12819. # for backward compatibility:
  12820. ac_top_builddir=$ac_top_build_prefix
  12821. case $srcdir in
  12822. .) # We are building in place.
  12823. ac_srcdir=.
  12824. ac_top_srcdir=$ac_top_builddir_sub
  12825. ac_abs_top_srcdir=$ac_pwd ;;
  12826. [\\/]* | ?:[\\/]* ) # Absolute name.
  12827. ac_srcdir=$srcdir$ac_dir_suffix;
  12828. ac_top_srcdir=$srcdir
  12829. ac_abs_top_srcdir=$srcdir ;;
  12830. *) # Relative name.
  12831. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12832. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12833. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12834. esac
  12835. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12836. case $ac_mode in
  12837. :F)
  12838. #
  12839. # CONFIG_FILE
  12840. #
  12841. case $INSTALL in
  12842. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12843. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12844. esac
  12845. _ACEOF
  12846. cat >>$CONFIG_STATUS <<\_ACEOF
  12847. # If the template does not know about datarootdir, expand it.
  12848. # FIXME: This hack should be removed a few years after 2.60.
  12849. ac_datarootdir_hack=; ac_datarootdir_seen=
  12850. case `sed -n '/datarootdir/ {
  12851. p
  12852. q
  12853. }
  12854. /@datadir@/p
  12855. /@docdir@/p
  12856. /@infodir@/p
  12857. /@localedir@/p
  12858. /@mandir@/p
  12859. ' $ac_file_inputs` in
  12860. *datarootdir*) ac_datarootdir_seen=yes;;
  12861. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12862. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12863. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12864. _ACEOF
  12865. cat >>$CONFIG_STATUS <<_ACEOF
  12866. ac_datarootdir_hack='
  12867. s&@datadir@&$datadir&g
  12868. s&@docdir@&$docdir&g
  12869. s&@infodir@&$infodir&g
  12870. s&@localedir@&$localedir&g
  12871. s&@mandir@&$mandir&g
  12872. s&\\\${datarootdir}&$datarootdir&g' ;;
  12873. esac
  12874. _ACEOF
  12875. # Neutralize VPATH when `$srcdir' = `.'.
  12876. # Shell code in configure.ac might set extrasub.
  12877. # FIXME: do we really want to maintain this feature?
  12878. cat >>$CONFIG_STATUS <<_ACEOF
  12879. sed "$ac_vpsub
  12880. $extrasub
  12881. _ACEOF
  12882. cat >>$CONFIG_STATUS <<\_ACEOF
  12883. :t
  12884. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12885. s&@configure_input@&$configure_input&;t t
  12886. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12887. s&@srcdir@&$ac_srcdir&;t t
  12888. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12889. s&@top_srcdir@&$ac_top_srcdir&;t t
  12890. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12891. s&@builddir@&$ac_builddir&;t t
  12892. s&@abs_builddir@&$ac_abs_builddir&;t t
  12893. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12894. s&@INSTALL@&$ac_INSTALL&;t t
  12895. $ac_datarootdir_hack
  12896. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  12897. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12898. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12899. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12900. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12901. which seems to be undefined. Please make sure it is defined." >&5
  12902. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12903. which seems to be undefined. Please make sure it is defined." >&2;}
  12904. rm -f "$tmp/stdin"
  12905. case $ac_file in
  12906. -) cat "$tmp/out"; rm -f "$tmp/out";;
  12907. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  12908. esac
  12909. ;;
  12910. :H)
  12911. #
  12912. # CONFIG_HEADER
  12913. #
  12914. _ACEOF
  12915. # Transform confdefs.h into a sed script `conftest.defines', that
  12916. # substitutes the proper values into config.h.in to produce config.h.
  12917. rm -f conftest.defines conftest.tail
  12918. # First, append a space to every undef/define line, to ease matching.
  12919. echo 's/$/ /' >conftest.defines
  12920. # Then, protect against being on the right side of a sed subst, or in
  12921. # an unquoted here document, in config.status. If some macros were
  12922. # called several times there might be several #defines for the same
  12923. # symbol, which is useless. But do not sort them, since the last
  12924. # AC_DEFINE must be honored.
  12925. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12926. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  12927. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  12928. # PARAMS is the parameter list in the macro definition--in most cases, it's
  12929. # just an empty string.
  12930. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  12931. ac_dB='\\)[ (].*,\\1define\\2'
  12932. ac_dC=' '
  12933. ac_dD=' ,'
  12934. uniq confdefs.h |
  12935. sed -n '
  12936. t rset
  12937. :rset
  12938. s/^[ ]*#[ ]*define[ ][ ]*//
  12939. t ok
  12940. d
  12941. :ok
  12942. s/[\\&,]/\\&/g
  12943. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  12944. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  12945. ' >>conftest.defines
  12946. # Remove the space that was appended to ease matching.
  12947. # Then replace #undef with comments. This is necessary, for
  12948. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12949. # on some systems where configure will not decide to define it.
  12950. # (The regexp can be short, since the line contains either #define or #undef.)
  12951. echo 's/ $//
  12952. s,^[ #]*u.*,/* & */,' >>conftest.defines
  12953. # Break up conftest.defines:
  12954. ac_max_sed_lines=50
  12955. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  12956. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  12957. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  12958. # et cetera.
  12959. ac_in='$ac_file_inputs'
  12960. ac_out='"$tmp/out1"'
  12961. ac_nxt='"$tmp/out2"'
  12962. while :
  12963. do
  12964. # Write a here document:
  12965. cat >>$CONFIG_STATUS <<_ACEOF
  12966. # First, check the format of the line:
  12967. cat >"\$tmp/defines.sed" <<\\CEOF
  12968. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  12969. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  12970. b
  12971. :def
  12972. _ACEOF
  12973. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  12974. echo 'CEOF
  12975. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  12976. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  12977. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  12978. grep . conftest.tail >/dev/null || break
  12979. rm -f conftest.defines
  12980. mv conftest.tail conftest.defines
  12981. done
  12982. rm -f conftest.defines conftest.tail
  12983. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  12984. cat >>$CONFIG_STATUS <<\_ACEOF
  12985. if test x"$ac_file" != x-; then
  12986. echo "/* $configure_input */" >"$tmp/config.h"
  12987. cat "$ac_result" >>"$tmp/config.h"
  12988. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  12989. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12990. echo "$as_me: $ac_file is unchanged" >&6;}
  12991. else
  12992. rm -f $ac_file
  12993. mv "$tmp/config.h" $ac_file
  12994. fi
  12995. else
  12996. echo "/* $configure_input */"
  12997. cat "$ac_result"
  12998. fi
  12999. rm -f "$tmp/out12"
  13000. ;;
  13001. esac
  13002. done # for ac_tag
  13003. { (exit 0); exit 0; }
  13004. _ACEOF
  13005. chmod +x $CONFIG_STATUS
  13006. ac_clean_files=$ac_clean_files_save
  13007. # configure is writing to config.log, and then calls config.status.
  13008. # config.status does its own redirection, appending to config.log.
  13009. # Unfortunately, on DOS this fails, as config.log is still kept open
  13010. # by configure, so config.status won't be able to write to it; its
  13011. # output is simply discarded. So we exec the FD to /dev/null,
  13012. # effectively closing config.log, so it can be properly (re)opened and
  13013. # appended to by config.status. When coming back to configure, we
  13014. # need to make the FD available again.
  13015. if test "$no_create" != yes; then
  13016. ac_cs_success=:
  13017. ac_config_status_args=
  13018. test "$silent" = yes &&
  13019. ac_config_status_args="$ac_config_status_args --quiet"
  13020. exec 5>/dev/null
  13021. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13022. exec 5>>config.log
  13023. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13024. # would make configure fail if this is the last instruction.
  13025. $ac_cs_success || { (exit 1); exit 1; }
  13026. fi
  13027. chmod +x fltk-config