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.

9447 lines
257KB

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