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.

9435 lines
257KB

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