PageRenderTime 119ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 1ms

/contrib/ntp/configure

https://bitbucket.org/freebsd/freebsd-head/
Shell | 16251 lines | 14747 code | 636 blank | 868 comment | 645 complexity | 05e1828a59a7c48b290a0618022a31b1 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause, LGPL-2.0, LGPL-2.1, BSD-2-Clause, 0BSD, JSON, AGPL-1.0, GPL-2.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for ntp 4.2.4p8.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  8. # Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  214. $0: including any error possibly output before this
  215. $0: message. Then install a modern shell, or manually run
  216. $0: the script under such a shell if you do have one."
  217. fi
  218. exit 1
  219. fi
  220. fi
  221. fi
  222. SHELL=${CONFIG_SHELL-/bin/sh}
  223. export SHELL
  224. # Unset more variables known to interfere with behavior of common tools.
  225. CLICOLOR_FORCE= GREP_OPTIONS=
  226. unset CLICOLOR_FORCE GREP_OPTIONS
  227. ## --------------------- ##
  228. ## M4sh Shell Functions. ##
  229. ## --------------------- ##
  230. # as_fn_unset VAR
  231. # ---------------
  232. # Portably unset VAR.
  233. as_fn_unset ()
  234. {
  235. { eval $1=; unset $1;}
  236. }
  237. as_unset=as_fn_unset
  238. # as_fn_set_status STATUS
  239. # -----------------------
  240. # Set $? to STATUS, without forking.
  241. as_fn_set_status ()
  242. {
  243. return $1
  244. } # as_fn_set_status
  245. # as_fn_exit STATUS
  246. # -----------------
  247. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  248. as_fn_exit ()
  249. {
  250. set +e
  251. as_fn_set_status $1
  252. exit $1
  253. } # as_fn_exit
  254. # as_fn_mkdir_p
  255. # -------------
  256. # Create "$as_dir" as a directory, including parents if necessary.
  257. as_fn_mkdir_p ()
  258. {
  259. case $as_dir in #(
  260. -*) as_dir=./$as_dir;;
  261. esac
  262. test -d "$as_dir" || eval $as_mkdir_p || {
  263. as_dirs=
  264. while :; do
  265. case $as_dir in #(
  266. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  267. *) as_qdir=$as_dir;;
  268. esac
  269. as_dirs="'$as_qdir' $as_dirs"
  270. as_dir=`$as_dirname -- "$as_dir" ||
  271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  272. X"$as_dir" : 'X\(//\)[^/]' \| \
  273. X"$as_dir" : 'X\(//\)$' \| \
  274. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  275. $as_echo X"$as_dir" |
  276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  277. s//\1/
  278. q
  279. }
  280. /^X\(\/\/\)[^/].*/{
  281. s//\1/
  282. q
  283. }
  284. /^X\(\/\/\)$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\).*/{
  289. s//\1/
  290. q
  291. }
  292. s/.*/./; q'`
  293. test -d "$as_dir" && break
  294. done
  295. test -z "$as_dirs" || eval "mkdir $as_dirs"
  296. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  297. } # as_fn_mkdir_p
  298. # as_fn_append VAR VALUE
  299. # ----------------------
  300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  301. # advantage of any shell optimizations that allow amortized linear growth over
  302. # repeated appends, instead of the typical quadratic growth present in naive
  303. # implementations.
  304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  305. eval 'as_fn_append ()
  306. {
  307. eval $1+=\$2
  308. }'
  309. else
  310. as_fn_append ()
  311. {
  312. eval $1=\$$1\$2
  313. }
  314. fi # as_fn_append
  315. # as_fn_arith ARG...
  316. # ------------------
  317. # Perform arithmetic evaluation on the ARGs, and store the result in the
  318. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  319. # must be portable across $(()) and expr.
  320. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  321. eval 'as_fn_arith ()
  322. {
  323. as_val=$(( $* ))
  324. }'
  325. else
  326. as_fn_arith ()
  327. {
  328. as_val=`expr "$@" || test $? -eq 1`
  329. }
  330. fi # as_fn_arith
  331. # as_fn_error ERROR [LINENO LOG_FD]
  332. # ---------------------------------
  333. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  334. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  335. # script with status $?, using 1 if that was 0.
  336. as_fn_error ()
  337. {
  338. as_status=$?; test $as_status -eq 0 && as_status=1
  339. if test "$3"; then
  340. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  342. fi
  343. $as_echo "$as_me: error: $1" >&2
  344. as_fn_exit $as_status
  345. } # as_fn_error
  346. if expr a : '\(a\)' >/dev/null 2>&1 &&
  347. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  348. as_expr=expr
  349. else
  350. as_expr=false
  351. fi
  352. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  353. as_basename=basename
  354. else
  355. as_basename=false
  356. fi
  357. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  358. as_dirname=dirname
  359. else
  360. as_dirname=false
  361. fi
  362. as_me=`$as_basename -- "$0" ||
  363. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  364. X"$0" : 'X\(//\)$' \| \
  365. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  366. $as_echo X/"$0" |
  367. sed '/^.*\/\([^/][^/]*\)\/*$/{
  368. s//\1/
  369. q
  370. }
  371. /^X\/\(\/\/\)$/{
  372. s//\1/
  373. q
  374. }
  375. /^X\/\(\/\).*/{
  376. s//\1/
  377. q
  378. }
  379. s/.*/./; q'`
  380. # Avoid depending upon Character Ranges.
  381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  384. as_cr_digits='0123456789'
  385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  386. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  387. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  388. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  389. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  390. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  408. # Don't try to exec as it changes $[0], causing all sort of problems
  409. # (the dirname of $[0] is not the place where we might find the
  410. # original and so on. Autoconf is especially sensitive to this).
  411. . "./$as_me.lineno"
  412. # Exit status is that of the last command.
  413. exit
  414. }
  415. ECHO_C= ECHO_N= ECHO_T=
  416. case `echo -n x` in #(((((
  417. -n*)
  418. case `echo 'xy\c'` in
  419. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  420. xy) ECHO_C='\c';;
  421. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  422. ECHO_T=' ';;
  423. esac;;
  424. *)
  425. ECHO_N='-n';;
  426. esac
  427. rm -f conf$$ conf$$.exe conf$$.file
  428. if test -d conf$$.dir; then
  429. rm -f conf$$.dir/conf$$.file
  430. else
  431. rm -f conf$$.dir
  432. mkdir conf$$.dir 2>/dev/null
  433. fi
  434. if (echo >conf$$.file) 2>/dev/null; then
  435. if ln -s conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s='ln -s'
  437. # ... but there are two gotchas:
  438. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  439. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  440. # In both cases, we have to default to `cp -p'.
  441. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  442. as_ln_s='cp -p'
  443. elif ln conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s=ln
  445. else
  446. as_ln_s='cp -p'
  447. fi
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  452. rmdir conf$$.dir 2>/dev/null
  453. if mkdir -p . 2>/dev/null; then
  454. as_mkdir_p='mkdir -p "$as_dir"'
  455. else
  456. test -d ./-p && rmdir ./-p
  457. as_mkdir_p=false
  458. fi
  459. if test -x / >/dev/null 2>&1; then
  460. as_test_x='test -x'
  461. else
  462. if ls -dL / >/dev/null 2>&1; then
  463. as_ls_L_option=L
  464. else
  465. as_ls_L_option=
  466. fi
  467. as_test_x='
  468. eval sh -c '\''
  469. if test -d "$1"; then
  470. test -d "$1/.";
  471. else
  472. case $1 in #(
  473. -*)set "./$1";;
  474. esac;
  475. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  476. ???[sx]*):;;*)false;;esac;fi
  477. '\'' sh
  478. '
  479. fi
  480. as_executable_p=$as_test_x
  481. # Sed expression to map a string onto a valid CPP name.
  482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  483. # Sed expression to map a string onto a valid variable name.
  484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  485. # Check that we are running under the correct shell.
  486. SHELL=${CONFIG_SHELL-/bin/sh}
  487. case X$ECHO in
  488. X*--fallback-echo)
  489. # Remove one level of quotation (which was required for Make).
  490. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  491. ;;
  492. esac
  493. echo=${ECHO-echo}
  494. if test "X$1" = X--no-reexec; then
  495. # Discard the --no-reexec flag, and continue.
  496. shift
  497. elif test "X$1" = X--fallback-echo; then
  498. # Avoid inline document here, it may be left over
  499. :
  500. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  501. # Yippee, $echo works!
  502. :
  503. else
  504. # Restart under the correct shell.
  505. exec $SHELL "$0" --no-reexec ${1+"$@"}
  506. fi
  507. if test "X$1" = X--fallback-echo; then
  508. # used as fallback echo
  509. shift
  510. cat <<EOF
  511. $*
  512. EOF
  513. exit 0
  514. fi
  515. # The HP-UX ksh and POSIX shell print the target directory to stdout
  516. # if CDPATH is set.
  517. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  518. if test -z "$ECHO"; then
  519. if test "X${echo_test_string+set}" != Xset; then
  520. # find a string as large as possible, as long as the shell can cope with it
  521. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  522. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  523. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  524. echo_test_string=`eval $cmd` &&
  525. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  526. then
  527. break
  528. fi
  529. done
  530. fi
  531. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  532. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  533. test "X$echo_testing_string" = "X$echo_test_string"; then
  534. :
  535. else
  536. # The Solaris, AIX, and Digital Unix default echo programs unquote
  537. # backslashes. This makes it impossible to quote backslashes using
  538. # echo "$something" | sed 's/\\/\\\\/g'
  539. #
  540. # So, first we look for a working echo in the user's PATH.
  541. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  542. for dir in $PATH /usr/ucb; do
  543. IFS="$lt_save_ifs"
  544. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  545. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. echo="$dir/echo"
  549. break
  550. fi
  551. done
  552. IFS="$lt_save_ifs"
  553. if test "X$echo" = Xecho; then
  554. # We didn't find a better echo, so look for alternatives.
  555. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. # This shell has a builtin print -r that does the trick.
  559. echo='print -r'
  560. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  561. test "X$CONFIG_SHELL" != X/bin/ksh; then
  562. # If we have ksh, try running configure again with it.
  563. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  564. export ORIGINAL_CONFIG_SHELL
  565. CONFIG_SHELL=/bin/ksh
  566. export CONFIG_SHELL
  567. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  568. else
  569. # Try using printf.
  570. echo='printf %s\n'
  571. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  572. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  573. test "X$echo_testing_string" = "X$echo_test_string"; then
  574. # Cool, printf works
  575. :
  576. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  577. test "X$echo_testing_string" = 'X\t' &&
  578. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  579. test "X$echo_testing_string" = "X$echo_test_string"; then
  580. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  581. export CONFIG_SHELL
  582. SHELL="$CONFIG_SHELL"
  583. export SHELL
  584. echo="$CONFIG_SHELL $0 --fallback-echo"
  585. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. echo="$CONFIG_SHELL $0 --fallback-echo"
  590. else
  591. # maybe with a smaller string...
  592. prev=:
  593. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  594. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  595. then
  596. break
  597. fi
  598. prev="$cmd"
  599. done
  600. if test "$prev" != 'sed 50q "$0"'; then
  601. echo_test_string=`eval $prev`
  602. export echo_test_string
  603. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  604. else
  605. # Oops. We lost completely, so just stick with echo.
  606. echo=echo
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. fi
  613. # Copy echo and quote the copy suitably for passing to libtool from
  614. # the Makefile, instead of quoting the original, which is used later.
  615. ECHO=$echo
  616. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  617. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  618. fi
  619. test -n "$DJDIR" || exec 7<&0 </dev/null
  620. exec 6>&1
  621. # Name of the host.
  622. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  623. # so uname gets run too.
  624. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  625. #
  626. # Initializations.
  627. #
  628. ac_default_prefix=/usr/local
  629. ac_clean_files=
  630. ac_config_libobj_dir=.
  631. LIBOBJS=
  632. cross_compiling=no
  633. subdirs=
  634. MFLAGS=
  635. MAKEFLAGS=
  636. # Identity of this package.
  637. PACKAGE_NAME='ntp'
  638. PACKAGE_TARNAME='ntp'
  639. PACKAGE_VERSION='4.2.4p8'
  640. PACKAGE_STRING='ntp 4.2.4p8'
  641. PACKAGE_BUGREPORT=''
  642. PACKAGE_URL=''
  643. # Factoring default headers for most tests.
  644. ac_includes_default="\
  645. #include <stdio.h>
  646. #ifdef HAVE_SYS_TYPES_H
  647. # include <sys/types.h>
  648. #endif
  649. #ifdef HAVE_SYS_STAT_H
  650. # include <sys/stat.h>
  651. #endif
  652. #ifdef STDC_HEADERS
  653. # include <stdlib.h>
  654. # include <stddef.h>
  655. #else
  656. # ifdef HAVE_STDLIB_H
  657. # include <stdlib.h>
  658. # endif
  659. #endif
  660. #ifdef HAVE_STRING_H
  661. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  662. # include <memory.h>
  663. # endif
  664. # include <string.h>
  665. #endif
  666. #ifdef HAVE_STRINGS_H
  667. # include <strings.h>
  668. #endif
  669. #ifdef HAVE_INTTYPES_H
  670. # include <inttypes.h>
  671. #endif
  672. #ifdef HAVE_STDINT_H
  673. # include <stdint.h>
  674. #endif
  675. #ifdef HAVE_UNISTD_H
  676. # include <unistd.h>
  677. #endif"
  678. enable_option_checking=no
  679. ac_subst_vars='am__EXEEXT_FALSE
  680. am__EXEEXT_TRUE
  681. LTLIBOBJS
  682. LIBOBJS
  683. LSCF
  684. MAKE_NTPDSIM
  685. MAKE_LIBNTPSIM
  686. MAKE_TIMETRIM
  687. MAKE_TICKADJ
  688. MAKE_NTPTIME
  689. MAKE_ADJTIMED
  690. CLKTEST
  691. CHUTEST
  692. PROPDELAY
  693. MAKE_PARSEKMODULE
  694. DCFD
  695. TESTDCF
  696. MAKE_CHECK_LAYOUT
  697. EF_LIBS
  698. EF_PROGS
  699. LCRYPTO
  700. OPENSSL_LIB
  701. OPENSSL_INC
  702. OPENSSL
  703. MAKE_CHECK_Y2K
  704. MAKE_LIBPARSE_KERNEL
  705. MAKE_LIBPARSE
  706. LIBPARSE
  707. HAVE_INLINE
  708. ANSI2KNR
  709. U
  710. READLINE_LIBS
  711. PATH_PERL
  712. PATH_SH
  713. LIBTOOL
  714. RANLIB
  715. AR
  716. ECHO
  717. LN_S
  718. ARLIB_DIR
  719. subdirs
  720. BINSUBDIR
  721. LIBOPTS_CFLAGS
  722. LIBOPTS_LDADD
  723. NEED_LIBOPTS_FALSE
  724. NEED_LIBOPTS_TRUE
  725. INSTALL_LIBOPTS_FALSE
  726. INSTALL_LIBOPTS_TRUE
  727. LIBOPTS_DIR
  728. EGREP
  729. GREP
  730. CPP
  731. am__fastdepCC_FALSE
  732. am__fastdepCC_TRUE
  733. CCDEPMODE
  734. AMDEPBACKSLASH
  735. AMDEP_FALSE
  736. AMDEP_TRUE
  737. am__quote
  738. am__include
  739. DEPDIR
  740. OBJEXT
  741. EXEEXT
  742. ac_ct_CC
  743. CPPFLAGS
  744. LDFLAGS
  745. CFLAGS
  746. CC
  747. host_os
  748. host_vendor
  749. host_cpu
  750. host
  751. build_os
  752. build_vendor
  753. build_cpu
  754. build
  755. am__untar
  756. am__tar
  757. AMTAR
  758. am__leading_dot
  759. SET_MAKE
  760. AWK
  761. mkdir_p
  762. MKDIR_P
  763. INSTALL_STRIP_PROGRAM
  764. STRIP
  765. install_sh
  766. MAKEINFO
  767. AUTOHEADER
  768. AUTOMAKE
  769. AUTOCONF
  770. ACLOCAL
  771. VERSION
  772. PACKAGE
  773. CYGPATH_W
  774. am__isrc
  775. INSTALL_DATA
  776. INSTALL_SCRIPT
  777. INSTALL_PROGRAM
  778. target_alias
  779. host_alias
  780. build_alias
  781. LIBS
  782. ECHO_T
  783. ECHO_N
  784. ECHO_C
  785. DEFS
  786. mandir
  787. localedir
  788. libdir
  789. psdir
  790. pdfdir
  791. dvidir
  792. htmldir
  793. infodir
  794. docdir
  795. oldincludedir
  796. includedir
  797. localstatedir
  798. sharedstatedir
  799. sysconfdir
  800. datadir
  801. datarootdir
  802. libexecdir
  803. sbindir
  804. bindir
  805. program_transform_name
  806. prefix
  807. exec_prefix
  808. PACKAGE_URL
  809. PACKAGE_BUGREPORT
  810. PACKAGE_STRING
  811. PACKAGE_VERSION
  812. PACKAGE_TARNAME
  813. PACKAGE_NAME
  814. PATH_SEPARATOR
  815. SHELL'
  816. ac_subst_files=''
  817. ac_user_opts='
  818. enable_option_checking
  819. enable_dependency_tracking
  820. enable_shared
  821. enable_local_libopts
  822. enable_libopts_install
  823. with_autoopts_config
  824. with_regex_header
  825. with_libregex
  826. with_libregex_cflags
  827. with_libregex_libs
  828. enable_optional_args
  829. with_binsubdir
  830. with_arlib
  831. with_rpath
  832. enable_static
  833. enable_fast_install
  834. with_gnu_ld
  835. enable_libtool_lock
  836. with_pic
  837. with_tags
  838. enable_getifaddrs
  839. enable_debugging
  840. enable_debug_timing
  841. enable_dst_minutes
  842. enable_ignore_dns_errors
  843. enable_BANCOMM
  844. enable_GPSVME
  845. enable_all_clocks
  846. enable_ACTS
  847. enable_ARBITER
  848. enable_ARCRON_MSF
  849. enable_AS2201
  850. enable_ATOM
  851. enable_CHRONOLOG
  852. enable_CHU
  853. enable_AUDIO_CHU
  854. enable_DATUM
  855. enable_DUMBCLOCK
  856. enable_FG
  857. enable_HEATH
  858. enable_HOPFSERIAL
  859. enable_HOPFPCI
  860. enable_HPGPS
  861. enable_IRIG
  862. enable_JJY
  863. enable_JUPITER
  864. enable_LEITCH
  865. enable_LOCAL_CLOCK
  866. enable_MX4200
  867. enable_NEOCLOCK4X
  868. enable_NMEA
  869. enable_ONCORE
  870. enable_PALISADE
  871. enable_PCF
  872. enable_PST
  873. enable_RIPENCC
  874. enable_SHM
  875. enable_SPECTRACOM
  876. enable_TPRO
  877. enable_TRUETIME
  878. enable_TT560
  879. enable_ULINK
  880. enable_WWV
  881. enable_ZYFER
  882. enable_parse_clocks
  883. enable_COMPUTIME
  884. enable_DCF7000
  885. enable_HOPF6021
  886. enable_MEINBERG
  887. enable_RAWDCF
  888. enable_RCC8000
  889. enable_SCHMID
  890. enable_TRIMTAIP
  891. enable_TRIMTSIP
  892. enable_WHARTON
  893. enable_VARITEXT
  894. with_openssl_libdir
  895. with_openssl_incdir
  896. with_crypto
  897. with_electricfence
  898. enable_kmem
  899. enable_accurate_adjtime
  900. enable_tick
  901. enable_tickadj
  902. enable_simulator
  903. enable_slew_always
  904. enable_step_slew
  905. enable_ntpdate_step
  906. enable_hourly_todr_sync
  907. enable_kernel_fll_bug
  908. enable_irig_sawtooth
  909. enable_nist
  910. enable_ntp_signd
  911. enable_wintime
  912. enable_clockctl
  913. enable_linuxcaps
  914. enable_ipv6
  915. with_kame
  916. '
  917. ac_precious_vars='build_alias
  918. host_alias
  919. target_alias
  920. CC
  921. CFLAGS
  922. LDFLAGS
  923. LIBS
  924. CPPFLAGS
  925. CPP'
  926. ac_subdirs_all='arlib
  927. sntp'
  928. # Initialize some variables set by options.
  929. ac_init_help=
  930. ac_init_version=false
  931. ac_unrecognized_opts=
  932. ac_unrecognized_sep=
  933. # The variables have the same names as the options, with
  934. # dashes changed to underlines.
  935. cache_file=/dev/null
  936. exec_prefix=NONE
  937. no_create=
  938. no_recursion=
  939. prefix=NONE
  940. program_prefix=NONE
  941. program_suffix=NONE
  942. program_transform_name=s,x,x,
  943. silent=
  944. site=
  945. srcdir=
  946. verbose=
  947. x_includes=NONE
  948. x_libraries=NONE
  949. # Installation directory options.
  950. # These are left unexpanded so users can "make install exec_prefix=/foo"
  951. # and all the variables that are supposed to be based on exec_prefix
  952. # by default will actually change.
  953. # Use braces instead of parens because sh, perl, etc. also accept them.
  954. # (The list follows the same order as the GNU Coding Standards.)
  955. bindir='${exec_prefix}/bin'
  956. sbindir='${exec_prefix}/sbin'
  957. libexecdir='${exec_prefix}/libexec'
  958. datarootdir='${prefix}/share'
  959. datadir='${datarootdir}'
  960. sysconfdir='${prefix}/etc'
  961. sharedstatedir='${prefix}/com'
  962. localstatedir='${prefix}/var'
  963. includedir='${prefix}/include'
  964. oldincludedir='/usr/include'
  965. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  966. infodir='${datarootdir}/info'
  967. htmldir='${docdir}'
  968. dvidir='${docdir}'
  969. pdfdir='${docdir}'
  970. psdir='${docdir}'
  971. libdir='${exec_prefix}/lib'
  972. localedir='${datarootdir}/locale'
  973. mandir='${datarootdir}/man'
  974. ac_prev=
  975. ac_dashdash=
  976. for ac_option
  977. do
  978. # If the previous option needs an argument, assign it.
  979. if test -n "$ac_prev"; then
  980. eval $ac_prev=\$ac_option
  981. ac_prev=
  982. continue
  983. fi
  984. case $ac_option in
  985. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  986. *) ac_optarg=yes ;;
  987. esac
  988. # Accept the important Cygnus configure options, so we can diagnose typos.
  989. case $ac_dashdash$ac_option in
  990. --)
  991. ac_dashdash=yes ;;
  992. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  993. ac_prev=bindir ;;
  994. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  995. bindir=$ac_optarg ;;
  996. -build | --build | --buil | --bui | --bu)
  997. ac_prev=build_alias ;;
  998. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  999. build_alias=$ac_optarg ;;
  1000. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1001. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1002. ac_prev=cache_file ;;
  1003. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1004. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1005. cache_file=$ac_optarg ;;
  1006. --config-cache | -C)
  1007. cache_file=config.cache ;;
  1008. -datadir | --datadir | --datadi | --datad)
  1009. ac_prev=datadir ;;
  1010. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1011. datadir=$ac_optarg ;;
  1012. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1013. | --dataroo | --dataro | --datar)
  1014. ac_prev=datarootdir ;;
  1015. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1016. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1017. datarootdir=$ac_optarg ;;
  1018. -disable-* | --disable-*)
  1019. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1020. # Reject names that are not valid shell variable names.
  1021. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1022. as_fn_error "invalid feature name: $ac_useropt"
  1023. ac_useropt_orig=$ac_useropt
  1024. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1025. case $ac_user_opts in
  1026. *"
  1027. "enable_$ac_useropt"
  1028. "*) ;;
  1029. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1030. ac_unrecognized_sep=', ';;
  1031. esac
  1032. eval enable_$ac_useropt=no ;;
  1033. -docdir | --docdir | --docdi | --doc | --do)
  1034. ac_prev=docdir ;;
  1035. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1036. docdir=$ac_optarg ;;
  1037. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1038. ac_prev=dvidir ;;
  1039. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1040. dvidir=$ac_optarg ;;
  1041. -enable-* | --enable-*)
  1042. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1043. # Reject names that are not valid shell variable names.
  1044. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1045. as_fn_error "invalid feature name: $ac_useropt"
  1046. ac_useropt_orig=$ac_useropt
  1047. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1048. case $ac_user_opts in
  1049. *"
  1050. "enable_$ac_useropt"
  1051. "*) ;;
  1052. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1053. ac_unrecognized_sep=', ';;
  1054. esac
  1055. eval enable_$ac_useropt=\$ac_optarg ;;
  1056. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1057. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1058. | --exec | --exe | --ex)
  1059. ac_prev=exec_prefix ;;
  1060. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1061. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1062. | --exec=* | --exe=* | --ex=*)
  1063. exec_prefix=$ac_optarg ;;
  1064. -gas | --gas | --ga | --g)
  1065. # Obsolete; use --with-gas.
  1066. with_gas=yes ;;
  1067. -help | --help | --hel | --he | -h)
  1068. ac_init_help=long ;;
  1069. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1070. ac_init_help=recursive ;;
  1071. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1072. ac_init_help=short ;;
  1073. -host | --host | --hos | --ho)
  1074. ac_prev=host_alias ;;
  1075. -host=* | --host=* | --hos=* | --ho=*)
  1076. host_alias=$ac_optarg ;;
  1077. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1078. ac_prev=htmldir ;;
  1079. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1080. | --ht=*)
  1081. htmldir=$ac_optarg ;;
  1082. -includedir | --includedir | --includedi | --included | --include \
  1083. | --includ | --inclu | --incl | --inc)
  1084. ac_prev=includedir ;;
  1085. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1086. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1087. includedir=$ac_optarg ;;
  1088. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1089. ac_prev=infodir ;;
  1090. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1091. infodir=$ac_optarg ;;
  1092. -libdir | --libdir | --libdi | --libd)
  1093. ac_prev=libdir ;;
  1094. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1095. libdir=$ac_optarg ;;
  1096. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1097. | --libexe | --libex | --libe)
  1098. ac_prev=libexecdir ;;
  1099. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1100. | --libexe=* | --libex=* | --libe=*)
  1101. libexecdir=$ac_optarg ;;
  1102. -localedir | --localedir | --localedi | --localed | --locale)
  1103. ac_prev=localedir ;;
  1104. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1105. localedir=$ac_optarg ;;
  1106. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1107. | --localstate | --localstat | --localsta | --localst | --locals)
  1108. ac_prev=localstatedir ;;
  1109. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1110. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1111. localstatedir=$ac_optarg ;;
  1112. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1113. ac_prev=mandir ;;
  1114. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1115. mandir=$ac_optarg ;;
  1116. -nfp | --nfp | --nf)
  1117. # Obsolete; use --without-fp.
  1118. with_fp=no ;;
  1119. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1120. | --no-cr | --no-c | -n)
  1121. no_create=yes ;;
  1122. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1123. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1124. no_recursion=yes ;;
  1125. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1126. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1127. | --oldin | --oldi | --old | --ol | --o)
  1128. ac_prev=oldincludedir ;;
  1129. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1130. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1131. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1132. oldincludedir=$ac_optarg ;;
  1133. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1134. ac_prev=prefix ;;
  1135. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1136. prefix=$ac_optarg ;;
  1137. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1138. | --program-pre | --program-pr | --program-p)
  1139. ac_prev=program_prefix ;;
  1140. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1141. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1142. program_prefix=$ac_optarg ;;
  1143. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1144. | --program-suf | --program-su | --program-s)
  1145. ac_prev=program_suffix ;;
  1146. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1147. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1148. program_suffix=$ac_optarg ;;
  1149. -program-transform-name | --program-transform-name \
  1150. | --program-transform-nam | --program-transform-na \
  1151. | --program-transform-n | --program-transform- \
  1152. | --program-transform | --program-transfor \
  1153. | --program-transfo | --program-transf \
  1154. | --program-trans | --program-tran \
  1155. | --progr-tra | --program-tr | --program-t)
  1156. ac_prev=program_transform_name ;;
  1157. -program-transform-name=* | --program-transform-name=* \
  1158. | --program-transform-nam=* | --program-transform-na=* \
  1159. | --program-transform-n=* | --program-transform-=* \
  1160. | --program-transform=* | --program-transfor=* \
  1161. | --program-transfo=* | --program-transf=* \
  1162. | --program-trans=* | --program-tran=* \
  1163. | --progr-tra=* | --program-tr=* | --program-t=*)
  1164. program_transform_name=$ac_optarg ;;
  1165. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1166. ac_prev=pdfdir ;;
  1167. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1168. pdfdir=$ac_optarg ;;
  1169. -psdir | --psdir | --psdi | --psd | --ps)
  1170. ac_prev=psdir ;;
  1171. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1172. psdir=$ac_optarg ;;
  1173. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1174. | -silent | --silent | --silen | --sile | --sil)
  1175. silent=yes ;;
  1176. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1177. ac_prev=sbindir ;;
  1178. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1179. | --sbi=* | --sb=*)
  1180. sbindir=$ac_optarg ;;
  1181. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1182. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1183. | --sharedst | --shareds | --shared | --share | --shar \
  1184. | --sha | --sh)
  1185. ac_prev=sharedstatedir ;;
  1186. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1187. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1188. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1189. | --sha=* | --sh=*)
  1190. sharedstatedir=$ac_optarg ;;
  1191. -site | --site | --sit)
  1192. ac_prev=site ;;
  1193. -site=* | --site=* | --sit=*)
  1194. site=$ac_optarg ;;
  1195. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1196. ac_prev=srcdir ;;
  1197. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1198. srcdir=$ac_optarg ;;
  1199. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1200. | --syscon | --sysco | --sysc | --sys | --sy)
  1201. ac_prev=sysconfdir ;;
  1202. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1203. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1204. sysconfdir=$ac_optarg ;;
  1205. -target | --target | --targe | --targ | --tar | --ta | --t)
  1206. ac_prev=target_alias ;;
  1207. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1208. target_alias=$ac_optarg ;;
  1209. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1210. verbose=yes ;;
  1211. -version | --version | --versio | --versi | --vers | -V)
  1212. ac_init_version=: ;;
  1213. -with-* | --with-*)
  1214. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1215. # Reject names that are not valid shell variable names.
  1216. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1217. as_fn_error "invalid package name: $ac_useropt"
  1218. ac_useropt_orig=$ac_useropt
  1219. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1220. case $ac_user_opts in
  1221. *"
  1222. "with_$ac_useropt"
  1223. "*) ;;
  1224. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1225. ac_unrecognized_sep=', ';;
  1226. esac
  1227. eval with_$ac_useropt=\$ac_optarg ;;
  1228. -without-* | --without-*)
  1229. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1230. # Reject names that are not valid shell variable names.
  1231. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1232. as_fn_error "invalid package name: $ac_useropt"
  1233. ac_useropt_orig=$ac_useropt
  1234. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1235. case $ac_user_opts in
  1236. *"
  1237. "with_$ac_useropt"
  1238. "*) ;;
  1239. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1240. ac_unrecognized_sep=', ';;
  1241. esac
  1242. eval with_$ac_useropt=no ;;
  1243. --x)
  1244. # Obsolete; use --with-x.
  1245. with_x=yes ;;
  1246. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1247. | --x-incl | --x-inc | --x-in | --x-i)
  1248. ac_prev=x_includes ;;
  1249. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1250. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1251. x_includes=$ac_optarg ;;
  1252. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1253. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1254. ac_prev=x_libraries ;;
  1255. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1256. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1257. x_libraries=$ac_optarg ;;
  1258. -*) as_fn_error "unrecognized option: \`$ac_option'
  1259. Try \`$0 --help' for more information."
  1260. ;;
  1261. *=*)
  1262. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1263. # Reject names that are not valid shell variable names.
  1264. case $ac_envvar in #(
  1265. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1266. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1267. esac
  1268. eval $ac_envvar=\$ac_optarg
  1269. export $ac_envvar ;;
  1270. *)
  1271. # FIXME: should be removed in autoconf 3.0.
  1272. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1273. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1274. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1275. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1276. ;;
  1277. esac
  1278. done
  1279. if test -n "$ac_prev"; then
  1280. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1281. as_fn_error "missing argument to $ac_option"
  1282. fi
  1283. if test -n "$ac_unrecognized_opts"; then
  1284. case $enable_option_checking in
  1285. no) ;;
  1286. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1287. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1288. esac
  1289. fi
  1290. # Check all directory arguments for consistency.
  1291. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1292. datadir sysconfdir sharedstatedir localstatedir includedir \
  1293. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1294. libdir localedir mandir
  1295. do
  1296. eval ac_val=\$$ac_var
  1297. # Remove trailing slashes.
  1298. case $ac_val in
  1299. */ )
  1300. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1301. eval $ac_var=\$ac_val;;
  1302. esac
  1303. # Be sure to have absolute directory names.
  1304. case $ac_val in
  1305. [\\/$]* | ?:[\\/]* ) continue;;
  1306. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1307. esac
  1308. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1309. done
  1310. # There might be people who depend on the old broken behavior: `$host'
  1311. # used to hold the argument of --host etc.
  1312. # FIXME: To remove some day.
  1313. build=$build_alias
  1314. host=$host_alias
  1315. target=$target_alias
  1316. # FIXME: To remove some day.
  1317. if test "x$host_alias" != x; then
  1318. if test "x$build_alias" = x; then
  1319. cross_compiling=maybe
  1320. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1321. If a cross compiler is detected then cross compile mode will be used." >&2
  1322. elif test "x$build_alias" != "x$host_alias"; then
  1323. cross_compiling=yes
  1324. fi
  1325. fi
  1326. ac_tool_prefix=
  1327. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1328. test "$silent" = yes && exec 6>/dev/null
  1329. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1330. ac_ls_di=`ls -di .` &&
  1331. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1332. as_fn_error "working directory cannot be determined"
  1333. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1334. as_fn_error "pwd does not report name of working directory"
  1335. # Find the source files, if location was not specified.
  1336. if test -z "$srcdir"; then
  1337. ac_srcdir_defaulted=yes
  1338. # Try the directory containing this script, then the parent directory.
  1339. ac_confdir=`$as_dirname -- "$as_myself" ||
  1340. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1341. X"$as_myself" : 'X\(//\)[^/]' \| \
  1342. X"$as_myself" : 'X\(//\)$' \| \
  1343. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1344. $as_echo X"$as_myself" |
  1345. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1346. s//\1/
  1347. q
  1348. }
  1349. /^X\(\/\/\)[^/].*/{
  1350. s//\1/
  1351. q
  1352. }
  1353. /^X\(\/\/\)$/{
  1354. s//\1/
  1355. q
  1356. }
  1357. /^X\(\/\).*/{
  1358. s//\1/
  1359. q
  1360. }
  1361. s/.*/./; q'`
  1362. srcdir=$ac_confdir
  1363. if test ! -r "$srcdir/$ac_unique_file"; then
  1364. srcdir=..
  1365. fi
  1366. else
  1367. ac_srcdir_defaulted=no
  1368. fi
  1369. if test ! -r "$srcdir/$ac_unique_file"; then
  1370. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1371. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1372. fi
  1373. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1374. ac_abs_confdir=`(
  1375. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1376. pwd)`
  1377. # When building in place, set srcdir=.
  1378. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1379. srcdir=.
  1380. fi
  1381. # Remove unnecessary trailing slashes from srcdir.
  1382. # Double slashes in file names in object file debugging info
  1383. # mess up M-x gdb in Emacs.
  1384. case $srcdir in
  1385. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1386. esac
  1387. for ac_var in $ac_precious_vars; do
  1388. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1389. eval ac_env_${ac_var}_value=\$${ac_var}
  1390. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1391. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1392. done
  1393. #
  1394. # Report the --help message.
  1395. #
  1396. if test "$ac_init_help" = "long"; then
  1397. # Omit some internal or obsolete options to make the list less imposing.
  1398. # This message is too long to be a string in the A/UX 3.1 sh.
  1399. cat <<_ACEOF
  1400. \`configure' configures ntp 4.2.4p8 to adapt to many kinds of systems.
  1401. Usage: $0 [OPTION]... [VAR=VALUE]...
  1402. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1403. VAR=VALUE. See below for descriptions of some of the useful variables.
  1404. Defaults for the options are specified in brackets.
  1405. Configuration:
  1406. -h, --help display this help and exit
  1407. --help=short display options specific to this package
  1408. --help=recursive display the short help of all the included packages
  1409. -V, --version display version information and exit
  1410. -q, --quiet, --silent do not print \`checking...' messages
  1411. --cache-file=FILE cache test results in FILE [disabled]
  1412. -C, --config-cache alias for \`--cache-file=config.cache'
  1413. -n, --no-create do not create output files
  1414. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1415. Installation directories:
  1416. --prefix=PREFIX install architecture-independent files in PREFIX
  1417. [$ac_default_prefix]
  1418. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1419. [PREFIX]
  1420. By default, \`make install' will install all the files in
  1421. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1422. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1423. for instance \`--prefix=\$HOME'.
  1424. For better control, use the options below.
  1425. Fine tuning of the installation directories:
  1426. --bindir=DIR user executables [EPREFIX/bin]
  1427. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1428. --libexecdir=DIR program executables [EPREFIX/libexec]
  1429. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1430. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1431. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1432. --libdir=DIR object code libraries [EPREFIX/lib]
  1433. --includedir=DIR C header files [PREFIX/include]
  1434. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1435. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1436. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1437. --infodir=DIR info documentation [DATAROOTDIR/info]
  1438. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1439. --mandir=DIR man documentation [DATAROOTDIR/man]
  1440. --docdir=DIR documentation root [DATAROOTDIR/doc/ntp]
  1441. --htmldir=DIR html documentation [DOCDIR]
  1442. --dvidir=DIR dvi documentation [DOCDIR]
  1443. --pdfdir=DIR pdf documentation [DOCDIR]
  1444. --psdir=DIR ps documentation [DOCDIR]
  1445. _ACEOF
  1446. cat <<\_ACEOF
  1447. Program names:
  1448. --program-prefix=PREFIX prepend PREFIX to installed program names
  1449. --program-suffix=SUFFIX append SUFFIX to installed program names
  1450. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1451. System types:
  1452. --build=BUILD configure for building on BUILD [guessed]
  1453. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1454. _ACEOF
  1455. fi
  1456. if test -n "$ac_init_help"; then
  1457. case $ac_init_help in
  1458. short | recursive ) echo "Configuration of ntp 4.2.4p8:";;
  1459. esac
  1460. cat <<\_ACEOF
  1461. Optional Features:
  1462. --disable-option-checking ignore unrecognized --enable/--with options
  1463. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1464. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1465. --disable-dependency-tracking speeds up one-time build
  1466. --enable-dependency-tracking do not reject slow dependency extractors
  1467. --enable-shared[=PKGS] build shared libraries [default=no]
  1468. --enable-local-libopts Force using the supplied libopts tearoff code
  1469. --disable-libopts-install
  1470. Do not install libopts with client installation
  1471. --disable-optional-args not wanting optional option args
  1472. --enable-static[=PKGS] build static libraries [default=yes]
  1473. --enable-fast-install[=PKGS]
  1474. optimize for fast installation [default=yes]
  1475. --disable-libtool-lock avoid locking (might break parallel builds)
  1476. --enable-getifaddrs s Enable the use of getifaddrs() [[yes|no|glibc]].
  1477. glibc: Use getifaddrs() in glibc if you know it
  1478. supports IPv6.
  1479. --enable-debugging + include debugging code
  1480. --enable-debug-timing - include processing time debugging code (costs
  1481. performance)
  1482. --enable-dst-minutes n minutes per DST adjustment [60]
  1483. --enable-ignore-dns-errors
  1484. - retry DNS queries on any error
  1485. --enable-BANCOMM - Datum/Bancomm bc635/VME interface
  1486. --enable-GPSVME - TrueTime GPS receiver/VME interface
  1487. --enable-all-clocks + include all suitable non-PARSE clocks:
  1488. --enable-ACTS s ACTS modem service
  1489. --enable-ARBITER + Arbiter 1088A/B GPS receiver
  1490. --enable-ARCRON-MSF + Arcron MSF receiver
  1491. --enable-AS2201 + Austron 2200A/2201A GPS receiver
  1492. --enable-ATOM s ATOM PPS interface
  1493. --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
  1494. --enable-CHU + CHU modem/decoder
  1495. --enable-AUDIO-CHU s CHU audio/decoder
  1496. --enable-DATUM s Datum Programmable Time System
  1497. --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock
  1498. --enable-FG + Forum Graphic GPS
  1499. --enable-HEATH s Heath GC-1000 WWV/WWVH receiver
  1500. --enable-HOPFSERIAL + hopf serial clock device
  1501. --enable-HOPFPCI + hopf 6039 PCI board
  1502. --enable-HPGPS + HP 58503A GPS receiver
  1503. --enable-IRIG s IRIG audio decoder
  1504. --enable-JJY + JJY receiver
  1505. --enable-JUPITER s Rockwell Jupiter GPS receiver
  1506. --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver
  1507. --enable-LOCAL-CLOCK + local clock reference
  1508. --enable-MX4200 s Magnavox MX4200 GPS receiver
  1509. --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver
  1510. --enable-NMEA + NMEA GPS receiver
  1511. --enable-ONCORE s Motorola VP/UT Oncore GPS receiver
  1512. --enable-PALISADE s Palisade clock
  1513. --enable-PCF + Conrad parallel port radio clock
  1514. --enable-PST + PST/Traconex 1020 WWV/WWVH receiver
  1515. --enable-RIPENCC - RIPENCC specific Trimble driver
  1516. --enable-SHM s SHM clock attached thru shared memory
  1517. --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver
  1518. --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface
  1519. --enable-TRUETIME s Kinemetrics/TrueTime receivers
  1520. --enable-TT560 - TrueTime 560 IRIG-B decoder
  1521. --enable-ULINK + Ultralink WWVB receiver
  1522. --enable-WWV s WWV Audio receiver
  1523. --enable-ZYFER + Zyfer GPStarplus receiver
  1524. --enable-parse-clocks - include all suitable PARSE clocks:
  1525. --enable-COMPUTIME s Diem Computime Radio Clock
  1526. --enable-DCF7000 s ELV/DCF7000 clock
  1527. --enable-HOPF6021 s HOPF 6021 clock
  1528. --enable-MEINBERG s Meinberg clocks
  1529. --enable-RAWDCF s DCF77 raw time code
  1530. --enable-RCC8000 s RCC 8000 clock
  1531. --enable-SCHMID s Schmid DCF77 clock
  1532. --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol
  1533. --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol
  1534. --enable-WHARTON s WHARTON 400A Series clock
  1535. --enable-VARITEXT s VARITEXT clock
  1536. --enable-kmem s read /dev/kmem for tick and/or tickadj
  1537. --enable-accurate-adjtime
  1538. s the adjtime() call is accurate
  1539. --enable-tick=VALUE s force a value for 'tick'
  1540. --enable-tickadj=VALUE s force a value for 'tickadj'
  1541. --enable-simulator - build/install the NTPD simulator?
  1542. --enable-slew-always s always slew the time
  1543. --enable-step-slew s step and slew the time
  1544. --enable-ntpdate-step s if ntpdate should step the time
  1545. --enable-hourly-todr-sync
  1546. s if we should sync TODR hourly
  1547. --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
  1548. --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter
  1549. --enable-nist - if we should enable the NIST lockclock scheme
  1550. --enable-ntp-signd - Provide support for Samba's signing daemon,
  1551. =/var/run/ntp_signd
  1552. --enable-wintime - Provide the windows symmetric client hack
  1553. --enable-clockctl s Use /dev/clockctl for non-root clock control
  1554. --enable-linuxcaps + Use Linux capabilities for non-root clock control
  1555. --enable-ipv6 s use IPv6?
  1556. Optional Packages:
  1557. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1558. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1559. --with-autoopts-config specify the config-info script
  1560. --with-regex-header a reg expr header is specified
  1561. --with-libregex libregex installation prefix
  1562. --with-libregex-cflags libregex compile flags
  1563. --with-libregex-libs libregex link command arguments
  1564. --with-binsubdir bin ={bin,sbin}
  1565. --with-arlib - Compile the async resolver library?
  1566. --without-rpath s Disable auto-added -R linker paths
  1567. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1568. --with-pic try to use only PIC/non-PIC objects [default=use
  1569. both]
  1570. --with-tags[=TAGS] include additional configurations [automatic]
  1571. --with-openssl-libdir + =/something/reasonable
  1572. --with-openssl-incdir + =/something/reasonable
  1573. --with-crypto + =openssl
  1574. --with-electricfence - compile with ElectricFence malloc debugger
  1575. --with-kame - =/usr/local/v6
  1576. Some influential environment variables:
  1577. CC C compiler command
  1578. CFLAGS C compiler flags
  1579. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1580. nonstandard directory <lib dir>
  1581. LIBS libraries to pass to the linker, e.g. -l<library>
  1582. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1583. you have headers in a nonstandard directory <include dir>
  1584. CPP C preprocessor
  1585. Use these variables to override the choices made by `configure' or to help
  1586. it to find libraries and programs with nonstandard names/locations.
  1587. Report bugs to the package provider.
  1588. _ACEOF
  1589. ac_status=$?
  1590. fi
  1591. if test "$ac_init_help" = "recursive"; then
  1592. # If there are subdirs, report their specific --help.
  1593. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1594. test -d "$ac_dir" ||
  1595. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1596. continue
  1597. ac_builddir=.
  1598. case "$ac_dir" in
  1599. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1600. *)
  1601. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1602. # A ".." for each directory in $ac_dir_suffix.
  1603. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1604. case $ac_top_builddir_sub in
  1605. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1606. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1607. esac ;;
  1608. esac
  1609. ac_abs_top_builddir=$ac_pwd
  1610. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1611. # for backward compatibility:
  1612. ac_top_builddir=$ac_top_build_prefix
  1613. case $srcdir in
  1614. .) # We are building in place.
  1615. ac_srcdir=.
  1616. ac_top_srcdir=$ac_top_builddir_sub
  1617. ac_abs_top_srcdir=$ac_pwd ;;
  1618. [\\/]* | ?:[\\/]* ) # Absolute name.
  1619. ac_srcdir=$srcdir$ac_dir_suffix;
  1620. ac_top_srcdir=$srcdir
  1621. ac_abs_top_srcdir=$srcdir ;;
  1622. *) # Relative name.
  1623. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1624. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1625. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1626. esac
  1627. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1628. cd "$ac_dir" || { ac_status=$?; continue; }
  1629. # Check for guested configure.
  1630. if test -f "$ac_srcdir/configure.gnu"; then
  1631. echo &&
  1632. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1633. elif test -f "$ac_srcdir/configure"; then
  1634. echo &&
  1635. $SHELL "$ac_srcdir/configure" --help=recursive
  1636. else
  1637. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1638. fi || ac_status=$?
  1639. cd "$ac_pwd" || { ac_status=$?; break; }
  1640. done
  1641. fi
  1642. test -n "$ac_init_help" && exit $ac_status
  1643. if $ac_init_version; then
  1644. cat <<\_ACEOF
  1645. ntp configure 4.2.4p8
  1646. generated by GNU Autoconf 2.65
  1647. Copyright (C) 2009 Free Software Foundation, Inc.
  1648. This configure script is free software; the Free Software Foundation
  1649. gives unlimited permission to copy, distribute and modify it.
  1650. _ACEOF
  1651. exit
  1652. fi
  1653. ## ------------------------ ##
  1654. ## Autoconf initialization. ##
  1655. ## ------------------------ ##
  1656. # ac_fn_c_try_compile LINENO
  1657. # --------------------------
  1658. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1659. ac_fn_c_try_compile ()
  1660. {
  1661. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1662. rm -f conftest.$ac_objext
  1663. if { { ac_try="$ac_compile"
  1664. case "(($ac_try" in
  1665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1666. *) ac_try_echo=$ac_try;;
  1667. esac
  1668. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1669. $as_echo "$ac_try_echo"; } >&5
  1670. (eval "$ac_compile") 2>conftest.err
  1671. ac_status=$?
  1672. if test -s conftest.err; then
  1673. grep -v '^ *+' conftest.err >conftest.er1
  1674. cat conftest.er1 >&5
  1675. mv -f conftest.er1 conftest.err
  1676. fi
  1677. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1678. test $ac_status = 0; } && {
  1679. test -z "$ac_c_werror_flag" ||
  1680. test ! -s conftest.err
  1681. } && test -s conftest.$ac_objext; then :
  1682. ac_retval=0
  1683. else
  1684. $as_echo "$as_me: failed program was:" >&5
  1685. sed 's/^/| /' conftest.$ac_ext >&5
  1686. ac_retval=1
  1687. fi
  1688. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1689. as_fn_set_status $ac_retval
  1690. } # ac_fn_c_try_compile
  1691. # ac_fn_c_try_cpp LINENO
  1692. # ----------------------
  1693. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1694. ac_fn_c_try_cpp ()
  1695. {
  1696. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1697. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1698. case "(($ac_try" in
  1699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1700. *) ac_try_echo=$ac_try;;
  1701. esac
  1702. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1703. $as_echo "$ac_try_echo"; } >&5
  1704. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1705. ac_status=$?
  1706. if test -s conftest.err; then
  1707. grep -v '^ *+' conftest.err >conftest.er1
  1708. cat conftest.er1 >&5
  1709. mv -f conftest.er1 conftest.err
  1710. fi
  1711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1712. test $ac_status = 0; } >/dev/null && {
  1713. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1714. test ! -s conftest.err
  1715. }; then :
  1716. ac_retval=0
  1717. else
  1718. $as_echo "$as_me: failed program was:" >&5
  1719. sed 's/^/| /' conftest.$ac_ext >&5
  1720. ac_retval=1
  1721. fi
  1722. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1723. as_fn_set_status $ac_retval
  1724. } # ac_fn_c_try_cpp
  1725. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1726. # -------------------------------------------------------
  1727. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1728. # the include files in INCLUDES and setting the cache variable VAR
  1729. # accordingly.
  1730. ac_fn_c_check_header_mongrel ()
  1731. {
  1732. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1735. $as_echo_n "checking for $2... " >&6; }
  1736. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1737. $as_echo_n "(cached) " >&6
  1738. fi
  1739. eval ac_res=\$$3
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1741. $as_echo "$ac_res" >&6; }
  1742. else
  1743. # Is the header compilable?
  1744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1745. $as_echo_n "checking $2 usability... " >&6; }
  1746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1747. /* end confdefs.h. */
  1748. $4
  1749. #include <$2>
  1750. _ACEOF
  1751. if ac_fn_c_try_compile "$LINENO"; then :
  1752. ac_header_compiler=yes
  1753. else
  1754. ac_header_compiler=no
  1755. fi
  1756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1758. $as_echo "$ac_header_compiler" >&6; }
  1759. # Is the header present?
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1761. $as_echo_n "checking $2 presence... " >&6; }
  1762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1763. /* end confdefs.h. */
  1764. #include <$2>
  1765. _ACEOF
  1766. if ac_fn_c_try_cpp "$LINENO"; then :
  1767. ac_header_preproc=yes
  1768. else
  1769. ac_header_preproc=no
  1770. fi
  1771. rm -f conftest.err conftest.$ac_ext
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1773. $as_echo "$ac_header_preproc" >&6; }
  1774. # So? What about this header?
  1775. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1776. yes:no: )
  1777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1778. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1780. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1781. ;;
  1782. no:yes:* )
  1783. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1784. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1786. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1788. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1790. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1792. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1793. ;;
  1794. esac
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1796. $as_echo_n "checking for $2... " >&6; }
  1797. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1798. $as_echo_n "(cached) " >&6
  1799. else
  1800. eval "$3=\$ac_header_compiler"
  1801. fi
  1802. eval ac_res=\$$3
  1803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1804. $as_echo "$ac_res" >&6; }
  1805. fi
  1806. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1807. } # ac_fn_c_check_header_mongrel
  1808. # ac_fn_c_try_run LINENO
  1809. # ----------------------
  1810. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1811. # that executables *can* be run.
  1812. ac_fn_c_try_run ()
  1813. {
  1814. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1815. if { { ac_try="$ac_link"
  1816. case "(($ac_try" in
  1817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1818. *) ac_try_echo=$ac_try;;
  1819. esac
  1820. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1821. $as_echo "$ac_try_echo"; } >&5
  1822. (eval "$ac_link") 2>&5
  1823. ac_status=$?
  1824. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1825. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1826. { { case "(($ac_try" in
  1827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1828. *) ac_try_echo=$ac_try;;
  1829. esac
  1830. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1831. $as_echo "$ac_try_echo"; } >&5
  1832. (eval "$ac_try") 2>&5
  1833. ac_status=$?
  1834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1835. test $ac_status = 0; }; }; then :
  1836. ac_retval=0
  1837. else
  1838. $as_echo "$as_me: program exited with status $ac_status" >&5
  1839. $as_echo "$as_me: failed program was:" >&5
  1840. sed 's/^/| /' conftest.$ac_ext >&5
  1841. ac_retval=$ac_status
  1842. fi
  1843. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1844. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1845. as_fn_set_status $ac_retval
  1846. } # ac_fn_c_try_run
  1847. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1848. # -------------------------------------------------------
  1849. # Tests whether HEADER exists and can be compiled using the include files in
  1850. # INCLUDES, setting the cache variable VAR accordingly.
  1851. ac_fn_c_check_header_compile ()
  1852. {
  1853. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1855. $as_echo_n "checking for $2... " >&6; }
  1856. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1857. $as_echo_n "(cached) " >&6
  1858. else
  1859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1860. /* end confdefs.h. */
  1861. $4
  1862. #include <$2>
  1863. _ACEOF
  1864. if ac_fn_c_try_compile "$LINENO"; then :
  1865. eval "$3=yes"
  1866. else
  1867. eval "$3=no"
  1868. fi
  1869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1870. fi
  1871. eval ac_res=\$$3
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1873. $as_echo "$ac_res" >&6; }
  1874. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1875. } # ac_fn_c_check_header_compile
  1876. # ac_fn_c_try_link LINENO
  1877. # -----------------------
  1878. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1879. ac_fn_c_try_link ()
  1880. {
  1881. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1882. rm -f conftest.$ac_objext conftest$ac_exeext
  1883. if { { ac_try="$ac_link"
  1884. case "(($ac_try" in
  1885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1886. *) ac_try_echo=$ac_try;;
  1887. esac
  1888. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1889. $as_echo "$ac_try_echo"; } >&5
  1890. (eval "$ac_link") 2>conftest.err
  1891. ac_status=$?
  1892. if test -s conftest.err; then
  1893. grep -v '^ *+' conftest.err >conftest.er1
  1894. cat conftest.er1 >&5
  1895. mv -f conftest.er1 conftest.err
  1896. fi
  1897. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1898. test $ac_status = 0; } && {
  1899. test -z "$ac_c_werror_flag" ||
  1900. test ! -s conftest.err
  1901. } && test -s conftest$ac_exeext && {
  1902. test "$cross_compiling" = yes ||
  1903. $as_test_x conftest$ac_exeext
  1904. }; then :
  1905. ac_retval=0
  1906. else
  1907. $as_echo "$as_me: failed program was:" >&5
  1908. sed 's/^/| /' conftest.$ac_ext >&5
  1909. ac_retval=1
  1910. fi
  1911. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1912. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1913. # interfere with the next link command; also delete a directory that is
  1914. # left behind by Apple's compiler. We do this before executing the actions.
  1915. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1916. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1917. as_fn_set_status $ac_retval
  1918. } # ac_fn_c_try_link
  1919. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1920. # -------------------------------------------
  1921. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1922. # variable VAR accordingly.
  1923. ac_fn_c_check_type ()
  1924. {
  1925. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1927. $as_echo_n "checking for $2... " >&6; }
  1928. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1929. $as_echo_n "(cached) " >&6
  1930. else
  1931. eval "$3=no"
  1932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1933. /* end confdefs.h. */
  1934. $4
  1935. int
  1936. main ()
  1937. {
  1938. if (sizeof ($2))
  1939. return 0;
  1940. ;
  1941. return 0;
  1942. }
  1943. _ACEOF
  1944. if ac_fn_c_try_compile "$LINENO"; then :
  1945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1946. /* end confdefs.h. */
  1947. $4
  1948. int
  1949. main ()
  1950. {
  1951. if (sizeof (($2)))
  1952. return 0;
  1953. ;
  1954. return 0;
  1955. }
  1956. _ACEOF
  1957. if ac_fn_c_try_compile "$LINENO"; then :
  1958. else
  1959. eval "$3=yes"
  1960. fi
  1961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1962. fi
  1963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1964. fi
  1965. eval ac_res=\$$3
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1967. $as_echo "$ac_res" >&6; }
  1968. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1969. } # ac_fn_c_check_type
  1970. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1971. # --------------------------------------------
  1972. # Tries to find the compile-time value of EXPR in a program that includes
  1973. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1974. # computed
  1975. ac_fn_c_compute_int ()
  1976. {
  1977. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1978. if test "$cross_compiling" = yes; then
  1979. # Depending upon the size, compute the lo and hi bounds.
  1980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1981. /* end confdefs.h. */
  1982. $4
  1983. int
  1984. main ()
  1985. {
  1986. static int test_array [1 - 2 * !(($2) >= 0)];
  1987. test_array [0] = 0
  1988. ;
  1989. return 0;
  1990. }
  1991. _ACEOF
  1992. if ac_fn_c_try_compile "$LINENO"; then :
  1993. ac_lo=0 ac_mid=0
  1994. while :; do
  1995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1996. /* end confdefs.h. */
  1997. $4
  1998. int
  1999. main ()
  2000. {
  2001. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2002. test_array [0] = 0
  2003. ;
  2004. return 0;
  2005. }
  2006. _ACEOF
  2007. if ac_fn_c_try_compile "$LINENO"; then :
  2008. ac_hi=$ac_mid; break
  2009. else
  2010. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2011. if test $ac_lo -le $ac_mid; then
  2012. ac_lo= ac_hi=
  2013. break
  2014. fi
  2015. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2016. fi
  2017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2018. done
  2019. else
  2020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2021. /* end confdefs.h. */
  2022. $4
  2023. int
  2024. main ()
  2025. {
  2026. static int test_array [1 - 2 * !(($2) < 0)];
  2027. test_array [0] = 0
  2028. ;
  2029. return 0;
  2030. }
  2031. _ACEOF
  2032. if ac_fn_c_try_compile "$LINENO"; then :
  2033. ac_hi=-1 ac_mid=-1
  2034. while :; do
  2035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2036. /* end confdefs.h. */
  2037. $4
  2038. int
  2039. main ()
  2040. {
  2041. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2042. test_array [0] = 0
  2043. ;
  2044. return 0;
  2045. }
  2046. _ACEOF
  2047. if ac_fn_c_try_compile "$LINENO"; then :
  2048. ac_lo=$ac_mid; break
  2049. else
  2050. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2051. if test $ac_mid -le $ac_hi; then
  2052. ac_lo= ac_hi=
  2053. break
  2054. fi
  2055. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2056. fi
  2057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2058. done
  2059. else
  2060. ac_lo= ac_hi=
  2061. fi
  2062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2063. fi
  2064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2065. # Binary search between lo and hi bounds.
  2066. while test "x$ac_lo" != "x$ac_hi"; do
  2067. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2069. /* end confdefs.h. */
  2070. $4
  2071. int
  2072. main ()
  2073. {
  2074. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2075. test_array [0] = 0
  2076. ;
  2077. return 0;
  2078. }
  2079. _ACEOF
  2080. if ac_fn_c_try_compile "$LINENO"; then :
  2081. ac_hi=$ac_mid
  2082. else
  2083. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2084. fi
  2085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2086. done
  2087. case $ac_lo in #((
  2088. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2089. '') ac_retval=1 ;;
  2090. esac
  2091. else
  2092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2093. /* end confdefs.h. */
  2094. $4
  2095. static long int longval () { return $2; }
  2096. static unsigned long int ulongval () { return $2; }
  2097. #include <stdio.h>
  2098. #include <stdlib.h>
  2099. int
  2100. main ()
  2101. {
  2102. FILE *f = fopen ("conftest.val", "w");
  2103. if (! f)
  2104. return 1;
  2105. if (($2) < 0)
  2106. {
  2107. long int i = longval ();
  2108. if (i != ($2))
  2109. return 1;
  2110. fprintf (f, "%ld", i);
  2111. }
  2112. else
  2113. {
  2114. unsigned long int i = ulongval ();
  2115. if (i != ($2))
  2116. return 1;
  2117. fprintf (f, "%lu", i);
  2118. }
  2119. /* Do not output a trailing newline, as this causes \r\n confusion
  2120. on some platforms. */
  2121. return ferror (f) || fclose (f) != 0;
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_c_try_run "$LINENO"; then :
  2127. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2128. else
  2129. ac_retval=1
  2130. fi
  2131. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2132. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2133. rm -f conftest.val
  2134. fi
  2135. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2136. as_fn_set_status $ac_retval
  2137. } # ac_fn_c_compute_int
  2138. # ac_fn_c_check_func LINENO FUNC VAR
  2139. # ----------------------------------
  2140. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2141. ac_fn_c_check_func ()
  2142. {
  2143. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2145. $as_echo_n "checking for $2... " >&6; }
  2146. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2147. $as_echo_n "(cached) " >&6
  2148. else
  2149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2150. /* end confdefs.h. */
  2151. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2152. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2153. #define $2 innocuous_$2
  2154. /* System header to define __stub macros and hopefully few prototypes,
  2155. which can conflict with char $2 (); below.
  2156. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2157. <limits.h> exists even on freestanding compilers. */
  2158. #ifdef __STDC__
  2159. # include <limits.h>
  2160. #else
  2161. # include <assert.h>
  2162. #endif
  2163. #undef $2
  2164. /* Override any GCC internal prototype to avoid an error.
  2165. Use char because int might match the return type of a GCC
  2166. builtin and then its argument prototype would still apply. */
  2167. #ifdef __cplusplus
  2168. extern "C"
  2169. #endif
  2170. char $2 ();
  2171. /* The GNU C library defines this for functions which it implements
  2172. to always fail with ENOSYS. Some functions are actually named
  2173. something starting with __ and the normal name is an alias. */
  2174. #if defined __stub_$2 || defined __stub___$2
  2175. choke me
  2176. #endif
  2177. int
  2178. main ()
  2179. {
  2180. return $2 ();
  2181. ;
  2182. return 0;
  2183. }
  2184. _ACEOF
  2185. if ac_fn_c_try_link "$LINENO"; then :
  2186. eval "$3=yes"
  2187. else
  2188. eval "$3=no"
  2189. fi
  2190. rm -f core conftest.err conftest.$ac_objext \
  2191. conftest$ac_exeext conftest.$ac_ext
  2192. fi
  2193. eval ac_res=\$$3
  2194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2195. $as_echo "$ac_res" >&6; }
  2196. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2197. } # ac_fn_c_check_func
  2198. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2199. # ----------------------------------------------------
  2200. # Tries to find if the field MEMBER exists in type AGGR, after including
  2201. # INCLUDES, setting cache variable VAR accordingly.
  2202. ac_fn_c_check_member ()
  2203. {
  2204. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2206. $as_echo_n "checking for $2.$3... " >&6; }
  2207. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2208. $as_echo_n "(cached) " >&6
  2209. else
  2210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2211. /* end confdefs.h. */
  2212. $5
  2213. int
  2214. main ()
  2215. {
  2216. static $2 ac_aggr;
  2217. if (ac_aggr.$3)
  2218. return 0;
  2219. ;
  2220. return 0;
  2221. }
  2222. _ACEOF
  2223. if ac_fn_c_try_compile "$LINENO"; then :
  2224. eval "$4=yes"
  2225. else
  2226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2227. /* end confdefs.h. */
  2228. $5
  2229. int
  2230. main ()
  2231. {
  2232. static $2 ac_aggr;
  2233. if (sizeof ac_aggr.$3)
  2234. return 0;
  2235. ;
  2236. return 0;
  2237. }
  2238. _ACEOF
  2239. if ac_fn_c_try_compile "$LINENO"; then :
  2240. eval "$4=yes"
  2241. else
  2242. eval "$4=no"
  2243. fi
  2244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2245. fi
  2246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2247. fi
  2248. eval ac_res=\$$4
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2250. $as_echo "$ac_res" >&6; }
  2251. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2252. } # ac_fn_c_check_member
  2253. cat >config.log <<_ACEOF
  2254. This file contains any messages produced by compilers while
  2255. running configure, to aid debugging if configure makes a mistake.
  2256. It was created by ntp $as_me 4.2.4p8, which was
  2257. generated by GNU Autoconf 2.65. Invocation command line was
  2258. $ $0 $@
  2259. _ACEOF
  2260. exec 5>>config.log
  2261. {
  2262. cat <<_ASUNAME
  2263. ## --------- ##
  2264. ## Platform. ##
  2265. ## --------- ##
  2266. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2267. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2268. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2269. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2270. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2271. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2272. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2273. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2274. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2275. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2276. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2277. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2278. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2279. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2280. _ASUNAME
  2281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2282. for as_dir in $PATH
  2283. do
  2284. IFS=$as_save_IFS
  2285. test -z "$as_dir" && as_dir=.
  2286. $as_echo "PATH: $as_dir"
  2287. done
  2288. IFS=$as_save_IFS
  2289. } >&5
  2290. cat >&5 <<_ACEOF
  2291. ## ----------- ##
  2292. ## Core tests. ##
  2293. ## ----------- ##
  2294. _ACEOF
  2295. # Keep a trace of the command line.
  2296. # Strip out --no-create and --no-recursion so they do not pile up.
  2297. # Strip out --silent because we don't want to record it for future runs.
  2298. # Also quote any args containing shell meta-characters.
  2299. # Make two passes to allow for proper duplicate-argument suppression.
  2300. ac_configure_args=
  2301. ac_configure_args0=
  2302. ac_configure_args1=
  2303. ac_must_keep_next=false
  2304. for ac_pass in 1 2
  2305. do
  2306. for ac_arg
  2307. do
  2308. case $ac_arg in
  2309. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2310. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2311. | -silent | --silent | --silen | --sile | --sil)
  2312. continue ;;
  2313. *\'*)
  2314. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2315. esac
  2316. case $ac_pass in
  2317. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2318. 2)
  2319. as_fn_append ac_configure_args1 " '$ac_arg'"
  2320. if test $ac_must_keep_next = true; then
  2321. ac_must_keep_next=false # Got value, back to normal.
  2322. else
  2323. case $ac_arg in
  2324. *=* | --config-cache | -C | -disable-* | --disable-* \
  2325. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2326. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2327. | -with-* | --with-* | -without-* | --without-* | --x)
  2328. case "$ac_configure_args0 " in
  2329. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2330. esac
  2331. ;;
  2332. -* ) ac_must_keep_next=true ;;
  2333. esac
  2334. fi
  2335. as_fn_append ac_configure_args " '$ac_arg'"
  2336. ;;
  2337. esac
  2338. done
  2339. done
  2340. { ac_configure_args0=; unset ac_configure_args0;}
  2341. { ac_configure_args1=; unset ac_configure_args1;}
  2342. # When interrupted or exit'd, cleanup temporary files, and complete
  2343. # config.log. We remove comments because anyway the quotes in there
  2344. # would cause problems or look ugly.
  2345. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2346. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2347. trap 'exit_status=$?
  2348. # Save into config.log some information that might help in debugging.
  2349. {
  2350. echo
  2351. cat <<\_ASBOX
  2352. ## ---------------- ##
  2353. ## Cache variables. ##
  2354. ## ---------------- ##
  2355. _ASBOX
  2356. echo
  2357. # The following way of writing the cache mishandles newlines in values,
  2358. (
  2359. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2360. eval ac_val=\$$ac_var
  2361. case $ac_val in #(
  2362. *${as_nl}*)
  2363. case $ac_var in #(
  2364. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2365. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2366. esac
  2367. case $ac_var in #(
  2368. _ | IFS | as_nl) ;; #(
  2369. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2370. *) { eval $ac_var=; unset $ac_var;} ;;
  2371. esac ;;
  2372. esac
  2373. done
  2374. (set) 2>&1 |
  2375. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2376. *${as_nl}ac_space=\ *)
  2377. sed -n \
  2378. "s/'\''/'\''\\\\'\'''\''/g;
  2379. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2380. ;; #(
  2381. *)
  2382. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2383. ;;
  2384. esac |
  2385. sort
  2386. )
  2387. echo
  2388. cat <<\_ASBOX
  2389. ## ----------------- ##
  2390. ## Output variables. ##
  2391. ## ----------------- ##
  2392. _ASBOX
  2393. echo
  2394. for ac_var in $ac_subst_vars
  2395. do
  2396. eval ac_val=\$$ac_var
  2397. case $ac_val in
  2398. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2399. esac
  2400. $as_echo "$ac_var='\''$ac_val'\''"
  2401. done | sort
  2402. echo
  2403. if test -n "$ac_subst_files"; then
  2404. cat <<\_ASBOX
  2405. ## ------------------- ##
  2406. ## File substitutions. ##
  2407. ## ------------------- ##
  2408. _ASBOX
  2409. echo
  2410. for ac_var in $ac_subst_files
  2411. do
  2412. eval ac_val=\$$ac_var
  2413. case $ac_val in
  2414. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2415. esac
  2416. $as_echo "$ac_var='\''$ac_val'\''"
  2417. done | sort
  2418. echo
  2419. fi
  2420. if test -s confdefs.h; then
  2421. cat <<\_ASBOX
  2422. ## ----------- ##
  2423. ## confdefs.h. ##
  2424. ## ----------- ##
  2425. _ASBOX
  2426. echo
  2427. cat confdefs.h
  2428. echo
  2429. fi
  2430. test "$ac_signal" != 0 &&
  2431. $as_echo "$as_me: caught signal $ac_signal"
  2432. $as_echo "$as_me: exit $exit_status"
  2433. } >&5
  2434. rm -f core *.core core.conftest.* &&
  2435. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2436. exit $exit_status
  2437. ' 0
  2438. for ac_signal in 1 2 13 15; do
  2439. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2440. done
  2441. ac_signal=0
  2442. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2443. rm -f -r conftest* confdefs.h
  2444. $as_echo "/* confdefs.h */" > confdefs.h
  2445. # Predefined preprocessor variables.
  2446. cat >>confdefs.h <<_ACEOF
  2447. #define PACKAGE_NAME "$PACKAGE_NAME"
  2448. _ACEOF
  2449. cat >>confdefs.h <<_ACEOF
  2450. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2451. _ACEOF
  2452. cat >>confdefs.h <<_ACEOF
  2453. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2454. _ACEOF
  2455. cat >>confdefs.h <<_ACEOF
  2456. #define PACKAGE_STRING "$PACKAGE_STRING"
  2457. _ACEOF
  2458. cat >>confdefs.h <<_ACEOF
  2459. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2460. _ACEOF
  2461. cat >>confdefs.h <<_ACEOF
  2462. #define PACKAGE_URL "$PACKAGE_URL"
  2463. _ACEOF
  2464. # Let the site file select an alternate cache file if it wants to.
  2465. # Prefer an explicitly selected file to automatically selected ones.
  2466. ac_site_file1=NONE
  2467. ac_site_file2=NONE
  2468. if test -n "$CONFIG_SITE"; then
  2469. ac_site_file1=$CONFIG_SITE
  2470. elif test "x$prefix" != xNONE; then
  2471. ac_site_file1=$prefix/share/config.site
  2472. ac_site_file2=$prefix/etc/config.site
  2473. else
  2474. ac_site_file1=$ac_default_prefix/share/config.site
  2475. ac_site_file2=$ac_default_prefix/etc/config.site
  2476. fi
  2477. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2478. do
  2479. test "x$ac_site_file" = xNONE && continue
  2480. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2482. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2483. sed 's/^/| /' "$ac_site_file" >&5
  2484. . "$ac_site_file"
  2485. fi
  2486. done
  2487. if test -r "$cache_file"; then
  2488. # Some versions of bash will fail to source /dev/null (special files
  2489. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2490. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2492. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2493. case $cache_file in
  2494. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2495. *) . "./$cache_file";;
  2496. esac
  2497. fi
  2498. else
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2500. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2501. >$cache_file
  2502. fi
  2503. # Check that the precious variables saved in the cache have kept the same
  2504. # value.
  2505. ac_cache_corrupted=false
  2506. for ac_var in $ac_precious_vars; do
  2507. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2508. eval ac_new_set=\$ac_env_${ac_var}_set
  2509. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2510. eval ac_new_val=\$ac_env_${ac_var}_value
  2511. case $ac_old_set,$ac_new_set in
  2512. set,)
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2514. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2515. ac_cache_corrupted=: ;;
  2516. ,set)
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2518. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2519. ac_cache_corrupted=: ;;
  2520. ,);;
  2521. *)
  2522. if test "x$ac_old_val" != "x$ac_new_val"; then
  2523. # differences in whitespace do not lead to failure.
  2524. ac_old_val_w=`echo x $ac_old_val`
  2525. ac_new_val_w=`echo x $ac_new_val`
  2526. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2528. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2529. ac_cache_corrupted=:
  2530. else
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2532. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2533. eval $ac_var=\$ac_old_val
  2534. fi
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2536. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2538. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2539. fi;;
  2540. esac
  2541. # Pass precious variables to config.status.
  2542. if test "$ac_new_set" = set; then
  2543. case $ac_new_val in
  2544. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2545. *) ac_arg=$ac_var=$ac_new_val ;;
  2546. esac
  2547. case " $ac_configure_args " in
  2548. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2549. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2550. esac
  2551. fi
  2552. done
  2553. if $ac_cache_corrupted; then
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2555. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2557. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2558. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2559. fi
  2560. ## -------------------- ##
  2561. ## Main body of script. ##
  2562. ## -------------------- ##
  2563. ac_ext=c
  2564. ac_cpp='$CPP $CPPFLAGS'
  2565. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2566. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2567. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2568. am__api_version='1.11'
  2569. ac_aux_dir=
  2570. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2571. for ac_t in install-sh install.sh shtool; do
  2572. if test -f "$ac_dir/$ac_t"; then
  2573. ac_aux_dir=$ac_dir
  2574. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2575. break 2
  2576. fi
  2577. done
  2578. done
  2579. if test -z "$ac_aux_dir"; then
  2580. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2581. fi
  2582. # These three variables are undocumented and unsupported,
  2583. # and are intended to be withdrawn in a future Autoconf release.
  2584. # They can cause serious problems if a builder's source tree is in a directory
  2585. # whose full name contains unusual characters.
  2586. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2587. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2588. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2589. # Find a good install program. We prefer a C program (faster),
  2590. # so one script is as good as another. But avoid the broken or
  2591. # incompatible versions:
  2592. # SysV /etc/install, /usr/sbin/install
  2593. # SunOS /usr/etc/install
  2594. # IRIX /sbin/install
  2595. # AIX /bin/install
  2596. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2597. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2598. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2599. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2600. # OS/2's system install, which has a completely different semantic
  2601. # ./install, which can be erroneously created by make from ./install.sh.
  2602. # Reject install programs that cannot install multiple files.
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2604. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2605. if test -z "$INSTALL"; then
  2606. if test "${ac_cv_path_install+set}" = set; then :
  2607. $as_echo_n "(cached) " >&6
  2608. else
  2609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2610. for as_dir in $PATH
  2611. do
  2612. IFS=$as_save_IFS
  2613. test -z "$as_dir" && as_dir=.
  2614. # Account for people who put trailing slashes in PATH elements.
  2615. case $as_dir/ in #((
  2616. ./ | .// | /[cC]/* | \
  2617. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2618. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2619. /usr/ucb/* ) ;;
  2620. *)
  2621. # OSF1 and SCO ODT 3.0 have their own names for install.
  2622. # Don't use installbsd from OSF since it installs stuff as root
  2623. # by default.
  2624. for ac_prog in ginstall scoinst install; do
  2625. for ac_exec_ext in '' $ac_executable_extensions; do
  2626. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2627. if test $ac_prog = install &&
  2628. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2629. # AIX install. It has an incompatible calling convention.
  2630. :
  2631. elif test $ac_prog = install &&
  2632. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2633. # program-specific install script used by HP pwplus--don't use.
  2634. :
  2635. else
  2636. rm -rf conftest.one conftest.two conftest.dir
  2637. echo one > conftest.one
  2638. echo two > conftest.two
  2639. mkdir conftest.dir
  2640. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2641. test -s conftest.one && test -s conftest.two &&
  2642. test -s conftest.dir/conftest.one &&
  2643. test -s conftest.dir/conftest.two
  2644. then
  2645. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2646. break 3
  2647. fi
  2648. fi
  2649. fi
  2650. done
  2651. done
  2652. ;;
  2653. esac
  2654. done
  2655. IFS=$as_save_IFS
  2656. rm -rf conftest.one conftest.two conftest.dir
  2657. fi
  2658. if test "${ac_cv_path_install+set}" = set; then
  2659. INSTALL=$ac_cv_path_install
  2660. else
  2661. # As a last resort, use the slow shell script. Don't cache a
  2662. # value for INSTALL within a source directory, because that will
  2663. # break other packages using the cache if that directory is
  2664. # removed, or if the value is a relative name.
  2665. INSTALL=$ac_install_sh
  2666. fi
  2667. fi
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2669. $as_echo "$INSTALL" >&6; }
  2670. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2671. # It thinks the first close brace ends the variable substitution.
  2672. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2673. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2674. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2676. $as_echo_n "checking whether build environment is sane... " >&6; }
  2677. # Just in case
  2678. sleep 1
  2679. echo timestamp > conftest.file
  2680. # Reject unsafe characters in $srcdir or the absolute working directory
  2681. # name. Accept space and tab only in the latter.
  2682. am_lf='
  2683. '
  2684. case `pwd` in
  2685. *[\\\"\#\$\&\'\`$am_lf]*)
  2686. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2687. esac
  2688. case $srcdir in
  2689. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2690. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2691. esac
  2692. # Do `set' in a subshell so we don't clobber the current shell's
  2693. # arguments. Must try -L first in case configure is actually a
  2694. # symlink; some systems play weird games with the mod time of symlinks
  2695. # (eg FreeBSD returns the mod time of the symlink's containing
  2696. # directory).
  2697. if (
  2698. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2699. if test "$*" = "X"; then
  2700. # -L didn't work.
  2701. set X `ls -t "$srcdir/configure" conftest.file`
  2702. fi
  2703. rm -f conftest.file
  2704. if test "$*" != "X $srcdir/configure conftest.file" \
  2705. && test "$*" != "X conftest.file $srcdir/configure"; then
  2706. # If neither matched, then we have a broken ls. This can happen
  2707. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2708. # broken ls alias from the environment. This has actually
  2709. # happened. Such a system could not be considered "sane".
  2710. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2711. alias in your environment" "$LINENO" 5
  2712. fi
  2713. test "$2" = conftest.file
  2714. )
  2715. then
  2716. # Ok.
  2717. :
  2718. else
  2719. as_fn_error "newly created file is older than distributed files!
  2720. Check your system clock" "$LINENO" 5
  2721. fi
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2723. $as_echo "yes" >&6; }
  2724. test "$program_prefix" != NONE &&
  2725. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2726. # Use a double $ so make ignores it.
  2727. test "$program_suffix" != NONE &&
  2728. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2729. # Double any \ or $.
  2730. # By default was `s,x,x', remove it if useless.
  2731. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2732. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2733. # expand $ac_aux_dir to an absolute path
  2734. am_aux_dir=`cd $ac_aux_dir && pwd`
  2735. if test x"${MISSING+set}" != xset; then
  2736. case $am_aux_dir in
  2737. *\ * | *\ *)
  2738. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2739. *)
  2740. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2741. esac
  2742. fi
  2743. # Use eval to expand $SHELL
  2744. if eval "$MISSING --run true"; then
  2745. am_missing_run="$MISSING --run "
  2746. else
  2747. am_missing_run=
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2749. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2750. fi
  2751. if test x"${install_sh}" != xset; then
  2752. case $am_aux_dir in
  2753. *\ * | *\ *)
  2754. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2755. *)
  2756. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2757. esac
  2758. fi
  2759. # Installed binaries are usually stripped using `strip' when the user
  2760. # run `make install-strip'. However `strip' might not be the right
  2761. # tool to use in cross-compilation environments, therefore Automake
  2762. # will honor the `STRIP' environment variable to overrule this program.
  2763. if test "$cross_compiling" != no; then
  2764. if test -n "$ac_tool_prefix"; then
  2765. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2766. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2768. $as_echo_n "checking for $ac_word... " >&6; }
  2769. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2770. $as_echo_n "(cached) " >&6
  2771. else
  2772. if test -n "$STRIP"; then
  2773. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2774. else
  2775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2776. for as_dir in $PATH
  2777. do
  2778. IFS=$as_save_IFS
  2779. test -z "$as_dir" && as_dir=.
  2780. for ac_exec_ext in '' $ac_executable_extensions; do
  2781. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2782. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2784. break 2
  2785. fi
  2786. done
  2787. done
  2788. IFS=$as_save_IFS
  2789. fi
  2790. fi
  2791. STRIP=$ac_cv_prog_STRIP
  2792. if test -n "$STRIP"; then
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2794. $as_echo "$STRIP" >&6; }
  2795. else
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2797. $as_echo "no" >&6; }
  2798. fi
  2799. fi
  2800. if test -z "$ac_cv_prog_STRIP"; then
  2801. ac_ct_STRIP=$STRIP
  2802. # Extract the first word of "strip", so it can be a program name with args.
  2803. set dummy strip; ac_word=$2
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2805. $as_echo_n "checking for $ac_word... " >&6; }
  2806. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2807. $as_echo_n "(cached) " >&6
  2808. else
  2809. if test -n "$ac_ct_STRIP"; then
  2810. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2811. else
  2812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2813. for as_dir in $PATH
  2814. do
  2815. IFS=$as_save_IFS
  2816. test -z "$as_dir" && as_dir=.
  2817. for ac_exec_ext in '' $ac_executable_extensions; do
  2818. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2819. ac_cv_prog_ac_ct_STRIP="strip"
  2820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2821. break 2
  2822. fi
  2823. done
  2824. done
  2825. IFS=$as_save_IFS
  2826. fi
  2827. fi
  2828. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2829. if test -n "$ac_ct_STRIP"; then
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2831. $as_echo "$ac_ct_STRIP" >&6; }
  2832. else
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2834. $as_echo "no" >&6; }
  2835. fi
  2836. if test "x$ac_ct_STRIP" = x; then
  2837. STRIP=":"
  2838. else
  2839. case $cross_compiling:$ac_tool_warned in
  2840. yes:)
  2841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2843. ac_tool_warned=yes ;;
  2844. esac
  2845. STRIP=$ac_ct_STRIP
  2846. fi
  2847. else
  2848. STRIP="$ac_cv_prog_STRIP"
  2849. fi
  2850. fi
  2851. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2853. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2854. if test -z "$MKDIR_P"; then
  2855. if test "${ac_cv_path_mkdir+set}" = set; then :
  2856. $as_echo_n "(cached) " >&6
  2857. else
  2858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2859. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2860. do
  2861. IFS=$as_save_IFS
  2862. test -z "$as_dir" && as_dir=.
  2863. for ac_prog in mkdir gmkdir; do
  2864. for ac_exec_ext in '' $ac_executable_extensions; do
  2865. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2866. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2867. 'mkdir (GNU coreutils) '* | \
  2868. 'mkdir (coreutils) '* | \
  2869. 'mkdir (fileutils) '4.1*)
  2870. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2871. break 3;;
  2872. esac
  2873. done
  2874. done
  2875. done
  2876. IFS=$as_save_IFS
  2877. fi
  2878. test -d ./--version && rmdir ./--version
  2879. if test "${ac_cv_path_mkdir+set}" = set; then
  2880. MKDIR_P="$ac_cv_path_mkdir -p"
  2881. else
  2882. # As a last resort, use the slow shell script. Don't cache a
  2883. # value for MKDIR_P within a source directory, because that will
  2884. # break other packages using the cache if that directory is
  2885. # removed, or if the value is a relative name.
  2886. MKDIR_P="$ac_install_sh -d"
  2887. fi
  2888. fi
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2890. $as_echo "$MKDIR_P" >&6; }
  2891. mkdir_p="$MKDIR_P"
  2892. case $mkdir_p in
  2893. [\\/$]* | ?:[\\/]*) ;;
  2894. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2895. esac
  2896. for ac_prog in gawk mawk nawk awk
  2897. do
  2898. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2899. set dummy $ac_prog; ac_word=$2
  2900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2901. $as_echo_n "checking for $ac_word... " >&6; }
  2902. if test "${ac_cv_prog_AWK+set}" = set; then :
  2903. $as_echo_n "(cached) " >&6
  2904. else
  2905. if test -n "$AWK"; then
  2906. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2907. else
  2908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2909. for as_dir in $PATH
  2910. do
  2911. IFS=$as_save_IFS
  2912. test -z "$as_dir" && as_dir=.
  2913. for ac_exec_ext in '' $ac_executable_extensions; do
  2914. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2915. ac_cv_prog_AWK="$ac_prog"
  2916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2917. break 2
  2918. fi
  2919. done
  2920. done
  2921. IFS=$as_save_IFS
  2922. fi
  2923. fi
  2924. AWK=$ac_cv_prog_AWK
  2925. if test -n "$AWK"; then
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2927. $as_echo "$AWK" >&6; }
  2928. else
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2930. $as_echo "no" >&6; }
  2931. fi
  2932. test -n "$AWK" && break
  2933. done
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2935. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2936. set x ${MAKE-make}
  2937. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2938. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2939. $as_echo_n "(cached) " >&6
  2940. else
  2941. cat >conftest.make <<\_ACEOF
  2942. SHELL = /bin/sh
  2943. all:
  2944. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2945. _ACEOF
  2946. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2947. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2948. *@@@%%%=?*=@@@%%%*)
  2949. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2950. *)
  2951. eval ac_cv_prog_make_${ac_make}_set=no;;
  2952. esac
  2953. rm -f conftest.make
  2954. fi
  2955. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2957. $as_echo "yes" >&6; }
  2958. SET_MAKE=
  2959. else
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2961. $as_echo "no" >&6; }
  2962. SET_MAKE="MAKE=${MAKE-make}"
  2963. fi
  2964. rm -rf .tst 2>/dev/null
  2965. mkdir .tst 2>/dev/null
  2966. if test -d .tst; then
  2967. am__leading_dot=.
  2968. else
  2969. am__leading_dot=_
  2970. fi
  2971. rmdir .tst 2>/dev/null
  2972. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2973. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2974. # is not polluted with repeated "-I."
  2975. am__isrc=' -I$(srcdir)'
  2976. # test to see if srcdir already configured
  2977. if test -f $srcdir/config.status; then
  2978. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2979. fi
  2980. fi
  2981. # test whether we have cygpath
  2982. if test -z "$CYGPATH_W"; then
  2983. if (cygpath --version) >/dev/null 2>/dev/null; then
  2984. CYGPATH_W='cygpath -w'
  2985. else
  2986. CYGPATH_W=echo
  2987. fi
  2988. fi
  2989. # Define the identity of the package.
  2990. PACKAGE='ntp'
  2991. VERSION='4.2.4p8'
  2992. cat >>confdefs.h <<_ACEOF
  2993. #define PACKAGE "$PACKAGE"
  2994. _ACEOF
  2995. cat >>confdefs.h <<_ACEOF
  2996. #define VERSION "$VERSION"
  2997. _ACEOF
  2998. # Some tools Automake needs.
  2999. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3000. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3001. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3002. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3003. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3004. # We need awk for the "check" target. The system "awk" is bad on
  3005. # some platforms.
  3006. # Always define AMTAR for backward compatibility.
  3007. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3008. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3009. # Make sure we can run config.sub.
  3010. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3011. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3013. $as_echo_n "checking build system type... " >&6; }
  3014. if test "${ac_cv_build+set}" = set; then :
  3015. $as_echo_n "(cached) " >&6
  3016. else
  3017. ac_build_alias=$build_alias
  3018. test "x$ac_build_alias" = x &&
  3019. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3020. test "x$ac_build_alias" = x &&
  3021. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3022. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3023. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3024. fi
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3026. $as_echo "$ac_cv_build" >&6; }
  3027. case $ac_cv_build in
  3028. *-*-*) ;;
  3029. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3030. esac
  3031. build=$ac_cv_build
  3032. ac_save_IFS=$IFS; IFS='-'
  3033. set x $ac_cv_build
  3034. shift
  3035. build_cpu=$1
  3036. build_vendor=$2
  3037. shift; shift
  3038. # Remember, the first character of IFS is used to create $*,
  3039. # except with old shells:
  3040. build_os=$*
  3041. IFS=$ac_save_IFS
  3042. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3044. $as_echo_n "checking host system type... " >&6; }
  3045. if test "${ac_cv_host+set}" = set; then :
  3046. $as_echo_n "(cached) " >&6
  3047. else
  3048. if test "x$host_alias" = x; then
  3049. ac_cv_host=$ac_cv_build
  3050. else
  3051. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3052. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3053. fi
  3054. fi
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3056. $as_echo "$ac_cv_host" >&6; }
  3057. case $ac_cv_host in
  3058. *-*-*) ;;
  3059. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3060. esac
  3061. host=$ac_cv_host
  3062. ac_save_IFS=$IFS; IFS='-'
  3063. set x $ac_cv_host
  3064. shift
  3065. host_cpu=$1
  3066. host_vendor=$2
  3067. shift; shift
  3068. # Remember, the first character of IFS is used to create $*,
  3069. # except with old shells:
  3070. host_os=$*
  3071. IFS=$ac_save_IFS
  3072. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3073. cat >>confdefs.h <<_ACEOF
  3074. #define STR_SYSTEM "$host"
  3075. _ACEOF
  3076. ac_config_headers="$ac_config_headers config.h"
  3077. ac_cv_var_atom_ok=no
  3078. ac_cv_var_oncore_ok=no
  3079. ac_cv_var_parse_ok=no
  3080. ac_cv_var_ripe_ncc_ok=no
  3081. ac_cv_var_jupiter_ok=no
  3082. iCFLAGS="$CFLAGS"
  3083. DEPDIR="${am__leading_dot}deps"
  3084. ac_config_commands="$ac_config_commands depfiles"
  3085. am_make=${MAKE-make}
  3086. cat > confinc << 'END'
  3087. am__doit:
  3088. @echo this is the am__doit target
  3089. .PHONY: am__doit
  3090. END
  3091. # If we don't find an include directive, just comment out the code.
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3093. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3094. am__include="#"
  3095. am__quote=
  3096. _am_result=none
  3097. # First try GNU make style include.
  3098. echo "include confinc" > confmf
  3099. # Ignore all kinds of additional output from `make'.
  3100. case `$am_make -s -f confmf 2> /dev/null` in #(
  3101. *the\ am__doit\ target*)
  3102. am__include=include
  3103. am__quote=
  3104. _am_result=GNU
  3105. ;;
  3106. esac
  3107. # Now try BSD make style include.
  3108. if test "$am__include" = "#"; then
  3109. echo '.include "confinc"' > confmf
  3110. case `$am_make -s -f confmf 2> /dev/null` in #(
  3111. *the\ am__doit\ target*)
  3112. am__include=.include
  3113. am__quote="\""
  3114. _am_result=BSD
  3115. ;;
  3116. esac
  3117. fi
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3119. $as_echo "$_am_result" >&6; }
  3120. rm -f confinc confmf
  3121. # Check whether --enable-dependency-tracking was given.
  3122. if test "${enable_dependency_tracking+set}" = set; then :
  3123. enableval=$enable_dependency_tracking;
  3124. fi
  3125. if test "x$enable_dependency_tracking" != xno; then
  3126. am_depcomp="$ac_aux_dir/depcomp"
  3127. AMDEPBACKSLASH='\'
  3128. fi
  3129. if test "x$enable_dependency_tracking" != xno; then
  3130. AMDEP_TRUE=
  3131. AMDEP_FALSE='#'
  3132. else
  3133. AMDEP_TRUE='#'
  3134. AMDEP_FALSE=
  3135. fi
  3136. ac_ext=c
  3137. ac_cpp='$CPP $CPPFLAGS'
  3138. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3139. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3140. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3141. if test -n "$ac_tool_prefix"; then
  3142. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3143. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3145. $as_echo_n "checking for $ac_word... " >&6; }
  3146. if test "${ac_cv_prog_CC+set}" = set; then :
  3147. $as_echo_n "(cached) " >&6
  3148. else
  3149. if test -n "$CC"; then
  3150. ac_cv_prog_CC="$CC" # Let the user override the test.
  3151. else
  3152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3153. for as_dir in $PATH
  3154. do
  3155. IFS=$as_save_IFS
  3156. test -z "$as_dir" && as_dir=.
  3157. for ac_exec_ext in '' $ac_executable_extensions; do
  3158. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3159. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3160. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3161. break 2
  3162. fi
  3163. done
  3164. done
  3165. IFS=$as_save_IFS
  3166. fi
  3167. fi
  3168. CC=$ac_cv_prog_CC
  3169. if test -n "$CC"; then
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3171. $as_echo "$CC" >&6; }
  3172. else
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3174. $as_echo "no" >&6; }
  3175. fi
  3176. fi
  3177. if test -z "$ac_cv_prog_CC"; then
  3178. ac_ct_CC=$CC
  3179. # Extract the first word of "gcc", so it can be a program name with args.
  3180. set dummy gcc; ac_word=$2
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3182. $as_echo_n "checking for $ac_word... " >&6; }
  3183. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3184. $as_echo_n "(cached) " >&6
  3185. else
  3186. if test -n "$ac_ct_CC"; then
  3187. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3188. else
  3189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3190. for as_dir in $PATH
  3191. do
  3192. IFS=$as_save_IFS
  3193. test -z "$as_dir" && as_dir=.
  3194. for ac_exec_ext in '' $ac_executable_extensions; do
  3195. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3196. ac_cv_prog_ac_ct_CC="gcc"
  3197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3198. break 2
  3199. fi
  3200. done
  3201. done
  3202. IFS=$as_save_IFS
  3203. fi
  3204. fi
  3205. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3206. if test -n "$ac_ct_CC"; then
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3208. $as_echo "$ac_ct_CC" >&6; }
  3209. else
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3211. $as_echo "no" >&6; }
  3212. fi
  3213. if test "x$ac_ct_CC" = x; then
  3214. CC=""
  3215. else
  3216. case $cross_compiling:$ac_tool_warned in
  3217. yes:)
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3219. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3220. ac_tool_warned=yes ;;
  3221. esac
  3222. CC=$ac_ct_CC
  3223. fi
  3224. else
  3225. CC="$ac_cv_prog_CC"
  3226. fi
  3227. if test -z "$CC"; then
  3228. if test -n "$ac_tool_prefix"; then
  3229. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3230. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3232. $as_echo_n "checking for $ac_word... " >&6; }
  3233. if test "${ac_cv_prog_CC+set}" = set; then :
  3234. $as_echo_n "(cached) " >&6
  3235. else
  3236. if test -n "$CC"; then
  3237. ac_cv_prog_CC="$CC" # Let the user override the test.
  3238. else
  3239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3240. for as_dir in $PATH
  3241. do
  3242. IFS=$as_save_IFS
  3243. test -z "$as_dir" && as_dir=.
  3244. for ac_exec_ext in '' $ac_executable_extensions; do
  3245. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3246. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3247. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3248. break 2
  3249. fi
  3250. done
  3251. done
  3252. IFS=$as_save_IFS
  3253. fi
  3254. fi
  3255. CC=$ac_cv_prog_CC
  3256. if test -n "$CC"; then
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3258. $as_echo "$CC" >&6; }
  3259. else
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3261. $as_echo "no" >&6; }
  3262. fi
  3263. fi
  3264. fi
  3265. if test -z "$CC"; then
  3266. # Extract the first word of "cc", so it can be a program name with args.
  3267. set dummy cc; ac_word=$2
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3269. $as_echo_n "checking for $ac_word... " >&6; }
  3270. if test "${ac_cv_prog_CC+set}" = set; then :
  3271. $as_echo_n "(cached) " >&6
  3272. else
  3273. if test -n "$CC"; then
  3274. ac_cv_prog_CC="$CC" # Let the user override the test.
  3275. else
  3276. ac_prog_rejected=no
  3277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3278. for as_dir in $PATH
  3279. do
  3280. IFS=$as_save_IFS
  3281. test -z "$as_dir" && as_dir=.
  3282. for ac_exec_ext in '' $ac_executable_extensions; do
  3283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3284. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3285. ac_prog_rejected=yes
  3286. continue
  3287. fi
  3288. ac_cv_prog_CC="cc"
  3289. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3290. break 2
  3291. fi
  3292. done
  3293. done
  3294. IFS=$as_save_IFS
  3295. if test $ac_prog_rejected = yes; then
  3296. # We found a bogon in the path, so make sure we never use it.
  3297. set dummy $ac_cv_prog_CC
  3298. shift
  3299. if test $# != 0; then
  3300. # We chose a different compiler from the bogus one.
  3301. # However, it has the same basename, so the bogon will be chosen
  3302. # first if we set CC to just the basename; use the full file name.
  3303. shift
  3304. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3305. fi
  3306. fi
  3307. fi
  3308. fi
  3309. CC=$ac_cv_prog_CC
  3310. if test -n "$CC"; then
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3312. $as_echo "$CC" >&6; }
  3313. else
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3315. $as_echo "no" >&6; }
  3316. fi
  3317. fi
  3318. if test -z "$CC"; then
  3319. if test -n "$ac_tool_prefix"; then
  3320. for ac_prog in cl.exe
  3321. do
  3322. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3323. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3325. $as_echo_n "checking for $ac_word... " >&6; }
  3326. if test "${ac_cv_prog_CC+set}" = set; then :
  3327. $as_echo_n "(cached) " >&6
  3328. else
  3329. if test -n "$CC"; then
  3330. ac_cv_prog_CC="$CC" # Let the user override the test.
  3331. else
  3332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3333. for as_dir in $PATH
  3334. do
  3335. IFS=$as_save_IFS
  3336. test -z "$as_dir" && as_dir=.
  3337. for ac_exec_ext in '' $ac_executable_extensions; do
  3338. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3339. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3341. break 2
  3342. fi
  3343. done
  3344. done
  3345. IFS=$as_save_IFS
  3346. fi
  3347. fi
  3348. CC=$ac_cv_prog_CC
  3349. if test -n "$CC"; then
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3351. $as_echo "$CC" >&6; }
  3352. else
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3354. $as_echo "no" >&6; }
  3355. fi
  3356. test -n "$CC" && break
  3357. done
  3358. fi
  3359. if test -z "$CC"; then
  3360. ac_ct_CC=$CC
  3361. for ac_prog in cl.exe
  3362. do
  3363. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3364. set dummy $ac_prog; ac_word=$2
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3366. $as_echo_n "checking for $ac_word... " >&6; }
  3367. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3368. $as_echo_n "(cached) " >&6
  3369. else
  3370. if test -n "$ac_ct_CC"; then
  3371. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3372. else
  3373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3374. for as_dir in $PATH
  3375. do
  3376. IFS=$as_save_IFS
  3377. test -z "$as_dir" && as_dir=.
  3378. for ac_exec_ext in '' $ac_executable_extensions; do
  3379. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3380. ac_cv_prog_ac_ct_CC="$ac_prog"
  3381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3382. break 2
  3383. fi
  3384. done
  3385. done
  3386. IFS=$as_save_IFS
  3387. fi
  3388. fi
  3389. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3390. if test -n "$ac_ct_CC"; then
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3392. $as_echo "$ac_ct_CC" >&6; }
  3393. else
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3395. $as_echo "no" >&6; }
  3396. fi
  3397. test -n "$ac_ct_CC" && break
  3398. done
  3399. if test "x$ac_ct_CC" = x; then
  3400. CC=""
  3401. else
  3402. case $cross_compiling:$ac_tool_warned in
  3403. yes:)
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3405. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3406. ac_tool_warned=yes ;;
  3407. esac
  3408. CC=$ac_ct_CC
  3409. fi
  3410. fi
  3411. fi
  3412. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3413. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3414. as_fn_error "no acceptable C compiler found in \$PATH
  3415. See \`config.log' for more details." "$LINENO" 5; }
  3416. # Provide some information about the compiler.
  3417. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3418. set X $ac_compile
  3419. ac_compiler=$2
  3420. for ac_option in --version -v -V -qversion; do
  3421. { { ac_try="$ac_compiler $ac_option >&5"
  3422. case "(($ac_try" in
  3423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3424. *) ac_try_echo=$ac_try;;
  3425. esac
  3426. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3427. $as_echo "$ac_try_echo"; } >&5
  3428. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3429. ac_status=$?
  3430. if test -s conftest.err; then
  3431. sed '10a\
  3432. ... rest of stderr output deleted ...
  3433. 10q' conftest.err >conftest.er1
  3434. cat conftest.er1 >&5
  3435. fi
  3436. rm -f conftest.er1 conftest.err
  3437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3438. test $ac_status = 0; }
  3439. done
  3440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3441. /* end confdefs.h. */
  3442. int
  3443. main ()
  3444. {
  3445. ;
  3446. return 0;
  3447. }
  3448. _ACEOF
  3449. ac_clean_files_save=$ac_clean_files
  3450. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3451. # Try to create an executable without -o first, disregard a.out.
  3452. # It will help us diagnose broken compilers, and finding out an intuition
  3453. # of exeext.
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3455. $as_echo_n "checking whether the C compiler works... " >&6; }
  3456. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3457. # The possible output files:
  3458. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3459. ac_rmfiles=
  3460. for ac_file in $ac_files
  3461. do
  3462. case $ac_file in
  3463. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3464. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3465. esac
  3466. done
  3467. rm -f $ac_rmfiles
  3468. if { { ac_try="$ac_link_default"
  3469. case "(($ac_try" in
  3470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3471. *) ac_try_echo=$ac_try;;
  3472. esac
  3473. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3474. $as_echo "$ac_try_echo"; } >&5
  3475. (eval "$ac_link_default") 2>&5
  3476. ac_status=$?
  3477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3478. test $ac_status = 0; }; then :
  3479. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3480. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3481. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3482. # so that the user can short-circuit this test for compilers unknown to
  3483. # Autoconf.
  3484. for ac_file in $ac_files ''
  3485. do
  3486. test -f "$ac_file" || continue
  3487. case $ac_file in
  3488. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3489. ;;
  3490. [ab].out )
  3491. # We found the default executable, but exeext='' is most
  3492. # certainly right.
  3493. break;;
  3494. *.* )
  3495. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3496. then :; else
  3497. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3498. fi
  3499. # We set ac_cv_exeext here because the later test for it is not
  3500. # safe: cross compilers may not add the suffix if given an `-o'
  3501. # argument, so we may need to know it at that point already.
  3502. # Even if this section looks crufty: it has the advantage of
  3503. # actually working.
  3504. break;;
  3505. * )
  3506. break;;
  3507. esac
  3508. done
  3509. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3510. else
  3511. ac_file=''
  3512. fi
  3513. if test -z "$ac_file"; then :
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3515. $as_echo "no" >&6; }
  3516. $as_echo "$as_me: failed program was:" >&5
  3517. sed 's/^/| /' conftest.$ac_ext >&5
  3518. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3519. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3520. { as_fn_set_status 77
  3521. as_fn_error "C compiler cannot create executables
  3522. See \`config.log' for more details." "$LINENO" 5; }; }
  3523. else
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3525. $as_echo "yes" >&6; }
  3526. fi
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3528. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3530. $as_echo "$ac_file" >&6; }
  3531. ac_exeext=$ac_cv_exeext
  3532. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3533. ac_clean_files=$ac_clean_files_save
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3535. $as_echo_n "checking for suffix of executables... " >&6; }
  3536. if { { ac_try="$ac_link"
  3537. case "(($ac_try" in
  3538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3539. *) ac_try_echo=$ac_try;;
  3540. esac
  3541. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3542. $as_echo "$ac_try_echo"; } >&5
  3543. (eval "$ac_link") 2>&5
  3544. ac_status=$?
  3545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3546. test $ac_status = 0; }; then :
  3547. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3548. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3549. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3550. # `rm'.
  3551. for ac_file in conftest.exe conftest conftest.*; do
  3552. test -f "$ac_file" || continue
  3553. case $ac_file in
  3554. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3555. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3556. break;;
  3557. * ) break;;
  3558. esac
  3559. done
  3560. else
  3561. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3562. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3563. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3564. See \`config.log' for more details." "$LINENO" 5; }
  3565. fi
  3566. rm -f conftest conftest$ac_cv_exeext
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3568. $as_echo "$ac_cv_exeext" >&6; }
  3569. rm -f conftest.$ac_ext
  3570. EXEEXT=$ac_cv_exeext
  3571. ac_exeext=$EXEEXT
  3572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3573. /* end confdefs.h. */
  3574. #include <stdio.h>
  3575. int
  3576. main ()
  3577. {
  3578. FILE *f = fopen ("conftest.out", "w");
  3579. return ferror (f) || fclose (f) != 0;
  3580. ;
  3581. return 0;
  3582. }
  3583. _ACEOF
  3584. ac_clean_files="$ac_clean_files conftest.out"
  3585. # Check that the compiler produces executables we can run. If not, either
  3586. # the compiler is broken, or we cross compile.
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3588. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3589. if test "$cross_compiling" != yes; then
  3590. { { ac_try="$ac_link"
  3591. case "(($ac_try" in
  3592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3593. *) ac_try_echo=$ac_try;;
  3594. esac
  3595. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3596. $as_echo "$ac_try_echo"; } >&5
  3597. (eval "$ac_link") 2>&5
  3598. ac_status=$?
  3599. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3600. test $ac_status = 0; }
  3601. if { ac_try='./conftest$ac_cv_exeext'
  3602. { { case "(($ac_try" in
  3603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3604. *) ac_try_echo=$ac_try;;
  3605. esac
  3606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3607. $as_echo "$ac_try_echo"; } >&5
  3608. (eval "$ac_try") 2>&5
  3609. ac_status=$?
  3610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3611. test $ac_status = 0; }; }; then
  3612. cross_compiling=no
  3613. else
  3614. if test "$cross_compiling" = maybe; then
  3615. cross_compiling=yes
  3616. else
  3617. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3618. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3619. as_fn_error "cannot run C compiled programs.
  3620. If you meant to cross compile, use \`--host'.
  3621. See \`config.log' for more details." "$LINENO" 5; }
  3622. fi
  3623. fi
  3624. fi
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3626. $as_echo "$cross_compiling" >&6; }
  3627. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3628. ac_clean_files=$ac_clean_files_save
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3630. $as_echo_n "checking for suffix of object files... " >&6; }
  3631. if test "${ac_cv_objext+set}" = set; then :
  3632. $as_echo_n "(cached) " >&6
  3633. else
  3634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3635. /* end confdefs.h. */
  3636. int
  3637. main ()
  3638. {
  3639. ;
  3640. return 0;
  3641. }
  3642. _ACEOF
  3643. rm -f conftest.o conftest.obj
  3644. if { { ac_try="$ac_compile"
  3645. case "(($ac_try" in
  3646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3647. *) ac_try_echo=$ac_try;;
  3648. esac
  3649. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3650. $as_echo "$ac_try_echo"; } >&5
  3651. (eval "$ac_compile") 2>&5
  3652. ac_status=$?
  3653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3654. test $ac_status = 0; }; then :
  3655. for ac_file in conftest.o conftest.obj conftest.*; do
  3656. test -f "$ac_file" || continue;
  3657. case $ac_file in
  3658. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3659. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3660. break;;
  3661. esac
  3662. done
  3663. else
  3664. $as_echo "$as_me: failed program was:" >&5
  3665. sed 's/^/| /' conftest.$ac_ext >&5
  3666. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3667. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3668. as_fn_error "cannot compute suffix of object files: cannot compile
  3669. See \`config.log' for more details." "$LINENO" 5; }
  3670. fi
  3671. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3672. fi
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3674. $as_echo "$ac_cv_objext" >&6; }
  3675. OBJEXT=$ac_cv_objext
  3676. ac_objext=$OBJEXT
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3678. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3679. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3680. $as_echo_n "(cached) " >&6
  3681. else
  3682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3683. /* end confdefs.h. */
  3684. int
  3685. main ()
  3686. {
  3687. #ifndef __GNUC__
  3688. choke me
  3689. #endif
  3690. ;
  3691. return 0;
  3692. }
  3693. _ACEOF
  3694. if ac_fn_c_try_compile "$LINENO"; then :
  3695. ac_compiler_gnu=yes
  3696. else
  3697. ac_compiler_gnu=no
  3698. fi
  3699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3700. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3701. fi
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3703. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3704. if test $ac_compiler_gnu = yes; then
  3705. GCC=yes
  3706. else
  3707. GCC=
  3708. fi
  3709. ac_test_CFLAGS=${CFLAGS+set}
  3710. ac_save_CFLAGS=$CFLAGS
  3711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3712. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3713. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3714. $as_echo_n "(cached) " >&6
  3715. else
  3716. ac_save_c_werror_flag=$ac_c_werror_flag
  3717. ac_c_werror_flag=yes
  3718. ac_cv_prog_cc_g=no
  3719. CFLAGS="-g"
  3720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3721. /* end confdefs.h. */
  3722. int
  3723. main ()
  3724. {
  3725. ;
  3726. return 0;
  3727. }
  3728. _ACEOF
  3729. if ac_fn_c_try_compile "$LINENO"; then :
  3730. ac_cv_prog_cc_g=yes
  3731. else
  3732. CFLAGS=""
  3733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3734. /* end confdefs.h. */
  3735. int
  3736. main ()
  3737. {
  3738. ;
  3739. return 0;
  3740. }
  3741. _ACEOF
  3742. if ac_fn_c_try_compile "$LINENO"; then :
  3743. else
  3744. ac_c_werror_flag=$ac_save_c_werror_flag
  3745. CFLAGS="-g"
  3746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3747. /* end confdefs.h. */
  3748. int
  3749. main ()
  3750. {
  3751. ;
  3752. return 0;
  3753. }
  3754. _ACEOF
  3755. if ac_fn_c_try_compile "$LINENO"; then :
  3756. ac_cv_prog_cc_g=yes
  3757. fi
  3758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3759. fi
  3760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3761. fi
  3762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3763. ac_c_werror_flag=$ac_save_c_werror_flag
  3764. fi
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3766. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3767. if test "$ac_test_CFLAGS" = set; then
  3768. CFLAGS=$ac_save_CFLAGS
  3769. elif test $ac_cv_prog_cc_g = yes; then
  3770. if test "$GCC" = yes; then
  3771. CFLAGS="-g -O2"
  3772. else
  3773. CFLAGS="-g"
  3774. fi
  3775. else
  3776. if test "$GCC" = yes; then
  3777. CFLAGS="-O2"
  3778. else
  3779. CFLAGS=
  3780. fi
  3781. fi
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3783. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3784. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3785. $as_echo_n "(cached) " >&6
  3786. else
  3787. ac_cv_prog_cc_c89=no
  3788. ac_save_CC=$CC
  3789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3790. /* end confdefs.h. */
  3791. #include <stdarg.h>
  3792. #include <stdio.h>
  3793. #include <sys/types.h>
  3794. #include <sys/stat.h>
  3795. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3796. struct buf { int x; };
  3797. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3798. static char *e (p, i)
  3799. char **p;
  3800. int i;
  3801. {
  3802. return p[i];
  3803. }
  3804. static char *f (char * (*g) (char **, int), char **p, ...)
  3805. {
  3806. char *s;
  3807. va_list v;
  3808. va_start (v,p);
  3809. s = g (p, va_arg (v,int));
  3810. va_end (v);
  3811. return s;
  3812. }
  3813. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3814. function prototypes and stuff, but not '\xHH' hex character constants.
  3815. These don't provoke an error unfortunately, instead are silently treated
  3816. as 'x'. The following induces an error, until -std is added to get
  3817. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3818. array size at least. It's necessary to write '\x00'==0 to get something
  3819. that's true only with -std. */
  3820. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3821. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3822. inside strings and character constants. */
  3823. #define FOO(x) 'x'
  3824. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3825. int test (int i, double x);
  3826. struct s1 {int (*f) (int a);};
  3827. struct s2 {int (*f) (double a);};
  3828. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3829. int argc;
  3830. char **argv;
  3831. int
  3832. main ()
  3833. {
  3834. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3835. ;
  3836. return 0;
  3837. }
  3838. _ACEOF
  3839. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3840. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3841. do
  3842. CC="$ac_save_CC $ac_arg"
  3843. if ac_fn_c_try_compile "$LINENO"; then :
  3844. ac_cv_prog_cc_c89=$ac_arg
  3845. fi
  3846. rm -f core conftest.err conftest.$ac_objext
  3847. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3848. done
  3849. rm -f conftest.$ac_ext
  3850. CC=$ac_save_CC
  3851. fi
  3852. # AC_CACHE_VAL
  3853. case "x$ac_cv_prog_cc_c89" in
  3854. x)
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3856. $as_echo "none needed" >&6; } ;;
  3857. xno)
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3859. $as_echo "unsupported" >&6; } ;;
  3860. *)
  3861. CC="$CC $ac_cv_prog_cc_c89"
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3863. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3864. esac
  3865. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3866. fi
  3867. ac_ext=c
  3868. ac_cpp='$CPP $CPPFLAGS'
  3869. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3870. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3871. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3872. depcc="$CC" am_compiler_list=
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3874. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3875. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3876. $as_echo_n "(cached) " >&6
  3877. else
  3878. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3879. # We make a subdir and do the tests there. Otherwise we can end up
  3880. # making bogus files that we don't know about and never remove. For
  3881. # instance it was reported that on HP-UX the gcc test will end up
  3882. # making a dummy file named `D' -- because `-MD' means `put the output
  3883. # in D'.
  3884. mkdir conftest.dir
  3885. # Copy depcomp to subdir because otherwise we won't find it if we're
  3886. # using a relative directory.
  3887. cp "$am_depcomp" conftest.dir
  3888. cd conftest.dir
  3889. # We will build objects and dependencies in a subdirectory because
  3890. # it helps to detect inapplicable dependency modes. For instance
  3891. # both Tru64's cc and ICC support -MD to output dependencies as a
  3892. # side effect of compilation, but ICC will put the dependencies in
  3893. # the current directory while Tru64 will put them in the object
  3894. # directory.
  3895. mkdir sub
  3896. am_cv_CC_dependencies_compiler_type=none
  3897. if test "$am_compiler_list" = ""; then
  3898. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3899. fi
  3900. am__universal=false
  3901. case " $depcc " in #(
  3902. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3903. esac
  3904. for depmode in $am_compiler_list; do
  3905. # Setup a source with many dependencies, because some compilers
  3906. # like to wrap large dependency lists on column 80 (with \), and
  3907. # we should not choose a depcomp mode which is confused by this.
  3908. #
  3909. # We need to recreate these files for each test, as the compiler may
  3910. # overwrite some of them when testing with obscure command lines.
  3911. # This happens at least with the AIX C compiler.
  3912. : > sub/conftest.c
  3913. for i in 1 2 3 4 5 6; do
  3914. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3915. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3916. # Solaris 8's {/usr,}/bin/sh.
  3917. touch sub/conftst$i.h
  3918. done
  3919. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3920. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3921. # mode. It turns out that the SunPro C++ compiler does not properly
  3922. # handle `-M -o', and we need to detect this. Also, some Intel
  3923. # versions had trouble with output in subdirs
  3924. am__obj=sub/conftest.${OBJEXT-o}
  3925. am__minus_obj="-o $am__obj"
  3926. case $depmode in
  3927. gcc)
  3928. # This depmode causes a compiler race in universal mode.
  3929. test "$am__universal" = false || continue
  3930. ;;
  3931. nosideeffect)
  3932. # after this tag, mechanisms are not by side-effect, so they'll
  3933. # only be used when explicitly requested
  3934. if test "x$enable_dependency_tracking" = xyes; then
  3935. continue
  3936. else
  3937. break
  3938. fi
  3939. ;;
  3940. msvisualcpp | msvcmsys)
  3941. # This compiler won't grok `-c -o', but also, the minuso test has
  3942. # not run yet. These depmodes are late enough in the game, and
  3943. # so weak that their functioning should not be impacted.
  3944. am__obj=conftest.${OBJEXT-o}
  3945. am__minus_obj=
  3946. ;;
  3947. none) break ;;
  3948. esac
  3949. if depmode=$depmode \
  3950. source=sub/conftest.c object=$am__obj \
  3951. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3952. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3953. >/dev/null 2>conftest.err &&
  3954. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3955. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3956. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3957. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3958. # icc doesn't choke on unknown options, it will just issue warnings
  3959. # or remarks (even with -Werror). So we grep stderr for any message
  3960. # that says an option was ignored or not supported.
  3961. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3962. # icc: Command line warning: ignoring option '-M'; no argument required
  3963. # The diagnosis changed in icc 8.0:
  3964. # icc: Command line remark: option '-MP' not supported
  3965. if (grep 'ignoring option' conftest.err ||
  3966. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3967. am_cv_CC_dependencies_compiler_type=$depmode
  3968. break
  3969. fi
  3970. fi
  3971. done
  3972. cd ..
  3973. rm -rf conftest.dir
  3974. else
  3975. am_cv_CC_dependencies_compiler_type=none
  3976. fi
  3977. fi
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3979. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3980. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3981. if
  3982. test "x$enable_dependency_tracking" != xno \
  3983. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3984. am__fastdepCC_TRUE=
  3985. am__fastdepCC_FALSE='#'
  3986. else
  3987. am__fastdepCC_TRUE='#'
  3988. am__fastdepCC_FALSE=
  3989. fi
  3990. ac_ext=c
  3991. ac_cpp='$CPP $CPPFLAGS'
  3992. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3993. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3994. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3996. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3997. # On Suns, sometimes $CPP names a directory.
  3998. if test -n "$CPP" && test -d "$CPP"; then
  3999. CPP=
  4000. fi
  4001. if test -z "$CPP"; then
  4002. if test "${ac_cv_prog_CPP+set}" = set; then :
  4003. $as_echo_n "(cached) " >&6
  4004. else
  4005. # Double quotes because CPP needs to be expanded
  4006. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4007. do
  4008. ac_preproc_ok=false
  4009. for ac_c_preproc_warn_flag in '' yes
  4010. do
  4011. # Use a header file that comes with gcc, so configuring glibc
  4012. # with a fresh cross-compiler works.
  4013. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4014. # <limits.h> exists even on freestanding compilers.
  4015. # On the NeXT, cc -E runs the code through the compiler's parser,
  4016. # not just through cpp. "Syntax error" is here to catch this case.
  4017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4018. /* end confdefs.h. */
  4019. #ifdef __STDC__
  4020. # include <limits.h>
  4021. #else
  4022. # include <assert.h>
  4023. #endif
  4024. Syntax error
  4025. _ACEOF
  4026. if ac_fn_c_try_cpp "$LINENO"; then :
  4027. else
  4028. # Broken: fails on valid input.
  4029. continue
  4030. fi
  4031. rm -f conftest.err conftest.$ac_ext
  4032. # OK, works on sane cases. Now check whether nonexistent headers
  4033. # can be detected and how.
  4034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4035. /* end confdefs.h. */
  4036. #include <ac_nonexistent.h>
  4037. _ACEOF
  4038. if ac_fn_c_try_cpp "$LINENO"; then :
  4039. # Broken: success on invalid input.
  4040. continue
  4041. else
  4042. # Passes both tests.
  4043. ac_preproc_ok=:
  4044. break
  4045. fi
  4046. rm -f conftest.err conftest.$ac_ext
  4047. done
  4048. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4049. rm -f conftest.err conftest.$ac_ext
  4050. if $ac_preproc_ok; then :
  4051. break
  4052. fi
  4053. done
  4054. ac_cv_prog_CPP=$CPP
  4055. fi
  4056. CPP=$ac_cv_prog_CPP
  4057. else
  4058. ac_cv_prog_CPP=$CPP
  4059. fi
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4061. $as_echo "$CPP" >&6; }
  4062. ac_preproc_ok=false
  4063. for ac_c_preproc_warn_flag in '' yes
  4064. do
  4065. # Use a header file that comes with gcc, so configuring glibc
  4066. # with a fresh cross-compiler works.
  4067. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4068. # <limits.h> exists even on freestanding compilers.
  4069. # On the NeXT, cc -E runs the code through the compiler's parser,
  4070. # not just through cpp. "Syntax error" is here to catch this case.
  4071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4072. /* end confdefs.h. */
  4073. #ifdef __STDC__
  4074. # include <limits.h>
  4075. #else
  4076. # include <assert.h>
  4077. #endif
  4078. Syntax error
  4079. _ACEOF
  4080. if ac_fn_c_try_cpp "$LINENO"; then :
  4081. else
  4082. # Broken: fails on valid input.
  4083. continue
  4084. fi
  4085. rm -f conftest.err conftest.$ac_ext
  4086. # OK, works on sane cases. Now check whether nonexistent headers
  4087. # can be detected and how.
  4088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4089. /* end confdefs.h. */
  4090. #include <ac_nonexistent.h>
  4091. _ACEOF
  4092. if ac_fn_c_try_cpp "$LINENO"; then :
  4093. # Broken: success on invalid input.
  4094. continue
  4095. else
  4096. # Passes both tests.
  4097. ac_preproc_ok=:
  4098. break
  4099. fi
  4100. rm -f conftest.err conftest.$ac_ext
  4101. done
  4102. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4103. rm -f conftest.err conftest.$ac_ext
  4104. if $ac_preproc_ok; then :
  4105. else
  4106. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4107. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4108. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4109. See \`config.log' for more details." "$LINENO" 5; }
  4110. fi
  4111. ac_ext=c
  4112. ac_cpp='$CPP $CPPFLAGS'
  4113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4117. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4118. if test "${ac_cv_path_GREP+set}" = set; then :
  4119. $as_echo_n "(cached) " >&6
  4120. else
  4121. if test -z "$GREP"; then
  4122. ac_path_GREP_found=false
  4123. # Loop through the user's path and test for each of PROGNAME-LIST
  4124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4125. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4126. do
  4127. IFS=$as_save_IFS
  4128. test -z "$as_dir" && as_dir=.
  4129. for ac_prog in grep ggrep; do
  4130. for ac_exec_ext in '' $ac_executable_extensions; do
  4131. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4132. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4133. # Check for GNU ac_path_GREP and select it if it is found.
  4134. # Check for GNU $ac_path_GREP
  4135. case `"$ac_path_GREP" --version 2>&1` in
  4136. *GNU*)
  4137. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4138. *)
  4139. ac_count=0
  4140. $as_echo_n 0123456789 >"conftest.in"
  4141. while :
  4142. do
  4143. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4144. mv "conftest.tmp" "conftest.in"
  4145. cp "conftest.in" "conftest.nl"
  4146. $as_echo 'GREP' >> "conftest.nl"
  4147. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4148. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4149. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4150. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4151. # Best one so far, save it but keep looking for a better one
  4152. ac_cv_path_GREP="$ac_path_GREP"
  4153. ac_path_GREP_max=$ac_count
  4154. fi
  4155. # 10*(2^10) chars as input seems more than enough
  4156. test $ac_count -gt 10 && break
  4157. done
  4158. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4159. esac
  4160. $ac_path_GREP_found && break 3
  4161. done
  4162. done
  4163. done
  4164. IFS=$as_save_IFS
  4165. if test -z "$ac_cv_path_GREP"; then
  4166. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4167. fi
  4168. else
  4169. ac_cv_path_GREP=$GREP
  4170. fi
  4171. fi
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4173. $as_echo "$ac_cv_path_GREP" >&6; }
  4174. GREP="$ac_cv_path_GREP"
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4176. $as_echo_n "checking for egrep... " >&6; }
  4177. if test "${ac_cv_path_EGREP+set}" = set; then :
  4178. $as_echo_n "(cached) " >&6
  4179. else
  4180. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4181. then ac_cv_path_EGREP="$GREP -E"
  4182. else
  4183. if test -z "$EGREP"; then
  4184. ac_path_EGREP_found=false
  4185. # Loop through the user's path and test for each of PROGNAME-LIST
  4186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4187. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4188. do
  4189. IFS=$as_save_IFS
  4190. test -z "$as_dir" && as_dir=.
  4191. for ac_prog in egrep; do
  4192. for ac_exec_ext in '' $ac_executable_extensions; do
  4193. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4194. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4195. # Check for GNU ac_path_EGREP and select it if it is found.
  4196. # Check for GNU $ac_path_EGREP
  4197. case `"$ac_path_EGREP" --version 2>&1` in
  4198. *GNU*)
  4199. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4200. *)
  4201. ac_count=0
  4202. $as_echo_n 0123456789 >"conftest.in"
  4203. while :
  4204. do
  4205. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4206. mv "conftest.tmp" "conftest.in"
  4207. cp "conftest.in" "conftest.nl"
  4208. $as_echo 'EGREP' >> "conftest.nl"
  4209. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4210. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4211. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4212. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4213. # Best one so far, save it but keep looking for a better one
  4214. ac_cv_path_EGREP="$ac_path_EGREP"
  4215. ac_path_EGREP_max=$ac_count
  4216. fi
  4217. # 10*(2^10) chars as input seems more than enough
  4218. test $ac_count -gt 10 && break
  4219. done
  4220. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4221. esac
  4222. $ac_path_EGREP_found && break 3
  4223. done
  4224. done
  4225. done
  4226. IFS=$as_save_IFS
  4227. if test -z "$ac_cv_path_EGREP"; then
  4228. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4229. fi
  4230. else
  4231. ac_cv_path_EGREP=$EGREP
  4232. fi
  4233. fi
  4234. fi
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4236. $as_echo "$ac_cv_path_EGREP" >&6; }
  4237. EGREP="$ac_cv_path_EGREP"
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4239. $as_echo_n "checking for ANSI C header files... " >&6; }
  4240. if test "${ac_cv_header_stdc+set}" = set; then :
  4241. $as_echo_n "(cached) " >&6
  4242. else
  4243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4244. /* end confdefs.h. */
  4245. #include <stdlib.h>
  4246. #include <stdarg.h>
  4247. #include <string.h>
  4248. #include <float.h>
  4249. int
  4250. main ()
  4251. {
  4252. ;
  4253. return 0;
  4254. }
  4255. _ACEOF
  4256. if ac_fn_c_try_compile "$LINENO"; then :
  4257. ac_cv_header_stdc=yes
  4258. else
  4259. ac_cv_header_stdc=no
  4260. fi
  4261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4262. if test $ac_cv_header_stdc = yes; then
  4263. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4265. /* end confdefs.h. */
  4266. #include <string.h>
  4267. _ACEOF
  4268. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4269. $EGREP "memchr" >/dev/null 2>&1; then :
  4270. else
  4271. ac_cv_header_stdc=no
  4272. fi
  4273. rm -f conftest*
  4274. fi
  4275. if test $ac_cv_header_stdc = yes; then
  4276. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4278. /* end confdefs.h. */
  4279. #include <stdlib.h>
  4280. _ACEOF
  4281. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4282. $EGREP "free" >/dev/null 2>&1; then :
  4283. else
  4284. ac_cv_header_stdc=no
  4285. fi
  4286. rm -f conftest*
  4287. fi
  4288. if test $ac_cv_header_stdc = yes; then
  4289. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4290. if test "$cross_compiling" = yes; then :
  4291. :
  4292. else
  4293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4294. /* end confdefs.h. */
  4295. #include <ctype.h>
  4296. #include <stdlib.h>
  4297. #if ((' ' & 0x0FF) == 0x020)
  4298. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4299. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4300. #else
  4301. # define ISLOWER(c) \
  4302. (('a' <= (c) && (c) <= 'i') \
  4303. || ('j' <= (c) && (c) <= 'r') \
  4304. || ('s' <= (c) && (c) <= 'z'))
  4305. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4306. #endif
  4307. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4308. int
  4309. main ()
  4310. {
  4311. int i;
  4312. for (i = 0; i < 256; i++)
  4313. if (XOR (islower (i), ISLOWER (i))
  4314. || toupper (i) != TOUPPER (i))
  4315. return 2;
  4316. return 0;
  4317. }
  4318. _ACEOF
  4319. if ac_fn_c_try_run "$LINENO"; then :
  4320. else
  4321. ac_cv_header_stdc=no
  4322. fi
  4323. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4324. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4325. fi
  4326. fi
  4327. fi
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4329. $as_echo "$ac_cv_header_stdc" >&6; }
  4330. if test $ac_cv_header_stdc = yes; then
  4331. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4332. fi
  4333. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4334. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4335. inttypes.h stdint.h unistd.h
  4336. do :
  4337. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4338. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4339. "
  4340. eval as_val=\$$as_ac_Header
  4341. if test "x$as_val" = x""yes; then :
  4342. cat >>confdefs.h <<_ACEOF
  4343. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4344. _ACEOF
  4345. fi
  4346. done
  4347. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4348. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4349. MINIX=yes
  4350. else
  4351. MINIX=
  4352. fi
  4353. if test "$MINIX" = yes; then
  4354. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4355. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4356. $as_echo "#define _MINIX 1" >>confdefs.h
  4357. fi
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4359. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4360. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4361. $as_echo_n "(cached) " >&6
  4362. else
  4363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4364. /* end confdefs.h. */
  4365. # define __EXTENSIONS__ 1
  4366. $ac_includes_default
  4367. int
  4368. main ()
  4369. {
  4370. ;
  4371. return 0;
  4372. }
  4373. _ACEOF
  4374. if ac_fn_c_try_compile "$LINENO"; then :
  4375. ac_cv_safe_to_define___extensions__=yes
  4376. else
  4377. ac_cv_safe_to_define___extensions__=no
  4378. fi
  4379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4380. fi
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4382. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4383. test $ac_cv_safe_to_define___extensions__ = yes &&
  4384. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4385. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4386. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4387. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4388. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4389. # So far, the only shared library we might use is libopts.
  4390. # It's a small library - we might as well use a static version of it.
  4391. # Check whether --enable-shared was given.
  4392. if test "${enable_shared+set}" = set; then :
  4393. enableval=$enable_shared; p=${PACKAGE-default}
  4394. case $enableval in
  4395. yes) enable_shared=yes ;;
  4396. no) enable_shared=no ;;
  4397. *)
  4398. enable_shared=no
  4399. # Look at the argument we got. We use all the common list separators.
  4400. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4401. for pkg in $enableval; do
  4402. IFS="$lt_save_ifs"
  4403. if test "X$pkg" = "X$p"; then
  4404. enable_shared=yes
  4405. fi
  4406. done
  4407. IFS="$lt_save_ifs"
  4408. ;;
  4409. esac
  4410. else
  4411. enable_shared=no
  4412. fi
  4413. ac_ext=c
  4414. ac_cpp='$CPP $CPPFLAGS'
  4415. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4416. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4417. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4418. if test -n "$ac_tool_prefix"; then
  4419. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4420. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4422. $as_echo_n "checking for $ac_word... " >&6; }
  4423. if test "${ac_cv_prog_CC+set}" = set; then :
  4424. $as_echo_n "(cached) " >&6
  4425. else
  4426. if test -n "$CC"; then
  4427. ac_cv_prog_CC="$CC" # Let the user override the test.
  4428. else
  4429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4430. for as_dir in $PATH
  4431. do
  4432. IFS=$as_save_IFS
  4433. test -z "$as_dir" && as_dir=.
  4434. for ac_exec_ext in '' $ac_executable_extensions; do
  4435. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4436. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4438. break 2
  4439. fi
  4440. done
  4441. done
  4442. IFS=$as_save_IFS
  4443. fi
  4444. fi
  4445. CC=$ac_cv_prog_CC
  4446. if test -n "$CC"; then
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4448. $as_echo "$CC" >&6; }
  4449. else
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4451. $as_echo "no" >&6; }
  4452. fi
  4453. fi
  4454. if test -z "$ac_cv_prog_CC"; then
  4455. ac_ct_CC=$CC
  4456. # Extract the first word of "gcc", so it can be a program name with args.
  4457. set dummy gcc; ac_word=$2
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4459. $as_echo_n "checking for $ac_word... " >&6; }
  4460. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4461. $as_echo_n "(cached) " >&6
  4462. else
  4463. if test -n "$ac_ct_CC"; then
  4464. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4465. else
  4466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4467. for as_dir in $PATH
  4468. do
  4469. IFS=$as_save_IFS
  4470. test -z "$as_dir" && as_dir=.
  4471. for ac_exec_ext in '' $ac_executable_extensions; do
  4472. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4473. ac_cv_prog_ac_ct_CC="gcc"
  4474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4475. break 2
  4476. fi
  4477. done
  4478. done
  4479. IFS=$as_save_IFS
  4480. fi
  4481. fi
  4482. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4483. if test -n "$ac_ct_CC"; then
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4485. $as_echo "$ac_ct_CC" >&6; }
  4486. else
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4488. $as_echo "no" >&6; }
  4489. fi
  4490. if test "x$ac_ct_CC" = x; then
  4491. CC=""
  4492. else
  4493. case $cross_compiling:$ac_tool_warned in
  4494. yes:)
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4496. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4497. ac_tool_warned=yes ;;
  4498. esac
  4499. CC=$ac_ct_CC
  4500. fi
  4501. else
  4502. CC="$ac_cv_prog_CC"
  4503. fi
  4504. if test -z "$CC"; then
  4505. if test -n "$ac_tool_prefix"; then
  4506. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4507. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4509. $as_echo_n "checking for $ac_word... " >&6; }
  4510. if test "${ac_cv_prog_CC+set}" = set; then :
  4511. $as_echo_n "(cached) " >&6
  4512. else
  4513. if test -n "$CC"; then
  4514. ac_cv_prog_CC="$CC" # Let the user override the test.
  4515. else
  4516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4517. for as_dir in $PATH
  4518. do
  4519. IFS=$as_save_IFS
  4520. test -z "$as_dir" && as_dir=.
  4521. for ac_exec_ext in '' $ac_executable_extensions; do
  4522. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4523. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4525. break 2
  4526. fi
  4527. done
  4528. done
  4529. IFS=$as_save_IFS
  4530. fi
  4531. fi
  4532. CC=$ac_cv_prog_CC
  4533. if test -n "$CC"; then
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4535. $as_echo "$CC" >&6; }
  4536. else
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4538. $as_echo "no" >&6; }
  4539. fi
  4540. fi
  4541. fi
  4542. if test -z "$CC"; then
  4543. # Extract the first word of "cc", so it can be a program name with args.
  4544. set dummy cc; ac_word=$2
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4546. $as_echo_n "checking for $ac_word... " >&6; }
  4547. if test "${ac_cv_prog_CC+set}" = set; then :
  4548. $as_echo_n "(cached) " >&6
  4549. else
  4550. if test -n "$CC"; then
  4551. ac_cv_prog_CC="$CC" # Let the user override the test.
  4552. else
  4553. ac_prog_rejected=no
  4554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4555. for as_dir in $PATH
  4556. do
  4557. IFS=$as_save_IFS
  4558. test -z "$as_dir" && as_dir=.
  4559. for ac_exec_ext in '' $ac_executable_extensions; do
  4560. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4561. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4562. ac_prog_rejected=yes
  4563. continue
  4564. fi
  4565. ac_cv_prog_CC="cc"
  4566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4567. break 2
  4568. fi
  4569. done
  4570. done
  4571. IFS=$as_save_IFS
  4572. if test $ac_prog_rejected = yes; then
  4573. # We found a bogon in the path, so make sure we never use it.
  4574. set dummy $ac_cv_prog_CC
  4575. shift
  4576. if test $# != 0; then
  4577. # We chose a different compiler from the bogus one.
  4578. # However, it has the same basename, so the bogon will be chosen
  4579. # first if we set CC to just the basename; use the full file name.
  4580. shift
  4581. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4582. fi
  4583. fi
  4584. fi
  4585. fi
  4586. CC=$ac_cv_prog_CC
  4587. if test -n "$CC"; then
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4589. $as_echo "$CC" >&6; }
  4590. else
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4592. $as_echo "no" >&6; }
  4593. fi
  4594. fi
  4595. if test -z "$CC"; then
  4596. if test -n "$ac_tool_prefix"; then
  4597. for ac_prog in cl.exe
  4598. do
  4599. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4600. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4602. $as_echo_n "checking for $ac_word... " >&6; }
  4603. if test "${ac_cv_prog_CC+set}" = set; then :
  4604. $as_echo_n "(cached) " >&6
  4605. else
  4606. if test -n "$CC"; then
  4607. ac_cv_prog_CC="$CC" # Let the user override the test.
  4608. else
  4609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4610. for as_dir in $PATH
  4611. do
  4612. IFS=$as_save_IFS
  4613. test -z "$as_dir" && as_dir=.
  4614. for ac_exec_ext in '' $ac_executable_extensions; do
  4615. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4616. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4618. break 2
  4619. fi
  4620. done
  4621. done
  4622. IFS=$as_save_IFS
  4623. fi
  4624. fi
  4625. CC=$ac_cv_prog_CC
  4626. if test -n "$CC"; then
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4628. $as_echo "$CC" >&6; }
  4629. else
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4631. $as_echo "no" >&6; }
  4632. fi
  4633. test -n "$CC" && break
  4634. done
  4635. fi
  4636. if test -z "$CC"; then
  4637. ac_ct_CC=$CC
  4638. for ac_prog in cl.exe
  4639. do
  4640. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4641. set dummy $ac_prog; ac_word=$2
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4643. $as_echo_n "checking for $ac_word... " >&6; }
  4644. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4645. $as_echo_n "(cached) " >&6
  4646. else
  4647. if test -n "$ac_ct_CC"; then
  4648. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4649. else
  4650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4651. for as_dir in $PATH
  4652. do
  4653. IFS=$as_save_IFS
  4654. test -z "$as_dir" && as_dir=.
  4655. for ac_exec_ext in '' $ac_executable_extensions; do
  4656. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4657. ac_cv_prog_ac_ct_CC="$ac_prog"
  4658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4659. break 2
  4660. fi
  4661. done
  4662. done
  4663. IFS=$as_save_IFS
  4664. fi
  4665. fi
  4666. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4667. if test -n "$ac_ct_CC"; then
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4669. $as_echo "$ac_ct_CC" >&6; }
  4670. else
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4672. $as_echo "no" >&6; }
  4673. fi
  4674. test -n "$ac_ct_CC" && break
  4675. done
  4676. if test "x$ac_ct_CC" = x; then
  4677. CC=""
  4678. else
  4679. case $cross_compiling:$ac_tool_warned in
  4680. yes:)
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4682. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4683. ac_tool_warned=yes ;;
  4684. esac
  4685. CC=$ac_ct_CC
  4686. fi
  4687. fi
  4688. fi
  4689. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4690. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4691. as_fn_error "no acceptable C compiler found in \$PATH
  4692. See \`config.log' for more details." "$LINENO" 5; }
  4693. # Provide some information about the compiler.
  4694. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4695. set X $ac_compile
  4696. ac_compiler=$2
  4697. for ac_option in --version -v -V -qversion; do
  4698. { { ac_try="$ac_compiler $ac_option >&5"
  4699. case "(($ac_try" in
  4700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4701. *) ac_try_echo=$ac_try;;
  4702. esac
  4703. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4704. $as_echo "$ac_try_echo"; } >&5
  4705. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4706. ac_status=$?
  4707. if test -s conftest.err; then
  4708. sed '10a\
  4709. ... rest of stderr output deleted ...
  4710. 10q' conftest.err >conftest.er1
  4711. cat conftest.er1 >&5
  4712. fi
  4713. rm -f conftest.er1 conftest.err
  4714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4715. test $ac_status = 0; }
  4716. done
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4718. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4719. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4720. $as_echo_n "(cached) " >&6
  4721. else
  4722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4723. /* end confdefs.h. */
  4724. int
  4725. main ()
  4726. {
  4727. #ifndef __GNUC__
  4728. choke me
  4729. #endif
  4730. ;
  4731. return 0;
  4732. }
  4733. _ACEOF
  4734. if ac_fn_c_try_compile "$LINENO"; then :
  4735. ac_compiler_gnu=yes
  4736. else
  4737. ac_compiler_gnu=no
  4738. fi
  4739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4740. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4741. fi
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4743. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4744. if test $ac_compiler_gnu = yes; then
  4745. GCC=yes
  4746. else
  4747. GCC=
  4748. fi
  4749. ac_test_CFLAGS=${CFLAGS+set}
  4750. ac_save_CFLAGS=$CFLAGS
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4752. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4753. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4754. $as_echo_n "(cached) " >&6
  4755. else
  4756. ac_save_c_werror_flag=$ac_c_werror_flag
  4757. ac_c_werror_flag=yes
  4758. ac_cv_prog_cc_g=no
  4759. CFLAGS="-g"
  4760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4761. /* end confdefs.h. */
  4762. int
  4763. main ()
  4764. {
  4765. ;
  4766. return 0;
  4767. }
  4768. _ACEOF
  4769. if ac_fn_c_try_compile "$LINENO"; then :
  4770. ac_cv_prog_cc_g=yes
  4771. else
  4772. CFLAGS=""
  4773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4774. /* end confdefs.h. */
  4775. int
  4776. main ()
  4777. {
  4778. ;
  4779. return 0;
  4780. }
  4781. _ACEOF
  4782. if ac_fn_c_try_compile "$LINENO"; then :
  4783. else
  4784. ac_c_werror_flag=$ac_save_c_werror_flag
  4785. CFLAGS="-g"
  4786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4787. /* end confdefs.h. */
  4788. int
  4789. main ()
  4790. {
  4791. ;
  4792. return 0;
  4793. }
  4794. _ACEOF
  4795. if ac_fn_c_try_compile "$LINENO"; then :
  4796. ac_cv_prog_cc_g=yes
  4797. fi
  4798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4799. fi
  4800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4801. fi
  4802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4803. ac_c_werror_flag=$ac_save_c_werror_flag
  4804. fi
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4806. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4807. if test "$ac_test_CFLAGS" = set; then
  4808. CFLAGS=$ac_save_CFLAGS
  4809. elif test $ac_cv_prog_cc_g = yes; then
  4810. if test "$GCC" = yes; then
  4811. CFLAGS="-g -O2"
  4812. else
  4813. CFLAGS="-g"
  4814. fi
  4815. else
  4816. if test "$GCC" = yes; then
  4817. CFLAGS="-O2"
  4818. else
  4819. CFLAGS=
  4820. fi
  4821. fi
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4823. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4824. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4825. $as_echo_n "(cached) " >&6
  4826. else
  4827. ac_cv_prog_cc_c89=no
  4828. ac_save_CC=$CC
  4829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4830. /* end confdefs.h. */
  4831. #include <stdarg.h>
  4832. #include <stdio.h>
  4833. #include <sys/types.h>
  4834. #include <sys/stat.h>
  4835. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4836. struct buf { int x; };
  4837. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4838. static char *e (p, i)
  4839. char **p;
  4840. int i;
  4841. {
  4842. return p[i];
  4843. }
  4844. static char *f (char * (*g) (char **, int), char **p, ...)
  4845. {
  4846. char *s;
  4847. va_list v;
  4848. va_start (v,p);
  4849. s = g (p, va_arg (v,int));
  4850. va_end (v);
  4851. return s;
  4852. }
  4853. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4854. function prototypes and stuff, but not '\xHH' hex character constants.
  4855. These don't provoke an error unfortunately, instead are silently treated
  4856. as 'x'. The following induces an error, until -std is added to get
  4857. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4858. array size at least. It's necessary to write '\x00'==0 to get something
  4859. that's true only with -std. */
  4860. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4861. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4862. inside strings and character constants. */
  4863. #define FOO(x) 'x'
  4864. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4865. int test (int i, double x);
  4866. struct s1 {int (*f) (int a);};
  4867. struct s2 {int (*f) (double a);};
  4868. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4869. int argc;
  4870. char **argv;
  4871. int
  4872. main ()
  4873. {
  4874. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4875. ;
  4876. return 0;
  4877. }
  4878. _ACEOF
  4879. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4880. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4881. do
  4882. CC="$ac_save_CC $ac_arg"
  4883. if ac_fn_c_try_compile "$LINENO"; then :
  4884. ac_cv_prog_cc_c89=$ac_arg
  4885. fi
  4886. rm -f core conftest.err conftest.$ac_objext
  4887. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4888. done
  4889. rm -f conftest.$ac_ext
  4890. CC=$ac_save_CC
  4891. fi
  4892. # AC_CACHE_VAL
  4893. case "x$ac_cv_prog_cc_c89" in
  4894. x)
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4896. $as_echo "none needed" >&6; } ;;
  4897. xno)
  4898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4899. $as_echo "unsupported" >&6; } ;;
  4900. *)
  4901. CC="$CC $ac_cv_prog_cc_c89"
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4903. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4904. esac
  4905. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4906. fi
  4907. ac_ext=c
  4908. ac_cpp='$CPP $CPPFLAGS'
  4909. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4910. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4911. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4912. depcc="$CC" am_compiler_list=
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4914. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4915. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4916. $as_echo_n "(cached) " >&6
  4917. else
  4918. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4919. # We make a subdir and do the tests there. Otherwise we can end up
  4920. # making bogus files that we don't know about and never remove. For
  4921. # instance it was reported that on HP-UX the gcc test will end up
  4922. # making a dummy file named `D' -- because `-MD' means `put the output
  4923. # in D'.
  4924. mkdir conftest.dir
  4925. # Copy depcomp to subdir because otherwise we won't find it if we're
  4926. # using a relative directory.
  4927. cp "$am_depcomp" conftest.dir
  4928. cd conftest.dir
  4929. # We will build objects and dependencies in a subdirectory because
  4930. # it helps to detect inapplicable dependency modes. For instance
  4931. # both Tru64's cc and ICC support -MD to output dependencies as a
  4932. # side effect of compilation, but ICC will put the dependencies in
  4933. # the current directory while Tru64 will put them in the object
  4934. # directory.
  4935. mkdir sub
  4936. am_cv_CC_dependencies_compiler_type=none
  4937. if test "$am_compiler_list" = ""; then
  4938. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4939. fi
  4940. am__universal=false
  4941. case " $depcc " in #(
  4942. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4943. esac
  4944. for depmode in $am_compiler_list; do
  4945. # Setup a source with many dependencies, because some compilers
  4946. # like to wrap large dependency lists on column 80 (with \), and
  4947. # we should not choose a depcomp mode which is confused by this.
  4948. #
  4949. # We need to recreate these files for each test, as the compiler may
  4950. # overwrite some of them when testing with obscure command lines.
  4951. # This happens at least with the AIX C compiler.
  4952. : > sub/conftest.c
  4953. for i in 1 2 3 4 5 6; do
  4954. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4955. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4956. # Solaris 8's {/usr,}/bin/sh.
  4957. touch sub/conftst$i.h
  4958. done
  4959. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4960. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4961. # mode. It turns out that the SunPro C++ compiler does not properly
  4962. # handle `-M -o', and we need to detect this. Also, some Intel
  4963. # versions had trouble with output in subdirs
  4964. am__obj=sub/conftest.${OBJEXT-o}
  4965. am__minus_obj="-o $am__obj"
  4966. case $depmode in
  4967. gcc)
  4968. # This depmode causes a compiler race in universal mode.
  4969. test "$am__universal" = false || continue
  4970. ;;
  4971. nosideeffect)
  4972. # after this tag, mechanisms are not by side-effect, so they'll
  4973. # only be used when explicitly requested
  4974. if test "x$enable_dependency_tracking" = xyes; then
  4975. continue
  4976. else
  4977. break
  4978. fi
  4979. ;;
  4980. msvisualcpp | msvcmsys)
  4981. # This compiler won't grok `-c -o', but also, the minuso test has
  4982. # not run yet. These depmodes are late enough in the game, and
  4983. # so weak that their functioning should not be impacted.
  4984. am__obj=conftest.${OBJEXT-o}
  4985. am__minus_obj=
  4986. ;;
  4987. none) break ;;
  4988. esac
  4989. if depmode=$depmode \
  4990. source=sub/conftest.c object=$am__obj \
  4991. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4992. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4993. >/dev/null 2>conftest.err &&
  4994. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4995. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4996. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4997. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4998. # icc doesn't choke on unknown options, it will just issue warnings
  4999. # or remarks (even with -Werror). So we grep stderr for any message
  5000. # that says an option was ignored or not supported.
  5001. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5002. # icc: Command line warning: ignoring option '-M'; no argument required
  5003. # The diagnosis changed in icc 8.0:
  5004. # icc: Command line remark: option '-MP' not supported
  5005. if (grep 'ignoring option' conftest.err ||
  5006. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5007. am_cv_CC_dependencies_compiler_type=$depmode
  5008. break
  5009. fi
  5010. fi
  5011. done
  5012. cd ..
  5013. rm -rf conftest.dir
  5014. else
  5015. am_cv_CC_dependencies_compiler_type=none
  5016. fi
  5017. fi
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5019. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5020. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5021. if
  5022. test "x$enable_dependency_tracking" != xno \
  5023. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5024. am__fastdepCC_TRUE=
  5025. am__fastdepCC_FALSE='#'
  5026. else
  5027. am__fastdepCC_TRUE='#'
  5028. am__fastdepCC_FALSE=
  5029. fi
  5030. # Ralf Wildenhues: With per-target flags we need CC_C_O
  5031. # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
  5032. if test "x$CC" != xcc; then
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  5034. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  5035. else
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  5037. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  5038. fi
  5039. set dummy $CC; ac_cc=`$as_echo "$2" |
  5040. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  5041. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  5042. $as_echo_n "(cached) " >&6
  5043. else
  5044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5045. /* end confdefs.h. */
  5046. int
  5047. main ()
  5048. {
  5049. ;
  5050. return 0;
  5051. }
  5052. _ACEOF
  5053. # Make sure it works both with $CC and with simple cc.
  5054. # We do the test twice because some compilers refuse to overwrite an
  5055. # existing .o file with -o, though they will create one.
  5056. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  5057. rm -f conftest2.*
  5058. if { { case "(($ac_try" in
  5059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5060. *) ac_try_echo=$ac_try;;
  5061. esac
  5062. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5063. $as_echo "$ac_try_echo"; } >&5
  5064. (eval "$ac_try") 2>&5
  5065. ac_status=$?
  5066. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5067. test $ac_status = 0; } &&
  5068. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  5069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5070. *) ac_try_echo=$ac_try;;
  5071. esac
  5072. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5073. $as_echo "$ac_try_echo"; } >&5
  5074. (eval "$ac_try") 2>&5
  5075. ac_status=$?
  5076. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5077. test $ac_status = 0; };
  5078. then
  5079. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  5080. if test "x$CC" != xcc; then
  5081. # Test first that cc exists at all.
  5082. if { ac_try='cc -c conftest.$ac_ext >&5'
  5083. { { case "(($ac_try" in
  5084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5085. *) ac_try_echo=$ac_try;;
  5086. esac
  5087. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5088. $as_echo "$ac_try_echo"; } >&5
  5089. (eval "$ac_try") 2>&5
  5090. ac_status=$?
  5091. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5092. test $ac_status = 0; }; }; then
  5093. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  5094. rm -f conftest2.*
  5095. if { { case "(($ac_try" in
  5096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5097. *) ac_try_echo=$ac_try;;
  5098. esac
  5099. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5100. $as_echo "$ac_try_echo"; } >&5
  5101. (eval "$ac_try") 2>&5
  5102. ac_status=$?
  5103. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5104. test $ac_status = 0; } &&
  5105. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  5106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5107. *) ac_try_echo=$ac_try;;
  5108. esac
  5109. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5110. $as_echo "$ac_try_echo"; } >&5
  5111. (eval "$ac_try") 2>&5
  5112. ac_status=$?
  5113. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5114. test $ac_status = 0; };
  5115. then
  5116. # cc works too.
  5117. :
  5118. else
  5119. # cc exists but doesn't like -o.
  5120. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5121. fi
  5122. fi
  5123. fi
  5124. else
  5125. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5126. fi
  5127. rm -f core conftest*
  5128. fi
  5129. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5131. $as_echo "yes" >&6; }
  5132. else
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5134. $as_echo "no" >&6; }
  5135. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  5136. fi
  5137. # FIXME: we rely on the cache variable name because
  5138. # there is no other way.
  5139. set dummy $CC
  5140. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  5141. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  5142. if test "$am_t" != yes; then
  5143. # Losing compiler, so override with the script.
  5144. # FIXME: It is wrong to rewrite CC.
  5145. # But if we don't then we get into trouble of one sort or another.
  5146. # A longer-term fix would be to have automake use am__CC in this case,
  5147. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5148. CC="$am_aux_dir/compile $CC"
  5149. fi
  5150. case $ac_cv_prog_cc_stdc in #(
  5151. no) :
  5152. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  5153. *) :
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  5155. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  5156. if test "${ac_cv_prog_cc_c99+set}" = set; then :
  5157. $as_echo_n "(cached) " >&6
  5158. else
  5159. ac_cv_prog_cc_c99=no
  5160. ac_save_CC=$CC
  5161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5162. /* end confdefs.h. */
  5163. #include <stdarg.h>
  5164. #include <stdbool.h>
  5165. #include <stdlib.h>
  5166. #include <wchar.h>
  5167. #include <stdio.h>
  5168. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  5169. #define debug(...) fprintf (stderr, __VA_ARGS__)
  5170. #define showlist(...) puts (#__VA_ARGS__)
  5171. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  5172. static void
  5173. test_varargs_macros (void)
  5174. {
  5175. int x = 1234;
  5176. int y = 5678;
  5177. debug ("Flag");
  5178. debug ("X = %d\n", x);
  5179. showlist (The first, second, and third items.);
  5180. report (x>y, "x is %d but y is %d", x, y);
  5181. }
  5182. // Check long long types.
  5183. #define BIG64 18446744073709551615ull
  5184. #define BIG32 4294967295ul
  5185. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  5186. #if !BIG_OK
  5187. your preprocessor is broken;
  5188. #endif
  5189. #if BIG_OK
  5190. #else
  5191. your preprocessor is broken;
  5192. #endif
  5193. static long long int bignum = -9223372036854775807LL;
  5194. static unsigned long long int ubignum = BIG64;
  5195. struct incomplete_array
  5196. {
  5197. int datasize;
  5198. double data[];
  5199. };
  5200. struct named_init {
  5201. int number;
  5202. const wchar_t *name;
  5203. double average;
  5204. };
  5205. typedef const char *ccp;
  5206. static inline int
  5207. test_restrict (ccp restrict text)
  5208. {
  5209. // See if C++-style comments work.
  5210. // Iterate through items via the restricted pointer.
  5211. // Also check for declarations in for loops.
  5212. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  5213. continue;
  5214. return 0;
  5215. }
  5216. // Check varargs and va_copy.
  5217. static void
  5218. test_varargs (const char *format, ...)
  5219. {
  5220. va_list args;
  5221. va_start (args, format);
  5222. va_list args_copy;
  5223. va_copy (args_copy, args);
  5224. const char *str;
  5225. int number;
  5226. float fnumber;
  5227. while (*format)
  5228. {
  5229. switch (*format++)
  5230. {
  5231. case 's': // string
  5232. str = va_arg (args_copy, const char *);
  5233. break;
  5234. case 'd': // int
  5235. number = va_arg (args_copy, int);
  5236. break;
  5237. case 'f': // float
  5238. fnumber = va_arg (args_copy, double);
  5239. break;
  5240. default:
  5241. break;
  5242. }
  5243. }
  5244. va_end (args_copy);
  5245. va_end (args);
  5246. }
  5247. int
  5248. main ()
  5249. {
  5250. // Check bool.
  5251. _Bool success = false;
  5252. // Check restrict.
  5253. if (test_restrict ("String literal") == 0)
  5254. success = true;
  5255. char *restrict newvar = "Another string";
  5256. // Check varargs.
  5257. test_varargs ("s, d' f .", "string", 65, 34.234);
  5258. test_varargs_macros ();
  5259. // Check flexible array members.
  5260. struct incomplete_array *ia =
  5261. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  5262. ia->datasize = 10;
  5263. for (int i = 0; i < ia->datasize; ++i)
  5264. ia->data[i] = i * 1.234;
  5265. // Check named initializers.
  5266. struct named_init ni = {
  5267. .number = 34,
  5268. .name = L"Test wide string",
  5269. .average = 543.34343,
  5270. };
  5271. ni.number = 58;
  5272. int dynamic_array[ni.number];
  5273. dynamic_array[ni.number - 1] = 543;
  5274. // work around unused variable warnings
  5275. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  5276. || dynamic_array[ni.number - 1] != 543);
  5277. ;
  5278. return 0;
  5279. }
  5280. _ACEOF
  5281. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  5282. do
  5283. CC="$ac_save_CC $ac_arg"
  5284. if ac_fn_c_try_compile "$LINENO"; then :
  5285. ac_cv_prog_cc_c99=$ac_arg
  5286. fi
  5287. rm -f core conftest.err conftest.$ac_objext
  5288. test "x$ac_cv_prog_cc_c99" != "xno" && break
  5289. done
  5290. rm -f conftest.$ac_ext
  5291. CC=$ac_save_CC
  5292. fi
  5293. # AC_CACHE_VAL
  5294. case "x$ac_cv_prog_cc_c99" in
  5295. x)
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5297. $as_echo "none needed" >&6; } ;;
  5298. xno)
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5300. $as_echo "unsupported" >&6; } ;;
  5301. *)
  5302. CC="$CC $ac_cv_prog_cc_c99"
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  5304. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  5305. esac
  5306. if test "x$ac_cv_prog_cc_c99" != xno; then :
  5307. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  5308. else
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  5310. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5311. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  5312. $as_echo_n "(cached) " >&6
  5313. else
  5314. ac_cv_prog_cc_c89=no
  5315. ac_save_CC=$CC
  5316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5317. /* end confdefs.h. */
  5318. #include <stdarg.h>
  5319. #include <stdio.h>
  5320. #include <sys/types.h>
  5321. #include <sys/stat.h>
  5322. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5323. struct buf { int x; };
  5324. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5325. static char *e (p, i)
  5326. char **p;
  5327. int i;
  5328. {
  5329. return p[i];
  5330. }
  5331. static char *f (char * (*g) (char **, int), char **p, ...)
  5332. {
  5333. char *s;
  5334. va_list v;
  5335. va_start (v,p);
  5336. s = g (p, va_arg (v,int));
  5337. va_end (v);
  5338. return s;
  5339. }
  5340. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5341. function prototypes and stuff, but not '\xHH' hex character constants.
  5342. These don't provoke an error unfortunately, instead are silently treated
  5343. as 'x'. The following induces an error, until -std is added to get
  5344. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5345. array size at least. It's necessary to write '\x00'==0 to get something
  5346. that's true only with -std. */
  5347. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5348. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5349. inside strings and character constants. */
  5350. #define FOO(x) 'x'
  5351. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5352. int test (int i, double x);
  5353. struct s1 {int (*f) (int a);};
  5354. struct s2 {int (*f) (double a);};
  5355. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5356. int argc;
  5357. char **argv;
  5358. int
  5359. main ()
  5360. {
  5361. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5362. ;
  5363. return 0;
  5364. }
  5365. _ACEOF
  5366. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5367. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5368. do
  5369. CC="$ac_save_CC $ac_arg"
  5370. if ac_fn_c_try_compile "$LINENO"; then :
  5371. ac_cv_prog_cc_c89=$ac_arg
  5372. fi
  5373. rm -f core conftest.err conftest.$ac_objext
  5374. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5375. done
  5376. rm -f conftest.$ac_ext
  5377. CC=$ac_save_CC
  5378. fi
  5379. # AC_CACHE_VAL
  5380. case "x$ac_cv_prog_cc_c89" in
  5381. x)
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5383. $as_echo "none needed" >&6; } ;;
  5384. xno)
  5385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5386. $as_echo "unsupported" >&6; } ;;
  5387. *)
  5388. CC="$CC $ac_cv_prog_cc_c89"
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5390. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5391. esac
  5392. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5393. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  5394. else
  5395. ac_cv_prog_cc_stdc=no
  5396. fi
  5397. fi
  5398. ;;
  5399. esac
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  5401. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  5402. if test "${ac_cv_prog_cc_stdc+set}" = set; then :
  5403. $as_echo_n "(cached) " >&6
  5404. fi
  5405. case $ac_cv_prog_cc_stdc in #(
  5406. no) :
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5408. $as_echo "unsupported" >&6; } ;; #(
  5409. '') :
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5411. $as_echo "none needed" >&6; } ;; #(
  5412. *) :
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  5414. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  5415. esac
  5416. ac_ext=c
  5417. ac_cpp='$CPP $CPPFLAGS'
  5418. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5419. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5420. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5422. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5423. # On Suns, sometimes $CPP names a directory.
  5424. if test -n "$CPP" && test -d "$CPP"; then
  5425. CPP=
  5426. fi
  5427. if test -z "$CPP"; then
  5428. if test "${ac_cv_prog_CPP+set}" = set; then :
  5429. $as_echo_n "(cached) " >&6
  5430. else
  5431. # Double quotes because CPP needs to be expanded
  5432. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5433. do
  5434. ac_preproc_ok=false
  5435. for ac_c_preproc_warn_flag in '' yes
  5436. do
  5437. # Use a header file that comes with gcc, so configuring glibc
  5438. # with a fresh cross-compiler works.
  5439. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5440. # <limits.h> exists even on freestanding compilers.
  5441. # On the NeXT, cc -E runs the code through the compiler's parser,
  5442. # not just through cpp. "Syntax error" is here to catch this case.
  5443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5444. /* end confdefs.h. */
  5445. #ifdef __STDC__
  5446. # include <limits.h>
  5447. #else
  5448. # include <assert.h>
  5449. #endif
  5450. Syntax error
  5451. _ACEOF
  5452. if ac_fn_c_try_cpp "$LINENO"; then :
  5453. else
  5454. # Broken: fails on valid input.
  5455. continue
  5456. fi
  5457. rm -f conftest.err conftest.$ac_ext
  5458. # OK, works on sane cases. Now check whether nonexistent headers
  5459. # can be detected and how.
  5460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5461. /* end confdefs.h. */
  5462. #include <ac_nonexistent.h>
  5463. _ACEOF
  5464. if ac_fn_c_try_cpp "$LINENO"; then :
  5465. # Broken: success on invalid input.
  5466. continue
  5467. else
  5468. # Passes both tests.
  5469. ac_preproc_ok=:
  5470. break
  5471. fi
  5472. rm -f conftest.err conftest.$ac_ext
  5473. done
  5474. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5475. rm -f conftest.err conftest.$ac_ext
  5476. if $ac_preproc_ok; then :
  5477. break
  5478. fi
  5479. done
  5480. ac_cv_prog_CPP=$CPP
  5481. fi
  5482. CPP=$ac_cv_prog_CPP
  5483. else
  5484. ac_cv_prog_CPP=$CPP
  5485. fi
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5487. $as_echo "$CPP" >&6; }
  5488. ac_preproc_ok=false
  5489. for ac_c_preproc_warn_flag in '' yes
  5490. do
  5491. # Use a header file that comes with gcc, so configuring glibc
  5492. # with a fresh cross-compiler works.
  5493. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5494. # <limits.h> exists even on freestanding compilers.
  5495. # On the NeXT, cc -E runs the code through the compiler's parser,
  5496. # not just through cpp. "Syntax error" is here to catch this case.
  5497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5498. /* end confdefs.h. */
  5499. #ifdef __STDC__
  5500. # include <limits.h>
  5501. #else
  5502. # include <assert.h>
  5503. #endif
  5504. Syntax error
  5505. _ACEOF
  5506. if ac_fn_c_try_cpp "$LINENO"; then :
  5507. else
  5508. # Broken: fails on valid input.
  5509. continue
  5510. fi
  5511. rm -f conftest.err conftest.$ac_ext
  5512. # OK, works on sane cases. Now check whether nonexistent headers
  5513. # can be detected and how.
  5514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5515. /* end confdefs.h. */
  5516. #include <ac_nonexistent.h>
  5517. _ACEOF
  5518. if ac_fn_c_try_cpp "$LINENO"; then :
  5519. # Broken: success on invalid input.
  5520. continue
  5521. else
  5522. # Passes both tests.
  5523. ac_preproc_ok=:
  5524. break
  5525. fi
  5526. rm -f conftest.err conftest.$ac_ext
  5527. done
  5528. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5529. rm -f conftest.err conftest.$ac_ext
  5530. if $ac_preproc_ok; then :
  5531. else
  5532. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5533. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5534. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  5535. See \`config.log' for more details." "$LINENO" 5; }
  5536. fi
  5537. ac_ext=c
  5538. ac_cpp='$CPP $CPPFLAGS'
  5539. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5540. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5541. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5542. # HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
  5543. case "$host" in
  5544. *-*-amigaos)
  5545. CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
  5546. ;;
  5547. *-*-hpux10.*) # at least for hppa2.0-hp-hpux10.20
  5548. case "$GCC" in
  5549. yes)
  5550. ;;
  5551. *) CFLAGS="$CFLAGS -Wp,-H18816"
  5552. ;;
  5553. esac
  5554. ;;
  5555. *-pc-cygwin*)
  5556. CFLAGS="$CFLAGS -DSYS_CYGWIN32"
  5557. ;;
  5558. i386-sequent-sysv4)
  5559. case "$CC" in
  5560. cc)
  5561. CFLAGS="$CFLAGS -Wc,+abi-socket"
  5562. ;;
  5563. esac
  5564. ;;
  5565. *-*-mpeix*)
  5566. CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB"
  5567. LDFLAGS="$LDFLAGS -L/SYSLOG/PUB"
  5568. LIBS="$LIBS -lcurses"
  5569. ;;
  5570. *-*-solaris*)
  5571. # see "man standards".
  5572. # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
  5573. # -D_XOPEN_SOURCE=600 seems OK for c99
  5574. #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
  5575. CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
  5576. libxnet=-lxnet
  5577. ;;
  5578. esac
  5579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
  5580. $as_echo_n "checking additional compiler flags... " >&6; }
  5581. if test "${ac_cv_os_cflags+set}" = set; then :
  5582. $as_echo_n "(cached) " >&6
  5583. else
  5584. case "${host_os}" in
  5585. irix6* )
  5586. case "${CC}" in
  5587. cc )
  5588. # do not use 64-bit compiler
  5589. ac_cv_os_cflags="-n32 -mips3 -Wl,-woff,84"
  5590. ;;
  5591. esac
  5592. ;;
  5593. # HMS: am-utils needed this but we don't (apparently)
  5594. # osf[[1-3]]* )
  5595. # # get the right version of struct sockaddr
  5596. # case "${CC}" in
  5597. # cc )
  5598. # ac_cv_os_cflags="-std -D_SOCKADDR_LEN -D_NO_PROTO"
  5599. # ;;
  5600. # * )
  5601. # ac_cv_os_cflags="-D_SOCKADDR_LEN -D_NO_PROTO"
  5602. # ;;
  5603. # esac
  5604. # ;;
  5605. # osf* )
  5606. # # get the right version of struct sockaddr
  5607. # case "${CC}" in
  5608. # cc )
  5609. # ac_cv_os_cflags="-std -D_SOCKADDR_LEN"
  5610. # ;;
  5611. # * )
  5612. # ac_cv_os_cflags="-D_SOCKADDR_LEN"
  5613. # ;;
  5614. # esac
  5615. # ;;
  5616. aix[1-3]* )
  5617. ac_cv_os_cflags="" ;;
  5618. aix4.[0-2]* )
  5619. # turn on additional headers
  5620. ac_cv_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
  5621. ;;
  5622. aix* )
  5623. # avoid circular dependencies in yp headers
  5624. ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
  5625. ;;
  5626. OFF-sunos4* )
  5627. # make sure passing whole structures is handled in gcc
  5628. case "${CC}" in
  5629. gcc )
  5630. ac_cv_os_cflags="-fpcc-struct-return"
  5631. ;;
  5632. esac
  5633. ;;
  5634. sunos[34]* | solaris1* | solaris2.[0-5]* | sunos5.[0-5]* )
  5635. ac_cv_os_cflags="" ;;
  5636. solaris* | sunos* )
  5637. # turn on 64-bit file offset interface
  5638. case "${CC}" in
  5639. * )
  5640. ac_cv_os_cflags="-D_LARGEFILE64_SOURCE"
  5641. ;;
  5642. esac
  5643. ;;
  5644. hpux* )
  5645. # use Ansi compiler on HPUX
  5646. case "${CC}" in
  5647. cc )
  5648. ac_cv_os_cflags="-Ae"
  5649. ;;
  5650. esac
  5651. ;;
  5652. darwin* | rhapsody* )
  5653. ac_cv_os_cflags="-D_P1003_1B_VISIBLE"
  5654. ;;
  5655. * )
  5656. ac_cv_os_cflags=""
  5657. ;;
  5658. esac
  5659. fi
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cflags" >&5
  5661. $as_echo "$ac_cv_os_cflags" >&6; }
  5662. CFLAGS="$CFLAGS $ac_cv_os_cflags"
  5663. # NTP has (so far) been relying on leading-edge autogen.
  5664. # Therefore, by default:
  5665. # - use the version we ship with
  5666. # - do not install it
  5667. # - build a static copy (AC_DISABLE_SHARED - done earlier)
  5668. case "${enable_local_libopts+set}" in
  5669. set) ;;
  5670. *) enable_local_libopts=yes ;;
  5671. esac
  5672. case "${enable_libopts_install+set}" in
  5673. set) ;;
  5674. *) enable_libopts_install=no ;;
  5675. esac
  5676. NEED_LIBOPTS_DIR=''
  5677. LIBOPTS_DIR=libopts
  5678. # Check whether --enable-local-libopts was given.
  5679. if test "${enable_local_libopts+set}" = set; then :
  5680. enableval=$enable_local_libopts;
  5681. if test x$enableval = xyes ; then
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
  5683. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  5684. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  5685. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  5686. NEED_LIBOPTS_DIR=true
  5687. fi
  5688. fi
  5689. # Check whether --enable-libopts-install was given.
  5690. if test "${enable_libopts_install+set}" = set; then :
  5691. enableval=$enable_libopts_install;
  5692. fi
  5693. if test "X${enable_libopts_install}" != Xno; then
  5694. INSTALL_LIBOPTS_TRUE=
  5695. INSTALL_LIBOPTS_FALSE='#'
  5696. else
  5697. INSTALL_LIBOPTS_TRUE='#'
  5698. INSTALL_LIBOPTS_FALSE=
  5699. fi
  5700. if test -z "${NEED_LIBOPTS_DIR}" ; then
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
  5702. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  5703. # Check whether --with-autoopts-config was given.
  5704. if test "${with_autoopts_config+set}" = set; then :
  5705. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  5706. else
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
  5708. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  5709. if test "${lo_cv_with_autoopts_config+set}" = set; then :
  5710. $as_echo_n "(cached) " >&6
  5711. else
  5712. if autoopts-config --help 2>/dev/null 1>&2
  5713. then lo_cv_with_autoopts_config=autoopts-config
  5714. elif libopts-config --help 2>/dev/null 1>&2
  5715. then lo_cv_with_autoopts_config=libopts-config
  5716. else lo_cv_with_autoopts_config=no ; fi
  5717. fi
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
  5719. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  5720. fi
  5721. # end of AC_ARG_WITH
  5722. if test "${lo_cv_test_autoopts+set}" = set; then :
  5723. $as_echo_n "(cached) " >&6
  5724. else
  5725. if test -z "${lo_cv_with_autoopts_config}" \
  5726. -o X"${lo_cv_with_autoopts_config}" = Xno
  5727. then
  5728. if autoopts-config --help 2>/dev/null 1>&2
  5729. then lo_cv_with_autoopts_config=autoopts-config
  5730. elif libopts-config --help 2>/dev/null 1>&2
  5731. then lo_cv_with_autoopts_config=libopts-config
  5732. else lo_cv_with_autoopts_config=false ; fi
  5733. fi
  5734. lo_cv_test_autoopts=`
  5735. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  5736. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  5737. then lo_cv_test_autoopts=no ; fi
  5738. fi
  5739. # end of CACHE_VAL
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
  5741. $as_echo "${lo_cv_test_autoopts}" >&6; }
  5742. if test "X${lo_cv_test_autoopts}" != Xno
  5743. then
  5744. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  5745. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  5746. else
  5747. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  5748. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  5749. NEED_LIBOPTS_DIR=true
  5750. fi
  5751. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  5752. if test -n "${NEED_LIBOPTS_DIR}"; then
  5753. NEED_LIBOPTS_TRUE=
  5754. NEED_LIBOPTS_FALSE='#'
  5755. else
  5756. NEED_LIBOPTS_TRUE='#'
  5757. NEED_LIBOPTS_FALSE=
  5758. fi
  5759. LIBOPTS_DIR=libopts
  5760. ac_config_files="$ac_config_files libopts/Makefile"
  5761. if test -n "${NEED_LIBOPTS_DIR}" ; then
  5762. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  5763. # =================
  5764. # AC_HEADER_STDC
  5765. # =================
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5767. $as_echo_n "checking for ANSI C header files... " >&6; }
  5768. if test "${ac_cv_header_stdc+set}" = set; then :
  5769. $as_echo_n "(cached) " >&6
  5770. else
  5771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5772. /* end confdefs.h. */
  5773. #include <stdlib.h>
  5774. #include <stdarg.h>
  5775. #include <string.h>
  5776. #include <float.h>
  5777. int
  5778. main ()
  5779. {
  5780. ;
  5781. return 0;
  5782. }
  5783. _ACEOF
  5784. if ac_fn_c_try_compile "$LINENO"; then :
  5785. ac_cv_header_stdc=yes
  5786. else
  5787. ac_cv_header_stdc=no
  5788. fi
  5789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5790. if test $ac_cv_header_stdc = yes; then
  5791. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5793. /* end confdefs.h. */
  5794. #include <string.h>
  5795. _ACEOF
  5796. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5797. $EGREP "memchr" >/dev/null 2>&1; then :
  5798. else
  5799. ac_cv_header_stdc=no
  5800. fi
  5801. rm -f conftest*
  5802. fi
  5803. if test $ac_cv_header_stdc = yes; then
  5804. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5806. /* end confdefs.h. */
  5807. #include <stdlib.h>
  5808. _ACEOF
  5809. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5810. $EGREP "free" >/dev/null 2>&1; then :
  5811. else
  5812. ac_cv_header_stdc=no
  5813. fi
  5814. rm -f conftest*
  5815. fi
  5816. if test $ac_cv_header_stdc = yes; then
  5817. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5818. if test "$cross_compiling" = yes; then :
  5819. :
  5820. else
  5821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5822. /* end confdefs.h. */
  5823. #include <ctype.h>
  5824. #include <stdlib.h>
  5825. #if ((' ' & 0x0FF) == 0x020)
  5826. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5827. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5828. #else
  5829. # define ISLOWER(c) \
  5830. (('a' <= (c) && (c) <= 'i') \
  5831. || ('j' <= (c) && (c) <= 'r') \
  5832. || ('s' <= (c) && (c) <= 'z'))
  5833. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5834. #endif
  5835. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5836. int
  5837. main ()
  5838. {
  5839. int i;
  5840. for (i = 0; i < 256; i++)
  5841. if (XOR (islower (i), ISLOWER (i))
  5842. || toupper (i) != TOUPPER (i))
  5843. return 2;
  5844. return 0;
  5845. }
  5846. _ACEOF
  5847. if ac_fn_c_try_run "$LINENO"; then :
  5848. else
  5849. ac_cv_header_stdc=no
  5850. fi
  5851. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5852. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5853. fi
  5854. fi
  5855. fi
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5857. $as_echo "$ac_cv_header_stdc" >&6; }
  5858. if test $ac_cv_header_stdc = yes; then
  5859. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5860. fi
  5861. # =================
  5862. # AC_HEADER_DIRENT
  5863. # =================
  5864. ac_header_dirent=no
  5865. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  5866. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  5868. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  5869. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  5870. $as_echo_n "(cached) " >&6
  5871. else
  5872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5873. /* end confdefs.h. */
  5874. #include <sys/types.h>
  5875. #include <$ac_hdr>
  5876. int
  5877. main ()
  5878. {
  5879. if ((DIR *) 0)
  5880. return 0;
  5881. ;
  5882. return 0;
  5883. }
  5884. _ACEOF
  5885. if ac_fn_c_try_compile "$LINENO"; then :
  5886. eval "$as_ac_Header=yes"
  5887. else
  5888. eval "$as_ac_Header=no"
  5889. fi
  5890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5891. fi
  5892. eval ac_res=\$$as_ac_Header
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5894. $as_echo "$ac_res" >&6; }
  5895. eval as_val=\$$as_ac_Header
  5896. if test "x$as_val" = x""yes; then :
  5897. cat >>confdefs.h <<_ACEOF
  5898. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  5899. _ACEOF
  5900. ac_header_dirent=$ac_hdr; break
  5901. fi
  5902. done
  5903. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5904. if test $ac_header_dirent = dirent.h; then
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5906. $as_echo_n "checking for library containing opendir... " >&6; }
  5907. if test "${ac_cv_search_opendir+set}" = set; then :
  5908. $as_echo_n "(cached) " >&6
  5909. else
  5910. ac_func_search_save_LIBS=$LIBS
  5911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5912. /* end confdefs.h. */
  5913. /* Override any GCC internal prototype to avoid an error.
  5914. Use char because int might match the return type of a GCC
  5915. builtin and then its argument prototype would still apply. */
  5916. #ifdef __cplusplus
  5917. extern "C"
  5918. #endif
  5919. char opendir ();
  5920. int
  5921. main ()
  5922. {
  5923. return opendir ();
  5924. ;
  5925. return 0;
  5926. }
  5927. _ACEOF
  5928. for ac_lib in '' dir; do
  5929. if test -z "$ac_lib"; then
  5930. ac_res="none required"
  5931. else
  5932. ac_res=-l$ac_lib
  5933. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5934. fi
  5935. if ac_fn_c_try_link "$LINENO"; then :
  5936. ac_cv_search_opendir=$ac_res
  5937. fi
  5938. rm -f core conftest.err conftest.$ac_objext \
  5939. conftest$ac_exeext
  5940. if test "${ac_cv_search_opendir+set}" = set; then :
  5941. break
  5942. fi
  5943. done
  5944. if test "${ac_cv_search_opendir+set}" = set; then :
  5945. else
  5946. ac_cv_search_opendir=no
  5947. fi
  5948. rm conftest.$ac_ext
  5949. LIBS=$ac_func_search_save_LIBS
  5950. fi
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5952. $as_echo "$ac_cv_search_opendir" >&6; }
  5953. ac_res=$ac_cv_search_opendir
  5954. if test "$ac_res" != no; then :
  5955. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5956. fi
  5957. else
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5959. $as_echo_n "checking for library containing opendir... " >&6; }
  5960. if test "${ac_cv_search_opendir+set}" = set; then :
  5961. $as_echo_n "(cached) " >&6
  5962. else
  5963. ac_func_search_save_LIBS=$LIBS
  5964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5965. /* end confdefs.h. */
  5966. /* Override any GCC internal prototype to avoid an error.
  5967. Use char because int might match the return type of a GCC
  5968. builtin and then its argument prototype would still apply. */
  5969. #ifdef __cplusplus
  5970. extern "C"
  5971. #endif
  5972. char opendir ();
  5973. int
  5974. main ()
  5975. {
  5976. return opendir ();
  5977. ;
  5978. return 0;
  5979. }
  5980. _ACEOF
  5981. for ac_lib in '' x; do
  5982. if test -z "$ac_lib"; then
  5983. ac_res="none required"
  5984. else
  5985. ac_res=-l$ac_lib
  5986. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5987. fi
  5988. if ac_fn_c_try_link "$LINENO"; then :
  5989. ac_cv_search_opendir=$ac_res
  5990. fi
  5991. rm -f core conftest.err conftest.$ac_objext \
  5992. conftest$ac_exeext
  5993. if test "${ac_cv_search_opendir+set}" = set; then :
  5994. break
  5995. fi
  5996. done
  5997. if test "${ac_cv_search_opendir+set}" = set; then :
  5998. else
  5999. ac_cv_search_opendir=no
  6000. fi
  6001. rm conftest.$ac_ext
  6002. LIBS=$ac_func_search_save_LIBS
  6003. fi
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  6005. $as_echo "$ac_cv_search_opendir" >&6; }
  6006. ac_res=$ac_cv_search_opendir
  6007. if test "$ac_res" != no; then :
  6008. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6009. fi
  6010. fi
  6011. # =================
  6012. # AC_CHECK_HEADERS
  6013. # =================
  6014. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  6015. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  6016. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  6017. utime.h sysexits.h
  6018. do :
  6019. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6020. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6021. eval as_val=\$$as_ac_Header
  6022. if test "x$as_val" = x""yes; then :
  6023. cat >>confdefs.h <<_ACEOF
  6024. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6025. _ACEOF
  6026. fi
  6027. done
  6028. # --------------------------------------------
  6029. # Verify certain entries from AC_CHECK_HEADERS
  6030. # --------------------------------------------
  6031. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  6032. string errno stdlib memory setjmp
  6033. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  6034. test "${as_ac_var}" = set || \
  6035. as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
  6036. done
  6037. # ================================================
  6038. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  6039. # if varargs.h is present define HAVE_VARARGS_H.
  6040. # ================================================
  6041. for ac_header in stdarg.h varargs.h
  6042. do :
  6043. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6044. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6045. eval as_val=\$$as_ac_Header
  6046. if test "x$as_val" = x""yes; then :
  6047. cat >>confdefs.h <<_ACEOF
  6048. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6049. _ACEOF
  6050. break
  6051. fi
  6052. done
  6053. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  6054. as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
  6055. fi
  6056. # ================================================
  6057. # Similarly for the string.h and strings.h headers
  6058. # ================================================
  6059. for ac_header in string.h strings.h
  6060. do :
  6061. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6062. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6063. eval as_val=\$$as_ac_Header
  6064. if test "x$as_val" = x""yes; then :
  6065. cat >>confdefs.h <<_ACEOF
  6066. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6067. _ACEOF
  6068. break
  6069. fi
  6070. done
  6071. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  6072. as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
  6073. fi
  6074. # =====================
  6075. # ...and limits headers
  6076. # =====================
  6077. for ac_header in limits.h sys/limits.h values.h
  6078. do :
  6079. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6080. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6081. eval as_val=\$$as_ac_Header
  6082. if test "x$as_val" = x""yes; then :
  6083. cat >>confdefs.h <<_ACEOF
  6084. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6085. _ACEOF
  6086. break
  6087. fi
  6088. done
  6089. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  6090. as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  6091. fi
  6092. # ========================
  6093. # ...and int types headers
  6094. # ========================
  6095. for ac_header in stdint.h inttypes.h
  6096. do :
  6097. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6098. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6099. eval as_val=\$$as_ac_Header
  6100. if test "x$as_val" = x""yes; then :
  6101. cat >>confdefs.h <<_ACEOF
  6102. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6103. _ACEOF
  6104. break
  6105. fi
  6106. done
  6107. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  6108. if test "x$ac_cv_type_int8_t" = x""yes; then :
  6109. cat >>confdefs.h <<_ACEOF
  6110. #define HAVE_INT8_T 1
  6111. _ACEOF
  6112. fi
  6113. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  6114. if test "x$ac_cv_type_uint8_t" = x""yes; then :
  6115. cat >>confdefs.h <<_ACEOF
  6116. #define HAVE_UINT8_T 1
  6117. _ACEOF
  6118. fi
  6119. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  6120. if test "x$ac_cv_type_int16_t" = x""yes; then :
  6121. cat >>confdefs.h <<_ACEOF
  6122. #define HAVE_INT16_T 1
  6123. _ACEOF
  6124. fi
  6125. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  6126. if test "x$ac_cv_type_uint16_t" = x""yes; then :
  6127. cat >>confdefs.h <<_ACEOF
  6128. #define HAVE_UINT16_T 1
  6129. _ACEOF
  6130. fi
  6131. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  6132. if test "x$ac_cv_type_int32_t" = x""yes; then :
  6133. cat >>confdefs.h <<_ACEOF
  6134. #define HAVE_INT32_T 1
  6135. _ACEOF
  6136. fi
  6137. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  6138. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  6139. cat >>confdefs.h <<_ACEOF
  6140. #define HAVE_UINT32_T 1
  6141. _ACEOF
  6142. fi
  6143. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  6144. if test "x$ac_cv_type_intptr_t" = x""yes; then :
  6145. cat >>confdefs.h <<_ACEOF
  6146. #define HAVE_INTPTR_T 1
  6147. _ACEOF
  6148. fi
  6149. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  6150. if test "x$ac_cv_type_uint_t" = x""yes; then :
  6151. cat >>confdefs.h <<_ACEOF
  6152. #define HAVE_UINT_T 1
  6153. _ACEOF
  6154. fi
  6155. # ====================
  6156. # uintptr type & sizes
  6157. # ====================
  6158. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  6159. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  6160. cat >>confdefs.h <<_ACEOF
  6161. #define HAVE_UINTPTR_T 1
  6162. _ACEOF
  6163. else
  6164. $as_echo "#define uintptr_t unsigned long" >>confdefs.h
  6165. fi
  6166. # The cast to long int works around a bug in the HP C Compiler
  6167. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6168. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6169. # This bug is HP SR number 8606223364.
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
  6171. $as_echo_n "checking size of char*... " >&6; }
  6172. if test "${ac_cv_sizeof_charp+set}" = set; then :
  6173. $as_echo_n "(cached) " >&6
  6174. else
  6175. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
  6176. else
  6177. if test "$ac_cv_type_charp" = yes; then
  6178. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6179. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6180. { as_fn_set_status 77
  6181. as_fn_error "cannot compute sizeof (char*)
  6182. See \`config.log' for more details." "$LINENO" 5; }; }
  6183. else
  6184. ac_cv_sizeof_charp=0
  6185. fi
  6186. fi
  6187. fi
  6188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
  6189. $as_echo "$ac_cv_sizeof_charp" >&6; }
  6190. cat >>confdefs.h <<_ACEOF
  6191. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  6192. _ACEOF
  6193. # The cast to long int works around a bug in the HP C Compiler
  6194. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6195. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6196. # This bug is HP SR number 8606223364.
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  6198. $as_echo_n "checking size of int... " >&6; }
  6199. if test "${ac_cv_sizeof_int+set}" = set; then :
  6200. $as_echo_n "(cached) " >&6
  6201. else
  6202. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  6203. else
  6204. if test "$ac_cv_type_int" = yes; then
  6205. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6206. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6207. { as_fn_set_status 77
  6208. as_fn_error "cannot compute sizeof (int)
  6209. See \`config.log' for more details." "$LINENO" 5; }; }
  6210. else
  6211. ac_cv_sizeof_int=0
  6212. fi
  6213. fi
  6214. fi
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  6216. $as_echo "$ac_cv_sizeof_int" >&6; }
  6217. cat >>confdefs.h <<_ACEOF
  6218. #define SIZEOF_INT $ac_cv_sizeof_int
  6219. _ACEOF
  6220. # The cast to long int works around a bug in the HP C Compiler
  6221. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6222. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6223. # This bug is HP SR number 8606223364.
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  6225. $as_echo_n "checking size of long... " >&6; }
  6226. if test "${ac_cv_sizeof_long+set}" = set; then :
  6227. $as_echo_n "(cached) " >&6
  6228. else
  6229. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  6230. else
  6231. if test "$ac_cv_type_long" = yes; then
  6232. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6233. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6234. { as_fn_set_status 77
  6235. as_fn_error "cannot compute sizeof (long)
  6236. See \`config.log' for more details." "$LINENO" 5; }; }
  6237. else
  6238. ac_cv_sizeof_long=0
  6239. fi
  6240. fi
  6241. fi
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  6243. $as_echo "$ac_cv_sizeof_long" >&6; }
  6244. cat >>confdefs.h <<_ACEOF
  6245. #define SIZEOF_LONG $ac_cv_sizeof_long
  6246. _ACEOF
  6247. # The cast to long int works around a bug in the HP C Compiler
  6248. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6249. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6250. # This bug is HP SR number 8606223364.
  6251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  6252. $as_echo_n "checking size of short... " >&6; }
  6253. if test "${ac_cv_sizeof_short+set}" = set; then :
  6254. $as_echo_n "(cached) " >&6
  6255. else
  6256. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  6257. else
  6258. if test "$ac_cv_type_short" = yes; then
  6259. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6260. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6261. { as_fn_set_status 77
  6262. as_fn_error "cannot compute sizeof (short)
  6263. See \`config.log' for more details." "$LINENO" 5; }; }
  6264. else
  6265. ac_cv_sizeof_short=0
  6266. fi
  6267. fi
  6268. fi
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  6270. $as_echo "$ac_cv_sizeof_short" >&6; }
  6271. cat >>confdefs.h <<_ACEOF
  6272. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6273. _ACEOF
  6274. # ----------------------------------------------------------------------
  6275. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  6276. # ----------------------------------------------------------------------
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  6278. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  6279. if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
  6280. $as_echo_n "(cached) " >&6
  6281. else
  6282. ac_check_lib_save_LIBS=$LIBS
  6283. LIBS="-lgen $LIBS"
  6284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6285. /* end confdefs.h. */
  6286. /* Override any GCC internal prototype to avoid an error.
  6287. Use char because int might match the return type of a GCC
  6288. builtin and then its argument prototype would still apply. */
  6289. #ifdef __cplusplus
  6290. extern "C"
  6291. #endif
  6292. char pathfind ();
  6293. int
  6294. main ()
  6295. {
  6296. return pathfind ();
  6297. ;
  6298. return 0;
  6299. }
  6300. _ACEOF
  6301. if ac_fn_c_try_link "$LINENO"; then :
  6302. ac_cv_lib_gen_pathfind=yes
  6303. else
  6304. ac_cv_lib_gen_pathfind=no
  6305. fi
  6306. rm -f core conftest.err conftest.$ac_objext \
  6307. conftest$ac_exeext conftest.$ac_ext
  6308. LIBS=$ac_check_lib_save_LIBS
  6309. fi
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  6311. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  6312. if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
  6313. cat >>confdefs.h <<_ACEOF
  6314. #define HAVE_LIBGEN 1
  6315. _ACEOF
  6316. LIBS="-lgen $LIBS"
  6317. fi
  6318. for ac_func in vprintf
  6319. do :
  6320. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  6321. if test "x$ac_cv_func_vprintf" = x""yes; then :
  6322. cat >>confdefs.h <<_ACEOF
  6323. #define HAVE_VPRINTF 1
  6324. _ACEOF
  6325. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  6326. if test "x$ac_cv_func__doprnt" = x""yes; then :
  6327. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  6328. fi
  6329. fi
  6330. done
  6331. for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
  6332. do :
  6333. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6334. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6335. eval as_val=\$$as_ac_var
  6336. if test "x$as_val" = x""yes; then :
  6337. cat >>confdefs.h <<_ACEOF
  6338. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6339. _ACEOF
  6340. fi
  6341. done
  6342. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  6343. fi
  6344. # Check to see if a reg expr header is specified.
  6345. # Check whether --with-regex-header was given.
  6346. if test "${with_regex_header+set}" = set; then :
  6347. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  6348. else
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
  6350. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  6351. if test "${libopts_cv_with_regex_header+set}" = set; then :
  6352. $as_echo_n "(cached) " >&6
  6353. else
  6354. libopts_cv_with_regex_header=no
  6355. fi
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
  6357. $as_echo "$libopts_cv_with_regex_header" >&6; }
  6358. fi
  6359. # end of AC_ARG_WITH
  6360. if test "X${libopts_cv_with_regex_header}" != Xno
  6361. then
  6362. cat >>confdefs.h <<_ACEOF
  6363. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  6364. _ACEOF
  6365. else
  6366. $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
  6367. fi
  6368. # Check to see if a working libregex can be found.
  6369. # Check whether --with-libregex was given.
  6370. if test "${with_libregex+set}" = set; then :
  6371. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  6372. else
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
  6374. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  6375. if test "${libopts_cv_with_libregex_root+set}" = set; then :
  6376. $as_echo_n "(cached) " >&6
  6377. else
  6378. libopts_cv_with_libregex_root=no
  6379. fi
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
  6381. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  6382. fi
  6383. # end of AC_ARG_WITH libregex
  6384. if test "${with_libguile+set}" = set && \
  6385. test "${withval}" = no
  6386. then ## disabled by request
  6387. libopts_cv_with_libregex_root=no
  6388. libopts_cv_with_libregex_cflags=no
  6389. libopts_cv_with_libregex_libs=no
  6390. else
  6391. # Check whether --with-libregex-cflags was given.
  6392. if test "${with_libregex_cflags+set}" = set; then :
  6393. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
  6394. else
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
  6396. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  6397. if test "${libopts_cv_with_libregex_cflags+set}" = set; then :
  6398. $as_echo_n "(cached) " >&6
  6399. else
  6400. libopts_cv_with_libregex_cflags=no
  6401. fi
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
  6403. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  6404. fi
  6405. # end of AC_ARG_WITH libregex-cflags
  6406. # Check whether --with-libregex-libs was given.
  6407. if test "${with_libregex_libs+set}" = set; then :
  6408. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
  6409. else
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
  6411. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  6412. if test "${libopts_cv_with_libregex_libs+set}" = set; then :
  6413. $as_echo_n "(cached) " >&6
  6414. else
  6415. libopts_cv_with_libregex_libs=no
  6416. fi
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
  6418. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  6419. fi
  6420. # end of AC_ARG_WITH libregex-libs
  6421. case "X${libopts_cv_with_libregex_cflags}" in
  6422. Xyes|Xno|X )
  6423. case "X${libopts_cv_with_libregex_root}" in
  6424. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  6425. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  6426. esac
  6427. esac
  6428. case "X${libopts_cv_with_libregex_libs}" in
  6429. Xyes|Xno|X )
  6430. case "X${libopts_cv_with_libregex_root}" in
  6431. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  6432. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  6433. esac
  6434. esac
  6435. libopts_save_CPPFLAGS="${CPPFLAGS}"
  6436. libopts_save_LIBS="${LIBS}"
  6437. fi ## disabled by request
  6438. case "X${libopts_cv_with_libregex_cflags}" in
  6439. Xyes|Xno|X )
  6440. libopts_cv_with_libregex_cflags="" ;;
  6441. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  6442. esac
  6443. case "X${libopts_cv_with_libregex_libs}" in
  6444. Xyes|Xno|X )
  6445. libopts_cv_with_libregex_libs="" ;;
  6446. * )
  6447. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  6448. esac
  6449. LIBREGEX_CFLAGS=""
  6450. LIBREGEX_LIBS=""
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
  6452. $as_echo_n "checking whether libregex functions properly... " >&6; }
  6453. if test "${libopts_cv_with_libregex+set}" = set; then :
  6454. $as_echo_n "(cached) " >&6
  6455. else
  6456. if test "$cross_compiling" = yes; then :
  6457. libopts_cv_with_libregex=no
  6458. else
  6459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6460. /* end confdefs.h. */
  6461. #include <stdio.h>
  6462. #include <stdlib.h>
  6463. #include <sys/types.h>
  6464. #include REGEX_HEADER
  6465. static regex_t re;
  6466. void comp_re( char const* pzPat ) {
  6467. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  6468. if (res == 0) return;
  6469. exit( res ); }
  6470. int main() {
  6471. regmatch_t m[2];
  6472. comp_re( "^.*\$" );
  6473. comp_re( "()|no.*" );
  6474. comp_re( "." );
  6475. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  6476. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  6477. fputs( "error: regex -->.<-- did not match\n", stderr );
  6478. return 1;
  6479. }
  6480. return 0; }
  6481. _ACEOF
  6482. if ac_fn_c_try_run "$LINENO"; then :
  6483. libopts_cv_with_libregex=yes
  6484. else
  6485. libopts_cv_with_libregex=no
  6486. fi
  6487. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6488. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6489. fi
  6490. # end of AC_TRY_RUN
  6491. fi
  6492. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
  6494. $as_echo "${libopts_cv_with_libregex}" >&6; }
  6495. if test "X${libopts_cv_with_libregex}" != Xno
  6496. then
  6497. $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
  6498. else
  6499. CPPFLAGS="${libopts_save_CPPFLAGS}"
  6500. LIBS="${libopts_save_LIBS}"
  6501. fi
  6502. # Check to see if pathfind(3) works.
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
  6504. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  6505. if test "${libopts_cv_run_pathfind+set}" = set; then :
  6506. $as_echo_n "(cached) " >&6
  6507. else
  6508. if test "$cross_compiling" = yes; then :
  6509. libopts_cv_run_pathfind=no
  6510. else
  6511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6512. /* end confdefs.h. */
  6513. #include <string.h>
  6514. #include <stdlib.h>
  6515. int main (int argc, char** argv) {
  6516. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  6517. return (pz == 0) ? 1 : 0;
  6518. }
  6519. _ACEOF
  6520. if ac_fn_c_try_run "$LINENO"; then :
  6521. libopts_cv_run_pathfind=yes
  6522. else
  6523. libopts_cv_run_pathfind=no
  6524. fi
  6525. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6526. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6527. fi
  6528. # end of TRY_RUN
  6529. fi
  6530. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
  6532. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  6533. if test "X${libopts_cv_run_pathfind}" != Xno
  6534. then
  6535. $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
  6536. fi
  6537. # Check to see if /dev/zero is readable device.
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
  6539. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  6540. if test "${libopts_cv_test_dev_zero+set}" = set; then :
  6541. $as_echo_n "(cached) " >&6
  6542. else
  6543. libopts_cv_test_dev_zero=`exec 2> /dev/null
  6544. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  6545. test -z "${dzero}" && exit 1
  6546. echo ${dzero}`
  6547. if test $? -ne 0
  6548. then libopts_cv_test_dev_zero=no
  6549. elif test -z "$libopts_cv_test_dev_zero"
  6550. then libopts_cv_test_dev_zero=no
  6551. fi
  6552. fi
  6553. # end of CACHE_VAL of libopts_cv_test_dev_zero
  6554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
  6555. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  6556. if test "X${libopts_cv_test_dev_zero}" != Xno
  6557. then
  6558. $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
  6559. fi
  6560. # Check to see if we have a functional realpath(3C).
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
  6562. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  6563. if test "${libopts_cv_run_realpath+set}" = set; then :
  6564. $as_echo_n "(cached) " >&6
  6565. else
  6566. if test "$cross_compiling" = yes; then :
  6567. libopts_cv_run_realpath=no
  6568. else
  6569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6570. /* end confdefs.h. */
  6571. #include <limits.h>
  6572. #include <stdlib.h>
  6573. int main (int argc, char** argv) {
  6574. #ifndef PATH_MAX
  6575. choke me!!
  6576. #else
  6577. char zPath[PATH_MAX+1];
  6578. #endif
  6579. char *pz = realpath(argv[0], zPath);
  6580. return (pz == zPath) ? 0 : 1;
  6581. }
  6582. _ACEOF
  6583. if ac_fn_c_try_run "$LINENO"; then :
  6584. libopts_cv_run_realpath=yes
  6585. else
  6586. libopts_cv_run_realpath=no
  6587. fi
  6588. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6589. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6590. fi
  6591. # end of TRY_RUN
  6592. fi
  6593. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
  6595. $as_echo "${libopts_cv_run_realpath}" >&6; }
  6596. if test "X${libopts_cv_run_realpath}" != Xno
  6597. then
  6598. $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
  6599. fi
  6600. # Check to see if strftime() works.
  6601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
  6602. $as_echo_n "checking whether strftime() works... " >&6; }
  6603. if test "${libopts_cv_run_strftime+set}" = set; then :
  6604. $as_echo_n "(cached) " >&6
  6605. else
  6606. if test "$cross_compiling" = yes; then :
  6607. libopts_cv_run_strftime=no
  6608. else
  6609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6610. /* end confdefs.h. */
  6611. #include <time.h>
  6612. #include <string.h>
  6613. char t_buf[ 64 ];
  6614. int main() {
  6615. static char const z[] = "Thursday Aug 28 240";
  6616. struct tm tm;
  6617. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  6618. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  6619. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  6620. tm.tm_mday = 28; /* day of the month [1, 31] */
  6621. tm.tm_mon = 7; /* months since January [0, 11] */
  6622. tm.tm_year = 86; /* years since 1900 */
  6623. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  6624. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  6625. tm.tm_isdst = 1; /* flag for daylight savings time */
  6626. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  6627. return (strcmp( t_buf, z ) != 0); }
  6628. _ACEOF
  6629. if ac_fn_c_try_run "$LINENO"; then :
  6630. libopts_cv_run_strftime=yes
  6631. else
  6632. libopts_cv_run_strftime=no
  6633. fi
  6634. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6635. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6636. fi
  6637. # end of TRY_RUN
  6638. fi
  6639. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
  6641. $as_echo "${libopts_cv_run_strftime}" >&6; }
  6642. if test "X${libopts_cv_run_strftime}" != Xno
  6643. then
  6644. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  6645. fi
  6646. # Check to see if fopen accepts "b" mode.
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
  6648. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  6649. if test "${libopts_cv_run_fopen_binary+set}" = set; then :
  6650. $as_echo_n "(cached) " >&6
  6651. else
  6652. if test "$cross_compiling" = yes; then :
  6653. libopts_cv_run_fopen_binary=no
  6654. else
  6655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6656. /* end confdefs.h. */
  6657. #include <stdio.h>
  6658. int main (int argc, char** argv) {
  6659. FILE* fp = fopen("conftest.$ac_ext", "rb");
  6660. return (fp == NULL) ? 1 : fclose(fp); }
  6661. _ACEOF
  6662. if ac_fn_c_try_run "$LINENO"; then :
  6663. libopts_cv_run_fopen_binary=yes
  6664. else
  6665. libopts_cv_run_fopen_binary=no
  6666. fi
  6667. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6668. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6669. fi
  6670. # end of TRY_RUN
  6671. fi
  6672. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
  6674. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  6675. if test "X${libopts_cv_run_fopen_binary}" != Xno
  6676. then
  6677. $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
  6678. else
  6679. $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
  6680. fi
  6681. # Check to see if fopen accepts "t" mode.
  6682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
  6683. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  6684. if test "${libopts_cv_run_fopen_text+set}" = set; then :
  6685. $as_echo_n "(cached) " >&6
  6686. else
  6687. if test "$cross_compiling" = yes; then :
  6688. libopts_cv_run_fopen_text=no
  6689. else
  6690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6691. /* end confdefs.h. */
  6692. #include <stdio.h>
  6693. int main (int argc, char** argv) {
  6694. FILE* fp = fopen("conftest.$ac_ext", "rt");
  6695. return (fp == NULL) ? 1 : fclose(fp); }
  6696. _ACEOF
  6697. if ac_fn_c_try_run "$LINENO"; then :
  6698. libopts_cv_run_fopen_text=yes
  6699. else
  6700. libopts_cv_run_fopen_text=no
  6701. fi
  6702. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6703. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6704. fi
  6705. # end of TRY_RUN
  6706. fi
  6707. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
  6709. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  6710. if test "X${libopts_cv_run_fopen_text}" != Xno
  6711. then
  6712. $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
  6713. else
  6714. $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
  6715. fi
  6716. # Check to see if not wanting optional option args.
  6717. # Check whether --enable-optional-args was given.
  6718. if test "${enable_optional_args+set}" = set; then :
  6719. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  6720. else
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
  6722. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  6723. if test "${libopts_cv_enable_optional_args+set}" = set; then :
  6724. $as_echo_n "(cached) " >&6
  6725. else
  6726. libopts_cv_enable_optional_args=yes
  6727. fi
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
  6729. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  6730. fi
  6731. # end of AC_ARG_ENABLE
  6732. if test "X${libopts_cv_enable_optional_args}" = Xno
  6733. then
  6734. $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
  6735. fi
  6736. else
  6737. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  6738. # =================
  6739. # AC_HEADER_STDC
  6740. # =================
  6741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6742. $as_echo_n "checking for ANSI C header files... " >&6; }
  6743. if test "${ac_cv_header_stdc+set}" = set; then :
  6744. $as_echo_n "(cached) " >&6
  6745. else
  6746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6747. /* end confdefs.h. */
  6748. #include <stdlib.h>
  6749. #include <stdarg.h>
  6750. #include <string.h>
  6751. #include <float.h>
  6752. int
  6753. main ()
  6754. {
  6755. ;
  6756. return 0;
  6757. }
  6758. _ACEOF
  6759. if ac_fn_c_try_compile "$LINENO"; then :
  6760. ac_cv_header_stdc=yes
  6761. else
  6762. ac_cv_header_stdc=no
  6763. fi
  6764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6765. if test $ac_cv_header_stdc = yes; then
  6766. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6768. /* end confdefs.h. */
  6769. #include <string.h>
  6770. _ACEOF
  6771. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6772. $EGREP "memchr" >/dev/null 2>&1; then :
  6773. else
  6774. ac_cv_header_stdc=no
  6775. fi
  6776. rm -f conftest*
  6777. fi
  6778. if test $ac_cv_header_stdc = yes; then
  6779. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6781. /* end confdefs.h. */
  6782. #include <stdlib.h>
  6783. _ACEOF
  6784. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6785. $EGREP "free" >/dev/null 2>&1; then :
  6786. else
  6787. ac_cv_header_stdc=no
  6788. fi
  6789. rm -f conftest*
  6790. fi
  6791. if test $ac_cv_header_stdc = yes; then
  6792. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6793. if test "$cross_compiling" = yes; then :
  6794. :
  6795. else
  6796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6797. /* end confdefs.h. */
  6798. #include <ctype.h>
  6799. #include <stdlib.h>
  6800. #if ((' ' & 0x0FF) == 0x020)
  6801. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6802. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6803. #else
  6804. # define ISLOWER(c) \
  6805. (('a' <= (c) && (c) <= 'i') \
  6806. || ('j' <= (c) && (c) <= 'r') \
  6807. || ('s' <= (c) && (c) <= 'z'))
  6808. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6809. #endif
  6810. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6811. int
  6812. main ()
  6813. {
  6814. int i;
  6815. for (i = 0; i < 256; i++)
  6816. if (XOR (islower (i), ISLOWER (i))
  6817. || toupper (i) != TOUPPER (i))
  6818. return 2;
  6819. return 0;
  6820. }
  6821. _ACEOF
  6822. if ac_fn_c_try_run "$LINENO"; then :
  6823. else
  6824. ac_cv_header_stdc=no
  6825. fi
  6826. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6827. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6828. fi
  6829. fi
  6830. fi
  6831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6832. $as_echo "$ac_cv_header_stdc" >&6; }
  6833. if test $ac_cv_header_stdc = yes; then
  6834. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6835. fi
  6836. # =================
  6837. # AC_HEADER_DIRENT
  6838. # =================
  6839. ac_header_dirent=no
  6840. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  6841. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  6843. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  6844. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  6845. $as_echo_n "(cached) " >&6
  6846. else
  6847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6848. /* end confdefs.h. */
  6849. #include <sys/types.h>
  6850. #include <$ac_hdr>
  6851. int
  6852. main ()
  6853. {
  6854. if ((DIR *) 0)
  6855. return 0;
  6856. ;
  6857. return 0;
  6858. }
  6859. _ACEOF
  6860. if ac_fn_c_try_compile "$LINENO"; then :
  6861. eval "$as_ac_Header=yes"
  6862. else
  6863. eval "$as_ac_Header=no"
  6864. fi
  6865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6866. fi
  6867. eval ac_res=\$$as_ac_Header
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6869. $as_echo "$ac_res" >&6; }
  6870. eval as_val=\$$as_ac_Header
  6871. if test "x$as_val" = x""yes; then :
  6872. cat >>confdefs.h <<_ACEOF
  6873. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  6874. _ACEOF
  6875. ac_header_dirent=$ac_hdr; break
  6876. fi
  6877. done
  6878. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  6879. if test $ac_header_dirent = dirent.h; then
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  6881. $as_echo_n "checking for library containing opendir... " >&6; }
  6882. if test "${ac_cv_search_opendir+set}" = set; then :
  6883. $as_echo_n "(cached) " >&6
  6884. else
  6885. ac_func_search_save_LIBS=$LIBS
  6886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6887. /* end confdefs.h. */
  6888. /* Override any GCC internal prototype to avoid an error.
  6889. Use char because int might match the return type of a GCC
  6890. builtin and then its argument prototype would still apply. */
  6891. #ifdef __cplusplus
  6892. extern "C"
  6893. #endif
  6894. char opendir ();
  6895. int
  6896. main ()
  6897. {
  6898. return opendir ();
  6899. ;
  6900. return 0;
  6901. }
  6902. _ACEOF
  6903. for ac_lib in '' dir; do
  6904. if test -z "$ac_lib"; then
  6905. ac_res="none required"
  6906. else
  6907. ac_res=-l$ac_lib
  6908. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6909. fi
  6910. if ac_fn_c_try_link "$LINENO"; then :
  6911. ac_cv_search_opendir=$ac_res
  6912. fi
  6913. rm -f core conftest.err conftest.$ac_objext \
  6914. conftest$ac_exeext
  6915. if test "${ac_cv_search_opendir+set}" = set; then :
  6916. break
  6917. fi
  6918. done
  6919. if test "${ac_cv_search_opendir+set}" = set; then :
  6920. else
  6921. ac_cv_search_opendir=no
  6922. fi
  6923. rm conftest.$ac_ext
  6924. LIBS=$ac_func_search_save_LIBS
  6925. fi
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  6927. $as_echo "$ac_cv_search_opendir" >&6; }
  6928. ac_res=$ac_cv_search_opendir
  6929. if test "$ac_res" != no; then :
  6930. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6931. fi
  6932. else
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  6934. $as_echo_n "checking for library containing opendir... " >&6; }
  6935. if test "${ac_cv_search_opendir+set}" = set; then :
  6936. $as_echo_n "(cached) " >&6
  6937. else
  6938. ac_func_search_save_LIBS=$LIBS
  6939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6940. /* end confdefs.h. */
  6941. /* Override any GCC internal prototype to avoid an error.
  6942. Use char because int might match the return type of a GCC
  6943. builtin and then its argument prototype would still apply. */
  6944. #ifdef __cplusplus
  6945. extern "C"
  6946. #endif
  6947. char opendir ();
  6948. int
  6949. main ()
  6950. {
  6951. return opendir ();
  6952. ;
  6953. return 0;
  6954. }
  6955. _ACEOF
  6956. for ac_lib in '' x; do
  6957. if test -z "$ac_lib"; then
  6958. ac_res="none required"
  6959. else
  6960. ac_res=-l$ac_lib
  6961. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6962. fi
  6963. if ac_fn_c_try_link "$LINENO"; then :
  6964. ac_cv_search_opendir=$ac_res
  6965. fi
  6966. rm -f core conftest.err conftest.$ac_objext \
  6967. conftest$ac_exeext
  6968. if test "${ac_cv_search_opendir+set}" = set; then :
  6969. break
  6970. fi
  6971. done
  6972. if test "${ac_cv_search_opendir+set}" = set; then :
  6973. else
  6974. ac_cv_search_opendir=no
  6975. fi
  6976. rm conftest.$ac_ext
  6977. LIBS=$ac_func_search_save_LIBS
  6978. fi
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  6980. $as_echo "$ac_cv_search_opendir" >&6; }
  6981. ac_res=$ac_cv_search_opendir
  6982. if test "$ac_res" != no; then :
  6983. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6984. fi
  6985. fi
  6986. # =================
  6987. # AC_CHECK_HEADERS
  6988. # =================
  6989. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  6990. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  6991. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  6992. utime.h sysexits.h
  6993. do :
  6994. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6995. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6996. eval as_val=\$$as_ac_Header
  6997. if test "x$as_val" = x""yes; then :
  6998. cat >>confdefs.h <<_ACEOF
  6999. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7000. _ACEOF
  7001. fi
  7002. done
  7003. # --------------------------------------------
  7004. # Verify certain entries from AC_CHECK_HEADERS
  7005. # --------------------------------------------
  7006. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  7007. string errno stdlib memory setjmp
  7008. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  7009. test "${as_ac_var}" = set || \
  7010. as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
  7011. done
  7012. # ================================================
  7013. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  7014. # if varargs.h is present define HAVE_VARARGS_H.
  7015. # ================================================
  7016. for ac_header in stdarg.h varargs.h
  7017. do :
  7018. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7019. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7020. eval as_val=\$$as_ac_Header
  7021. if test "x$as_val" = x""yes; then :
  7022. cat >>confdefs.h <<_ACEOF
  7023. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7024. _ACEOF
  7025. break
  7026. fi
  7027. done
  7028. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  7029. as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
  7030. fi
  7031. # ================================================
  7032. # Similarly for the string.h and strings.h headers
  7033. # ================================================
  7034. for ac_header in string.h strings.h
  7035. do :
  7036. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7037. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7038. eval as_val=\$$as_ac_Header
  7039. if test "x$as_val" = x""yes; then :
  7040. cat >>confdefs.h <<_ACEOF
  7041. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7042. _ACEOF
  7043. break
  7044. fi
  7045. done
  7046. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  7047. as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
  7048. fi
  7049. # =====================
  7050. # ...and limits headers
  7051. # =====================
  7052. for ac_header in limits.h sys/limits.h values.h
  7053. do :
  7054. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7055. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7056. eval as_val=\$$as_ac_Header
  7057. if test "x$as_val" = x""yes; then :
  7058. cat >>confdefs.h <<_ACEOF
  7059. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7060. _ACEOF
  7061. break
  7062. fi
  7063. done
  7064. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  7065. as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  7066. fi
  7067. # ========================
  7068. # ...and int types headers
  7069. # ========================
  7070. for ac_header in stdint.h inttypes.h
  7071. do :
  7072. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7073. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7074. eval as_val=\$$as_ac_Header
  7075. if test "x$as_val" = x""yes; then :
  7076. cat >>confdefs.h <<_ACEOF
  7077. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7078. _ACEOF
  7079. break
  7080. fi
  7081. done
  7082. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  7083. if test "x$ac_cv_type_int8_t" = x""yes; then :
  7084. cat >>confdefs.h <<_ACEOF
  7085. #define HAVE_INT8_T 1
  7086. _ACEOF
  7087. fi
  7088. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  7089. if test "x$ac_cv_type_uint8_t" = x""yes; then :
  7090. cat >>confdefs.h <<_ACEOF
  7091. #define HAVE_UINT8_T 1
  7092. _ACEOF
  7093. fi
  7094. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  7095. if test "x$ac_cv_type_int16_t" = x""yes; then :
  7096. cat >>confdefs.h <<_ACEOF
  7097. #define HAVE_INT16_T 1
  7098. _ACEOF
  7099. fi
  7100. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  7101. if test "x$ac_cv_type_uint16_t" = x""yes; then :
  7102. cat >>confdefs.h <<_ACEOF
  7103. #define HAVE_UINT16_T 1
  7104. _ACEOF
  7105. fi
  7106. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  7107. if test "x$ac_cv_type_int32_t" = x""yes; then :
  7108. cat >>confdefs.h <<_ACEOF
  7109. #define HAVE_INT32_T 1
  7110. _ACEOF
  7111. fi
  7112. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  7113. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  7114. cat >>confdefs.h <<_ACEOF
  7115. #define HAVE_UINT32_T 1
  7116. _ACEOF
  7117. fi
  7118. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  7119. if test "x$ac_cv_type_intptr_t" = x""yes; then :
  7120. cat >>confdefs.h <<_ACEOF
  7121. #define HAVE_INTPTR_T 1
  7122. _ACEOF
  7123. fi
  7124. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  7125. if test "x$ac_cv_type_uint_t" = x""yes; then :
  7126. cat >>confdefs.h <<_ACEOF
  7127. #define HAVE_UINT_T 1
  7128. _ACEOF
  7129. fi
  7130. # ====================
  7131. # uintptr type & sizes
  7132. # ====================
  7133. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  7134. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  7135. cat >>confdefs.h <<_ACEOF
  7136. #define HAVE_UINTPTR_T 1
  7137. _ACEOF
  7138. else
  7139. $as_echo "#define uintptr_t unsigned long" >>confdefs.h
  7140. fi
  7141. # The cast to long int works around a bug in the HP C Compiler
  7142. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7143. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7144. # This bug is HP SR number 8606223364.
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
  7146. $as_echo_n "checking size of char*... " >&6; }
  7147. if test "${ac_cv_sizeof_charp+set}" = set; then :
  7148. $as_echo_n "(cached) " >&6
  7149. else
  7150. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
  7151. else
  7152. if test "$ac_cv_type_charp" = yes; then
  7153. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7154. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7155. { as_fn_set_status 77
  7156. as_fn_error "cannot compute sizeof (char*)
  7157. See \`config.log' for more details." "$LINENO" 5; }; }
  7158. else
  7159. ac_cv_sizeof_charp=0
  7160. fi
  7161. fi
  7162. fi
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
  7164. $as_echo "$ac_cv_sizeof_charp" >&6; }
  7165. cat >>confdefs.h <<_ACEOF
  7166. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  7167. _ACEOF
  7168. # The cast to long int works around a bug in the HP C Compiler
  7169. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7170. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7171. # This bug is HP SR number 8606223364.
  7172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  7173. $as_echo_n "checking size of int... " >&6; }
  7174. if test "${ac_cv_sizeof_int+set}" = set; then :
  7175. $as_echo_n "(cached) " >&6
  7176. else
  7177. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  7178. else
  7179. if test "$ac_cv_type_int" = yes; then
  7180. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7181. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7182. { as_fn_set_status 77
  7183. as_fn_error "cannot compute sizeof (int)
  7184. See \`config.log' for more details." "$LINENO" 5; }; }
  7185. else
  7186. ac_cv_sizeof_int=0
  7187. fi
  7188. fi
  7189. fi
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  7191. $as_echo "$ac_cv_sizeof_int" >&6; }
  7192. cat >>confdefs.h <<_ACEOF
  7193. #define SIZEOF_INT $ac_cv_sizeof_int
  7194. _ACEOF
  7195. # The cast to long int works around a bug in the HP C Compiler
  7196. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7197. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7198. # This bug is HP SR number 8606223364.
  7199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  7200. $as_echo_n "checking size of long... " >&6; }
  7201. if test "${ac_cv_sizeof_long+set}" = set; then :
  7202. $as_echo_n "(cached) " >&6
  7203. else
  7204. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  7205. else
  7206. if test "$ac_cv_type_long" = yes; then
  7207. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7208. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7209. { as_fn_set_status 77
  7210. as_fn_error "cannot compute sizeof (long)
  7211. See \`config.log' for more details." "$LINENO" 5; }; }
  7212. else
  7213. ac_cv_sizeof_long=0
  7214. fi
  7215. fi
  7216. fi
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  7218. $as_echo "$ac_cv_sizeof_long" >&6; }
  7219. cat >>confdefs.h <<_ACEOF
  7220. #define SIZEOF_LONG $ac_cv_sizeof_long
  7221. _ACEOF
  7222. # The cast to long int works around a bug in the HP C Compiler
  7223. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7224. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7225. # This bug is HP SR number 8606223364.
  7226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  7227. $as_echo_n "checking size of short... " >&6; }
  7228. if test "${ac_cv_sizeof_short+set}" = set; then :
  7229. $as_echo_n "(cached) " >&6
  7230. else
  7231. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  7232. else
  7233. if test "$ac_cv_type_short" = yes; then
  7234. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7235. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7236. { as_fn_set_status 77
  7237. as_fn_error "cannot compute sizeof (short)
  7238. See \`config.log' for more details." "$LINENO" 5; }; }
  7239. else
  7240. ac_cv_sizeof_short=0
  7241. fi
  7242. fi
  7243. fi
  7244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  7245. $as_echo "$ac_cv_sizeof_short" >&6; }
  7246. cat >>confdefs.h <<_ACEOF
  7247. #define SIZEOF_SHORT $ac_cv_sizeof_short
  7248. _ACEOF
  7249. # ----------------------------------------------------------------------
  7250. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  7251. # ----------------------------------------------------------------------
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  7253. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  7254. if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
  7255. $as_echo_n "(cached) " >&6
  7256. else
  7257. ac_check_lib_save_LIBS=$LIBS
  7258. LIBS="-lgen $LIBS"
  7259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7260. /* end confdefs.h. */
  7261. /* Override any GCC internal prototype to avoid an error.
  7262. Use char because int might match the return type of a GCC
  7263. builtin and then its argument prototype would still apply. */
  7264. #ifdef __cplusplus
  7265. extern "C"
  7266. #endif
  7267. char pathfind ();
  7268. int
  7269. main ()
  7270. {
  7271. return pathfind ();
  7272. ;
  7273. return 0;
  7274. }
  7275. _ACEOF
  7276. if ac_fn_c_try_link "$LINENO"; then :
  7277. ac_cv_lib_gen_pathfind=yes
  7278. else
  7279. ac_cv_lib_gen_pathfind=no
  7280. fi
  7281. rm -f core conftest.err conftest.$ac_objext \
  7282. conftest$ac_exeext conftest.$ac_ext
  7283. LIBS=$ac_check_lib_save_LIBS
  7284. fi
  7285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  7286. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  7287. if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
  7288. cat >>confdefs.h <<_ACEOF
  7289. #define HAVE_LIBGEN 1
  7290. _ACEOF
  7291. LIBS="-lgen $LIBS"
  7292. fi
  7293. for ac_func in vprintf
  7294. do :
  7295. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  7296. if test "x$ac_cv_func_vprintf" = x""yes; then :
  7297. cat >>confdefs.h <<_ACEOF
  7298. #define HAVE_VPRINTF 1
  7299. _ACEOF
  7300. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  7301. if test "x$ac_cv_func__doprnt" = x""yes; then :
  7302. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  7303. fi
  7304. fi
  7305. done
  7306. for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
  7307. do :
  7308. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7309. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7310. eval as_val=\$$as_ac_var
  7311. if test "x$as_val" = x""yes; then :
  7312. cat >>confdefs.h <<_ACEOF
  7313. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7314. _ACEOF
  7315. fi
  7316. done
  7317. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  7318. fi
  7319. fi
  7320. # end of AC_DEFUN of LIBOPTS_CHECK
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
  7322. $as_echo_n "checking if $CC can handle #warning... " >&6; }
  7323. if test "${ac_cv_cpp_warning+set}" = set; then :
  7324. $as_echo_n "(cached) " >&6
  7325. else
  7326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7327. /* end confdefs.h. */
  7328. int
  7329. main ()
  7330. {
  7331. #warning foo
  7332. ;
  7333. return 0;
  7334. }
  7335. _ACEOF
  7336. if ac_fn_c_try_compile "$LINENO"; then :
  7337. ac_cv_cpp_warning=yes
  7338. else
  7339. ac_cv_cpp_warning=no
  7340. fi
  7341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7342. fi
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_warning" >&5
  7344. $as_echo "$ac_cv_cpp_warning" >&6; }
  7345. case "$ac_cv_cpp_warning" in
  7346. no)
  7347. $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
  7348. esac
  7349. case "$GCC" in
  7350. yes)
  7351. SAVED_CFLAGS_AC="$CFLAGS"
  7352. CFLAGS="$CFLAGS -Wstrict-overflow"
  7353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
  7354. $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
  7355. if test "${ac_cv_gcc_Wstrict_overflow+set}" = set; then :
  7356. $as_echo_n "(cached) " >&6
  7357. else
  7358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7359. /* end confdefs.h. */
  7360. int
  7361. main ()
  7362. {
  7363. ;
  7364. return 0;
  7365. }
  7366. _ACEOF
  7367. if ac_fn_c_try_compile "$LINENO"; then :
  7368. ac_cv_gcc_Wstrict_overflow=yes
  7369. else
  7370. ac_cv_gcc_Wstrict_overflow=no
  7371. fi
  7372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7373. fi
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Wstrict_overflow" >&5
  7375. $as_echo "$ac_cv_gcc_Wstrict_overflow" >&6; }
  7376. CFLAGS="$SAVED_CFLAGS_AC"
  7377. unset SAVED_CFLAGS_AC
  7378. #
  7379. # $ac_cv_gcc_Wstrict_overflow is tested later to add the
  7380. # flag to CFLAGS.
  7381. #
  7382. esac
  7383. case "$GCC" in
  7384. yes)
  7385. SAVED_CFLAGS_AC="$CFLAGS"
  7386. CFLAGS="$CFLAGS -Winit-self"
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
  7388. $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
  7389. if test "${ac_cv_gcc_Winit_self+set}" = set; then :
  7390. $as_echo_n "(cached) " >&6
  7391. else
  7392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7393. /* end confdefs.h. */
  7394. int
  7395. main ()
  7396. {
  7397. ;
  7398. return 0;
  7399. }
  7400. _ACEOF
  7401. if ac_fn_c_try_compile "$LINENO"; then :
  7402. ac_cv_gcc_Winit_self=yes
  7403. else
  7404. ac_cv_gcc_Winit_self=no
  7405. fi
  7406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7407. fi
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Winit_self" >&5
  7409. $as_echo "$ac_cv_gcc_Winit_self" >&6; }
  7410. CFLAGS="$SAVED_CFLAGS_AC"
  7411. unset SAVED_CFLAGS_AC
  7412. #
  7413. # $ac_cv_gcc_Winit_self is tested later to add the
  7414. # flag to CFLAGS.
  7415. #
  7416. esac
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
  7418. $as_echo_n "checking for bin subdirectory... " >&6; }
  7419. # Check whether --with-binsubdir was given.
  7420. if test "${with_binsubdir+set}" = set; then :
  7421. withval=$with_binsubdir; use_binsubdir="$withval"
  7422. else
  7423. use_binsubdir="bin"
  7424. fi
  7425. case "$use_binsubdir" in
  7426. bin)
  7427. ;;
  7428. sbin)
  7429. ;;
  7430. *)
  7431. as_fn_error "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
  7432. ;;
  7433. esac
  7434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
  7435. $as_echo "$use_binsubdir" >&6; }
  7436. BINSUBDIR=$use_binsubdir
  7437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use arlib" >&5
  7438. $as_echo_n "checking if we want to use arlib... " >&6; }
  7439. # Check whether --with-arlib was given.
  7440. if test "${with_arlib+set}" = set; then :
  7441. withval=$with_arlib; ans=$withval
  7442. else
  7443. ans=no
  7444. fi
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  7446. $as_echo "$ans" >&6; }
  7447. if test -d $srcdir/arlib
  7448. then
  7449. case "$ans" in
  7450. yes)
  7451. ARLIB_DIR=arlib
  7452. subdirs="$subdirs arlib"
  7453. ;;
  7454. esac
  7455. fi
  7456. # Check whether --with-rpath was given.
  7457. if test "${with_rpath+set}" = set; then :
  7458. withval=$with_rpath; ans=$withval
  7459. else
  7460. ans=x
  7461. fi
  7462. case "$ans" in
  7463. no)
  7464. need_dash_r=
  7465. ;;
  7466. yes)
  7467. need_dash_r=1
  7468. ;;
  7469. esac
  7470. # HMS: Why isn't this $build?
  7471. # Well, that depends on if we need this for the build toolchain or
  7472. # for info in the host executable...
  7473. # I still have no idea which way this should go, but nobody has complained.
  7474. case "$host" in
  7475. *-*-netbsd*)
  7476. case "$need_dash_r" in
  7477. no) ;;
  7478. *) need_dash_r=1
  7479. ;;
  7480. esac
  7481. ;;
  7482. *-*-solaris*)
  7483. case "$need_dash_r" in
  7484. no) ;;
  7485. *) need_dash_r=1
  7486. ;;
  7487. esac
  7488. ;;
  7489. esac
  7490. case "$build" in
  7491. $host)
  7492. ;;
  7493. *) case "$host" in
  7494. *-*-vxworks*)
  7495. # Quick and dirty sanity check
  7496. case "$VX_KERNEL" in
  7497. '') as_fn_error "Please follow the directions in html/build/hints/vxworks.html!" "$LINENO" 5
  7498. ;;
  7499. esac
  7500. CFLAGS="$CFLAGS -DSYS_VXWORKS"
  7501. ;;
  7502. esac
  7503. ;;
  7504. esac
  7505. for ac_prog in gawk mawk nawk awk
  7506. do
  7507. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7508. set dummy $ac_prog; ac_word=$2
  7509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7510. $as_echo_n "checking for $ac_word... " >&6; }
  7511. if test "${ac_cv_prog_AWK+set}" = set; then :
  7512. $as_echo_n "(cached) " >&6
  7513. else
  7514. if test -n "$AWK"; then
  7515. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  7516. else
  7517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7518. for as_dir in $PATH
  7519. do
  7520. IFS=$as_save_IFS
  7521. test -z "$as_dir" && as_dir=.
  7522. for ac_exec_ext in '' $ac_executable_extensions; do
  7523. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7524. ac_cv_prog_AWK="$ac_prog"
  7525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7526. break 2
  7527. fi
  7528. done
  7529. done
  7530. IFS=$as_save_IFS
  7531. fi
  7532. fi
  7533. AWK=$ac_cv_prog_AWK
  7534. if test -n "$AWK"; then
  7535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  7536. $as_echo "$AWK" >&6; }
  7537. else
  7538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7539. $as_echo "no" >&6; }
  7540. fi
  7541. test -n "$AWK" && break
  7542. done
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  7544. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  7545. set x ${MAKE-make}
  7546. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  7547. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  7548. $as_echo_n "(cached) " >&6
  7549. else
  7550. cat >conftest.make <<\_ACEOF
  7551. SHELL = /bin/sh
  7552. all:
  7553. @echo '@@@%%%=$(MAKE)=@@@%%%'
  7554. _ACEOF
  7555. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  7556. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  7557. *@@@%%%=?*=@@@%%%*)
  7558. eval ac_cv_prog_make_${ac_make}_set=yes;;
  7559. *)
  7560. eval ac_cv_prog_make_${ac_make}_set=no;;
  7561. esac
  7562. rm -f conftest.make
  7563. fi
  7564. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  7565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7566. $as_echo "yes" >&6; }
  7567. SET_MAKE=
  7568. else
  7569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7570. $as_echo "no" >&6; }
  7571. SET_MAKE="MAKE=${MAKE-make}"
  7572. fi
  7573. rm -f conftest*
  7574. case "$GCC" in
  7575. yes)
  7576. CFLAGS="$CFLAGS -Wall"
  7577. # CFLAGS="$CFLAGS -Wcast-align"
  7578. CFLAGS="$CFLAGS -Wcast-qual"
  7579. # CFLAGS="$CFLAGS -Wconversion"
  7580. # CFLAGS="$CFLAGS -Werror"
  7581. # CFLAGS="$CFLAGS -Wextra"
  7582. # CFLAGS="$CFLAGS -Wfloat-equal"
  7583. CFLAGS="$CFLAGS -Wmissing-prototypes"
  7584. CFLAGS="$CFLAGS -Wpointer-arith"
  7585. CFLAGS="$CFLAGS -Wshadow"
  7586. #
  7587. # OpenSSL has a number of callback prototypes
  7588. # inside other function prototypes which trigger
  7589. # warnings with -Wstrict-prototypes, such as:
  7590. #
  7591. # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
  7592. # int (*cb)(), int sgckey);
  7593. # ^^^^^^^^^^^
  7594. #
  7595. CFLAGS="$CFLAGS -Wno-strict-prototypes"
  7596. # CFLAGS="$CFLAGS -Wtraditional"
  7597. # CFLAGS="$CFLAGS -Wwrite-strings"
  7598. case "$ac_cv_gcc_Winit_self" in
  7599. yes)
  7600. CFLAGS="$CFLAGS -Winit-self"
  7601. esac
  7602. case "$ac_cv_gcc_Wstrict_overflow" in
  7603. yes)
  7604. #not yet: CFLAGS="$CFLAGS -Wstrict-overflow"
  7605. esac
  7606. ;;
  7607. esac
  7608. case "$host" in
  7609. *-next-nextstep3)
  7610. CFLAGS="$CFLAGS -posix"
  7611. ;;
  7612. esac
  7613. ac_busted_vpath_in_make=no
  7614. case "$build" in
  7615. *-*-irix6.1*) # 64 bit only
  7616. # busted vpath?
  7617. ;;
  7618. *-*-irix6*) # 6.2 (and later?)
  7619. ac_busted_vpath_in_make=yes
  7620. ;;
  7621. *-*-solaris2.5.1)
  7622. ac_busted_vpath_in_make=yes
  7623. ;;
  7624. *-*-unicosmp*)
  7625. ac_busted_vpath_in_make=yes
  7626. ;;
  7627. esac
  7628. case "$ac_busted_vpath_in_make$srcdir" in
  7629. no*) ;;
  7630. yes.) ;;
  7631. *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
  7632. '')
  7633. as_fn_error "building outside of the main directory requires GNU make" "$LINENO" 5
  7634. ;;
  7635. *) ;;
  7636. esac
  7637. ;;
  7638. esac
  7639. # Check whether --enable-static was given.
  7640. if test "${enable_static+set}" = set; then :
  7641. enableval=$enable_static; p=${PACKAGE-default}
  7642. case $enableval in
  7643. yes) enable_static=yes ;;
  7644. no) enable_static=no ;;
  7645. *)
  7646. enable_static=no
  7647. # Look at the argument we got. We use all the common list separators.
  7648. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7649. for pkg in $enableval; do
  7650. IFS="$lt_save_ifs"
  7651. if test "X$pkg" = "X$p"; then
  7652. enable_static=yes
  7653. fi
  7654. done
  7655. IFS="$lt_save_ifs"
  7656. ;;
  7657. esac
  7658. else
  7659. enable_static=yes
  7660. fi
  7661. # Check whether --enable-fast-install was given.
  7662. if test "${enable_fast_install+set}" = set; then :
  7663. enableval=$enable_fast_install; p=${PACKAGE-default}
  7664. case $enableval in
  7665. yes) enable_fast_install=yes ;;
  7666. no) enable_fast_install=no ;;
  7667. *)
  7668. enable_fast_install=no
  7669. # Look at the argument we got. We use all the common list separators.
  7670. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7671. for pkg in $enableval; do
  7672. IFS="$lt_save_ifs"
  7673. if test "X$pkg" = "X$p"; then
  7674. enable_fast_install=yes
  7675. fi
  7676. done
  7677. IFS="$lt_save_ifs"
  7678. ;;
  7679. esac
  7680. else
  7681. enable_fast_install=yes
  7682. fi
  7683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  7684. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  7685. if test "${lt_cv_path_SED+set}" = set; then :
  7686. $as_echo_n "(cached) " >&6
  7687. else
  7688. # Loop through the user's path and test for sed and gsed.
  7689. # Then use that list of sed's as ones to test for truncation.
  7690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7691. for as_dir in $PATH
  7692. do
  7693. IFS=$as_save_IFS
  7694. test -z "$as_dir" && as_dir=.
  7695. for lt_ac_prog in sed gsed; do
  7696. for ac_exec_ext in '' $ac_executable_extensions; do
  7697. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  7698. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7699. fi
  7700. done
  7701. done
  7702. done
  7703. lt_ac_max=0
  7704. lt_ac_count=0
  7705. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7706. # along with /bin/sed that truncates output.
  7707. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7708. test ! -f $lt_ac_sed && continue
  7709. cat /dev/null > conftest.in
  7710. lt_ac_count=0
  7711. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7712. # Check for GNU sed and select it if it is found.
  7713. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7714. lt_cv_path_SED=$lt_ac_sed
  7715. break
  7716. fi
  7717. while true; do
  7718. cat conftest.in conftest.in >conftest.tmp
  7719. mv conftest.tmp conftest.in
  7720. cp conftest.in conftest.nl
  7721. echo >>conftest.nl
  7722. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7723. cmp -s conftest.out conftest.nl || break
  7724. # 10000 chars as input seems more than enough
  7725. test $lt_ac_count -gt 10 && break
  7726. lt_ac_count=`expr $lt_ac_count + 1`
  7727. if test $lt_ac_count -gt $lt_ac_max; then
  7728. lt_ac_max=$lt_ac_count
  7729. lt_cv_path_SED=$lt_ac_sed
  7730. fi
  7731. done
  7732. done
  7733. fi
  7734. SED=$lt_cv_path_SED
  7735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  7736. $as_echo "$SED" >&6; }
  7737. # Check whether --with-gnu-ld was given.
  7738. if test "${with_gnu_ld+set}" = set; then :
  7739. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  7740. else
  7741. with_gnu_ld=no
  7742. fi
  7743. ac_prog=ld
  7744. if test "$GCC" = yes; then
  7745. # Check if gcc -print-prog-name=ld gives a path.
  7746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  7747. $as_echo_n "checking for ld used by $CC... " >&6; }
  7748. case $host in
  7749. *-*-mingw*)
  7750. # gcc leaves a trailing carriage return which upsets mingw
  7751. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7752. *)
  7753. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7754. esac
  7755. case $ac_prog in
  7756. # Accept absolute paths.
  7757. [\\/]* | ?:[\\/]*)
  7758. re_direlt='/[^/][^/]*/\.\./'
  7759. # Canonicalize the pathname of ld
  7760. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  7761. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  7762. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  7763. done
  7764. test -z "$LD" && LD="$ac_prog"
  7765. ;;
  7766. "")
  7767. # If it fails, then pretend we aren't using GCC.
  7768. ac_prog=ld
  7769. ;;
  7770. *)
  7771. # If it is relative, then search for the first ld in PATH.
  7772. with_gnu_ld=unknown
  7773. ;;
  7774. esac
  7775. elif test "$with_gnu_ld" = yes; then
  7776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  7777. $as_echo_n "checking for GNU ld... " >&6; }
  7778. else
  7779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  7780. $as_echo_n "checking for non-GNU ld... " >&6; }
  7781. fi
  7782. if test "${lt_cv_path_LD+set}" = set; then :
  7783. $as_echo_n "(cached) " >&6
  7784. else
  7785. if test -z "$LD"; then
  7786. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7787. for ac_dir in $PATH; do
  7788. IFS="$lt_save_ifs"
  7789. test -z "$ac_dir" && ac_dir=.
  7790. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7791. lt_cv_path_LD="$ac_dir/$ac_prog"
  7792. # Check to see if the program is GNU ld. I'd rather use --version,
  7793. # but apparently some variants of GNU ld only accept -v.
  7794. # Break only if it was the GNU/non-GNU ld that we prefer.
  7795. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  7796. *GNU* | *'with BFD'*)
  7797. test "$with_gnu_ld" != no && break
  7798. ;;
  7799. *)
  7800. test "$with_gnu_ld" != yes && break
  7801. ;;
  7802. esac
  7803. fi
  7804. done
  7805. IFS="$lt_save_ifs"
  7806. else
  7807. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  7808. fi
  7809. fi
  7810. LD="$lt_cv_path_LD"
  7811. if test -n "$LD"; then
  7812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7813. $as_echo "$LD" >&6; }
  7814. else
  7815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7816. $as_echo "no" >&6; }
  7817. fi
  7818. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  7819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  7820. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  7821. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  7822. $as_echo_n "(cached) " >&6
  7823. else
  7824. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  7825. case `$LD -v 2>&1 </dev/null` in
  7826. *GNU* | *'with BFD'*)
  7827. lt_cv_prog_gnu_ld=yes
  7828. ;;
  7829. *)
  7830. lt_cv_prog_gnu_ld=no
  7831. ;;
  7832. esac
  7833. fi
  7834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  7835. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  7836. with_gnu_ld=$lt_cv_prog_gnu_ld
  7837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7838. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  7839. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  7840. $as_echo_n "(cached) " >&6
  7841. else
  7842. lt_cv_ld_reload_flag='-r'
  7843. fi
  7844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7845. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  7846. reload_flag=$lt_cv_ld_reload_flag
  7847. case $reload_flag in
  7848. "" | " "*) ;;
  7849. *) reload_flag=" $reload_flag" ;;
  7850. esac
  7851. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7852. case $host_os in
  7853. darwin*)
  7854. if test "$GCC" = yes; then
  7855. reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  7856. else
  7857. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7858. fi
  7859. ;;
  7860. esac
  7861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
  7862. $as_echo_n "checking for BSD-compatible nm... " >&6; }
  7863. if test "${lt_cv_path_NM+set}" = set; then :
  7864. $as_echo_n "(cached) " >&6
  7865. else
  7866. if test -n "$NM"; then
  7867. # Let the user override the test.
  7868. lt_cv_path_NM="$NM"
  7869. else
  7870. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7871. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  7872. IFS="$lt_save_ifs"
  7873. test -z "$ac_dir" && ac_dir=.
  7874. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  7875. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  7876. # Check to see if the nm accepts a BSD-compat flag.
  7877. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  7878. # nm: unknown option "B" ignored
  7879. # Tru64's nm complains that /dev/null is an invalid object file
  7880. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  7881. */dev/null* | *'Invalid file or object type'*)
  7882. lt_cv_path_NM="$tmp_nm -B"
  7883. break
  7884. ;;
  7885. *)
  7886. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  7887. */dev/null*)
  7888. lt_cv_path_NM="$tmp_nm -p"
  7889. break
  7890. ;;
  7891. *)
  7892. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7893. continue # so that we can try to find one that supports BSD flags
  7894. ;;
  7895. esac
  7896. esac
  7897. fi
  7898. done
  7899. IFS="$lt_save_ifs"
  7900. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  7901. fi
  7902. fi
  7903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  7904. $as_echo "$lt_cv_path_NM" >&6; }
  7905. NM="$lt_cv_path_NM"
  7906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  7907. $as_echo_n "checking whether ln -s works... " >&6; }
  7908. LN_S=$as_ln_s
  7909. if test "$LN_S" = "ln -s"; then
  7910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7911. $as_echo "yes" >&6; }
  7912. else
  7913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  7914. $as_echo "no, using $LN_S" >&6; }
  7915. fi
  7916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
  7917. $as_echo_n "checking how to recognise dependent libraries... " >&6; }
  7918. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  7919. $as_echo_n "(cached) " >&6
  7920. else
  7921. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7922. lt_cv_file_magic_test_file=
  7923. lt_cv_deplibs_check_method='unknown'
  7924. # Need to set the preceding variable on all platforms that support
  7925. # interlibrary dependencies.
  7926. # 'none' -- dependencies not supported.
  7927. # `unknown' -- same as none, but documents that we really don't know.
  7928. # 'pass_all' -- all dependencies passed with no checks.
  7929. # 'test_compile' -- check by making test program.
  7930. # 'file_magic [[regex]]' -- check by looking for files in library path
  7931. # which responds to the $file_magic_cmd with a given extended regex.
  7932. # If you have `file' or equivalent on your system and you're not sure
  7933. # whether `pass_all' will *always* work, you probably want this one.
  7934. case $host_os in
  7935. aix4* | aix5*)
  7936. lt_cv_deplibs_check_method=pass_all
  7937. ;;
  7938. beos*)
  7939. lt_cv_deplibs_check_method=pass_all
  7940. ;;
  7941. bsdi[45]*)
  7942. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7943. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7944. lt_cv_file_magic_test_file=/shlib/libc.so
  7945. ;;
  7946. cygwin*)
  7947. # func_win32_libid is a shell function defined in ltmain.sh
  7948. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7949. lt_cv_file_magic_cmd='func_win32_libid'
  7950. ;;
  7951. mingw* | pw32*)
  7952. # Base MSYS/MinGW do not provide the 'file' command needed by
  7953. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  7954. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  7955. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7956. ;;
  7957. darwin* | rhapsody*)
  7958. lt_cv_deplibs_check_method=pass_all
  7959. ;;
  7960. freebsd* | kfreebsd*-gnu | dragonfly*)
  7961. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  7962. case $host_cpu in
  7963. i*86 )
  7964. # Not sure whether the presence of OpenBSD here was a mistake.
  7965. # Let's accept both of them until this is cleared up.
  7966. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7967. lt_cv_file_magic_cmd=/usr/bin/file
  7968. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7969. ;;
  7970. esac
  7971. else
  7972. lt_cv_deplibs_check_method=pass_all
  7973. fi
  7974. ;;
  7975. gnu*)
  7976. lt_cv_deplibs_check_method=pass_all
  7977. ;;
  7978. hpux10.20* | hpux11*)
  7979. lt_cv_file_magic_cmd=/usr/bin/file
  7980. case $host_cpu in
  7981. ia64*)
  7982. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7983. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7984. ;;
  7985. hppa*64*)
  7986. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  7987. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7988. ;;
  7989. *)
  7990. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  7991. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7992. ;;
  7993. esac
  7994. ;;
  7995. irix5* | irix6* | nonstopux*)
  7996. case $LD in
  7997. *-32|*"-32 ") libmagic=32-bit;;
  7998. *-n32|*"-n32 ") libmagic=N32;;
  7999. *-64|*"-64 ") libmagic=64-bit;;
  8000. *) libmagic=never-match;;
  8001. esac
  8002. lt_cv_deplibs_check_method=pass_all
  8003. ;;
  8004. # This must be Linux ELF.
  8005. linux*)
  8006. lt_cv_deplibs_check_method=pass_all
  8007. ;;
  8008. netbsd*)
  8009. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  8010. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8011. else
  8012. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  8013. fi
  8014. ;;
  8015. newos6*)
  8016. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  8017. lt_cv_file_magic_cmd=/usr/bin/file
  8018. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  8019. ;;
  8020. nto-qnx*)
  8021. lt_cv_deplibs_check_method=unknown
  8022. ;;
  8023. openbsd*)
  8024. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8025. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  8026. else
  8027. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8028. fi
  8029. ;;
  8030. osf3* | osf4* | osf5*)
  8031. lt_cv_deplibs_check_method=pass_all
  8032. ;;
  8033. sco3.2v5*)
  8034. lt_cv_deplibs_check_method=pass_all
  8035. ;;
  8036. solaris*)
  8037. lt_cv_deplibs_check_method=pass_all
  8038. ;;
  8039. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8040. case $host_vendor in
  8041. motorola)
  8042. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  8043. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  8044. ;;
  8045. ncr)
  8046. lt_cv_deplibs_check_method=pass_all
  8047. ;;
  8048. sequent)
  8049. lt_cv_file_magic_cmd='/bin/file'
  8050. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  8051. ;;
  8052. sni)
  8053. lt_cv_file_magic_cmd='/bin/file'
  8054. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  8055. lt_cv_file_magic_test_file=/lib/libc.so
  8056. ;;
  8057. siemens)
  8058. lt_cv_deplibs_check_method=pass_all
  8059. ;;
  8060. esac
  8061. ;;
  8062. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  8063. lt_cv_deplibs_check_method=pass_all
  8064. ;;
  8065. esac
  8066. fi
  8067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  8068. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  8069. file_magic_cmd=$lt_cv_file_magic_cmd
  8070. deplibs_check_method=$lt_cv_deplibs_check_method
  8071. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  8072. # If no C compiler was specified, use CC.
  8073. LTCC=${LTCC-"$CC"}
  8074. # Allow CC to be a program name with arguments.
  8075. compiler=$CC
  8076. # Check whether --enable-libtool-lock was given.
  8077. if test "${enable_libtool_lock+set}" = set; then :
  8078. enableval=$enable_libtool_lock;
  8079. fi
  8080. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8081. # Some flags need to be propagated to the compiler or linker for good
  8082. # libtool support.
  8083. case $host in
  8084. ia64-*-hpux*)
  8085. # Find out which ABI we are using.
  8086. echo 'int i;' > conftest.$ac_ext
  8087. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8088. (eval $ac_compile) 2>&5
  8089. ac_status=$?
  8090. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8091. test $ac_status = 0; }; then
  8092. case `/usr/bin/file conftest.$ac_objext` in
  8093. *ELF-32*)
  8094. HPUX_IA64_MODE="32"
  8095. ;;
  8096. *ELF-64*)
  8097. HPUX_IA64_MODE="64"
  8098. ;;
  8099. esac
  8100. fi
  8101. rm -rf conftest*
  8102. ;;
  8103. *-*-irix6*)
  8104. # Find out which ABI we are using.
  8105. echo '#line 9126 "configure"' > conftest.$ac_ext
  8106. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8107. (eval $ac_compile) 2>&5
  8108. ac_status=$?
  8109. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8110. test $ac_status = 0; }; then
  8111. if test "$lt_cv_prog_gnu_ld" = yes; then
  8112. case `/usr/bin/file conftest.$ac_objext` in
  8113. *32-bit*)
  8114. LD="${LD-ld} -melf32bsmip"
  8115. ;;
  8116. *N32*)
  8117. LD="${LD-ld} -melf32bmipn32"
  8118. ;;
  8119. *64-bit*)
  8120. LD="${LD-ld} -melf64bmip"
  8121. ;;
  8122. esac
  8123. else
  8124. case `/usr/bin/file conftest.$ac_objext` in
  8125. *32-bit*)
  8126. LD="${LD-ld} -32"
  8127. ;;
  8128. *N32*)
  8129. LD="${LD-ld} -n32"
  8130. ;;
  8131. *64-bit*)
  8132. LD="${LD-ld} -64"
  8133. ;;
  8134. esac
  8135. fi
  8136. fi
  8137. rm -rf conftest*
  8138. ;;
  8139. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  8140. # Find out which ABI we are using.
  8141. echo 'int i;' > conftest.$ac_ext
  8142. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8143. (eval $ac_compile) 2>&5
  8144. ac_status=$?
  8145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8146. test $ac_status = 0; }; then
  8147. case `/usr/bin/file conftest.o` in
  8148. *32-bit*)
  8149. case $host in
  8150. x86_64-*linux*)
  8151. LD="${LD-ld} -m elf_i386"
  8152. ;;
  8153. ppc64-*linux*|powerpc64-*linux*)
  8154. LD="${LD-ld} -m elf32ppclinux"
  8155. ;;
  8156. s390x-*linux*)
  8157. LD="${LD-ld} -m elf_s390"
  8158. ;;
  8159. sparc64-*linux*)
  8160. LD="${LD-ld} -m elf32_sparc"
  8161. ;;
  8162. esac
  8163. ;;
  8164. *64-bit*)
  8165. case $host in
  8166. x86_64-*linux*)
  8167. LD="${LD-ld} -m elf_x86_64"
  8168. ;;
  8169. ppc*-*linux*|powerpc*-*linux*)
  8170. LD="${LD-ld} -m elf64ppc"
  8171. ;;
  8172. s390*-*linux*)
  8173. LD="${LD-ld} -m elf64_s390"
  8174. ;;
  8175. sparc*-*linux*)
  8176. LD="${LD-ld} -m elf64_sparc"
  8177. ;;
  8178. esac
  8179. ;;
  8180. esac
  8181. fi
  8182. rm -rf conftest*
  8183. ;;
  8184. *-*-sco3.2v5*)
  8185. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8186. SAVE_CFLAGS="$CFLAGS"
  8187. CFLAGS="$CFLAGS -belf"
  8188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  8189. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  8190. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  8191. $as_echo_n "(cached) " >&6
  8192. else
  8193. ac_ext=c
  8194. ac_cpp='$CPP $CPPFLAGS'
  8195. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8196. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8197. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8199. /* end confdefs.h. */
  8200. int
  8201. main ()
  8202. {
  8203. ;
  8204. return 0;
  8205. }
  8206. _ACEOF
  8207. if ac_fn_c_try_link "$LINENO"; then :
  8208. lt_cv_cc_needs_belf=yes
  8209. else
  8210. lt_cv_cc_needs_belf=no
  8211. fi
  8212. rm -f core conftest.err conftest.$ac_objext \
  8213. conftest$ac_exeext conftest.$ac_ext
  8214. ac_ext=c
  8215. ac_cpp='$CPP $CPPFLAGS'
  8216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8219. fi
  8220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  8221. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  8222. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  8223. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8224. CFLAGS="$SAVE_CFLAGS"
  8225. fi
  8226. ;;
  8227. esac
  8228. need_locks="$enable_libtool_lock"
  8229. for ac_header in dlfcn.h
  8230. do :
  8231. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  8232. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  8233. cat >>confdefs.h <<_ACEOF
  8234. #define HAVE_DLFCN_H 1
  8235. _ACEOF
  8236. fi
  8237. done
  8238. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  8239. # find the maximum length of command line arguments
  8240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  8241. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  8242. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  8243. $as_echo_n "(cached) " >&6
  8244. else
  8245. i=0
  8246. teststring="ABCD"
  8247. case $build_os in
  8248. msdosdjgpp*)
  8249. # On DJGPP, this test can blow up pretty badly due to problems in libc
  8250. # (any single argument exceeding 2000 bytes causes a buffer overrun
  8251. # during glob expansion). Even if it were fixed, the result of this
  8252. # check would be larger than it should be.
  8253. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  8254. ;;
  8255. gnu*)
  8256. # Under GNU Hurd, this test is not required because there is
  8257. # no limit to the length of command line arguments.
  8258. # Libtool will interpret -1 as no limit whatsoever
  8259. lt_cv_sys_max_cmd_len=-1;
  8260. ;;
  8261. cygwin* | mingw*)
  8262. # On Win9x/ME, this test blows up -- it succeeds, but takes
  8263. # about 5 minutes as the teststring grows exponentially.
  8264. # Worse, since 9x/ME are not pre-emptively multitasking,
  8265. # you end up with a "frozen" computer, even though with patience
  8266. # the test eventually succeeds (with a max line length of 256k).
  8267. # Instead, let's just punt: use the minimum linelength reported by
  8268. # all of the supported platforms: 8192 (on NT/2K/XP).
  8269. lt_cv_sys_max_cmd_len=8192;
  8270. ;;
  8271. amigaos*)
  8272. # On AmigaOS with pdksh, this test takes hours, literally.
  8273. # So we just punt and use a minimum line length of 8192.
  8274. lt_cv_sys_max_cmd_len=8192;
  8275. ;;
  8276. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  8277. # This has been around since 386BSD, at least. Likely further.
  8278. if test -x /sbin/sysctl; then
  8279. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  8280. elif test -x /usr/sbin/sysctl; then
  8281. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  8282. else
  8283. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  8284. fi
  8285. # And add a safety zone
  8286. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  8287. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  8288. ;;
  8289. osf*)
  8290. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  8291. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  8292. # nice to cause kernel panics so lets avoid the loop below.
  8293. # First set a reasonable default.
  8294. lt_cv_sys_max_cmd_len=16384
  8295. #
  8296. if test -x /sbin/sysconfig; then
  8297. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  8298. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  8299. esac
  8300. fi
  8301. ;;
  8302. *)
  8303. # If test is not a shell built-in, we'll probably end up computing a
  8304. # maximum length that is only half of the actual maximum length, but
  8305. # we can't tell.
  8306. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  8307. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  8308. = "XX$teststring") >/dev/null 2>&1 &&
  8309. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  8310. lt_cv_sys_max_cmd_len=$new_result &&
  8311. test $i != 17 # 1/2 MB should be enough
  8312. do
  8313. i=`expr $i + 1`
  8314. teststring=$teststring$teststring
  8315. done
  8316. teststring=
  8317. # Add a significant safety factor because C++ compilers can tack on massive
  8318. # amounts of additional arguments before passing them to the linker.
  8319. # It appears as though 1/2 is a usable value.
  8320. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  8321. ;;
  8322. esac
  8323. fi
  8324. if test -n $lt_cv_sys_max_cmd_len ; then
  8325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  8326. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  8327. else
  8328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  8329. $as_echo "none" >&6; }
  8330. fi
  8331. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  8333. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  8334. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  8335. $as_echo_n "(cached) " >&6
  8336. else
  8337. # These are sane defaults that work on at least a few old systems.
  8338. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8339. # Character class describing NM global symbol codes.
  8340. symcode='[BCDEGRST]'
  8341. # Regexp to match symbols that can be accessed directly from C.
  8342. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8343. # Transform an extracted symbol line into a proper C declaration
  8344. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  8345. # Transform an extracted symbol line into symbol name and symbol address
  8346. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8347. # Define system-specific variables.
  8348. case $host_os in
  8349. aix*)
  8350. symcode='[BCDT]'
  8351. ;;
  8352. cygwin* | mingw* | pw32*)
  8353. symcode='[ABCDGISTW]'
  8354. ;;
  8355. hpux*) # Its linker distinguishes data from code symbols
  8356. if test "$host_cpu" = ia64; then
  8357. symcode='[ABCDEGRST]'
  8358. fi
  8359. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8360. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8361. ;;
  8362. linux*)
  8363. if test "$host_cpu" = ia64; then
  8364. symcode='[ABCDGIRSTW]'
  8365. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8366. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8367. fi
  8368. ;;
  8369. irix* | nonstopux*)
  8370. symcode='[BCDEGRST]'
  8371. ;;
  8372. osf*)
  8373. symcode='[BCDEGQRST]'
  8374. ;;
  8375. solaris* | sysv5*)
  8376. symcode='[BDRT]'
  8377. ;;
  8378. sysv4)
  8379. symcode='[DFNSTU]'
  8380. ;;
  8381. esac
  8382. # Handle CRLF in mingw tool chain
  8383. opt_cr=
  8384. case $build_os in
  8385. mingw*)
  8386. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8387. ;;
  8388. esac
  8389. # If we're using GNU nm, then use its standard symbol codes.
  8390. case `$NM -V 2>&1` in
  8391. *GNU* | *'with BFD'*)
  8392. symcode='[ABCDGIRSTW]' ;;
  8393. esac
  8394. # Try without a prefix undercore, then with it.
  8395. for ac_symprfx in "" "_"; do
  8396. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8397. symxfrm="\\1 $ac_symprfx\\2 \\2"
  8398. # Write the raw and C identifiers.
  8399. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8400. # Check to see that the pipe works correctly.
  8401. pipe_works=no
  8402. rm -f conftest*
  8403. cat > conftest.$ac_ext <<EOF
  8404. #ifdef __cplusplus
  8405. extern "C" {
  8406. #endif
  8407. char nm_test_var;
  8408. void nm_test_func(){}
  8409. #ifdef __cplusplus
  8410. }
  8411. #endif
  8412. int main(){nm_test_var='a';nm_test_func();return(0);}
  8413. EOF
  8414. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8415. (eval $ac_compile) 2>&5
  8416. ac_status=$?
  8417. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8418. test $ac_status = 0; }; then
  8419. # Now try to grab the symbols.
  8420. nlist=conftest.nm
  8421. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  8422. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  8423. ac_status=$?
  8424. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8425. test $ac_status = 0; } && test -s "$nlist"; then
  8426. # Try sorting and uniquifying the output.
  8427. if sort "$nlist" | uniq > "$nlist"T; then
  8428. mv -f "$nlist"T "$nlist"
  8429. else
  8430. rm -f "$nlist"T
  8431. fi
  8432. # Make sure that we snagged all the symbols we need.
  8433. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  8434. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  8435. cat <<EOF > conftest.$ac_ext
  8436. #ifdef __cplusplus
  8437. extern "C" {
  8438. #endif
  8439. EOF
  8440. # Now generate the symbol file.
  8441. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  8442. cat <<EOF >> conftest.$ac_ext
  8443. #if defined (__STDC__) && __STDC__
  8444. # define lt_ptr_t void *
  8445. #else
  8446. # define lt_ptr_t char *
  8447. # define const
  8448. #endif
  8449. /* The mapping between symbol names and symbols. */
  8450. const struct {
  8451. const char *name;
  8452. lt_ptr_t address;
  8453. }
  8454. lt_preloaded_symbols[] =
  8455. {
  8456. EOF
  8457. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  8458. cat <<\EOF >> conftest.$ac_ext
  8459. {0, (lt_ptr_t) 0}
  8460. };
  8461. #ifdef __cplusplus
  8462. }
  8463. #endif
  8464. EOF
  8465. # Now try linking the two files.
  8466. mv conftest.$ac_objext conftstm.$ac_objext
  8467. lt_save_LIBS="$LIBS"
  8468. lt_save_CFLAGS="$CFLAGS"
  8469. LIBS="conftstm.$ac_objext"
  8470. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8471. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8472. (eval $ac_link) 2>&5
  8473. ac_status=$?
  8474. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8475. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  8476. pipe_works=yes
  8477. fi
  8478. LIBS="$lt_save_LIBS"
  8479. CFLAGS="$lt_save_CFLAGS"
  8480. else
  8481. echo "cannot find nm_test_func in $nlist" >&5
  8482. fi
  8483. else
  8484. echo "cannot find nm_test_var in $nlist" >&5
  8485. fi
  8486. else
  8487. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8488. fi
  8489. else
  8490. echo "$progname: failed program was:" >&5
  8491. cat conftest.$ac_ext >&5
  8492. fi
  8493. rm -f conftest* conftst*
  8494. # Do not use the global_symbol_pipe unless it works.
  8495. if test "$pipe_works" = yes; then
  8496. break
  8497. else
  8498. lt_cv_sys_global_symbol_pipe=
  8499. fi
  8500. done
  8501. fi
  8502. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8503. lt_cv_sys_global_symbol_to_cdecl=
  8504. fi
  8505. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  8507. $as_echo "failed" >&6; }
  8508. else
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  8510. $as_echo "ok" >&6; }
  8511. fi
  8512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8513. $as_echo_n "checking for objdir... " >&6; }
  8514. if test "${lt_cv_objdir+set}" = set; then :
  8515. $as_echo_n "(cached) " >&6
  8516. else
  8517. rm -f .libs 2>/dev/null
  8518. mkdir .libs 2>/dev/null
  8519. if test -d .libs; then
  8520. lt_cv_objdir=.libs
  8521. else
  8522. # MS-DOS does not allow filenames that begin with a dot.
  8523. lt_cv_objdir=_libs
  8524. fi
  8525. rmdir .libs 2>/dev/null
  8526. fi
  8527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8528. $as_echo "$lt_cv_objdir" >&6; }
  8529. objdir=$lt_cv_objdir
  8530. case $host_os in
  8531. aix3*)
  8532. # AIX sometimes has problems with the GCC collect2 program. For some
  8533. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8534. # vanish in a puff of smoke.
  8535. if test "X${COLLECT_NAMES+set}" != Xset; then
  8536. COLLECT_NAMES=
  8537. export COLLECT_NAMES
  8538. fi
  8539. ;;
  8540. esac
  8541. # Sed substitution that helps us do robust quoting. It backslashifies
  8542. # metacharacters that are still active within double-quoted strings.
  8543. Xsed='sed -e 1s/^X//'
  8544. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  8545. # Same as above, but do not quote variable references.
  8546. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  8547. # Sed substitution to delay expansion of an escaped shell variable in a
  8548. # double_quote_subst'ed string.
  8549. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  8550. # Sed substitution to avoid accidental globbing in evaled expressions
  8551. no_glob_subst='s/\*/\\\*/g'
  8552. # Constants:
  8553. rm="rm -f"
  8554. # Global variables:
  8555. default_ofile=libtool
  8556. can_build_shared=yes
  8557. # All known linkers require a `.a' archive for static linking (except MSVC,
  8558. # which needs '.lib').
  8559. libext=a
  8560. ltmain="$ac_aux_dir/ltmain.sh"
  8561. ofile="$default_ofile"
  8562. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8563. if test -n "$ac_tool_prefix"; then
  8564. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  8565. set dummy ${ac_tool_prefix}ar; ac_word=$2
  8566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8567. $as_echo_n "checking for $ac_word... " >&6; }
  8568. if test "${ac_cv_prog_AR+set}" = set; then :
  8569. $as_echo_n "(cached) " >&6
  8570. else
  8571. if test -n "$AR"; then
  8572. ac_cv_prog_AR="$AR" # Let the user override the test.
  8573. else
  8574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8575. for as_dir in $PATH
  8576. do
  8577. IFS=$as_save_IFS
  8578. test -z "$as_dir" && as_dir=.
  8579. for ac_exec_ext in '' $ac_executable_extensions; do
  8580. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8581. ac_cv_prog_AR="${ac_tool_prefix}ar"
  8582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8583. break 2
  8584. fi
  8585. done
  8586. done
  8587. IFS=$as_save_IFS
  8588. fi
  8589. fi
  8590. AR=$ac_cv_prog_AR
  8591. if test -n "$AR"; then
  8592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  8593. $as_echo "$AR" >&6; }
  8594. else
  8595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8596. $as_echo "no" >&6; }
  8597. fi
  8598. fi
  8599. if test -z "$ac_cv_prog_AR"; then
  8600. ac_ct_AR=$AR
  8601. # Extract the first word of "ar", so it can be a program name with args.
  8602. set dummy ar; ac_word=$2
  8603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8604. $as_echo_n "checking for $ac_word... " >&6; }
  8605. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  8606. $as_echo_n "(cached) " >&6
  8607. else
  8608. if test -n "$ac_ct_AR"; then
  8609. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8610. else
  8611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8612. for as_dir in $PATH
  8613. do
  8614. IFS=$as_save_IFS
  8615. test -z "$as_dir" && as_dir=.
  8616. for ac_exec_ext in '' $ac_executable_extensions; do
  8617. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8618. ac_cv_prog_ac_ct_AR="ar"
  8619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8620. break 2
  8621. fi
  8622. done
  8623. done
  8624. IFS=$as_save_IFS
  8625. fi
  8626. fi
  8627. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8628. if test -n "$ac_ct_AR"; then
  8629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  8630. $as_echo "$ac_ct_AR" >&6; }
  8631. else
  8632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8633. $as_echo "no" >&6; }
  8634. fi
  8635. if test "x$ac_ct_AR" = x; then
  8636. AR="false"
  8637. else
  8638. case $cross_compiling:$ac_tool_warned in
  8639. yes:)
  8640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8641. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8642. ac_tool_warned=yes ;;
  8643. esac
  8644. AR=$ac_ct_AR
  8645. fi
  8646. else
  8647. AR="$ac_cv_prog_AR"
  8648. fi
  8649. if test -n "$ac_tool_prefix"; then
  8650. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8651. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8653. $as_echo_n "checking for $ac_word... " >&6; }
  8654. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  8655. $as_echo_n "(cached) " >&6
  8656. else
  8657. if test -n "$RANLIB"; then
  8658. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8659. else
  8660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8661. for as_dir in $PATH
  8662. do
  8663. IFS=$as_save_IFS
  8664. test -z "$as_dir" && as_dir=.
  8665. for ac_exec_ext in '' $ac_executable_extensions; do
  8666. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8667. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8669. break 2
  8670. fi
  8671. done
  8672. done
  8673. IFS=$as_save_IFS
  8674. fi
  8675. fi
  8676. RANLIB=$ac_cv_prog_RANLIB
  8677. if test -n "$RANLIB"; then
  8678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8679. $as_echo "$RANLIB" >&6; }
  8680. else
  8681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8682. $as_echo "no" >&6; }
  8683. fi
  8684. fi
  8685. if test -z "$ac_cv_prog_RANLIB"; then
  8686. ac_ct_RANLIB=$RANLIB
  8687. # Extract the first word of "ranlib", so it can be a program name with args.
  8688. set dummy ranlib; ac_word=$2
  8689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8690. $as_echo_n "checking for $ac_word... " >&6; }
  8691. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  8692. $as_echo_n "(cached) " >&6
  8693. else
  8694. if test -n "$ac_ct_RANLIB"; then
  8695. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8696. else
  8697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8698. for as_dir in $PATH
  8699. do
  8700. IFS=$as_save_IFS
  8701. test -z "$as_dir" && as_dir=.
  8702. for ac_exec_ext in '' $ac_executable_extensions; do
  8703. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8704. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8706. break 2
  8707. fi
  8708. done
  8709. done
  8710. IFS=$as_save_IFS
  8711. fi
  8712. fi
  8713. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8714. if test -n "$ac_ct_RANLIB"; then
  8715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  8716. $as_echo "$ac_ct_RANLIB" >&6; }
  8717. else
  8718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8719. $as_echo "no" >&6; }
  8720. fi
  8721. if test "x$ac_ct_RANLIB" = x; then
  8722. RANLIB=":"
  8723. else
  8724. case $cross_compiling:$ac_tool_warned in
  8725. yes:)
  8726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8727. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8728. ac_tool_warned=yes ;;
  8729. esac
  8730. RANLIB=$ac_ct_RANLIB
  8731. fi
  8732. else
  8733. RANLIB="$ac_cv_prog_RANLIB"
  8734. fi
  8735. if test -n "$ac_tool_prefix"; then
  8736. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8737. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8739. $as_echo_n "checking for $ac_word... " >&6; }
  8740. if test "${ac_cv_prog_STRIP+set}" = set; then :
  8741. $as_echo_n "(cached) " >&6
  8742. else
  8743. if test -n "$STRIP"; then
  8744. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8745. else
  8746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8747. for as_dir in $PATH
  8748. do
  8749. IFS=$as_save_IFS
  8750. test -z "$as_dir" && as_dir=.
  8751. for ac_exec_ext in '' $ac_executable_extensions; do
  8752. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8753. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8755. break 2
  8756. fi
  8757. done
  8758. done
  8759. IFS=$as_save_IFS
  8760. fi
  8761. fi
  8762. STRIP=$ac_cv_prog_STRIP
  8763. if test -n "$STRIP"; then
  8764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8765. $as_echo "$STRIP" >&6; }
  8766. else
  8767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8768. $as_echo "no" >&6; }
  8769. fi
  8770. fi
  8771. if test -z "$ac_cv_prog_STRIP"; then
  8772. ac_ct_STRIP=$STRIP
  8773. # Extract the first word of "strip", so it can be a program name with args.
  8774. set dummy strip; ac_word=$2
  8775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8776. $as_echo_n "checking for $ac_word... " >&6; }
  8777. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  8778. $as_echo_n "(cached) " >&6
  8779. else
  8780. if test -n "$ac_ct_STRIP"; then
  8781. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8782. else
  8783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8784. for as_dir in $PATH
  8785. do
  8786. IFS=$as_save_IFS
  8787. test -z "$as_dir" && as_dir=.
  8788. for ac_exec_ext in '' $ac_executable_extensions; do
  8789. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8790. ac_cv_prog_ac_ct_STRIP="strip"
  8791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8792. break 2
  8793. fi
  8794. done
  8795. done
  8796. IFS=$as_save_IFS
  8797. fi
  8798. fi
  8799. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8800. if test -n "$ac_ct_STRIP"; then
  8801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  8802. $as_echo "$ac_ct_STRIP" >&6; }
  8803. else
  8804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8805. $as_echo "no" >&6; }
  8806. fi
  8807. if test "x$ac_ct_STRIP" = x; then
  8808. STRIP=":"
  8809. else
  8810. case $cross_compiling:$ac_tool_warned in
  8811. yes:)
  8812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8813. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8814. ac_tool_warned=yes ;;
  8815. esac
  8816. STRIP=$ac_ct_STRIP
  8817. fi
  8818. else
  8819. STRIP="$ac_cv_prog_STRIP"
  8820. fi
  8821. old_CC="$CC"
  8822. old_CFLAGS="$CFLAGS"
  8823. # Set sane defaults for various variables
  8824. test -z "$AR" && AR=ar
  8825. test -z "$AR_FLAGS" && AR_FLAGS=cru
  8826. test -z "$AS" && AS=as
  8827. test -z "$CC" && CC=cc
  8828. test -z "$LTCC" && LTCC=$CC
  8829. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8830. test -z "$LD" && LD=ld
  8831. test -z "$LN_S" && LN_S="ln -s"
  8832. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8833. test -z "$NM" && NM=nm
  8834. test -z "$SED" && SED=sed
  8835. test -z "$OBJDUMP" && OBJDUMP=objdump
  8836. test -z "$RANLIB" && RANLIB=:
  8837. test -z "$STRIP" && STRIP=:
  8838. test -z "$ac_objext" && ac_objext=o
  8839. # Determine commands to create old-style static archives.
  8840. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  8841. old_postinstall_cmds='chmod 644 $oldlib'
  8842. old_postuninstall_cmds=
  8843. if test -n "$RANLIB"; then
  8844. case $host_os in
  8845. openbsd*)
  8846. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  8847. ;;
  8848. *)
  8849. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  8850. ;;
  8851. esac
  8852. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  8853. fi
  8854. for cc_temp in $compiler""; do
  8855. case $cc_temp in
  8856. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8857. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8858. \-*) ;;
  8859. *) break;;
  8860. esac
  8861. done
  8862. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8863. # Only perform the check for file, if the check method requires it
  8864. case $deplibs_check_method in
  8865. file_magic*)
  8866. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8868. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8869. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  8870. $as_echo_n "(cached) " >&6
  8871. else
  8872. case $MAGIC_CMD in
  8873. [\\/*] | ?:[\\/]*)
  8874. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8875. ;;
  8876. *)
  8877. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8878. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8879. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8880. for ac_dir in $ac_dummy; do
  8881. IFS="$lt_save_ifs"
  8882. test -z "$ac_dir" && ac_dir=.
  8883. if test -f $ac_dir/${ac_tool_prefix}file; then
  8884. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8885. if test -n "$file_magic_test_file"; then
  8886. case $deplibs_check_method in
  8887. "file_magic "*)
  8888. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8889. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8890. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8891. $EGREP "$file_magic_regex" > /dev/null; then
  8892. :
  8893. else
  8894. cat <<EOF 1>&2
  8895. *** Warning: the command libtool uses to detect shared libraries,
  8896. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8897. *** The result is that libtool may fail to recognize shared libraries
  8898. *** as such. This will affect the creation of libtool libraries that
  8899. *** depend on shared libraries, but programs linked with such libtool
  8900. *** libraries will work regardless of this problem. Nevertheless, you
  8901. *** may want to report the problem to your system manager and/or to
  8902. *** bug-libtool@gnu.org
  8903. EOF
  8904. fi ;;
  8905. esac
  8906. fi
  8907. break
  8908. fi
  8909. done
  8910. IFS="$lt_save_ifs"
  8911. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8912. ;;
  8913. esac
  8914. fi
  8915. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8916. if test -n "$MAGIC_CMD"; then
  8917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8918. $as_echo "$MAGIC_CMD" >&6; }
  8919. else
  8920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8921. $as_echo "no" >&6; }
  8922. fi
  8923. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8924. if test -n "$ac_tool_prefix"; then
  8925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8926. $as_echo_n "checking for file... " >&6; }
  8927. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  8928. $as_echo_n "(cached) " >&6
  8929. else
  8930. case $MAGIC_CMD in
  8931. [\\/*] | ?:[\\/]*)
  8932. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8933. ;;
  8934. *)
  8935. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8936. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8937. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8938. for ac_dir in $ac_dummy; do
  8939. IFS="$lt_save_ifs"
  8940. test -z "$ac_dir" && ac_dir=.
  8941. if test -f $ac_dir/file; then
  8942. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8943. if test -n "$file_magic_test_file"; then
  8944. case $deplibs_check_method in
  8945. "file_magic "*)
  8946. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8947. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8948. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8949. $EGREP "$file_magic_regex" > /dev/null; then
  8950. :
  8951. else
  8952. cat <<EOF 1>&2
  8953. *** Warning: the command libtool uses to detect shared libraries,
  8954. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8955. *** The result is that libtool may fail to recognize shared libraries
  8956. *** as such. This will affect the creation of libtool libraries that
  8957. *** depend on shared libraries, but programs linked with such libtool
  8958. *** libraries will work regardless of this problem. Nevertheless, you
  8959. *** may want to report the problem to your system manager and/or to
  8960. *** bug-libtool@gnu.org
  8961. EOF
  8962. fi ;;
  8963. esac
  8964. fi
  8965. break
  8966. fi
  8967. done
  8968. IFS="$lt_save_ifs"
  8969. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8970. ;;
  8971. esac
  8972. fi
  8973. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8974. if test -n "$MAGIC_CMD"; then
  8975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8976. $as_echo "$MAGIC_CMD" >&6; }
  8977. else
  8978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8979. $as_echo "no" >&6; }
  8980. fi
  8981. else
  8982. MAGIC_CMD=:
  8983. fi
  8984. fi
  8985. fi
  8986. ;;
  8987. esac
  8988. enable_dlopen=no
  8989. enable_win32_dll=no
  8990. # Check whether --enable-libtool-lock was given.
  8991. if test "${enable_libtool_lock+set}" = set; then :
  8992. enableval=$enable_libtool_lock;
  8993. fi
  8994. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8995. # Check whether --with-pic was given.
  8996. if test "${with_pic+set}" = set; then :
  8997. withval=$with_pic; pic_mode="$withval"
  8998. else
  8999. pic_mode=default
  9000. fi
  9001. test -z "$pic_mode" && pic_mode=default
  9002. # Use C for the default configuration in the libtool script
  9003. tagname=
  9004. lt_save_CC="$CC"
  9005. ac_ext=c
  9006. ac_cpp='$CPP $CPPFLAGS'
  9007. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9008. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9009. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9010. # Source file extension for C test sources.
  9011. ac_ext=c
  9012. # Object file extension for compiled C test sources.
  9013. objext=o
  9014. objext=$objext
  9015. # Code to be used in simple compile tests
  9016. lt_simple_compile_test_code="int some_variable = 0;\n"
  9017. # Code to be used in simple link tests
  9018. lt_simple_link_test_code='int main(){return(0);}\n'
  9019. # If no C compiler was specified, use CC.
  9020. LTCC=${LTCC-"$CC"}
  9021. # Allow CC to be a program name with arguments.
  9022. compiler=$CC
  9023. # save warnings/boilerplate of simple test code
  9024. ac_outfile=conftest.$ac_objext
  9025. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9026. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  9027. _lt_compiler_boilerplate=`cat conftest.err`
  9028. $rm conftest*
  9029. ac_outfile=conftest.$ac_objext
  9030. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9031. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  9032. _lt_linker_boilerplate=`cat conftest.err`
  9033. $rm conftest*
  9034. #
  9035. # Check for any special shared library compilation flags.
  9036. #
  9037. lt_prog_cc_shlib=
  9038. if test "$GCC" = no; then
  9039. case $host_os in
  9040. sco3.2v5*)
  9041. lt_prog_cc_shlib='-belf'
  9042. ;;
  9043. esac
  9044. fi
  9045. if test -n "$lt_prog_cc_shlib"; then
  9046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  9047. $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  9048. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  9049. else
  9050. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  9051. $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  9052. lt_cv_prog_cc_can_build_shared=no
  9053. fi
  9054. fi
  9055. #
  9056. # Check to make sure the static flag actually works.
  9057. #
  9058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  9059. $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
  9060. if test "${lt_prog_compiler_static_works+set}" = set; then :
  9061. $as_echo_n "(cached) " >&6
  9062. else
  9063. lt_prog_compiler_static_works=no
  9064. save_LDFLAGS="$LDFLAGS"
  9065. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  9066. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  9067. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9068. # The linker can only warn and ignore the option if not recognized
  9069. # So say no if there are warnings
  9070. if test -s conftest.err; then
  9071. # Append any errors to the config.log.
  9072. cat conftest.err 1>&5
  9073. $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  9074. $SED '/^$/d' conftest.err >conftest.er2
  9075. if diff conftest.exp conftest.er2 >/dev/null; then
  9076. lt_prog_compiler_static_works=yes
  9077. fi
  9078. else
  9079. lt_prog_compiler_static_works=yes
  9080. fi
  9081. fi
  9082. $rm conftest*
  9083. LDFLAGS="$save_LDFLAGS"
  9084. fi
  9085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
  9086. $as_echo "$lt_prog_compiler_static_works" >&6; }
  9087. if test x"$lt_prog_compiler_static_works" = xyes; then
  9088. :
  9089. else
  9090. lt_prog_compiler_static=
  9091. fi
  9092. lt_prog_compiler_no_builtin_flag=
  9093. if test "$GCC" = yes; then
  9094. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  9095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9096. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9097. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  9098. $as_echo_n "(cached) " >&6
  9099. else
  9100. lt_cv_prog_compiler_rtti_exceptions=no
  9101. ac_outfile=conftest.$ac_objext
  9102. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9103. lt_compiler_flag="-fno-rtti -fno-exceptions"
  9104. # Insert the option either (1) after the last *FLAGS variable, or
  9105. # (2) before a word containing "conftest.", or (3) at the end.
  9106. # Note that $ac_compile itself does not contain backslashes and begins
  9107. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9108. # The option is referenced via a variable to avoid confusing sed.
  9109. lt_compile=`echo "$ac_compile" | $SED \
  9110. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9111. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9112. -e 's:$: $lt_compiler_flag:'`
  9113. (eval echo "\"\$as_me:10261: $lt_compile\"" >&5)
  9114. (eval "$lt_compile" 2>conftest.err)
  9115. ac_status=$?
  9116. cat conftest.err >&5
  9117. echo "$as_me:10265: \$? = $ac_status" >&5
  9118. if (exit $ac_status) && test -s "$ac_outfile"; then
  9119. # The compiler can only warn and ignore the option if not recognized
  9120. # So say no if there are warnings other than the usual output.
  9121. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  9122. $SED '/^$/d' conftest.err >conftest.er2
  9123. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  9124. lt_cv_prog_compiler_rtti_exceptions=yes
  9125. fi
  9126. fi
  9127. $rm conftest*
  9128. fi
  9129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9130. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9131. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  9132. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9133. else
  9134. :
  9135. fi
  9136. fi
  9137. lt_prog_compiler_wl=
  9138. lt_prog_compiler_pic=
  9139. lt_prog_compiler_static=
  9140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9141. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9142. if test "$GCC" = yes; then
  9143. lt_prog_compiler_wl='-Wl,'
  9144. lt_prog_compiler_static='-static'
  9145. case $host_os in
  9146. aix*)
  9147. # All AIX code is PIC.
  9148. if test "$host_cpu" = ia64; then
  9149. # AIX 5 now supports IA64 processor
  9150. lt_prog_compiler_static='-Bstatic'
  9151. fi
  9152. ;;
  9153. amigaos*)
  9154. # FIXME: we need at least 68020 code to build shared libraries, but
  9155. # adding the `-m68020' flag to GCC prevents building anything better,
  9156. # like `-m68040'.
  9157. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9158. ;;
  9159. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9160. # PIC is the default for these OSes.
  9161. ;;
  9162. mingw* | pw32* | os2*)
  9163. # This hack is so that the source file can tell whether it is being
  9164. # built for inclusion in a dll (and should export symbols for example).
  9165. lt_prog_compiler_pic='-DDLL_EXPORT'
  9166. ;;
  9167. darwin* | rhapsody*)
  9168. # PIC is the default on this platform
  9169. # Common symbols not allowed in MH_DYLIB files
  9170. lt_prog_compiler_pic='-fno-common'
  9171. ;;
  9172. msdosdjgpp*)
  9173. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9174. # on systems that don't support them.
  9175. lt_prog_compiler_can_build_shared=no
  9176. enable_shared=no
  9177. ;;
  9178. sysv4*MP*)
  9179. if test -d /usr/nec; then
  9180. lt_prog_compiler_pic=-Kconform_pic
  9181. fi
  9182. ;;
  9183. hpux*)
  9184. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9185. # not for PA HP-UX.
  9186. case $host_cpu in
  9187. hppa*64*|ia64*)
  9188. # +Z the default
  9189. ;;
  9190. *)
  9191. lt_prog_compiler_pic='-fPIC'
  9192. ;;
  9193. esac
  9194. ;;
  9195. *)
  9196. lt_prog_compiler_pic='-fPIC'
  9197. ;;
  9198. esac
  9199. else
  9200. # PORTME Check for flag to pass linker flags through the system compiler.
  9201. case $host_os in
  9202. aix*)
  9203. lt_prog_compiler_wl='-Wl,'
  9204. if test "$host_cpu" = ia64; then
  9205. # AIX 5 now supports IA64 processor
  9206. lt_prog_compiler_static='-Bstatic'
  9207. else
  9208. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9209. fi
  9210. ;;
  9211. darwin*)
  9212. # PIC is the default on this platform
  9213. # Common symbols not allowed in MH_DYLIB files
  9214. case $cc_basename in
  9215. xlc*)
  9216. lt_prog_compiler_pic='-qnocommon'
  9217. lt_prog_compiler_wl='-Wl,'
  9218. ;;
  9219. esac
  9220. ;;
  9221. mingw* | pw32* | os2*)
  9222. # This hack is so that the source file can tell whether it is being
  9223. # built for inclusion in a dll (and should export symbols for example).
  9224. lt_prog_compiler_pic='-DDLL_EXPORT'
  9225. ;;
  9226. hpux9* | hpux10* | hpux11*)
  9227. lt_prog_compiler_wl='-Wl,'
  9228. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9229. # not for PA HP-UX.
  9230. case $host_cpu in
  9231. hppa*64*|ia64*)
  9232. # +Z the default
  9233. ;;
  9234. *)
  9235. lt_prog_compiler_pic='+Z'
  9236. ;;
  9237. esac
  9238. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9239. lt_prog_compiler_static='${wl}-a ${wl}archive'
  9240. ;;
  9241. irix5* | irix6* | nonstopux*)
  9242. lt_prog_compiler_wl='-Wl,'
  9243. # PIC (with -KPIC) is the default.
  9244. lt_prog_compiler_static='-non_shared'
  9245. ;;
  9246. newsos6)
  9247. lt_prog_compiler_pic='-KPIC'
  9248. lt_prog_compiler_static='-Bstatic'
  9249. ;;
  9250. linux*)
  9251. case $cc_basename in
  9252. icc* | ecc*)
  9253. lt_prog_compiler_wl='-Wl,'
  9254. lt_prog_compiler_pic='-KPIC'
  9255. lt_prog_compiler_static='-static'
  9256. ;;
  9257. pgcc* | pgf77* | pgf90* | pgf95*)
  9258. # Portland Group compilers (*not* the Pentium gcc compiler,
  9259. # which looks to be a dead project)
  9260. lt_prog_compiler_wl='-Wl,'
  9261. lt_prog_compiler_pic='-fpic'
  9262. lt_prog_compiler_static='-Bstatic'
  9263. ;;
  9264. ccc*)
  9265. lt_prog_compiler_wl='-Wl,'
  9266. # All Alpha code is PIC.
  9267. lt_prog_compiler_static='-non_shared'
  9268. ;;
  9269. esac
  9270. ;;
  9271. osf3* | osf4* | osf5*)
  9272. lt_prog_compiler_wl='-Wl,'
  9273. # All OSF/1 code is PIC.
  9274. lt_prog_compiler_static='-non_shared'
  9275. ;;
  9276. sco3.2v5*)
  9277. lt_prog_compiler_pic='-Kpic'
  9278. lt_prog_compiler_static='-dn'
  9279. ;;
  9280. solaris*)
  9281. lt_prog_compiler_pic='-KPIC'
  9282. lt_prog_compiler_static='-Bstatic'
  9283. case $cc_basename in
  9284. f77* | f90* | f95*)
  9285. lt_prog_compiler_wl='-Qoption ld ';;
  9286. *)
  9287. lt_prog_compiler_wl='-Wl,';;
  9288. esac
  9289. ;;
  9290. sunos4*)
  9291. lt_prog_compiler_wl='-Qoption ld '
  9292. lt_prog_compiler_pic='-PIC'
  9293. lt_prog_compiler_static='-Bstatic'
  9294. ;;
  9295. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9296. lt_prog_compiler_wl='-Wl,'
  9297. lt_prog_compiler_pic='-KPIC'
  9298. lt_prog_compiler_static='-Bstatic'
  9299. ;;
  9300. sysv4*MP*)
  9301. if test -d /usr/nec ;then
  9302. lt_prog_compiler_pic='-Kconform_pic'
  9303. lt_prog_compiler_static='-Bstatic'
  9304. fi
  9305. ;;
  9306. unicos*)
  9307. lt_prog_compiler_wl='-Wl,'
  9308. lt_prog_compiler_can_build_shared=no
  9309. ;;
  9310. uts4*)
  9311. lt_prog_compiler_pic='-pic'
  9312. lt_prog_compiler_static='-Bstatic'
  9313. ;;
  9314. *)
  9315. lt_prog_compiler_can_build_shared=no
  9316. ;;
  9317. esac
  9318. fi
  9319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  9320. $as_echo "$lt_prog_compiler_pic" >&6; }
  9321. #
  9322. # Check to make sure the PIC flag actually works.
  9323. #
  9324. if test -n "$lt_prog_compiler_pic"; then
  9325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9326. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9327. if test "${lt_prog_compiler_pic_works+set}" = set; then :
  9328. $as_echo_n "(cached) " >&6
  9329. else
  9330. lt_prog_compiler_pic_works=no
  9331. ac_outfile=conftest.$ac_objext
  9332. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9333. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  9334. # Insert the option either (1) after the last *FLAGS variable, or
  9335. # (2) before a word containing "conftest.", or (3) at the end.
  9336. # Note that $ac_compile itself does not contain backslashes and begins
  9337. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9338. # The option is referenced via a variable to avoid confusing sed.
  9339. lt_compile=`echo "$ac_compile" | $SED \
  9340. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9341. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9342. -e 's:$: $lt_compiler_flag:'`
  9343. (eval echo "\"\$as_me:10523: $lt_compile\"" >&5)
  9344. (eval "$lt_compile" 2>conftest.err)
  9345. ac_status=$?
  9346. cat conftest.err >&5
  9347. echo "$as_me:10527: \$? = $ac_status" >&5
  9348. if (exit $ac_status) && test -s "$ac_outfile"; then
  9349. # The compiler can only warn and ignore the option if not recognized
  9350. # So say no if there are warnings other than the usual output.
  9351. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  9352. $SED '/^$/d' conftest.err >conftest.er2
  9353. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  9354. lt_prog_compiler_pic_works=yes
  9355. fi
  9356. fi
  9357. $rm conftest*
  9358. fi
  9359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
  9360. $as_echo "$lt_prog_compiler_pic_works" >&6; }
  9361. if test x"$lt_prog_compiler_pic_works" = xyes; then
  9362. case $lt_prog_compiler_pic in
  9363. "" | " "*) ;;
  9364. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9365. esac
  9366. else
  9367. lt_prog_compiler_pic=
  9368. lt_prog_compiler_can_build_shared=no
  9369. fi
  9370. fi
  9371. case $host_os in
  9372. # For platforms which do not support PIC, -DPIC is meaningless:
  9373. *djgpp*)
  9374. lt_prog_compiler_pic=
  9375. ;;
  9376. *)
  9377. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9378. ;;
  9379. esac
  9380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9381. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9382. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  9383. $as_echo_n "(cached) " >&6
  9384. else
  9385. lt_cv_prog_compiler_c_o=no
  9386. $rm -r conftest 2>/dev/null
  9387. mkdir conftest
  9388. cd conftest
  9389. mkdir out
  9390. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9391. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9392. # Insert the option either (1) after the last *FLAGS variable, or
  9393. # (2) before a word containing "conftest.", or (3) at the end.
  9394. # Note that $ac_compile itself does not contain backslashes and begins
  9395. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9396. lt_compile=`echo "$ac_compile" | $SED \
  9397. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9398. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9399. -e 's:$: $lt_compiler_flag:'`
  9400. (eval echo "\"\$as_me:10585: $lt_compile\"" >&5)
  9401. (eval "$lt_compile" 2>out/conftest.err)
  9402. ac_status=$?
  9403. cat out/conftest.err >&5
  9404. echo "$as_me:10589: \$? = $ac_status" >&5
  9405. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9406. then
  9407. # The compiler can only warn and ignore the option if not recognized
  9408. # So say no if there are warnings
  9409. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  9410. $SED '/^$/d' out/conftest.err >out/conftest.er2
  9411. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9412. lt_cv_prog_compiler_c_o=yes
  9413. fi
  9414. fi
  9415. chmod u+w . 2>&5
  9416. $rm conftest*
  9417. # SGI C++ compiler will create directory out/ii_files/ for
  9418. # template instantiation
  9419. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  9420. $rm out/* && rmdir out
  9421. cd ..
  9422. rmdir conftest
  9423. $rm conftest*
  9424. fi
  9425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9426. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9427. hard_links="nottested"
  9428. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  9429. # do not overwrite the value of need_locks provided by the user
  9430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9431. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9432. hard_links=yes
  9433. $rm conftest*
  9434. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9435. touch conftest.a
  9436. ln conftest.a conftest.b 2>&5 || hard_links=no
  9437. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9439. $as_echo "$hard_links" >&6; }
  9440. if test "$hard_links" = no; then
  9441. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9442. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9443. need_locks=warn
  9444. fi
  9445. else
  9446. need_locks=no
  9447. fi
  9448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9449. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9450. runpath_var=
  9451. allow_undefined_flag=
  9452. enable_shared_with_static_runtimes=no
  9453. archive_cmds=
  9454. archive_expsym_cmds=
  9455. old_archive_From_new_cmds=
  9456. old_archive_from_expsyms_cmds=
  9457. export_dynamic_flag_spec=
  9458. whole_archive_flag_spec=
  9459. thread_safe_flag_spec=
  9460. hardcode_libdir_flag_spec=
  9461. hardcode_libdir_flag_spec_ld=
  9462. hardcode_libdir_separator=
  9463. hardcode_direct=no
  9464. hardcode_minus_L=no
  9465. hardcode_shlibpath_var=unsupported
  9466. link_all_deplibs=unknown
  9467. hardcode_automatic=no
  9468. module_cmds=
  9469. module_expsym_cmds=
  9470. always_export_symbols=no
  9471. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9472. # include_expsyms should be a list of space-separated symbols to be *always*
  9473. # included in the symbol list
  9474. include_expsyms=
  9475. # exclude_expsyms can be an extended regexp of symbols to exclude
  9476. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9477. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9478. # as well as any symbol that contains `d'.
  9479. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  9480. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9481. # platforms (ab)use it in PIC code, but their linkers get confused if
  9482. # the symbol is explicitly referenced. Since portable code cannot
  9483. # rely on this symbol name, it's probably fine to never include it in
  9484. # preloaded symbol tables.
  9485. extract_expsyms_cmds=
  9486. # Just being paranoid about ensuring that cc_basename is set.
  9487. for cc_temp in $compiler""; do
  9488. case $cc_temp in
  9489. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9490. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9491. \-*) ;;
  9492. *) break;;
  9493. esac
  9494. done
  9495. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9496. case $host_os in
  9497. cygwin* | mingw* | pw32*)
  9498. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9499. # When not using gcc, we currently assume that we are using
  9500. # Microsoft Visual C++.
  9501. if test "$GCC" != yes; then
  9502. with_gnu_ld=no
  9503. fi
  9504. ;;
  9505. openbsd*)
  9506. with_gnu_ld=no
  9507. ;;
  9508. esac
  9509. ld_shlibs=yes
  9510. if test "$with_gnu_ld" = yes; then
  9511. # If archive_cmds runs LD, not CC, wlarc should be empty
  9512. wlarc='${wl}'
  9513. # Set some defaults for GNU ld with shared library support. These
  9514. # are reset later if shared libraries are not supported. Putting them
  9515. # here allows them to be overridden if necessary.
  9516. runpath_var=LD_RUN_PATH
  9517. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  9518. export_dynamic_flag_spec='${wl}--export-dynamic'
  9519. # ancient GNU ld didn't support --whole-archive et. al.
  9520. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  9521. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9522. else
  9523. whole_archive_flag_spec=
  9524. fi
  9525. supports_anon_versioning=no
  9526. case `$LD -v 2>/dev/null` in
  9527. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9528. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9529. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9530. *\ 2.11.*) ;; # other 2.11 versions
  9531. *) supports_anon_versioning=yes ;;
  9532. esac
  9533. # See if GNU ld supports shared libraries.
  9534. case $host_os in
  9535. aix3* | aix4* | aix5*)
  9536. # On AIX/PPC, the GNU linker is very broken
  9537. if test "$host_cpu" != ia64; then
  9538. ld_shlibs=no
  9539. cat <<EOF 1>&2
  9540. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  9541. *** to be unable to reliably create shared libraries on AIX.
  9542. *** Therefore, libtool is disabling shared libraries support. If you
  9543. *** really care for shared libraries, you may want to modify your PATH
  9544. *** so that a non-GNU linker is found, and then restart.
  9545. EOF
  9546. fi
  9547. ;;
  9548. amigaos*)
  9549. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9550. hardcode_libdir_flag_spec='-L$libdir'
  9551. hardcode_minus_L=yes
  9552. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  9553. # that the semantics of dynamic libraries on AmigaOS, at least up
  9554. # to version 4, is to share data among multiple programs linked
  9555. # with the same dynamic library. Since this doesn't match the
  9556. # behavior of shared libraries on other platforms, we can't use
  9557. # them.
  9558. ld_shlibs=no
  9559. ;;
  9560. beos*)
  9561. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9562. allow_undefined_flag=unsupported
  9563. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9564. # support --undefined. This deserves some investigation. FIXME
  9565. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9566. else
  9567. ld_shlibs=no
  9568. fi
  9569. ;;
  9570. cygwin* | mingw* | pw32*)
  9571. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9572. # as there is no search path for DLLs.
  9573. hardcode_libdir_flag_spec='-L$libdir'
  9574. allow_undefined_flag=unsupported
  9575. always_export_symbols=no
  9576. enable_shared_with_static_runtimes=yes
  9577. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  9578. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9579. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  9580. # If the export-symbols file already is a .def file (1st line
  9581. # is EXPORTS), use it as is; otherwise, prepend...
  9582. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9583. cp $export_symbols $output_objdir/$soname.def;
  9584. else
  9585. echo EXPORTS > $output_objdir/$soname.def;
  9586. cat $export_symbols >> $output_objdir/$soname.def;
  9587. fi~
  9588. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  9589. else
  9590. ld_shlibs=no
  9591. fi
  9592. ;;
  9593. linux*)
  9594. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9595. tmp_addflag=
  9596. case $cc_basename,$host_cpu in
  9597. pgcc*) # Portland Group C compiler
  9598. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9599. tmp_addflag=' $pic_flag'
  9600. ;;
  9601. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  9602. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9603. tmp_addflag=' $pic_flag -Mnomain' ;;
  9604. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9605. tmp_addflag=' -i_dynamic' ;;
  9606. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9607. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9608. ifc* | ifort*) # Intel Fortran compiler
  9609. tmp_addflag=' -nofor_main' ;;
  9610. esac
  9611. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9612. if test $supports_anon_versioning = yes; then
  9613. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  9614. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9615. $echo "local: *; };" >> $output_objdir/$libname.ver~
  9616. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9617. fi
  9618. else
  9619. ld_shlibs=no
  9620. fi
  9621. ;;
  9622. netbsd*)
  9623. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9624. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9625. wlarc=
  9626. else
  9627. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9628. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9629. fi
  9630. ;;
  9631. solaris* | sysv5*)
  9632. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  9633. ld_shlibs=no
  9634. cat <<EOF 1>&2
  9635. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9636. *** create shared libraries on Solaris systems. Therefore, libtool
  9637. *** is disabling shared libraries support. We urge you to upgrade GNU
  9638. *** binutils to release 2.9.1 or newer. Another option is to modify
  9639. *** your PATH or compiler configuration so that the native linker is
  9640. *** used, and then restart.
  9641. EOF
  9642. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9643. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9644. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9645. else
  9646. ld_shlibs=no
  9647. fi
  9648. ;;
  9649. sunos4*)
  9650. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9651. wlarc=
  9652. hardcode_direct=yes
  9653. hardcode_shlibpath_var=no
  9654. ;;
  9655. *)
  9656. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9657. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9658. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9659. else
  9660. ld_shlibs=no
  9661. fi
  9662. ;;
  9663. esac
  9664. if test "$ld_shlibs" = no; then
  9665. runpath_var=
  9666. hardcode_libdir_flag_spec=
  9667. export_dynamic_flag_spec=
  9668. whole_archive_flag_spec=
  9669. fi
  9670. else
  9671. # PORTME fill in a description of your system's linker (not GNU ld)
  9672. case $host_os in
  9673. aix3*)
  9674. allow_undefined_flag=unsupported
  9675. always_export_symbols=yes
  9676. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  9677. # Note: this linker hardcodes the directories in LIBPATH if there
  9678. # are no directories specified by -L.
  9679. hardcode_minus_L=yes
  9680. if test "$GCC" = yes && test -z "$link_static_flag"; then
  9681. # Neither direct hardcoding nor static linking is supported with a
  9682. # broken collect2.
  9683. hardcode_direct=unsupported
  9684. fi
  9685. ;;
  9686. aix4* | aix5*)
  9687. if test "$host_cpu" = ia64; then
  9688. # On IA64, the linker does run time linking by default, so we don't
  9689. # have to do anything special.
  9690. aix_use_runtimelinking=no
  9691. exp_sym_flag='-Bexport'
  9692. no_entry_flag=""
  9693. else
  9694. # If we're using GNU nm, then we don't want the "-C" option.
  9695. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9696. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9697. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  9698. else
  9699. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  9700. fi
  9701. aix_use_runtimelinking=no
  9702. # Test if we are trying to use run time linking or normal
  9703. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9704. # need to do runtime linking.
  9705. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9706. for ld_flag in $LDFLAGS; do
  9707. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9708. aix_use_runtimelinking=yes
  9709. break
  9710. fi
  9711. done
  9712. esac
  9713. exp_sym_flag='-bexport'
  9714. no_entry_flag='-bnoentry'
  9715. fi
  9716. # When large executables or shared objects are built, AIX ld can
  9717. # have problems creating the table of contents. If linking a library
  9718. # or program results in "error TOC overflow" add -mminimal-toc to
  9719. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9720. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9721. archive_cmds=''
  9722. hardcode_direct=yes
  9723. hardcode_libdir_separator=':'
  9724. link_all_deplibs=yes
  9725. if test "$GCC" = yes; then
  9726. case $host_os in aix4.[012]|aix4.[012].*)
  9727. # We only want to do this on AIX 4.2 and lower, the check
  9728. # below for broken collect2 doesn't work under 4.3+
  9729. collect2name=`${CC} -print-prog-name=collect2`
  9730. if test -f "$collect2name" && \
  9731. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9732. then
  9733. # We have reworked collect2
  9734. hardcode_direct=yes
  9735. else
  9736. # We have old collect2
  9737. hardcode_direct=unsupported
  9738. # It fails to find uninstalled libraries when the uninstalled
  9739. # path is not listed in the libpath. Setting hardcode_minus_L
  9740. # to unsupported forces relinking
  9741. hardcode_minus_L=yes
  9742. hardcode_libdir_flag_spec='-L$libdir'
  9743. hardcode_libdir_separator=
  9744. fi
  9745. esac
  9746. shared_flag='-shared'
  9747. if test "$aix_use_runtimelinking" = yes; then
  9748. shared_flag="$shared_flag "'${wl}-G'
  9749. fi
  9750. else
  9751. # not using gcc
  9752. if test "$host_cpu" = ia64; then
  9753. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9754. # chokes on -Wl,-G. The following line is correct:
  9755. shared_flag='-G'
  9756. else
  9757. if test "$aix_use_runtimelinking" = yes; then
  9758. shared_flag='${wl}-G'
  9759. else
  9760. shared_flag='${wl}-bM:SRE'
  9761. fi
  9762. fi
  9763. fi
  9764. # It seems that -bexpall does not export symbols beginning with
  9765. # underscore (_), so it is better to generate a list of symbols to export.
  9766. always_export_symbols=yes
  9767. if test "$aix_use_runtimelinking" = yes; then
  9768. # Warning - without using the other runtime loading flags (-brtl),
  9769. # -berok will link without error, but may produce a broken library.
  9770. allow_undefined_flag='-berok'
  9771. # Determine the default libpath from the value encoded in an empty executable.
  9772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9773. /* end confdefs.h. */
  9774. int
  9775. main ()
  9776. {
  9777. ;
  9778. return 0;
  9779. }
  9780. _ACEOF
  9781. if ac_fn_c_try_link "$LINENO"; then :
  9782. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9783. }'`
  9784. # Check for a 64-bit object if we didn't find anything.
  9785. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9786. }'`; fi
  9787. fi
  9788. rm -f core conftest.err conftest.$ac_objext \
  9789. conftest$ac_exeext conftest.$ac_ext
  9790. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9791. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9792. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9793. else
  9794. if test "$host_cpu" = ia64; then
  9795. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9796. allow_undefined_flag="-z nodefs"
  9797. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  9798. else
  9799. # Determine the default libpath from the value encoded in an empty executable.
  9800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9801. /* end confdefs.h. */
  9802. int
  9803. main ()
  9804. {
  9805. ;
  9806. return 0;
  9807. }
  9808. _ACEOF
  9809. if ac_fn_c_try_link "$LINENO"; then :
  9810. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9811. }'`
  9812. # Check for a 64-bit object if we didn't find anything.
  9813. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9814. }'`; fi
  9815. fi
  9816. rm -f core conftest.err conftest.$ac_objext \
  9817. conftest$ac_exeext conftest.$ac_ext
  9818. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9819. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9820. # Warning - without using the other run time loading flags,
  9821. # -berok will link without error, but may produce a broken library.
  9822. no_undefined_flag=' ${wl}-bernotok'
  9823. allow_undefined_flag=' ${wl}-berok'
  9824. # -bexpall does not export symbols beginning with underscore (_)
  9825. always_export_symbols=yes
  9826. # Exported symbols can be pulled into shared objects from archives
  9827. whole_archive_flag_spec=' '
  9828. archive_cmds_need_lc=yes
  9829. # This is similar to how AIX traditionally builds its shared libraries.
  9830. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9831. fi
  9832. fi
  9833. ;;
  9834. amigaos*)
  9835. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9836. hardcode_libdir_flag_spec='-L$libdir'
  9837. hardcode_minus_L=yes
  9838. # see comment about different semantics on the GNU ld section
  9839. ld_shlibs=no
  9840. ;;
  9841. bsdi[45]*)
  9842. export_dynamic_flag_spec=-rdynamic
  9843. ;;
  9844. cygwin* | mingw* | pw32*)
  9845. # When not using gcc, we currently assume that we are using
  9846. # Microsoft Visual C++.
  9847. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9848. # no search path for DLLs.
  9849. hardcode_libdir_flag_spec=' '
  9850. allow_undefined_flag=unsupported
  9851. # Tell ltmain to make .lib files, not .a files.
  9852. libext=lib
  9853. # Tell ltmain to make .dll files, not .so files.
  9854. shrext_cmds=".dll"
  9855. # FIXME: Setting linknames here is a bad hack.
  9856. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9857. # The linker will automatically build a .lib file if we build a DLL.
  9858. old_archive_From_new_cmds='true'
  9859. # FIXME: Should let the user specify the lib program.
  9860. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  9861. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9862. enable_shared_with_static_runtimes=yes
  9863. ;;
  9864. darwin* | rhapsody*)
  9865. case $host_os in
  9866. rhapsody* | darwin1.[012])
  9867. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  9868. ;;
  9869. *) # Darwin 1.3 on
  9870. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9871. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9872. else
  9873. case ${MACOSX_DEPLOYMENT_TARGET} in
  9874. 10.[012])
  9875. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9876. ;;
  9877. 10.*)
  9878. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  9879. ;;
  9880. esac
  9881. fi
  9882. ;;
  9883. esac
  9884. archive_cmds_need_lc=no
  9885. hardcode_direct=no
  9886. hardcode_automatic=yes
  9887. hardcode_shlibpath_var=unsupported
  9888. whole_archive_flag_spec=''
  9889. link_all_deplibs=yes
  9890. if test "$GCC" = yes ; then
  9891. output_verbose_link_cmd='echo'
  9892. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9893. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9894. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9895. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9896. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9897. else
  9898. case $cc_basename in
  9899. xlc*)
  9900. output_verbose_link_cmd='echo'
  9901. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  9902. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9903. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9904. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9905. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9906. ;;
  9907. *)
  9908. ld_shlibs=no
  9909. ;;
  9910. esac
  9911. fi
  9912. ;;
  9913. dgux*)
  9914. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9915. hardcode_libdir_flag_spec='-L$libdir'
  9916. hardcode_shlibpath_var=no
  9917. ;;
  9918. freebsd1*)
  9919. ld_shlibs=no
  9920. ;;
  9921. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9922. # support. Future versions do this automatically, but an explicit c++rt0.o
  9923. # does not break anything, and helps significantly (at the cost of a little
  9924. # extra space).
  9925. freebsd2.2*)
  9926. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9927. hardcode_libdir_flag_spec='-R$libdir'
  9928. hardcode_direct=yes
  9929. hardcode_shlibpath_var=no
  9930. ;;
  9931. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9932. freebsd2*)
  9933. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9934. hardcode_direct=yes
  9935. hardcode_minus_L=yes
  9936. hardcode_shlibpath_var=no
  9937. ;;
  9938. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9939. freebsd* | kfreebsd*-gnu | dragonfly*)
  9940. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9941. hardcode_libdir_flag_spec='-R$libdir'
  9942. hardcode_direct=yes
  9943. hardcode_shlibpath_var=no
  9944. ;;
  9945. hpux9*)
  9946. if test "$GCC" = yes; then
  9947. archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9948. else
  9949. archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9950. fi
  9951. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9952. hardcode_libdir_separator=:
  9953. hardcode_direct=yes
  9954. # hardcode_minus_L: Not really in the search PATH,
  9955. # but as the default location of the library.
  9956. hardcode_minus_L=yes
  9957. export_dynamic_flag_spec='${wl}-E'
  9958. ;;
  9959. hpux10* | hpux11*)
  9960. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9961. case $host_cpu in
  9962. hppa*64*|ia64*)
  9963. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9964. ;;
  9965. *)
  9966. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9967. ;;
  9968. esac
  9969. else
  9970. case $host_cpu in
  9971. hppa*64*|ia64*)
  9972. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  9973. ;;
  9974. *)
  9975. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9976. ;;
  9977. esac
  9978. fi
  9979. if test "$with_gnu_ld" = no; then
  9980. case $host_cpu in
  9981. hppa*64*)
  9982. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9983. hardcode_libdir_flag_spec_ld='+b $libdir'
  9984. hardcode_libdir_separator=:
  9985. hardcode_direct=no
  9986. hardcode_shlibpath_var=no
  9987. ;;
  9988. ia64*)
  9989. hardcode_libdir_flag_spec='-L$libdir'
  9990. hardcode_direct=no
  9991. hardcode_shlibpath_var=no
  9992. # hardcode_minus_L: Not really in the search PATH,
  9993. # but as the default location of the library.
  9994. hardcode_minus_L=yes
  9995. ;;
  9996. *)
  9997. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9998. hardcode_libdir_separator=:
  9999. hardcode_direct=yes
  10000. export_dynamic_flag_spec='${wl}-E'
  10001. # hardcode_minus_L: Not really in the search PATH,
  10002. # but as the default location of the library.
  10003. hardcode_minus_L=yes
  10004. ;;
  10005. esac
  10006. fi
  10007. ;;
  10008. irix5* | irix6* | nonstopux*)
  10009. if test "$GCC" = yes; then
  10010. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10011. else
  10012. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10013. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  10014. fi
  10015. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10016. hardcode_libdir_separator=:
  10017. link_all_deplibs=yes
  10018. ;;
  10019. netbsd*)
  10020. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10021. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10022. else
  10023. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10024. fi
  10025. hardcode_libdir_flag_spec='-R$libdir'
  10026. hardcode_direct=yes
  10027. hardcode_shlibpath_var=no
  10028. ;;
  10029. newsos6)
  10030. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10031. hardcode_direct=yes
  10032. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10033. hardcode_libdir_separator=:
  10034. hardcode_shlibpath_var=no
  10035. ;;
  10036. openbsd*)
  10037. hardcode_direct=yes
  10038. hardcode_shlibpath_var=no
  10039. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10040. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10041. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10042. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10043. export_dynamic_flag_spec='${wl}-E'
  10044. else
  10045. case $host_os in
  10046. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  10047. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10048. hardcode_libdir_flag_spec='-R$libdir'
  10049. ;;
  10050. *)
  10051. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10052. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10053. ;;
  10054. esac
  10055. fi
  10056. ;;
  10057. os2*)
  10058. hardcode_libdir_flag_spec='-L$libdir'
  10059. hardcode_minus_L=yes
  10060. allow_undefined_flag=unsupported
  10061. archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  10062. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10063. ;;
  10064. osf3*)
  10065. if test "$GCC" = yes; then
  10066. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10067. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10068. else
  10069. allow_undefined_flag=' -expect_unresolved \*'
  10070. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10071. fi
  10072. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10073. hardcode_libdir_separator=:
  10074. ;;
  10075. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10076. if test "$GCC" = yes; then
  10077. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10078. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10079. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10080. else
  10081. allow_undefined_flag=' -expect_unresolved \*'
  10082. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10083. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  10084. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  10085. # Both c and cxx compiler support -rpath directly
  10086. hardcode_libdir_flag_spec='-rpath $libdir'
  10087. fi
  10088. hardcode_libdir_separator=:
  10089. ;;
  10090. sco3.2v5*)
  10091. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10092. hardcode_shlibpath_var=no
  10093. export_dynamic_flag_spec='${wl}-Bexport'
  10094. runpath_var=LD_RUN_PATH
  10095. hardcode_runpath_var=yes
  10096. ;;
  10097. solaris*)
  10098. no_undefined_flag=' -z text'
  10099. if test "$GCC" = yes; then
  10100. wlarc='${wl}'
  10101. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10102. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10103. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  10104. else
  10105. wlarc=''
  10106. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10107. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10108. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  10109. fi
  10110. hardcode_libdir_flag_spec='-R$libdir'
  10111. hardcode_shlibpath_var=no
  10112. case $host_os in
  10113. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10114. *)
  10115. # The compiler driver will combine linker options so we
  10116. # cannot just pass the convience library names through
  10117. # without $wl, iff we do not link with $LD.
  10118. # Luckily, gcc supports the same syntax we need for Sun Studio.
  10119. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10120. case $wlarc in
  10121. '')
  10122. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  10123. *)
  10124. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  10125. esac ;;
  10126. esac
  10127. link_all_deplibs=yes
  10128. ;;
  10129. sunos4*)
  10130. if test "x$host_vendor" = xsequent; then
  10131. # Use $CC to link under sequent, because it throws in some extra .o
  10132. # files that make .init and .fini sections work.
  10133. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10134. else
  10135. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10136. fi
  10137. hardcode_libdir_flag_spec='-L$libdir'
  10138. hardcode_direct=yes
  10139. hardcode_minus_L=yes
  10140. hardcode_shlibpath_var=no
  10141. ;;
  10142. sysv4)
  10143. case $host_vendor in
  10144. sni)
  10145. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10146. hardcode_direct=yes # is this really true???
  10147. ;;
  10148. siemens)
  10149. ## LD is ld it makes a PLAMLIB
  10150. ## CC just makes a GrossModule.
  10151. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10152. reload_cmds='$CC -r -o $output$reload_objs'
  10153. hardcode_direct=no
  10154. ;;
  10155. motorola)
  10156. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10157. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10158. ;;
  10159. esac
  10160. runpath_var='LD_RUN_PATH'
  10161. hardcode_shlibpath_var=no
  10162. ;;
  10163. sysv4.3*)
  10164. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10165. hardcode_shlibpath_var=no
  10166. export_dynamic_flag_spec='-Bexport'
  10167. ;;
  10168. sysv4*MP*)
  10169. if test -d /usr/nec; then
  10170. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10171. hardcode_shlibpath_var=no
  10172. runpath_var=LD_RUN_PATH
  10173. hardcode_runpath_var=yes
  10174. ld_shlibs=yes
  10175. fi
  10176. ;;
  10177. sysv4.2uw2*)
  10178. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10179. hardcode_direct=yes
  10180. hardcode_minus_L=no
  10181. hardcode_shlibpath_var=no
  10182. hardcode_runpath_var=yes
  10183. runpath_var=LD_RUN_PATH
  10184. ;;
  10185. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  10186. no_undefined_flag='${wl}-z ${wl}text'
  10187. if test "$GCC" = yes; then
  10188. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10189. else
  10190. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10191. fi
  10192. runpath_var='LD_RUN_PATH'
  10193. hardcode_shlibpath_var=no
  10194. ;;
  10195. sysv5*)
  10196. no_undefined_flag=' -z text'
  10197. # $CC -shared without GNU ld will not create a library from C++
  10198. # object files and a static libstdc++, better avoid it by now
  10199. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10200. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10201. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  10202. hardcode_libdir_flag_spec=
  10203. hardcode_shlibpath_var=no
  10204. runpath_var='LD_RUN_PATH'
  10205. ;;
  10206. uts4*)
  10207. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10208. hardcode_libdir_flag_spec='-L$libdir'
  10209. hardcode_shlibpath_var=no
  10210. ;;
  10211. *)
  10212. ld_shlibs=no
  10213. ;;
  10214. esac
  10215. fi
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10217. $as_echo "$ld_shlibs" >&6; }
  10218. test "$ld_shlibs" = no && can_build_shared=no
  10219. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10220. if test "$GCC" = yes; then
  10221. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10222. fi
  10223. #
  10224. # Do we need to explicitly link libc?
  10225. #
  10226. case "x$archive_cmds_need_lc" in
  10227. x|xyes)
  10228. # Assume -lc should be added
  10229. archive_cmds_need_lc=yes
  10230. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10231. case $archive_cmds in
  10232. *'~'*)
  10233. # FIXME: we may have to deal with multi-command sequences.
  10234. ;;
  10235. '$CC '*)
  10236. # Test whether the compiler implicitly links with -lc since on some
  10237. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10238. # to ld, don't add -lc before -lgcc.
  10239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10240. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10241. $rm conftest*
  10242. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10243. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10244. (eval $ac_compile) 2>&5
  10245. ac_status=$?
  10246. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10247. test $ac_status = 0; } 2>conftest.err; then
  10248. soname=conftest
  10249. lib=conftest
  10250. libobjs=conftest.$ac_objext
  10251. deplibs=
  10252. wl=$lt_prog_compiler_wl
  10253. compiler_flags=-v
  10254. linker_flags=-v
  10255. verstring=
  10256. output_objdir=.
  10257. libname=conftest
  10258. lt_save_allow_undefined_flag=$allow_undefined_flag
  10259. allow_undefined_flag=
  10260. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10261. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10262. ac_status=$?
  10263. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10264. test $ac_status = 0; }
  10265. then
  10266. archive_cmds_need_lc=no
  10267. else
  10268. archive_cmds_need_lc=yes
  10269. fi
  10270. allow_undefined_flag=$lt_save_allow_undefined_flag
  10271. else
  10272. cat conftest.err 1>&5
  10273. fi
  10274. $rm conftest*
  10275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  10276. $as_echo "$archive_cmds_need_lc" >&6; }
  10277. ;;
  10278. esac
  10279. fi
  10280. ;;
  10281. esac
  10282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10283. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10284. library_names_spec=
  10285. libname_spec='lib$name'
  10286. soname_spec=
  10287. shrext_cmds=".so"
  10288. postinstall_cmds=
  10289. postuninstall_cmds=
  10290. finish_cmds=
  10291. finish_eval=
  10292. shlibpath_var=
  10293. shlibpath_overrides_runpath=unknown
  10294. version_type=none
  10295. dynamic_linker="$host_os ld.so"
  10296. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10297. if test "$GCC" = yes; then
  10298. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10299. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10300. # if the path contains ";" then we assume it to be the separator
  10301. # otherwise default to the standard path separator (i.e. ":") - it is
  10302. # assumed that no part of a normal pathname contains ";" but that should
  10303. # okay in the real world where ";" in dirpaths is itself problematic.
  10304. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10305. else
  10306. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10307. fi
  10308. else
  10309. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10310. fi
  10311. need_lib_prefix=unknown
  10312. hardcode_into_libs=no
  10313. # when you set need_version to no, make sure it does not cause -set_version
  10314. # flags to be left without arguments
  10315. need_version=unknown
  10316. case $host_os in
  10317. aix3*)
  10318. version_type=linux
  10319. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10320. shlibpath_var=LIBPATH
  10321. # AIX 3 has no versioning support, so we append a major version to the name.
  10322. soname_spec='${libname}${release}${shared_ext}$major'
  10323. ;;
  10324. aix4* | aix5*)
  10325. version_type=linux
  10326. need_lib_prefix=no
  10327. need_version=no
  10328. hardcode_into_libs=yes
  10329. if test "$host_cpu" = ia64; then
  10330. # AIX 5 supports IA64
  10331. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10332. shlibpath_var=LD_LIBRARY_PATH
  10333. else
  10334. # With GCC up to 2.95.x, collect2 would create an import file
  10335. # for dependence libraries. The import file would start with
  10336. # the line `#! .'. This would cause the generated library to
  10337. # depend on `.', always an invalid library. This was fixed in
  10338. # development snapshots of GCC prior to 3.0.
  10339. case $host_os in
  10340. aix4 | aix4.[01] | aix4.[01].*)
  10341. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10342. echo ' yes '
  10343. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10344. :
  10345. else
  10346. can_build_shared=no
  10347. fi
  10348. ;;
  10349. esac
  10350. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10351. # soname into executable. Probably we can add versioning support to
  10352. # collect2, so additional links can be useful in future.
  10353. if test "$aix_use_runtimelinking" = yes; then
  10354. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10355. # instead of lib<name>.a to let people know that these are not
  10356. # typical AIX shared libraries.
  10357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10358. else
  10359. # We preserve .a as extension for shared libraries through AIX4.2
  10360. # and later when we are not doing run time linking.
  10361. library_names_spec='${libname}${release}.a $libname.a'
  10362. soname_spec='${libname}${release}${shared_ext}$major'
  10363. fi
  10364. shlibpath_var=LIBPATH
  10365. fi
  10366. ;;
  10367. amigaos*)
  10368. library_names_spec='$libname.ixlibrary $libname.a'
  10369. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10370. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10371. ;;
  10372. beos*)
  10373. library_names_spec='${libname}${shared_ext}'
  10374. dynamic_linker="$host_os ld.so"
  10375. shlibpath_var=LIBRARY_PATH
  10376. ;;
  10377. bsdi[45]*)
  10378. version_type=linux
  10379. need_version=no
  10380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10381. soname_spec='${libname}${release}${shared_ext}$major'
  10382. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10383. shlibpath_var=LD_LIBRARY_PATH
  10384. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10385. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10386. # the default ld.so.conf also contains /usr/contrib/lib and
  10387. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10388. # libtool to hard-code these into programs
  10389. ;;
  10390. cygwin* | mingw* | pw32*)
  10391. version_type=windows
  10392. shrext_cmds=".dll"
  10393. need_version=no
  10394. need_lib_prefix=no
  10395. case $GCC,$host_os in
  10396. yes,cygwin* | yes,mingw* | yes,pw32*)
  10397. library_names_spec='$libname.dll.a'
  10398. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10399. postinstall_cmds='base_file=`basename \${file}`~
  10400. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10401. dldir=$destdir/`dirname \$dlpath`~
  10402. test -d \$dldir || mkdir -p \$dldir~
  10403. $install_prog $dir/$dlname \$dldir/$dlname~
  10404. chmod a+x \$dldir/$dlname'
  10405. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10406. dlpath=$dir/\$dldll~
  10407. $rm \$dlpath'
  10408. shlibpath_overrides_runpath=yes
  10409. case $host_os in
  10410. cygwin*)
  10411. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10412. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10413. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10414. ;;
  10415. mingw*)
  10416. # MinGW DLLs use traditional 'lib' prefix
  10417. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10418. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10419. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10420. # It is most probably a Windows format PATH printed by
  10421. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10422. # path with ; separators, and with drive letters. We can handle the
  10423. # drive letters (cygwin fileutils understands them), so leave them,
  10424. # especially as we might pass files found there to a mingw objdump,
  10425. # which wouldn't understand a cygwinified path. Ahh.
  10426. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10427. else
  10428. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10429. fi
  10430. ;;
  10431. pw32*)
  10432. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10433. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10434. ;;
  10435. esac
  10436. ;;
  10437. *)
  10438. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10439. ;;
  10440. esac
  10441. dynamic_linker='Win32 ld.exe'
  10442. # FIXME: first we should search . and the directory the executable is in
  10443. shlibpath_var=PATH
  10444. ;;
  10445. darwin* | rhapsody*)
  10446. dynamic_linker="$host_os dyld"
  10447. version_type=darwin
  10448. need_lib_prefix=no
  10449. need_version=no
  10450. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10451. soname_spec='${libname}${release}${major}$shared_ext'
  10452. shlibpath_overrides_runpath=yes
  10453. shlibpath_var=DYLD_LIBRARY_PATH
  10454. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10455. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  10456. if test "$GCC" = yes; then
  10457. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  10458. else
  10459. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  10460. fi
  10461. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10462. ;;
  10463. dgux*)
  10464. version_type=linux
  10465. need_lib_prefix=no
  10466. need_version=no
  10467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10468. soname_spec='${libname}${release}${shared_ext}$major'
  10469. shlibpath_var=LD_LIBRARY_PATH
  10470. ;;
  10471. freebsd1*)
  10472. dynamic_linker=no
  10473. ;;
  10474. kfreebsd*-gnu)
  10475. version_type=linux
  10476. need_lib_prefix=no
  10477. need_version=no
  10478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10479. soname_spec='${libname}${release}${shared_ext}$major'
  10480. shlibpath_var=LD_LIBRARY_PATH
  10481. shlibpath_overrides_runpath=no
  10482. hardcode_into_libs=yes
  10483. dynamic_linker='GNU ld.so'
  10484. ;;
  10485. freebsd* | dragonfly*)
  10486. # DragonFly does not have aout. When/if they implement a new
  10487. # versioning mechanism, adjust this.
  10488. if test -x /usr/bin/objformat; then
  10489. objformat=`/usr/bin/objformat`
  10490. else
  10491. case $host_os in
  10492. freebsd[123]*) objformat=aout ;;
  10493. *) objformat=elf ;;
  10494. esac
  10495. fi
  10496. version_type=freebsd-$objformat
  10497. case $version_type in
  10498. freebsd-elf*)
  10499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10500. need_version=no
  10501. need_lib_prefix=no
  10502. ;;
  10503. freebsd-*)
  10504. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10505. need_version=yes
  10506. ;;
  10507. esac
  10508. shlibpath_var=LD_LIBRARY_PATH
  10509. case $host_os in
  10510. freebsd2*)
  10511. shlibpath_overrides_runpath=yes
  10512. ;;
  10513. freebsd3.[01]* | freebsdelf3.[01]*)
  10514. shlibpath_overrides_runpath=yes
  10515. hardcode_into_libs=yes
  10516. ;;
  10517. *) # from 3.2 on
  10518. shlibpath_overrides_runpath=no
  10519. hardcode_into_libs=yes
  10520. ;;
  10521. esac
  10522. ;;
  10523. gnu*)
  10524. version_type=linux
  10525. need_lib_prefix=no
  10526. need_version=no
  10527. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10528. soname_spec='${libname}${release}${shared_ext}$major'
  10529. shlibpath_var=LD_LIBRARY_PATH
  10530. hardcode_into_libs=yes
  10531. ;;
  10532. hpux9* | hpux10* | hpux11*)
  10533. # Give a soname corresponding to the major version so that dld.sl refuses to
  10534. # link against other versions.
  10535. version_type=sunos
  10536. need_lib_prefix=no
  10537. need_version=no
  10538. case $host_cpu in
  10539. ia64*)
  10540. shrext_cmds='.so'
  10541. hardcode_into_libs=yes
  10542. dynamic_linker="$host_os dld.so"
  10543. shlibpath_var=LD_LIBRARY_PATH
  10544. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10546. soname_spec='${libname}${release}${shared_ext}$major'
  10547. if test "X$HPUX_IA64_MODE" = X32; then
  10548. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10549. else
  10550. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10551. fi
  10552. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10553. ;;
  10554. hppa*64*)
  10555. shrext_cmds='.sl'
  10556. hardcode_into_libs=yes
  10557. dynamic_linker="$host_os dld.sl"
  10558. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10559. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10561. soname_spec='${libname}${release}${shared_ext}$major'
  10562. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10563. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10564. ;;
  10565. *)
  10566. shrext_cmds='.sl'
  10567. dynamic_linker="$host_os dld.sl"
  10568. shlibpath_var=SHLIB_PATH
  10569. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10570. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10571. soname_spec='${libname}${release}${shared_ext}$major'
  10572. ;;
  10573. esac
  10574. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10575. postinstall_cmds='chmod 555 $lib'
  10576. ;;
  10577. irix5* | irix6* | nonstopux*)
  10578. case $host_os in
  10579. nonstopux*) version_type=nonstopux ;;
  10580. *)
  10581. if test "$lt_cv_prog_gnu_ld" = yes; then
  10582. version_type=linux
  10583. else
  10584. version_type=irix
  10585. fi ;;
  10586. esac
  10587. need_lib_prefix=no
  10588. need_version=no
  10589. soname_spec='${libname}${release}${shared_ext}$major'
  10590. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10591. case $host_os in
  10592. irix5* | nonstopux*)
  10593. libsuff= shlibsuff=
  10594. ;;
  10595. *)
  10596. case $LD in # libtool.m4 will add one of these switches to LD
  10597. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10598. libsuff= shlibsuff= libmagic=32-bit;;
  10599. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10600. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10601. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10602. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10603. *) libsuff= shlibsuff= libmagic=never-match;;
  10604. esac
  10605. ;;
  10606. esac
  10607. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10608. shlibpath_overrides_runpath=no
  10609. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10610. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10611. hardcode_into_libs=yes
  10612. ;;
  10613. # No shared lib support for Linux oldld, aout, or coff.
  10614. linux*oldld* | linux*aout* | linux*coff*)
  10615. dynamic_linker=no
  10616. ;;
  10617. # This must be Linux ELF.
  10618. linux*)
  10619. version_type=linux
  10620. need_lib_prefix=no
  10621. need_version=no
  10622. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10623. soname_spec='${libname}${release}${shared_ext}$major'
  10624. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10625. shlibpath_var=LD_LIBRARY_PATH
  10626. shlibpath_overrides_runpath=no
  10627. # This implies no fast_install, which is unacceptable.
  10628. # Some rework will be needed to allow for fast_install
  10629. # before this can be enabled.
  10630. hardcode_into_libs=yes
  10631. # Append ld.so.conf contents to the search path
  10632. if test -f /etc/ld.so.conf; then
  10633. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  10634. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10635. fi
  10636. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10637. # powerpc, because MkLinux only supported shared libraries with the
  10638. # GNU dynamic linker. Since this was broken with cross compilers,
  10639. # most powerpc-linux boxes support dynamic linking these days and
  10640. # people can always --disable-shared, the test was removed, and we
  10641. # assume the GNU/Linux dynamic linker is in use.
  10642. dynamic_linker='GNU/Linux ld.so'
  10643. ;;
  10644. knetbsd*-gnu)
  10645. version_type=linux
  10646. need_lib_prefix=no
  10647. need_version=no
  10648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10649. soname_spec='${libname}${release}${shared_ext}$major'
  10650. shlibpath_var=LD_LIBRARY_PATH
  10651. shlibpath_overrides_runpath=no
  10652. hardcode_into_libs=yes
  10653. dynamic_linker='GNU ld.so'
  10654. ;;
  10655. netbsd*)
  10656. version_type=sunos
  10657. need_lib_prefix=no
  10658. need_version=no
  10659. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10661. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10662. dynamic_linker='NetBSD (a.out) ld.so'
  10663. else
  10664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10665. soname_spec='${libname}${release}${shared_ext}$major'
  10666. dynamic_linker='NetBSD ld.elf_so'
  10667. fi
  10668. shlibpath_var=LD_LIBRARY_PATH
  10669. shlibpath_overrides_runpath=yes
  10670. hardcode_into_libs=yes
  10671. ;;
  10672. newsos6)
  10673. version_type=linux
  10674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10675. shlibpath_var=LD_LIBRARY_PATH
  10676. shlibpath_overrides_runpath=yes
  10677. ;;
  10678. nto-qnx*)
  10679. version_type=linux
  10680. need_lib_prefix=no
  10681. need_version=no
  10682. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10683. soname_spec='${libname}${release}${shared_ext}$major'
  10684. shlibpath_var=LD_LIBRARY_PATH
  10685. shlibpath_overrides_runpath=yes
  10686. ;;
  10687. openbsd*)
  10688. version_type=sunos
  10689. need_lib_prefix=no
  10690. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10691. case $host_os in
  10692. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10693. *) need_version=no ;;
  10694. esac
  10695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10696. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10697. shlibpath_var=LD_LIBRARY_PATH
  10698. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10699. case $host_os in
  10700. openbsd2.[89] | openbsd2.[89].*)
  10701. shlibpath_overrides_runpath=no
  10702. ;;
  10703. *)
  10704. shlibpath_overrides_runpath=yes
  10705. ;;
  10706. esac
  10707. else
  10708. shlibpath_overrides_runpath=yes
  10709. fi
  10710. ;;
  10711. os2*)
  10712. libname_spec='$name'
  10713. shrext_cmds=".dll"
  10714. need_lib_prefix=no
  10715. library_names_spec='$libname${shared_ext} $libname.a'
  10716. dynamic_linker='OS/2 ld.exe'
  10717. shlibpath_var=LIBPATH
  10718. ;;
  10719. osf3* | osf4* | osf5*)
  10720. version_type=osf
  10721. need_lib_prefix=no
  10722. need_version=no
  10723. soname_spec='${libname}${release}${shared_ext}$major'
  10724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10725. shlibpath_var=LD_LIBRARY_PATH
  10726. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10727. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10728. ;;
  10729. sco3.2v5*)
  10730. version_type=osf
  10731. soname_spec='${libname}${release}${shared_ext}$major'
  10732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10733. shlibpath_var=LD_LIBRARY_PATH
  10734. ;;
  10735. solaris*)
  10736. version_type=linux
  10737. need_lib_prefix=no
  10738. need_version=no
  10739. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10740. soname_spec='${libname}${release}${shared_ext}$major'
  10741. shlibpath_var=LD_LIBRARY_PATH
  10742. shlibpath_overrides_runpath=yes
  10743. hardcode_into_libs=yes
  10744. # ldd complains unless libraries are executable
  10745. postinstall_cmds='chmod +x $lib'
  10746. ;;
  10747. sunos4*)
  10748. version_type=sunos
  10749. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10750. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10751. shlibpath_var=LD_LIBRARY_PATH
  10752. shlibpath_overrides_runpath=yes
  10753. if test "$with_gnu_ld" = yes; then
  10754. need_lib_prefix=no
  10755. fi
  10756. need_version=yes
  10757. ;;
  10758. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10759. version_type=linux
  10760. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10761. soname_spec='${libname}${release}${shared_ext}$major'
  10762. shlibpath_var=LD_LIBRARY_PATH
  10763. case $host_vendor in
  10764. sni)
  10765. shlibpath_overrides_runpath=no
  10766. need_lib_prefix=no
  10767. export_dynamic_flag_spec='${wl}-Blargedynsym'
  10768. runpath_var=LD_RUN_PATH
  10769. ;;
  10770. siemens)
  10771. need_lib_prefix=no
  10772. ;;
  10773. motorola)
  10774. need_lib_prefix=no
  10775. need_version=no
  10776. shlibpath_overrides_runpath=no
  10777. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10778. ;;
  10779. esac
  10780. ;;
  10781. sysv4*MP*)
  10782. if test -d /usr/nec ;then
  10783. version_type=linux
  10784. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10785. soname_spec='$libname${shared_ext}.$major'
  10786. shlibpath_var=LD_LIBRARY_PATH
  10787. fi
  10788. ;;
  10789. uts4*)
  10790. version_type=linux
  10791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10792. soname_spec='${libname}${release}${shared_ext}$major'
  10793. shlibpath_var=LD_LIBRARY_PATH
  10794. ;;
  10795. *)
  10796. dynamic_linker=no
  10797. ;;
  10798. esac
  10799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10800. $as_echo "$dynamic_linker" >&6; }
  10801. test "$dynamic_linker" = no && can_build_shared=no
  10802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10803. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10804. hardcode_action=
  10805. if test -n "$hardcode_libdir_flag_spec" || \
  10806. test -n "$runpath_var" || \
  10807. test "X$hardcode_automatic" = "Xyes" ; then
  10808. # We can hardcode non-existant directories.
  10809. if test "$hardcode_direct" != no &&
  10810. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10811. # have to relink, otherwise we might link with an installed library
  10812. # when we should be linking with a yet-to-be-installed one
  10813. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10814. test "$hardcode_minus_L" != no; then
  10815. # Linking always hardcodes the temporary library directory.
  10816. hardcode_action=relink
  10817. else
  10818. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10819. hardcode_action=immediate
  10820. fi
  10821. else
  10822. # We cannot hardcode anything, or else we can only hardcode existing
  10823. # directories.
  10824. hardcode_action=unsupported
  10825. fi
  10826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10827. $as_echo "$hardcode_action" >&6; }
  10828. if test "$hardcode_action" = relink; then
  10829. # Fast installation is not supported
  10830. enable_fast_install=no
  10831. elif test "$shlibpath_overrides_runpath" = yes ||
  10832. test "$enable_shared" = no; then
  10833. # Fast installation is not necessary
  10834. enable_fast_install=needless
  10835. fi
  10836. striplib=
  10837. old_striplib=
  10838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10839. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10840. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  10841. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10842. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10844. $as_echo "yes" >&6; }
  10845. else
  10846. # FIXME - insert some real tests, host_os isn't really good enough
  10847. case $host_os in
  10848. darwin*)
  10849. if test -n "$STRIP" ; then
  10850. striplib="$STRIP -x"
  10851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10852. $as_echo "yes" >&6; }
  10853. else
  10854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10855. $as_echo "no" >&6; }
  10856. fi
  10857. ;;
  10858. *)
  10859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10860. $as_echo "no" >&6; }
  10861. ;;
  10862. esac
  10863. fi
  10864. if test "x$enable_dlopen" != xyes; then
  10865. enable_dlopen=unknown
  10866. enable_dlopen_self=unknown
  10867. enable_dlopen_self_static=unknown
  10868. else
  10869. lt_cv_dlopen=no
  10870. lt_cv_dlopen_libs=
  10871. case $host_os in
  10872. beos*)
  10873. lt_cv_dlopen="load_add_on"
  10874. lt_cv_dlopen_libs=
  10875. lt_cv_dlopen_self=yes
  10876. ;;
  10877. mingw* | pw32*)
  10878. lt_cv_dlopen="LoadLibrary"
  10879. lt_cv_dlopen_libs=
  10880. ;;
  10881. cygwin*)
  10882. lt_cv_dlopen="dlopen"
  10883. lt_cv_dlopen_libs=
  10884. ;;
  10885. darwin*)
  10886. # if libdl is installed we need to link against it
  10887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10888. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10889. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10890. $as_echo_n "(cached) " >&6
  10891. else
  10892. ac_check_lib_save_LIBS=$LIBS
  10893. LIBS="-ldl $LIBS"
  10894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10895. /* end confdefs.h. */
  10896. /* Override any GCC internal prototype to avoid an error.
  10897. Use char because int might match the return type of a GCC
  10898. builtin and then its argument prototype would still apply. */
  10899. #ifdef __cplusplus
  10900. extern "C"
  10901. #endif
  10902. char dlopen ();
  10903. int
  10904. main ()
  10905. {
  10906. return dlopen ();
  10907. ;
  10908. return 0;
  10909. }
  10910. _ACEOF
  10911. if ac_fn_c_try_link "$LINENO"; then :
  10912. ac_cv_lib_dl_dlopen=yes
  10913. else
  10914. ac_cv_lib_dl_dlopen=no
  10915. fi
  10916. rm -f core conftest.err conftest.$ac_objext \
  10917. conftest$ac_exeext conftest.$ac_ext
  10918. LIBS=$ac_check_lib_save_LIBS
  10919. fi
  10920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10921. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10922. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10923. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10924. else
  10925. lt_cv_dlopen="dyld"
  10926. lt_cv_dlopen_libs=
  10927. lt_cv_dlopen_self=yes
  10928. fi
  10929. ;;
  10930. *)
  10931. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10932. if test "x$ac_cv_func_shl_load" = x""yes; then :
  10933. lt_cv_dlopen="shl_load"
  10934. else
  10935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10936. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10937. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  10938. $as_echo_n "(cached) " >&6
  10939. else
  10940. ac_check_lib_save_LIBS=$LIBS
  10941. LIBS="-ldld $LIBS"
  10942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10943. /* end confdefs.h. */
  10944. /* Override any GCC internal prototype to avoid an error.
  10945. Use char because int might match the return type of a GCC
  10946. builtin and then its argument prototype would still apply. */
  10947. #ifdef __cplusplus
  10948. extern "C"
  10949. #endif
  10950. char shl_load ();
  10951. int
  10952. main ()
  10953. {
  10954. return shl_load ();
  10955. ;
  10956. return 0;
  10957. }
  10958. _ACEOF
  10959. if ac_fn_c_try_link "$LINENO"; then :
  10960. ac_cv_lib_dld_shl_load=yes
  10961. else
  10962. ac_cv_lib_dld_shl_load=no
  10963. fi
  10964. rm -f core conftest.err conftest.$ac_objext \
  10965. conftest$ac_exeext conftest.$ac_ext
  10966. LIBS=$ac_check_lib_save_LIBS
  10967. fi
  10968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10969. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10970. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  10971. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  10972. else
  10973. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10974. if test "x$ac_cv_func_dlopen" = x""yes; then :
  10975. lt_cv_dlopen="dlopen"
  10976. else
  10977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10978. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10979. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10980. $as_echo_n "(cached) " >&6
  10981. else
  10982. ac_check_lib_save_LIBS=$LIBS
  10983. LIBS="-ldl $LIBS"
  10984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10985. /* end confdefs.h. */
  10986. /* Override any GCC internal prototype to avoid an error.
  10987. Use char because int might match the return type of a GCC
  10988. builtin and then its argument prototype would still apply. */
  10989. #ifdef __cplusplus
  10990. extern "C"
  10991. #endif
  10992. char dlopen ();
  10993. int
  10994. main ()
  10995. {
  10996. return dlopen ();
  10997. ;
  10998. return 0;
  10999. }
  11000. _ACEOF
  11001. if ac_fn_c_try_link "$LINENO"; then :
  11002. ac_cv_lib_dl_dlopen=yes
  11003. else
  11004. ac_cv_lib_dl_dlopen=no
  11005. fi
  11006. rm -f core conftest.err conftest.$ac_objext \
  11007. conftest$ac_exeext conftest.$ac_ext
  11008. LIBS=$ac_check_lib_save_LIBS
  11009. fi
  11010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11011. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11012. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  11013. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11014. else
  11015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11016. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11017. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  11018. $as_echo_n "(cached) " >&6
  11019. else
  11020. ac_check_lib_save_LIBS=$LIBS
  11021. LIBS="-lsvld $LIBS"
  11022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11023. /* end confdefs.h. */
  11024. /* Override any GCC internal prototype to avoid an error.
  11025. Use char because int might match the return type of a GCC
  11026. builtin and then its argument prototype would still apply. */
  11027. #ifdef __cplusplus
  11028. extern "C"
  11029. #endif
  11030. char dlopen ();
  11031. int
  11032. main ()
  11033. {
  11034. return dlopen ();
  11035. ;
  11036. return 0;
  11037. }
  11038. _ACEOF
  11039. if ac_fn_c_try_link "$LINENO"; then :
  11040. ac_cv_lib_svld_dlopen=yes
  11041. else
  11042. ac_cv_lib_svld_dlopen=no
  11043. fi
  11044. rm -f core conftest.err conftest.$ac_objext \
  11045. conftest$ac_exeext conftest.$ac_ext
  11046. LIBS=$ac_check_lib_save_LIBS
  11047. fi
  11048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11049. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11050. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  11051. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11052. else
  11053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11054. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11055. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  11056. $as_echo_n "(cached) " >&6
  11057. else
  11058. ac_check_lib_save_LIBS=$LIBS
  11059. LIBS="-ldld $LIBS"
  11060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11061. /* end confdefs.h. */
  11062. /* Override any GCC internal prototype to avoid an error.
  11063. Use char because int might match the return type of a GCC
  11064. builtin and then its argument prototype would still apply. */
  11065. #ifdef __cplusplus
  11066. extern "C"
  11067. #endif
  11068. char dld_link ();
  11069. int
  11070. main ()
  11071. {
  11072. return dld_link ();
  11073. ;
  11074. return 0;
  11075. }
  11076. _ACEOF
  11077. if ac_fn_c_try_link "$LINENO"; then :
  11078. ac_cv_lib_dld_dld_link=yes
  11079. else
  11080. ac_cv_lib_dld_dld_link=no
  11081. fi
  11082. rm -f core conftest.err conftest.$ac_objext \
  11083. conftest$ac_exeext conftest.$ac_ext
  11084. LIBS=$ac_check_lib_save_LIBS
  11085. fi
  11086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11087. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11088. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  11089. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  11090. fi
  11091. fi
  11092. fi
  11093. fi
  11094. fi
  11095. fi
  11096. ;;
  11097. esac
  11098. if test "x$lt_cv_dlopen" != xno; then
  11099. enable_dlopen=yes
  11100. else
  11101. enable_dlopen=no
  11102. fi
  11103. case $lt_cv_dlopen in
  11104. dlopen)
  11105. save_CPPFLAGS="$CPPFLAGS"
  11106. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11107. save_LDFLAGS="$LDFLAGS"
  11108. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11109. save_LIBS="$LIBS"
  11110. LIBS="$lt_cv_dlopen_libs $LIBS"
  11111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11112. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11113. if test "${lt_cv_dlopen_self+set}" = set; then :
  11114. $as_echo_n "(cached) " >&6
  11115. else
  11116. if test "$cross_compiling" = yes; then :
  11117. lt_cv_dlopen_self=cross
  11118. else
  11119. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11120. lt_status=$lt_dlunknown
  11121. cat > conftest.$ac_ext <<EOF
  11122. #line 12457 "configure"
  11123. #include "confdefs.h"
  11124. #if HAVE_DLFCN_H
  11125. #include <dlfcn.h>
  11126. #endif
  11127. #include <stdio.h>
  11128. #ifdef RTLD_GLOBAL
  11129. # define LT_DLGLOBAL RTLD_GLOBAL
  11130. #else
  11131. # ifdef DL_GLOBAL
  11132. # define LT_DLGLOBAL DL_GLOBAL
  11133. # else
  11134. # define LT_DLGLOBAL 0
  11135. # endif
  11136. #endif
  11137. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11138. find out it does not work in some platform. */
  11139. #ifndef LT_DLLAZY_OR_NOW
  11140. # ifdef RTLD_LAZY
  11141. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11142. # else
  11143. # ifdef DL_LAZY
  11144. # define LT_DLLAZY_OR_NOW DL_LAZY
  11145. # else
  11146. # ifdef RTLD_NOW
  11147. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11148. # else
  11149. # ifdef DL_NOW
  11150. # define LT_DLLAZY_OR_NOW DL_NOW
  11151. # else
  11152. # define LT_DLLAZY_OR_NOW 0
  11153. # endif
  11154. # endif
  11155. # endif
  11156. # endif
  11157. #endif
  11158. #ifdef __cplusplus
  11159. extern "C" void exit (int);
  11160. #endif
  11161. void fnord() { int i=42;}
  11162. int main ()
  11163. {
  11164. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11165. int status = $lt_dlunknown;
  11166. if (self)
  11167. {
  11168. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11169. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11170. /* dlclose (self); */
  11171. }
  11172. exit (status);
  11173. }
  11174. EOF
  11175. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11176. (eval $ac_link) 2>&5
  11177. ac_status=$?
  11178. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11179. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11180. (./conftest; exit; ) >&5 2>/dev/null
  11181. lt_status=$?
  11182. case x$lt_status in
  11183. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11184. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11185. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  11186. esac
  11187. else :
  11188. # compilation failed
  11189. lt_cv_dlopen_self=no
  11190. fi
  11191. fi
  11192. rm -fr conftest*
  11193. fi
  11194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11195. $as_echo "$lt_cv_dlopen_self" >&6; }
  11196. if test "x$lt_cv_dlopen_self" = xyes; then
  11197. LDFLAGS="$LDFLAGS $link_static_flag"
  11198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11199. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11200. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  11201. $as_echo_n "(cached) " >&6
  11202. else
  11203. if test "$cross_compiling" = yes; then :
  11204. lt_cv_dlopen_self_static=cross
  11205. else
  11206. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11207. lt_status=$lt_dlunknown
  11208. cat > conftest.$ac_ext <<EOF
  11209. #line 12555 "configure"
  11210. #include "confdefs.h"
  11211. #if HAVE_DLFCN_H
  11212. #include <dlfcn.h>
  11213. #endif
  11214. #include <stdio.h>
  11215. #ifdef RTLD_GLOBAL
  11216. # define LT_DLGLOBAL RTLD_GLOBAL
  11217. #else
  11218. # ifdef DL_GLOBAL
  11219. # define LT_DLGLOBAL DL_GLOBAL
  11220. # else
  11221. # define LT_DLGLOBAL 0
  11222. # endif
  11223. #endif
  11224. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11225. find out it does not work in some platform. */
  11226. #ifndef LT_DLLAZY_OR_NOW
  11227. # ifdef RTLD_LAZY
  11228. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11229. # else
  11230. # ifdef DL_LAZY
  11231. # define LT_DLLAZY_OR_NOW DL_LAZY
  11232. # else
  11233. # ifdef RTLD_NOW
  11234. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11235. # else
  11236. # ifdef DL_NOW
  11237. # define LT_DLLAZY_OR_NOW DL_NOW
  11238. # else
  11239. # define LT_DLLAZY_OR_NOW 0
  11240. # endif
  11241. # endif
  11242. # endif
  11243. # endif
  11244. #endif
  11245. #ifdef __cplusplus
  11246. extern "C" void exit (int);
  11247. #endif
  11248. void fnord() { int i=42;}
  11249. int main ()
  11250. {
  11251. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11252. int status = $lt_dlunknown;
  11253. if (self)
  11254. {
  11255. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11256. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11257. /* dlclose (self); */
  11258. }
  11259. exit (status);
  11260. }
  11261. EOF
  11262. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11263. (eval $ac_link) 2>&5
  11264. ac_status=$?
  11265. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11266. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11267. (./conftest; exit; ) >&5 2>/dev/null
  11268. lt_status=$?
  11269. case x$lt_status in
  11270. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11271. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11272. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  11273. esac
  11274. else :
  11275. # compilation failed
  11276. lt_cv_dlopen_self_static=no
  11277. fi
  11278. fi
  11279. rm -fr conftest*
  11280. fi
  11281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11282. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11283. fi
  11284. CPPFLAGS="$save_CPPFLAGS"
  11285. LDFLAGS="$save_LDFLAGS"
  11286. LIBS="$save_LIBS"
  11287. ;;
  11288. esac
  11289. case $lt_cv_dlopen_self in
  11290. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11291. *) enable_dlopen_self=unknown ;;
  11292. esac
  11293. case $lt_cv_dlopen_self_static in
  11294. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11295. *) enable_dlopen_self_static=unknown ;;
  11296. esac
  11297. fi
  11298. # Report which librarie types wil actually be built
  11299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11300. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11302. $as_echo "$can_build_shared" >&6; }
  11303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11304. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11305. test "$can_build_shared" = "no" && enable_shared=no
  11306. # On AIX, shared libraries and static libraries use the same namespace, and
  11307. # are all built from PIC.
  11308. case $host_os in
  11309. aix3*)
  11310. test "$enable_shared" = yes && enable_static=no
  11311. if test -n "$RANLIB"; then
  11312. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11313. postinstall_cmds='$RANLIB $lib'
  11314. fi
  11315. ;;
  11316. aix4* | aix5*)
  11317. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11318. test "$enable_shared" = yes && enable_static=no
  11319. fi
  11320. ;;
  11321. esac
  11322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11323. $as_echo "$enable_shared" >&6; }
  11324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11325. $as_echo_n "checking whether to build static libraries... " >&6; }
  11326. # Make sure either enable_shared or enable_static is yes.
  11327. test "$enable_shared" = yes || enable_static=yes
  11328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11329. $as_echo "$enable_static" >&6; }
  11330. # The else clause should only fire when bootstrapping the
  11331. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11332. # with your package, and you will get complaints that there are
  11333. # no rules to generate ltmain.sh.
  11334. if test -f "$ltmain"; then
  11335. # See if we are running on zsh, and set the options which allow our commands through
  11336. # without removal of \ escapes.
  11337. if test -n "${ZSH_VERSION+set}" ; then
  11338. setopt NO_GLOB_SUBST
  11339. fi
  11340. # Now quote all the things that may contain metacharacters while being
  11341. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11342. # variables and quote the copies for generation of the libtool script.
  11343. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  11344. SED SHELL STRIP \
  11345. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11346. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11347. deplibs_check_method reload_flag reload_cmds need_locks \
  11348. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11349. lt_cv_sys_global_symbol_to_c_name_address \
  11350. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11351. old_postinstall_cmds old_postuninstall_cmds \
  11352. compiler \
  11353. CC \
  11354. LD \
  11355. lt_prog_compiler_wl \
  11356. lt_prog_compiler_pic \
  11357. lt_prog_compiler_static \
  11358. lt_prog_compiler_no_builtin_flag \
  11359. export_dynamic_flag_spec \
  11360. thread_safe_flag_spec \
  11361. whole_archive_flag_spec \
  11362. enable_shared_with_static_runtimes \
  11363. old_archive_cmds \
  11364. old_archive_from_new_cmds \
  11365. predep_objects \
  11366. postdep_objects \
  11367. predeps \
  11368. postdeps \
  11369. compiler_lib_search_path \
  11370. archive_cmds \
  11371. archive_expsym_cmds \
  11372. postinstall_cmds \
  11373. postuninstall_cmds \
  11374. old_archive_from_expsyms_cmds \
  11375. allow_undefined_flag \
  11376. no_undefined_flag \
  11377. export_symbols_cmds \
  11378. hardcode_libdir_flag_spec \
  11379. hardcode_libdir_flag_spec_ld \
  11380. hardcode_libdir_separator \
  11381. hardcode_automatic \
  11382. module_cmds \
  11383. module_expsym_cmds \
  11384. lt_cv_prog_compiler_c_o \
  11385. exclude_expsyms \
  11386. include_expsyms; do
  11387. case $var in
  11388. old_archive_cmds | \
  11389. old_archive_from_new_cmds | \
  11390. archive_cmds | \
  11391. archive_expsym_cmds | \
  11392. module_cmds | \
  11393. module_expsym_cmds | \
  11394. old_archive_from_expsyms_cmds | \
  11395. export_symbols_cmds | \
  11396. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11397. postinstall_cmds | postuninstall_cmds | \
  11398. old_postinstall_cmds | old_postuninstall_cmds | \
  11399. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11400. # Double-quote double-evaled strings.
  11401. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11402. ;;
  11403. *)
  11404. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11405. ;;
  11406. esac
  11407. done
  11408. case $lt_echo in
  11409. *'\$0 --fallback-echo"')
  11410. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11411. ;;
  11412. esac
  11413. cfgfile="${ofile}T"
  11414. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  11415. $rm -f "$cfgfile"
  11416. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
  11417. $as_echo "$as_me: creating $ofile" >&6;}
  11418. cat <<__EOF__ >> "$cfgfile"
  11419. #! $SHELL
  11420. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11421. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  11422. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11423. #
  11424. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  11425. # Free Software Foundation, Inc.
  11426. #
  11427. # This file is part of GNU Libtool:
  11428. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  11429. #
  11430. # This program is free software; you can redistribute it and/or modify
  11431. # it under the terms of the GNU General Public License as published by
  11432. # the Free Software Foundation; either version 2 of the License, or
  11433. # (at your option) any later version.
  11434. #
  11435. # This program is distributed in the hope that it will be useful, but
  11436. # WITHOUT ANY WARRANTY; without even the implied warranty of
  11437. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11438. # General Public License for more details.
  11439. #
  11440. # You should have received a copy of the GNU General Public License
  11441. # along with this program; if not, write to the Free Software
  11442. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11443. #
  11444. # As a special exception to the GNU General Public License, if you
  11445. # distribute this file as part of a program that contains a
  11446. # configuration script generated by Autoconf, you may include it under
  11447. # the same distribution terms that you use for the rest of that program.
  11448. # A sed program that does not truncate output.
  11449. SED=$lt_SED
  11450. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11451. Xsed="$SED -e 1s/^X//"
  11452. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11453. # if CDPATH is set.
  11454. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11455. # The names of the tagged configurations supported by this script.
  11456. available_tags=
  11457. # ### BEGIN LIBTOOL CONFIG
  11458. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11459. # Shell to use when invoking shell scripts.
  11460. SHELL=$lt_SHELL
  11461. # Whether or not to build shared libraries.
  11462. build_libtool_libs=$enable_shared
  11463. # Whether or not to build static libraries.
  11464. build_old_libs=$enable_static
  11465. # Whether or not to add -lc for building shared libraries.
  11466. build_libtool_need_lc=$archive_cmds_need_lc
  11467. # Whether or not to disallow shared libs when runtime libs are static
  11468. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11469. # Whether or not to optimize for fast installation.
  11470. fast_install=$enable_fast_install
  11471. # The host system.
  11472. host_alias=$host_alias
  11473. host=$host
  11474. host_os=$host_os
  11475. # The build system.
  11476. build_alias=$build_alias
  11477. build=$build
  11478. build_os=$build_os
  11479. # An echo program that does not interpret backslashes.
  11480. echo=$lt_echo
  11481. # The archiver.
  11482. AR=$lt_AR
  11483. AR_FLAGS=$lt_AR_FLAGS
  11484. # A C compiler.
  11485. LTCC=$lt_LTCC
  11486. # A language-specific compiler.
  11487. CC=$lt_compiler
  11488. # Is the compiler the GNU C compiler?
  11489. with_gcc=$GCC
  11490. # An ERE matcher.
  11491. EGREP=$lt_EGREP
  11492. # The linker used to build libraries.
  11493. LD=$lt_LD
  11494. # Whether we need hard or soft links.
  11495. LN_S=$lt_LN_S
  11496. # A BSD-compatible nm program.
  11497. NM=$lt_NM
  11498. # A symbol stripping program
  11499. STRIP=$lt_STRIP
  11500. # Used to examine libraries when file_magic_cmd begins "file"
  11501. MAGIC_CMD=$MAGIC_CMD
  11502. # Used on cygwin: DLL creation program.
  11503. DLLTOOL="$DLLTOOL"
  11504. # Used on cygwin: object dumper.
  11505. OBJDUMP="$OBJDUMP"
  11506. # Used on cygwin: assembler.
  11507. AS="$AS"
  11508. # The name of the directory that contains temporary libtool files.
  11509. objdir=$objdir
  11510. # How to create reloadable object files.
  11511. reload_flag=$lt_reload_flag
  11512. reload_cmds=$lt_reload_cmds
  11513. # How to pass a linker flag through the compiler.
  11514. wl=$lt_lt_prog_compiler_wl
  11515. # Object file suffix (normally "o").
  11516. objext="$ac_objext"
  11517. # Old archive suffix (normally "a").
  11518. libext="$libext"
  11519. # Shared library suffix (normally ".so").
  11520. shrext_cmds='$shrext_cmds'
  11521. # Executable file suffix (normally "").
  11522. exeext="$exeext"
  11523. # Additional compiler flags for building library objects.
  11524. pic_flag=$lt_lt_prog_compiler_pic
  11525. pic_mode=$pic_mode
  11526. # What is the maximum length of a command?
  11527. max_cmd_len=$lt_cv_sys_max_cmd_len
  11528. # Does compiler simultaneously support -c and -o options?
  11529. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11530. # Must we lock files when doing compilation?
  11531. need_locks=$lt_need_locks
  11532. # Do we need the lib prefix for modules?
  11533. need_lib_prefix=$need_lib_prefix
  11534. # Do we need a version for libraries?
  11535. need_version=$need_version
  11536. # Whether dlopen is supported.
  11537. dlopen_support=$enable_dlopen
  11538. # Whether dlopen of programs is supported.
  11539. dlopen_self=$enable_dlopen_self
  11540. # Whether dlopen of statically linked programs is supported.
  11541. dlopen_self_static=$enable_dlopen_self_static
  11542. # Compiler flag to prevent dynamic linking.
  11543. link_static_flag=$lt_lt_prog_compiler_static
  11544. # Compiler flag to turn off builtin functions.
  11545. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11546. # Compiler flag to allow reflexive dlopens.
  11547. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11548. # Compiler flag to generate shared objects directly from archives.
  11549. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11550. # Compiler flag to generate thread-safe objects.
  11551. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  11552. # Library versioning type.
  11553. version_type=$version_type
  11554. # Format of library name prefix.
  11555. libname_spec=$lt_libname_spec
  11556. # List of archive names. First name is the real one, the rest are links.
  11557. # The last name is the one that the linker finds with -lNAME.
  11558. library_names_spec=$lt_library_names_spec
  11559. # The coded name of the library, if different from the real name.
  11560. soname_spec=$lt_soname_spec
  11561. # Commands used to build and install an old-style archive.
  11562. RANLIB=$lt_RANLIB
  11563. old_archive_cmds=$lt_old_archive_cmds
  11564. old_postinstall_cmds=$lt_old_postinstall_cmds
  11565. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11566. # Create an old-style archive from a shared archive.
  11567. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11568. # Create a temporary old-style archive to link instead of a shared archive.
  11569. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11570. # Commands used to build and install a shared archive.
  11571. archive_cmds=$lt_archive_cmds
  11572. archive_expsym_cmds=$lt_archive_expsym_cmds
  11573. postinstall_cmds=$lt_postinstall_cmds
  11574. postuninstall_cmds=$lt_postuninstall_cmds
  11575. # Commands used to build a loadable module (assumed same as above if empty)
  11576. module_cmds=$lt_module_cmds
  11577. module_expsym_cmds=$lt_module_expsym_cmds
  11578. # Commands to strip libraries.
  11579. old_striplib=$lt_old_striplib
  11580. striplib=$lt_striplib
  11581. # Dependencies to place before the objects being linked to create a
  11582. # shared library.
  11583. predep_objects=$lt_predep_objects
  11584. # Dependencies to place after the objects being linked to create a
  11585. # shared library.
  11586. postdep_objects=$lt_postdep_objects
  11587. # Dependencies to place before the objects being linked to create a
  11588. # shared library.
  11589. predeps=$lt_predeps
  11590. # Dependencies to place after the objects being linked to create a
  11591. # shared library.
  11592. postdeps=$lt_postdeps
  11593. # The library search path used internally by the compiler when linking
  11594. # a shared library.
  11595. compiler_lib_search_path=$lt_compiler_lib_search_path
  11596. # Method to check whether dependent libraries are shared objects.
  11597. deplibs_check_method=$lt_deplibs_check_method
  11598. # Command to use when deplibs_check_method == file_magic.
  11599. file_magic_cmd=$lt_file_magic_cmd
  11600. # Flag that allows shared libraries with undefined symbols to be built.
  11601. allow_undefined_flag=$lt_allow_undefined_flag
  11602. # Flag that forces no undefined symbols.
  11603. no_undefined_flag=$lt_no_undefined_flag
  11604. # Commands used to finish a libtool library installation in a directory.
  11605. finish_cmds=$lt_finish_cmds
  11606. # Same as above, but a single script fragment to be evaled but not shown.
  11607. finish_eval=$lt_finish_eval
  11608. # Take the output of nm and produce a listing of raw symbols and C names.
  11609. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11610. # Transform the output of nm in a proper C declaration
  11611. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11612. # Transform the output of nm in a C name address pair
  11613. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11614. # This is the shared library runtime path variable.
  11615. runpath_var=$runpath_var
  11616. # This is the shared library path variable.
  11617. shlibpath_var=$shlibpath_var
  11618. # Is shlibpath searched before the hard-coded library search path?
  11619. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11620. # How to hardcode a shared library path into an executable.
  11621. hardcode_action=$hardcode_action
  11622. # Whether we should hardcode library paths into libraries.
  11623. hardcode_into_libs=$hardcode_into_libs
  11624. # Flag to hardcode \$libdir into a binary during linking.
  11625. # This must work even if \$libdir does not exist.
  11626. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11627. # If ld is used when linking, flag to hardcode \$libdir into
  11628. # a binary during linking. This must work even if \$libdir does
  11629. # not exist.
  11630. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11631. # Whether we need a single -rpath flag with a separated argument.
  11632. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11633. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11634. # resulting binary.
  11635. hardcode_direct=$hardcode_direct
  11636. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11637. # resulting binary.
  11638. hardcode_minus_L=$hardcode_minus_L
  11639. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11640. # the resulting binary.
  11641. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11642. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11643. # and all subsequent libraries and executables linked against it.
  11644. hardcode_automatic=$hardcode_automatic
  11645. # Variables whose values should be saved in libtool wrapper scripts and
  11646. # restored at relink time.
  11647. variables_saved_for_relink="$variables_saved_for_relink"
  11648. # Whether libtool must link a program against all its dependency libraries.
  11649. link_all_deplibs=$link_all_deplibs
  11650. # Compile-time system search path for libraries
  11651. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11652. # Run-time system search path for libraries
  11653. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11654. # Fix the shell variable \$srcfile for the compiler.
  11655. fix_srcfile_path="$fix_srcfile_path"
  11656. # Set to yes if exported symbols are required.
  11657. always_export_symbols=$always_export_symbols
  11658. # The commands to list exported symbols.
  11659. export_symbols_cmds=$lt_export_symbols_cmds
  11660. # The commands to extract the exported symbol list from a shared archive.
  11661. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11662. # Symbols that should not be listed in the preloaded symbols.
  11663. exclude_expsyms=$lt_exclude_expsyms
  11664. # Symbols that must always be exported.
  11665. include_expsyms=$lt_include_expsyms
  11666. # ### END LIBTOOL CONFIG
  11667. __EOF__
  11668. case $host_os in
  11669. aix3*)
  11670. cat <<\EOF >> "$cfgfile"
  11671. # AIX sometimes has problems with the GCC collect2 program. For some
  11672. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11673. # vanish in a puff of smoke.
  11674. if test "X${COLLECT_NAMES+set}" != Xset; then
  11675. COLLECT_NAMES=
  11676. export COLLECT_NAMES
  11677. fi
  11678. EOF
  11679. ;;
  11680. esac
  11681. # We use sed instead of cat because bash on DJGPP gets confused if
  11682. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11683. # text mode, it properly converts lines to CR/LF. This bash problem
  11684. # is reportedly fixed, but why not run on old versions too?
  11685. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  11686. mv -f "$cfgfile" "$ofile" || \
  11687. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11688. chmod +x "$ofile"
  11689. else
  11690. # If there is no Makefile yet, we rely on a make rule to execute
  11691. # `config.status --recheck' to rerun these tests and create the
  11692. # libtool script then.
  11693. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11694. if test -f "$ltmain_in"; then
  11695. test -f Makefile && make "$ltmain"
  11696. fi
  11697. fi
  11698. ac_ext=c
  11699. ac_cpp='$CPP $CPPFLAGS'
  11700. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11701. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11702. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11703. CC="$lt_save_CC"
  11704. # Check whether --with-tags was given.
  11705. if test "${with_tags+set}" = set; then :
  11706. withval=$with_tags; tagnames="$withval"
  11707. fi
  11708. if test -f "$ltmain" && test -n "$tagnames"; then
  11709. if test ! -f "${ofile}"; then
  11710. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
  11711. $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  11712. fi
  11713. if test -z "$LTCC"; then
  11714. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  11715. if test -z "$LTCC"; then
  11716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  11717. $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  11718. else
  11719. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  11720. $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  11721. fi
  11722. fi
  11723. # Extract list of available tagged configurations in $ofile.
  11724. # Note that this assumes the entire list is on one line.
  11725. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  11726. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11727. for tagname in $tagnames; do
  11728. IFS="$lt_save_ifs"
  11729. # Check whether tagname contains only valid characters
  11730. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  11731. "") ;;
  11732. *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
  11733. ;;
  11734. esac
  11735. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  11736. then
  11737. as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
  11738. fi
  11739. # Update the list of available tags.
  11740. if test -n "$tagname"; then
  11741. echo appending configuration tag \"$tagname\" to $ofile
  11742. case $tagname in
  11743. CXX)
  11744. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  11745. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  11746. (test "X$CXX" != "Xg++"))) ; then
  11747. :
  11748. else
  11749. tagname=""
  11750. fi
  11751. ;;
  11752. F77)
  11753. if test -n "$F77" && test "X$F77" != "Xno"; then
  11754. :
  11755. else
  11756. tagname=""
  11757. fi
  11758. ;;
  11759. GCJ)
  11760. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  11761. # Source file extension for Java test sources.
  11762. ac_ext=java
  11763. # Object file extension for compiled Java test sources.
  11764. objext=o
  11765. objext_GCJ=$objext
  11766. # Code to be used in simple compile tests
  11767. lt_simple_compile_test_code="class foo {}\n"
  11768. # Code to be used in simple link tests
  11769. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  11770. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11771. # If no C compiler was specified, use CC.
  11772. LTCC=${LTCC-"$CC"}
  11773. # Allow CC to be a program name with arguments.
  11774. compiler=$CC
  11775. # save warnings/boilerplate of simple test code
  11776. ac_outfile=conftest.$ac_objext
  11777. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11778. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  11779. _lt_compiler_boilerplate=`cat conftest.err`
  11780. $rm conftest*
  11781. ac_outfile=conftest.$ac_objext
  11782. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11783. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  11784. _lt_linker_boilerplate=`cat conftest.err`
  11785. $rm conftest*
  11786. # Allow CC to be a program name with arguments.
  11787. lt_save_CC="$CC"
  11788. CC=${GCJ-"gcj"}
  11789. compiler=$CC
  11790. compiler_GCJ=$CC
  11791. for cc_temp in $compiler""; do
  11792. case $cc_temp in
  11793. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11794. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11795. \-*) ;;
  11796. *) break;;
  11797. esac
  11798. done
  11799. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11800. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  11801. archive_cmds_need_lc_GCJ=no
  11802. old_archive_cmds_GCJ=$old_archive_cmds
  11803. lt_prog_compiler_no_builtin_flag_GCJ=
  11804. if test "$GCC" = yes; then
  11805. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  11806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  11807. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  11808. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  11809. $as_echo_n "(cached) " >&6
  11810. else
  11811. lt_cv_prog_compiler_rtti_exceptions=no
  11812. ac_outfile=conftest.$ac_objext
  11813. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11814. lt_compiler_flag="-fno-rtti -fno-exceptions"
  11815. # Insert the option either (1) after the last *FLAGS variable, or
  11816. # (2) before a word containing "conftest.", or (3) at the end.
  11817. # Note that $ac_compile itself does not contain backslashes and begins
  11818. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11819. # The option is referenced via a variable to avoid confusing sed.
  11820. lt_compile=`echo "$ac_compile" | $SED \
  11821. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11822. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11823. -e 's:$: $lt_compiler_flag:'`
  11824. (eval echo "\"\$as_me:13334: $lt_compile\"" >&5)
  11825. (eval "$lt_compile" 2>conftest.err)
  11826. ac_status=$?
  11827. cat conftest.err >&5
  11828. echo "$as_me:13338: \$? = $ac_status" >&5
  11829. if (exit $ac_status) && test -s "$ac_outfile"; then
  11830. # The compiler can only warn and ignore the option if not recognized
  11831. # So say no if there are warnings other than the usual output.
  11832. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  11833. $SED '/^$/d' conftest.err >conftest.er2
  11834. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  11835. lt_cv_prog_compiler_rtti_exceptions=yes
  11836. fi
  11837. fi
  11838. $rm conftest*
  11839. fi
  11840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  11841. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  11842. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  11843. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  11844. else
  11845. :
  11846. fi
  11847. fi
  11848. lt_prog_compiler_wl_GCJ=
  11849. lt_prog_compiler_pic_GCJ=
  11850. lt_prog_compiler_static_GCJ=
  11851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11852. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11853. if test "$GCC" = yes; then
  11854. lt_prog_compiler_wl_GCJ='-Wl,'
  11855. lt_prog_compiler_static_GCJ='-static'
  11856. case $host_os in
  11857. aix*)
  11858. # All AIX code is PIC.
  11859. if test "$host_cpu" = ia64; then
  11860. # AIX 5 now supports IA64 processor
  11861. lt_prog_compiler_static_GCJ='-Bstatic'
  11862. fi
  11863. ;;
  11864. amigaos*)
  11865. # FIXME: we need at least 68020 code to build shared libraries, but
  11866. # adding the `-m68020' flag to GCC prevents building anything better,
  11867. # like `-m68040'.
  11868. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  11869. ;;
  11870. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11871. # PIC is the default for these OSes.
  11872. ;;
  11873. mingw* | pw32* | os2*)
  11874. # This hack is so that the source file can tell whether it is being
  11875. # built for inclusion in a dll (and should export symbols for example).
  11876. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  11877. ;;
  11878. darwin* | rhapsody*)
  11879. # PIC is the default on this platform
  11880. # Common symbols not allowed in MH_DYLIB files
  11881. lt_prog_compiler_pic_GCJ='-fno-common'
  11882. ;;
  11883. msdosdjgpp*)
  11884. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11885. # on systems that don't support them.
  11886. lt_prog_compiler_can_build_shared_GCJ=no
  11887. enable_shared=no
  11888. ;;
  11889. sysv4*MP*)
  11890. if test -d /usr/nec; then
  11891. lt_prog_compiler_pic_GCJ=-Kconform_pic
  11892. fi
  11893. ;;
  11894. hpux*)
  11895. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11896. # not for PA HP-UX.
  11897. case $host_cpu in
  11898. hppa*64*|ia64*)
  11899. # +Z the default
  11900. ;;
  11901. *)
  11902. lt_prog_compiler_pic_GCJ='-fPIC'
  11903. ;;
  11904. esac
  11905. ;;
  11906. *)
  11907. lt_prog_compiler_pic_GCJ='-fPIC'
  11908. ;;
  11909. esac
  11910. else
  11911. # PORTME Check for flag to pass linker flags through the system compiler.
  11912. case $host_os in
  11913. aix*)
  11914. lt_prog_compiler_wl_GCJ='-Wl,'
  11915. if test "$host_cpu" = ia64; then
  11916. # AIX 5 now supports IA64 processor
  11917. lt_prog_compiler_static_GCJ='-Bstatic'
  11918. else
  11919. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  11920. fi
  11921. ;;
  11922. darwin*)
  11923. # PIC is the default on this platform
  11924. # Common symbols not allowed in MH_DYLIB files
  11925. case $cc_basename in
  11926. xlc*)
  11927. lt_prog_compiler_pic_GCJ='-qnocommon'
  11928. lt_prog_compiler_wl_GCJ='-Wl,'
  11929. ;;
  11930. esac
  11931. ;;
  11932. mingw* | pw32* | os2*)
  11933. # This hack is so that the source file can tell whether it is being
  11934. # built for inclusion in a dll (and should export symbols for example).
  11935. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  11936. ;;
  11937. hpux9* | hpux10* | hpux11*)
  11938. lt_prog_compiler_wl_GCJ='-Wl,'
  11939. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11940. # not for PA HP-UX.
  11941. case $host_cpu in
  11942. hppa*64*|ia64*)
  11943. # +Z the default
  11944. ;;
  11945. *)
  11946. lt_prog_compiler_pic_GCJ='+Z'
  11947. ;;
  11948. esac
  11949. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11950. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  11951. ;;
  11952. irix5* | irix6* | nonstopux*)
  11953. lt_prog_compiler_wl_GCJ='-Wl,'
  11954. # PIC (with -KPIC) is the default.
  11955. lt_prog_compiler_static_GCJ='-non_shared'
  11956. ;;
  11957. newsos6)
  11958. lt_prog_compiler_pic_GCJ='-KPIC'
  11959. lt_prog_compiler_static_GCJ='-Bstatic'
  11960. ;;
  11961. linux*)
  11962. case $cc_basename in
  11963. icc* | ecc*)
  11964. lt_prog_compiler_wl_GCJ='-Wl,'
  11965. lt_prog_compiler_pic_GCJ='-KPIC'
  11966. lt_prog_compiler_static_GCJ='-static'
  11967. ;;
  11968. pgcc* | pgf77* | pgf90* | pgf95*)
  11969. # Portland Group compilers (*not* the Pentium gcc compiler,
  11970. # which looks to be a dead project)
  11971. lt_prog_compiler_wl_GCJ='-Wl,'
  11972. lt_prog_compiler_pic_GCJ='-fpic'
  11973. lt_prog_compiler_static_GCJ='-Bstatic'
  11974. ;;
  11975. ccc*)
  11976. lt_prog_compiler_wl_GCJ='-Wl,'
  11977. # All Alpha code is PIC.
  11978. lt_prog_compiler_static_GCJ='-non_shared'
  11979. ;;
  11980. esac
  11981. ;;
  11982. osf3* | osf4* | osf5*)
  11983. lt_prog_compiler_wl_GCJ='-Wl,'
  11984. # All OSF/1 code is PIC.
  11985. lt_prog_compiler_static_GCJ='-non_shared'
  11986. ;;
  11987. sco3.2v5*)
  11988. lt_prog_compiler_pic_GCJ='-Kpic'
  11989. lt_prog_compiler_static_GCJ='-dn'
  11990. ;;
  11991. solaris*)
  11992. lt_prog_compiler_pic_GCJ='-KPIC'
  11993. lt_prog_compiler_static_GCJ='-Bstatic'
  11994. case $cc_basename in
  11995. f77* | f90* | f95*)
  11996. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  11997. *)
  11998. lt_prog_compiler_wl_GCJ='-Wl,';;
  11999. esac
  12000. ;;
  12001. sunos4*)
  12002. lt_prog_compiler_wl_GCJ='-Qoption ld '
  12003. lt_prog_compiler_pic_GCJ='-PIC'
  12004. lt_prog_compiler_static_GCJ='-Bstatic'
  12005. ;;
  12006. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12007. lt_prog_compiler_wl_GCJ='-Wl,'
  12008. lt_prog_compiler_pic_GCJ='-KPIC'
  12009. lt_prog_compiler_static_GCJ='-Bstatic'
  12010. ;;
  12011. sysv4*MP*)
  12012. if test -d /usr/nec ;then
  12013. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  12014. lt_prog_compiler_static_GCJ='-Bstatic'
  12015. fi
  12016. ;;
  12017. unicos*)
  12018. lt_prog_compiler_wl_GCJ='-Wl,'
  12019. lt_prog_compiler_can_build_shared_GCJ=no
  12020. ;;
  12021. uts4*)
  12022. lt_prog_compiler_pic_GCJ='-pic'
  12023. lt_prog_compiler_static_GCJ='-Bstatic'
  12024. ;;
  12025. *)
  12026. lt_prog_compiler_can_build_shared_GCJ=no
  12027. ;;
  12028. esac
  12029. fi
  12030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
  12031. $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
  12032. #
  12033. # Check to make sure the PIC flag actually works.
  12034. #
  12035. if test -n "$lt_prog_compiler_pic_GCJ"; then
  12036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  12037. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
  12038. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
  12039. $as_echo_n "(cached) " >&6
  12040. else
  12041. lt_prog_compiler_pic_works_GCJ=no
  12042. ac_outfile=conftest.$ac_objext
  12043. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12044. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  12045. # Insert the option either (1) after the last *FLAGS variable, or
  12046. # (2) before a word containing "conftest.", or (3) at the end.
  12047. # Note that $ac_compile itself does not contain backslashes and begins
  12048. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12049. # The option is referenced via a variable to avoid confusing sed.
  12050. lt_compile=`echo "$ac_compile" | $SED \
  12051. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12052. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12053. -e 's:$: $lt_compiler_flag:'`
  12054. (eval echo "\"\$as_me:13596: $lt_compile\"" >&5)
  12055. (eval "$lt_compile" 2>conftest.err)
  12056. ac_status=$?
  12057. cat conftest.err >&5
  12058. echo "$as_me:13600: \$? = $ac_status" >&5
  12059. if (exit $ac_status) && test -s "$ac_outfile"; then
  12060. # The compiler can only warn and ignore the option if not recognized
  12061. # So say no if there are warnings other than the usual output.
  12062. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  12063. $SED '/^$/d' conftest.err >conftest.er2
  12064. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  12065. lt_prog_compiler_pic_works_GCJ=yes
  12066. fi
  12067. fi
  12068. $rm conftest*
  12069. fi
  12070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
  12071. $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
  12072. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  12073. case $lt_prog_compiler_pic_GCJ in
  12074. "" | " "*) ;;
  12075. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  12076. esac
  12077. else
  12078. lt_prog_compiler_pic_GCJ=
  12079. lt_prog_compiler_can_build_shared_GCJ=no
  12080. fi
  12081. fi
  12082. case $host_os in
  12083. # For platforms which do not support PIC, -DPIC is meaningless:
  12084. *djgpp*)
  12085. lt_prog_compiler_pic_GCJ=
  12086. ;;
  12087. *)
  12088. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  12089. ;;
  12090. esac
  12091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12092. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12093. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
  12094. $as_echo_n "(cached) " >&6
  12095. else
  12096. lt_cv_prog_compiler_c_o_GCJ=no
  12097. $rm -r conftest 2>/dev/null
  12098. mkdir conftest
  12099. cd conftest
  12100. mkdir out
  12101. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12102. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12103. # Insert the option either (1) after the last *FLAGS variable, or
  12104. # (2) before a word containing "conftest.", or (3) at the end.
  12105. # Note that $ac_compile itself does not contain backslashes and begins
  12106. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12107. lt_compile=`echo "$ac_compile" | $SED \
  12108. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12109. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12110. -e 's:$: $lt_compiler_flag:'`
  12111. (eval echo "\"\$as_me:13658: $lt_compile\"" >&5)
  12112. (eval "$lt_compile" 2>out/conftest.err)
  12113. ac_status=$?
  12114. cat out/conftest.err >&5
  12115. echo "$as_me:13662: \$? = $ac_status" >&5
  12116. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12117. then
  12118. # The compiler can only warn and ignore the option if not recognized
  12119. # So say no if there are warnings
  12120. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  12121. $SED '/^$/d' out/conftest.err >out/conftest.er2
  12122. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12123. lt_cv_prog_compiler_c_o_GCJ=yes
  12124. fi
  12125. fi
  12126. chmod u+w . 2>&5
  12127. $rm conftest*
  12128. # SGI C++ compiler will create directory out/ii_files/ for
  12129. # template instantiation
  12130. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12131. $rm out/* && rmdir out
  12132. cd ..
  12133. rmdir conftest
  12134. $rm conftest*
  12135. fi
  12136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  12137. $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  12138. hard_links="nottested"
  12139. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  12140. # do not overwrite the value of need_locks provided by the user
  12141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12142. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12143. hard_links=yes
  12144. $rm conftest*
  12145. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12146. touch conftest.a
  12147. ln conftest.a conftest.b 2>&5 || hard_links=no
  12148. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12150. $as_echo "$hard_links" >&6; }
  12151. if test "$hard_links" = no; then
  12152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12153. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12154. need_locks=warn
  12155. fi
  12156. else
  12157. need_locks=no
  12158. fi
  12159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12160. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12161. runpath_var=
  12162. allow_undefined_flag_GCJ=
  12163. enable_shared_with_static_runtimes_GCJ=no
  12164. archive_cmds_GCJ=
  12165. archive_expsym_cmds_GCJ=
  12166. old_archive_From_new_cmds_GCJ=
  12167. old_archive_from_expsyms_cmds_GCJ=
  12168. export_dynamic_flag_spec_GCJ=
  12169. whole_archive_flag_spec_GCJ=
  12170. thread_safe_flag_spec_GCJ=
  12171. hardcode_libdir_flag_spec_GCJ=
  12172. hardcode_libdir_flag_spec_ld_GCJ=
  12173. hardcode_libdir_separator_GCJ=
  12174. hardcode_direct_GCJ=no
  12175. hardcode_minus_L_GCJ=no
  12176. hardcode_shlibpath_var_GCJ=unsupported
  12177. link_all_deplibs_GCJ=unknown
  12178. hardcode_automatic_GCJ=no
  12179. module_cmds_GCJ=
  12180. module_expsym_cmds_GCJ=
  12181. always_export_symbols_GCJ=no
  12182. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12183. # include_expsyms should be a list of space-separated symbols to be *always*
  12184. # included in the symbol list
  12185. include_expsyms_GCJ=
  12186. # exclude_expsyms can be an extended regexp of symbols to exclude
  12187. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12188. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12189. # as well as any symbol that contains `d'.
  12190. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  12191. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12192. # platforms (ab)use it in PIC code, but their linkers get confused if
  12193. # the symbol is explicitly referenced. Since portable code cannot
  12194. # rely on this symbol name, it's probably fine to never include it in
  12195. # preloaded symbol tables.
  12196. extract_expsyms_cmds=
  12197. # Just being paranoid about ensuring that cc_basename is set.
  12198. for cc_temp in $compiler""; do
  12199. case $cc_temp in
  12200. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12201. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12202. \-*) ;;
  12203. *) break;;
  12204. esac
  12205. done
  12206. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12207. case $host_os in
  12208. cygwin* | mingw* | pw32*)
  12209. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12210. # When not using gcc, we currently assume that we are using
  12211. # Microsoft Visual C++.
  12212. if test "$GCC" != yes; then
  12213. with_gnu_ld=no
  12214. fi
  12215. ;;
  12216. openbsd*)
  12217. with_gnu_ld=no
  12218. ;;
  12219. esac
  12220. ld_shlibs_GCJ=yes
  12221. if test "$with_gnu_ld" = yes; then
  12222. # If archive_cmds runs LD, not CC, wlarc should be empty
  12223. wlarc='${wl}'
  12224. # Set some defaults for GNU ld with shared library support. These
  12225. # are reset later if shared libraries are not supported. Putting them
  12226. # here allows them to be overridden if necessary.
  12227. runpath_var=LD_RUN_PATH
  12228. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  12229. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  12230. # ancient GNU ld didn't support --whole-archive et. al.
  12231. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12232. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12233. else
  12234. whole_archive_flag_spec_GCJ=
  12235. fi
  12236. supports_anon_versioning=no
  12237. case `$LD -v 2>/dev/null` in
  12238. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12239. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12240. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12241. *\ 2.11.*) ;; # other 2.11 versions
  12242. *) supports_anon_versioning=yes ;;
  12243. esac
  12244. # See if GNU ld supports shared libraries.
  12245. case $host_os in
  12246. aix3* | aix4* | aix5*)
  12247. # On AIX/PPC, the GNU linker is very broken
  12248. if test "$host_cpu" != ia64; then
  12249. ld_shlibs_GCJ=no
  12250. cat <<EOF 1>&2
  12251. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12252. *** to be unable to reliably create shared libraries on AIX.
  12253. *** Therefore, libtool is disabling shared libraries support. If you
  12254. *** really care for shared libraries, you may want to modify your PATH
  12255. *** so that a non-GNU linker is found, and then restart.
  12256. EOF
  12257. fi
  12258. ;;
  12259. amigaos*)
  12260. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  12261. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12262. hardcode_minus_L_GCJ=yes
  12263. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  12264. # that the semantics of dynamic libraries on AmigaOS, at least up
  12265. # to version 4, is to share data among multiple programs linked
  12266. # with the same dynamic library. Since this doesn't match the
  12267. # behavior of shared libraries on other platforms, we can't use
  12268. # them.
  12269. ld_shlibs_GCJ=no
  12270. ;;
  12271. beos*)
  12272. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12273. allow_undefined_flag_GCJ=unsupported
  12274. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12275. # support --undefined. This deserves some investigation. FIXME
  12276. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12277. else
  12278. ld_shlibs_GCJ=no
  12279. fi
  12280. ;;
  12281. cygwin* | mingw* | pw32*)
  12282. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  12283. # as there is no search path for DLLs.
  12284. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12285. allow_undefined_flag_GCJ=unsupported
  12286. always_export_symbols_GCJ=no
  12287. enable_shared_with_static_runtimes_GCJ=yes
  12288. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12289. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12290. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  12291. # If the export-symbols file already is a .def file (1st line
  12292. # is EXPORTS), use it as is; otherwise, prepend...
  12293. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12294. cp $export_symbols $output_objdir/$soname.def;
  12295. else
  12296. echo EXPORTS > $output_objdir/$soname.def;
  12297. cat $export_symbols >> $output_objdir/$soname.def;
  12298. fi~
  12299. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  12300. else
  12301. ld_shlibs_GCJ=no
  12302. fi
  12303. ;;
  12304. linux*)
  12305. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12306. tmp_addflag=
  12307. case $cc_basename,$host_cpu in
  12308. pgcc*) # Portland Group C compiler
  12309. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  12310. tmp_addflag=' $pic_flag'
  12311. ;;
  12312. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12313. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  12314. tmp_addflag=' $pic_flag -Mnomain' ;;
  12315. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12316. tmp_addflag=' -i_dynamic' ;;
  12317. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12318. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12319. ifc* | ifort*) # Intel Fortran compiler
  12320. tmp_addflag=' -nofor_main' ;;
  12321. esac
  12322. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12323. if test $supports_anon_versioning = yes; then
  12324. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  12325. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12326. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12327. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12328. fi
  12329. else
  12330. ld_shlibs_GCJ=no
  12331. fi
  12332. ;;
  12333. netbsd*)
  12334. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12335. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12336. wlarc=
  12337. else
  12338. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12339. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12340. fi
  12341. ;;
  12342. solaris* | sysv5*)
  12343. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12344. ld_shlibs_GCJ=no
  12345. cat <<EOF 1>&2
  12346. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12347. *** create shared libraries on Solaris systems. Therefore, libtool
  12348. *** is disabling shared libraries support. We urge you to upgrade GNU
  12349. *** binutils to release 2.9.1 or newer. Another option is to modify
  12350. *** your PATH or compiler configuration so that the native linker is
  12351. *** used, and then restart.
  12352. EOF
  12353. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12354. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12355. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12356. else
  12357. ld_shlibs_GCJ=no
  12358. fi
  12359. ;;
  12360. sunos4*)
  12361. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12362. wlarc=
  12363. hardcode_direct_GCJ=yes
  12364. hardcode_shlibpath_var_GCJ=no
  12365. ;;
  12366. *)
  12367. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12368. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12369. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12370. else
  12371. ld_shlibs_GCJ=no
  12372. fi
  12373. ;;
  12374. esac
  12375. if test "$ld_shlibs_GCJ" = no; then
  12376. runpath_var=
  12377. hardcode_libdir_flag_spec_GCJ=
  12378. export_dynamic_flag_spec_GCJ=
  12379. whole_archive_flag_spec_GCJ=
  12380. fi
  12381. else
  12382. # PORTME fill in a description of your system's linker (not GNU ld)
  12383. case $host_os in
  12384. aix3*)
  12385. allow_undefined_flag_GCJ=unsupported
  12386. always_export_symbols_GCJ=yes
  12387. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  12388. # Note: this linker hardcodes the directories in LIBPATH if there
  12389. # are no directories specified by -L.
  12390. hardcode_minus_L_GCJ=yes
  12391. if test "$GCC" = yes && test -z "$link_static_flag"; then
  12392. # Neither direct hardcoding nor static linking is supported with a
  12393. # broken collect2.
  12394. hardcode_direct_GCJ=unsupported
  12395. fi
  12396. ;;
  12397. aix4* | aix5*)
  12398. if test "$host_cpu" = ia64; then
  12399. # On IA64, the linker does run time linking by default, so we don't
  12400. # have to do anything special.
  12401. aix_use_runtimelinking=no
  12402. exp_sym_flag='-Bexport'
  12403. no_entry_flag=""
  12404. else
  12405. # If we're using GNU nm, then we don't want the "-C" option.
  12406. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12407. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12408. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12409. else
  12410. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12411. fi
  12412. aix_use_runtimelinking=no
  12413. # Test if we are trying to use run time linking or normal
  12414. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12415. # need to do runtime linking.
  12416. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12417. for ld_flag in $LDFLAGS; do
  12418. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12419. aix_use_runtimelinking=yes
  12420. break
  12421. fi
  12422. done
  12423. esac
  12424. exp_sym_flag='-bexport'
  12425. no_entry_flag='-bnoentry'
  12426. fi
  12427. # When large executables or shared objects are built, AIX ld can
  12428. # have problems creating the table of contents. If linking a library
  12429. # or program results in "error TOC overflow" add -mminimal-toc to
  12430. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12431. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12432. archive_cmds_GCJ=''
  12433. hardcode_direct_GCJ=yes
  12434. hardcode_libdir_separator_GCJ=':'
  12435. link_all_deplibs_GCJ=yes
  12436. if test "$GCC" = yes; then
  12437. case $host_os in aix4.[012]|aix4.[012].*)
  12438. # We only want to do this on AIX 4.2 and lower, the check
  12439. # below for broken collect2 doesn't work under 4.3+
  12440. collect2name=`${CC} -print-prog-name=collect2`
  12441. if test -f "$collect2name" && \
  12442. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12443. then
  12444. # We have reworked collect2
  12445. hardcode_direct_GCJ=yes
  12446. else
  12447. # We have old collect2
  12448. hardcode_direct_GCJ=unsupported
  12449. # It fails to find uninstalled libraries when the uninstalled
  12450. # path is not listed in the libpath. Setting hardcode_minus_L
  12451. # to unsupported forces relinking
  12452. hardcode_minus_L_GCJ=yes
  12453. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12454. hardcode_libdir_separator_GCJ=
  12455. fi
  12456. esac
  12457. shared_flag='-shared'
  12458. if test "$aix_use_runtimelinking" = yes; then
  12459. shared_flag="$shared_flag "'${wl}-G'
  12460. fi
  12461. else
  12462. # not using gcc
  12463. if test "$host_cpu" = ia64; then
  12464. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12465. # chokes on -Wl,-G. The following line is correct:
  12466. shared_flag='-G'
  12467. else
  12468. if test "$aix_use_runtimelinking" = yes; then
  12469. shared_flag='${wl}-G'
  12470. else
  12471. shared_flag='${wl}-bM:SRE'
  12472. fi
  12473. fi
  12474. fi
  12475. # It seems that -bexpall does not export symbols beginning with
  12476. # underscore (_), so it is better to generate a list of symbols to export.
  12477. always_export_symbols_GCJ=yes
  12478. if test "$aix_use_runtimelinking" = yes; then
  12479. # Warning - without using the other runtime loading flags (-brtl),
  12480. # -berok will link without error, but may produce a broken library.
  12481. allow_undefined_flag_GCJ='-berok'
  12482. # Determine the default libpath from the value encoded in an empty executable.
  12483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12484. /* end confdefs.h. */
  12485. int
  12486. main ()
  12487. {
  12488. ;
  12489. return 0;
  12490. }
  12491. _ACEOF
  12492. if ac_fn_c_try_link "$LINENO"; then :
  12493. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12494. }'`
  12495. # Check for a 64-bit object if we didn't find anything.
  12496. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12497. }'`; fi
  12498. fi
  12499. rm -f core conftest.err conftest.$ac_objext \
  12500. conftest$ac_exeext conftest.$ac_ext
  12501. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12502. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  12503. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12504. else
  12505. if test "$host_cpu" = ia64; then
  12506. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  12507. allow_undefined_flag_GCJ="-z nodefs"
  12508. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  12509. else
  12510. # Determine the default libpath from the value encoded in an empty executable.
  12511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12512. /* end confdefs.h. */
  12513. int
  12514. main ()
  12515. {
  12516. ;
  12517. return 0;
  12518. }
  12519. _ACEOF
  12520. if ac_fn_c_try_link "$LINENO"; then :
  12521. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12522. }'`
  12523. # Check for a 64-bit object if we didn't find anything.
  12524. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12525. }'`; fi
  12526. fi
  12527. rm -f core conftest.err conftest.$ac_objext \
  12528. conftest$ac_exeext conftest.$ac_ext
  12529. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12530. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  12531. # Warning - without using the other run time loading flags,
  12532. # -berok will link without error, but may produce a broken library.
  12533. no_undefined_flag_GCJ=' ${wl}-bernotok'
  12534. allow_undefined_flag_GCJ=' ${wl}-berok'
  12535. # -bexpall does not export symbols beginning with underscore (_)
  12536. always_export_symbols_GCJ=yes
  12537. # Exported symbols can be pulled into shared objects from archives
  12538. whole_archive_flag_spec_GCJ=' '
  12539. archive_cmds_need_lc_GCJ=yes
  12540. # This is similar to how AIX traditionally builds its shared libraries.
  12541. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  12542. fi
  12543. fi
  12544. ;;
  12545. amigaos*)
  12546. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  12547. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12548. hardcode_minus_L_GCJ=yes
  12549. # see comment about different semantics on the GNU ld section
  12550. ld_shlibs_GCJ=no
  12551. ;;
  12552. bsdi[45]*)
  12553. export_dynamic_flag_spec_GCJ=-rdynamic
  12554. ;;
  12555. cygwin* | mingw* | pw32*)
  12556. # When not using gcc, we currently assume that we are using
  12557. # Microsoft Visual C++.
  12558. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12559. # no search path for DLLs.
  12560. hardcode_libdir_flag_spec_GCJ=' '
  12561. allow_undefined_flag_GCJ=unsupported
  12562. # Tell ltmain to make .lib files, not .a files.
  12563. libext=lib
  12564. # Tell ltmain to make .dll files, not .so files.
  12565. shrext_cmds=".dll"
  12566. # FIXME: Setting linknames here is a bad hack.
  12567. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12568. # The linker will automatically build a .lib file if we build a DLL.
  12569. old_archive_From_new_cmds_GCJ='true'
  12570. # FIXME: Should let the user specify the lib program.
  12571. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12572. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  12573. enable_shared_with_static_runtimes_GCJ=yes
  12574. ;;
  12575. darwin* | rhapsody*)
  12576. case $host_os in
  12577. rhapsody* | darwin1.[012])
  12578. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  12579. ;;
  12580. *) # Darwin 1.3 on
  12581. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12582. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12583. else
  12584. case ${MACOSX_DEPLOYMENT_TARGET} in
  12585. 10.[012])
  12586. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12587. ;;
  12588. 10.*)
  12589. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  12590. ;;
  12591. esac
  12592. fi
  12593. ;;
  12594. esac
  12595. archive_cmds_need_lc_GCJ=no
  12596. hardcode_direct_GCJ=no
  12597. hardcode_automatic_GCJ=yes
  12598. hardcode_shlibpath_var_GCJ=unsupported
  12599. whole_archive_flag_spec_GCJ=''
  12600. link_all_deplibs_GCJ=yes
  12601. if test "$GCC" = yes ; then
  12602. output_verbose_link_cmd='echo'
  12603. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12604. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12605. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12606. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12607. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12608. else
  12609. case $cc_basename in
  12610. xlc*)
  12611. output_verbose_link_cmd='echo'
  12612. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12613. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12614. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12615. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12616. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12617. ;;
  12618. *)
  12619. ld_shlibs_GCJ=no
  12620. ;;
  12621. esac
  12622. fi
  12623. ;;
  12624. dgux*)
  12625. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12626. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12627. hardcode_shlibpath_var_GCJ=no
  12628. ;;
  12629. freebsd1*)
  12630. ld_shlibs_GCJ=no
  12631. ;;
  12632. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12633. # support. Future versions do this automatically, but an explicit c++rt0.o
  12634. # does not break anything, and helps significantly (at the cost of a little
  12635. # extra space).
  12636. freebsd2.2*)
  12637. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12638. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  12639. hardcode_direct_GCJ=yes
  12640. hardcode_shlibpath_var_GCJ=no
  12641. ;;
  12642. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12643. freebsd2*)
  12644. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12645. hardcode_direct_GCJ=yes
  12646. hardcode_minus_L_GCJ=yes
  12647. hardcode_shlibpath_var_GCJ=no
  12648. ;;
  12649. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12650. freebsd* | kfreebsd*-gnu | dragonfly*)
  12651. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12652. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  12653. hardcode_direct_GCJ=yes
  12654. hardcode_shlibpath_var_GCJ=no
  12655. ;;
  12656. hpux9*)
  12657. if test "$GCC" = yes; then
  12658. archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12659. else
  12660. archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12661. fi
  12662. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  12663. hardcode_libdir_separator_GCJ=:
  12664. hardcode_direct_GCJ=yes
  12665. # hardcode_minus_L: Not really in the search PATH,
  12666. # but as the default location of the library.
  12667. hardcode_minus_L_GCJ=yes
  12668. export_dynamic_flag_spec_GCJ='${wl}-E'
  12669. ;;
  12670. hpux10* | hpux11*)
  12671. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12672. case $host_cpu in
  12673. hppa*64*|ia64*)
  12674. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12675. ;;
  12676. *)
  12677. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12678. ;;
  12679. esac
  12680. else
  12681. case $host_cpu in
  12682. hppa*64*|ia64*)
  12683. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  12684. ;;
  12685. *)
  12686. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12687. ;;
  12688. esac
  12689. fi
  12690. if test "$with_gnu_ld" = no; then
  12691. case $host_cpu in
  12692. hppa*64*)
  12693. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  12694. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  12695. hardcode_libdir_separator_GCJ=:
  12696. hardcode_direct_GCJ=no
  12697. hardcode_shlibpath_var_GCJ=no
  12698. ;;
  12699. ia64*)
  12700. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12701. hardcode_direct_GCJ=no
  12702. hardcode_shlibpath_var_GCJ=no
  12703. # hardcode_minus_L: Not really in the search PATH,
  12704. # but as the default location of the library.
  12705. hardcode_minus_L_GCJ=yes
  12706. ;;
  12707. *)
  12708. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  12709. hardcode_libdir_separator_GCJ=:
  12710. hardcode_direct_GCJ=yes
  12711. export_dynamic_flag_spec_GCJ='${wl}-E'
  12712. # hardcode_minus_L: Not really in the search PATH,
  12713. # but as the default location of the library.
  12714. hardcode_minus_L_GCJ=yes
  12715. ;;
  12716. esac
  12717. fi
  12718. ;;
  12719. irix5* | irix6* | nonstopux*)
  12720. if test "$GCC" = yes; then
  12721. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12722. else
  12723. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12724. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  12725. fi
  12726. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  12727. hardcode_libdir_separator_GCJ=:
  12728. link_all_deplibs_GCJ=yes
  12729. ;;
  12730. netbsd*)
  12731. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12732. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12733. else
  12734. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12735. fi
  12736. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  12737. hardcode_direct_GCJ=yes
  12738. hardcode_shlibpath_var_GCJ=no
  12739. ;;
  12740. newsos6)
  12741. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12742. hardcode_direct_GCJ=yes
  12743. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  12744. hardcode_libdir_separator_GCJ=:
  12745. hardcode_shlibpath_var_GCJ=no
  12746. ;;
  12747. openbsd*)
  12748. hardcode_direct_GCJ=yes
  12749. hardcode_shlibpath_var_GCJ=no
  12750. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12751. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12752. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12753. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  12754. export_dynamic_flag_spec_GCJ='${wl}-E'
  12755. else
  12756. case $host_os in
  12757. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12758. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12759. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  12760. ;;
  12761. *)
  12762. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12763. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  12764. ;;
  12765. esac
  12766. fi
  12767. ;;
  12768. os2*)
  12769. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12770. hardcode_minus_L_GCJ=yes
  12771. allow_undefined_flag_GCJ=unsupported
  12772. archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  12773. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12774. ;;
  12775. osf3*)
  12776. if test "$GCC" = yes; then
  12777. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  12778. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12779. else
  12780. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  12781. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12782. fi
  12783. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  12784. hardcode_libdir_separator_GCJ=:
  12785. ;;
  12786. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12787. if test "$GCC" = yes; then
  12788. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  12789. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12790. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  12791. else
  12792. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  12793. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12794. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  12795. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  12796. # Both c and cxx compiler support -rpath directly
  12797. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  12798. fi
  12799. hardcode_libdir_separator_GCJ=:
  12800. ;;
  12801. sco3.2v5*)
  12802. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12803. hardcode_shlibpath_var_GCJ=no
  12804. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  12805. runpath_var=LD_RUN_PATH
  12806. hardcode_runpath_var=yes
  12807. ;;
  12808. solaris*)
  12809. no_undefined_flag_GCJ=' -z text'
  12810. if test "$GCC" = yes; then
  12811. wlarc='${wl}'
  12812. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12813. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12814. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12815. else
  12816. wlarc=''
  12817. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12818. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12819. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12820. fi
  12821. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  12822. hardcode_shlibpath_var_GCJ=no
  12823. case $host_os in
  12824. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12825. *)
  12826. # The compiler driver will combine linker options so we
  12827. # cannot just pass the convience library names through
  12828. # without $wl, iff we do not link with $LD.
  12829. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12830. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12831. case $wlarc in
  12832. '')
  12833. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  12834. *)
  12835. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  12836. esac ;;
  12837. esac
  12838. link_all_deplibs_GCJ=yes
  12839. ;;
  12840. sunos4*)
  12841. if test "x$host_vendor" = xsequent; then
  12842. # Use $CC to link under sequent, because it throws in some extra .o
  12843. # files that make .init and .fini sections work.
  12844. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12845. else
  12846. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12847. fi
  12848. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12849. hardcode_direct_GCJ=yes
  12850. hardcode_minus_L_GCJ=yes
  12851. hardcode_shlibpath_var_GCJ=no
  12852. ;;
  12853. sysv4)
  12854. case $host_vendor in
  12855. sni)
  12856. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12857. hardcode_direct_GCJ=yes # is this really true???
  12858. ;;
  12859. siemens)
  12860. ## LD is ld it makes a PLAMLIB
  12861. ## CC just makes a GrossModule.
  12862. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12863. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  12864. hardcode_direct_GCJ=no
  12865. ;;
  12866. motorola)
  12867. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12868. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  12869. ;;
  12870. esac
  12871. runpath_var='LD_RUN_PATH'
  12872. hardcode_shlibpath_var_GCJ=no
  12873. ;;
  12874. sysv4.3*)
  12875. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12876. hardcode_shlibpath_var_GCJ=no
  12877. export_dynamic_flag_spec_GCJ='-Bexport'
  12878. ;;
  12879. sysv4*MP*)
  12880. if test -d /usr/nec; then
  12881. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12882. hardcode_shlibpath_var_GCJ=no
  12883. runpath_var=LD_RUN_PATH
  12884. hardcode_runpath_var=yes
  12885. ld_shlibs_GCJ=yes
  12886. fi
  12887. ;;
  12888. sysv4.2uw2*)
  12889. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12890. hardcode_direct_GCJ=yes
  12891. hardcode_minus_L_GCJ=no
  12892. hardcode_shlibpath_var_GCJ=no
  12893. hardcode_runpath_var=yes
  12894. runpath_var=LD_RUN_PATH
  12895. ;;
  12896. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  12897. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  12898. if test "$GCC" = yes; then
  12899. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12900. else
  12901. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12902. fi
  12903. runpath_var='LD_RUN_PATH'
  12904. hardcode_shlibpath_var_GCJ=no
  12905. ;;
  12906. sysv5*)
  12907. no_undefined_flag_GCJ=' -z text'
  12908. # $CC -shared without GNU ld will not create a library from C++
  12909. # object files and a static libstdc++, better avoid it by now
  12910. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12911. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12912. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12913. hardcode_libdir_flag_spec_GCJ=
  12914. hardcode_shlibpath_var_GCJ=no
  12915. runpath_var='LD_RUN_PATH'
  12916. ;;
  12917. uts4*)
  12918. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12919. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12920. hardcode_shlibpath_var_GCJ=no
  12921. ;;
  12922. *)
  12923. ld_shlibs_GCJ=no
  12924. ;;
  12925. esac
  12926. fi
  12927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
  12928. $as_echo "$ld_shlibs_GCJ" >&6; }
  12929. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  12930. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12931. if test "$GCC" = yes; then
  12932. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12933. fi
  12934. #
  12935. # Do we need to explicitly link libc?
  12936. #
  12937. case "x$archive_cmds_need_lc_GCJ" in
  12938. x|xyes)
  12939. # Assume -lc should be added
  12940. archive_cmds_need_lc_GCJ=yes
  12941. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12942. case $archive_cmds_GCJ in
  12943. *'~'*)
  12944. # FIXME: we may have to deal with multi-command sequences.
  12945. ;;
  12946. '$CC '*)
  12947. # Test whether the compiler implicitly links with -lc since on some
  12948. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12949. # to ld, don't add -lc before -lgcc.
  12950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12951. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12952. $rm conftest*
  12953. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12954. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12955. (eval $ac_compile) 2>&5
  12956. ac_status=$?
  12957. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12958. test $ac_status = 0; } 2>conftest.err; then
  12959. soname=conftest
  12960. lib=conftest
  12961. libobjs=conftest.$ac_objext
  12962. deplibs=
  12963. wl=$lt_prog_compiler_wl_GCJ
  12964. compiler_flags=-v
  12965. linker_flags=-v
  12966. verstring=
  12967. output_objdir=.
  12968. libname=conftest
  12969. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  12970. allow_undefined_flag_GCJ=
  12971. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12972. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12973. ac_status=$?
  12974. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12975. test $ac_status = 0; }
  12976. then
  12977. archive_cmds_need_lc_GCJ=no
  12978. else
  12979. archive_cmds_need_lc_GCJ=yes
  12980. fi
  12981. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  12982. else
  12983. cat conftest.err 1>&5
  12984. fi
  12985. $rm conftest*
  12986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
  12987. $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
  12988. ;;
  12989. esac
  12990. fi
  12991. ;;
  12992. esac
  12993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12994. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12995. library_names_spec=
  12996. libname_spec='lib$name'
  12997. soname_spec=
  12998. shrext_cmds=".so"
  12999. postinstall_cmds=
  13000. postuninstall_cmds=
  13001. finish_cmds=
  13002. finish_eval=
  13003. shlibpath_var=
  13004. shlibpath_overrides_runpath=unknown
  13005. version_type=none
  13006. dynamic_linker="$host_os ld.so"
  13007. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13008. if test "$GCC" = yes; then
  13009. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13010. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13011. # if the path contains ";" then we assume it to be the separator
  13012. # otherwise default to the standard path separator (i.e. ":") - it is
  13013. # assumed that no part of a normal pathname contains ";" but that should
  13014. # okay in the real world where ";" in dirpaths is itself problematic.
  13015. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13016. else
  13017. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13018. fi
  13019. else
  13020. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13021. fi
  13022. need_lib_prefix=unknown
  13023. hardcode_into_libs=no
  13024. # when you set need_version to no, make sure it does not cause -set_version
  13025. # flags to be left without arguments
  13026. need_version=unknown
  13027. case $host_os in
  13028. aix3*)
  13029. version_type=linux
  13030. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13031. shlibpath_var=LIBPATH
  13032. # AIX 3 has no versioning support, so we append a major version to the name.
  13033. soname_spec='${libname}${release}${shared_ext}$major'
  13034. ;;
  13035. aix4* | aix5*)
  13036. version_type=linux
  13037. need_lib_prefix=no
  13038. need_version=no
  13039. hardcode_into_libs=yes
  13040. if test "$host_cpu" = ia64; then
  13041. # AIX 5 supports IA64
  13042. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13043. shlibpath_var=LD_LIBRARY_PATH
  13044. else
  13045. # With GCC up to 2.95.x, collect2 would create an import file
  13046. # for dependence libraries. The import file would start with
  13047. # the line `#! .'. This would cause the generated library to
  13048. # depend on `.', always an invalid library. This was fixed in
  13049. # development snapshots of GCC prior to 3.0.
  13050. case $host_os in
  13051. aix4 | aix4.[01] | aix4.[01].*)
  13052. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13053. echo ' yes '
  13054. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13055. :
  13056. else
  13057. can_build_shared=no
  13058. fi
  13059. ;;
  13060. esac
  13061. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13062. # soname into executable. Probably we can add versioning support to
  13063. # collect2, so additional links can be useful in future.
  13064. if test "$aix_use_runtimelinking" = yes; then
  13065. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13066. # instead of lib<name>.a to let people know that these are not
  13067. # typical AIX shared libraries.
  13068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13069. else
  13070. # We preserve .a as extension for shared libraries through AIX4.2
  13071. # and later when we are not doing run time linking.
  13072. library_names_spec='${libname}${release}.a $libname.a'
  13073. soname_spec='${libname}${release}${shared_ext}$major'
  13074. fi
  13075. shlibpath_var=LIBPATH
  13076. fi
  13077. ;;
  13078. amigaos*)
  13079. library_names_spec='$libname.ixlibrary $libname.a'
  13080. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13081. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  13082. ;;
  13083. beos*)
  13084. library_names_spec='${libname}${shared_ext}'
  13085. dynamic_linker="$host_os ld.so"
  13086. shlibpath_var=LIBRARY_PATH
  13087. ;;
  13088. bsdi[45]*)
  13089. version_type=linux
  13090. need_version=no
  13091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13092. soname_spec='${libname}${release}${shared_ext}$major'
  13093. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13094. shlibpath_var=LD_LIBRARY_PATH
  13095. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13096. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13097. # the default ld.so.conf also contains /usr/contrib/lib and
  13098. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13099. # libtool to hard-code these into programs
  13100. ;;
  13101. cygwin* | mingw* | pw32*)
  13102. version_type=windows
  13103. shrext_cmds=".dll"
  13104. need_version=no
  13105. need_lib_prefix=no
  13106. case $GCC,$host_os in
  13107. yes,cygwin* | yes,mingw* | yes,pw32*)
  13108. library_names_spec='$libname.dll.a'
  13109. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13110. postinstall_cmds='base_file=`basename \${file}`~
  13111. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13112. dldir=$destdir/`dirname \$dlpath`~
  13113. test -d \$dldir || mkdir -p \$dldir~
  13114. $install_prog $dir/$dlname \$dldir/$dlname~
  13115. chmod a+x \$dldir/$dlname'
  13116. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13117. dlpath=$dir/\$dldll~
  13118. $rm \$dlpath'
  13119. shlibpath_overrides_runpath=yes
  13120. case $host_os in
  13121. cygwin*)
  13122. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13123. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13124. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13125. ;;
  13126. mingw*)
  13127. # MinGW DLLs use traditional 'lib' prefix
  13128. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13129. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13130. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13131. # It is most probably a Windows format PATH printed by
  13132. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13133. # path with ; separators, and with drive letters. We can handle the
  13134. # drive letters (cygwin fileutils understands them), so leave them,
  13135. # especially as we might pass files found there to a mingw objdump,
  13136. # which wouldn't understand a cygwinified path. Ahh.
  13137. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13138. else
  13139. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13140. fi
  13141. ;;
  13142. pw32*)
  13143. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13144. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13145. ;;
  13146. esac
  13147. ;;
  13148. *)
  13149. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13150. ;;
  13151. esac
  13152. dynamic_linker='Win32 ld.exe'
  13153. # FIXME: first we should search . and the directory the executable is in
  13154. shlibpath_var=PATH
  13155. ;;
  13156. darwin* | rhapsody*)
  13157. dynamic_linker="$host_os dyld"
  13158. version_type=darwin
  13159. need_lib_prefix=no
  13160. need_version=no
  13161. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13162. soname_spec='${libname}${release}${major}$shared_ext'
  13163. shlibpath_overrides_runpath=yes
  13164. shlibpath_var=DYLD_LIBRARY_PATH
  13165. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13166. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13167. if test "$GCC" = yes; then
  13168. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  13169. else
  13170. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13171. fi
  13172. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13173. ;;
  13174. dgux*)
  13175. version_type=linux
  13176. need_lib_prefix=no
  13177. need_version=no
  13178. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13179. soname_spec='${libname}${release}${shared_ext}$major'
  13180. shlibpath_var=LD_LIBRARY_PATH
  13181. ;;
  13182. freebsd1*)
  13183. dynamic_linker=no
  13184. ;;
  13185. kfreebsd*-gnu)
  13186. version_type=linux
  13187. need_lib_prefix=no
  13188. need_version=no
  13189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13190. soname_spec='${libname}${release}${shared_ext}$major'
  13191. shlibpath_var=LD_LIBRARY_PATH
  13192. shlibpath_overrides_runpath=no
  13193. hardcode_into_libs=yes
  13194. dynamic_linker='GNU ld.so'
  13195. ;;
  13196. freebsd* | dragonfly*)
  13197. # DragonFly does not have aout. When/if they implement a new
  13198. # versioning mechanism, adjust this.
  13199. if test -x /usr/bin/objformat; then
  13200. objformat=`/usr/bin/objformat`
  13201. else
  13202. case $host_os in
  13203. freebsd[123]*) objformat=aout ;;
  13204. *) objformat=elf ;;
  13205. esac
  13206. fi
  13207. version_type=freebsd-$objformat
  13208. case $version_type in
  13209. freebsd-elf*)
  13210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13211. need_version=no
  13212. need_lib_prefix=no
  13213. ;;
  13214. freebsd-*)
  13215. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13216. need_version=yes
  13217. ;;
  13218. esac
  13219. shlibpath_var=LD_LIBRARY_PATH
  13220. case $host_os in
  13221. freebsd2*)
  13222. shlibpath_overrides_runpath=yes
  13223. ;;
  13224. freebsd3.[01]* | freebsdelf3.[01]*)
  13225. shlibpath_overrides_runpath=yes
  13226. hardcode_into_libs=yes
  13227. ;;
  13228. *) # from 3.2 on
  13229. shlibpath_overrides_runpath=no
  13230. hardcode_into_libs=yes
  13231. ;;
  13232. esac
  13233. ;;
  13234. gnu*)
  13235. version_type=linux
  13236. need_lib_prefix=no
  13237. need_version=no
  13238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13239. soname_spec='${libname}${release}${shared_ext}$major'
  13240. shlibpath_var=LD_LIBRARY_PATH
  13241. hardcode_into_libs=yes
  13242. ;;
  13243. hpux9* | hpux10* | hpux11*)
  13244. # Give a soname corresponding to the major version so that dld.sl refuses to
  13245. # link against other versions.
  13246. version_type=sunos
  13247. need_lib_prefix=no
  13248. need_version=no
  13249. case $host_cpu in
  13250. ia64*)
  13251. shrext_cmds='.so'
  13252. hardcode_into_libs=yes
  13253. dynamic_linker="$host_os dld.so"
  13254. shlibpath_var=LD_LIBRARY_PATH
  13255. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13257. soname_spec='${libname}${release}${shared_ext}$major'
  13258. if test "X$HPUX_IA64_MODE" = X32; then
  13259. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13260. else
  13261. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13262. fi
  13263. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13264. ;;
  13265. hppa*64*)
  13266. shrext_cmds='.sl'
  13267. hardcode_into_libs=yes
  13268. dynamic_linker="$host_os dld.sl"
  13269. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13270. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13271. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13272. soname_spec='${libname}${release}${shared_ext}$major'
  13273. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13274. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13275. ;;
  13276. *)
  13277. shrext_cmds='.sl'
  13278. dynamic_linker="$host_os dld.sl"
  13279. shlibpath_var=SHLIB_PATH
  13280. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13282. soname_spec='${libname}${release}${shared_ext}$major'
  13283. ;;
  13284. esac
  13285. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13286. postinstall_cmds='chmod 555 $lib'
  13287. ;;
  13288. irix5* | irix6* | nonstopux*)
  13289. case $host_os in
  13290. nonstopux*) version_type=nonstopux ;;
  13291. *)
  13292. if test "$lt_cv_prog_gnu_ld" = yes; then
  13293. version_type=linux
  13294. else
  13295. version_type=irix
  13296. fi ;;
  13297. esac
  13298. need_lib_prefix=no
  13299. need_version=no
  13300. soname_spec='${libname}${release}${shared_ext}$major'
  13301. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13302. case $host_os in
  13303. irix5* | nonstopux*)
  13304. libsuff= shlibsuff=
  13305. ;;
  13306. *)
  13307. case $LD in # libtool.m4 will add one of these switches to LD
  13308. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13309. libsuff= shlibsuff= libmagic=32-bit;;
  13310. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13311. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13312. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13313. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13314. *) libsuff= shlibsuff= libmagic=never-match;;
  13315. esac
  13316. ;;
  13317. esac
  13318. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13319. shlibpath_overrides_runpath=no
  13320. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13321. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13322. hardcode_into_libs=yes
  13323. ;;
  13324. # No shared lib support for Linux oldld, aout, or coff.
  13325. linux*oldld* | linux*aout* | linux*coff*)
  13326. dynamic_linker=no
  13327. ;;
  13328. # This must be Linux ELF.
  13329. linux*)
  13330. version_type=linux
  13331. need_lib_prefix=no
  13332. need_version=no
  13333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13334. soname_spec='${libname}${release}${shared_ext}$major'
  13335. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13336. shlibpath_var=LD_LIBRARY_PATH
  13337. shlibpath_overrides_runpath=no
  13338. # This implies no fast_install, which is unacceptable.
  13339. # Some rework will be needed to allow for fast_install
  13340. # before this can be enabled.
  13341. hardcode_into_libs=yes
  13342. # Append ld.so.conf contents to the search path
  13343. if test -f /etc/ld.so.conf; then
  13344. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13345. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13346. fi
  13347. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13348. # powerpc, because MkLinux only supported shared libraries with the
  13349. # GNU dynamic linker. Since this was broken with cross compilers,
  13350. # most powerpc-linux boxes support dynamic linking these days and
  13351. # people can always --disable-shared, the test was removed, and we
  13352. # assume the GNU/Linux dynamic linker is in use.
  13353. dynamic_linker='GNU/Linux ld.so'
  13354. ;;
  13355. knetbsd*-gnu)
  13356. version_type=linux
  13357. need_lib_prefix=no
  13358. need_version=no
  13359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13360. soname_spec='${libname}${release}${shared_ext}$major'
  13361. shlibpath_var=LD_LIBRARY_PATH
  13362. shlibpath_overrides_runpath=no
  13363. hardcode_into_libs=yes
  13364. dynamic_linker='GNU ld.so'
  13365. ;;
  13366. netbsd*)
  13367. version_type=sunos
  13368. need_lib_prefix=no
  13369. need_version=no
  13370. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13372. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13373. dynamic_linker='NetBSD (a.out) ld.so'
  13374. else
  13375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13376. soname_spec='${libname}${release}${shared_ext}$major'
  13377. dynamic_linker='NetBSD ld.elf_so'
  13378. fi
  13379. shlibpath_var=LD_LIBRARY_PATH
  13380. shlibpath_overrides_runpath=yes
  13381. hardcode_into_libs=yes
  13382. ;;
  13383. newsos6)
  13384. version_type=linux
  13385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13386. shlibpath_var=LD_LIBRARY_PATH
  13387. shlibpath_overrides_runpath=yes
  13388. ;;
  13389. nto-qnx*)
  13390. version_type=linux
  13391. need_lib_prefix=no
  13392. need_version=no
  13393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13394. soname_spec='${libname}${release}${shared_ext}$major'
  13395. shlibpath_var=LD_LIBRARY_PATH
  13396. shlibpath_overrides_runpath=yes
  13397. ;;
  13398. openbsd*)
  13399. version_type=sunos
  13400. need_lib_prefix=no
  13401. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13402. case $host_os in
  13403. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13404. *) need_version=no ;;
  13405. esac
  13406. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13407. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13408. shlibpath_var=LD_LIBRARY_PATH
  13409. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13410. case $host_os in
  13411. openbsd2.[89] | openbsd2.[89].*)
  13412. shlibpath_overrides_runpath=no
  13413. ;;
  13414. *)
  13415. shlibpath_overrides_runpath=yes
  13416. ;;
  13417. esac
  13418. else
  13419. shlibpath_overrides_runpath=yes
  13420. fi
  13421. ;;
  13422. os2*)
  13423. libname_spec='$name'
  13424. shrext_cmds=".dll"
  13425. need_lib_prefix=no
  13426. library_names_spec='$libname${shared_ext} $libname.a'
  13427. dynamic_linker='OS/2 ld.exe'
  13428. shlibpath_var=LIBPATH
  13429. ;;
  13430. osf3* | osf4* | osf5*)
  13431. version_type=osf
  13432. need_lib_prefix=no
  13433. need_version=no
  13434. soname_spec='${libname}${release}${shared_ext}$major'
  13435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13436. shlibpath_var=LD_LIBRARY_PATH
  13437. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13438. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13439. ;;
  13440. sco3.2v5*)
  13441. version_type=osf
  13442. soname_spec='${libname}${release}${shared_ext}$major'
  13443. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13444. shlibpath_var=LD_LIBRARY_PATH
  13445. ;;
  13446. solaris*)
  13447. version_type=linux
  13448. need_lib_prefix=no
  13449. need_version=no
  13450. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13451. soname_spec='${libname}${release}${shared_ext}$major'
  13452. shlibpath_var=LD_LIBRARY_PATH
  13453. shlibpath_overrides_runpath=yes
  13454. hardcode_into_libs=yes
  13455. # ldd complains unless libraries are executable
  13456. postinstall_cmds='chmod +x $lib'
  13457. ;;
  13458. sunos4*)
  13459. version_type=sunos
  13460. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13461. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13462. shlibpath_var=LD_LIBRARY_PATH
  13463. shlibpath_overrides_runpath=yes
  13464. if test "$with_gnu_ld" = yes; then
  13465. need_lib_prefix=no
  13466. fi
  13467. need_version=yes
  13468. ;;
  13469. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13470. version_type=linux
  13471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13472. soname_spec='${libname}${release}${shared_ext}$major'
  13473. shlibpath_var=LD_LIBRARY_PATH
  13474. case $host_vendor in
  13475. sni)
  13476. shlibpath_overrides_runpath=no
  13477. need_lib_prefix=no
  13478. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13479. runpath_var=LD_RUN_PATH
  13480. ;;
  13481. siemens)
  13482. need_lib_prefix=no
  13483. ;;
  13484. motorola)
  13485. need_lib_prefix=no
  13486. need_version=no
  13487. shlibpath_overrides_runpath=no
  13488. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13489. ;;
  13490. esac
  13491. ;;
  13492. sysv4*MP*)
  13493. if test -d /usr/nec ;then
  13494. version_type=linux
  13495. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13496. soname_spec='$libname${shared_ext}.$major'
  13497. shlibpath_var=LD_LIBRARY_PATH
  13498. fi
  13499. ;;
  13500. uts4*)
  13501. version_type=linux
  13502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13503. soname_spec='${libname}${release}${shared_ext}$major'
  13504. shlibpath_var=LD_LIBRARY_PATH
  13505. ;;
  13506. *)
  13507. dynamic_linker=no
  13508. ;;
  13509. esac
  13510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13511. $as_echo "$dynamic_linker" >&6; }
  13512. test "$dynamic_linker" = no && can_build_shared=no
  13513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13514. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13515. hardcode_action_GCJ=
  13516. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  13517. test -n "$runpath_var_GCJ" || \
  13518. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  13519. # We can hardcode non-existant directories.
  13520. if test "$hardcode_direct_GCJ" != no &&
  13521. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13522. # have to relink, otherwise we might link with an installed library
  13523. # when we should be linking with a yet-to-be-installed one
  13524. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  13525. test "$hardcode_minus_L_GCJ" != no; then
  13526. # Linking always hardcodes the temporary library directory.
  13527. hardcode_action_GCJ=relink
  13528. else
  13529. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13530. hardcode_action_GCJ=immediate
  13531. fi
  13532. else
  13533. # We cannot hardcode anything, or else we can only hardcode existing
  13534. # directories.
  13535. hardcode_action_GCJ=unsupported
  13536. fi
  13537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
  13538. $as_echo "$hardcode_action_GCJ" >&6; }
  13539. if test "$hardcode_action_GCJ" = relink; then
  13540. # Fast installation is not supported
  13541. enable_fast_install=no
  13542. elif test "$shlibpath_overrides_runpath" = yes ||
  13543. test "$enable_shared" = no; then
  13544. # Fast installation is not necessary
  13545. enable_fast_install=needless
  13546. fi
  13547. striplib=
  13548. old_striplib=
  13549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  13550. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  13551. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  13552. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  13553. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  13554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13555. $as_echo "yes" >&6; }
  13556. else
  13557. # FIXME - insert some real tests, host_os isn't really good enough
  13558. case $host_os in
  13559. darwin*)
  13560. if test -n "$STRIP" ; then
  13561. striplib="$STRIP -x"
  13562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13563. $as_echo "yes" >&6; }
  13564. else
  13565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13566. $as_echo "no" >&6; }
  13567. fi
  13568. ;;
  13569. *)
  13570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13571. $as_echo "no" >&6; }
  13572. ;;
  13573. esac
  13574. fi
  13575. if test "x$enable_dlopen" != xyes; then
  13576. enable_dlopen=unknown
  13577. enable_dlopen_self=unknown
  13578. enable_dlopen_self_static=unknown
  13579. else
  13580. lt_cv_dlopen=no
  13581. lt_cv_dlopen_libs=
  13582. case $host_os in
  13583. beos*)
  13584. lt_cv_dlopen="load_add_on"
  13585. lt_cv_dlopen_libs=
  13586. lt_cv_dlopen_self=yes
  13587. ;;
  13588. mingw* | pw32*)
  13589. lt_cv_dlopen="LoadLibrary"
  13590. lt_cv_dlopen_libs=
  13591. ;;
  13592. cygwin*)
  13593. lt_cv_dlopen="dlopen"
  13594. lt_cv_dlopen_libs=
  13595. ;;
  13596. darwin*)
  13597. # if libdl is installed we need to link against it
  13598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  13599. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  13600. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  13601. $as_echo_n "(cached) " >&6
  13602. else
  13603. ac_check_lib_save_LIBS=$LIBS
  13604. LIBS="-ldl $LIBS"
  13605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13606. /* end confdefs.h. */
  13607. /* Override any GCC internal prototype to avoid an error.
  13608. Use char because int might match the return type of a GCC
  13609. builtin and then its argument prototype would still apply. */
  13610. #ifdef __cplusplus
  13611. extern "C"
  13612. #endif
  13613. char dlopen ();
  13614. int
  13615. main ()
  13616. {
  13617. return dlopen ();
  13618. ;
  13619. return 0;
  13620. }
  13621. _ACEOF
  13622. if ac_fn_c_try_link "$LINENO"; then :
  13623. ac_cv_lib_dl_dlopen=yes
  13624. else
  13625. ac_cv_lib_dl_dlopen=no
  13626. fi
  13627. rm -f core conftest.err conftest.$ac_objext \
  13628. conftest$ac_exeext conftest.$ac_ext
  13629. LIBS=$ac_check_lib_save_LIBS
  13630. fi
  13631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  13632. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  13633. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  13634. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  13635. else
  13636. lt_cv_dlopen="dyld"
  13637. lt_cv_dlopen_libs=
  13638. lt_cv_dlopen_self=yes
  13639. fi
  13640. ;;
  13641. *)
  13642. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  13643. if test "x$ac_cv_func_shl_load" = x""yes; then :
  13644. lt_cv_dlopen="shl_load"
  13645. else
  13646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  13647. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  13648. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  13649. $as_echo_n "(cached) " >&6
  13650. else
  13651. ac_check_lib_save_LIBS=$LIBS
  13652. LIBS="-ldld $LIBS"
  13653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13654. /* end confdefs.h. */
  13655. /* Override any GCC internal prototype to avoid an error.
  13656. Use char because int might match the return type of a GCC
  13657. builtin and then its argument prototype would still apply. */
  13658. #ifdef __cplusplus
  13659. extern "C"
  13660. #endif
  13661. char shl_load ();
  13662. int
  13663. main ()
  13664. {
  13665. return shl_load ();
  13666. ;
  13667. return 0;
  13668. }
  13669. _ACEOF
  13670. if ac_fn_c_try_link "$LINENO"; then :
  13671. ac_cv_lib_dld_shl_load=yes
  13672. else
  13673. ac_cv_lib_dld_shl_load=no
  13674. fi
  13675. rm -f core conftest.err conftest.$ac_objext \
  13676. conftest$ac_exeext conftest.$ac_ext
  13677. LIBS=$ac_check_lib_save_LIBS
  13678. fi
  13679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  13680. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  13681. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  13682. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  13683. else
  13684. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  13685. if test "x$ac_cv_func_dlopen" = x""yes; then :
  13686. lt_cv_dlopen="dlopen"
  13687. else
  13688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  13689. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  13690. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  13691. $as_echo_n "(cached) " >&6
  13692. else
  13693. ac_check_lib_save_LIBS=$LIBS
  13694. LIBS="-ldl $LIBS"
  13695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13696. /* end confdefs.h. */
  13697. /* Override any GCC internal prototype to avoid an error.
  13698. Use char because int might match the return type of a GCC
  13699. builtin and then its argument prototype would still apply. */
  13700. #ifdef __cplusplus
  13701. extern "C"
  13702. #endif
  13703. char dlopen ();
  13704. int
  13705. main ()
  13706. {
  13707. return dlopen ();
  13708. ;
  13709. return 0;
  13710. }
  13711. _ACEOF
  13712. if ac_fn_c_try_link "$LINENO"; then :
  13713. ac_cv_lib_dl_dlopen=yes
  13714. else
  13715. ac_cv_lib_dl_dlopen=no
  13716. fi
  13717. rm -f core conftest.err conftest.$ac_objext \
  13718. conftest$ac_exeext conftest.$ac_ext
  13719. LIBS=$ac_check_lib_save_LIBS
  13720. fi
  13721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  13722. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  13723. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  13724. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  13725. else
  13726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  13727. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  13728. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  13729. $as_echo_n "(cached) " >&6
  13730. else
  13731. ac_check_lib_save_LIBS=$LIBS
  13732. LIBS="-lsvld $LIBS"
  13733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13734. /* end confdefs.h. */
  13735. /* Override any GCC internal prototype to avoid an error.
  13736. Use char because int might match the return type of a GCC
  13737. builtin and then its argument prototype would still apply. */
  13738. #ifdef __cplusplus
  13739. extern "C"
  13740. #endif
  13741. char dlopen ();
  13742. int
  13743. main ()
  13744. {
  13745. return dlopen ();
  13746. ;
  13747. return 0;
  13748. }
  13749. _ACEOF
  13750. if ac_fn_c_try_link "$LINENO"; then :
  13751. ac_cv_lib_svld_dlopen=yes
  13752. else
  13753. ac_cv_lib_svld_dlopen=no
  13754. fi
  13755. rm -f core conftest.err conftest.$ac_objext \
  13756. conftest$ac_exeext conftest.$ac_ext
  13757. LIBS=$ac_check_lib_save_LIBS
  13758. fi
  13759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  13760. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  13761. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  13762. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  13763. else
  13764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  13765. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  13766. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  13767. $as_echo_n "(cached) " >&6
  13768. else
  13769. ac_check_lib_save_LIBS=$LIBS
  13770. LIBS="-ldld $LIBS"
  13771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13772. /* end confdefs.h. */
  13773. /* Override any GCC internal prototype to avoid an error.
  13774. Use char because int might match the return type of a GCC
  13775. builtin and then its argument prototype would still apply. */
  13776. #ifdef __cplusplus
  13777. extern "C"
  13778. #endif
  13779. char dld_link ();
  13780. int
  13781. main ()
  13782. {
  13783. return dld_link ();
  13784. ;
  13785. return 0;
  13786. }
  13787. _ACEOF
  13788. if ac_fn_c_try_link "$LINENO"; then :
  13789. ac_cv_lib_dld_dld_link=yes
  13790. else
  13791. ac_cv_lib_dld_dld_link=no
  13792. fi
  13793. rm -f core conftest.err conftest.$ac_objext \
  13794. conftest$ac_exeext conftest.$ac_ext
  13795. LIBS=$ac_check_lib_save_LIBS
  13796. fi
  13797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  13798. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  13799. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  13800. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  13801. fi
  13802. fi
  13803. fi
  13804. fi
  13805. fi
  13806. fi
  13807. ;;
  13808. esac
  13809. if test "x$lt_cv_dlopen" != xno; then
  13810. enable_dlopen=yes
  13811. else
  13812. enable_dlopen=no
  13813. fi
  13814. case $lt_cv_dlopen in
  13815. dlopen)
  13816. save_CPPFLAGS="$CPPFLAGS"
  13817. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  13818. save_LDFLAGS="$LDFLAGS"
  13819. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  13820. save_LIBS="$LIBS"
  13821. LIBS="$lt_cv_dlopen_libs $LIBS"
  13822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  13823. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  13824. if test "${lt_cv_dlopen_self+set}" = set; then :
  13825. $as_echo_n "(cached) " >&6
  13826. else
  13827. if test "$cross_compiling" = yes; then :
  13828. lt_cv_dlopen_self=cross
  13829. else
  13830. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13831. lt_status=$lt_dlunknown
  13832. cat > conftest.$ac_ext <<EOF
  13833. #line 15530 "configure"
  13834. #include "confdefs.h"
  13835. #if HAVE_DLFCN_H
  13836. #include <dlfcn.h>
  13837. #endif
  13838. #include <stdio.h>
  13839. #ifdef RTLD_GLOBAL
  13840. # define LT_DLGLOBAL RTLD_GLOBAL
  13841. #else
  13842. # ifdef DL_GLOBAL
  13843. # define LT_DLGLOBAL DL_GLOBAL
  13844. # else
  13845. # define LT_DLGLOBAL 0
  13846. # endif
  13847. #endif
  13848. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13849. find out it does not work in some platform. */
  13850. #ifndef LT_DLLAZY_OR_NOW
  13851. # ifdef RTLD_LAZY
  13852. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13853. # else
  13854. # ifdef DL_LAZY
  13855. # define LT_DLLAZY_OR_NOW DL_LAZY
  13856. # else
  13857. # ifdef RTLD_NOW
  13858. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13859. # else
  13860. # ifdef DL_NOW
  13861. # define LT_DLLAZY_OR_NOW DL_NOW
  13862. # else
  13863. # define LT_DLLAZY_OR_NOW 0
  13864. # endif
  13865. # endif
  13866. # endif
  13867. # endif
  13868. #endif
  13869. #ifdef __cplusplus
  13870. extern "C" void exit (int);
  13871. #endif
  13872. void fnord() { int i=42;}
  13873. int main ()
  13874. {
  13875. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13876. int status = $lt_dlunknown;
  13877. if (self)
  13878. {
  13879. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13880. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13881. /* dlclose (self); */
  13882. }
  13883. exit (status);
  13884. }
  13885. EOF
  13886. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13887. (eval $ac_link) 2>&5
  13888. ac_status=$?
  13889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13890. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  13891. (./conftest; exit; ) >&5 2>/dev/null
  13892. lt_status=$?
  13893. case x$lt_status in
  13894. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  13895. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  13896. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  13897. esac
  13898. else :
  13899. # compilation failed
  13900. lt_cv_dlopen_self=no
  13901. fi
  13902. fi
  13903. rm -fr conftest*
  13904. fi
  13905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  13906. $as_echo "$lt_cv_dlopen_self" >&6; }
  13907. if test "x$lt_cv_dlopen_self" = xyes; then
  13908. LDFLAGS="$LDFLAGS $link_static_flag"
  13909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  13910. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  13911. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  13912. $as_echo_n "(cached) " >&6
  13913. else
  13914. if test "$cross_compiling" = yes; then :
  13915. lt_cv_dlopen_self_static=cross
  13916. else
  13917. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13918. lt_status=$lt_dlunknown
  13919. cat > conftest.$ac_ext <<EOF
  13920. #line 15628 "configure"
  13921. #include "confdefs.h"
  13922. #if HAVE_DLFCN_H
  13923. #include <dlfcn.h>
  13924. #endif
  13925. #include <stdio.h>
  13926. #ifdef RTLD_GLOBAL
  13927. # define LT_DLGLOBAL RTLD_GLOBAL
  13928. #else
  13929. # ifdef DL_GLOBAL
  13930. # define LT_DLGLOBAL DL_GLOBAL
  13931. # else
  13932. # define LT_DLGLOBAL 0
  13933. # endif
  13934. #endif
  13935. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13936. find out it does not work in some platform. */
  13937. #ifndef LT_DLLAZY_OR_NOW
  13938. # ifdef RTLD_LAZY
  13939. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13940. # else
  13941. # ifdef DL_LAZY
  13942. # define LT_DLLAZY_OR_NOW DL_LAZY
  13943. # else
  13944. # ifdef RTLD_NOW
  13945. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13946. # else
  13947. # ifdef DL_NOW
  13948. # define LT_DLLAZY_OR_NOW DL_NOW
  13949. # else
  13950. # define LT_DLLAZY_OR_NOW 0
  13951. # endif
  13952. # endif
  13953. # endif
  13954. # endif
  13955. #endif
  13956. #ifdef __cplusplus
  13957. extern "C" void exit (int);
  13958. #endif
  13959. void fnord() { int i=42;}
  13960. int main ()
  13961. {
  13962. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13963. int status = $lt_dlunknown;
  13964. if (self)
  13965. {
  13966. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13967. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13968. /* dlclose (self); */
  13969. }
  13970. exit (status);
  13971. }
  13972. EOF
  13973. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13974. (eval $ac_link) 2>&5
  13975. ac_status=$?
  13976. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13977. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  13978. (./conftest; exit; ) >&5 2>/dev/null
  13979. lt_status=$?
  13980. case x$lt_status in
  13981. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  13982. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  13983. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  13984. esac
  13985. else :
  13986. # compilation failed
  13987. lt_cv_dlopen_self_static=no
  13988. fi
  13989. fi
  13990. rm -fr conftest*
  13991. fi
  13992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  13993. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  13994. fi
  13995. CPPFLAGS="$save_CPPFLAGS"
  13996. LDFLAGS="$save_LDFLAGS"
  13997. LIBS="$save_LIBS"
  13998. ;;
  13999. esac
  14000. case $lt_cv_dlopen_self in
  14001. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  14002. *) enable_dlopen_self=unknown ;;
  14003. esac
  14004. case $lt_cv_dlopen_self_static in
  14005. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  14006. *) enable_dlopen_self_static=unknown ;;
  14007. esac
  14008. fi
  14009. # The else clause should only fire when bootstrapping the
  14010. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14011. # with your package, and you will get complaints that there are
  14012. # no rules to generate ltmain.sh.
  14013. if test -f "$ltmain"; then
  14014. # See if we are running on zsh, and set the options which allow our commands through
  14015. # without removal of \ escapes.
  14016. if test -n "${ZSH_VERSION+set}" ; then
  14017. setopt NO_GLOB_SUBST
  14018. fi
  14019. # Now quote all the things that may contain metacharacters while being
  14020. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14021. # variables and quote the copies for generation of the libtool script.
  14022. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  14023. SED SHELL STRIP \
  14024. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14025. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14026. deplibs_check_method reload_flag reload_cmds need_locks \
  14027. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14028. lt_cv_sys_global_symbol_to_c_name_address \
  14029. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14030. old_postinstall_cmds old_postuninstall_cmds \
  14031. compiler_GCJ \
  14032. CC_GCJ \
  14033. LD_GCJ \
  14034. lt_prog_compiler_wl_GCJ \
  14035. lt_prog_compiler_pic_GCJ \
  14036. lt_prog_compiler_static_GCJ \
  14037. lt_prog_compiler_no_builtin_flag_GCJ \
  14038. export_dynamic_flag_spec_GCJ \
  14039. thread_safe_flag_spec_GCJ \
  14040. whole_archive_flag_spec_GCJ \
  14041. enable_shared_with_static_runtimes_GCJ \
  14042. old_archive_cmds_GCJ \
  14043. old_archive_from_new_cmds_GCJ \
  14044. predep_objects_GCJ \
  14045. postdep_objects_GCJ \
  14046. predeps_GCJ \
  14047. postdeps_GCJ \
  14048. compiler_lib_search_path_GCJ \
  14049. archive_cmds_GCJ \
  14050. archive_expsym_cmds_GCJ \
  14051. postinstall_cmds_GCJ \
  14052. postuninstall_cmds_GCJ \
  14053. old_archive_from_expsyms_cmds_GCJ \
  14054. allow_undefined_flag_GCJ \
  14055. no_undefined_flag_GCJ \
  14056. export_symbols_cmds_GCJ \
  14057. hardcode_libdir_flag_spec_GCJ \
  14058. hardcode_libdir_flag_spec_ld_GCJ \
  14059. hardcode_libdir_separator_GCJ \
  14060. hardcode_automatic_GCJ \
  14061. module_cmds_GCJ \
  14062. module_expsym_cmds_GCJ \
  14063. lt_cv_prog_compiler_c_o_GCJ \
  14064. exclude_expsyms_GCJ \
  14065. include_expsyms_GCJ; do
  14066. case $var in
  14067. old_archive_cmds_GCJ | \
  14068. old_archive_from_new_cmds_GCJ | \
  14069. archive_cmds_GCJ | \
  14070. archive_expsym_cmds_GCJ | \
  14071. module_cmds_GCJ | \
  14072. module_expsym_cmds_GCJ | \
  14073. old_archive_from_expsyms_cmds_GCJ | \
  14074. export_symbols_cmds_GCJ | \
  14075. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14076. postinstall_cmds | postuninstall_cmds | \
  14077. old_postinstall_cmds | old_postuninstall_cmds | \
  14078. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14079. # Double-quote double-evaled strings.
  14080. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14081. ;;
  14082. *)
  14083. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14084. ;;
  14085. esac
  14086. done
  14087. case $lt_echo in
  14088. *'\$0 --fallback-echo"')
  14089. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14090. ;;
  14091. esac
  14092. cfgfile="$ofile"
  14093. cat <<__EOF__ >> "$cfgfile"
  14094. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14095. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14096. # Shell to use when invoking shell scripts.
  14097. SHELL=$lt_SHELL
  14098. # Whether or not to build shared libraries.
  14099. build_libtool_libs=$enable_shared
  14100. # Whether or not to build static libraries.
  14101. build_old_libs=$enable_static
  14102. # Whether or not to add -lc for building shared libraries.
  14103. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  14104. # Whether or not to disallow shared libs when runtime libs are static
  14105. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  14106. # Whether or not to optimize for fast installation.
  14107. fast_install=$enable_fast_install
  14108. # The host system.
  14109. host_alias=$host_alias
  14110. host=$host
  14111. host_os=$host_os
  14112. # The build system.
  14113. build_alias=$build_alias
  14114. build=$build
  14115. build_os=$build_os
  14116. # An echo program that does not interpret backslashes.
  14117. echo=$lt_echo
  14118. # The archiver.
  14119. AR=$lt_AR
  14120. AR_FLAGS=$lt_AR_FLAGS
  14121. # A C compiler.
  14122. LTCC=$lt_LTCC
  14123. # A language-specific compiler.
  14124. CC=$lt_compiler_GCJ
  14125. # Is the compiler the GNU C compiler?
  14126. with_gcc=$GCC_GCJ
  14127. # An ERE matcher.
  14128. EGREP=$lt_EGREP
  14129. # The linker used to build libraries.
  14130. LD=$lt_LD_GCJ
  14131. # Whether we need hard or soft links.
  14132. LN_S=$lt_LN_S
  14133. # A BSD-compatible nm program.
  14134. NM=$lt_NM
  14135. # A symbol stripping program
  14136. STRIP=$lt_STRIP
  14137. # Used to examine libraries when file_magic_cmd begins "file"
  14138. MAGIC_CMD=$MAGIC_CMD
  14139. # Used on cygwin: DLL creation program.
  14140. DLLTOOL="$DLLTOOL"
  14141. # Used on cygwin: object dumper.
  14142. OBJDUMP="$OBJDUMP"
  14143. # Used on cygwin: assembler.
  14144. AS="$AS"
  14145. # The name of the directory that contains temporary libtool files.
  14146. objdir=$objdir
  14147. # How to create reloadable object files.
  14148. reload_flag=$lt_reload_flag
  14149. reload_cmds=$lt_reload_cmds
  14150. # How to pass a linker flag through the compiler.
  14151. wl=$lt_lt_prog_compiler_wl_GCJ
  14152. # Object file suffix (normally "o").
  14153. objext="$ac_objext"
  14154. # Old archive suffix (normally "a").
  14155. libext="$libext"
  14156. # Shared library suffix (normally ".so").
  14157. shrext_cmds='$shrext_cmds'
  14158. # Executable file suffix (normally "").
  14159. exeext="$exeext"
  14160. # Additional compiler flags for building library objects.
  14161. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  14162. pic_mode=$pic_mode
  14163. # What is the maximum length of a command?
  14164. max_cmd_len=$lt_cv_sys_max_cmd_len
  14165. # Does compiler simultaneously support -c and -o options?
  14166. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  14167. # Must we lock files when doing compilation?
  14168. need_locks=$lt_need_locks
  14169. # Do we need the lib prefix for modules?
  14170. need_lib_prefix=$need_lib_prefix
  14171. # Do we need a version for libraries?
  14172. need_version=$need_version
  14173. # Whether dlopen is supported.
  14174. dlopen_support=$enable_dlopen
  14175. # Whether dlopen of programs is supported.
  14176. dlopen_self=$enable_dlopen_self
  14177. # Whether dlopen of statically linked programs is supported.
  14178. dlopen_self_static=$enable_dlopen_self_static
  14179. # Compiler flag to prevent dynamic linking.
  14180. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  14181. # Compiler flag to turn off builtin functions.
  14182. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  14183. # Compiler flag to allow reflexive dlopens.
  14184. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  14185. # Compiler flag to generate shared objects directly from archives.
  14186. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  14187. # Compiler flag to generate thread-safe objects.
  14188. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  14189. # Library versioning type.
  14190. version_type=$version_type
  14191. # Format of library name prefix.
  14192. libname_spec=$lt_libname_spec
  14193. # List of archive names. First name is the real one, the rest are links.
  14194. # The last name is the one that the linker finds with -lNAME.
  14195. library_names_spec=$lt_library_names_spec
  14196. # The coded name of the library, if different from the real name.
  14197. soname_spec=$lt_soname_spec
  14198. # Commands used to build and install an old-style archive.
  14199. RANLIB=$lt_RANLIB
  14200. old_archive_cmds=$lt_old_archive_cmds_GCJ
  14201. old_postinstall_cmds=$lt_old_postinstall_cmds
  14202. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14203. # Create an old-style archive from a shared archive.
  14204. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  14205. # Create a temporary old-style archive to link instead of a shared archive.
  14206. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  14207. # Commands used to build and install a shared archive.
  14208. archive_cmds=$lt_archive_cmds_GCJ
  14209. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  14210. postinstall_cmds=$lt_postinstall_cmds
  14211. postuninstall_cmds=$lt_postuninstall_cmds
  14212. # Commands used to build a loadable module (assumed same as above if empty)
  14213. module_cmds=$lt_module_cmds_GCJ
  14214. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  14215. # Commands to strip libraries.
  14216. old_striplib=$lt_old_striplib
  14217. striplib=$lt_striplib
  14218. # Dependencies to place before the objects being linked to create a
  14219. # shared library.
  14220. predep_objects=$lt_predep_objects_GCJ
  14221. # Dependencies to place after the objects being linked to create a
  14222. # shared library.
  14223. postdep_objects=$lt_postdep_objects_GCJ
  14224. # Dependencies to place before the objects being linked to create a
  14225. # shared library.
  14226. predeps=$lt_predeps_GCJ
  14227. # Dependencies to place after the objects being linked to create a
  14228. # shared library.
  14229. postdeps=$lt_postdeps_GCJ
  14230. # The library search path used internally by the compiler when linking
  14231. # a shared library.
  14232. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  14233. # Method to check whether dependent libraries are shared objects.
  14234. deplibs_check_method=$lt_deplibs_check_method
  14235. # Command to use when deplibs_check_method == file_magic.
  14236. file_magic_cmd=$lt_file_magic_cmd
  14237. # Flag that allows shared libraries with undefined symbols to be built.
  14238. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  14239. # Flag that forces no undefined symbols.
  14240. no_undefined_flag=$lt_no_undefined_flag_GCJ
  14241. # Commands used to finish a libtool library installation in a directory.
  14242. finish_cmds=$lt_finish_cmds
  14243. # Same as above, but a single script fragment to be evaled but not shown.
  14244. finish_eval=$lt_finish_eval
  14245. # Take the output of nm and produce a listing of raw symbols and C names.
  14246. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14247. # Transform the output of nm in a proper C declaration
  14248. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14249. # Transform the output of nm in a C name address pair
  14250. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14251. # This is the shared library runtime path variable.
  14252. runpath_var=$runpath_var
  14253. # This is the shared library path variable.
  14254. shlibpath_var=$shlibpath_var
  14255. # Is shlibpath searched before the hard-coded library search path?
  14256. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14257. # How to hardcode a shared library path into an executable.
  14258. hardcode_action=$hardcode_action_GCJ
  14259. # Whether we should hardcode library paths into libraries.
  14260. hardcode_into_libs=$hardcode_into_libs
  14261. # Flag to hardcode \$libdir into a binary during linking.
  14262. # This must work even if \$libdir does not exist.
  14263. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  14264. # If ld is used when linking, flag to hardcode \$libdir into
  14265. # a binary during linking. This must work even if \$libdir does
  14266. # not exist.
  14267. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  14268. # Whether we need a single -rpath flag with a separated argument.
  14269. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  14270. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14271. # resulting binary.
  14272. hardcode_direct=$hardcode_direct_GCJ
  14273. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14274. # resulting binary.
  14275. hardcode_minus_L=$hardcode_minus_L_GCJ
  14276. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14277. # the resulting binary.
  14278. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  14279. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14280. # and all subsequent libraries and executables linked against it.
  14281. hardcode_automatic=$hardcode_automatic_GCJ
  14282. # Variables whose values should be saved in libtool wrapper scripts and
  14283. # restored at relink time.
  14284. variables_saved_for_relink="$variables_saved_for_relink"
  14285. # Whether libtool must link a program against all its dependency libraries.
  14286. link_all_deplibs=$link_all_deplibs_GCJ
  14287. # Compile-time system search path for libraries
  14288. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14289. # Run-time system search path for libraries
  14290. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14291. # Fix the shell variable \$srcfile for the compiler.
  14292. fix_srcfile_path="$fix_srcfile_path_GCJ"
  14293. # Set to yes if exported symbols are required.
  14294. always_export_symbols=$always_export_symbols_GCJ
  14295. # The commands to list exported symbols.
  14296. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  14297. # The commands to extract the exported symbol list from a shared archive.
  14298. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14299. # Symbols that should not be listed in the preloaded symbols.
  14300. exclude_expsyms=$lt_exclude_expsyms_GCJ
  14301. # Symbols that must always be exported.
  14302. include_expsyms=$lt_include_expsyms_GCJ
  14303. # ### END LIBTOOL TAG CONFIG: $tagname
  14304. __EOF__
  14305. else
  14306. # If there is no Makefile yet, we rely on a make rule to execute
  14307. # `config.status --recheck' to rerun these tests and create the
  14308. # libtool script then.
  14309. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14310. if test -f "$ltmain_in"; then
  14311. test -f Makefile && make "$ltmain"
  14312. fi
  14313. fi
  14314. ac_ext=c
  14315. ac_cpp='$CPP $CPPFLAGS'
  14316. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14317. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14318. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14319. CC="$lt_save_CC"
  14320. else
  14321. tagname=""
  14322. fi
  14323. ;;
  14324. RC)
  14325. # Source file extension for RC test sources.
  14326. ac_ext=rc
  14327. # Object file extension for compiled RC test sources.
  14328. objext=o
  14329. objext_RC=$objext
  14330. # Code to be used in simple compile tests
  14331. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  14332. # Code to be used in simple link tests
  14333. lt_simple_link_test_code="$lt_simple_compile_test_code"
  14334. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14335. # If no C compiler was specified, use CC.
  14336. LTCC=${LTCC-"$CC"}
  14337. # Allow CC to be a program name with arguments.
  14338. compiler=$CC
  14339. # save warnings/boilerplate of simple test code
  14340. ac_outfile=conftest.$ac_objext
  14341. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14342. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14343. _lt_compiler_boilerplate=`cat conftest.err`
  14344. $rm conftest*
  14345. ac_outfile=conftest.$ac_objext
  14346. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14347. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14348. _lt_linker_boilerplate=`cat conftest.err`
  14349. $rm conftest*
  14350. # Allow CC to be a program name with arguments.
  14351. lt_save_CC="$CC"
  14352. CC=${RC-"windres"}
  14353. compiler=$CC
  14354. compiler_RC=$CC
  14355. for cc_temp in $compiler""; do
  14356. case $cc_temp in
  14357. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14358. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14359. \-*) ;;
  14360. *) break;;
  14361. esac
  14362. done
  14363. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14364. lt_cv_prog_compiler_c_o_RC=yes
  14365. # The else clause should only fire when bootstrapping the
  14366. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14367. # with your package, and you will get complaints that there are
  14368. # no rules to generate ltmain.sh.
  14369. if test -f "$ltmain"; then
  14370. # See if we are running on zsh, and set the options which allow our commands through
  14371. # without removal of \ escapes.
  14372. if test -n "${ZSH_VERSION+set}" ; then
  14373. setopt NO_GLOB_SUBST
  14374. fi
  14375. # Now quote all the things that may contain metacharacters while being
  14376. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14377. # variables and quote the copies for generation of the libtool script.
  14378. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  14379. SED SHELL STRIP \
  14380. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14381. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14382. deplibs_check_method reload_flag reload_cmds need_locks \
  14383. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14384. lt_cv_sys_global_symbol_to_c_name_address \
  14385. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14386. old_postinstall_cmds old_postuninstall_cmds \
  14387. compiler_RC \
  14388. CC_RC \
  14389. LD_RC \
  14390. lt_prog_compiler_wl_RC \
  14391. lt_prog_compiler_pic_RC \
  14392. lt_prog_compiler_static_RC \
  14393. lt_prog_compiler_no_builtin_flag_RC \
  14394. export_dynamic_flag_spec_RC \
  14395. thread_safe_flag_spec_RC \
  14396. whole_archive_flag_spec_RC \
  14397. enable_shared_with_static_runtimes_RC \
  14398. old_archive_cmds_RC \
  14399. old_archive_from_new_cmds_RC \
  14400. predep_objects_RC \
  14401. postdep_objects_RC \
  14402. predeps_RC \
  14403. postdeps_RC \
  14404. compiler_lib_search_path_RC \
  14405. archive_cmds_RC \
  14406. archive_expsym_cmds_RC \
  14407. postinstall_cmds_RC \
  14408. postuninstall_cmds_RC \
  14409. old_archive_from_expsyms_cmds_RC \
  14410. a