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

13911 lines
404 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for GLPK 4.65.
  4. #
  5. # Report bugs to <bug-glpk@gnu.org>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-glpk@gnu.org
  259. $0: about your system, including any error possibly output
  260. $0: before this message. Then install a modern shell, or
  261. $0: manually run the script under such a shell if you do
  262. $0: have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='GLPK'
  542. PACKAGE_TARNAME='glpk'
  543. PACKAGE_VERSION='4.65'
  544. PACKAGE_STRING='GLPK 4.65'
  545. PACKAGE_BUGREPORT='bug-glpk@gnu.org'
  546. PACKAGE_URL=''
  547. ac_unique_file="src/glpk.h"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. NOUNDEFINED
  588. CPP
  589. OTOOL64
  590. OTOOL
  591. LIPO
  592. NMEDIT
  593. DSYMUTIL
  594. MANIFEST_TOOL
  595. RANLIB
  596. ac_ct_AR
  597. AR
  598. DLLTOOL
  599. OBJDUMP
  600. LN_S
  601. NM
  602. ac_ct_DUMPBIN
  603. DUMPBIN
  604. LD
  605. FGREP
  606. EGREP
  607. GREP
  608. SED
  609. host_os
  610. host_vendor
  611. host_cpu
  612. host
  613. build_os
  614. build_vendor
  615. build_cpu
  616. build
  617. LIBTOOL
  618. am__fastdepCC_FALSE
  619. am__fastdepCC_TRUE
  620. CCDEPMODE
  621. am__nodep
  622. AMDEPBACKSLASH
  623. AMDEP_FALSE
  624. AMDEP_TRUE
  625. am__quote
  626. am__include
  627. DEPDIR
  628. OBJEXT
  629. EXEEXT
  630. ac_ct_CC
  631. CPPFLAGS
  632. LDFLAGS
  633. CFLAGS
  634. CC
  635. am__untar
  636. am__tar
  637. AMTAR
  638. am__leading_dot
  639. SET_MAKE
  640. AWK
  641. mkdir_p
  642. MKDIR_P
  643. INSTALL_STRIP_PROGRAM
  644. STRIP
  645. install_sh
  646. MAKEINFO
  647. AUTOHEADER
  648. AUTOMAKE
  649. AUTOCONF
  650. ACLOCAL
  651. VERSION
  652. PACKAGE
  653. CYGPATH_W
  654. am__isrc
  655. INSTALL_DATA
  656. INSTALL_SCRIPT
  657. INSTALL_PROGRAM
  658. target_alias
  659. host_alias
  660. build_alias
  661. LIBS
  662. ECHO_T
  663. ECHO_N
  664. ECHO_C
  665. DEFS
  666. mandir
  667. localedir
  668. libdir
  669. psdir
  670. pdfdir
  671. dvidir
  672. htmldir
  673. infodir
  674. docdir
  675. oldincludedir
  676. includedir
  677. localstatedir
  678. sharedstatedir
  679. sysconfdir
  680. datadir
  681. datarootdir
  682. libexecdir
  683. sbindir
  684. bindir
  685. program_transform_name
  686. prefix
  687. exec_prefix
  688. PACKAGE_URL
  689. PACKAGE_BUGREPORT
  690. PACKAGE_STRING
  691. PACKAGE_VERSION
  692. PACKAGE_TARNAME
  693. PACKAGE_NAME
  694. PATH_SEPARATOR
  695. SHELL'
  696. ac_subst_files=''
  697. ac_user_opts='
  698. enable_option_checking
  699. with_gmp
  700. enable_dl
  701. enable_odbc
  702. enable_mysql
  703. enable_reentrant
  704. enable_dependency_tracking
  705. enable_shared
  706. enable_static
  707. with_pic
  708. enable_fast_install
  709. with_gnu_ld
  710. with_sysroot
  711. enable_libtool_lock
  712. '
  713. ac_precious_vars='build_alias
  714. host_alias
  715. target_alias
  716. CC
  717. CFLAGS
  718. LDFLAGS
  719. LIBS
  720. CPPFLAGS
  721. CPP'
  722. # Initialize some variables set by options.
  723. ac_init_help=
  724. ac_init_version=false
  725. ac_unrecognized_opts=
  726. ac_unrecognized_sep=
  727. # The variables have the same names as the options, with
  728. # dashes changed to underlines.
  729. cache_file=/dev/null
  730. exec_prefix=NONE
  731. no_create=
  732. no_recursion=
  733. prefix=NONE
  734. program_prefix=NONE
  735. program_suffix=NONE
  736. program_transform_name=s,x,x,
  737. silent=
  738. site=
  739. srcdir=
  740. verbose=
  741. x_includes=NONE
  742. x_libraries=NONE
  743. # Installation directory options.
  744. # These are left unexpanded so users can "make install exec_prefix=/foo"
  745. # and all the variables that are supposed to be based on exec_prefix
  746. # by default will actually change.
  747. # Use braces instead of parens because sh, perl, etc. also accept them.
  748. # (The list follows the same order as the GNU Coding Standards.)
  749. bindir='${exec_prefix}/bin'
  750. sbindir='${exec_prefix}/sbin'
  751. libexecdir='${exec_prefix}/libexec'
  752. datarootdir='${prefix}/share'
  753. datadir='${datarootdir}'
  754. sysconfdir='${prefix}/etc'
  755. sharedstatedir='${prefix}/com'
  756. localstatedir='${prefix}/var'
  757. includedir='${prefix}/include'
  758. oldincludedir='/usr/include'
  759. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  760. infodir='${datarootdir}/info'
  761. htmldir='${docdir}'
  762. dvidir='${docdir}'
  763. pdfdir='${docdir}'
  764. psdir='${docdir}'
  765. libdir='${exec_prefix}/lib'
  766. localedir='${datarootdir}/locale'
  767. mandir='${datarootdir}/man'
  768. ac_prev=
  769. ac_dashdash=
  770. for ac_option
  771. do
  772. # If the previous option needs an argument, assign it.
  773. if test -n "$ac_prev"; then
  774. eval $ac_prev=\$ac_option
  775. ac_prev=
  776. continue
  777. fi
  778. case $ac_option in
  779. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  780. *=) ac_optarg= ;;
  781. *) ac_optarg=yes ;;
  782. esac
  783. # Accept the important Cygnus configure options, so we can diagnose typos.
  784. case $ac_dashdash$ac_option in
  785. --)
  786. ac_dashdash=yes ;;
  787. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  788. ac_prev=bindir ;;
  789. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  790. bindir=$ac_optarg ;;
  791. -build | --build | --buil | --bui | --bu)
  792. ac_prev=build_alias ;;
  793. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  794. build_alias=$ac_optarg ;;
  795. -cache-file | --cache-file | --cache-fil | --cache-fi \
  796. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  797. ac_prev=cache_file ;;
  798. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  799. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  800. cache_file=$ac_optarg ;;
  801. --config-cache | -C)
  802. cache_file=config.cache ;;
  803. -datadir | --datadir | --datadi | --datad)
  804. ac_prev=datadir ;;
  805. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  806. datadir=$ac_optarg ;;
  807. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  808. | --dataroo | --dataro | --datar)
  809. ac_prev=datarootdir ;;
  810. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  811. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  812. datarootdir=$ac_optarg ;;
  813. -disable-* | --disable-*)
  814. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  815. # Reject names that are not valid shell variable names.
  816. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  817. as_fn_error $? "invalid feature name: $ac_useropt"
  818. ac_useropt_orig=$ac_useropt
  819. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  820. case $ac_user_opts in
  821. *"
  822. "enable_$ac_useropt"
  823. "*) ;;
  824. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  825. ac_unrecognized_sep=', ';;
  826. esac
  827. eval enable_$ac_useropt=no ;;
  828. -docdir | --docdir | --docdi | --doc | --do)
  829. ac_prev=docdir ;;
  830. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  831. docdir=$ac_optarg ;;
  832. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  833. ac_prev=dvidir ;;
  834. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  835. dvidir=$ac_optarg ;;
  836. -enable-* | --enable-*)
  837. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  838. # Reject names that are not valid shell variable names.
  839. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  840. as_fn_error $? "invalid feature name: $ac_useropt"
  841. ac_useropt_orig=$ac_useropt
  842. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  843. case $ac_user_opts in
  844. *"
  845. "enable_$ac_useropt"
  846. "*) ;;
  847. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  848. ac_unrecognized_sep=', ';;
  849. esac
  850. eval enable_$ac_useropt=\$ac_optarg ;;
  851. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  852. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  853. | --exec | --exe | --ex)
  854. ac_prev=exec_prefix ;;
  855. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  856. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  857. | --exec=* | --exe=* | --ex=*)
  858. exec_prefix=$ac_optarg ;;
  859. -gas | --gas | --ga | --g)
  860. # Obsolete; use --with-gas.
  861. with_gas=yes ;;
  862. -help | --help | --hel | --he | -h)
  863. ac_init_help=long ;;
  864. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  865. ac_init_help=recursive ;;
  866. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  867. ac_init_help=short ;;
  868. -host | --host | --hos | --ho)
  869. ac_prev=host_alias ;;
  870. -host=* | --host=* | --hos=* | --ho=*)
  871. host_alias=$ac_optarg ;;
  872. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  873. ac_prev=htmldir ;;
  874. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  875. | --ht=*)
  876. htmldir=$ac_optarg ;;
  877. -includedir | --includedir | --includedi | --included | --include \
  878. | --includ | --inclu | --incl | --inc)
  879. ac_prev=includedir ;;
  880. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  881. | --includ=* | --inclu=* | --incl=* | --inc=*)
  882. includedir=$ac_optarg ;;
  883. -infodir | --infodir | --infodi | --infod | --info | --inf)
  884. ac_prev=infodir ;;
  885. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  886. infodir=$ac_optarg ;;
  887. -libdir | --libdir | --libdi | --libd)
  888. ac_prev=libdir ;;
  889. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  890. libdir=$ac_optarg ;;
  891. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  892. | --libexe | --libex | --libe)
  893. ac_prev=libexecdir ;;
  894. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  895. | --libexe=* | --libex=* | --libe=*)
  896. libexecdir=$ac_optarg ;;
  897. -localedir | --localedir | --localedi | --localed | --locale)
  898. ac_prev=localedir ;;
  899. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  900. localedir=$ac_optarg ;;
  901. -localstatedir | --localstatedir | --localstatedi | --localstated \
  902. | --localstate | --localstat | --localsta | --localst | --locals)
  903. ac_prev=localstatedir ;;
  904. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  905. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  906. localstatedir=$ac_optarg ;;
  907. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  908. ac_prev=mandir ;;
  909. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  910. mandir=$ac_optarg ;;
  911. -nfp | --nfp | --nf)
  912. # Obsolete; use --without-fp.
  913. with_fp=no ;;
  914. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  915. | --no-cr | --no-c | -n)
  916. no_create=yes ;;
  917. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  918. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  919. no_recursion=yes ;;
  920. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  921. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  922. | --oldin | --oldi | --old | --ol | --o)
  923. ac_prev=oldincludedir ;;
  924. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  925. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  926. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  927. oldincludedir=$ac_optarg ;;
  928. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  929. ac_prev=prefix ;;
  930. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  931. prefix=$ac_optarg ;;
  932. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  933. | --program-pre | --program-pr | --program-p)
  934. ac_prev=program_prefix ;;
  935. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  936. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  937. program_prefix=$ac_optarg ;;
  938. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  939. | --program-suf | --program-su | --program-s)
  940. ac_prev=program_suffix ;;
  941. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  942. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  943. program_suffix=$ac_optarg ;;
  944. -program-transform-name | --program-transform-name \
  945. | --program-transform-nam | --program-transform-na \
  946. | --program-transform-n | --program-transform- \
  947. | --program-transform | --program-transfor \
  948. | --program-transfo | --program-transf \
  949. | --program-trans | --program-tran \
  950. | --progr-tra | --program-tr | --program-t)
  951. ac_prev=program_transform_name ;;
  952. -program-transform-name=* | --program-transform-name=* \
  953. | --program-transform-nam=* | --program-transform-na=* \
  954. | --program-transform-n=* | --program-transform-=* \
  955. | --program-transform=* | --program-transfor=* \
  956. | --program-transfo=* | --program-transf=* \
  957. | --program-trans=* | --program-tran=* \
  958. | --progr-tra=* | --program-tr=* | --program-t=*)
  959. program_transform_name=$ac_optarg ;;
  960. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  961. ac_prev=pdfdir ;;
  962. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  963. pdfdir=$ac_optarg ;;
  964. -psdir | --psdir | --psdi | --psd | --ps)
  965. ac_prev=psdir ;;
  966. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  967. psdir=$ac_optarg ;;
  968. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  969. | -silent | --silent | --silen | --sile | --sil)
  970. silent=yes ;;
  971. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  972. ac_prev=sbindir ;;
  973. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  974. | --sbi=* | --sb=*)
  975. sbindir=$ac_optarg ;;
  976. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  977. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  978. | --sharedst | --shareds | --shared | --share | --shar \
  979. | --sha | --sh)
  980. ac_prev=sharedstatedir ;;
  981. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  982. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  983. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  984. | --sha=* | --sh=*)
  985. sharedstatedir=$ac_optarg ;;
  986. -site | --site | --sit)
  987. ac_prev=site ;;
  988. -site=* | --site=* | --sit=*)
  989. site=$ac_optarg ;;
  990. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  991. ac_prev=srcdir ;;
  992. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  993. srcdir=$ac_optarg ;;
  994. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  995. | --syscon | --sysco | --sysc | --sys | --sy)
  996. ac_prev=sysconfdir ;;
  997. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  998. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  999. sysconfdir=$ac_optarg ;;
  1000. -target | --target | --targe | --targ | --tar | --ta | --t)
  1001. ac_prev=target_alias ;;
  1002. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1003. target_alias=$ac_optarg ;;
  1004. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1005. verbose=yes ;;
  1006. -version | --version | --versio | --versi | --vers | -V)
  1007. ac_init_version=: ;;
  1008. -with-* | --with-*)
  1009. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1010. # Reject names that are not valid shell variable names.
  1011. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1012. as_fn_error $? "invalid package name: $ac_useropt"
  1013. ac_useropt_orig=$ac_useropt
  1014. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1015. case $ac_user_opts in
  1016. *"
  1017. "with_$ac_useropt"
  1018. "*) ;;
  1019. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1020. ac_unrecognized_sep=', ';;
  1021. esac
  1022. eval with_$ac_useropt=\$ac_optarg ;;
  1023. -without-* | --without-*)
  1024. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1025. # Reject names that are not valid shell variable names.
  1026. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1027. as_fn_error $? "invalid package name: $ac_useropt"
  1028. ac_useropt_orig=$ac_useropt
  1029. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1030. case $ac_user_opts in
  1031. *"
  1032. "with_$ac_useropt"
  1033. "*) ;;
  1034. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1035. ac_unrecognized_sep=', ';;
  1036. esac
  1037. eval with_$ac_useropt=no ;;
  1038. --x)
  1039. # Obsolete; use --with-x.
  1040. with_x=yes ;;
  1041. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1042. | --x-incl | --x-inc | --x-in | --x-i)
  1043. ac_prev=x_includes ;;
  1044. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1045. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1046. x_includes=$ac_optarg ;;
  1047. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1048. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1049. ac_prev=x_libraries ;;
  1050. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1051. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1052. x_libraries=$ac_optarg ;;
  1053. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1054. Try \`$0 --help' for more information"
  1055. ;;
  1056. *=*)
  1057. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1058. # Reject names that are not valid shell variable names.
  1059. case $ac_envvar in #(
  1060. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1061. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1062. esac
  1063. eval $ac_envvar=\$ac_optarg
  1064. export $ac_envvar ;;
  1065. *)
  1066. # FIXME: should be removed in autoconf 3.0.
  1067. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1068. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1069. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1070. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1071. ;;
  1072. esac
  1073. done
  1074. if test -n "$ac_prev"; then
  1075. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1076. as_fn_error $? "missing argument to $ac_option"
  1077. fi
  1078. if test -n "$ac_unrecognized_opts"; then
  1079. case $enable_option_checking in
  1080. no) ;;
  1081. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1082. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1083. esac
  1084. fi
  1085. # Check all directory arguments for consistency.
  1086. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1087. datadir sysconfdir sharedstatedir localstatedir includedir \
  1088. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1089. libdir localedir mandir
  1090. do
  1091. eval ac_val=\$$ac_var
  1092. # Remove trailing slashes.
  1093. case $ac_val in
  1094. */ )
  1095. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1096. eval $ac_var=\$ac_val;;
  1097. esac
  1098. # Be sure to have absolute directory names.
  1099. case $ac_val in
  1100. [\\/$]* | ?:[\\/]* ) continue;;
  1101. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1102. esac
  1103. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1104. done
  1105. # There might be people who depend on the old broken behavior: `$host'
  1106. # used to hold the argument of --host etc.
  1107. # FIXME: To remove some day.
  1108. build=$build_alias
  1109. host=$host_alias
  1110. target=$target_alias
  1111. # FIXME: To remove some day.
  1112. if test "x$host_alias" != x; then
  1113. if test "x$build_alias" = x; then
  1114. cross_compiling=maybe
  1115. elif test "x$build_alias" != "x$host_alias"; then
  1116. cross_compiling=yes
  1117. fi
  1118. fi
  1119. ac_tool_prefix=
  1120. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1121. test "$silent" = yes && exec 6>/dev/null
  1122. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1123. ac_ls_di=`ls -di .` &&
  1124. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1125. as_fn_error $? "working directory cannot be determined"
  1126. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1127. as_fn_error $? "pwd does not report name of working directory"
  1128. # Find the source files, if location was not specified.
  1129. if test -z "$srcdir"; then
  1130. ac_srcdir_defaulted=yes
  1131. # Try the directory containing this script, then the parent directory.
  1132. ac_confdir=`$as_dirname -- "$as_myself" ||
  1133. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1134. X"$as_myself" : 'X\(//\)[^/]' \| \
  1135. X"$as_myself" : 'X\(//\)$' \| \
  1136. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1137. $as_echo X"$as_myself" |
  1138. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1139. s//\1/
  1140. q
  1141. }
  1142. /^X\(\/\/\)[^/].*/{
  1143. s//\1/
  1144. q
  1145. }
  1146. /^X\(\/\/\)$/{
  1147. s//\1/
  1148. q
  1149. }
  1150. /^X\(\/\).*/{
  1151. s//\1/
  1152. q
  1153. }
  1154. s/.*/./; q'`
  1155. srcdir=$ac_confdir
  1156. if test ! -r "$srcdir/$ac_unique_file"; then
  1157. srcdir=..
  1158. fi
  1159. else
  1160. ac_srcdir_defaulted=no
  1161. fi
  1162. if test ! -r "$srcdir/$ac_unique_file"; then
  1163. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1164. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1165. fi
  1166. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1167. ac_abs_confdir=`(
  1168. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1169. pwd)`
  1170. # When building in place, set srcdir=.
  1171. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1172. srcdir=.
  1173. fi
  1174. # Remove unnecessary trailing slashes from srcdir.
  1175. # Double slashes in file names in object file debugging info
  1176. # mess up M-x gdb in Emacs.
  1177. case $srcdir in
  1178. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1179. esac
  1180. for ac_var in $ac_precious_vars; do
  1181. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1182. eval ac_env_${ac_var}_value=\$${ac_var}
  1183. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1184. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1185. done
  1186. #
  1187. # Report the --help message.
  1188. #
  1189. if test "$ac_init_help" = "long"; then
  1190. # Omit some internal or obsolete options to make the list less imposing.
  1191. # This message is too long to be a string in the A/UX 3.1 sh.
  1192. cat <<_ACEOF
  1193. \`configure' configures GLPK 4.65 to adapt to many kinds of systems.
  1194. Usage: $0 [OPTION]... [VAR=VALUE]...
  1195. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1196. VAR=VALUE. See below for descriptions of some of the useful variables.
  1197. Defaults for the options are specified in brackets.
  1198. Configuration:
  1199. -h, --help display this help and exit
  1200. --help=short display options specific to this package
  1201. --help=recursive display the short help of all the included packages
  1202. -V, --version display version information and exit
  1203. -q, --quiet, --silent do not print \`checking ...' messages
  1204. --cache-file=FILE cache test results in FILE [disabled]
  1205. -C, --config-cache alias for \`--cache-file=config.cache'
  1206. -n, --no-create do not create output files
  1207. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1208. Installation directories:
  1209. --prefix=PREFIX install architecture-independent files in PREFIX
  1210. [$ac_default_prefix]
  1211. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1212. [PREFIX]
  1213. By default, \`make install' will install all the files in
  1214. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1215. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1216. for instance \`--prefix=\$HOME'.
  1217. For better control, use the options below.
  1218. Fine tuning of the installation directories:
  1219. --bindir=DIR user executables [EPREFIX/bin]
  1220. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1221. --libexecdir=DIR program executables [EPREFIX/libexec]
  1222. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1223. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1224. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1225. --libdir=DIR object code libraries [EPREFIX/lib]
  1226. --includedir=DIR C header files [PREFIX/include]
  1227. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1228. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1229. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1230. --infodir=DIR info documentation [DATAROOTDIR/info]
  1231. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1232. --mandir=DIR man documentation [DATAROOTDIR/man]
  1233. --docdir=DIR documentation root [DATAROOTDIR/doc/glpk]
  1234. --htmldir=DIR html documentation [DOCDIR]
  1235. --dvidir=DIR dvi documentation [DOCDIR]
  1236. --pdfdir=DIR pdf documentation [DOCDIR]
  1237. --psdir=DIR ps documentation [DOCDIR]
  1238. _ACEOF
  1239. cat <<\_ACEOF
  1240. Program names:
  1241. --program-prefix=PREFIX prepend PREFIX to installed program names
  1242. --program-suffix=SUFFIX append SUFFIX to installed program names
  1243. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1244. System types:
  1245. --build=BUILD configure for building on BUILD [guessed]
  1246. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1247. _ACEOF
  1248. fi
  1249. if test -n "$ac_init_help"; then
  1250. case $ac_init_help in
  1251. short | recursive ) echo "Configuration of GLPK 4.65:";;
  1252. esac
  1253. cat <<\_ACEOF
  1254. Optional Features:
  1255. --disable-option-checking ignore unrecognized --enable/--with options
  1256. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1257. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1258. --enable-dl enable shared library support [[default=no]]
  1259. --enable-odbc enable MathProg ODBC support [[default=no]]
  1260. --enable-mysql enable MathProg MySQL support [[default=no]]
  1261. --enable-reentrant enable reentrancy support [[default=yes]]
  1262. --enable-dependency-tracking
  1263. do not reject slow dependency extractors
  1264. --disable-dependency-tracking
  1265. speeds up one-time build
  1266. --enable-shared[=PKGS] build shared libraries [default=yes]
  1267. --enable-static[=PKGS] build static libraries [default=yes]
  1268. --enable-fast-install[=PKGS]
  1269. optimize for fast installation [default=yes]
  1270. --disable-libtool-lock avoid locking (might break parallel builds)
  1271. Optional Packages:
  1272. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1273. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1274. --with-gmp use GNU MP bignum library [[default=no]]
  1275. --with-pic try to use only PIC/non-PIC objects [default=use
  1276. both]
  1277. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1278. --with-sysroot=DIR Search for dependent libraries within DIR
  1279. (or the compiler's sysroot if not specified).
  1280. Some influential environment variables:
  1281. CC C compiler command
  1282. CFLAGS C compiler flags
  1283. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1284. nonstandard directory <lib dir>
  1285. LIBS libraries to pass to the linker, e.g. -l<library>
  1286. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1287. you have headers in a nonstandard directory <include dir>
  1288. CPP C preprocessor
  1289. Use these variables to override the choices made by `configure' or to help
  1290. it to find libraries and programs with nonstandard names/locations.
  1291. Report bugs to <bug-glpk@gnu.org>.
  1292. _ACEOF
  1293. ac_status=$?
  1294. fi
  1295. if test "$ac_init_help" = "recursive"; then
  1296. # If there are subdirs, report their specific --help.
  1297. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1298. test -d "$ac_dir" ||
  1299. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1300. continue
  1301. ac_builddir=.
  1302. case "$ac_dir" in
  1303. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1304. *)
  1305. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1306. # A ".." for each directory in $ac_dir_suffix.
  1307. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1308. case $ac_top_builddir_sub in
  1309. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1310. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1311. esac ;;
  1312. esac
  1313. ac_abs_top_builddir=$ac_pwd
  1314. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1315. # for backward compatibility:
  1316. ac_top_builddir=$ac_top_build_prefix
  1317. case $srcdir in
  1318. .) # We are building in place.
  1319. ac_srcdir=.
  1320. ac_top_srcdir=$ac_top_builddir_sub
  1321. ac_abs_top_srcdir=$ac_pwd ;;
  1322. [\\/]* | ?:[\\/]* ) # Absolute name.
  1323. ac_srcdir=$srcdir$ac_dir_suffix;
  1324. ac_top_srcdir=$srcdir
  1325. ac_abs_top_srcdir=$srcdir ;;
  1326. *) # Relative name.
  1327. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1328. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1329. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1330. esac
  1331. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1332. cd "$ac_dir" || { ac_status=$?; continue; }
  1333. # Check for guested configure.
  1334. if test -f "$ac_srcdir/configure.gnu"; then
  1335. echo &&
  1336. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1337. elif test -f "$ac_srcdir/configure"; then
  1338. echo &&
  1339. $SHELL "$ac_srcdir/configure" --help=recursive
  1340. else
  1341. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1342. fi || ac_status=$?
  1343. cd "$ac_pwd" || { ac_status=$?; break; }
  1344. done
  1345. fi
  1346. test -n "$ac_init_help" && exit $ac_status
  1347. if $ac_init_version; then
  1348. cat <<\_ACEOF
  1349. GLPK configure 4.65
  1350. generated by GNU Autoconf 2.69
  1351. Copyright (C) 2012 Free Software Foundation, Inc.
  1352. This configure script is free software; the Free Software Foundation
  1353. gives unlimited permission to copy, distribute and modify it.
  1354. _ACEOF
  1355. exit
  1356. fi
  1357. ## ------------------------ ##
  1358. ## Autoconf initialization. ##
  1359. ## ------------------------ ##
  1360. # ac_fn_c_try_compile LINENO
  1361. # --------------------------
  1362. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1363. ac_fn_c_try_compile ()
  1364. {
  1365. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1366. rm -f conftest.$ac_objext
  1367. if { { ac_try="$ac_compile"
  1368. case "(($ac_try" in
  1369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1370. *) ac_try_echo=$ac_try;;
  1371. esac
  1372. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1373. $as_echo "$ac_try_echo"; } >&5
  1374. (eval "$ac_compile") 2>conftest.err
  1375. ac_status=$?
  1376. if test -s conftest.err; then
  1377. grep -v '^ *+' conftest.err >conftest.er1
  1378. cat conftest.er1 >&5
  1379. mv -f conftest.er1 conftest.err
  1380. fi
  1381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1382. test $ac_status = 0; } && {
  1383. test -z "$ac_c_werror_flag" ||
  1384. test ! -s conftest.err
  1385. } && test -s conftest.$ac_objext; then :
  1386. ac_retval=0
  1387. else
  1388. $as_echo "$as_me: failed program was:" >&5
  1389. sed 's/^/| /' conftest.$ac_ext >&5
  1390. ac_retval=1
  1391. fi
  1392. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1393. as_fn_set_status $ac_retval
  1394. } # ac_fn_c_try_compile
  1395. # ac_fn_c_try_link LINENO
  1396. # -----------------------
  1397. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1398. ac_fn_c_try_link ()
  1399. {
  1400. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1401. rm -f conftest.$ac_objext conftest$ac_exeext
  1402. if { { ac_try="$ac_link"
  1403. case "(($ac_try" in
  1404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1405. *) ac_try_echo=$ac_try;;
  1406. esac
  1407. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1408. $as_echo "$ac_try_echo"; } >&5
  1409. (eval "$ac_link") 2>conftest.err
  1410. ac_status=$?
  1411. if test -s conftest.err; then
  1412. grep -v '^ *+' conftest.err >conftest.er1
  1413. cat conftest.er1 >&5
  1414. mv -f conftest.er1 conftest.err
  1415. fi
  1416. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1417. test $ac_status = 0; } && {
  1418. test -z "$ac_c_werror_flag" ||
  1419. test ! -s conftest.err
  1420. } && test -s conftest$ac_exeext && {
  1421. test "$cross_compiling" = yes ||
  1422. test -x conftest$ac_exeext
  1423. }; then :
  1424. ac_retval=0
  1425. else
  1426. $as_echo "$as_me: failed program was:" >&5
  1427. sed 's/^/| /' conftest.$ac_ext >&5
  1428. ac_retval=1
  1429. fi
  1430. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1431. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1432. # interfere with the next link command; also delete a directory that is
  1433. # left behind by Apple's compiler. We do this before executing the actions.
  1434. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1435. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1436. as_fn_set_status $ac_retval
  1437. } # ac_fn_c_try_link
  1438. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1439. # -------------------------------------------------------
  1440. # Tests whether HEADER exists and can be compiled using the include files in
  1441. # INCLUDES, setting the cache variable VAR accordingly.
  1442. ac_fn_c_check_header_compile ()
  1443. {
  1444. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1446. $as_echo_n "checking for $2... " >&6; }
  1447. if eval \${$3+:} false; then :
  1448. $as_echo_n "(cached) " >&6
  1449. else
  1450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1451. /* end confdefs.h. */
  1452. $4
  1453. #include <$2>
  1454. _ACEOF
  1455. if ac_fn_c_try_compile "$LINENO"; then :
  1456. eval "$3=yes"
  1457. else
  1458. eval "$3=no"
  1459. fi
  1460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1461. fi
  1462. eval ac_res=\$$3
  1463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1464. $as_echo "$ac_res" >&6; }
  1465. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1466. } # ac_fn_c_check_header_compile
  1467. # ac_fn_c_try_cpp LINENO
  1468. # ----------------------
  1469. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1470. ac_fn_c_try_cpp ()
  1471. {
  1472. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1473. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1474. case "(($ac_try" in
  1475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1476. *) ac_try_echo=$ac_try;;
  1477. esac
  1478. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1479. $as_echo "$ac_try_echo"; } >&5
  1480. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1481. ac_status=$?
  1482. if test -s conftest.err; then
  1483. grep -v '^ *+' conftest.err >conftest.er1
  1484. cat conftest.er1 >&5
  1485. mv -f conftest.er1 conftest.err
  1486. fi
  1487. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1488. test $ac_status = 0; } > conftest.i && {
  1489. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1490. test ! -s conftest.err
  1491. }; then :
  1492. ac_retval=0
  1493. else
  1494. $as_echo "$as_me: failed program was:" >&5
  1495. sed 's/^/| /' conftest.$ac_ext >&5
  1496. ac_retval=1
  1497. fi
  1498. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1499. as_fn_set_status $ac_retval
  1500. } # ac_fn_c_try_cpp
  1501. # ac_fn_c_try_run LINENO
  1502. # ----------------------
  1503. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1504. # that executables *can* be run.
  1505. ac_fn_c_try_run ()
  1506. {
  1507. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1508. if { { ac_try="$ac_link"
  1509. case "(($ac_try" in
  1510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1511. *) ac_try_echo=$ac_try;;
  1512. esac
  1513. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1514. $as_echo "$ac_try_echo"; } >&5
  1515. (eval "$ac_link") 2>&5
  1516. ac_status=$?
  1517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1518. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1519. { { case "(($ac_try" in
  1520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1521. *) ac_try_echo=$ac_try;;
  1522. esac
  1523. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1524. $as_echo "$ac_try_echo"; } >&5
  1525. (eval "$ac_try") 2>&5
  1526. ac_status=$?
  1527. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1528. test $ac_status = 0; }; }; then :
  1529. ac_retval=0
  1530. else
  1531. $as_echo "$as_me: program exited with status $ac_status" >&5
  1532. $as_echo "$as_me: failed program was:" >&5
  1533. sed 's/^/| /' conftest.$ac_ext >&5
  1534. ac_retval=$ac_status
  1535. fi
  1536. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1537. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1538. as_fn_set_status $ac_retval
  1539. } # ac_fn_c_try_run
  1540. # ac_fn_c_check_func LINENO FUNC VAR
  1541. # ----------------------------------
  1542. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1543. ac_fn_c_check_func ()
  1544. {
  1545. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1547. $as_echo_n "checking for $2... " >&6; }
  1548. if eval \${$3+:} false; then :
  1549. $as_echo_n "(cached) " >&6
  1550. else
  1551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1552. /* end confdefs.h. */
  1553. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1554. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1555. #define $2 innocuous_$2
  1556. /* System header to define __stub macros and hopefully few prototypes,
  1557. which can conflict with char $2 (); below.
  1558. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1559. <limits.h> exists even on freestanding compilers. */
  1560. #ifdef __STDC__
  1561. # include <limits.h>
  1562. #else
  1563. # include <assert.h>
  1564. #endif
  1565. #undef $2
  1566. /* Override any GCC internal prototype to avoid an error.
  1567. Use char because int might match the return type of a GCC
  1568. builtin and then its argument prototype would still apply. */
  1569. #ifdef __cplusplus
  1570. extern "C"
  1571. #endif
  1572. char $2 ();
  1573. /* The GNU C library defines this for functions which it implements
  1574. to always fail with ENOSYS. Some functions are actually named
  1575. something starting with __ and the normal name is an alias. */
  1576. #if defined __stub_$2 || defined __stub___$2
  1577. choke me
  1578. #endif
  1579. int
  1580. main ()
  1581. {
  1582. return $2 ();
  1583. ;
  1584. return 0;
  1585. }
  1586. _ACEOF
  1587. if ac_fn_c_try_link "$LINENO"; then :
  1588. eval "$3=yes"
  1589. else
  1590. eval "$3=no"
  1591. fi
  1592. rm -f core conftest.err conftest.$ac_objext \
  1593. conftest$ac_exeext conftest.$ac_ext
  1594. fi
  1595. eval ac_res=\$$3
  1596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1597. $as_echo "$ac_res" >&6; }
  1598. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1599. } # ac_fn_c_check_func
  1600. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1601. # -------------------------------------------------------
  1602. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1603. # the include files in INCLUDES and setting the cache variable VAR
  1604. # accordingly.
  1605. ac_fn_c_check_header_mongrel ()
  1606. {
  1607. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1608. if eval \${$3+:} false; then :
  1609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1610. $as_echo_n "checking for $2... " >&6; }
  1611. if eval \${$3+:} false; then :
  1612. $as_echo_n "(cached) " >&6
  1613. fi
  1614. eval ac_res=\$$3
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1616. $as_echo "$ac_res" >&6; }
  1617. else
  1618. # Is the header compilable?
  1619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1620. $as_echo_n "checking $2 usability... " >&6; }
  1621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1622. /* end confdefs.h. */
  1623. $4
  1624. #include <$2>
  1625. _ACEOF
  1626. if ac_fn_c_try_compile "$LINENO"; then :
  1627. ac_header_compiler=yes
  1628. else
  1629. ac_header_compiler=no
  1630. fi
  1631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1633. $as_echo "$ac_header_compiler" >&6; }
  1634. # Is the header present?
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1636. $as_echo_n "checking $2 presence... " >&6; }
  1637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1638. /* end confdefs.h. */
  1639. #include <$2>
  1640. _ACEOF
  1641. if ac_fn_c_try_cpp "$LINENO"; then :
  1642. ac_header_preproc=yes
  1643. else
  1644. ac_header_preproc=no
  1645. fi
  1646. rm -f conftest.err conftest.i conftest.$ac_ext
  1647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1648. $as_echo "$ac_header_preproc" >&6; }
  1649. # So? What about this header?
  1650. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1651. yes:no: )
  1652. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1653. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1655. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1656. ;;
  1657. no:yes:* )
  1658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1659. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1660. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1661. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1663. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1665. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1666. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1667. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1668. ( $as_echo "## ------------------------------- ##
  1669. ## Report this to bug-glpk@gnu.org ##
  1670. ## ------------------------------- ##"
  1671. ) | sed "s/^/$as_me: WARNING: /" >&2
  1672. ;;
  1673. esac
  1674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1675. $as_echo_n "checking for $2... " >&6; }
  1676. if eval \${$3+:} false; then :
  1677. $as_echo_n "(cached) " >&6
  1678. else
  1679. eval "$3=\$ac_header_compiler"
  1680. fi
  1681. eval ac_res=\$$3
  1682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1683. $as_echo "$ac_res" >&6; }
  1684. fi
  1685. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1686. } # ac_fn_c_check_header_mongrel
  1687. cat >config.log <<_ACEOF
  1688. This file contains any messages produced by compilers while
  1689. running configure, to aid debugging if configure makes a mistake.
  1690. It was created by GLPK $as_me 4.65, which was
  1691. generated by GNU Autoconf 2.69. Invocation command line was
  1692. $ $0 $@
  1693. _ACEOF
  1694. exec 5>>config.log
  1695. {
  1696. cat <<_ASUNAME
  1697. ## --------- ##
  1698. ## Platform. ##
  1699. ## --------- ##
  1700. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1701. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1702. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1703. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1704. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1705. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1706. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1707. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1708. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1709. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1710. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1711. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1712. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1713. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1714. _ASUNAME
  1715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1716. for as_dir in $PATH
  1717. do
  1718. IFS=$as_save_IFS
  1719. test -z "$as_dir" && as_dir=.
  1720. $as_echo "PATH: $as_dir"
  1721. done
  1722. IFS=$as_save_IFS
  1723. } >&5
  1724. cat >&5 <<_ACEOF
  1725. ## ----------- ##
  1726. ## Core tests. ##
  1727. ## ----------- ##
  1728. _ACEOF
  1729. # Keep a trace of the command line.
  1730. # Strip out --no-create and --no-recursion so they do not pile up.
  1731. # Strip out --silent because we don't want to record it for future runs.
  1732. # Also quote any args containing shell meta-characters.
  1733. # Make two passes to allow for proper duplicate-argument suppression.
  1734. ac_configure_args=
  1735. ac_configure_args0=
  1736. ac_configure_args1=
  1737. ac_must_keep_next=false
  1738. for ac_pass in 1 2
  1739. do
  1740. for ac_arg
  1741. do
  1742. case $ac_arg in
  1743. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1744. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1745. | -silent | --silent | --silen | --sile | --sil)
  1746. continue ;;
  1747. *\'*)
  1748. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1749. esac
  1750. case $ac_pass in
  1751. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1752. 2)
  1753. as_fn_append ac_configure_args1 " '$ac_arg'"
  1754. if test $ac_must_keep_next = true; then
  1755. ac_must_keep_next=false # Got value, back to normal.
  1756. else
  1757. case $ac_arg in
  1758. *=* | --config-cache | -C | -disable-* | --disable-* \
  1759. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1760. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1761. | -with-* | --with-* | -without-* | --without-* | --x)
  1762. case "$ac_configure_args0 " in
  1763. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1764. esac
  1765. ;;
  1766. -* ) ac_must_keep_next=true ;;
  1767. esac
  1768. fi
  1769. as_fn_append ac_configure_args " '$ac_arg'"
  1770. ;;
  1771. esac
  1772. done
  1773. done
  1774. { ac_configure_args0=; unset ac_configure_args0;}
  1775. { ac_configure_args1=; unset ac_configure_args1;}
  1776. # When interrupted or exit'd, cleanup temporary files, and complete
  1777. # config.log. We remove comments because anyway the quotes in there
  1778. # would cause problems or look ugly.
  1779. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1780. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1781. trap 'exit_status=$?
  1782. # Save into config.log some information that might help in debugging.
  1783. {
  1784. echo
  1785. $as_echo "## ---------------- ##
  1786. ## Cache variables. ##
  1787. ## ---------------- ##"
  1788. echo
  1789. # The following way of writing the cache mishandles newlines in values,
  1790. (
  1791. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1792. eval ac_val=\$$ac_var
  1793. case $ac_val in #(
  1794. *${as_nl}*)
  1795. case $ac_var in #(
  1796. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1797. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1798. esac
  1799. case $ac_var in #(
  1800. _ | IFS | as_nl) ;; #(
  1801. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1802. *) { eval $ac_var=; unset $ac_var;} ;;
  1803. esac ;;
  1804. esac
  1805. done
  1806. (set) 2>&1 |
  1807. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1808. *${as_nl}ac_space=\ *)
  1809. sed -n \
  1810. "s/'\''/'\''\\\\'\'''\''/g;
  1811. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1812. ;; #(
  1813. *)
  1814. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1815. ;;
  1816. esac |
  1817. sort
  1818. )
  1819. echo
  1820. $as_echo "## ----------------- ##
  1821. ## Output variables. ##
  1822. ## ----------------- ##"
  1823. echo
  1824. for ac_var in $ac_subst_vars
  1825. do
  1826. eval ac_val=\$$ac_var
  1827. case $ac_val in
  1828. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1829. esac
  1830. $as_echo "$ac_var='\''$ac_val'\''"
  1831. done | sort
  1832. echo
  1833. if test -n "$ac_subst_files"; then
  1834. $as_echo "## ------------------- ##
  1835. ## File substitutions. ##
  1836. ## ------------------- ##"
  1837. echo
  1838. for ac_var in $ac_subst_files
  1839. do
  1840. eval ac_val=\$$ac_var
  1841. case $ac_val in
  1842. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1843. esac
  1844. $as_echo "$ac_var='\''$ac_val'\''"
  1845. done | sort
  1846. echo
  1847. fi
  1848. if test -s confdefs.h; then
  1849. $as_echo "## ----------- ##
  1850. ## confdefs.h. ##
  1851. ## ----------- ##"
  1852. echo
  1853. cat confdefs.h
  1854. echo
  1855. fi
  1856. test "$ac_signal" != 0 &&
  1857. $as_echo "$as_me: caught signal $ac_signal"
  1858. $as_echo "$as_me: exit $exit_status"
  1859. } >&5
  1860. rm -f core *.core core.conftest.* &&
  1861. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1862. exit $exit_status
  1863. ' 0
  1864. for ac_signal in 1 2 13 15; do
  1865. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1866. done
  1867. ac_signal=0
  1868. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1869. rm -f -r conftest* confdefs.h
  1870. $as_echo "/* confdefs.h */" > confdefs.h
  1871. # Predefined preprocessor variables.
  1872. cat >>confdefs.h <<_ACEOF
  1873. #define PACKAGE_NAME "$PACKAGE_NAME"
  1874. _ACEOF
  1875. cat >>confdefs.h <<_ACEOF
  1876. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1877. _ACEOF
  1878. cat >>confdefs.h <<_ACEOF
  1879. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1880. _ACEOF
  1881. cat >>confdefs.h <<_ACEOF
  1882. #define PACKAGE_STRING "$PACKAGE_STRING"
  1883. _ACEOF
  1884. cat >>confdefs.h <<_ACEOF
  1885. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1886. _ACEOF
  1887. cat >>confdefs.h <<_ACEOF
  1888. #define PACKAGE_URL "$PACKAGE_URL"
  1889. _ACEOF
  1890. # Let the site file select an alternate cache file if it wants to.
  1891. # Prefer an explicitly selected file to automatically selected ones.
  1892. ac_site_file1=NONE
  1893. ac_site_file2=NONE
  1894. if test -n "$CONFIG_SITE"; then
  1895. # We do not want a PATH search for config.site.
  1896. case $CONFIG_SITE in #((
  1897. -*) ac_site_file1=./$CONFIG_SITE;;
  1898. */*) ac_site_file1=$CONFIG_SITE;;
  1899. *) ac_site_file1=./$CONFIG_SITE;;
  1900. esac
  1901. elif test "x$prefix" != xNONE; then
  1902. ac_site_file1=$prefix/share/config.site
  1903. ac_site_file2=$prefix/etc/config.site
  1904. else
  1905. ac_site_file1=$ac_default_prefix/share/config.site
  1906. ac_site_file2=$ac_default_prefix/etc/config.site
  1907. fi
  1908. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1909. do
  1910. test "x$ac_site_file" = xNONE && continue
  1911. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1912. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1913. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1914. sed 's/^/| /' "$ac_site_file" >&5
  1915. . "$ac_site_file" \
  1916. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1917. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1918. as_fn_error $? "failed to load site script $ac_site_file
  1919. See \`config.log' for more details" "$LINENO" 5; }
  1920. fi
  1921. done
  1922. if test -r "$cache_file"; then
  1923. # Some versions of bash will fail to source /dev/null (special files
  1924. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1925. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1927. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1928. case $cache_file in
  1929. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1930. *) . "./$cache_file";;
  1931. esac
  1932. fi
  1933. else
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1935. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1936. >$cache_file
  1937. fi
  1938. # Check that the precious variables saved in the cache have kept the same
  1939. # value.
  1940. ac_cache_corrupted=false
  1941. for ac_var in $ac_precious_vars; do
  1942. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1943. eval ac_new_set=\$ac_env_${ac_var}_set
  1944. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1945. eval ac_new_val=\$ac_env_${ac_var}_value
  1946. case $ac_old_set,$ac_new_set in
  1947. set,)
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1949. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1950. ac_cache_corrupted=: ;;
  1951. ,set)
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1953. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1954. ac_cache_corrupted=: ;;
  1955. ,);;
  1956. *)
  1957. if test "x$ac_old_val" != "x$ac_new_val"; then
  1958. # differences in whitespace do not lead to failure.
  1959. ac_old_val_w=`echo x $ac_old_val`
  1960. ac_new_val_w=`echo x $ac_new_val`
  1961. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1963. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1964. ac_cache_corrupted=:
  1965. else
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1967. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1968. eval $ac_var=\$ac_old_val
  1969. fi
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1971. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1973. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1974. fi;;
  1975. esac
  1976. # Pass precious variables to config.status.
  1977. if test "$ac_new_set" = set; then
  1978. case $ac_new_val in
  1979. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1980. *) ac_arg=$ac_var=$ac_new_val ;;
  1981. esac
  1982. case " $ac_configure_args " in
  1983. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1984. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1985. esac
  1986. fi
  1987. done
  1988. if $ac_cache_corrupted; then
  1989. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1990. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1992. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1993. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1994. fi
  1995. ## -------------------- ##
  1996. ## Main body of script. ##
  1997. ## -------------------- ##
  1998. ac_ext=c
  1999. ac_cpp='$CPP $CPPFLAGS'
  2000. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2001. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2002. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2003. am__api_version='1.12'
  2004. ac_aux_dir=
  2005. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2006. if test -f "$ac_dir/install-sh"; then
  2007. ac_aux_dir=$ac_dir
  2008. ac_install_sh="$ac_aux_dir/install-sh -c"
  2009. break
  2010. elif test -f "$ac_dir/install.sh"; then
  2011. ac_aux_dir=$ac_dir
  2012. ac_install_sh="$ac_aux_dir/install.sh -c"
  2013. break
  2014. elif test -f "$ac_dir/shtool"; then
  2015. ac_aux_dir=$ac_dir
  2016. ac_install_sh="$ac_aux_dir/shtool install -c"
  2017. break
  2018. fi
  2019. done
  2020. if test -z "$ac_aux_dir"; then
  2021. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2022. fi
  2023. # These three variables are undocumented and unsupported,
  2024. # and are intended to be withdrawn in a future Autoconf release.
  2025. # They can cause serious problems if a builder's source tree is in a directory
  2026. # whose full name contains unusual characters.
  2027. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2028. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2029. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2030. # Find a good install program. We prefer a C program (faster),
  2031. # so one script is as good as another. But avoid the broken or
  2032. # incompatible versions:
  2033. # SysV /etc/install, /usr/sbin/install
  2034. # SunOS /usr/etc/install
  2035. # IRIX /sbin/install
  2036. # AIX /bin/install
  2037. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2038. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2039. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2040. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2041. # OS/2's system install, which has a completely different semantic
  2042. # ./install, which can be erroneously created by make from ./install.sh.
  2043. # Reject install programs that cannot install multiple files.
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2045. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2046. if test -z "$INSTALL"; then
  2047. if ${ac_cv_path_install+:} false; then :
  2048. $as_echo_n "(cached) " >&6
  2049. else
  2050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2051. for as_dir in $PATH
  2052. do
  2053. IFS=$as_save_IFS
  2054. test -z "$as_dir" && as_dir=.
  2055. # Account for people who put trailing slashes in PATH elements.
  2056. case $as_dir/ in #((
  2057. ./ | .// | /[cC]/* | \
  2058. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2059. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2060. /usr/ucb/* ) ;;
  2061. *)
  2062. # OSF1 and SCO ODT 3.0 have their own names for install.
  2063. # Don't use installbsd from OSF since it installs stuff as root
  2064. # by default.
  2065. for ac_prog in ginstall scoinst install; do
  2066. for ac_exec_ext in '' $ac_executable_extensions; do
  2067. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2068. if test $ac_prog = install &&
  2069. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2070. # AIX install. It has an incompatible calling convention.
  2071. :
  2072. elif test $ac_prog = install &&
  2073. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2074. # program-specific install script used by HP pwplus--don't use.
  2075. :
  2076. else
  2077. rm -rf conftest.one conftest.two conftest.dir
  2078. echo one > conftest.one
  2079. echo two > conftest.two
  2080. mkdir conftest.dir
  2081. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2082. test -s conftest.one && test -s conftest.two &&
  2083. test -s conftest.dir/conftest.one &&
  2084. test -s conftest.dir/conftest.two
  2085. then
  2086. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2087. break 3
  2088. fi
  2089. fi
  2090. fi
  2091. done
  2092. done
  2093. ;;
  2094. esac
  2095. done
  2096. IFS=$as_save_IFS
  2097. rm -rf conftest.one conftest.two conftest.dir
  2098. fi
  2099. if test "${ac_cv_path_install+set}" = set; then
  2100. INSTALL=$ac_cv_path_install
  2101. else
  2102. # As a last resort, use the slow shell script. Don't cache a
  2103. # value for INSTALL within a source directory, because that will
  2104. # break other packages using the cache if that directory is
  2105. # removed, or if the value is a relative name.
  2106. INSTALL=$ac_install_sh
  2107. fi
  2108. fi
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2110. $as_echo "$INSTALL" >&6; }
  2111. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2112. # It thinks the first close brace ends the variable substitution.
  2113. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2114. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2115. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2117. $as_echo_n "checking whether build environment is sane... " >&6; }
  2118. # Reject unsafe characters in $srcdir or the absolute working directory
  2119. # name. Accept space and tab only in the latter.
  2120. am_lf='
  2121. '
  2122. case `pwd` in
  2123. *[\\\"\#\$\&\'\`$am_lf]*)
  2124. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2125. esac
  2126. case $srcdir in
  2127. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2128. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2129. esac
  2130. # Do 'set' in a subshell so we don't clobber the current shell's
  2131. # arguments. Must try -L first in case configure is actually a
  2132. # symlink; some systems play weird games with the mod time of symlinks
  2133. # (eg FreeBSD returns the mod time of the symlink's containing
  2134. # directory).
  2135. if (
  2136. am_has_slept=no
  2137. for am_try in 1 2; do
  2138. echo "timestamp, slept: $am_has_slept" > conftest.file
  2139. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2140. if test "$*" = "X"; then
  2141. # -L didn't work.
  2142. set X `ls -t "$srcdir/configure" conftest.file`
  2143. fi
  2144. if test "$*" != "X $srcdir/configure conftest.file" \
  2145. && test "$*" != "X conftest.file $srcdir/configure"; then
  2146. # If neither matched, then we have a broken ls. This can happen
  2147. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2148. # broken ls alias from the environment. This has actually
  2149. # happened. Such a system could not be considered "sane".
  2150. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2151. alias in your environment" "$LINENO" 5
  2152. fi
  2153. if test "$2" = conftest.file || test $am_try -eq 2; then
  2154. break
  2155. fi
  2156. # Just in case.
  2157. sleep 1
  2158. am_has_slept=yes
  2159. done
  2160. test "$2" = conftest.file
  2161. )
  2162. then
  2163. # Ok.
  2164. :
  2165. else
  2166. as_fn_error $? "newly created file is older than distributed files!
  2167. Check your system clock" "$LINENO" 5
  2168. fi
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2170. $as_echo "yes" >&6; }
  2171. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2172. # generated files are strictly newer.
  2173. am_sleep_pid=
  2174. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2175. ( sleep 1 ) &
  2176. am_sleep_pid=$!
  2177. fi
  2178. rm -f conftest.file
  2179. test "$program_prefix" != NONE &&
  2180. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2181. # Use a double $ so make ignores it.
  2182. test "$program_suffix" != NONE &&
  2183. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2184. # Double any \ or $.
  2185. # By default was `s,x,x', remove it if useless.
  2186. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2187. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2188. # expand $ac_aux_dir to an absolute path
  2189. am_aux_dir=`cd $ac_aux_dir && pwd`
  2190. if test x"${MISSING+set}" != xset; then
  2191. case $am_aux_dir in
  2192. *\ * | *\ *)
  2193. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2194. *)
  2195. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2196. esac
  2197. fi
  2198. # Use eval to expand $SHELL
  2199. if eval "$MISSING --run true"; then
  2200. am_missing_run="$MISSING --run "
  2201. else
  2202. am_missing_run=
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2204. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2205. fi
  2206. if test x"${install_sh}" != xset; then
  2207. case $am_aux_dir in
  2208. *\ * | *\ *)
  2209. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2210. *)
  2211. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2212. esac
  2213. fi
  2214. # Installed binaries are usually stripped using 'strip' when the user
  2215. # run "make install-strip". However 'strip' might not be the right
  2216. # tool to use in cross-compilation environments, therefore Automake
  2217. # will honor the 'STRIP' environment variable to overrule this program.
  2218. if test "$cross_compiling" != no; then
  2219. if test -n "$ac_tool_prefix"; then
  2220. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2221. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2223. $as_echo_n "checking for $ac_word... " >&6; }
  2224. if ${ac_cv_prog_STRIP+:} false; then :
  2225. $as_echo_n "(cached) " >&6
  2226. else
  2227. if test -n "$STRIP"; then
  2228. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2229. else
  2230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2231. for as_dir in $PATH
  2232. do
  2233. IFS=$as_save_IFS
  2234. test -z "$as_dir" && as_dir=.
  2235. for ac_exec_ext in '' $ac_executable_extensions; do
  2236. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2237. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2238. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2239. break 2
  2240. fi
  2241. done
  2242. done
  2243. IFS=$as_save_IFS
  2244. fi
  2245. fi
  2246. STRIP=$ac_cv_prog_STRIP
  2247. if test -n "$STRIP"; then
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2249. $as_echo "$STRIP" >&6; }
  2250. else
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2252. $as_echo "no" >&6; }
  2253. fi
  2254. fi
  2255. if test -z "$ac_cv_prog_STRIP"; then
  2256. ac_ct_STRIP=$STRIP
  2257. # Extract the first word of "strip", so it can be a program name with args.
  2258. set dummy strip; ac_word=$2
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2260. $as_echo_n "checking for $ac_word... " >&6; }
  2261. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2262. $as_echo_n "(cached) " >&6
  2263. else
  2264. if test -n "$ac_ct_STRIP"; then
  2265. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2266. else
  2267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2268. for as_dir in $PATH
  2269. do
  2270. IFS=$as_save_IFS
  2271. test -z "$as_dir" && as_dir=.
  2272. for ac_exec_ext in '' $ac_executable_extensions; do
  2273. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2274. ac_cv_prog_ac_ct_STRIP="strip"
  2275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2276. break 2
  2277. fi
  2278. done
  2279. done
  2280. IFS=$as_save_IFS
  2281. fi
  2282. fi
  2283. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2284. if test -n "$ac_ct_STRIP"; then
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2286. $as_echo "$ac_ct_STRIP" >&6; }
  2287. else
  2288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2289. $as_echo "no" >&6; }
  2290. fi
  2291. if test "x$ac_ct_STRIP" = x; then
  2292. STRIP=":"
  2293. else
  2294. case $cross_compiling:$ac_tool_warned in
  2295. yes:)
  2296. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2297. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2298. ac_tool_warned=yes ;;
  2299. esac
  2300. STRIP=$ac_ct_STRIP
  2301. fi
  2302. else
  2303. STRIP="$ac_cv_prog_STRIP"
  2304. fi
  2305. fi
  2306. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2308. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2309. if test -z "$MKDIR_P"; then
  2310. if ${ac_cv_path_mkdir+:} false; then :
  2311. $as_echo_n "(cached) " >&6
  2312. else
  2313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2314. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2315. do
  2316. IFS=$as_save_IFS
  2317. test -z "$as_dir" && as_dir=.
  2318. for ac_prog in mkdir gmkdir; do
  2319. for ac_exec_ext in '' $ac_executable_extensions; do
  2320. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2321. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2322. 'mkdir (GNU coreutils) '* | \
  2323. 'mkdir (coreutils) '* | \
  2324. 'mkdir (fileutils) '4.1*)
  2325. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2326. break 3;;
  2327. esac
  2328. done
  2329. done
  2330. done
  2331. IFS=$as_save_IFS
  2332. fi
  2333. test -d ./--version && rmdir ./--version
  2334. if test "${ac_cv_path_mkdir+set}" = set; then
  2335. MKDIR_P="$ac_cv_path_mkdir -p"
  2336. else
  2337. # As a last resort, use the slow shell script. Don't cache a
  2338. # value for MKDIR_P within a source directory, because that will
  2339. # break other packages using the cache if that directory is
  2340. # removed, or if the value is a relative name.
  2341. MKDIR_P="$ac_install_sh -d"
  2342. fi
  2343. fi
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2345. $as_echo "$MKDIR_P" >&6; }
  2346. for ac_prog in gawk mawk nawk awk
  2347. do
  2348. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2349. set dummy $ac_prog; ac_word=$2
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2351. $as_echo_n "checking for $ac_word... " >&6; }
  2352. if ${ac_cv_prog_AWK+:} false; then :
  2353. $as_echo_n "(cached) " >&6
  2354. else
  2355. if test -n "$AWK"; then
  2356. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2357. else
  2358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2359. for as_dir in $PATH
  2360. do
  2361. IFS=$as_save_IFS
  2362. test -z "$as_dir" && as_dir=.
  2363. for ac_exec_ext in '' $ac_executable_extensions; do
  2364. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2365. ac_cv_prog_AWK="$ac_prog"
  2366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2367. break 2
  2368. fi
  2369. done
  2370. done
  2371. IFS=$as_save_IFS
  2372. fi
  2373. fi
  2374. AWK=$ac_cv_prog_AWK
  2375. if test -n "$AWK"; then
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2377. $as_echo "$AWK" >&6; }
  2378. else
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2380. $as_echo "no" >&6; }
  2381. fi
  2382. test -n "$AWK" && break
  2383. done
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2385. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2386. set x ${MAKE-make}
  2387. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2388. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2389. $as_echo_n "(cached) " >&6
  2390. else
  2391. cat >conftest.make <<\_ACEOF
  2392. SHELL = /bin/sh
  2393. all:
  2394. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2395. _ACEOF
  2396. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2397. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2398. *@@@%%%=?*=@@@%%%*)
  2399. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2400. *)
  2401. eval ac_cv_prog_make_${ac_make}_set=no;;
  2402. esac
  2403. rm -f conftest.make
  2404. fi
  2405. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2407. $as_echo "yes" >&6; }
  2408. SET_MAKE=
  2409. else
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2411. $as_echo "no" >&6; }
  2412. SET_MAKE="MAKE=${MAKE-make}"
  2413. fi
  2414. rm -rf .tst 2>/dev/null
  2415. mkdir .tst 2>/dev/null
  2416. if test -d .tst; then
  2417. am__leading_dot=.
  2418. else
  2419. am__leading_dot=_
  2420. fi
  2421. rmdir .tst 2>/dev/null
  2422. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2423. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2424. # is not polluted with repeated "-I."
  2425. am__isrc=' -I$(srcdir)'
  2426. # test to see if srcdir already configured
  2427. if test -f $srcdir/config.status; then
  2428. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2429. fi
  2430. fi
  2431. # test whether we have cygpath
  2432. if test -z "$CYGPATH_W"; then
  2433. if (cygpath --version) >/dev/null 2>/dev/null; then
  2434. CYGPATH_W='cygpath -w'
  2435. else
  2436. CYGPATH_W=echo
  2437. fi
  2438. fi
  2439. # Define the identity of the package.
  2440. PACKAGE='glpk'
  2441. VERSION='4.65'
  2442. cat >>confdefs.h <<_ACEOF
  2443. #define PACKAGE "$PACKAGE"
  2444. _ACEOF
  2445. cat >>confdefs.h <<_ACEOF
  2446. #define VERSION "$VERSION"
  2447. _ACEOF
  2448. # Some tools Automake needs.
  2449. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2450. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2451. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2452. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2453. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2454. # For better backward compatibility. To be removed once Automake 1.9.x
  2455. # dies out for good. For more background, see:
  2456. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2457. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2458. mkdir_p='$(MKDIR_P)'
  2459. # We need awk for the "check" target. The system "awk" is bad on
  2460. # some platforms.
  2461. # Always define AMTAR for backward compatibility. Yes, it's still used
  2462. # in the wild :-( We should find a proper way to deprecate it ...
  2463. AMTAR='$${TAR-tar}'
  2464. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2465. ac_config_headers="$ac_config_headers config.h"
  2466. # Check whether --with-gmp was given.
  2467. if test "${with_gmp+set}" = set; then :
  2468. withval=$with_gmp; case $withval in
  2469. yes | no) ;;
  2470. *) as_fn_error $? "invalid value \`$withval' for --with-gmp" "$LINENO" 5;;
  2471. esac
  2472. else
  2473. with_gmp=no
  2474. fi
  2475. # Check whether --enable-dl was given.
  2476. if test "${enable_dl+set}" = set; then :
  2477. enableval=$enable_dl; case $enableval in
  2478. yes | ltdl | dlfcn | no) ;;
  2479. *) as_fn_error $? "invalid value \`$enableval' for --enable-dl" "$LINENO" 5;;
  2480. esac
  2481. else
  2482. enable_dl=no
  2483. fi
  2484. # Check whether --enable-odbc was given.
  2485. if test "${enable_odbc+set}" = set; then :
  2486. enableval=$enable_odbc; case $enableval in
  2487. yes | unix | no) ;;
  2488. *) as_fn_error $? "invalid value \`$enableval' for --enable-odbc" "$LINENO" 5;;
  2489. esac
  2490. else
  2491. enable_odbc=no
  2492. fi
  2493. # Check whether --enable-mysql was given.
  2494. if test "${enable_mysql+set}" = set; then :
  2495. enableval=$enable_mysql; case $enableval in
  2496. yes | no) ;;
  2497. *) as_fn_error $? "invalid value \`$enableval' for --enable-mysql" "$LINENO" 5;;
  2498. esac
  2499. else
  2500. enable_mysql=no
  2501. fi
  2502. # Check whether --enable-reentrant was given.
  2503. if test "${enable_reentrant+set}" = set; then :
  2504. enableval=$enable_reentrant; case $enableval in
  2505. yes | no) ;;
  2506. *) as_fn_error $? "invalid value \`$enableval' for --enable-reentrant" "$LINENO" 5;;
  2507. esac
  2508. else
  2509. enable_reentrant=yes
  2510. fi
  2511. ac_ext=c
  2512. ac_cpp='$CPP $CPPFLAGS'
  2513. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2514. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2515. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2516. if test -n "$ac_tool_prefix"; then
  2517. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2518. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2520. $as_echo_n "checking for $ac_word... " >&6; }
  2521. if ${ac_cv_prog_CC+:} false; then :
  2522. $as_echo_n "(cached) " >&6
  2523. else
  2524. if test -n "$CC"; then
  2525. ac_cv_prog_CC="$CC" # Let the user override the test.
  2526. else
  2527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2528. for as_dir in $PATH
  2529. do
  2530. IFS=$as_save_IFS
  2531. test -z "$as_dir" && as_dir=.
  2532. for ac_exec_ext in '' $ac_executable_extensions; do
  2533. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2534. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2536. break 2
  2537. fi
  2538. done
  2539. done
  2540. IFS=$as_save_IFS
  2541. fi
  2542. fi
  2543. CC=$ac_cv_prog_CC
  2544. if test -n "$CC"; then
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2546. $as_echo "$CC" >&6; }
  2547. else
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2549. $as_echo "no" >&6; }
  2550. fi
  2551. fi
  2552. if test -z "$ac_cv_prog_CC"; then
  2553. ac_ct_CC=$CC
  2554. # Extract the first word of "gcc", so it can be a program name with args.
  2555. set dummy gcc; ac_word=$2
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2557. $as_echo_n "checking for $ac_word... " >&6; }
  2558. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2559. $as_echo_n "(cached) " >&6
  2560. else
  2561. if test -n "$ac_ct_CC"; then
  2562. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2563. else
  2564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2565. for as_dir in $PATH
  2566. do
  2567. IFS=$as_save_IFS
  2568. test -z "$as_dir" && as_dir=.
  2569. for ac_exec_ext in '' $ac_executable_extensions; do
  2570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2571. ac_cv_prog_ac_ct_CC="gcc"
  2572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2573. break 2
  2574. fi
  2575. done
  2576. done
  2577. IFS=$as_save_IFS
  2578. fi
  2579. fi
  2580. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2581. if test -n "$ac_ct_CC"; then
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2583. $as_echo "$ac_ct_CC" >&6; }
  2584. else
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2586. $as_echo "no" >&6; }
  2587. fi
  2588. if test "x$ac_ct_CC" = x; then
  2589. CC=""
  2590. else
  2591. case $cross_compiling:$ac_tool_warned in
  2592. yes:)
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2594. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2595. ac_tool_warned=yes ;;
  2596. esac
  2597. CC=$ac_ct_CC
  2598. fi
  2599. else
  2600. CC="$ac_cv_prog_CC"
  2601. fi
  2602. if test -z "$CC"; then
  2603. if test -n "$ac_tool_prefix"; then
  2604. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2605. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2607. $as_echo_n "checking for $ac_word... " >&6; }
  2608. if ${ac_cv_prog_CC+:} false; then :
  2609. $as_echo_n "(cached) " >&6
  2610. else
  2611. if test -n "$CC"; then
  2612. ac_cv_prog_CC="$CC" # Let the user override the test.
  2613. else
  2614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2615. for as_dir in $PATH
  2616. do
  2617. IFS=$as_save_IFS
  2618. test -z "$as_dir" && as_dir=.
  2619. for ac_exec_ext in '' $ac_executable_extensions; do
  2620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2621. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2623. break 2
  2624. fi
  2625. done
  2626. done
  2627. IFS=$as_save_IFS
  2628. fi
  2629. fi
  2630. CC=$ac_cv_prog_CC
  2631. if test -n "$CC"; then
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2633. $as_echo "$CC" >&6; }
  2634. else
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2636. $as_echo "no" >&6; }
  2637. fi
  2638. fi
  2639. fi
  2640. if test -z "$CC"; then
  2641. # Extract the first word of "cc", so it can be a program name with args.
  2642. set dummy cc; ac_word=$2
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2644. $as_echo_n "checking for $ac_word... " >&6; }
  2645. if ${ac_cv_prog_CC+:} false; then :
  2646. $as_echo_n "(cached) " >&6
  2647. else
  2648. if test -n "$CC"; then
  2649. ac_cv_prog_CC="$CC" # Let the user override the test.
  2650. else
  2651. ac_prog_rejected=no
  2652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2653. for as_dir in $PATH
  2654. do
  2655. IFS=$as_save_IFS
  2656. test -z "$as_dir" && as_dir=.
  2657. for ac_exec_ext in '' $ac_executable_extensions; do
  2658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2659. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2660. ac_prog_rejected=yes
  2661. continue
  2662. fi
  2663. ac_cv_prog_CC="cc"
  2664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2665. break 2
  2666. fi
  2667. done
  2668. done
  2669. IFS=$as_save_IFS
  2670. if test $ac_prog_rejected = yes; then
  2671. # We found a bogon in the path, so make sure we never use it.
  2672. set dummy $ac_cv_prog_CC
  2673. shift
  2674. if test $# != 0; then
  2675. # We chose a different compiler from the bogus one.
  2676. # However, it has the same basename, so the bogon will be chosen
  2677. # first if we set CC to just the basename; use the full file name.
  2678. shift
  2679. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2680. fi
  2681. fi
  2682. fi
  2683. fi
  2684. CC=$ac_cv_prog_CC
  2685. if test -n "$CC"; then
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2687. $as_echo "$CC" >&6; }
  2688. else
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2690. $as_echo "no" >&6; }
  2691. fi
  2692. fi
  2693. if test -z "$CC"; then
  2694. if test -n "$ac_tool_prefix"; then
  2695. for ac_prog in cl.exe
  2696. do
  2697. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2698. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2700. $as_echo_n "checking for $ac_word... " >&6; }
  2701. if ${ac_cv_prog_CC+:} false; then :
  2702. $as_echo_n "(cached) " >&6
  2703. else
  2704. if test -n "$CC"; then
  2705. ac_cv_prog_CC="$CC" # Let the user override the test.
  2706. else
  2707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2708. for as_dir in $PATH
  2709. do
  2710. IFS=$as_save_IFS
  2711. test -z "$as_dir" && as_dir=.
  2712. for ac_exec_ext in '' $ac_executable_extensions; do
  2713. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2714. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2716. break 2
  2717. fi
  2718. done
  2719. done
  2720. IFS=$as_save_IFS
  2721. fi
  2722. fi
  2723. CC=$ac_cv_prog_CC
  2724. if test -n "$CC"; then
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2726. $as_echo "$CC" >&6; }
  2727. else
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2729. $as_echo "no" >&6; }
  2730. fi
  2731. test -n "$CC" && break
  2732. done
  2733. fi
  2734. if test -z "$CC"; then
  2735. ac_ct_CC=$CC
  2736. for ac_prog in cl.exe
  2737. do
  2738. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2739. set dummy $ac_prog; ac_word=$2
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2741. $as_echo_n "checking for $ac_word... " >&6; }
  2742. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2743. $as_echo_n "(cached) " >&6
  2744. else
  2745. if test -n "$ac_ct_CC"; then
  2746. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2747. else
  2748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2749. for as_dir in $PATH
  2750. do
  2751. IFS=$as_save_IFS
  2752. test -z "$as_dir" && as_dir=.
  2753. for ac_exec_ext in '' $ac_executable_extensions; do
  2754. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2755. ac_cv_prog_ac_ct_CC="$ac_prog"
  2756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2757. break 2
  2758. fi
  2759. done
  2760. done
  2761. IFS=$as_save_IFS
  2762. fi
  2763. fi
  2764. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2765. if test -n "$ac_ct_CC"; then
  2766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2767. $as_echo "$ac_ct_CC" >&6; }
  2768. else
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2770. $as_echo "no" >&6; }
  2771. fi
  2772. test -n "$ac_ct_CC" && break
  2773. done
  2774. if test "x$ac_ct_CC" = x; then
  2775. CC=""
  2776. else
  2777. case $cross_compiling:$ac_tool_warned in
  2778. yes:)
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2780. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2781. ac_tool_warned=yes ;;
  2782. esac
  2783. CC=$ac_ct_CC
  2784. fi
  2785. fi
  2786. fi
  2787. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2788. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2789. as_fn_error $? "no acceptable C compiler found in \$PATH
  2790. See \`config.log' for more details" "$LINENO" 5; }
  2791. # Provide some information about the compiler.
  2792. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2793. set X $ac_compile
  2794. ac_compiler=$2
  2795. for ac_option in --version -v -V -qversion; do
  2796. { { ac_try="$ac_compiler $ac_option >&5"
  2797. case "(($ac_try" in
  2798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2799. *) ac_try_echo=$ac_try;;
  2800. esac
  2801. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2802. $as_echo "$ac_try_echo"; } >&5
  2803. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2804. ac_status=$?
  2805. if test -s conftest.err; then
  2806. sed '10a\
  2807. ... rest of stderr output deleted ...
  2808. 10q' conftest.err >conftest.er1
  2809. cat conftest.er1 >&5
  2810. fi
  2811. rm -f conftest.er1 conftest.err
  2812. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2813. test $ac_status = 0; }
  2814. done
  2815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2816. /* end confdefs.h. */
  2817. int
  2818. main ()
  2819. {
  2820. ;
  2821. return 0;
  2822. }
  2823. _ACEOF
  2824. ac_clean_files_save=$ac_clean_files
  2825. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2826. # Try to create an executable without -o first, disregard a.out.
  2827. # It will help us diagnose broken compilers, and finding out an intuition
  2828. # of exeext.
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2830. $as_echo_n "checking whether the C compiler works... " >&6; }
  2831. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2832. # The possible output files:
  2833. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2834. ac_rmfiles=
  2835. for ac_file in $ac_files
  2836. do
  2837. case $ac_file in
  2838. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2839. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2840. esac
  2841. done
  2842. rm -f $ac_rmfiles
  2843. if { { ac_try="$ac_link_default"
  2844. case "(($ac_try" in
  2845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2846. *) ac_try_echo=$ac_try;;
  2847. esac
  2848. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2849. $as_echo "$ac_try_echo"; } >&5
  2850. (eval "$ac_link_default") 2>&5
  2851. ac_status=$?
  2852. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2853. test $ac_status = 0; }; then :
  2854. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2855. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2856. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2857. # so that the user can short-circuit this test for compilers unknown to
  2858. # Autoconf.
  2859. for ac_file in $ac_files ''
  2860. do
  2861. test -f "$ac_file" || continue
  2862. case $ac_file in
  2863. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2864. ;;
  2865. [ab].out )
  2866. # We found the default executable, but exeext='' is most
  2867. # certainly right.
  2868. break;;
  2869. *.* )
  2870. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2871. then :; else
  2872. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2873. fi
  2874. # We set ac_cv_exeext here because the later test for it is not
  2875. # safe: cross compilers may not add the suffix if given an `-o'
  2876. # argument, so we may need to know it at that point already.
  2877. # Even if this section looks crufty: it has the advantage of
  2878. # actually working.
  2879. break;;
  2880. * )
  2881. break;;
  2882. esac
  2883. done
  2884. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2885. else
  2886. ac_file=''
  2887. fi
  2888. if test -z "$ac_file"; then :
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2890. $as_echo "no" >&6; }
  2891. $as_echo "$as_me: failed program was:" >&5
  2892. sed 's/^/| /' conftest.$ac_ext >&5
  2893. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2894. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2895. as_fn_error 77 "C compiler cannot create executables
  2896. See \`config.log' for more details" "$LINENO" 5; }
  2897. else
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2899. $as_echo "yes" >&6; }
  2900. fi
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2902. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2904. $as_echo "$ac_file" >&6; }
  2905. ac_exeext=$ac_cv_exeext
  2906. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2907. ac_clean_files=$ac_clean_files_save
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2909. $as_echo_n "checking for suffix of executables... " >&6; }
  2910. if { { ac_try="$ac_link"
  2911. case "(($ac_try" in
  2912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2913. *) ac_try_echo=$ac_try;;
  2914. esac
  2915. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2916. $as_echo "$ac_try_echo"; } >&5
  2917. (eval "$ac_link") 2>&5
  2918. ac_status=$?
  2919. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2920. test $ac_status = 0; }; then :
  2921. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2922. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2923. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2924. # `rm'.
  2925. for ac_file in conftest.exe conftest conftest.*; do
  2926. test -f "$ac_file" || continue
  2927. case $ac_file in
  2928. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2929. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2930. break;;
  2931. * ) break;;
  2932. esac
  2933. done
  2934. else
  2935. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2936. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2937. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2938. See \`config.log' for more details" "$LINENO" 5; }
  2939. fi
  2940. rm -f conftest conftest$ac_cv_exeext
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2942. $as_echo "$ac_cv_exeext" >&6; }
  2943. rm -f conftest.$ac_ext
  2944. EXEEXT=$ac_cv_exeext
  2945. ac_exeext=$EXEEXT
  2946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2947. /* end confdefs.h. */
  2948. #include <stdio.h>
  2949. int
  2950. main ()
  2951. {
  2952. FILE *f = fopen ("conftest.out", "w");
  2953. return ferror (f) || fclose (f) != 0;
  2954. ;
  2955. return 0;
  2956. }
  2957. _ACEOF
  2958. ac_clean_files="$ac_clean_files conftest.out"
  2959. # Check that the compiler produces executables we can run. If not, either
  2960. # the compiler is broken, or we cross compile.
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2962. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2963. if test "$cross_compiling" != yes; then
  2964. { { ac_try="$ac_link"
  2965. case "(($ac_try" in
  2966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2967. *) ac_try_echo=$ac_try;;
  2968. esac
  2969. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2970. $as_echo "$ac_try_echo"; } >&5
  2971. (eval "$ac_link") 2>&5
  2972. ac_status=$?
  2973. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2974. test $ac_status = 0; }
  2975. if { ac_try='./conftest$ac_cv_exeext'
  2976. { { case "(($ac_try" in
  2977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2978. *) ac_try_echo=$ac_try;;
  2979. esac
  2980. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2981. $as_echo "$ac_try_echo"; } >&5
  2982. (eval "$ac_try") 2>&5
  2983. ac_status=$?
  2984. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2985. test $ac_status = 0; }; }; then
  2986. cross_compiling=no
  2987. else
  2988. if test "$cross_compiling" = maybe; then
  2989. cross_compiling=yes
  2990. else
  2991. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2992. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2993. as_fn_error $? "cannot run C compiled programs.
  2994. If you meant to cross compile, use \`--host'.
  2995. See \`config.log' for more details" "$LINENO" 5; }
  2996. fi
  2997. fi
  2998. fi
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3000. $as_echo "$cross_compiling" >&6; }
  3001. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3002. ac_clean_files=$ac_clean_files_save
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3004. $as_echo_n "checking for suffix of object files... " >&6; }
  3005. if ${ac_cv_objext+:} false; then :
  3006. $as_echo_n "(cached) " >&6
  3007. else
  3008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3009. /* end confdefs.h. */
  3010. int
  3011. main ()
  3012. {
  3013. ;
  3014. return 0;
  3015. }
  3016. _ACEOF
  3017. rm -f conftest.o conftest.obj
  3018. if { { ac_try="$ac_compile"
  3019. case "(($ac_try" in
  3020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3021. *) ac_try_echo=$ac_try;;
  3022. esac
  3023. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3024. $as_echo "$ac_try_echo"; } >&5
  3025. (eval "$ac_compile") 2>&5
  3026. ac_status=$?
  3027. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3028. test $ac_status = 0; }; then :
  3029. for ac_file in conftest.o conftest.obj conftest.*; do
  3030. test -f "$ac_file" || continue;
  3031. case $ac_file in
  3032. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3033. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3034. break;;
  3035. esac
  3036. done
  3037. else
  3038. $as_echo "$as_me: failed program was:" >&5
  3039. sed 's/^/| /' conftest.$ac_ext >&5
  3040. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3041. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3042. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3043. See \`config.log' for more details" "$LINENO" 5; }
  3044. fi
  3045. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3046. fi
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3048. $as_echo "$ac_cv_objext" >&6; }
  3049. OBJEXT=$ac_cv_objext
  3050. ac_objext=$OBJEXT
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3052. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3053. if ${ac_cv_c_compiler_gnu+:} false; then :
  3054. $as_echo_n "(cached) " >&6
  3055. else
  3056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3057. /* end confdefs.h. */
  3058. int
  3059. main ()
  3060. {
  3061. #ifndef __GNUC__
  3062. choke me
  3063. #endif
  3064. ;
  3065. return 0;
  3066. }
  3067. _ACEOF
  3068. if ac_fn_c_try_compile "$LINENO"; then :
  3069. ac_compiler_gnu=yes
  3070. else
  3071. ac_compiler_gnu=no
  3072. fi
  3073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3074. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3075. fi
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3077. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3078. if test $ac_compiler_gnu = yes; then
  3079. GCC=yes
  3080. else
  3081. GCC=
  3082. fi
  3083. ac_test_CFLAGS=${CFLAGS+set}
  3084. ac_save_CFLAGS=$CFLAGS
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3086. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3087. if ${ac_cv_prog_cc_g+:} false; then :
  3088. $as_echo_n "(cached) " >&6
  3089. else
  3090. ac_save_c_werror_flag=$ac_c_werror_flag
  3091. ac_c_werror_flag=yes
  3092. ac_cv_prog_cc_g=no
  3093. CFLAGS="-g"
  3094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3095. /* end confdefs.h. */
  3096. int
  3097. main ()
  3098. {
  3099. ;
  3100. return 0;
  3101. }
  3102. _ACEOF
  3103. if ac_fn_c_try_compile "$LINENO"; then :
  3104. ac_cv_prog_cc_g=yes
  3105. else
  3106. CFLAGS=""
  3107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3108. /* end confdefs.h. */
  3109. int
  3110. main ()
  3111. {
  3112. ;
  3113. return 0;
  3114. }
  3115. _ACEOF
  3116. if ac_fn_c_try_compile "$LINENO"; then :
  3117. else
  3118. ac_c_werror_flag=$ac_save_c_werror_flag
  3119. CFLAGS="-g"
  3120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3121. /* end confdefs.h. */
  3122. int
  3123. main ()
  3124. {
  3125. ;
  3126. return 0;
  3127. }
  3128. _ACEOF
  3129. if ac_fn_c_try_compile "$LINENO"; then :
  3130. ac_cv_prog_cc_g=yes
  3131. fi
  3132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3133. fi
  3134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3135. fi
  3136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3137. ac_c_werror_flag=$ac_save_c_werror_flag
  3138. fi
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3140. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3141. if test "$ac_test_CFLAGS" = set; then
  3142. CFLAGS=$ac_save_CFLAGS
  3143. elif test $ac_cv_prog_cc_g = yes; then
  3144. if test "$GCC" = yes; then
  3145. CFLAGS="-g -O2"
  3146. else
  3147. CFLAGS="-g"
  3148. fi
  3149. else
  3150. if test "$GCC" = yes; then
  3151. CFLAGS="-O2"
  3152. else
  3153. CFLAGS=
  3154. fi
  3155. fi
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3157. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3158. if ${ac_cv_prog_cc_c89+:} false; then :
  3159. $as_echo_n "(cached) " >&6
  3160. else
  3161. ac_cv_prog_cc_c89=no
  3162. ac_save_CC=$CC
  3163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3164. /* end confdefs.h. */
  3165. #include <stdarg.h>
  3166. #include <stdio.h>
  3167. struct stat;
  3168. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3169. struct buf { int x; };
  3170. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3171. static char *e (p, i)
  3172. char **p;
  3173. int i;
  3174. {
  3175. return p[i];
  3176. }
  3177. static char *f (char * (*g) (char **, int), char **p, ...)
  3178. {
  3179. char *s;
  3180. va_list v;
  3181. va_start (v,p);
  3182. s = g (p, va_arg (v,int));
  3183. va_end (v);
  3184. return s;
  3185. }
  3186. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3187. function prototypes and stuff, but not '\xHH' hex character constants.
  3188. These don't provoke an error unfortunately, instead are silently treated
  3189. as 'x'. The following induces an error, until -std is added to get
  3190. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3191. array size at least. It's necessary to write '\x00'==0 to get something
  3192. that's true only with -std. */
  3193. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3194. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3195. inside strings and character constants. */
  3196. #define FOO(x) 'x'
  3197. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3198. int test (int i, double x);
  3199. struct s1 {int (*f) (int a);};
  3200. struct s2 {int (*f) (double a);};
  3201. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3202. int argc;
  3203. char **argv;
  3204. int
  3205. main ()
  3206. {
  3207. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3208. ;
  3209. return 0;
  3210. }
  3211. _ACEOF
  3212. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3213. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3214. do
  3215. CC="$ac_save_CC $ac_arg"
  3216. if ac_fn_c_try_compile "$LINENO"; then :
  3217. ac_cv_prog_cc_c89=$ac_arg
  3218. fi
  3219. rm -f core conftest.err conftest.$ac_objext
  3220. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3221. done
  3222. rm -f conftest.$ac_ext
  3223. CC=$ac_save_CC
  3224. fi
  3225. # AC_CACHE_VAL
  3226. case "x$ac_cv_prog_cc_c89" in
  3227. x)
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3229. $as_echo "none needed" >&6; } ;;
  3230. xno)
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3232. $as_echo "unsupported" >&6; } ;;
  3233. *)
  3234. CC="$CC $ac_cv_prog_cc_c89"
  3235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3236. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3237. esac
  3238. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3239. fi
  3240. ac_ext=c
  3241. ac_cpp='$CPP $CPPFLAGS'
  3242. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3243. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3244. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3245. DEPDIR="${am__leading_dot}deps"
  3246. ac_config_commands="$ac_config_commands depfiles"
  3247. am_make=${MAKE-make}
  3248. cat > confinc << 'END'
  3249. am__doit:
  3250. @echo this is the am__doit target
  3251. .PHONY: am__doit
  3252. END
  3253. # If we don't find an include directive, just comment out the code.
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3255. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3256. am__include="#"
  3257. am__quote=
  3258. _am_result=none
  3259. # First try GNU make style include.
  3260. echo "include confinc" > confmf
  3261. # Ignore all kinds of additional output from 'make'.
  3262. case `$am_make -s -f confmf 2> /dev/null` in #(
  3263. *the\ am__doit\ target*)
  3264. am__include=include
  3265. am__quote=
  3266. _am_result=GNU
  3267. ;;
  3268. esac
  3269. # Now try BSD make style include.
  3270. if test "$am__include" = "#"; then
  3271. echo '.include "confinc"' > confmf
  3272. case `$am_make -s -f confmf 2> /dev/null` in #(
  3273. *the\ am__doit\ target*)
  3274. am__include=.include
  3275. am__quote="\""
  3276. _am_result=BSD
  3277. ;;
  3278. esac
  3279. fi
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3281. $as_echo "$_am_result" >&6; }
  3282. rm -f confinc confmf
  3283. # Check whether --enable-dependency-tracking was given.
  3284. if test "${enable_dependency_tracking+set}" = set; then :
  3285. enableval=$enable_dependency_tracking;
  3286. fi
  3287. if test "x$enable_dependency_tracking" != xno; then
  3288. am_depcomp="$ac_aux_dir/depcomp"
  3289. AMDEPBACKSLASH='\'
  3290. am__nodep='_no'
  3291. fi
  3292. if test "x$enable_dependency_tracking" != xno; then
  3293. AMDEP_TRUE=
  3294. AMDEP_FALSE='#'
  3295. else
  3296. AMDEP_TRUE='#'
  3297. AMDEP_FALSE=
  3298. fi
  3299. depcc="$CC" am_compiler_list=
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3301. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3302. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3303. $as_echo_n "(cached) " >&6
  3304. else
  3305. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3306. # We make a subdir and do the tests there. Otherwise we can end up
  3307. # making bogus files that we don't know about and never remove. For
  3308. # instance it was reported that on HP-UX the gcc test will end up
  3309. # making a dummy file named 'D' -- because '-MD' means "put the output
  3310. # in D".
  3311. rm -rf conftest.dir
  3312. mkdir conftest.dir
  3313. # Copy depcomp to subdir because otherwise we won't find it if we're
  3314. # using a relative directory.
  3315. cp "$am_depcomp" conftest.dir
  3316. cd conftest.dir
  3317. # We will build objects and dependencies in a subdirectory because
  3318. # it helps to detect inapplicable dependency modes. For instance
  3319. # both Tru64's cc and ICC support -MD to output dependencies as a
  3320. # side effect of compilation, but ICC will put the dependencies in
  3321. # the current directory while Tru64 will put them in the object
  3322. # directory.
  3323. mkdir sub
  3324. am_cv_CC_dependencies_compiler_type=none
  3325. if test "$am_compiler_list" = ""; then
  3326. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3327. fi
  3328. am__universal=false
  3329. case " $depcc " in #(
  3330. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3331. esac
  3332. for depmode in $am_compiler_list; do
  3333. # Setup a source with many dependencies, because some compilers
  3334. # like to wrap large dependency lists on column 80 (with \), and
  3335. # we should not choose a depcomp mode which is confused by this.
  3336. #
  3337. # We need to recreate these files for each test, as the compiler may
  3338. # overwrite some of them when testing with obscure command lines.
  3339. # This happens at least with the AIX C compiler.
  3340. : > sub/conftest.c
  3341. for i in 1 2 3 4 5 6; do
  3342. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3343. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3344. # Solaris 10 /bin/sh.
  3345. echo '/* dummy */' > sub/conftst$i.h
  3346. done
  3347. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3348. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3349. # mode. It turns out that the SunPro C++ compiler does not properly
  3350. # handle '-M -o', and we need to detect this. Also, some Intel
  3351. # versions had trouble with output in subdirs.
  3352. am__obj=sub/conftest.${OBJEXT-o}
  3353. am__minus_obj="-o $am__obj"
  3354. case $depmode in
  3355. gcc)
  3356. # This depmode causes a compiler race in universal mode.
  3357. test "$am__universal" = false || continue
  3358. ;;
  3359. nosideeffect)
  3360. # After this tag, mechanisms are not by side-effect, so they'll
  3361. # only be used when explicitly requested.
  3362. if test "x$enable_dependency_tracking" = xyes; then
  3363. continue
  3364. else
  3365. break
  3366. fi
  3367. ;;
  3368. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3369. # This compiler won't grok '-c -o', but also, the minuso test has
  3370. # not run yet. These depmodes are late enough in the game, and
  3371. # so weak that their functioning should not be impacted.
  3372. am__obj=conftest.${OBJEXT-o}
  3373. am__minus_obj=
  3374. ;;
  3375. none) break ;;
  3376. esac
  3377. if depmode=$depmode \
  3378. source=sub/conftest.c object=$am__obj \
  3379. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3380. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3381. >/dev/null 2>conftest.err &&
  3382. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3383. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3384. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3385. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3386. # icc doesn't choke on unknown options, it will just issue warnings
  3387. # or remarks (even with -Werror). So we grep stderr for any message
  3388. # that says an option was ignored or not supported.
  3389. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3390. # icc: Command line warning: ignoring option '-M'; no argument required
  3391. # The diagnosis changed in icc 8.0:
  3392. # icc: Command line remark: option '-MP' not supported
  3393. if (grep 'ignoring option' conftest.err ||
  3394. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3395. am_cv_CC_dependencies_compiler_type=$depmode
  3396. break
  3397. fi
  3398. fi
  3399. done
  3400. cd ..
  3401. rm -rf conftest.dir
  3402. else
  3403. am_cv_CC_dependencies_compiler_type=none
  3404. fi
  3405. fi
  3406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3407. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3408. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3409. if
  3410. test "x$enable_dependency_tracking" != xno \
  3411. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3412. am__fastdepCC_TRUE=
  3413. am__fastdepCC_FALSE='#'
  3414. else
  3415. am__fastdepCC_TRUE='#'
  3416. am__fastdepCC_FALSE=
  3417. fi
  3418. case `pwd` in
  3419. *\ * | *\ *)
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3421. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3422. esac
  3423. macro_version='2.4'
  3424. macro_revision='1.3294'
  3425. ltmain="$ac_aux_dir/ltmain.sh"
  3426. # Make sure we can run config.sub.
  3427. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3428. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3430. $as_echo_n "checking build system type... " >&6; }
  3431. if ${ac_cv_build+:} false; then :
  3432. $as_echo_n "(cached) " >&6
  3433. else
  3434. ac_build_alias=$build_alias
  3435. test "x$ac_build_alias" = x &&
  3436. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3437. test "x$ac_build_alias" = x &&
  3438. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3439. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3440. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3441. fi
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3443. $as_echo "$ac_cv_build" >&6; }
  3444. case $ac_cv_build in
  3445. *-*-*) ;;
  3446. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3447. esac
  3448. build=$ac_cv_build
  3449. ac_save_IFS=$IFS; IFS='-'
  3450. set x $ac_cv_build
  3451. shift
  3452. build_cpu=$1
  3453. build_vendor=$2
  3454. shift; shift
  3455. # Remember, the first character of IFS is used to create $*,
  3456. # except with old shells:
  3457. build_os=$*
  3458. IFS=$ac_save_IFS
  3459. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3461. $as_echo_n "checking host system type... " >&6; }
  3462. if ${ac_cv_host+:} false; then :
  3463. $as_echo_n "(cached) " >&6
  3464. else
  3465. if test "x$host_alias" = x; then
  3466. ac_cv_host=$ac_cv_build
  3467. else
  3468. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3469. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3470. fi
  3471. fi
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3473. $as_echo "$ac_cv_host" >&6; }
  3474. case $ac_cv_host in
  3475. *-*-*) ;;
  3476. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3477. esac
  3478. host=$ac_cv_host
  3479. ac_save_IFS=$IFS; IFS='-'
  3480. set x $ac_cv_host
  3481. shift
  3482. host_cpu=$1
  3483. host_vendor=$2
  3484. shift; shift
  3485. # Remember, the first character of IFS is used to create $*,
  3486. # except with old shells:
  3487. host_os=$*
  3488. IFS=$ac_save_IFS
  3489. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3490. # Backslashify metacharacters that are still active within
  3491. # double-quoted strings.
  3492. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3493. # Same as above, but do not quote variable references.
  3494. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3495. # Sed substitution to delay expansion of an escaped shell variable in a
  3496. # double_quote_subst'ed string.
  3497. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3498. # Sed substitution to delay expansion of an escaped single quote.
  3499. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3500. # Sed substitution to avoid accidental globbing in evaled expressions
  3501. no_glob_subst='s/\*/\\\*/g'
  3502. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3503. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3504. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3506. $as_echo_n "checking how to print strings... " >&6; }
  3507. # Test print first, because it will be a builtin if present.
  3508. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3509. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3510. ECHO='print -r --'
  3511. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3512. ECHO='printf %s\n'
  3513. else
  3514. # Use this function as a fallback that always works.
  3515. func_fallback_echo ()
  3516. {
  3517. eval 'cat <<_LTECHO_EOF
  3518. $1
  3519. _LTECHO_EOF'
  3520. }
  3521. ECHO='func_fallback_echo'
  3522. fi
  3523. # func_echo_all arg...
  3524. # Invoke $ECHO with all args, space-separated.
  3525. func_echo_all ()
  3526. {
  3527. $ECHO ""
  3528. }
  3529. case "$ECHO" in
  3530. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3531. $as_echo "printf" >&6; } ;;
  3532. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3533. $as_echo "print -r" >&6; } ;;
  3534. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3535. $as_echo "cat" >&6; } ;;
  3536. esac
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3538. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3539. if ${ac_cv_path_SED+:} false; then :
  3540. $as_echo_n "(cached) " >&6
  3541. else
  3542. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3543. for ac_i in 1 2 3 4 5 6 7; do
  3544. ac_script="$ac_script$as_nl$ac_script"
  3545. done
  3546. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3547. { ac_script=; unset ac_script;}
  3548. if test -z "$SED"; then
  3549. ac_path_SED_found=false
  3550. # Loop through the user's path and test for each of PROGNAME-LIST
  3551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3552. for as_dir in $PATH
  3553. do
  3554. IFS=$as_save_IFS
  3555. test -z "$as_dir" && as_dir=.
  3556. for ac_prog in sed gsed; do
  3557. for ac_exec_ext in '' $ac_executable_extensions; do
  3558. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3559. as_fn_executable_p "$ac_path_SED" || continue
  3560. # Check for GNU ac_path_SED and select it if it is found.
  3561. # Check for GNU $ac_path_SED
  3562. case `"$ac_path_SED" --version 2>&1` in
  3563. *GNU*)
  3564. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3565. *)
  3566. ac_count=0
  3567. $as_echo_n 0123456789 >"conftest.in"
  3568. while :
  3569. do
  3570. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3571. mv "conftest.tmp" "conftest.in"
  3572. cp "conftest.in" "conftest.nl"
  3573. $as_echo '' >> "conftest.nl"
  3574. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3575. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3576. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3577. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3578. # Best one so far, save it but keep looking for a better one
  3579. ac_cv_path_SED="$ac_path_SED"
  3580. ac_path_SED_max=$ac_count
  3581. fi
  3582. # 10*(2^10) chars as input seems more than enough
  3583. test $ac_count -gt 10 && break
  3584. done
  3585. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3586. esac
  3587. $ac_path_SED_found && break 3
  3588. done
  3589. done
  3590. done
  3591. IFS=$as_save_IFS
  3592. if test -z "$ac_cv_path_SED"; then
  3593. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3594. fi
  3595. else
  3596. ac_cv_path_SED=$SED
  3597. fi
  3598. fi
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3600. $as_echo "$ac_cv_path_SED" >&6; }
  3601. SED="$ac_cv_path_SED"
  3602. rm -f conftest.sed
  3603. test -z "$SED" && SED=sed
  3604. Xsed="$SED -e 1s/^X//"
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3606. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3607. if ${ac_cv_path_GREP+:} false; then :
  3608. $as_echo_n "(cached) " >&6
  3609. else
  3610. if test -z "$GREP"; then
  3611. ac_path_GREP_found=false
  3612. # Loop through the user's path and test for each of PROGNAME-LIST
  3613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3614. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3615. do
  3616. IFS=$as_save_IFS
  3617. test -z "$as_dir" && as_dir=.
  3618. for ac_prog in grep ggrep; do
  3619. for ac_exec_ext in '' $ac_executable_extensions; do
  3620. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3621. as_fn_executable_p "$ac_path_GREP" || continue
  3622. # Check for GNU ac_path_GREP and select it if it is found.
  3623. # Check for GNU $ac_path_GREP
  3624. case `"$ac_path_GREP" --version 2>&1` in
  3625. *GNU*)
  3626. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3627. *)
  3628. ac_count=0
  3629. $as_echo_n 0123456789 >"conftest.in"
  3630. while :
  3631. do
  3632. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3633. mv "conftest.tmp" "conftest.in"
  3634. cp "conftest.in" "conftest.nl"
  3635. $as_echo 'GREP' >> "conftest.nl"
  3636. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3637. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3638. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3639. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3640. # Best one so far, save it but keep looking for a better one
  3641. ac_cv_path_GREP="$ac_path_GREP"
  3642. ac_path_GREP_max=$ac_count
  3643. fi
  3644. # 10*(2^10) chars as input seems more than enough
  3645. test $ac_count -gt 10 && break
  3646. done
  3647. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3648. esac
  3649. $ac_path_GREP_found && break 3
  3650. done
  3651. done
  3652. done
  3653. IFS=$as_save_IFS
  3654. if test -z "$ac_cv_path_GREP"; then
  3655. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3656. fi
  3657. else
  3658. ac_cv_path_GREP=$GREP
  3659. fi
  3660. fi
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3662. $as_echo "$ac_cv_path_GREP" >&6; }
  3663. GREP="$ac_cv_path_GREP"
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3665. $as_echo_n "checking for egrep... " >&6; }
  3666. if ${ac_cv_path_EGREP+:} false; then :
  3667. $as_echo_n "(cached) " >&6
  3668. else
  3669. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3670. then ac_cv_path_EGREP="$GREP -E"
  3671. else
  3672. if test -z "$EGREP"; then
  3673. ac_path_EGREP_found=false
  3674. # Loop through the user's path and test for each of PROGNAME-LIST
  3675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3676. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3677. do
  3678. IFS=$as_save_IFS
  3679. test -z "$as_dir" && as_dir=.
  3680. for ac_prog in egrep; do
  3681. for ac_exec_ext in '' $ac_executable_extensions; do
  3682. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3683. as_fn_executable_p "$ac_path_EGREP" || continue
  3684. # Check for GNU ac_path_EGREP and select it if it is found.
  3685. # Check for GNU $ac_path_EGREP
  3686. case `"$ac_path_EGREP" --version 2>&1` in
  3687. *GNU*)
  3688. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3689. *)
  3690. ac_count=0
  3691. $as_echo_n 0123456789 >"conftest.in"
  3692. while :
  3693. do
  3694. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3695. mv "conftest.tmp" "conftest.in"
  3696. cp "conftest.in" "conftest.nl"
  3697. $as_echo 'EGREP' >> "conftest.nl"
  3698. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3699. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3700. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3701. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3702. # Best one so far, save it but keep looking for a better one
  3703. ac_cv_path_EGREP="$ac_path_EGREP"
  3704. ac_path_EGREP_max=$ac_count
  3705. fi
  3706. # 10*(2^10) chars as input seems more than enough
  3707. test $ac_count -gt 10 && break
  3708. done
  3709. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3710. esac
  3711. $ac_path_EGREP_found && break 3
  3712. done
  3713. done
  3714. done
  3715. IFS=$as_save_IFS
  3716. if test -z "$ac_cv_path_EGREP"; then
  3717. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3718. fi
  3719. else
  3720. ac_cv_path_EGREP=$EGREP
  3721. fi
  3722. fi
  3723. fi
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3725. $as_echo "$ac_cv_path_EGREP" >&6; }
  3726. EGREP="$ac_cv_path_EGREP"
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3728. $as_echo_n "checking for fgrep... " >&6; }
  3729. if ${ac_cv_path_FGREP+:} false; then :
  3730. $as_echo_n "(cached) " >&6
  3731. else
  3732. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3733. then ac_cv_path_FGREP="$GREP -F"
  3734. else
  3735. if test -z "$FGREP"; then
  3736. ac_path_FGREP_found=false
  3737. # Loop through the user's path and test for each of PROGNAME-LIST
  3738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3739. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3740. do
  3741. IFS=$as_save_IFS
  3742. test -z "$as_dir" && as_dir=.
  3743. for ac_prog in fgrep; do
  3744. for ac_exec_ext in '' $ac_executable_extensions; do
  3745. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3746. as_fn_executable_p "$ac_path_FGREP" || continue
  3747. # Check for GNU ac_path_FGREP and select it if it is found.
  3748. # Check for GNU $ac_path_FGREP
  3749. case `"$ac_path_FGREP" --version 2>&1` in
  3750. *GNU*)
  3751. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3752. *)
  3753. ac_count=0
  3754. $as_echo_n 0123456789 >"conftest.in"
  3755. while :
  3756. do
  3757. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3758. mv "conftest.tmp" "conftest.in"
  3759. cp "conftest.in" "conftest.nl"
  3760. $as_echo 'FGREP' >> "conftest.nl"
  3761. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3762. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3763. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3764. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3765. # Best one so far, save it but keep looking for a better one
  3766. ac_cv_path_FGREP="$ac_path_FGREP"
  3767. ac_path_FGREP_max=$ac_count
  3768. fi
  3769. # 10*(2^10) chars as input seems more than enough
  3770. test $ac_count -gt 10 && break
  3771. done
  3772. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3773. esac
  3774. $ac_path_FGREP_found && break 3
  3775. done
  3776. done
  3777. done
  3778. IFS=$as_save_IFS
  3779. if test -z "$ac_cv_path_FGREP"; then
  3780. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3781. fi
  3782. else
  3783. ac_cv_path_FGREP=$FGREP
  3784. fi
  3785. fi
  3786. fi
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3788. $as_echo "$ac_cv_path_FGREP" >&6; }
  3789. FGREP="$ac_cv_path_FGREP"
  3790. test -z "$GREP" && GREP=grep
  3791. # Check whether --with-gnu-ld was given.
  3792. if test "${with_gnu_ld+set}" = set; then :
  3793. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3794. else
  3795. with_gnu_ld=no
  3796. fi
  3797. ac_prog=ld
  3798. if test "$GCC" = yes; then
  3799. # Check if gcc -print-prog-name=ld gives a path.
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3801. $as_echo_n "checking for ld used by $CC... " >&6; }
  3802. case $host in
  3803. *-*-mingw*)
  3804. # gcc leaves a trailing carriage return which upsets mingw
  3805. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3806. *)
  3807. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3808. esac
  3809. case $ac_prog in
  3810. # Accept absolute paths.
  3811. [\\/]* | ?:[\\/]*)
  3812. re_direlt='/[^/][^/]*/\.\./'
  3813. # Canonicalize the pathname of ld
  3814. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3815. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3816. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3817. done
  3818. test -z "$LD" && LD="$ac_prog"
  3819. ;;
  3820. "")
  3821. # If it fails, then pretend we aren't using GCC.
  3822. ac_prog=ld
  3823. ;;
  3824. *)
  3825. # If it is relative, then search for the first ld in PATH.
  3826. with_gnu_ld=unknown
  3827. ;;
  3828. esac
  3829. elif test "$with_gnu_ld" = yes; then
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3831. $as_echo_n "checking for GNU ld... " >&6; }
  3832. else
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3834. $as_echo_n "checking for non-GNU ld... " >&6; }
  3835. fi
  3836. if ${lt_cv_path_LD+:} false; then :
  3837. $as_echo_n "(cached) " >&6
  3838. else
  3839. if test -z "$LD"; then
  3840. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3841. for ac_dir in $PATH; do
  3842. IFS="$lt_save_ifs"
  3843. test -z "$ac_dir" && ac_dir=.
  3844. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3845. lt_cv_path_LD="$ac_dir/$ac_prog"
  3846. # Check to see if the program is GNU ld. I'd rather use --version,
  3847. # but apparently some variants of GNU ld only accept -v.
  3848. # Break only if it was the GNU/non-GNU ld that we prefer.
  3849. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3850. *GNU* | *'with BFD'*)
  3851. test "$with_gnu_ld" != no && break
  3852. ;;
  3853. *)
  3854. test "$with_gnu_ld" != yes && break
  3855. ;;
  3856. esac
  3857. fi
  3858. done
  3859. IFS="$lt_save_ifs"
  3860. else
  3861. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3862. fi
  3863. fi
  3864. LD="$lt_cv_path_LD"
  3865. if test -n "$LD"; then
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3867. $as_echo "$LD" >&6; }
  3868. else
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3870. $as_echo "no" >&6; }
  3871. fi
  3872. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3874. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3875. if ${lt_cv_prog_gnu_ld+:} false; then :
  3876. $as_echo_n "(cached) " >&6
  3877. else
  3878. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3879. case `$LD -v 2>&1 </dev/null` in
  3880. *GNU* | *'with BFD'*)
  3881. lt_cv_prog_gnu_ld=yes
  3882. ;;
  3883. *)
  3884. lt_cv_prog_gnu_ld=no
  3885. ;;
  3886. esac
  3887. fi
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3889. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3890. with_gnu_ld=$lt_cv_prog_gnu_ld
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3892. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3893. if ${lt_cv_path_NM+:} false; then :
  3894. $as_echo_n "(cached) " >&6
  3895. else
  3896. if test -n "$NM"; then
  3897. # Let the user override the test.
  3898. lt_cv_path_NM="$NM"
  3899. else
  3900. lt_nm_to_check="${ac_tool_prefix}nm"
  3901. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3902. lt_nm_to_check="$lt_nm_to_check nm"
  3903. fi
  3904. for lt_tmp_nm in $lt_nm_to_check; do
  3905. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3906. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3907. IFS="$lt_save_ifs"
  3908. test -z "$ac_dir" && ac_dir=.
  3909. tmp_nm="$ac_dir/$lt_tmp_nm"
  3910. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3911. # Check to see if the nm accepts a BSD-compat flag.
  3912. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3913. # nm: unknown option "B" ignored
  3914. # Tru64's nm complains that /dev/null is an invalid object file
  3915. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3916. */dev/null* | *'Invalid file or object type'*)
  3917. lt_cv_path_NM="$tmp_nm -B"
  3918. break
  3919. ;;
  3920. *)
  3921. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3922. */dev/null*)
  3923. lt_cv_path_NM="$tmp_nm -p"
  3924. break
  3925. ;;
  3926. *)
  3927. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3928. continue # so that we can try to find one that supports BSD flags
  3929. ;;
  3930. esac
  3931. ;;
  3932. esac
  3933. fi
  3934. done
  3935. IFS="$lt_save_ifs"
  3936. done
  3937. : ${lt_cv_path_NM=no}
  3938. fi
  3939. fi
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3941. $as_echo "$lt_cv_path_NM" >&6; }
  3942. if test "$lt_cv_path_NM" != "no"; then
  3943. NM="$lt_cv_path_NM"
  3944. else
  3945. # Didn't find any BSD compatible name lister, look for dumpbin.
  3946. if test -n "$DUMPBIN"; then :
  3947. # Let the user override the test.
  3948. else
  3949. if test -n "$ac_tool_prefix"; then
  3950. for ac_prog in dumpbin "link -dump"
  3951. do
  3952. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3953. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3955. $as_echo_n "checking for $ac_word... " >&6; }
  3956. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3957. $as_echo_n "(cached) " >&6
  3958. else
  3959. if test -n "$DUMPBIN"; then
  3960. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3961. else
  3962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3963. for as_dir in $PATH
  3964. do
  3965. IFS=$as_save_IFS
  3966. test -z "$as_dir" && as_dir=.
  3967. for ac_exec_ext in '' $ac_executable_extensions; do
  3968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3969. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3971. break 2
  3972. fi
  3973. done
  3974. done
  3975. IFS=$as_save_IFS
  3976. fi
  3977. fi
  3978. DUMPBIN=$ac_cv_prog_DUMPBIN
  3979. if test -n "$DUMPBIN"; then
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3981. $as_echo "$DUMPBIN" >&6; }
  3982. else
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3984. $as_echo "no" >&6; }
  3985. fi
  3986. test -n "$DUMPBIN" && break
  3987. done
  3988. fi
  3989. if test -z "$DUMPBIN"; then
  3990. ac_ct_DUMPBIN=$DUMPBIN
  3991. for ac_prog in dumpbin "link -dump"
  3992. do
  3993. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3994. set dummy $ac_prog; ac_word=$2
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3996. $as_echo_n "checking for $ac_word... " >&6; }
  3997. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3998. $as_echo_n "(cached) " >&6
  3999. else
  4000. if test -n "$ac_ct_DUMPBIN"; then
  4001. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4002. else
  4003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4004. for as_dir in $PATH
  4005. do
  4006. IFS=$as_save_IFS
  4007. test -z "$as_dir" && as_dir=.
  4008. for ac_exec_ext in '' $ac_executable_extensions; do
  4009. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4010. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4012. break 2
  4013. fi
  4014. done
  4015. done
  4016. IFS=$as_save_IFS
  4017. fi
  4018. fi
  4019. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4020. if test -n "$ac_ct_DUMPBIN"; then
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4022. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4023. else
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4025. $as_echo "no" >&6; }
  4026. fi
  4027. test -n "$ac_ct_DUMPBIN" && break
  4028. done
  4029. if test "x$ac_ct_DUMPBIN" = x; then
  4030. DUMPBIN=":"
  4031. else
  4032. case $cross_compiling:$ac_tool_warned in
  4033. yes:)
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4035. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4036. ac_tool_warned=yes ;;
  4037. esac
  4038. DUMPBIN=$ac_ct_DUMPBIN
  4039. fi
  4040. fi
  4041. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4042. *COFF*)
  4043. DUMPBIN="$DUMPBIN -symbols"
  4044. ;;
  4045. *)
  4046. DUMPBIN=:
  4047. ;;
  4048. esac
  4049. fi
  4050. if test "$DUMPBIN" != ":"; then
  4051. NM="$DUMPBIN"
  4052. fi
  4053. fi
  4054. test -z "$NM" && NM=nm
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4056. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4057. if ${lt_cv_nm_interface+:} false; then :
  4058. $as_echo_n "(cached) " >&6
  4059. else
  4060. lt_cv_nm_interface="BSD nm"
  4061. echo "int some_variable = 0;" > conftest.$ac_ext
  4062. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4063. (eval "$ac_compile" 2>conftest.err)
  4064. cat conftest.err >&5
  4065. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4066. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4067. cat conftest.err >&5
  4068. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4069. cat conftest.out >&5
  4070. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4071. lt_cv_nm_interface="MS dumpbin"
  4072. fi
  4073. rm -f conftest*
  4074. fi
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4076. $as_echo "$lt_cv_nm_interface" >&6; }
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4078. $as_echo_n "checking whether ln -s works... " >&6; }
  4079. LN_S=$as_ln_s
  4080. if test "$LN_S" = "ln -s"; then
  4081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4082. $as_echo "yes" >&6; }
  4083. else
  4084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4085. $as_echo "no, using $LN_S" >&6; }
  4086. fi
  4087. # find the maximum length of command line arguments
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4089. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4090. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4091. $as_echo_n "(cached) " >&6
  4092. else
  4093. i=0
  4094. teststring="ABCD"
  4095. case $build_os in
  4096. msdosdjgpp*)
  4097. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4098. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4099. # during glob expansion). Even if it were fixed, the result of this
  4100. # check would be larger than it should be.
  4101. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4102. ;;
  4103. gnu*)
  4104. # Under GNU Hurd, this test is not required because there is
  4105. # no limit to the length of command line arguments.
  4106. # Libtool will interpret -1 as no limit whatsoever
  4107. lt_cv_sys_max_cmd_len=-1;
  4108. ;;
  4109. cygwin* | mingw* | cegcc*)
  4110. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4111. # about 5 minutes as the teststring grows exponentially.
  4112. # Worse, since 9x/ME are not pre-emptively multitasking,
  4113. # you end up with a "frozen" computer, even though with patience
  4114. # the test eventually succeeds (with a max line length of 256k).
  4115. # Instead, let's just punt: use the minimum linelength reported by
  4116. # all of the supported platforms: 8192 (on NT/2K/XP).
  4117. lt_cv_sys_max_cmd_len=8192;
  4118. ;;
  4119. mint*)
  4120. # On MiNT this can take a long time and run out of memory.
  4121. lt_cv_sys_max_cmd_len=8192;
  4122. ;;
  4123. amigaos*)
  4124. # On AmigaOS with pdksh, this test takes hours, literally.
  4125. # So we just punt and use a minimum line length of 8192.
  4126. lt_cv_sys_max_cmd_len=8192;
  4127. ;;
  4128. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4129. # This has been around since 386BSD, at least. Likely further.
  4130. if test -x /sbin/sysctl; then
  4131. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4132. elif test -x /usr/sbin/sysctl; then
  4133. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4134. else
  4135. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4136. fi
  4137. # And add a safety zone
  4138. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4139. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4140. ;;
  4141. interix*)
  4142. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4143. lt_cv_sys_max_cmd_len=196608
  4144. ;;
  4145. osf*)
  4146. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4147. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4148. # nice to cause kernel panics so lets avoid the loop below.
  4149. # First set a reasonable default.
  4150. lt_cv_sys_max_cmd_len=16384
  4151. #
  4152. if test -x /sbin/sysconfig; then
  4153. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4154. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4155. esac
  4156. fi
  4157. ;;
  4158. sco3.2v5*)
  4159. lt_cv_sys_max_cmd_len=102400
  4160. ;;
  4161. sysv5* | sco5v6* | sysv4.2uw2*)
  4162. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4163. if test -n "$kargmax"; then
  4164. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4165. else
  4166. lt_cv_sys_max_cmd_len=32768
  4167. fi
  4168. ;;
  4169. *)
  4170. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4171. if test -n "$lt_cv_sys_max_cmd_len"; then
  4172. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4173. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4174. else
  4175. # Make teststring a little bigger before we do anything with it.
  4176. # a 1K string should be a reasonable start.
  4177. for i in 1 2 3 4 5 6 7 8 ; do
  4178. teststring=$teststring$teststring
  4179. done
  4180. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4181. # If test is not a shell built-in, we'll probably end up computing a
  4182. # maximum length that is only half of the actual maximum length, but
  4183. # we can't tell.
  4184. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4185. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4186. test $i != 17 # 1/2 MB should be enough
  4187. do
  4188. i=`expr $i + 1`
  4189. teststring=$teststring$teststring
  4190. done
  4191. # Only check the string length outside the loop.
  4192. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4193. teststring=
  4194. # Add a significant safety factor because C++ compilers can tack on
  4195. # massive amounts of additional arguments before passing them to the
  4196. # linker. It appears as though 1/2 is a usable value.
  4197. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4198. fi
  4199. ;;
  4200. esac
  4201. fi
  4202. if test -n $lt_cv_sys_max_cmd_len ; then
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4204. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4205. else
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4207. $as_echo "none" >&6; }
  4208. fi
  4209. max_cmd_len=$lt_cv_sys_max_cmd_len
  4210. : ${CP="cp -f"}
  4211. : ${MV="mv -f"}
  4212. : ${RM="rm -f"}
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4214. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4215. # Try some XSI features
  4216. xsi_shell=no
  4217. ( _lt_dummy="a/b/c"
  4218. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4219. = c,a/b,b/c, \
  4220. && eval 'test $(( 1 + 1 )) -eq 2 \
  4221. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4222. && xsi_shell=yes
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4224. $as_echo "$xsi_shell" >&6; }
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4226. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4227. lt_shell_append=no
  4228. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4229. >/dev/null 2>&1 \
  4230. && lt_shell_append=yes
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4232. $as_echo "$lt_shell_append" >&6; }
  4233. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4234. lt_unset=unset
  4235. else
  4236. lt_unset=false
  4237. fi
  4238. # test EBCDIC or ASCII
  4239. case `echo X|tr X '\101'` in
  4240. A) # ASCII based system
  4241. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4242. lt_SP2NL='tr \040 \012'
  4243. lt_NL2SP='tr \015\012 \040\040'
  4244. ;;
  4245. *) # EBCDIC based system
  4246. lt_SP2NL='tr \100 \n'
  4247. lt_NL2SP='tr \r\n \100\100'
  4248. ;;
  4249. esac
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4251. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4252. if ${lt_cv_to_host_file_cmd+:} false; then :
  4253. $as_echo_n "(cached) " >&6
  4254. else
  4255. case $host in
  4256. *-*-mingw* )
  4257. case $build in
  4258. *-*-mingw* ) # actually msys
  4259. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4260. ;;
  4261. *-*-cygwin* )
  4262. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4263. ;;
  4264. * ) # otherwise, assume *nix
  4265. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4266. ;;
  4267. esac
  4268. ;;
  4269. *-*-cygwin* )
  4270. case $build in
  4271. *-*-mingw* ) # actually msys
  4272. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4273. ;;
  4274. *-*-cygwin* )
  4275. lt_cv_to_host_file_cmd=func_convert_file_noop
  4276. ;;
  4277. * ) # otherwise, assume *nix
  4278. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4279. ;;
  4280. esac
  4281. ;;
  4282. * ) # unhandled hosts (and "normal" native builds)
  4283. lt_cv_to_host_file_cmd=func_convert_file_noop
  4284. ;;
  4285. esac
  4286. fi
  4287. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4289. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4291. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4292. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4293. $as_echo_n "(cached) " >&6
  4294. else
  4295. #assume ordinary cross tools, or native build.
  4296. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4297. case $host in
  4298. *-*-mingw* )
  4299. case $build in
  4300. *-*-mingw* ) # actually msys
  4301. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4302. ;;
  4303. esac
  4304. ;;
  4305. esac
  4306. fi
  4307. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4309. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4311. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4312. if ${lt_cv_ld_reload_flag+:} false; then :
  4313. $as_echo_n "(cached) " >&6
  4314. else
  4315. lt_cv_ld_reload_flag='-r'
  4316. fi
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4318. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4319. reload_flag=$lt_cv_ld_reload_flag
  4320. case $reload_flag in
  4321. "" | " "*) ;;
  4322. *) reload_flag=" $reload_flag" ;;
  4323. esac
  4324. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4325. case $host_os in
  4326. cygwin* | mingw* | pw32* | cegcc*)
  4327. if test "$GCC" != yes; then
  4328. reload_cmds=false
  4329. fi
  4330. ;;
  4331. darwin*)
  4332. if test "$GCC" = yes; then
  4333. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4334. else
  4335. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4336. fi
  4337. ;;
  4338. esac
  4339. if test -n "$ac_tool_prefix"; then
  4340. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4341. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4343. $as_echo_n "checking for $ac_word... " >&6; }
  4344. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4345. $as_echo_n "(cached) " >&6
  4346. else
  4347. if test -n "$OBJDUMP"; then
  4348. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4349. else
  4350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4351. for as_dir in $PATH
  4352. do
  4353. IFS=$as_save_IFS
  4354. test -z "$as_dir" && as_dir=.
  4355. for ac_exec_ext in '' $ac_executable_extensions; do
  4356. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4357. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4358. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4359. break 2
  4360. fi
  4361. done
  4362. done
  4363. IFS=$as_save_IFS
  4364. fi
  4365. fi
  4366. OBJDUMP=$ac_cv_prog_OBJDUMP
  4367. if test -n "$OBJDUMP"; then
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4369. $as_echo "$OBJDUMP" >&6; }
  4370. else
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4372. $as_echo "no" >&6; }
  4373. fi
  4374. fi
  4375. if test -z "$ac_cv_prog_OBJDUMP"; then
  4376. ac_ct_OBJDUMP=$OBJDUMP
  4377. # Extract the first word of "objdump", so it can be a program name with args.
  4378. set dummy objdump; ac_word=$2
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4380. $as_echo_n "checking for $ac_word... " >&6; }
  4381. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4382. $as_echo_n "(cached) " >&6
  4383. else
  4384. if test -n "$ac_ct_OBJDUMP"; then
  4385. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4386. else
  4387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4388. for as_dir in $PATH
  4389. do
  4390. IFS=$as_save_IFS
  4391. test -z "$as_dir" && as_dir=.
  4392. for ac_exec_ext in '' $ac_executable_extensions; do
  4393. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4394. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4396. break 2
  4397. fi
  4398. done
  4399. done
  4400. IFS=$as_save_IFS
  4401. fi
  4402. fi
  4403. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4404. if test -n "$ac_ct_OBJDUMP"; then
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4406. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4407. else
  4408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4409. $as_echo "no" >&6; }
  4410. fi
  4411. if test "x$ac_ct_OBJDUMP" = x; then
  4412. OBJDUMP="false"
  4413. else
  4414. case $cross_compiling:$ac_tool_warned in
  4415. yes:)
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4417. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4418. ac_tool_warned=yes ;;
  4419. esac
  4420. OBJDUMP=$ac_ct_OBJDUMP
  4421. fi
  4422. else
  4423. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4424. fi
  4425. test -z "$OBJDUMP" && OBJDUMP=objdump
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4427. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4428. if ${lt_cv_deplibs_check_method+:} false; then :
  4429. $as_echo_n "(cached) " >&6
  4430. else
  4431. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4432. lt_cv_file_magic_test_file=
  4433. lt_cv_deplibs_check_method='unknown'
  4434. # Need to set the preceding variable on all platforms that support
  4435. # interlibrary dependencies.
  4436. # 'none' -- dependencies not supported.
  4437. # `unknown' -- same as none, but documents that we really don't know.
  4438. # 'pass_all' -- all dependencies passed with no checks.
  4439. # 'test_compile' -- check by making test program.
  4440. # 'file_magic [[regex]]' -- check by looking for files in library path
  4441. # which responds to the $file_magic_cmd with a given extended regex.
  4442. # If you have `file' or equivalent on your system and you're not sure
  4443. # whether `pass_all' will *always* work, you probably want this one.
  4444. case $host_os in
  4445. aix[4-9]*)
  4446. lt_cv_deplibs_check_method=pass_all
  4447. ;;
  4448. beos*)
  4449. lt_cv_deplibs_check_method=pass_all
  4450. ;;
  4451. bsdi[45]*)
  4452. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4453. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4454. lt_cv_file_magic_test_file=/shlib/libc.so
  4455. ;;
  4456. cygwin*)
  4457. # func_win32_libid is a shell function defined in ltmain.sh
  4458. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4459. lt_cv_file_magic_cmd='func_win32_libid'
  4460. ;;
  4461. mingw* | pw32*)
  4462. # Base MSYS/MinGW do not provide the 'file' command needed by
  4463. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4464. # unless we find 'file', for example because we are cross-compiling.
  4465. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4466. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4467. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4468. lt_cv_file_magic_cmd='func_win32_libid'
  4469. else
  4470. # Keep this pattern in sync with the one in func_win32_libid.
  4471. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4472. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4473. fi
  4474. ;;
  4475. cegcc*)
  4476. # use the weaker test based on 'objdump'. See mingw*.
  4477. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4478. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4479. ;;
  4480. darwin* | rhapsody*)
  4481. lt_cv_deplibs_check_method=pass_all
  4482. ;;
  4483. freebsd* | dragonfly*)
  4484. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4485. case $host_cpu in
  4486. i*86 )
  4487. # Not sure whether the presence of OpenBSD here was a mistake.
  4488. # Let's accept both of them until this is cleared up.
  4489. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4490. lt_cv_file_magic_cmd=/usr/bin/file
  4491. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4492. ;;
  4493. esac
  4494. else
  4495. lt_cv_deplibs_check_method=pass_all
  4496. fi
  4497. ;;
  4498. gnu*)
  4499. lt_cv_deplibs_check_method=pass_all
  4500. ;;
  4501. haiku*)
  4502. lt_cv_deplibs_check_method=pass_all
  4503. ;;
  4504. hpux10.20* | hpux11*)
  4505. lt_cv_file_magic_cmd=/usr/bin/file
  4506. case $host_cpu in
  4507. ia64*)
  4508. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4509. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4510. ;;
  4511. hppa*64*)
  4512. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4513. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4514. ;;
  4515. *)
  4516. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4517. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4518. ;;
  4519. esac
  4520. ;;
  4521. interix[3-9]*)
  4522. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4523. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4524. ;;
  4525. irix5* | irix6* | nonstopux*)
  4526. case $LD in
  4527. *-32|*"-32 ") libmagic=32-bit;;
  4528. *-n32|*"-n32 ") libmagic=N32;;
  4529. *-64|*"-64 ") libmagic=64-bit;;
  4530. *) libmagic=never-match;;
  4531. esac
  4532. lt_cv_deplibs_check_method=pass_all
  4533. ;;
  4534. # This must be Linux ELF.
  4535. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4536. lt_cv_deplibs_check_method=pass_all
  4537. ;;
  4538. netbsd*)
  4539. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4540. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4541. else
  4542. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4543. fi
  4544. ;;
  4545. newos6*)
  4546. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4547. lt_cv_file_magic_cmd=/usr/bin/file
  4548. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4549. ;;
  4550. *nto* | *qnx*)
  4551. lt_cv_deplibs_check_method=pass_all
  4552. ;;
  4553. openbsd*)
  4554. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4555. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4556. else
  4557. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4558. fi
  4559. ;;
  4560. osf3* | osf4* | osf5*)
  4561. lt_cv_deplibs_check_method=pass_all
  4562. ;;
  4563. rdos*)
  4564. lt_cv_deplibs_check_method=pass_all
  4565. ;;
  4566. solaris*)
  4567. lt_cv_deplibs_check_method=pass_all
  4568. ;;
  4569. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4570. lt_cv_deplibs_check_method=pass_all
  4571. ;;
  4572. sysv4 | sysv4.3*)
  4573. case $host_vendor in
  4574. motorola)
  4575. 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]'
  4576. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4577. ;;
  4578. ncr)
  4579. lt_cv_deplibs_check_method=pass_all
  4580. ;;
  4581. sequent)
  4582. lt_cv_file_magic_cmd='/bin/file'
  4583. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4584. ;;
  4585. sni)
  4586. lt_cv_file_magic_cmd='/bin/file'
  4587. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4588. lt_cv_file_magic_test_file=/lib/libc.so
  4589. ;;
  4590. siemens)
  4591. lt_cv_deplibs_check_method=pass_all
  4592. ;;
  4593. pc)
  4594. lt_cv_deplibs_check_method=pass_all
  4595. ;;
  4596. esac
  4597. ;;
  4598. tpf*)
  4599. lt_cv_deplibs_check_method=pass_all
  4600. ;;
  4601. esac
  4602. fi
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4604. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4605. file_magic_glob=
  4606. want_nocaseglob=no
  4607. if test "$build" = "$host"; then
  4608. case $host_os in
  4609. mingw* | pw32*)
  4610. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4611. want_nocaseglob=yes
  4612. else
  4613. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4614. fi
  4615. ;;
  4616. esac
  4617. fi
  4618. file_magic_cmd=$lt_cv_file_magic_cmd
  4619. deplibs_check_method=$lt_cv_deplibs_check_method
  4620. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4621. if test -n "$ac_tool_prefix"; then
  4622. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4623. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4625. $as_echo_n "checking for $ac_word... " >&6; }
  4626. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4627. $as_echo_n "(cached) " >&6
  4628. else
  4629. if test -n "$DLLTOOL"; then
  4630. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4631. else
  4632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4633. for as_dir in $PATH
  4634. do
  4635. IFS=$as_save_IFS
  4636. test -z "$as_dir" && as_dir=.
  4637. for ac_exec_ext in '' $ac_executable_extensions; do
  4638. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4639. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4641. break 2
  4642. fi
  4643. done
  4644. done
  4645. IFS=$as_save_IFS
  4646. fi
  4647. fi
  4648. DLLTOOL=$ac_cv_prog_DLLTOOL
  4649. if test -n "$DLLTOOL"; then
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4651. $as_echo "$DLLTOOL" >&6; }
  4652. else
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4654. $as_echo "no" >&6; }
  4655. fi
  4656. fi
  4657. if test -z "$ac_cv_prog_DLLTOOL"; then
  4658. ac_ct_DLLTOOL=$DLLTOOL
  4659. # Extract the first word of "dlltool", so it can be a program name with args.
  4660. set dummy dlltool; ac_word=$2
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4662. $as_echo_n "checking for $ac_word... " >&6; }
  4663. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4664. $as_echo_n "(cached) " >&6
  4665. else
  4666. if test -n "$ac_ct_DLLTOOL"; then
  4667. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4668. else
  4669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4670. for as_dir in $PATH
  4671. do
  4672. IFS=$as_save_IFS
  4673. test -z "$as_dir" && as_dir=.
  4674. for ac_exec_ext in '' $ac_executable_extensions; do
  4675. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4676. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4678. break 2
  4679. fi
  4680. done
  4681. done
  4682. IFS=$as_save_IFS
  4683. fi
  4684. fi
  4685. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4686. if test -n "$ac_ct_DLLTOOL"; then
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4688. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4689. else
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4691. $as_echo "no" >&6; }
  4692. fi
  4693. if test "x$ac_ct_DLLTOOL" = x; then
  4694. DLLTOOL="false"
  4695. else
  4696. case $cross_compiling:$ac_tool_warned in
  4697. yes:)
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4699. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4700. ac_tool_warned=yes ;;
  4701. esac
  4702. DLLTOOL=$ac_ct_DLLTOOL
  4703. fi
  4704. else
  4705. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4706. fi
  4707. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4709. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4710. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4711. $as_echo_n "(cached) " >&6
  4712. else
  4713. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4714. case $host_os in
  4715. cygwin* | mingw* | pw32* | cegcc*)
  4716. # two different shell functions defined in ltmain.sh
  4717. # decide which to use based on capabilities of $DLLTOOL
  4718. case `$DLLTOOL --help 2>&1` in
  4719. *--identify-strict*)
  4720. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4721. ;;
  4722. *)
  4723. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4724. ;;
  4725. esac
  4726. ;;
  4727. *)
  4728. # fallback: assume linklib IS sharedlib
  4729. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4730. ;;
  4731. esac
  4732. fi
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4734. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4735. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4736. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4737. if test -n "$ac_tool_prefix"; then
  4738. for ac_prog in ar
  4739. do
  4740. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4741. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4743. $as_echo_n "checking for $ac_word... " >&6; }
  4744. if ${ac_cv_prog_AR+:} false; then :
  4745. $as_echo_n "(cached) " >&6
  4746. else
  4747. if test -n "$AR"; then
  4748. ac_cv_prog_AR="$AR" # Let the user override the test.
  4749. else
  4750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4751. for as_dir in $PATH
  4752. do
  4753. IFS=$as_save_IFS
  4754. test -z "$as_dir" && as_dir=.
  4755. for ac_exec_ext in '' $ac_executable_extensions; do
  4756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4757. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4759. break 2
  4760. fi
  4761. done
  4762. done
  4763. IFS=$as_save_IFS
  4764. fi
  4765. fi
  4766. AR=$ac_cv_prog_AR
  4767. if test -n "$AR"; then
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4769. $as_echo "$AR" >&6; }
  4770. else
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4772. $as_echo "no" >&6; }
  4773. fi
  4774. test -n "$AR" && break
  4775. done
  4776. fi
  4777. if test -z "$AR"; then
  4778. ac_ct_AR=$AR
  4779. for ac_prog in ar
  4780. do
  4781. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4782. set dummy $ac_prog; ac_word=$2
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4784. $as_echo_n "checking for $ac_word... " >&6; }
  4785. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4786. $as_echo_n "(cached) " >&6
  4787. else
  4788. if test -n "$ac_ct_AR"; then
  4789. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4790. else
  4791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4792. for as_dir in $PATH
  4793. do
  4794. IFS=$as_save_IFS
  4795. test -z "$as_dir" && as_dir=.
  4796. for ac_exec_ext in '' $ac_executable_extensions; do
  4797. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4798. ac_cv_prog_ac_ct_AR="$ac_prog"
  4799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4800. break 2
  4801. fi
  4802. done
  4803. done
  4804. IFS=$as_save_IFS
  4805. fi
  4806. fi
  4807. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4808. if test -n "$ac_ct_AR"; then
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4810. $as_echo "$ac_ct_AR" >&6; }
  4811. else
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4813. $as_echo "no" >&6; }
  4814. fi
  4815. test -n "$ac_ct_AR" && break
  4816. done
  4817. if test "x$ac_ct_AR" = x; then
  4818. AR="false"
  4819. else
  4820. case $cross_compiling:$ac_tool_warned in
  4821. yes:)
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4823. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4824. ac_tool_warned=yes ;;
  4825. esac
  4826. AR=$ac_ct_AR
  4827. fi
  4828. fi
  4829. : ${AR=ar}
  4830. : ${AR_FLAGS=cru}
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4832. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4833. if ${lt_cv_ar_at_file+:} false; then :
  4834. $as_echo_n "(cached) " >&6
  4835. else
  4836. lt_cv_ar_at_file=no
  4837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4838. /* end confdefs.h. */
  4839. int
  4840. main ()
  4841. {
  4842. ;
  4843. return 0;
  4844. }
  4845. _ACEOF
  4846. if ac_fn_c_try_compile "$LINENO"; then :
  4847. echo conftest.$ac_objext > conftest.lst
  4848. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4849. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4850. (eval $lt_ar_try) 2>&5
  4851. ac_status=$?
  4852. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4853. test $ac_status = 0; }
  4854. if test "$ac_status" -eq 0; then
  4855. # Ensure the archiver fails upon bogus file names.
  4856. rm -f conftest.$ac_objext libconftest.a
  4857. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4858. (eval $lt_ar_try) 2>&5
  4859. ac_status=$?
  4860. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4861. test $ac_status = 0; }
  4862. if test "$ac_status" -ne 0; then
  4863. lt_cv_ar_at_file=@
  4864. fi
  4865. fi
  4866. rm -f conftest.* libconftest.a
  4867. fi
  4868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4869. fi
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4871. $as_echo "$lt_cv_ar_at_file" >&6; }
  4872. if test "x$lt_cv_ar_at_file" = xno; then
  4873. archiver_list_spec=
  4874. else
  4875. archiver_list_spec=$lt_cv_ar_at_file
  4876. fi
  4877. if test -n "$ac_tool_prefix"; then
  4878. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4879. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4881. $as_echo_n "checking for $ac_word... " >&6; }
  4882. if ${ac_cv_prog_STRIP+:} false; then :
  4883. $as_echo_n "(cached) " >&6
  4884. else
  4885. if test -n "$STRIP"; then
  4886. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4887. else
  4888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4889. for as_dir in $PATH
  4890. do
  4891. IFS=$as_save_IFS
  4892. test -z "$as_dir" && as_dir=.
  4893. for ac_exec_ext in '' $ac_executable_extensions; do
  4894. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4895. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4897. break 2
  4898. fi
  4899. done
  4900. done
  4901. IFS=$as_save_IFS
  4902. fi
  4903. fi
  4904. STRIP=$ac_cv_prog_STRIP
  4905. if test -n "$STRIP"; then
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4907. $as_echo "$STRIP" >&6; }
  4908. else
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4910. $as_echo "no" >&6; }
  4911. fi
  4912. fi
  4913. if test -z "$ac_cv_prog_STRIP"; then
  4914. ac_ct_STRIP=$STRIP
  4915. # Extract the first word of "strip", so it can be a program name with args.
  4916. set dummy strip; ac_word=$2
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4918. $as_echo_n "checking for $ac_word... " >&6; }
  4919. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4920. $as_echo_n "(cached) " >&6
  4921. else
  4922. if test -n "$ac_ct_STRIP"; then
  4923. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4924. else
  4925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4926. for as_dir in $PATH
  4927. do
  4928. IFS=$as_save_IFS
  4929. test -z "$as_dir" && as_dir=.
  4930. for ac_exec_ext in '' $ac_executable_extensions; do
  4931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4932. ac_cv_prog_ac_ct_STRIP="strip"
  4933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4934. break 2
  4935. fi
  4936. done
  4937. done
  4938. IFS=$as_save_IFS
  4939. fi
  4940. fi
  4941. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4942. if test -n "$ac_ct_STRIP"; then
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4944. $as_echo "$ac_ct_STRIP" >&6; }
  4945. else
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4947. $as_echo "no" >&6; }
  4948. fi
  4949. if test "x$ac_ct_STRIP" = x; then
  4950. STRIP=":"
  4951. else
  4952. case $cross_compiling:$ac_tool_warned in
  4953. yes:)
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4955. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4956. ac_tool_warned=yes ;;
  4957. esac
  4958. STRIP=$ac_ct_STRIP
  4959. fi
  4960. else
  4961. STRIP="$ac_cv_prog_STRIP"
  4962. fi
  4963. test -z "$STRIP" && STRIP=:
  4964. if test -n "$ac_tool_prefix"; then
  4965. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4966. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4968. $as_echo_n "checking for $ac_word... " >&6; }
  4969. if ${ac_cv_prog_RANLIB+:} false; then :
  4970. $as_echo_n "(cached) " >&6
  4971. else
  4972. if test -n "$RANLIB"; then
  4973. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4974. else
  4975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4976. for as_dir in $PATH
  4977. do
  4978. IFS=$as_save_IFS
  4979. test -z "$as_dir" && as_dir=.
  4980. for ac_exec_ext in '' $ac_executable_extensions; do
  4981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4982. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4984. break 2
  4985. fi
  4986. done
  4987. done
  4988. IFS=$as_save_IFS
  4989. fi
  4990. fi
  4991. RANLIB=$ac_cv_prog_RANLIB
  4992. if test -n "$RANLIB"; then
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4994. $as_echo "$RANLIB" >&6; }
  4995. else
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4997. $as_echo "no" >&6; }
  4998. fi
  4999. fi
  5000. if test -z "$ac_cv_prog_RANLIB"; then
  5001. ac_ct_RANLIB=$RANLIB
  5002. # Extract the first word of "ranlib", so it can be a program name with args.
  5003. set dummy ranlib; ac_word=$2
  5004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5005. $as_echo_n "checking for $ac_word... " >&6; }
  5006. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5007. $as_echo_n "(cached) " >&6
  5008. else
  5009. if test -n "$ac_ct_RANLIB"; then
  5010. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5011. else
  5012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5013. for as_dir in $PATH
  5014. do
  5015. IFS=$as_save_IFS
  5016. test -z "$as_dir" && as_dir=.
  5017. for ac_exec_ext in '' $ac_executable_extensions; do
  5018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5019. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5021. break 2
  5022. fi
  5023. done
  5024. done
  5025. IFS=$as_save_IFS
  5026. fi
  5027. fi
  5028. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5029. if test -n "$ac_ct_RANLIB"; then
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5031. $as_echo "$ac_ct_RANLIB" >&6; }
  5032. else
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5034. $as_echo "no" >&6; }
  5035. fi
  5036. if test "x$ac_ct_RANLIB" = x; then
  5037. RANLIB=":"
  5038. else
  5039. case $cross_compiling:$ac_tool_warned in
  5040. yes:)
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5042. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5043. ac_tool_warned=yes ;;
  5044. esac
  5045. RANLIB=$ac_ct_RANLIB
  5046. fi
  5047. else
  5048. RANLIB="$ac_cv_prog_RANLIB"
  5049. fi
  5050. test -z "$RANLIB" && RANLIB=:
  5051. # Determine commands to create old-style static archives.
  5052. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5053. old_postinstall_cmds='chmod 644 $oldlib'
  5054. old_postuninstall_cmds=
  5055. if test -n "$RANLIB"; then
  5056. case $host_os in
  5057. openbsd*)
  5058. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5059. ;;
  5060. *)
  5061. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5062. ;;
  5063. esac
  5064. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5065. fi
  5066. case $host_os in
  5067. darwin*)
  5068. lock_old_archive_extraction=yes ;;
  5069. *)
  5070. lock_old_archive_extraction=no ;;
  5071. esac
  5072. # If no C compiler was specified, use CC.
  5073. LTCC=${LTCC-"$CC"}
  5074. # If no C compiler flags were specified, use CFLAGS.
  5075. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5076. # Allow CC to be a program name with arguments.
  5077. compiler=$CC
  5078. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5080. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5081. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5082. $as_echo_n "(cached) " >&6
  5083. else
  5084. # These are sane defaults that work on at least a few old systems.
  5085. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5086. # Character class describing NM global symbol codes.
  5087. symcode='[BCDEGRST]'
  5088. # Regexp to match symbols that can be accessed directly from C.
  5089. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5090. # Define system-specific variables.
  5091. case $host_os in
  5092. aix*)
  5093. symcode='[BCDT]'
  5094. ;;
  5095. cygwin* | mingw* | pw32* | cegcc*)
  5096. symcode='[ABCDGISTW]'
  5097. ;;
  5098. hpux*)
  5099. if test "$host_cpu" = ia64; then
  5100. symcode='[ABCDEGRST]'
  5101. fi
  5102. ;;
  5103. irix* | nonstopux*)
  5104. symcode='[BCDEGRST]'
  5105. ;;
  5106. osf*)
  5107. symcode='[BCDEGQRST]'
  5108. ;;
  5109. solaris*)
  5110. symcode='[BDRT]'
  5111. ;;
  5112. sco3.2v5*)
  5113. symcode='[DT]'
  5114. ;;
  5115. sysv4.2uw2*)
  5116. symcode='[DT]'
  5117. ;;
  5118. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5119. symcode='[ABDT]'
  5120. ;;
  5121. sysv4)
  5122. symcode='[DFNSTU]'
  5123. ;;
  5124. esac
  5125. # If we're using GNU nm, then use its standard symbol codes.
  5126. case `$NM -V 2>&1` in
  5127. *GNU* | *'with BFD'*)
  5128. symcode='[ABCDGIRSTW]' ;;
  5129. esac
  5130. # Transform an extracted symbol line into a proper C declaration.
  5131. # Some systems (esp. on ia64) link data and code symbols differently,
  5132. # so use this general approach.
  5133. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5134. # Transform an extracted symbol line into symbol name and symbol address
  5135. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5136. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5137. # Handle CRLF in mingw tool chain
  5138. opt_cr=
  5139. case $build_os in
  5140. mingw*)
  5141. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5142. ;;
  5143. esac
  5144. # Try without a prefix underscore, then with it.
  5145. for ac_symprfx in "" "_"; do
  5146. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5147. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5148. # Write the raw and C identifiers.
  5149. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5150. # Fake it for dumpbin and say T for any non-static function
  5151. # and D for any global variable.
  5152. # Also find C++ and __fastcall symbols from MSVC++,
  5153. # which start with @ or ?.
  5154. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5155. " {last_section=section; section=\$ 3};"\
  5156. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5157. " \$ 0!~/External *\|/{next};"\
  5158. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5159. " {if(hide[section]) next};"\
  5160. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5161. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5162. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5163. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5164. " ' prfx=^$ac_symprfx"
  5165. else
  5166. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5167. fi
  5168. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5169. # Check to see that the pipe works correctly.
  5170. pipe_works=no
  5171. rm -f conftest*
  5172. cat > conftest.$ac_ext <<_LT_EOF
  5173. #ifdef __cplusplus
  5174. extern "C" {
  5175. #endif
  5176. char nm_test_var;
  5177. void nm_test_func(void);
  5178. void nm_test_func(void){}
  5179. #ifdef __cplusplus
  5180. }
  5181. #endif
  5182. int main(){nm_test_var='a';nm_test_func();return(0);}
  5183. _LT_EOF
  5184. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5185. (eval $ac_compile) 2>&5
  5186. ac_status=$?
  5187. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5188. test $ac_status = 0; }; then
  5189. # Now try to grab the symbols.
  5190. nlist=conftest.nm
  5191. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5192. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5193. ac_status=$?
  5194. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5195. test $ac_status = 0; } && test -s "$nlist"; then
  5196. # Try sorting and uniquifying the output.
  5197. if sort "$nlist" | uniq > "$nlist"T; then
  5198. mv -f "$nlist"T "$nlist"
  5199. else
  5200. rm -f "$nlist"T
  5201. fi
  5202. # Make sure that we snagged all the symbols we need.
  5203. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5204. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5205. cat <<_LT_EOF > conftest.$ac_ext
  5206. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5207. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5208. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5209. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5210. # define LT_DLSYM_CONST
  5211. #elif defined(__osf__)
  5212. /* This system does not cope well with relocations in const data. */
  5213. # define LT_DLSYM_CONST
  5214. #else
  5215. # define LT_DLSYM_CONST const
  5216. #endif
  5217. #ifdef __cplusplus
  5218. extern "C" {
  5219. #endif
  5220. _LT_EOF
  5221. # Now generate the symbol file.
  5222. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5223. cat <<_LT_EOF >> conftest.$ac_ext
  5224. /* The mapping between symbol names and symbols. */
  5225. LT_DLSYM_CONST struct {
  5226. const char *name;
  5227. void *address;
  5228. }
  5229. lt__PROGRAM__LTX_preloaded_symbols[] =
  5230. {
  5231. { "@PROGRAM@", (void *) 0 },
  5232. _LT_EOF
  5233. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5234. cat <<\_LT_EOF >> conftest.$ac_ext
  5235. {0, (void *) 0}
  5236. };
  5237. /* This works around a problem in FreeBSD linker */
  5238. #ifdef FREEBSD_WORKAROUND
  5239. static const void *lt_preloaded_setup() {
  5240. return lt__PROGRAM__LTX_preloaded_symbols;
  5241. }
  5242. #endif
  5243. #ifdef __cplusplus
  5244. }
  5245. #endif
  5246. _LT_EOF
  5247. # Now try linking the two files.
  5248. mv conftest.$ac_objext conftstm.$ac_objext
  5249. lt_globsym_save_LIBS=$LIBS
  5250. lt_globsym_save_CFLAGS=$CFLAGS
  5251. LIBS="conftstm.$ac_objext"
  5252. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5253. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5254. (eval $ac_link) 2>&5
  5255. ac_status=$?
  5256. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5257. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5258. pipe_works=yes
  5259. fi
  5260. LIBS=$lt_globsym_save_LIBS
  5261. CFLAGS=$lt_globsym_save_CFLAGS
  5262. else
  5263. echo "cannot find nm_test_func in $nlist" >&5
  5264. fi
  5265. else
  5266. echo "cannot find nm_test_var in $nlist" >&5
  5267. fi
  5268. else
  5269. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5270. fi
  5271. else
  5272. echo "$progname: failed program was:" >&5
  5273. cat conftest.$ac_ext >&5
  5274. fi
  5275. rm -rf conftest* conftst*
  5276. # Do not use the global_symbol_pipe unless it works.
  5277. if test "$pipe_works" = yes; then
  5278. break
  5279. else
  5280. lt_cv_sys_global_symbol_pipe=
  5281. fi
  5282. done
  5283. fi
  5284. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5285. lt_cv_sys_global_symbol_to_cdecl=
  5286. fi
  5287. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5289. $as_echo "failed" >&6; }
  5290. else
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5292. $as_echo "ok" >&6; }
  5293. fi
  5294. # Response file support.
  5295. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5296. nm_file_list_spec='@'
  5297. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5298. nm_file_list_spec='@'
  5299. fi
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5301. $as_echo_n "checking for sysroot... " >&6; }
  5302. # Check whether --with-sysroot was given.
  5303. if test "${with_sysroot+set}" = set; then :
  5304. withval=$with_sysroot;
  5305. else
  5306. with_sysroot=no
  5307. fi
  5308. lt_sysroot=
  5309. case ${with_sysroot} in #(
  5310. yes)
  5311. if test "$GCC" = yes; then
  5312. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5313. fi
  5314. ;; #(
  5315. /*)
  5316. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5317. ;; #(
  5318. no|'')
  5319. ;; #(
  5320. *)
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5322. $as_echo "${with_sysroot}" >&6; }
  5323. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5324. ;;
  5325. esac
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5327. $as_echo "${lt_sysroot:-no}" >&6; }
  5328. # Check whether --enable-libtool-lock was given.
  5329. if test "${enable_libtool_lock+set}" = set; then :
  5330. enableval=$enable_libtool_lock;
  5331. fi
  5332. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5333. # Some flags need to be propagated to the compiler or linker for good
  5334. # libtool support.
  5335. case $host in
  5336. ia64-*-hpux*)
  5337. # Find out which ABI we are using.
  5338. echo 'int i;' > conftest.$ac_ext
  5339. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5340. (eval $ac_compile) 2>&5
  5341. ac_status=$?
  5342. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5343. test $ac_status = 0; }; then
  5344. case `/usr/bin/file conftest.$ac_objext` in
  5345. *ELF-32*)
  5346. HPUX_IA64_MODE="32"
  5347. ;;
  5348. *ELF-64*)
  5349. HPUX_IA64_MODE="64"
  5350. ;;
  5351. esac
  5352. fi
  5353. rm -rf conftest*
  5354. ;;
  5355. *-*-irix6*)
  5356. # Find out which ABI we are using.
  5357. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5358. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5359. (eval $ac_compile) 2>&5
  5360. ac_status=$?
  5361. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5362. test $ac_status = 0; }; then
  5363. if test "$lt_cv_prog_gnu_ld" = yes; then
  5364. case `/usr/bin/file conftest.$ac_objext` in
  5365. *32-bit*)
  5366. LD="${LD-ld} -melf32bsmip"
  5367. ;;
  5368. *N32*)
  5369. LD="${LD-ld} -melf32bmipn32"
  5370. ;;
  5371. *64-bit*)
  5372. LD="${LD-ld} -melf64bmip"
  5373. ;;
  5374. esac
  5375. else
  5376. case `/usr/bin/file conftest.$ac_objext` in
  5377. *32-bit*)
  5378. LD="${LD-ld} -32"
  5379. ;;
  5380. *N32*)
  5381. LD="${LD-ld} -n32"
  5382. ;;
  5383. *64-bit*)
  5384. LD="${LD-ld} -64"
  5385. ;;
  5386. esac
  5387. fi
  5388. fi
  5389. rm -rf conftest*
  5390. ;;
  5391. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5392. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5393. # Find out which ABI we are using.
  5394. echo 'int i;' > conftest.$ac_ext
  5395. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5396. (eval $ac_compile) 2>&5
  5397. ac_status=$?
  5398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5399. test $ac_status = 0; }; then
  5400. case `/usr/bin/file conftest.o` in
  5401. *32-bit*)
  5402. case $host in
  5403. x86_64-*kfreebsd*-gnu)
  5404. LD="${LD-ld} -m elf_i386_fbsd"
  5405. ;;
  5406. x86_64-*linux*)
  5407. LD="${LD-ld} -m elf_i386"
  5408. ;;
  5409. ppc64-*linux*|powerpc64-*linux*)
  5410. LD="${LD-ld} -m elf32ppclinux"
  5411. ;;
  5412. s390x-*linux*)
  5413. LD="${LD-ld} -m elf_s390"
  5414. ;;
  5415. sparc64-*linux*)
  5416. LD="${LD-ld} -m elf32_sparc"
  5417. ;;
  5418. esac
  5419. ;;
  5420. *64-bit*)
  5421. case $host in
  5422. x86_64-*kfreebsd*-gnu)
  5423. LD="${LD-ld} -m elf_x86_64_fbsd"
  5424. ;;
  5425. x86_64-*linux*)
  5426. LD="${LD-ld} -m elf_x86_64"
  5427. ;;
  5428. ppc*-*linux*|powerpc*-*linux*)
  5429. LD="${LD-ld} -m elf64ppc"
  5430. ;;
  5431. s390*-*linux*|s390*-*tpf*)
  5432. LD="${LD-ld} -m elf64_s390"
  5433. ;;
  5434. sparc*-*linux*)
  5435. LD="${LD-ld} -m elf64_sparc"
  5436. ;;
  5437. esac
  5438. ;;
  5439. esac
  5440. fi
  5441. rm -rf conftest*
  5442. ;;
  5443. *-*-sco3.2v5*)
  5444. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5445. SAVE_CFLAGS="$CFLAGS"
  5446. CFLAGS="$CFLAGS -belf"
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5448. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5449. if ${lt_cv_cc_needs_belf+:} false; then :
  5450. $as_echo_n "(cached) " >&6
  5451. else
  5452. ac_ext=c
  5453. ac_cpp='$CPP $CPPFLAGS'
  5454. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5455. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5456. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5458. /* end confdefs.h. */
  5459. int
  5460. main ()
  5461. {
  5462. ;
  5463. return 0;
  5464. }
  5465. _ACEOF
  5466. if ac_fn_c_try_link "$LINENO"; then :
  5467. lt_cv_cc_needs_belf=yes
  5468. else
  5469. lt_cv_cc_needs_belf=no
  5470. fi
  5471. rm -f core conftest.err conftest.$ac_objext \
  5472. conftest$ac_exeext conftest.$ac_ext
  5473. ac_ext=c
  5474. ac_cpp='$CPP $CPPFLAGS'
  5475. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5476. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5477. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5478. fi
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5480. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5481. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5482. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5483. CFLAGS="$SAVE_CFLAGS"
  5484. fi
  5485. ;;
  5486. sparc*-*solaris*)
  5487. # Find out which ABI we are using.
  5488. echo 'int i;' > conftest.$ac_ext
  5489. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5490. (eval $ac_compile) 2>&5
  5491. ac_status=$?
  5492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5493. test $ac_status = 0; }; then
  5494. case `/usr/bin/file conftest.o` in
  5495. *64-bit*)
  5496. case $lt_cv_prog_gnu_ld in
  5497. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5498. *)
  5499. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5500. LD="${LD-ld} -64"
  5501. fi
  5502. ;;
  5503. esac
  5504. ;;
  5505. esac
  5506. fi
  5507. rm -rf conftest*
  5508. ;;
  5509. esac
  5510. need_locks="$enable_libtool_lock"
  5511. if test -n "$ac_tool_prefix"; then
  5512. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5513. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5515. $as_echo_n "checking for $ac_word... " >&6; }
  5516. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5517. $as_echo_n "(cached) " >&6
  5518. else
  5519. if test -n "$MANIFEST_TOOL"; then
  5520. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5521. else
  5522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5523. for as_dir in $PATH
  5524. do
  5525. IFS=$as_save_IFS
  5526. test -z "$as_dir" && as_dir=.
  5527. for ac_exec_ext in '' $ac_executable_extensions; do
  5528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5529. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5531. break 2
  5532. fi
  5533. done
  5534. done
  5535. IFS=$as_save_IFS
  5536. fi
  5537. fi
  5538. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5539. if test -n "$MANIFEST_TOOL"; then
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5541. $as_echo "$MANIFEST_TOOL" >&6; }
  5542. else
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5544. $as_echo "no" >&6; }
  5545. fi
  5546. fi
  5547. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5548. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5549. # Extract the first word of "mt", so it can be a program name with args.
  5550. set dummy mt; ac_word=$2
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5552. $as_echo_n "checking for $ac_word... " >&6; }
  5553. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5554. $as_echo_n "(cached) " >&6
  5555. else
  5556. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5557. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5558. else
  5559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5560. for as_dir in $PATH
  5561. do
  5562. IFS=$as_save_IFS
  5563. test -z "$as_dir" && as_dir=.
  5564. for ac_exec_ext in '' $ac_executable_extensions; do
  5565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5566. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5568. break 2
  5569. fi
  5570. done
  5571. done
  5572. IFS=$as_save_IFS
  5573. fi
  5574. fi
  5575. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5576. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5578. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5579. else
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5581. $as_echo "no" >&6; }
  5582. fi
  5583. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5584. MANIFEST_TOOL=":"
  5585. else
  5586. case $cross_compiling:$ac_tool_warned in
  5587. yes:)
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5589. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5590. ac_tool_warned=yes ;;
  5591. esac
  5592. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5593. fi
  5594. else
  5595. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5596. fi
  5597. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5599. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5600. if ${lt_cv_path_mainfest_tool+:} false; then :
  5601. $as_echo_n "(cached) " >&6
  5602. else
  5603. lt_cv_path_mainfest_tool=no
  5604. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5605. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5606. cat conftest.err >&5
  5607. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5608. lt_cv_path_mainfest_tool=yes
  5609. fi
  5610. rm -f conftest*
  5611. fi
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5613. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5614. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5615. MANIFEST_TOOL=:
  5616. fi
  5617. case $host_os in
  5618. rhapsody* | darwin*)
  5619. if test -n "$ac_tool_prefix"; then
  5620. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5621. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5623. $as_echo_n "checking for $ac_word... " >&6; }
  5624. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5625. $as_echo_n "(cached) " >&6
  5626. else
  5627. if test -n "$DSYMUTIL"; then
  5628. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5629. else
  5630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5631. for as_dir in $PATH
  5632. do
  5633. IFS=$as_save_IFS
  5634. test -z "$as_dir" && as_dir=.
  5635. for ac_exec_ext in '' $ac_executable_extensions; do
  5636. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5637. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5639. break 2
  5640. fi
  5641. done
  5642. done
  5643. IFS=$as_save_IFS
  5644. fi
  5645. fi
  5646. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5647. if test -n "$DSYMUTIL"; then
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5649. $as_echo "$DSYMUTIL" >&6; }
  5650. else
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5652. $as_echo "no" >&6; }
  5653. fi
  5654. fi
  5655. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5656. ac_ct_DSYMUTIL=$DSYMUTIL
  5657. # Extract the first word of "dsymutil", so it can be a program name with args.
  5658. set dummy dsymutil; ac_word=$2
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5660. $as_echo_n "checking for $ac_word... " >&6; }
  5661. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5662. $as_echo_n "(cached) " >&6
  5663. else
  5664. if test -n "$ac_ct_DSYMUTIL"; then
  5665. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5666. else
  5667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5668. for as_dir in $PATH
  5669. do
  5670. IFS=$as_save_IFS
  5671. test -z "$as_dir" && as_dir=.
  5672. for ac_exec_ext in '' $ac_executable_extensions; do
  5673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5674. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5676. break 2
  5677. fi
  5678. done
  5679. done
  5680. IFS=$as_save_IFS
  5681. fi
  5682. fi
  5683. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5684. if test -n "$ac_ct_DSYMUTIL"; then
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5686. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5687. else
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5689. $as_echo "no" >&6; }
  5690. fi
  5691. if test "x$ac_ct_DSYMUTIL" = x; then
  5692. DSYMUTIL=":"
  5693. else
  5694. case $cross_compiling:$ac_tool_warned in
  5695. yes:)
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5697. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5698. ac_tool_warned=yes ;;
  5699. esac
  5700. DSYMUTIL=$ac_ct_DSYMUTIL
  5701. fi
  5702. else
  5703. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5704. fi
  5705. if test -n "$ac_tool_prefix"; then
  5706. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5707. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5709. $as_echo_n "checking for $ac_word... " >&6; }
  5710. if ${ac_cv_prog_NMEDIT+:} false; then :
  5711. $as_echo_n "(cached) " >&6
  5712. else
  5713. if test -n "$NMEDIT"; then
  5714. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5715. else
  5716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5717. for as_dir in $PATH
  5718. do
  5719. IFS=$as_save_IFS
  5720. test -z "$as_dir" && as_dir=.
  5721. for ac_exec_ext in '' $ac_executable_extensions; do
  5722. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5723. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5724. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5725. break 2
  5726. fi
  5727. done
  5728. done
  5729. IFS=$as_save_IFS
  5730. fi
  5731. fi
  5732. NMEDIT=$ac_cv_prog_NMEDIT
  5733. if test -n "$NMEDIT"; then
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5735. $as_echo "$NMEDIT" >&6; }
  5736. else
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5738. $as_echo "no" >&6; }
  5739. fi
  5740. fi
  5741. if test -z "$ac_cv_prog_NMEDIT"; then
  5742. ac_ct_NMEDIT=$NMEDIT
  5743. # Extract the first word of "nmedit", so it can be a program name with args.
  5744. set dummy nmedit; ac_word=$2
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5746. $as_echo_n "checking for $ac_word... " >&6; }
  5747. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5748. $as_echo_n "(cached) " >&6
  5749. else
  5750. if test -n "$ac_ct_NMEDIT"; then
  5751. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5752. else
  5753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5754. for as_dir in $PATH
  5755. do
  5756. IFS=$as_save_IFS
  5757. test -z "$as_dir" && as_dir=.
  5758. for ac_exec_ext in '' $ac_executable_extensions; do
  5759. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5760. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5762. break 2
  5763. fi
  5764. done
  5765. done
  5766. IFS=$as_save_IFS
  5767. fi
  5768. fi
  5769. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5770. if test -n "$ac_ct_NMEDIT"; then
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5772. $as_echo "$ac_ct_NMEDIT" >&6; }
  5773. else
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5775. $as_echo "no" >&6; }
  5776. fi
  5777. if test "x$ac_ct_NMEDIT" = x; then
  5778. NMEDIT=":"
  5779. else
  5780. case $cross_compiling:$ac_tool_warned in
  5781. yes:)
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5783. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5784. ac_tool_warned=yes ;;
  5785. esac
  5786. NMEDIT=$ac_ct_NMEDIT
  5787. fi
  5788. else
  5789. NMEDIT="$ac_cv_prog_NMEDIT"
  5790. fi
  5791. if test -n "$ac_tool_prefix"; then
  5792. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5793. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5795. $as_echo_n "checking for $ac_word... " >&6; }
  5796. if ${ac_cv_prog_LIPO+:} false; then :
  5797. $as_echo_n "(cached) " >&6
  5798. else
  5799. if test -n "$LIPO"; then
  5800. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5801. else
  5802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5803. for as_dir in $PATH
  5804. do
  5805. IFS=$as_save_IFS
  5806. test -z "$as_dir" && as_dir=.
  5807. for ac_exec_ext in '' $ac_executable_extensions; do
  5808. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5809. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5811. break 2
  5812. fi
  5813. done
  5814. done
  5815. IFS=$as_save_IFS
  5816. fi
  5817. fi
  5818. LIPO=$ac_cv_prog_LIPO
  5819. if test -n "$LIPO"; then
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5821. $as_echo "$LIPO" >&6; }
  5822. else
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5824. $as_echo "no" >&6; }
  5825. fi
  5826. fi
  5827. if test -z "$ac_cv_prog_LIPO"; then
  5828. ac_ct_LIPO=$LIPO
  5829. # Extract the first word of "lipo", so it can be a program name with args.
  5830. set dummy lipo; ac_word=$2
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5832. $as_echo_n "checking for $ac_word... " >&6; }
  5833. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5834. $as_echo_n "(cached) " >&6
  5835. else
  5836. if test -n "$ac_ct_LIPO"; then
  5837. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5838. else
  5839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5840. for as_dir in $PATH
  5841. do
  5842. IFS=$as_save_IFS
  5843. test -z "$as_dir" && as_dir=.
  5844. for ac_exec_ext in '' $ac_executable_extensions; do
  5845. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5846. ac_cv_prog_ac_ct_LIPO="lipo"
  5847. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5848. break 2
  5849. fi
  5850. done
  5851. done
  5852. IFS=$as_save_IFS
  5853. fi
  5854. fi
  5855. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5856. if test -n "$ac_ct_LIPO"; then
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5858. $as_echo "$ac_ct_LIPO" >&6; }
  5859. else
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5861. $as_echo "no" >&6; }
  5862. fi
  5863. if test "x$ac_ct_LIPO" = x; then
  5864. LIPO=":"
  5865. else
  5866. case $cross_compiling:$ac_tool_warned in
  5867. yes:)
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5869. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5870. ac_tool_warned=yes ;;
  5871. esac
  5872. LIPO=$ac_ct_LIPO
  5873. fi
  5874. else
  5875. LIPO="$ac_cv_prog_LIPO"
  5876. fi
  5877. if test -n "$ac_tool_prefix"; then
  5878. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5879. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5881. $as_echo_n "checking for $ac_word... " >&6; }
  5882. if ${ac_cv_prog_OTOOL+:} false; then :
  5883. $as_echo_n "(cached) " >&6
  5884. else
  5885. if test -n "$OTOOL"; then
  5886. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5887. else
  5888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5889. for as_dir in $PATH
  5890. do
  5891. IFS=$as_save_IFS
  5892. test -z "$as_dir" && as_dir=.
  5893. for ac_exec_ext in '' $ac_executable_extensions; do
  5894. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5895. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5897. break 2
  5898. fi
  5899. done
  5900. done
  5901. IFS=$as_save_IFS
  5902. fi
  5903. fi
  5904. OTOOL=$ac_cv_prog_OTOOL
  5905. if test -n "$OTOOL"; then
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5907. $as_echo "$OTOOL" >&6; }
  5908. else
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5910. $as_echo "no" >&6; }
  5911. fi
  5912. fi
  5913. if test -z "$ac_cv_prog_OTOOL"; then
  5914. ac_ct_OTOOL=$OTOOL
  5915. # Extract the first word of "otool", so it can be a program name with args.
  5916. set dummy otool; ac_word=$2
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5918. $as_echo_n "checking for $ac_word... " >&6; }
  5919. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5920. $as_echo_n "(cached) " >&6
  5921. else
  5922. if test -n "$ac_ct_OTOOL"; then
  5923. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5924. else
  5925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5926. for as_dir in $PATH
  5927. do
  5928. IFS=$as_save_IFS
  5929. test -z "$as_dir" && as_dir=.
  5930. for ac_exec_ext in '' $ac_executable_extensions; do
  5931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5932. ac_cv_prog_ac_ct_OTOOL="otool"
  5933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5934. break 2
  5935. fi
  5936. done
  5937. done
  5938. IFS=$as_save_IFS
  5939. fi
  5940. fi
  5941. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5942. if test -n "$ac_ct_OTOOL"; then
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5944. $as_echo "$ac_ct_OTOOL" >&6; }
  5945. else
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5947. $as_echo "no" >&6; }
  5948. fi
  5949. if test "x$ac_ct_OTOOL" = x; then
  5950. OTOOL=":"
  5951. else
  5952. case $cross_compiling:$ac_tool_warned in
  5953. yes:)
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5955. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5956. ac_tool_warned=yes ;;
  5957. esac
  5958. OTOOL=$ac_ct_OTOOL
  5959. fi
  5960. else
  5961. OTOOL="$ac_cv_prog_OTOOL"
  5962. fi
  5963. if test -n "$ac_tool_prefix"; then
  5964. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5965. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5967. $as_echo_n "checking for $ac_word... " >&6; }
  5968. if ${ac_cv_prog_OTOOL64+:} false; then :
  5969. $as_echo_n "(cached) " >&6
  5970. else
  5971. if test -n "$OTOOL64"; then
  5972. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5973. else
  5974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5975. for as_dir in $PATH
  5976. do
  5977. IFS=$as_save_IFS
  5978. test -z "$as_dir" && as_dir=.
  5979. for ac_exec_ext in '' $ac_executable_extensions; do
  5980. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5981. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5982. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5983. break 2
  5984. fi
  5985. done
  5986. done
  5987. IFS=$as_save_IFS
  5988. fi
  5989. fi
  5990. OTOOL64=$ac_cv_prog_OTOOL64
  5991. if test -n "$OTOOL64"; then
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5993. $as_echo "$OTOOL64" >&6; }
  5994. else
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5996. $as_echo "no" >&6; }
  5997. fi
  5998. fi
  5999. if test -z "$ac_cv_prog_OTOOL64"; then
  6000. ac_ct_OTOOL64=$OTOOL64
  6001. # Extract the first word of "otool64", so it can be a program name with args.
  6002. set dummy otool64; ac_word=$2
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6004. $as_echo_n "checking for $ac_word... " >&6; }
  6005. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6006. $as_echo_n "(cached) " >&6
  6007. else
  6008. if test -n "$ac_ct_OTOOL64"; then
  6009. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6010. else
  6011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6012. for as_dir in $PATH
  6013. do
  6014. IFS=$as_save_IFS
  6015. test -z "$as_dir" && as_dir=.
  6016. for ac_exec_ext in '' $ac_executable_extensions; do
  6017. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6018. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6019. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6020. break 2
  6021. fi
  6022. done
  6023. done
  6024. IFS=$as_save_IFS
  6025. fi
  6026. fi
  6027. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6028. if test -n "$ac_ct_OTOOL64"; then
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6030. $as_echo "$ac_ct_OTOOL64" >&6; }
  6031. else
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6033. $as_echo "no" >&6; }
  6034. fi
  6035. if test "x$ac_ct_OTOOL64" = x; then
  6036. OTOOL64=":"
  6037. else
  6038. case $cross_compiling:$ac_tool_warned in
  6039. yes:)
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6041. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6042. ac_tool_warned=yes ;;
  6043. esac
  6044. OTOOL64=$ac_ct_OTOOL64
  6045. fi
  6046. else
  6047. OTOOL64="$ac_cv_prog_OTOOL64"
  6048. fi
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6050. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6051. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6052. $as_echo_n "(cached) " >&6
  6053. else
  6054. lt_cv_apple_cc_single_mod=no
  6055. if test -z "${LT_MULTI_MODULE}"; then
  6056. # By default we will add the -single_module flag. You can override
  6057. # by either setting the environment variable LT_MULTI_MODULE
  6058. # non-empty at configure time, or by adding -multi_module to the
  6059. # link flags.
  6060. rm -rf libconftest.dylib*
  6061. echo "int foo(void){return 1;}" > conftest.c
  6062. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6063. -dynamiclib -Wl,-single_module conftest.c" >&5
  6064. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6065. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6066. _lt_result=$?
  6067. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6068. lt_cv_apple_cc_single_mod=yes
  6069. else
  6070. cat conftest.err >&5
  6071. fi
  6072. rm -rf libconftest.dylib*
  6073. rm -f conftest.*
  6074. fi
  6075. fi
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6077. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6079. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6080. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6081. $as_echo_n "(cached) " >&6
  6082. else
  6083. lt_cv_ld_exported_symbols_list=no
  6084. save_LDFLAGS=$LDFLAGS
  6085. echo "_main" > conftest.sym
  6086. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6088. /* end confdefs.h. */
  6089. int
  6090. main ()
  6091. {
  6092. ;
  6093. return 0;
  6094. }
  6095. _ACEOF
  6096. if ac_fn_c_try_link "$LINENO"; then :
  6097. lt_cv_ld_exported_symbols_list=yes
  6098. else
  6099. lt_cv_ld_exported_symbols_list=no
  6100. fi
  6101. rm -f core conftest.err conftest.$ac_objext \
  6102. conftest$ac_exeext conftest.$ac_ext
  6103. LDFLAGS="$save_LDFLAGS"
  6104. fi
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6106. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6108. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6109. if ${lt_cv_ld_force_load+:} false; then :
  6110. $as_echo_n "(cached) " >&6
  6111. else
  6112. lt_cv_ld_force_load=no
  6113. cat > conftest.c << _LT_EOF
  6114. int forced_loaded() { return 2;}
  6115. _LT_EOF
  6116. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6117. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6118. echo "$AR cru libconftest.a conftest.o" >&5
  6119. $AR cru libconftest.a conftest.o 2>&5
  6120. echo "$RANLIB libconftest.a" >&5
  6121. $RANLIB libconftest.a 2>&5
  6122. cat > conftest.c << _LT_EOF
  6123. int main() { return 0;}
  6124. _LT_EOF
  6125. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6126. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6127. _lt_result=$?
  6128. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6129. lt_cv_ld_force_load=yes
  6130. else
  6131. cat conftest.err >&5
  6132. fi
  6133. rm -f conftest.err libconftest.a conftest conftest.c
  6134. rm -rf conftest.dSYM
  6135. fi
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6137. $as_echo "$lt_cv_ld_force_load" >&6; }
  6138. case $host_os in
  6139. rhapsody* | darwin1.[012])
  6140. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6141. darwin1.*)
  6142. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6143. darwin*) # darwin 5.x on
  6144. # if running on 10.5 or later, the deployment target defaults
  6145. # to the OS version, if on x86, and 10.4, the deployment
  6146. # target defaults to 10.4. Don't you love it?
  6147. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6148. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6149. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6150. 10.[012]*)
  6151. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6152. 10.*)
  6153. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6154. esac
  6155. ;;
  6156. esac
  6157. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6158. _lt_dar_single_mod='$single_module'
  6159. fi
  6160. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6161. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6162. else
  6163. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6164. fi
  6165. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6166. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6167. else
  6168. _lt_dsymutil=
  6169. fi
  6170. ;;
  6171. esac
  6172. ac_ext=c
  6173. ac_cpp='$CPP $CPPFLAGS'
  6174. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6175. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6176. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6178. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6179. # On Suns, sometimes $CPP names a directory.
  6180. if test -n "$CPP" && test -d "$CPP"; then
  6181. CPP=
  6182. fi
  6183. if test -z "$CPP"; then
  6184. if ${ac_cv_prog_CPP+:} false; then :
  6185. $as_echo_n "(cached) " >&6
  6186. else
  6187. # Double quotes because CPP needs to be expanded
  6188. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6189. do
  6190. ac_preproc_ok=false
  6191. for ac_c_preproc_warn_flag in '' yes
  6192. do
  6193. # Use a header file that comes with gcc, so configuring glibc
  6194. # with a fresh cross-compiler works.
  6195. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6196. # <limits.h> exists even on freestanding compilers.
  6197. # On the NeXT, cc -E runs the code through the compiler's parser,
  6198. # not just through cpp. "Syntax error" is here to catch this case.
  6199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6200. /* end confdefs.h. */
  6201. #ifdef __STDC__
  6202. # include <limits.h>
  6203. #else
  6204. # include <assert.h>
  6205. #endif
  6206. Syntax error
  6207. _ACEOF
  6208. if ac_fn_c_try_cpp "$LINENO"; then :
  6209. else
  6210. # Broken: fails on valid input.
  6211. continue
  6212. fi
  6213. rm -f conftest.err conftest.i conftest.$ac_ext
  6214. # OK, works on sane cases. Now check whether nonexistent headers
  6215. # can be detected and how.
  6216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6217. /* end confdefs.h. */
  6218. #include <ac_nonexistent.h>
  6219. _ACEOF
  6220. if ac_fn_c_try_cpp "$LINENO"; then :
  6221. # Broken: success on invalid input.
  6222. continue
  6223. else
  6224. # Passes both tests.
  6225. ac_preproc_ok=:
  6226. break
  6227. fi
  6228. rm -f conftest.err conftest.i conftest.$ac_ext
  6229. done
  6230. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6231. rm -f conftest.i conftest.err conftest.$ac_ext
  6232. if $ac_preproc_ok; then :
  6233. break
  6234. fi
  6235. done
  6236. ac_cv_prog_CPP=$CPP
  6237. fi
  6238. CPP=$ac_cv_prog_CPP
  6239. else
  6240. ac_cv_prog_CPP=$CPP
  6241. fi
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6243. $as_echo "$CPP" >&6; }
  6244. ac_preproc_ok=false
  6245. for ac_c_preproc_warn_flag in '' yes
  6246. do
  6247. # Use a header file that comes with gcc, so configuring glibc
  6248. # with a fresh cross-compiler works.
  6249. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6250. # <limits.h> exists even on freestanding compilers.
  6251. # On the NeXT, cc -E runs the code through the compiler's parser,
  6252. # not just through cpp. "Syntax error" is here to catch this case.
  6253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6254. /* end confdefs.h. */
  6255. #ifdef __STDC__
  6256. # include <limits.h>
  6257. #else
  6258. # include <assert.h>
  6259. #endif
  6260. Syntax error
  6261. _ACEOF
  6262. if ac_fn_c_try_cpp "$LINENO"; then :
  6263. else
  6264. # Broken: fails on valid input.
  6265. continue
  6266. fi
  6267. rm -f conftest.err conftest.i conftest.$ac_ext
  6268. # OK, works on sane cases. Now check whether nonexistent headers
  6269. # can be detected and how.
  6270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6271. /* end confdefs.h. */
  6272. #include <ac_nonexistent.h>
  6273. _ACEOF
  6274. if ac_fn_c_try_cpp "$LINENO"; then :
  6275. # Broken: success on invalid input.
  6276. continue
  6277. else
  6278. # Passes both tests.
  6279. ac_preproc_ok=:
  6280. break
  6281. fi
  6282. rm -f conftest.err conftest.i conftest.$ac_ext
  6283. done
  6284. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6285. rm -f conftest.i conftest.err conftest.$ac_ext
  6286. if $ac_preproc_ok; then :
  6287. else
  6288. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6289. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6290. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6291. See \`config.log' for more details" "$LINENO" 5; }
  6292. fi
  6293. ac_ext=c
  6294. ac_cpp='$CPP $CPPFLAGS'
  6295. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6296. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6297. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6299. $as_echo_n "checking for ANSI C header files... " >&6; }
  6300. if ${ac_cv_header_stdc+:} false; then :
  6301. $as_echo_n "(cached) " >&6
  6302. else
  6303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6304. /* end confdefs.h. */
  6305. #include <stdlib.h>
  6306. #include <stdarg.h>
  6307. #include <string.h>
  6308. #include <float.h>
  6309. int
  6310. main ()
  6311. {
  6312. ;
  6313. return 0;
  6314. }
  6315. _ACEOF
  6316. if ac_fn_c_try_compile "$LINENO"; then :
  6317. ac_cv_header_stdc=yes
  6318. else
  6319. ac_cv_header_stdc=no
  6320. fi
  6321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6322. if test $ac_cv_header_stdc = yes; then
  6323. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6325. /* end confdefs.h. */
  6326. #include <string.h>
  6327. _ACEOF
  6328. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6329. $EGREP "memchr" >/dev/null 2>&1; then :
  6330. else
  6331. ac_cv_header_stdc=no
  6332. fi
  6333. rm -f conftest*
  6334. fi
  6335. if test $ac_cv_header_stdc = yes; then
  6336. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6338. /* end confdefs.h. */
  6339. #include <stdlib.h>
  6340. _ACEOF
  6341. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6342. $EGREP "free" >/dev/null 2>&1; then :
  6343. else
  6344. ac_cv_header_stdc=no
  6345. fi
  6346. rm -f conftest*
  6347. fi
  6348. if test $ac_cv_header_stdc = yes; then
  6349. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6350. if test "$cross_compiling" = yes; then :
  6351. :
  6352. else
  6353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6354. /* end confdefs.h. */
  6355. #include <ctype.h>
  6356. #include <stdlib.h>
  6357. #if ((' ' & 0x0FF) == 0x020)
  6358. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6359. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6360. #else
  6361. # define ISLOWER(c) \
  6362. (('a' <= (c) && (c) <= 'i') \
  6363. || ('j' <= (c) && (c) <= 'r') \
  6364. || ('s' <= (c) && (c) <= 'z'))
  6365. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6366. #endif
  6367. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6368. int
  6369. main ()
  6370. {
  6371. int i;
  6372. for (i = 0; i < 256; i++)
  6373. if (XOR (islower (i), ISLOWER (i))
  6374. || toupper (i) != TOUPPER (i))
  6375. return 2;
  6376. return 0;
  6377. }
  6378. _ACEOF
  6379. if ac_fn_c_try_run "$LINENO"; then :
  6380. else
  6381. ac_cv_header_stdc=no
  6382. fi
  6383. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6384. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6385. fi
  6386. fi
  6387. fi
  6388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6389. $as_echo "$ac_cv_header_stdc" >&6; }
  6390. if test $ac_cv_header_stdc = yes; then
  6391. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6392. fi
  6393. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6394. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6395. inttypes.h stdint.h unistd.h
  6396. do :
  6397. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6398. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6399. "
  6400. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6401. cat >>confdefs.h <<_ACEOF
  6402. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6403. _ACEOF
  6404. fi
  6405. done
  6406. for ac_header in dlfcn.h
  6407. do :
  6408. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6409. "
  6410. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6411. cat >>confdefs.h <<_ACEOF
  6412. #define HAVE_DLFCN_H 1
  6413. _ACEOF
  6414. fi
  6415. done
  6416. # Set options
  6417. enable_dlopen=no
  6418. enable_win32_dll=no
  6419. # Check whether --enable-shared was given.
  6420. if test "${enable_shared+set}" = set; then :
  6421. enableval=$enable_shared; p=${PACKAGE-default}
  6422. case $enableval in
  6423. yes) enable_shared=yes ;;
  6424. no) enable_shared=no ;;
  6425. *)
  6426. enable_shared=no
  6427. # Look at the argument we got. We use all the common list separators.
  6428. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6429. for pkg in $enableval; do
  6430. IFS="$lt_save_ifs"
  6431. if test "X$pkg" = "X$p"; then
  6432. enable_shared=yes
  6433. fi
  6434. done
  6435. IFS="$lt_save_ifs"
  6436. ;;
  6437. esac
  6438. else
  6439. enable_shared=yes
  6440. fi
  6441. # Check whether --enable-static was given.
  6442. if test "${enable_static+set}" = set; then :
  6443. enableval=$enable_static; p=${PACKAGE-default}
  6444. case $enableval in
  6445. yes) enable_static=yes ;;
  6446. no) enable_static=no ;;
  6447. *)
  6448. enable_static=no
  6449. # Look at the argument we got. We use all the common list separators.
  6450. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6451. for pkg in $enableval; do
  6452. IFS="$lt_save_ifs"
  6453. if test "X$pkg" = "X$p"; then
  6454. enable_static=yes
  6455. fi
  6456. done
  6457. IFS="$lt_save_ifs"
  6458. ;;
  6459. esac
  6460. else
  6461. enable_static=yes
  6462. fi
  6463. # Check whether --with-pic was given.
  6464. if test "${with_pic+set}" = set; then :
  6465. withval=$with_pic; pic_mode="$withval"
  6466. else
  6467. pic_mode=default
  6468. fi
  6469. test -z "$pic_mode" && pic_mode=default
  6470. # Check whether --enable-fast-install was given.
  6471. if test "${enable_fast_install+set}" = set; then :
  6472. enableval=$enable_fast_install; p=${PACKAGE-default}
  6473. case $enableval in
  6474. yes) enable_fast_install=yes ;;
  6475. no) enable_fast_install=no ;;
  6476. *)
  6477. enable_fast_install=no
  6478. # Look at the argument we got. We use all the common list separators.
  6479. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6480. for pkg in $enableval; do
  6481. IFS="$lt_save_ifs"
  6482. if test "X$pkg" = "X$p"; then
  6483. enable_fast_install=yes
  6484. fi
  6485. done
  6486. IFS="$lt_save_ifs"
  6487. ;;
  6488. esac
  6489. else
  6490. enable_fast_install=yes
  6491. fi
  6492. # This can be used to rebuild libtool when needed
  6493. LIBTOOL_DEPS="$ltmain"
  6494. # Always use our own libtool.
  6495. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6496. test -z "$LN_S" && LN_S="ln -s"
  6497. if test -n "${ZSH_VERSION+set}" ; then
  6498. setopt NO_GLOB_SUBST
  6499. fi
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6501. $as_echo_n "checking for objdir... " >&6; }
  6502. if ${lt_cv_objdir+:} false; then :
  6503. $as_echo_n "(cached) " >&6
  6504. else
  6505. rm -f .libs 2>/dev/null
  6506. mkdir .libs 2>/dev/null
  6507. if test -d .libs; then
  6508. lt_cv_objdir=.libs
  6509. else
  6510. # MS-DOS does not allow filenames that begin with a dot.
  6511. lt_cv_objdir=_libs
  6512. fi
  6513. rmdir .libs 2>/dev/null
  6514. fi
  6515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6516. $as_echo "$lt_cv_objdir" >&6; }
  6517. objdir=$lt_cv_objdir
  6518. cat >>confdefs.h <<_ACEOF
  6519. #define LT_OBJDIR "$lt_cv_objdir/"
  6520. _ACEOF
  6521. case $host_os in
  6522. aix3*)
  6523. # AIX sometimes has problems with the GCC collect2 program. For some
  6524. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6525. # vanish in a puff of smoke.
  6526. if test "X${COLLECT_NAMES+set}" != Xset; then
  6527. COLLECT_NAMES=
  6528. export COLLECT_NAMES
  6529. fi
  6530. ;;
  6531. esac
  6532. # Global variables:
  6533. ofile=libtool
  6534. can_build_shared=yes
  6535. # All known linkers require a `.a' archive for static linking (except MSVC,
  6536. # which needs '.lib').
  6537. libext=a
  6538. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6539. old_CC="$CC"
  6540. old_CFLAGS="$CFLAGS"
  6541. # Set sane defaults for various variables
  6542. test -z "$CC" && CC=cc
  6543. test -z "$LTCC" && LTCC=$CC
  6544. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6545. test -z "$LD" && LD=ld
  6546. test -z "$ac_objext" && ac_objext=o
  6547. for cc_temp in $compiler""; do
  6548. case $cc_temp in
  6549. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6550. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6551. \-*) ;;
  6552. *) break;;
  6553. esac
  6554. done
  6555. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6556. # Only perform the check for file, if the check method requires it
  6557. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6558. case $deplibs_check_method in
  6559. file_magic*)
  6560. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6562. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6563. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6564. $as_echo_n "(cached) " >&6
  6565. else
  6566. case $MAGIC_CMD in
  6567. [\\/*] | ?:[\\/]*)
  6568. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6569. ;;
  6570. *)
  6571. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6572. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6573. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6574. for ac_dir in $ac_dummy; do
  6575. IFS="$lt_save_ifs"
  6576. test -z "$ac_dir" && ac_dir=.
  6577. if test -f $ac_dir/${ac_tool_prefix}file; then
  6578. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6579. if test -n "$file_magic_test_file"; then
  6580. case $deplibs_check_method in
  6581. "file_magic "*)
  6582. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6583. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6584. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6585. $EGREP "$file_magic_regex" > /dev/null; then
  6586. :
  6587. else
  6588. cat <<_LT_EOF 1>&2
  6589. *** Warning: the command libtool uses to detect shared libraries,
  6590. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6591. *** The result is that libtool may fail to recognize shared libraries
  6592. *** as such. This will affect the creation of libtool libraries that
  6593. *** depend on shared libraries, but programs linked with such libtool
  6594. *** libraries will work regardless of this problem. Nevertheless, you
  6595. *** may want to report the problem to your system manager and/or to
  6596. *** bug-libtool@gnu.org
  6597. _LT_EOF
  6598. fi ;;
  6599. esac
  6600. fi
  6601. break
  6602. fi
  6603. done
  6604. IFS="$lt_save_ifs"
  6605. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6606. ;;
  6607. esac
  6608. fi
  6609. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6610. if test -n "$MAGIC_CMD"; then
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6612. $as_echo "$MAGIC_CMD" >&6; }
  6613. else
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6615. $as_echo "no" >&6; }
  6616. fi
  6617. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6618. if test -n "$ac_tool_prefix"; then
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6620. $as_echo_n "checking for file... " >&6; }
  6621. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6622. $as_echo_n "(cached) " >&6
  6623. else
  6624. case $MAGIC_CMD in
  6625. [\\/*] | ?:[\\/]*)
  6626. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6627. ;;
  6628. *)
  6629. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6630. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6631. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6632. for ac_dir in $ac_dummy; do
  6633. IFS="$lt_save_ifs"
  6634. test -z "$ac_dir" && ac_dir=.
  6635. if test -f $ac_dir/file; then
  6636. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6637. if test -n "$file_magic_test_file"; then
  6638. case $deplibs_check_method in
  6639. "file_magic "*)
  6640. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6641. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6642. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6643. $EGREP "$file_magic_regex" > /dev/null; then
  6644. :
  6645. else
  6646. cat <<_LT_EOF 1>&2
  6647. *** Warning: the command libtool uses to detect shared libraries,
  6648. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6649. *** The result is that libtool may fail to recognize shared libraries
  6650. *** as such. This will affect the creation of libtool libraries that
  6651. *** depend on shared libraries, but programs linked with such libtool
  6652. *** libraries will work regardless of this problem. Nevertheless, you
  6653. *** may want to report the problem to your system manager and/or to
  6654. *** bug-libtool@gnu.org
  6655. _LT_EOF
  6656. fi ;;
  6657. esac
  6658. fi
  6659. break
  6660. fi
  6661. done
  6662. IFS="$lt_save_ifs"
  6663. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6664. ;;
  6665. esac
  6666. fi
  6667. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6668. if test -n "$MAGIC_CMD"; then
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6670. $as_echo "$MAGIC_CMD" >&6; }
  6671. else
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6673. $as_echo "no" >&6; }
  6674. fi
  6675. else
  6676. MAGIC_CMD=:
  6677. fi
  6678. fi
  6679. fi
  6680. ;;
  6681. esac
  6682. # Use C for the default configuration in the libtool script
  6683. lt_save_CC="$CC"
  6684. ac_ext=c
  6685. ac_cpp='$CPP $CPPFLAGS'
  6686. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6687. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6688. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6689. # Source file extension for C test sources.
  6690. ac_ext=c
  6691. # Object file extension for compiled C test sources.
  6692. objext=o
  6693. objext=$objext
  6694. # Code to be used in simple compile tests
  6695. lt_simple_compile_test_code="int some_variable = 0;"
  6696. # Code to be used in simple link tests
  6697. lt_simple_link_test_code='int main(){return(0);}'
  6698. # If no C compiler was specified, use CC.
  6699. LTCC=${LTCC-"$CC"}
  6700. # If no C compiler flags were specified, use CFLAGS.
  6701. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6702. # Allow CC to be a program name with arguments.
  6703. compiler=$CC
  6704. # Save the default compiler, since it gets overwritten when the other
  6705. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6706. compiler_DEFAULT=$CC
  6707. # save warnings/boilerplate of simple test code
  6708. ac_outfile=conftest.$ac_objext
  6709. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6710. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6711. _lt_compiler_boilerplate=`cat conftest.err`
  6712. $RM conftest*
  6713. ac_outfile=conftest.$ac_objext
  6714. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6715. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6716. _lt_linker_boilerplate=`cat conftest.err`
  6717. $RM -r conftest*
  6718. ## CAVEAT EMPTOR:
  6719. ## There is no encapsulation within the following macros, do not change
  6720. ## the running order or otherwise move them around unless you know exactly
  6721. ## what you are doing...
  6722. if test -n "$compiler"; then
  6723. lt_prog_compiler_no_builtin_flag=
  6724. if test "$GCC" = yes; then
  6725. case $cc_basename in
  6726. nvcc*)
  6727. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6728. *)
  6729. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6730. esac
  6731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6732. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6733. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6734. $as_echo_n "(cached) " >&6
  6735. else
  6736. lt_cv_prog_compiler_rtti_exceptions=no
  6737. ac_outfile=conftest.$ac_objext
  6738. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6739. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6740. # Insert the option either (1) after the last *FLAGS variable, or
  6741. # (2) before a word containing "conftest.", or (3) at the end.
  6742. # Note that $ac_compile itself does not contain backslashes and begins
  6743. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6744. # The option is referenced via a variable to avoid confusing sed.
  6745. lt_compile=`echo "$ac_compile" | $SED \
  6746. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6747. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6748. -e 's:$: $lt_compiler_flag:'`
  6749. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6750. (eval "$lt_compile" 2>conftest.err)
  6751. ac_status=$?
  6752. cat conftest.err >&5
  6753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6754. if (exit $ac_status) && test -s "$ac_outfile"; then
  6755. # The compiler can only warn and ignore the option if not recognized
  6756. # So say no if there are warnings other than the usual output.
  6757. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6758. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6759. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6760. lt_cv_prog_compiler_rtti_exceptions=yes
  6761. fi
  6762. fi
  6763. $RM conftest*
  6764. fi
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6766. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6767. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6768. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6769. else
  6770. :
  6771. fi
  6772. fi
  6773. lt_prog_compiler_wl=
  6774. lt_prog_compiler_pic=
  6775. lt_prog_compiler_static=
  6776. if test "$GCC" = yes; then
  6777. lt_prog_compiler_wl='-Wl,'
  6778. lt_prog_compiler_static='-static'
  6779. case $host_os in
  6780. aix*)
  6781. # All AIX code is PIC.
  6782. if test "$host_cpu" = ia64; then
  6783. # AIX 5 now supports IA64 processor
  6784. lt_prog_compiler_static='-Bstatic'
  6785. fi
  6786. ;;
  6787. amigaos*)
  6788. case $host_cpu in
  6789. powerpc)
  6790. # see comment about AmigaOS4 .so support
  6791. lt_prog_compiler_pic='-fPIC'
  6792. ;;
  6793. m68k)
  6794. # FIXME: we need at least 68020 code to build shared libraries, but
  6795. # adding the `-m68020' flag to GCC prevents building anything better,
  6796. # like `-m68040'.
  6797. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6798. ;;
  6799. esac
  6800. ;;
  6801. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6802. # PIC is the default for these OSes.
  6803. ;;
  6804. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6805. # This hack is so that the source file can tell whether it is being
  6806. # built for inclusion in a dll (and should export symbols for example).
  6807. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6808. # (--disable-auto-import) libraries
  6809. lt_prog_compiler_pic='-DDLL_EXPORT'
  6810. ;;
  6811. darwin* | rhapsody*)
  6812. # PIC is the default on this platform
  6813. # Common symbols not allowed in MH_DYLIB files
  6814. lt_prog_compiler_pic='-fno-common'
  6815. ;;
  6816. haiku*)
  6817. # PIC is the default for Haiku.
  6818. # The "-static" flag exists, but is broken.
  6819. lt_prog_compiler_static=
  6820. ;;
  6821. hpux*)
  6822. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6823. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6824. # sets the default TLS model and affects inlining.
  6825. case $host_cpu in
  6826. hppa*64*)
  6827. # +Z the default
  6828. ;;
  6829. *)
  6830. lt_prog_compiler_pic='-fPIC'
  6831. ;;
  6832. esac
  6833. ;;
  6834. interix[3-9]*)
  6835. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6836. # Instead, we relocate shared libraries at runtime.
  6837. ;;
  6838. msdosdjgpp*)
  6839. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6840. # on systems that don't support them.
  6841. lt_prog_compiler_can_build_shared=no
  6842. enable_shared=no
  6843. ;;
  6844. *nto* | *qnx*)
  6845. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6846. # it will coredump.
  6847. lt_prog_compiler_pic='-fPIC -shared'
  6848. ;;
  6849. sysv4*MP*)
  6850. if test -d /usr/nec; then
  6851. lt_prog_compiler_pic=-Kconform_pic
  6852. fi
  6853. ;;
  6854. *)
  6855. lt_prog_compiler_pic='-fPIC'
  6856. ;;
  6857. esac
  6858. case $cc_basename in
  6859. nvcc*) # Cuda Compiler Driver 2.2
  6860. lt_prog_compiler_wl='-Xlinker '
  6861. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6862. ;;
  6863. esac
  6864. else
  6865. # PORTME Check for flag to pass linker flags through the system compiler.
  6866. case $host_os in
  6867. aix*)
  6868. lt_prog_compiler_wl='-Wl,'
  6869. if test "$host_cpu" = ia64; then
  6870. # AIX 5 now supports IA64 processor
  6871. lt_prog_compiler_static='-Bstatic'
  6872. else
  6873. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6874. fi
  6875. ;;
  6876. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6877. # This hack is so that the source file can tell whether it is being
  6878. # built for inclusion in a dll (and should export symbols for example).
  6879. lt_prog_compiler_pic='-DDLL_EXPORT'
  6880. ;;
  6881. hpux9* | hpux10* | hpux11*)
  6882. lt_prog_compiler_wl='-Wl,'
  6883. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6884. # not for PA HP-UX.
  6885. case $host_cpu in
  6886. hppa*64*|ia64*)
  6887. # +Z the default
  6888. ;;
  6889. *)
  6890. lt_prog_compiler_pic='+Z'
  6891. ;;
  6892. esac
  6893. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6894. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6895. ;;
  6896. irix5* | irix6* | nonstopux*)
  6897. lt_prog_compiler_wl='-Wl,'
  6898. # PIC (with -KPIC) is the default.
  6899. lt_prog_compiler_static='-non_shared'
  6900. ;;
  6901. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6902. case $cc_basename in
  6903. # old Intel for x86_64 which still supported -KPIC.
  6904. ecc*)
  6905. lt_prog_compiler_wl='-Wl,'
  6906. lt_prog_compiler_pic='-KPIC'
  6907. lt_prog_compiler_static='-static'
  6908. ;;
  6909. # icc used to be incompatible with GCC.
  6910. # ICC 10 doesn't accept -KPIC any more.
  6911. icc* | ifort*)
  6912. lt_prog_compiler_wl='-Wl,'
  6913. lt_prog_compiler_pic='-fPIC'
  6914. lt_prog_compiler_static='-static'
  6915. ;;
  6916. # Lahey Fortran 8.1.
  6917. lf95*)
  6918. lt_prog_compiler_wl='-Wl,'
  6919. lt_prog_compiler_pic='--shared'
  6920. lt_prog_compiler_static='--static'
  6921. ;;
  6922. nagfor*)
  6923. # NAG Fortran compiler
  6924. lt_prog_compiler_wl='-Wl,-Wl,,'
  6925. lt_prog_compiler_pic='-PIC'
  6926. lt_prog_compiler_static='-Bstatic'
  6927. ;;
  6928. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6929. # Portland Group compilers (*not* the Pentium gcc compiler,
  6930. # which looks to be a dead project)
  6931. lt_prog_compiler_wl='-Wl,'
  6932. lt_prog_compiler_pic='-fpic'
  6933. lt_prog_compiler_static='-Bstatic'
  6934. ;;
  6935. ccc*)
  6936. lt_prog_compiler_wl='-Wl,'
  6937. # All Alpha code is PIC.
  6938. lt_prog_compiler_static='-non_shared'
  6939. ;;
  6940. xl* | bgxl* | bgf* | mpixl*)
  6941. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6942. lt_prog_compiler_wl='-Wl,'
  6943. lt_prog_compiler_pic='-qpic'
  6944. lt_prog_compiler_static='-qstaticlink'
  6945. ;;
  6946. *)
  6947. case `$CC -V 2>&1 | sed 5q` in
  6948. *Sun\ F* | *Sun*Fortran*)
  6949. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6950. lt_prog_compiler_pic='-KPIC'
  6951. lt_prog_compiler_static='-Bstatic'
  6952. lt_prog_compiler_wl=''
  6953. ;;
  6954. *Sun\ C*)
  6955. # Sun C 5.9
  6956. lt_prog_compiler_pic='-KPIC'
  6957. lt_prog_compiler_static='-Bstatic'
  6958. lt_prog_compiler_wl='-Wl,'
  6959. ;;
  6960. esac
  6961. ;;
  6962. esac
  6963. ;;
  6964. newsos6)
  6965. lt_prog_compiler_pic='-KPIC'
  6966. lt_prog_compiler_static='-Bstatic'
  6967. ;;
  6968. *nto* | *qnx*)
  6969. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6970. # it will coredump.
  6971. lt_prog_compiler_pic='-fPIC -shared'
  6972. ;;
  6973. osf3* | osf4* | osf5*)
  6974. lt_prog_compiler_wl='-Wl,'
  6975. # All OSF/1 code is PIC.
  6976. lt_prog_compiler_static='-non_shared'
  6977. ;;
  6978. rdos*)
  6979. lt_prog_compiler_static='-non_shared'
  6980. ;;
  6981. solaris*)
  6982. lt_prog_compiler_pic='-KPIC'
  6983. lt_prog_compiler_static='-Bstatic'
  6984. case $cc_basename in
  6985. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  6986. lt_prog_compiler_wl='-Qoption ld ';;
  6987. *)
  6988. lt_prog_compiler_wl='-Wl,';;
  6989. esac
  6990. ;;
  6991. sunos4*)
  6992. lt_prog_compiler_wl='-Qoption ld '
  6993. lt_prog_compiler_pic='-PIC'
  6994. lt_prog_compiler_static='-Bstatic'
  6995. ;;
  6996. sysv4 | sysv4.2uw2* | sysv4.3*)
  6997. lt_prog_compiler_wl='-Wl,'
  6998. lt_prog_compiler_pic='-KPIC'
  6999. lt_prog_compiler_static='-Bstatic'
  7000. ;;
  7001. sysv4*MP*)
  7002. if test -d /usr/nec ;then
  7003. lt_prog_compiler_pic='-Kconform_pic'
  7004. lt_prog_compiler_static='-Bstatic'
  7005. fi
  7006. ;;
  7007. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7008. lt_prog_compiler_wl='-Wl,'
  7009. lt_prog_compiler_pic='-KPIC'
  7010. lt_prog_compiler_static='-Bstatic'
  7011. ;;
  7012. unicos*)
  7013. lt_prog_compiler_wl='-Wl,'
  7014. lt_prog_compiler_can_build_shared=no
  7015. ;;
  7016. uts4*)
  7017. lt_prog_compiler_pic='-pic'
  7018. lt_prog_compiler_static='-Bstatic'
  7019. ;;
  7020. *)
  7021. lt_prog_compiler_can_build_shared=no
  7022. ;;
  7023. esac
  7024. fi
  7025. case $host_os in
  7026. # For platforms which do not support PIC, -DPIC is meaningless:
  7027. *djgpp*)
  7028. lt_prog_compiler_pic=
  7029. ;;
  7030. *)
  7031. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7032. ;;
  7033. esac
  7034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7035. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7036. if ${lt_cv_prog_compiler_pic+:} false; then :
  7037. $as_echo_n "(cached) " >&6
  7038. else
  7039. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7040. fi
  7041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7042. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7043. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7044. #
  7045. # Check to make sure the PIC flag actually works.
  7046. #
  7047. if test -n "$lt_prog_compiler_pic"; then
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7049. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7050. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7051. $as_echo_n "(cached) " >&6
  7052. else
  7053. lt_cv_prog_compiler_pic_works=no
  7054. ac_outfile=conftest.$ac_objext
  7055. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7056. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7057. # Insert the option either (1) after the last *FLAGS variable, or
  7058. # (2) before a word containing "conftest.", or (3) at the end.
  7059. # Note that $ac_compile itself does not contain backslashes and begins
  7060. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7061. # The option is referenced via a variable to avoid confusing sed.
  7062. lt_compile=`echo "$ac_compile" | $SED \
  7063. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7064. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7065. -e 's:$: $lt_compiler_flag:'`
  7066. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7067. (eval "$lt_compile" 2>conftest.err)
  7068. ac_status=$?
  7069. cat conftest.err >&5
  7070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7071. if (exit $ac_status) && test -s "$ac_outfile"; then
  7072. # The compiler can only warn and ignore the option if not recognized
  7073. # So say no if there are warnings other than the usual output.
  7074. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7075. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7076. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7077. lt_cv_prog_compiler_pic_works=yes
  7078. fi
  7079. fi
  7080. $RM conftest*
  7081. fi
  7082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7083. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7084. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7085. case $lt_prog_compiler_pic in
  7086. "" | " "*) ;;
  7087. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7088. esac
  7089. else
  7090. lt_prog_compiler_pic=
  7091. lt_prog_compiler_can_build_shared=no
  7092. fi
  7093. fi
  7094. #
  7095. # Check to make sure the static flag actually works.
  7096. #
  7097. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7099. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7100. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7101. $as_echo_n "(cached) " >&6
  7102. else
  7103. lt_cv_prog_compiler_static_works=no
  7104. save_LDFLAGS="$LDFLAGS"
  7105. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7106. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7107. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7108. # The linker can only warn and ignore the option if not recognized
  7109. # So say no if there are warnings
  7110. if test -s conftest.err; then
  7111. # Append any errors to the config.log.
  7112. cat conftest.err 1>&5
  7113. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7114. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7115. if diff conftest.exp conftest.er2 >/dev/null; then
  7116. lt_cv_prog_compiler_static_works=yes
  7117. fi
  7118. else
  7119. lt_cv_prog_compiler_static_works=yes
  7120. fi
  7121. fi
  7122. $RM -r conftest*
  7123. LDFLAGS="$save_LDFLAGS"
  7124. fi
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7126. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7127. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7128. :
  7129. else
  7130. lt_prog_compiler_static=
  7131. fi
  7132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7133. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7134. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7135. $as_echo_n "(cached) " >&6
  7136. else
  7137. lt_cv_prog_compiler_c_o=no
  7138. $RM -r conftest 2>/dev/null
  7139. mkdir conftest
  7140. cd conftest
  7141. mkdir out
  7142. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7143. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7144. # Insert the option either (1) after the last *FLAGS variable, or
  7145. # (2) before a word containing "conftest.", or (3) at the end.
  7146. # Note that $ac_compile itself does not contain backslashes and begins
  7147. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7148. lt_compile=`echo "$ac_compile" | $SED \
  7149. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7150. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7151. -e 's:$: $lt_compiler_flag:'`
  7152. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7153. (eval "$lt_compile" 2>out/conftest.err)
  7154. ac_status=$?
  7155. cat out/conftest.err >&5
  7156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7157. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7158. then
  7159. # The compiler can only warn and ignore the option if not recognized
  7160. # So say no if there are warnings
  7161. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7162. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7163. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7164. lt_cv_prog_compiler_c_o=yes
  7165. fi
  7166. fi
  7167. chmod u+w . 2>&5
  7168. $RM conftest*
  7169. # SGI C++ compiler will create directory out/ii_files/ for
  7170. # template instantiation
  7171. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7172. $RM out/* && rmdir out
  7173. cd ..
  7174. $RM -r conftest
  7175. $RM conftest*
  7176. fi
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7178. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7180. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7181. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7182. $as_echo_n "(cached) " >&6
  7183. else
  7184. lt_cv_prog_compiler_c_o=no
  7185. $RM -r conftest 2>/dev/null
  7186. mkdir conftest
  7187. cd conftest
  7188. mkdir out
  7189. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7190. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7191. # Insert the option either (1) after the last *FLAGS variable, or
  7192. # (2) before a word containing "conftest.", or (3) at the end.
  7193. # Note that $ac_compile itself does not contain backslashes and begins
  7194. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7195. lt_compile=`echo "$ac_compile" | $SED \
  7196. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7197. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7198. -e 's:$: $lt_compiler_flag:'`
  7199. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7200. (eval "$lt_compile" 2>out/conftest.err)
  7201. ac_status=$?
  7202. cat out/conftest.err >&5
  7203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7204. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7205. then
  7206. # The compiler can only warn and ignore the option if not recognized
  7207. # So say no if there are warnings
  7208. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7209. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7210. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7211. lt_cv_prog_compiler_c_o=yes
  7212. fi
  7213. fi
  7214. chmod u+w . 2>&5
  7215. $RM conftest*
  7216. # SGI C++ compiler will create directory out/ii_files/ for
  7217. # template instantiation
  7218. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7219. $RM out/* && rmdir out
  7220. cd ..
  7221. $RM -r conftest
  7222. $RM conftest*
  7223. fi
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7225. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7226. hard_links="nottested"
  7227. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7228. # do not overwrite the value of need_locks provided by the user
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7230. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7231. hard_links=yes
  7232. $RM conftest*
  7233. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7234. touch conftest.a
  7235. ln conftest.a conftest.b 2>&5 || hard_links=no
  7236. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7238. $as_echo "$hard_links" >&6; }
  7239. if test "$hard_links" = no; then
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7241. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7242. need_locks=warn
  7243. fi
  7244. else
  7245. need_locks=no
  7246. fi
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7248. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7249. runpath_var=
  7250. allow_undefined_flag=
  7251. always_export_symbols=no
  7252. archive_cmds=
  7253. archive_expsym_cmds=
  7254. compiler_needs_object=no
  7255. enable_shared_with_static_runtimes=no
  7256. export_dynamic_flag_spec=
  7257. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7258. hardcode_automatic=no
  7259. hardcode_direct=no
  7260. hardcode_direct_absolute=no
  7261. hardcode_libdir_flag_spec=
  7262. hardcode_libdir_flag_spec_ld=
  7263. hardcode_libdir_separator=
  7264. hardcode_minus_L=no
  7265. hardcode_shlibpath_var=unsupported
  7266. inherit_rpath=no
  7267. link_all_deplibs=unknown
  7268. module_cmds=
  7269. module_expsym_cmds=
  7270. old_archive_from_new_cmds=
  7271. old_archive_from_expsyms_cmds=
  7272. thread_safe_flag_spec=
  7273. whole_archive_flag_spec=
  7274. # include_expsyms should be a list of space-separated symbols to be *always*
  7275. # included in the symbol list
  7276. include_expsyms=
  7277. # exclude_expsyms can be an extended regexp of symbols to exclude
  7278. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7279. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7280. # as well as any symbol that contains `d'.
  7281. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7282. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7283. # platforms (ab)use it in PIC code, but their linkers get confused if
  7284. # the symbol is explicitly referenced. Since portable code cannot
  7285. # rely on this symbol name, it's probably fine to never include it in
  7286. # preloaded symbol tables.
  7287. # Exclude shared library initialization/finalization symbols.
  7288. extract_expsyms_cmds=
  7289. case $host_os in
  7290. cygwin* | mingw* | pw32* | cegcc*)
  7291. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7292. # When not using gcc, we currently assume that we are using
  7293. # Microsoft Visual C++.
  7294. if test "$GCC" != yes; then
  7295. with_gnu_ld=no
  7296. fi
  7297. ;;
  7298. interix*)
  7299. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7300. with_gnu_ld=yes
  7301. ;;
  7302. openbsd*)
  7303. with_gnu_ld=no
  7304. ;;
  7305. esac
  7306. ld_shlibs=yes
  7307. # On some targets, GNU ld is compatible enough with the native linker
  7308. # that we're better off using the native interface for both.
  7309. lt_use_gnu_ld_interface=no
  7310. if test "$with_gnu_ld" = yes; then
  7311. case $host_os in
  7312. aix*)
  7313. # The AIX port of GNU ld has always aspired to compatibility
  7314. # with the native linker. However, as the warning in the GNU ld
  7315. # block says, versions before 2.19.5* couldn't really create working
  7316. # shared libraries, regardless of the interface used.
  7317. case `$LD -v 2>&1` in
  7318. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7319. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7320. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7321. *)
  7322. lt_use_gnu_ld_interface=yes
  7323. ;;
  7324. esac
  7325. ;;
  7326. *)
  7327. lt_use_gnu_ld_interface=yes
  7328. ;;
  7329. esac
  7330. fi
  7331. if test "$lt_use_gnu_ld_interface" = yes; then
  7332. # If archive_cmds runs LD, not CC, wlarc should be empty
  7333. wlarc='${wl}'
  7334. # Set some defaults for GNU ld with shared library support. These
  7335. # are reset later if shared libraries are not supported. Putting them
  7336. # here allows them to be overridden if necessary.
  7337. runpath_var=LD_RUN_PATH
  7338. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7339. export_dynamic_flag_spec='${wl}--export-dynamic'
  7340. # ancient GNU ld didn't support --whole-archive et. al.
  7341. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7342. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7343. else
  7344. whole_archive_flag_spec=
  7345. fi
  7346. supports_anon_versioning=no
  7347. case `$LD -v 2>&1` in
  7348. *GNU\ gold*) supports_anon_versioning=yes ;;
  7349. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7350. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7351. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7352. *\ 2.11.*) ;; # other 2.11 versions
  7353. *) supports_anon_versioning=yes ;;
  7354. esac
  7355. # See if GNU ld supports shared libraries.
  7356. case $host_os in
  7357. aix[3-9]*)
  7358. # On AIX/PPC, the GNU linker is very broken
  7359. if test "$host_cpu" != ia64; then
  7360. ld_shlibs=no
  7361. cat <<_LT_EOF 1>&2
  7362. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7363. *** to be unable to reliably create shared libraries on AIX.
  7364. *** Therefore, libtool is disabling shared libraries support. If you
  7365. *** really care for shared libraries, you may want to install binutils
  7366. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7367. *** You will then need to restart the configuration process.
  7368. _LT_EOF
  7369. fi
  7370. ;;
  7371. amigaos*)
  7372. case $host_cpu in
  7373. powerpc)
  7374. # see comment about AmigaOS4 .so support
  7375. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7376. archive_expsym_cmds=''
  7377. ;;
  7378. m68k)
  7379. 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)'
  7380. hardcode_libdir_flag_spec='-L$libdir'
  7381. hardcode_minus_L=yes
  7382. ;;
  7383. esac
  7384. ;;
  7385. beos*)
  7386. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7387. allow_undefined_flag=unsupported
  7388. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7389. # support --undefined. This deserves some investigation. FIXME
  7390. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7391. else
  7392. ld_shlibs=no
  7393. fi
  7394. ;;
  7395. cygwin* | mingw* | pw32* | cegcc*)
  7396. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7397. # as there is no search path for DLLs.
  7398. hardcode_libdir_flag_spec='-L$libdir'
  7399. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7400. allow_undefined_flag=unsupported
  7401. always_export_symbols=no
  7402. enable_shared_with_static_runtimes=yes
  7403. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7404. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7405. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7406. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7407. # If the export-symbols file already is a .def file (1st line
  7408. # is EXPORTS), use it as is; otherwise, prepend...
  7409. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7410. cp $export_symbols $output_objdir/$soname.def;
  7411. else
  7412. echo EXPORTS > $output_objdir/$soname.def;
  7413. cat $export_symbols >> $output_objdir/$soname.def;
  7414. fi~
  7415. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7416. else
  7417. ld_shlibs=no
  7418. fi
  7419. ;;
  7420. haiku*)
  7421. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7422. link_all_deplibs=yes
  7423. ;;
  7424. interix[3-9]*)
  7425. hardcode_direct=no
  7426. hardcode_shlibpath_var=no
  7427. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7428. export_dynamic_flag_spec='${wl}-E'
  7429. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7430. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7431. # default) and relocated if they conflict, which is a slow very memory
  7432. # consuming and fragmenting process. To avoid this, we pick a random,
  7433. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7434. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7435. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7436. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7437. ;;
  7438. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7439. tmp_diet=no
  7440. if test "$host_os" = linux-dietlibc; then
  7441. case $cc_basename in
  7442. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7443. esac
  7444. fi
  7445. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7446. && test "$tmp_diet" = no
  7447. then
  7448. tmp_addflag=' $pic_flag'
  7449. tmp_sharedflag='-shared'
  7450. case $cc_basename,$host_cpu in
  7451. pgcc*) # Portland Group C compiler
  7452. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7453. tmp_addflag=' $pic_flag'
  7454. ;;
  7455. pgf77* | pgf90* | pgf95* | pgfortran*)
  7456. # Portland Group f77 and f90 compilers
  7457. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7458. tmp_addflag=' $pic_flag -Mnomain' ;;
  7459. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7460. tmp_addflag=' -i_dynamic' ;;
  7461. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7462. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7463. ifc* | ifort*) # Intel Fortran compiler
  7464. tmp_addflag=' -nofor_main' ;;
  7465. lf95*) # Lahey Fortran 8.1
  7466. whole_archive_flag_spec=
  7467. tmp_sharedflag='--shared' ;;
  7468. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7469. tmp_sharedflag='-qmkshrobj'
  7470. tmp_addflag= ;;
  7471. nvcc*) # Cuda Compiler Driver 2.2
  7472. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7473. compiler_needs_object=yes
  7474. ;;
  7475. esac
  7476. case `$CC -V 2>&1 | sed 5q` in
  7477. *Sun\ C*) # Sun C 5.9
  7478. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7479. compiler_needs_object=yes
  7480. tmp_sharedflag='-G' ;;
  7481. *Sun\ F*) # Sun Fortran 8.3
  7482. tmp_sharedflag='-G' ;;
  7483. esac
  7484. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7485. if test "x$supports_anon_versioning" = xyes; then
  7486. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7487. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7488. echo "local: *; };" >> $output_objdir/$libname.ver~
  7489. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7490. fi
  7491. case $cc_basename in
  7492. xlf* | bgf* | bgxlf* | mpixlf*)
  7493. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7494. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7495. hardcode_libdir_flag_spec=
  7496. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7497. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7498. if test "x$supports_anon_versioning" = xyes; then
  7499. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7500. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7501. echo "local: *; };" >> $output_objdir/$libname.ver~
  7502. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7503. fi
  7504. ;;
  7505. esac
  7506. else
  7507. ld_shlibs=no
  7508. fi
  7509. ;;
  7510. netbsd*)
  7511. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7512. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7513. wlarc=
  7514. else
  7515. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7516. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7517. fi
  7518. ;;
  7519. solaris*)
  7520. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7521. ld_shlibs=no
  7522. cat <<_LT_EOF 1>&2
  7523. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7524. *** create shared libraries on Solaris systems. Therefore, libtool
  7525. *** is disabling shared libraries support. We urge you to upgrade GNU
  7526. *** binutils to release 2.9.1 or newer. Another option is to modify
  7527. *** your PATH or compiler configuration so that the native linker is
  7528. *** used, and then restart.
  7529. _LT_EOF
  7530. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7531. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7532. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7533. else
  7534. ld_shlibs=no
  7535. fi
  7536. ;;
  7537. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7538. case `$LD -v 2>&1` in
  7539. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7540. ld_shlibs=no
  7541. cat <<_LT_EOF 1>&2
  7542. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7543. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7544. *** is disabling shared libraries support. We urge you to upgrade GNU
  7545. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7546. *** your PATH or compiler configuration so that the native linker is
  7547. *** used, and then restart.
  7548. _LT_EOF
  7549. ;;
  7550. *)
  7551. # For security reasons, it is highly recommended that you always
  7552. # use absolute paths for naming shared libraries, and exclude the
  7553. # DT_RUNPATH tag from executables and libraries. But doing so
  7554. # requires that you compile everything twice, which is a pain.
  7555. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7556. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7557. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7558. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7559. else
  7560. ld_shlibs=no
  7561. fi
  7562. ;;
  7563. esac
  7564. ;;
  7565. sunos4*)
  7566. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7567. wlarc=
  7568. hardcode_direct=yes
  7569. hardcode_shlibpath_var=no
  7570. ;;
  7571. *)
  7572. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7573. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7574. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7575. else
  7576. ld_shlibs=no
  7577. fi
  7578. ;;
  7579. esac
  7580. if test "$ld_shlibs" = no; then
  7581. runpath_var=
  7582. hardcode_libdir_flag_spec=
  7583. export_dynamic_flag_spec=
  7584. whole_archive_flag_spec=
  7585. fi
  7586. else
  7587. # PORTME fill in a description of your system's linker (not GNU ld)
  7588. case $host_os in
  7589. aix3*)
  7590. allow_undefined_flag=unsupported
  7591. always_export_symbols=yes
  7592. 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'
  7593. # Note: this linker hardcodes the directories in LIBPATH if there
  7594. # are no directories specified by -L.
  7595. hardcode_minus_L=yes
  7596. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7597. # Neither direct hardcoding nor static linking is supported with a
  7598. # broken collect2.
  7599. hardcode_direct=unsupported
  7600. fi
  7601. ;;
  7602. aix[4-9]*)
  7603. if test "$host_cpu" = ia64; then
  7604. # On IA64, the linker does run time linking by default, so we don't
  7605. # have to do anything special.
  7606. aix_use_runtimelinking=no
  7607. exp_sym_flag='-Bexport'
  7608. no_entry_flag=""
  7609. else
  7610. # If we're using GNU nm, then we don't want the "-C" option.
  7611. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7612. # Also, AIX nm treats weak defined symbols like other global
  7613. # defined symbols, whereas GNU nm marks them as "W".
  7614. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7615. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7616. else
  7617. 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'
  7618. fi
  7619. aix_use_runtimelinking=no
  7620. # Test if we are trying to use run time linking or normal
  7621. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7622. # need to do runtime linking.
  7623. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7624. for ld_flag in $LDFLAGS; do
  7625. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7626. aix_use_runtimelinking=yes
  7627. break
  7628. fi
  7629. done
  7630. ;;
  7631. esac
  7632. exp_sym_flag='-bexport'
  7633. no_entry_flag='-bnoentry'
  7634. fi
  7635. # When large executables or shared objects are built, AIX ld can
  7636. # have problems creating the table of contents. If linking a library
  7637. # or program results in "error TOC overflow" add -mminimal-toc to
  7638. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7639. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7640. archive_cmds=''
  7641. hardcode_direct=yes
  7642. hardcode_direct_absolute=yes
  7643. hardcode_libdir_separator=':'
  7644. link_all_deplibs=yes
  7645. file_list_spec='${wl}-f,'
  7646. if test "$GCC" = yes; then
  7647. case $host_os in aix4.[012]|aix4.[012].*)
  7648. # We only want to do this on AIX 4.2 and lower, the check
  7649. # below for broken collect2 doesn't work under 4.3+
  7650. collect2name=`${CC} -print-prog-name=collect2`
  7651. if test -f "$collect2name" &&
  7652. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7653. then
  7654. # We have reworked collect2
  7655. :
  7656. else
  7657. # We have old collect2
  7658. hardcode_direct=unsupported
  7659. # It fails to find uninstalled libraries when the uninstalled
  7660. # path is not listed in the libpath. Setting hardcode_minus_L
  7661. # to unsupported forces relinking
  7662. hardcode_minus_L=yes
  7663. hardcode_libdir_flag_spec='-L$libdir'
  7664. hardcode_libdir_separator=
  7665. fi
  7666. ;;
  7667. esac
  7668. shared_flag='-shared'
  7669. if test "$aix_use_runtimelinking" = yes; then
  7670. shared_flag="$shared_flag "'${wl}-G'
  7671. fi
  7672. else
  7673. # not using gcc
  7674. if test "$host_cpu" = ia64; then
  7675. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7676. # chokes on -Wl,-G. The following line is correct:
  7677. shared_flag='-G'
  7678. else
  7679. if test "$aix_use_runtimelinking" = yes; then
  7680. shared_flag='${wl}-G'
  7681. else
  7682. shared_flag='${wl}-bM:SRE'
  7683. fi
  7684. fi
  7685. fi
  7686. export_dynamic_flag_spec='${wl}-bexpall'
  7687. # It seems that -bexpall does not export symbols beginning with
  7688. # underscore (_), so it is better to generate a list of symbols to export.
  7689. always_export_symbols=yes
  7690. if test "$aix_use_runtimelinking" = yes; then
  7691. # Warning - without using the other runtime loading flags (-brtl),
  7692. # -berok will link without error, but may produce a broken library.
  7693. allow_undefined_flag='-berok'
  7694. # Determine the default libpath from the value encoded in an
  7695. # empty executable.
  7696. if test "${lt_cv_aix_libpath+set}" = set; then
  7697. aix_libpath=$lt_cv_aix_libpath
  7698. else
  7699. if ${lt_cv_aix_libpath_+:} false; then :
  7700. $as_echo_n "(cached) " >&6
  7701. else
  7702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7703. /* end confdefs.h. */
  7704. int
  7705. main ()
  7706. {
  7707. ;
  7708. return 0;
  7709. }
  7710. _ACEOF
  7711. if ac_fn_c_try_link "$LINENO"; then :
  7712. lt_aix_libpath_sed='
  7713. /Import File Strings/,/^$/ {
  7714. /^0/ {
  7715. s/^0 *\([^ ]*\) *$/\1/
  7716. p
  7717. }
  7718. }'
  7719. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7720. # Check for a 64-bit object if we didn't find anything.
  7721. if test -z "$lt_cv_aix_libpath_"; then
  7722. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7723. fi
  7724. fi
  7725. rm -f core conftest.err conftest.$ac_objext \
  7726. conftest$ac_exeext conftest.$ac_ext
  7727. if test -z "$lt_cv_aix_libpath_"; then
  7728. lt_cv_aix_libpath_="/usr/lib:/lib"
  7729. fi
  7730. fi
  7731. aix_libpath=$lt_cv_aix_libpath_
  7732. fi
  7733. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7734. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7735. else
  7736. if test "$host_cpu" = ia64; then
  7737. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7738. allow_undefined_flag="-z nodefs"
  7739. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7740. else
  7741. # Determine the default libpath from the value encoded in an
  7742. # empty executable.
  7743. if test "${lt_cv_aix_libpath+set}" = set; then
  7744. aix_libpath=$lt_cv_aix_libpath
  7745. else
  7746. if ${lt_cv_aix_libpath_+:} false; then :
  7747. $as_echo_n "(cached) " >&6
  7748. else
  7749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7750. /* end confdefs.h. */
  7751. int
  7752. main ()
  7753. {
  7754. ;
  7755. return 0;
  7756. }
  7757. _ACEOF
  7758. if ac_fn_c_try_link "$LINENO"; then :
  7759. lt_aix_libpath_sed='
  7760. /Import File Strings/,/^$/ {
  7761. /^0/ {
  7762. s/^0 *\([^ ]*\) *$/\1/
  7763. p
  7764. }
  7765. }'
  7766. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7767. # Check for a 64-bit object if we didn't find anything.
  7768. if test -z "$lt_cv_aix_libpath_"; then
  7769. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7770. fi
  7771. fi
  7772. rm -f core conftest.err conftest.$ac_objext \
  7773. conftest$ac_exeext conftest.$ac_ext
  7774. if test -z "$lt_cv_aix_libpath_"; then
  7775. lt_cv_aix_libpath_="/usr/lib:/lib"
  7776. fi
  7777. fi
  7778. aix_libpath=$lt_cv_aix_libpath_
  7779. fi
  7780. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7781. # Warning - without using the other run time loading flags,
  7782. # -berok will link without error, but may produce a broken library.
  7783. no_undefined_flag=' ${wl}-bernotok'
  7784. allow_undefined_flag=' ${wl}-berok'
  7785. if test "$with_gnu_ld" = yes; then
  7786. # We only use this code for GNU lds that support --whole-archive.
  7787. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7788. else
  7789. # Exported symbols can be pulled into shared objects from archives
  7790. whole_archive_flag_spec='$convenience'
  7791. fi
  7792. archive_cmds_need_lc=yes
  7793. # This is similar to how AIX traditionally builds its shared libraries.
  7794. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7795. fi
  7796. fi
  7797. ;;
  7798. amigaos*)
  7799. case $host_cpu in
  7800. powerpc)
  7801. # see comment about AmigaOS4 .so support
  7802. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7803. archive_expsym_cmds=''
  7804. ;;
  7805. m68k)
  7806. 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)'
  7807. hardcode_libdir_flag_spec='-L$libdir'
  7808. hardcode_minus_L=yes
  7809. ;;
  7810. esac
  7811. ;;
  7812. bsdi[45]*)
  7813. export_dynamic_flag_spec=-rdynamic
  7814. ;;
  7815. cygwin* | mingw* | pw32* | cegcc*)
  7816. # When not using gcc, we currently assume that we are using
  7817. # Microsoft Visual C++.
  7818. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7819. # no search path for DLLs.
  7820. case $cc_basename in
  7821. cl*)
  7822. # Native MSVC
  7823. hardcode_libdir_flag_spec=' '
  7824. allow_undefined_flag=unsupported
  7825. always_export_symbols=yes
  7826. file_list_spec='@'
  7827. # Tell ltmain to make .lib files, not .a files.
  7828. libext=lib
  7829. # Tell ltmain to make .dll files, not .so files.
  7830. shrext_cmds=".dll"
  7831. # FIXME: Setting linknames here is a bad hack.
  7832. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7833. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7834. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7835. else
  7836. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7837. fi~
  7838. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7839. linknames='
  7840. # The linker will not automatically build a static lib if we build a DLL.
  7841. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7842. enable_shared_with_static_runtimes=yes
  7843. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7844. # Don't use ranlib
  7845. old_postinstall_cmds='chmod 644 $oldlib'
  7846. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7847. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7848. case $lt_outputfile in
  7849. *.exe|*.EXE) ;;
  7850. *)
  7851. lt_outputfile="$lt_outputfile.exe"
  7852. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7853. ;;
  7854. esac~
  7855. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7856. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7857. $RM "$lt_outputfile.manifest";
  7858. fi'
  7859. ;;
  7860. *)
  7861. # Assume MSVC wrapper
  7862. hardcode_libdir_flag_spec=' '
  7863. allow_undefined_flag=unsupported
  7864. # Tell ltmain to make .lib files, not .a files.
  7865. libext=lib
  7866. # Tell ltmain to make .dll files, not .so files.
  7867. shrext_cmds=".dll"
  7868. # FIXME: Setting linknames here is a bad hack.
  7869. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7870. # The linker will automatically build a .lib file if we build a DLL.
  7871. old_archive_from_new_cmds='true'
  7872. # FIXME: Should let the user specify the lib program.
  7873. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7874. enable_shared_with_static_runtimes=yes
  7875. ;;
  7876. esac
  7877. ;;
  7878. darwin* | rhapsody*)
  7879. archive_cmds_need_lc=no
  7880. hardcode_direct=no
  7881. hardcode_automatic=yes
  7882. hardcode_shlibpath_var=unsupported
  7883. if test "$lt_cv_ld_force_load" = "yes"; then
  7884. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  7885. else
  7886. whole_archive_flag_spec=''
  7887. fi
  7888. link_all_deplibs=yes
  7889. allow_undefined_flag="$_lt_dar_allow_undefined"
  7890. case $cc_basename in
  7891. ifort*) _lt_dar_can_shared=yes ;;
  7892. *) _lt_dar_can_shared=$GCC ;;
  7893. esac
  7894. if test "$_lt_dar_can_shared" = "yes"; then
  7895. output_verbose_link_cmd=func_echo_all
  7896. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7897. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7898. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  7899. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  7900. else
  7901. ld_shlibs=no
  7902. fi
  7903. ;;
  7904. dgux*)
  7905. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7906. hardcode_libdir_flag_spec='-L$libdir'
  7907. hardcode_shlibpath_var=no
  7908. ;;
  7909. freebsd1*)
  7910. ld_shlibs=no
  7911. ;;
  7912. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7913. # support. Future versions do this automatically, but an explicit c++rt0.o
  7914. # does not break anything, and helps significantly (at the cost of a little
  7915. # extra space).
  7916. freebsd2.2*)
  7917. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7918. hardcode_libdir_flag_spec='-R$libdir'
  7919. hardcode_direct=yes
  7920. hardcode_shlibpath_var=no
  7921. ;;
  7922. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7923. freebsd2*)
  7924. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7925. hardcode_direct=yes
  7926. hardcode_minus_L=yes
  7927. hardcode_shlibpath_var=no
  7928. ;;
  7929. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7930. freebsd* | dragonfly*)
  7931. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7932. hardcode_libdir_flag_spec='-R$libdir'
  7933. hardcode_direct=yes
  7934. hardcode_shlibpath_var=no
  7935. ;;
  7936. hpux9*)
  7937. if test "$GCC" = yes; then
  7938. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7939. else
  7940. 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'
  7941. fi
  7942. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7943. hardcode_libdir_separator=:
  7944. hardcode_direct=yes
  7945. # hardcode_minus_L: Not really in the search PATH,
  7946. # but as the default location of the library.
  7947. hardcode_minus_L=yes
  7948. export_dynamic_flag_spec='${wl}-E'
  7949. ;;
  7950. hpux10*)
  7951. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7952. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7953. else
  7954. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7955. fi
  7956. if test "$with_gnu_ld" = no; then
  7957. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7958. hardcode_libdir_flag_spec_ld='+b $libdir'
  7959. hardcode_libdir_separator=:
  7960. hardcode_direct=yes
  7961. hardcode_direct_absolute=yes
  7962. export_dynamic_flag_spec='${wl}-E'
  7963. # hardcode_minus_L: Not really in the search PATH,
  7964. # but as the default location of the library.
  7965. hardcode_minus_L=yes
  7966. fi
  7967. ;;
  7968. hpux11*)
  7969. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7970. case $host_cpu in
  7971. hppa*64*)
  7972. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7973. ;;
  7974. ia64*)
  7975. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7976. ;;
  7977. *)
  7978. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7979. ;;
  7980. esac
  7981. else
  7982. case $host_cpu in
  7983. hppa*64*)
  7984. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7985. ;;
  7986. ia64*)
  7987. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7988. ;;
  7989. *)
  7990. # Older versions of the 11.00 compiler do not understand -b yet
  7991. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7993. $as_echo_n "checking if $CC understands -b... " >&6; }
  7994. if ${lt_cv_prog_compiler__b+:} false; then :
  7995. $as_echo_n "(cached) " >&6
  7996. else
  7997. lt_cv_prog_compiler__b=no
  7998. save_LDFLAGS="$LDFLAGS"
  7999. LDFLAGS="$LDFLAGS -b"
  8000. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8001. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8002. # The linker can only warn and ignore the option if not recognized
  8003. # So say no if there are warnings
  8004. if test -s conftest.err; then
  8005. # Append any errors to the config.log.
  8006. cat conftest.err 1>&5
  8007. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8008. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8009. if diff conftest.exp conftest.er2 >/dev/null; then
  8010. lt_cv_prog_compiler__b=yes
  8011. fi
  8012. else
  8013. lt_cv_prog_compiler__b=yes
  8014. fi
  8015. fi
  8016. $RM -r conftest*
  8017. LDFLAGS="$save_LDFLAGS"
  8018. fi
  8019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8020. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8021. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8022. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8023. else
  8024. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8025. fi
  8026. ;;
  8027. esac
  8028. fi
  8029. if test "$with_gnu_ld" = no; then
  8030. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8031. hardcode_libdir_separator=:
  8032. case $host_cpu in
  8033. hppa*64*|ia64*)
  8034. hardcode_direct=no
  8035. hardcode_shlibpath_var=no
  8036. ;;
  8037. *)
  8038. hardcode_direct=yes
  8039. hardcode_direct_absolute=yes
  8040. export_dynamic_flag_spec='${wl}-E'
  8041. # hardcode_minus_L: Not really in the search PATH,
  8042. # but as the default location of the library.
  8043. hardcode_minus_L=yes
  8044. ;;
  8045. esac
  8046. fi
  8047. ;;
  8048. irix5* | irix6* | nonstopux*)
  8049. if test "$GCC" = yes; then
  8050. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8051. # Try to use the -exported_symbol ld option, if it does not
  8052. # work, assume that -exports_file does not work either and
  8053. # implicitly export all symbols.
  8054. # This should be the same for all languages, so no per-tag cache variable.
  8055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8056. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8057. if ${lt_cv_irix_exported_symbol+:} false; then :
  8058. $as_echo_n "(cached) " >&6
  8059. else
  8060. save_LDFLAGS="$LDFLAGS"
  8061. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8063. /* end confdefs.h. */
  8064. int foo (void) { return 0; }
  8065. _ACEOF
  8066. if ac_fn_c_try_link "$LINENO"; then :
  8067. lt_cv_irix_exported_symbol=yes
  8068. else
  8069. lt_cv_irix_exported_symbol=no
  8070. fi
  8071. rm -f core conftest.err conftest.$ac_objext \
  8072. conftest$ac_exeext conftest.$ac_ext
  8073. LDFLAGS="$save_LDFLAGS"
  8074. fi
  8075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8076. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8077. if test "$lt_cv_irix_exported_symbol" = yes; then
  8078. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8079. fi
  8080. else
  8081. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8082. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8083. fi
  8084. archive_cmds_need_lc='no'
  8085. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8086. hardcode_libdir_separator=:
  8087. inherit_rpath=yes
  8088. link_all_deplibs=yes
  8089. ;;
  8090. netbsd*)
  8091. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8092. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8093. else
  8094. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8095. fi
  8096. hardcode_libdir_flag_spec='-R$libdir'
  8097. hardcode_direct=yes
  8098. hardcode_shlibpath_var=no
  8099. ;;
  8100. newsos6)
  8101. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8102. hardcode_direct=yes
  8103. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8104. hardcode_libdir_separator=:
  8105. hardcode_shlibpath_var=no
  8106. ;;
  8107. *nto* | *qnx*)
  8108. ;;
  8109. openbsd*)
  8110. if test -f /usr/libexec/ld.so; then
  8111. hardcode_direct=yes
  8112. hardcode_shlibpath_var=no
  8113. hardcode_direct_absolute=yes
  8114. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8115. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8116. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8117. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8118. export_dynamic_flag_spec='${wl}-E'
  8119. else
  8120. case $host_os in
  8121. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8122. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8123. hardcode_libdir_flag_spec='-R$libdir'
  8124. ;;
  8125. *)
  8126. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8127. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8128. ;;
  8129. esac
  8130. fi
  8131. else
  8132. ld_shlibs=no
  8133. fi
  8134. ;;
  8135. os2*)
  8136. hardcode_libdir_flag_spec='-L$libdir'
  8137. hardcode_minus_L=yes
  8138. allow_undefined_flag=unsupported
  8139. 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'
  8140. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8141. ;;
  8142. osf3*)
  8143. if test "$GCC" = yes; then
  8144. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8145. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8146. else
  8147. allow_undefined_flag=' -expect_unresolved \*'
  8148. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8149. fi
  8150. archive_cmds_need_lc='no'
  8151. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8152. hardcode_libdir_separator=:
  8153. ;;
  8154. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8155. if test "$GCC" = yes; then
  8156. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8157. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8158. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8159. else
  8160. allow_undefined_flag=' -expect_unresolved \*'
  8161. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8162. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8163. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8164. # Both c and cxx compiler support -rpath directly
  8165. hardcode_libdir_flag_spec='-rpath $libdir'
  8166. fi
  8167. archive_cmds_need_lc='no'
  8168. hardcode_libdir_separator=:
  8169. ;;
  8170. solaris*)
  8171. no_undefined_flag=' -z defs'
  8172. if test "$GCC" = yes; then
  8173. wlarc='${wl}'
  8174. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8175. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8176. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8177. else
  8178. case `$CC -V 2>&1` in
  8179. *"Compilers 5.0"*)
  8180. wlarc=''
  8181. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8182. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8183. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8184. ;;
  8185. *)
  8186. wlarc='${wl}'
  8187. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8188. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8189. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8190. ;;
  8191. esac
  8192. fi
  8193. hardcode_libdir_flag_spec='-R$libdir'
  8194. hardcode_shlibpath_var=no
  8195. case $host_os in
  8196. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8197. *)
  8198. # The compiler driver will combine and reorder linker options,
  8199. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8200. # but is careful enough not to reorder.
  8201. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8202. if test "$GCC" = yes; then
  8203. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8204. else
  8205. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8206. fi
  8207. ;;
  8208. esac
  8209. link_all_deplibs=yes
  8210. ;;
  8211. sunos4*)
  8212. if test "x$host_vendor" = xsequent; then
  8213. # Use $CC to link under sequent, because it throws in some extra .o
  8214. # files that make .init and .fini sections work.
  8215. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8216. else
  8217. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8218. fi
  8219. hardcode_libdir_flag_spec='-L$libdir'
  8220. hardcode_direct=yes
  8221. hardcode_minus_L=yes
  8222. hardcode_shlibpath_var=no
  8223. ;;
  8224. sysv4)
  8225. case $host_vendor in
  8226. sni)
  8227. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8228. hardcode_direct=yes # is this really true???
  8229. ;;
  8230. siemens)
  8231. ## LD is ld it makes a PLAMLIB
  8232. ## CC just makes a GrossModule.
  8233. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8234. reload_cmds='$CC -r -o $output$reload_objs'
  8235. hardcode_direct=no
  8236. ;;
  8237. motorola)
  8238. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8239. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8240. ;;
  8241. esac
  8242. runpath_var='LD_RUN_PATH'
  8243. hardcode_shlibpath_var=no
  8244. ;;
  8245. sysv4.3*)
  8246. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8247. hardcode_shlibpath_var=no
  8248. export_dynamic_flag_spec='-Bexport'
  8249. ;;
  8250. sysv4*MP*)
  8251. if test -d /usr/nec; then
  8252. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8253. hardcode_shlibpath_var=no
  8254. runpath_var=LD_RUN_PATH
  8255. hardcode_runpath_var=yes
  8256. ld_shlibs=yes
  8257. fi
  8258. ;;
  8259. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8260. no_undefined_flag='${wl}-z,text'
  8261. archive_cmds_need_lc=no
  8262. hardcode_shlibpath_var=no
  8263. runpath_var='LD_RUN_PATH'
  8264. if test "$GCC" = yes; then
  8265. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8266. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8267. else
  8268. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8269. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8270. fi
  8271. ;;
  8272. sysv5* | sco3.2v5* | sco5v6*)
  8273. # Note: We can NOT use -z defs as we might desire, because we do not
  8274. # link with -lc, and that would cause any symbols used from libc to
  8275. # always be unresolved, which means just about no library would
  8276. # ever link correctly. If we're not using GNU ld we use -z text
  8277. # though, which does catch some bad symbols but isn't as heavy-handed
  8278. # as -z defs.
  8279. no_undefined_flag='${wl}-z,text'
  8280. allow_undefined_flag='${wl}-z,nodefs'
  8281. archive_cmds_need_lc=no
  8282. hardcode_shlibpath_var=no
  8283. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8284. hardcode_libdir_separator=':'
  8285. link_all_deplibs=yes
  8286. export_dynamic_flag_spec='${wl}-Bexport'
  8287. runpath_var='LD_RUN_PATH'
  8288. if test "$GCC" = yes; then
  8289. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8290. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8291. else
  8292. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8293. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8294. fi
  8295. ;;
  8296. uts4*)
  8297. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8298. hardcode_libdir_flag_spec='-L$libdir'
  8299. hardcode_shlibpath_var=no
  8300. ;;
  8301. *)
  8302. ld_shlibs=no
  8303. ;;
  8304. esac
  8305. if test x$host_vendor = xsni; then
  8306. case $host in
  8307. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8308. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8309. ;;
  8310. esac
  8311. fi
  8312. fi
  8313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8314. $as_echo "$ld_shlibs" >&6; }
  8315. test "$ld_shlibs" = no && can_build_shared=no
  8316. with_gnu_ld=$with_gnu_ld
  8317. #
  8318. # Do we need to explicitly link libc?
  8319. #
  8320. case "x$archive_cmds_need_lc" in
  8321. x|xyes)
  8322. # Assume -lc should be added
  8323. archive_cmds_need_lc=yes
  8324. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8325. case $archive_cmds in
  8326. *'~'*)
  8327. # FIXME: we may have to deal with multi-command sequences.
  8328. ;;
  8329. '$CC '*)
  8330. # Test whether the compiler implicitly links with -lc since on some
  8331. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8332. # to ld, don't add -lc before -lgcc.
  8333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8334. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8335. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8336. $as_echo_n "(cached) " >&6
  8337. else
  8338. $RM conftest*
  8339. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8340. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8341. (eval $ac_compile) 2>&5
  8342. ac_status=$?
  8343. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8344. test $ac_status = 0; } 2>conftest.err; then
  8345. soname=conftest
  8346. lib=conftest
  8347. libobjs=conftest.$ac_objext
  8348. deplibs=
  8349. wl=$lt_prog_compiler_wl
  8350. pic_flag=$lt_prog_compiler_pic
  8351. compiler_flags=-v
  8352. linker_flags=-v
  8353. verstring=
  8354. output_objdir=.
  8355. libname=conftest
  8356. lt_save_allow_undefined_flag=$allow_undefined_flag
  8357. allow_undefined_flag=
  8358. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8359. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8360. ac_status=$?
  8361. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8362. test $ac_status = 0; }
  8363. then
  8364. lt_cv_archive_cmds_need_lc=no
  8365. else
  8366. lt_cv_archive_cmds_need_lc=yes
  8367. fi
  8368. allow_undefined_flag=$lt_save_allow_undefined_flag
  8369. else
  8370. cat conftest.err 1>&5
  8371. fi
  8372. $RM conftest*
  8373. fi
  8374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8375. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8376. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8377. ;;
  8378. esac
  8379. fi
  8380. ;;
  8381. esac
  8382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8383. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8384. if test "$GCC" = yes; then
  8385. case $host_os in
  8386. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8387. *) lt_awk_arg="/^libraries:/" ;;
  8388. esac
  8389. case $host_os in
  8390. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8391. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8392. esac
  8393. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8394. case $lt_search_path_spec in
  8395. *\;*)
  8396. # if the path contains ";" then we assume it to be the separator
  8397. # otherwise default to the standard path separator (i.e. ":") - it is
  8398. # assumed that no part of a normal pathname contains ";" but that should
  8399. # okay in the real world where ";" in dirpaths is itself problematic.
  8400. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8401. ;;
  8402. *)
  8403. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8404. ;;
  8405. esac
  8406. # Ok, now we have the path, separated by spaces, we can step through it
  8407. # and add multilib dir if necessary.
  8408. lt_tmp_lt_search_path_spec=
  8409. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8410. for lt_sys_path in $lt_search_path_spec; do
  8411. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8412. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8413. else
  8414. test -d "$lt_sys_path" && \
  8415. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8416. fi
  8417. done
  8418. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8419. BEGIN {RS=" "; FS="/|\n";} {
  8420. lt_foo="";
  8421. lt_count=0;
  8422. for (lt_i = NF; lt_i > 0; lt_i--) {
  8423. if ($lt_i != "" && $lt_i != ".") {
  8424. if ($lt_i == "..") {
  8425. lt_count++;
  8426. } else {
  8427. if (lt_count == 0) {
  8428. lt_foo="/" $lt_i lt_foo;
  8429. } else {
  8430. lt_count--;
  8431. }
  8432. }
  8433. }
  8434. }
  8435. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8436. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8437. }'`
  8438. # AWK program above erroneously prepends '/' to C:/dos/paths
  8439. # for these hosts.
  8440. case $host_os in
  8441. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8442. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8443. esac
  8444. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8445. else
  8446. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8447. fi
  8448. library_names_spec=
  8449. libname_spec='lib$name'
  8450. soname_spec=
  8451. shrext_cmds=".so"
  8452. postinstall_cmds=
  8453. postuninstall_cmds=
  8454. finish_cmds=
  8455. finish_eval=
  8456. shlibpath_var=
  8457. shlibpath_overrides_runpath=unknown
  8458. version_type=none
  8459. dynamic_linker="$host_os ld.so"
  8460. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8461. need_lib_prefix=unknown
  8462. hardcode_into_libs=no
  8463. # when you set need_version to no, make sure it does not cause -set_version
  8464. # flags to be left without arguments
  8465. need_version=unknown
  8466. case $host_os in
  8467. aix3*)
  8468. version_type=linux
  8469. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8470. shlibpath_var=LIBPATH
  8471. # AIX 3 has no versioning support, so we append a major version to the name.
  8472. soname_spec='${libname}${release}${shared_ext}$major'
  8473. ;;
  8474. aix[4-9]*)
  8475. version_type=linux
  8476. need_lib_prefix=no
  8477. need_version=no
  8478. hardcode_into_libs=yes
  8479. if test "$host_cpu" = ia64; then
  8480. # AIX 5 supports IA64
  8481. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8482. shlibpath_var=LD_LIBRARY_PATH
  8483. else
  8484. # With GCC up to 2.95.x, collect2 would create an import file
  8485. # for dependence libraries. The import file would start with
  8486. # the line `#! .'. This would cause the generated library to
  8487. # depend on `.', always an invalid library. This was fixed in
  8488. # development snapshots of GCC prior to 3.0.
  8489. case $host_os in
  8490. aix4 | aix4.[01] | aix4.[01].*)
  8491. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8492. echo ' yes '
  8493. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8494. :
  8495. else
  8496. can_build_shared=no
  8497. fi
  8498. ;;
  8499. esac
  8500. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8501. # soname into executable. Probably we can add versioning support to
  8502. # collect2, so additional links can be useful in future.
  8503. if test "$aix_use_runtimelinking" = yes; then
  8504. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8505. # instead of lib<name>.a to let people know that these are not
  8506. # typical AIX shared libraries.
  8507. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8508. else
  8509. # We preserve .a as extension for shared libraries through AIX4.2
  8510. # and later when we are not doing run time linking.
  8511. library_names_spec='${libname}${release}.a $libname.a'
  8512. soname_spec='${libname}${release}${shared_ext}$major'
  8513. fi
  8514. shlibpath_var=LIBPATH
  8515. fi
  8516. ;;
  8517. amigaos*)
  8518. case $host_cpu in
  8519. powerpc)
  8520. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8521. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8522. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8523. ;;
  8524. m68k)
  8525. library_names_spec='$libname.ixlibrary $libname.a'
  8526. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8527. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  8528. ;;
  8529. esac
  8530. ;;
  8531. beos*)
  8532. library_names_spec='${libname}${shared_ext}'
  8533. dynamic_linker="$host_os ld.so"
  8534. shlibpath_var=LIBRARY_PATH
  8535. ;;
  8536. bsdi[45]*)
  8537. version_type=linux
  8538. need_version=no
  8539. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8540. soname_spec='${libname}${release}${shared_ext}$major'
  8541. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8542. shlibpath_var=LD_LIBRARY_PATH
  8543. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8544. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8545. # the default ld.so.conf also contains /usr/contrib/lib and
  8546. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8547. # libtool to hard-code these into programs
  8548. ;;
  8549. cygwin* | mingw* | pw32* | cegcc*)
  8550. version_type=windows
  8551. shrext_cmds=".dll"
  8552. need_version=no
  8553. need_lib_prefix=no
  8554. case $GCC,$cc_basename in
  8555. yes,*)
  8556. # gcc
  8557. library_names_spec='$libname.dll.a'
  8558. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8559. postinstall_cmds='base_file=`basename \${file}`~
  8560. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8561. dldir=$destdir/`dirname \$dlpath`~
  8562. test -d \$dldir || mkdir -p \$dldir~
  8563. $install_prog $dir/$dlname \$dldir/$dlname~
  8564. chmod a+x \$dldir/$dlname~
  8565. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8566. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8567. fi'
  8568. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8569. dlpath=$dir/\$dldll~
  8570. $RM \$dlpath'
  8571. shlibpath_overrides_runpath=yes
  8572. case $host_os in
  8573. cygwin*)
  8574. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8575. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8576. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8577. ;;
  8578. mingw* | cegcc*)
  8579. # MinGW DLLs use traditional 'lib' prefix
  8580. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8581. ;;
  8582. pw32*)
  8583. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8584. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8585. ;;
  8586. esac
  8587. dynamic_linker='Win32 ld.exe'
  8588. ;;
  8589. *,cl*)
  8590. # Native MSVC
  8591. libname_spec='$name'
  8592. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8593. library_names_spec='${libname}.dll.lib'
  8594. case $build_os in
  8595. mingw*)
  8596. sys_lib_search_path_spec=
  8597. lt_save_ifs=$IFS
  8598. IFS=';'
  8599. for lt_path in $LIB
  8600. do
  8601. IFS=$lt_save_ifs
  8602. # Let DOS variable expansion print the short 8.3 style file name.
  8603. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8604. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8605. done
  8606. IFS=$lt_save_ifs
  8607. # Convert to MSYS style.
  8608. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8609. ;;
  8610. cygwin*)
  8611. # Convert to unix form, then to dos form, then back to unix form
  8612. # but this time dos style (no spaces!) so that the unix form looks
  8613. # like /cygdrive/c/PROGRA~1:/cygdr...
  8614. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8615. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8616. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8617. ;;
  8618. *)
  8619. sys_lib_search_path_spec="$LIB"
  8620. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8621. # It is most probably a Windows format PATH.
  8622. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8623. else
  8624. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8625. fi
  8626. # FIXME: find the short name or the path components, as spaces are
  8627. # common. (e.g. "Program Files" -> "PROGRA~1")
  8628. ;;
  8629. esac
  8630. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8631. postinstall_cmds='base_file=`basename \${file}`~
  8632. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8633. dldir=$destdir/`dirname \$dlpath`~
  8634. test -d \$dldir || mkdir -p \$dldir~
  8635. $install_prog $dir/$dlname \$dldir/$dlname'
  8636. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8637. dlpath=$dir/\$dldll~
  8638. $RM \$dlpath'
  8639. shlibpath_overrides_runpath=yes
  8640. dynamic_linker='Win32 link.exe'
  8641. ;;
  8642. *)
  8643. # Assume MSVC wrapper
  8644. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8645. dynamic_linker='Win32 ld.exe'
  8646. ;;
  8647. esac
  8648. # FIXME: first we should search . and the directory the executable is in
  8649. shlibpath_var=PATH
  8650. ;;
  8651. darwin* | rhapsody*)
  8652. dynamic_linker="$host_os dyld"
  8653. version_type=darwin
  8654. need_lib_prefix=no
  8655. need_version=no
  8656. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8657. soname_spec='${libname}${release}${major}$shared_ext'
  8658. shlibpath_overrides_runpath=yes
  8659. shlibpath_var=DYLD_LIBRARY_PATH
  8660. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8661. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8662. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8663. ;;
  8664. dgux*)
  8665. version_type=linux
  8666. need_lib_prefix=no
  8667. need_version=no
  8668. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8669. soname_spec='${libname}${release}${shared_ext}$major'
  8670. shlibpath_var=LD_LIBRARY_PATH
  8671. ;;
  8672. freebsd1*)
  8673. dynamic_linker=no
  8674. ;;
  8675. freebsd* | dragonfly*)
  8676. # DragonFly does not have aout. When/if they implement a new
  8677. # versioning mechanism, adjust this.
  8678. if test -x /usr/bin/objformat; then
  8679. objformat=`/usr/bin/objformat`
  8680. else
  8681. case $host_os in
  8682. freebsd[123]*) objformat=aout ;;
  8683. *) objformat=elf ;;
  8684. esac
  8685. fi
  8686. version_type=freebsd-$objformat
  8687. case $version_type in
  8688. freebsd-elf*)
  8689. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8690. need_version=no
  8691. need_lib_prefix=no
  8692. ;;
  8693. freebsd-*)
  8694. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8695. need_version=yes
  8696. ;;
  8697. esac
  8698. shlibpath_var=LD_LIBRARY_PATH
  8699. case $host_os in
  8700. freebsd2*)
  8701. shlibpath_overrides_runpath=yes
  8702. ;;
  8703. freebsd3.[01]* | freebsdelf3.[01]*)
  8704. shlibpath_overrides_runpath=yes
  8705. hardcode_into_libs=yes
  8706. ;;
  8707. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8708. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8709. shlibpath_overrides_runpath=no
  8710. hardcode_into_libs=yes
  8711. ;;
  8712. *) # from 4.6 on, and DragonFly
  8713. shlibpath_overrides_runpath=yes
  8714. hardcode_into_libs=yes
  8715. ;;
  8716. esac
  8717. ;;
  8718. gnu*)
  8719. version_type=linux
  8720. need_lib_prefix=no
  8721. need_version=no
  8722. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8723. soname_spec='${libname}${release}${shared_ext}$major'
  8724. shlibpath_var=LD_LIBRARY_PATH
  8725. hardcode_into_libs=yes
  8726. ;;
  8727. haiku*)
  8728. version_type=linux
  8729. need_lib_prefix=no
  8730. need_version=no
  8731. dynamic_linker="$host_os runtime_loader"
  8732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8733. soname_spec='${libname}${release}${shared_ext}$major'
  8734. shlibpath_var=LIBRARY_PATH
  8735. shlibpath_overrides_runpath=yes
  8736. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8737. hardcode_into_libs=yes
  8738. ;;
  8739. hpux9* | hpux10* | hpux11*)
  8740. # Give a soname corresponding to the major version so that dld.sl refuses to
  8741. # link against other versions.
  8742. version_type=sunos
  8743. need_lib_prefix=no
  8744. need_version=no
  8745. case $host_cpu in
  8746. ia64*)
  8747. shrext_cmds='.so'
  8748. hardcode_into_libs=yes
  8749. dynamic_linker="$host_os dld.so"
  8750. shlibpath_var=LD_LIBRARY_PATH
  8751. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8752. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8753. soname_spec='${libname}${release}${shared_ext}$major'
  8754. if test "X$HPUX_IA64_MODE" = X32; then
  8755. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8756. else
  8757. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8758. fi
  8759. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8760. ;;
  8761. hppa*64*)
  8762. shrext_cmds='.sl'
  8763. hardcode_into_libs=yes
  8764. dynamic_linker="$host_os dld.sl"
  8765. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8766. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8768. soname_spec='${libname}${release}${shared_ext}$major'
  8769. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8770. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8771. ;;
  8772. *)
  8773. shrext_cmds='.sl'
  8774. dynamic_linker="$host_os dld.sl"
  8775. shlibpath_var=SHLIB_PATH
  8776. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8777. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8778. soname_spec='${libname}${release}${shared_ext}$major'
  8779. ;;
  8780. esac
  8781. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8782. postinstall_cmds='chmod 555 $lib'
  8783. # or fails outright, so override atomically:
  8784. install_override_mode=555
  8785. ;;
  8786. interix[3-9]*)
  8787. version_type=linux
  8788. need_lib_prefix=no
  8789. need_version=no
  8790. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8791. soname_spec='${libname}${release}${shared_ext}$major'
  8792. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8793. shlibpath_var=LD_LIBRARY_PATH
  8794. shlibpath_overrides_runpath=no
  8795. hardcode_into_libs=yes
  8796. ;;
  8797. irix5* | irix6* | nonstopux*)
  8798. case $host_os in
  8799. nonstopux*) version_type=nonstopux ;;
  8800. *)
  8801. if test "$lt_cv_prog_gnu_ld" = yes; then
  8802. version_type=linux
  8803. else
  8804. version_type=irix
  8805. fi ;;
  8806. esac
  8807. need_lib_prefix=no
  8808. need_version=no
  8809. soname_spec='${libname}${release}${shared_ext}$major'
  8810. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8811. case $host_os in
  8812. irix5* | nonstopux*)
  8813. libsuff= shlibsuff=
  8814. ;;
  8815. *)
  8816. case $LD in # libtool.m4 will add one of these switches to LD
  8817. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8818. libsuff= shlibsuff= libmagic=32-bit;;
  8819. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8820. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8821. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8822. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8823. *) libsuff= shlibsuff= libmagic=never-match;;
  8824. esac
  8825. ;;
  8826. esac
  8827. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8828. shlibpath_overrides_runpath=no
  8829. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8830. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8831. hardcode_into_libs=yes
  8832. ;;
  8833. # No shared lib support for Linux oldld, aout, or coff.
  8834. linux*oldld* | linux*aout* | linux*coff*)
  8835. dynamic_linker=no
  8836. ;;
  8837. # This must be Linux ELF.
  8838. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8839. version_type=linux
  8840. need_lib_prefix=no
  8841. need_version=no
  8842. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8843. soname_spec='${libname}${release}${shared_ext}$major'
  8844. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8845. shlibpath_var=LD_LIBRARY_PATH
  8846. shlibpath_overrides_runpath=no
  8847. # Some binutils ld are patched to set DT_RUNPATH
  8848. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8849. $as_echo_n "(cached) " >&6
  8850. else
  8851. lt_cv_shlibpath_overrides_runpath=no
  8852. save_LDFLAGS=$LDFLAGS
  8853. save_libdir=$libdir
  8854. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8855. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8857. /* end confdefs.h. */
  8858. int
  8859. main ()
  8860. {
  8861. ;
  8862. return 0;
  8863. }
  8864. _ACEOF
  8865. if ac_fn_c_try_link "$LINENO"; then :
  8866. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8867. lt_cv_shlibpath_overrides_runpath=yes
  8868. fi
  8869. fi
  8870. rm -f core conftest.err conftest.$ac_objext \
  8871. conftest$ac_exeext conftest.$ac_ext
  8872. LDFLAGS=$save_LDFLAGS
  8873. libdir=$save_libdir
  8874. fi
  8875. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8876. # This implies no fast_install, which is unacceptable.
  8877. # Some rework will be needed to allow for fast_install
  8878. # before this can be enabled.
  8879. hardcode_into_libs=yes
  8880. # Append ld.so.conf contents to the search path
  8881. if test -f /etc/ld.so.conf; then
  8882. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  8883. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8884. fi
  8885. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8886. # powerpc, because MkLinux only supported shared libraries with the
  8887. # GNU dynamic linker. Since this was broken with cross compilers,
  8888. # most powerpc-linux boxes support dynamic linking these days and
  8889. # people can always --disable-shared, the test was removed, and we
  8890. # assume the GNU/Linux dynamic linker is in use.
  8891. dynamic_linker='GNU/Linux ld.so'
  8892. ;;
  8893. netbsd*)
  8894. version_type=sunos
  8895. need_lib_prefix=no
  8896. need_version=no
  8897. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8898. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8899. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8900. dynamic_linker='NetBSD (a.out) ld.so'
  8901. else
  8902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8903. soname_spec='${libname}${release}${shared_ext}$major'
  8904. dynamic_linker='NetBSD ld.elf_so'
  8905. fi
  8906. shlibpath_var=LD_LIBRARY_PATH
  8907. shlibpath_overrides_runpath=yes
  8908. hardcode_into_libs=yes
  8909. ;;
  8910. newsos6)
  8911. version_type=linux
  8912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8913. shlibpath_var=LD_LIBRARY_PATH
  8914. shlibpath_overrides_runpath=yes
  8915. ;;
  8916. *nto* | *qnx*)
  8917. version_type=qnx
  8918. need_lib_prefix=no
  8919. need_version=no
  8920. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8921. soname_spec='${libname}${release}${shared_ext}$major'
  8922. shlibpath_var=LD_LIBRARY_PATH
  8923. shlibpath_overrides_runpath=no
  8924. hardcode_into_libs=yes
  8925. dynamic_linker='ldqnx.so'
  8926. ;;
  8927. openbsd*)
  8928. version_type=sunos
  8929. sys_lib_dlsearch_path_spec="/usr/lib"
  8930. need_lib_prefix=no
  8931. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8932. case $host_os in
  8933. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8934. *) need_version=no ;;
  8935. esac
  8936. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8937. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8938. shlibpath_var=LD_LIBRARY_PATH
  8939. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8940. case $host_os in
  8941. openbsd2.[89] | openbsd2.[89].*)
  8942. shlibpath_overrides_runpath=no
  8943. ;;
  8944. *)
  8945. shlibpath_overrides_runpath=yes
  8946. ;;
  8947. esac
  8948. else
  8949. shlibpath_overrides_runpath=yes
  8950. fi
  8951. ;;
  8952. os2*)
  8953. libname_spec='$name'
  8954. shrext_cmds=".dll"
  8955. need_lib_prefix=no
  8956. library_names_spec='$libname${shared_ext} $libname.a'
  8957. dynamic_linker='OS/2 ld.exe'
  8958. shlibpath_var=LIBPATH
  8959. ;;
  8960. osf3* | osf4* | osf5*)
  8961. version_type=osf
  8962. need_lib_prefix=no
  8963. need_version=no
  8964. soname_spec='${libname}${release}${shared_ext}$major'
  8965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8966. shlibpath_var=LD_LIBRARY_PATH
  8967. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8968. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8969. ;;
  8970. rdos*)
  8971. dynamic_linker=no
  8972. ;;
  8973. solaris*)
  8974. version_type=linux
  8975. need_lib_prefix=no
  8976. need_version=no
  8977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8978. soname_spec='${libname}${release}${shared_ext}$major'
  8979. shlibpath_var=LD_LIBRARY_PATH
  8980. shlibpath_overrides_runpath=yes
  8981. hardcode_into_libs=yes
  8982. # ldd complains unless libraries are executable
  8983. postinstall_cmds='chmod +x $lib'
  8984. ;;
  8985. sunos4*)
  8986. version_type=sunos
  8987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8988. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8989. shlibpath_var=LD_LIBRARY_PATH
  8990. shlibpath_overrides_runpath=yes
  8991. if test "$with_gnu_ld" = yes; then
  8992. need_lib_prefix=no
  8993. fi
  8994. need_version=yes
  8995. ;;
  8996. sysv4 | sysv4.3*)
  8997. version_type=linux
  8998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8999. soname_spec='${libname}${release}${shared_ext}$major'
  9000. shlibpath_var=LD_LIBRARY_PATH
  9001. case $host_vendor in
  9002. sni)
  9003. shlibpath_overrides_runpath=no
  9004. need_lib_prefix=no
  9005. runpath_var=LD_RUN_PATH
  9006. ;;
  9007. siemens)
  9008. need_lib_prefix=no
  9009. ;;
  9010. motorola)
  9011. need_lib_prefix=no
  9012. need_version=no
  9013. shlibpath_overrides_runpath=no
  9014. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9015. ;;
  9016. esac
  9017. ;;
  9018. sysv4*MP*)
  9019. if test -d /usr/nec ;then
  9020. version_type=linux
  9021. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9022. soname_spec='$libname${shared_ext}.$major'
  9023. shlibpath_var=LD_LIBRARY_PATH
  9024. fi
  9025. ;;
  9026. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9027. version_type=freebsd-elf
  9028. need_lib_prefix=no
  9029. need_version=no
  9030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9031. soname_spec='${libname}${release}${shared_ext}$major'
  9032. shlibpath_var=LD_LIBRARY_PATH
  9033. shlibpath_overrides_runpath=yes
  9034. hardcode_into_libs=yes
  9035. if test "$with_gnu_ld" = yes; then
  9036. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9037. else
  9038. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9039. case $host_os in
  9040. sco3.2v5*)
  9041. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9042. ;;
  9043. esac
  9044. fi
  9045. sys_lib_dlsearch_path_spec='/usr/lib'
  9046. ;;
  9047. tpf*)
  9048. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9049. version_type=linux
  9050. need_lib_prefix=no
  9051. need_version=no
  9052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9053. shlibpath_var=LD_LIBRARY_PATH
  9054. shlibpath_overrides_runpath=no
  9055. hardcode_into_libs=yes
  9056. ;;
  9057. uts4*)
  9058. version_type=linux
  9059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9060. soname_spec='${libname}${release}${shared_ext}$major'
  9061. shlibpath_var=LD_LIBRARY_PATH
  9062. ;;
  9063. *)
  9064. dynamic_linker=no
  9065. ;;
  9066. esac
  9067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9068. $as_echo "$dynamic_linker" >&6; }
  9069. test "$dynamic_linker" = no && can_build_shared=no
  9070. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9071. if test "$GCC" = yes; then
  9072. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9073. fi
  9074. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9075. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9076. fi
  9077. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9078. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9079. fi
  9080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9081. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9082. hardcode_action=
  9083. if test -n "$hardcode_libdir_flag_spec" ||
  9084. test -n "$runpath_var" ||
  9085. test "X$hardcode_automatic" = "Xyes" ; then
  9086. # We can hardcode non-existent directories.
  9087. if test "$hardcode_direct" != no &&
  9088. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9089. # have to relink, otherwise we might link with an installed library
  9090. # when we should be linking with a yet-to-be-installed one
  9091. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9092. test "$hardcode_minus_L" != no; then
  9093. # Linking always hardcodes the temporary library directory.
  9094. hardcode_action=relink
  9095. else
  9096. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9097. hardcode_action=immediate
  9098. fi
  9099. else
  9100. # We cannot hardcode anything, or else we can only hardcode existing
  9101. # directories.
  9102. hardcode_action=unsupported
  9103. fi
  9104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9105. $as_echo "$hardcode_action" >&6; }
  9106. if test "$hardcode_action" = relink ||
  9107. test "$inherit_rpath" = yes; then
  9108. # Fast installation is not supported
  9109. enable_fast_install=no
  9110. elif test "$shlibpath_overrides_runpath" = yes ||
  9111. test "$enable_shared" = no; then
  9112. # Fast installation is not necessary
  9113. enable_fast_install=needless
  9114. fi
  9115. if test "x$enable_dlopen" != xyes; then
  9116. enable_dlopen=unknown
  9117. enable_dlopen_self=unknown
  9118. enable_dlopen_self_static=unknown
  9119. else
  9120. lt_cv_dlopen=no
  9121. lt_cv_dlopen_libs=
  9122. case $host_os in
  9123. beos*)
  9124. lt_cv_dlopen="load_add_on"
  9125. lt_cv_dlopen_libs=
  9126. lt_cv_dlopen_self=yes
  9127. ;;
  9128. mingw* | pw32* | cegcc*)
  9129. lt_cv_dlopen="LoadLibrary"
  9130. lt_cv_dlopen_libs=
  9131. ;;
  9132. cygwin*)
  9133. lt_cv_dlopen="dlopen"
  9134. lt_cv_dlopen_libs=
  9135. ;;
  9136. darwin*)
  9137. # if libdl is installed we need to link against it
  9138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9139. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9140. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9141. $as_echo_n "(cached) " >&6
  9142. else
  9143. ac_check_lib_save_LIBS=$LIBS
  9144. LIBS="-ldl $LIBS"
  9145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9146. /* end confdefs.h. */
  9147. /* Override any GCC internal prototype to avoid an error.
  9148. Use char because int might match the return type of a GCC
  9149. builtin and then its argument prototype would still apply. */
  9150. #ifdef __cplusplus
  9151. extern "C"
  9152. #endif
  9153. char dlopen ();
  9154. int
  9155. main ()
  9156. {
  9157. return dlopen ();
  9158. ;
  9159. return 0;
  9160. }
  9161. _ACEOF
  9162. if ac_fn_c_try_link "$LINENO"; then :
  9163. ac_cv_lib_dl_dlopen=yes
  9164. else
  9165. ac_cv_lib_dl_dlopen=no
  9166. fi
  9167. rm -f core conftest.err conftest.$ac_objext \
  9168. conftest$ac_exeext conftest.$ac_ext
  9169. LIBS=$ac_check_lib_save_LIBS
  9170. fi
  9171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9172. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9173. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9174. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9175. else
  9176. lt_cv_dlopen="dyld"
  9177. lt_cv_dlopen_libs=
  9178. lt_cv_dlopen_self=yes
  9179. fi
  9180. ;;
  9181. *)
  9182. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9183. if test "x$ac_cv_func_shl_load" = xyes; then :
  9184. lt_cv_dlopen="shl_load"
  9185. else
  9186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9187. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9188. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9189. $as_echo_n "(cached) " >&6
  9190. else
  9191. ac_check_lib_save_LIBS=$LIBS
  9192. LIBS="-ldld $LIBS"
  9193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9194. /* end confdefs.h. */
  9195. /* Override any GCC internal prototype to avoid an error.
  9196. Use char because int might match the return type of a GCC
  9197. builtin and then its argument prototype would still apply. */
  9198. #ifdef __cplusplus
  9199. extern "C"
  9200. #endif
  9201. char shl_load ();
  9202. int
  9203. main ()
  9204. {
  9205. return shl_load ();
  9206. ;
  9207. return 0;
  9208. }
  9209. _ACEOF
  9210. if ac_fn_c_try_link "$LINENO"; then :
  9211. ac_cv_lib_dld_shl_load=yes
  9212. else
  9213. ac_cv_lib_dld_shl_load=no
  9214. fi
  9215. rm -f core conftest.err conftest.$ac_objext \
  9216. conftest$ac_exeext conftest.$ac_ext
  9217. LIBS=$ac_check_lib_save_LIBS
  9218. fi
  9219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9220. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9221. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9222. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9223. else
  9224. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9225. if test "x$ac_cv_func_dlopen" = xyes; then :
  9226. lt_cv_dlopen="dlopen"
  9227. else
  9228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9229. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9230. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9231. $as_echo_n "(cached) " >&6
  9232. else
  9233. ac_check_lib_save_LIBS=$LIBS
  9234. LIBS="-ldl $LIBS"
  9235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9236. /* end confdefs.h. */
  9237. /* Override any GCC internal prototype to avoid an error.
  9238. Use char because int might match the return type of a GCC
  9239. builtin and then its argument prototype would still apply. */
  9240. #ifdef __cplusplus
  9241. extern "C"
  9242. #endif
  9243. char dlopen ();
  9244. int
  9245. main ()
  9246. {
  9247. return dlopen ();
  9248. ;
  9249. return 0;
  9250. }
  9251. _ACEOF
  9252. if ac_fn_c_try_link "$LINENO"; then :
  9253. ac_cv_lib_dl_dlopen=yes
  9254. else
  9255. ac_cv_lib_dl_dlopen=no
  9256. fi
  9257. rm -f core conftest.err conftest.$ac_objext \
  9258. conftest$ac_exeext conftest.$ac_ext
  9259. LIBS=$ac_check_lib_save_LIBS
  9260. fi
  9261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9262. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9263. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9264. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9265. else
  9266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9267. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9268. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9269. $as_echo_n "(cached) " >&6
  9270. else
  9271. ac_check_lib_save_LIBS=$LIBS
  9272. LIBS="-lsvld $LIBS"
  9273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9274. /* end confdefs.h. */
  9275. /* Override any GCC internal prototype to avoid an error.
  9276. Use char because int might match the return type of a GCC
  9277. builtin and then its argument prototype would still apply. */
  9278. #ifdef __cplusplus
  9279. extern "C"
  9280. #endif
  9281. char dlopen ();
  9282. int
  9283. main ()
  9284. {
  9285. return dlopen ();
  9286. ;
  9287. return 0;
  9288. }
  9289. _ACEOF
  9290. if ac_fn_c_try_link "$LINENO"; then :
  9291. ac_cv_lib_svld_dlopen=yes
  9292. else
  9293. ac_cv_lib_svld_dlopen=no
  9294. fi
  9295. rm -f core conftest.err conftest.$ac_objext \
  9296. conftest$ac_exeext conftest.$ac_ext
  9297. LIBS=$ac_check_lib_save_LIBS
  9298. fi
  9299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9300. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9301. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9302. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9303. else
  9304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9305. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9306. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9307. $as_echo_n "(cached) " >&6
  9308. else
  9309. ac_check_lib_save_LIBS=$LIBS
  9310. LIBS="-ldld $LIBS"
  9311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9312. /* end confdefs.h. */
  9313. /* Override any GCC internal prototype to avoid an error.
  9314. Use char because int might match the return type of a GCC
  9315. builtin and then its argument prototype would still apply. */
  9316. #ifdef __cplusplus
  9317. extern "C"
  9318. #endif
  9319. char dld_link ();
  9320. int
  9321. main ()
  9322. {
  9323. return dld_link ();
  9324. ;
  9325. return 0;
  9326. }
  9327. _ACEOF
  9328. if ac_fn_c_try_link "$LINENO"; then :
  9329. ac_cv_lib_dld_dld_link=yes
  9330. else
  9331. ac_cv_lib_dld_dld_link=no
  9332. fi
  9333. rm -f core conftest.err conftest.$ac_objext \
  9334. conftest$ac_exeext conftest.$ac_ext
  9335. LIBS=$ac_check_lib_save_LIBS
  9336. fi
  9337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9338. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9339. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9340. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9341. fi
  9342. fi
  9343. fi
  9344. fi
  9345. fi
  9346. fi
  9347. ;;
  9348. esac
  9349. if test "x$lt_cv_dlopen" != xno; then
  9350. enable_dlopen=yes
  9351. else
  9352. enable_dlopen=no
  9353. fi
  9354. case $lt_cv_dlopen in
  9355. dlopen)
  9356. save_CPPFLAGS="$CPPFLAGS"
  9357. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9358. save_LDFLAGS="$LDFLAGS"
  9359. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9360. save_LIBS="$LIBS"
  9361. LIBS="$lt_cv_dlopen_libs $LIBS"
  9362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9363. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9364. if ${lt_cv_dlopen_self+:} false; then :
  9365. $as_echo_n "(cached) " >&6
  9366. else
  9367. if test "$cross_compiling" = yes; then :
  9368. lt_cv_dlopen_self=cross
  9369. else
  9370. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9371. lt_status=$lt_dlunknown
  9372. cat > conftest.$ac_ext <<_LT_EOF
  9373. #line $LINENO "configure"
  9374. #include "confdefs.h"
  9375. #if HAVE_DLFCN_H
  9376. #include <dlfcn.h>
  9377. #endif
  9378. #include <stdio.h>
  9379. #ifdef RTLD_GLOBAL
  9380. # define LT_DLGLOBAL RTLD_GLOBAL
  9381. #else
  9382. # ifdef DL_GLOBAL
  9383. # define LT_DLGLOBAL DL_GLOBAL
  9384. # else
  9385. # define LT_DLGLOBAL 0
  9386. # endif
  9387. #endif
  9388. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9389. find out it does not work in some platform. */
  9390. #ifndef LT_DLLAZY_OR_NOW
  9391. # ifdef RTLD_LAZY
  9392. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9393. # else
  9394. # ifdef DL_LAZY
  9395. # define LT_DLLAZY_OR_NOW DL_LAZY
  9396. # else
  9397. # ifdef RTLD_NOW
  9398. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9399. # else
  9400. # ifdef DL_NOW
  9401. # define LT_DLLAZY_OR_NOW DL_NOW
  9402. # else
  9403. # define LT_DLLAZY_OR_NOW 0
  9404. # endif
  9405. # endif
  9406. # endif
  9407. # endif
  9408. #endif
  9409. /* When -fvisbility=hidden is used, assume the code has been annotated
  9410. correspondingly for the symbols needed. */
  9411. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9412. int fnord () __attribute__((visibility("default")));
  9413. #endif
  9414. int fnord () { return 42; }
  9415. int main ()
  9416. {
  9417. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9418. int status = $lt_dlunknown;
  9419. if (self)
  9420. {
  9421. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9422. else
  9423. {
  9424. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9425. else puts (dlerror ());
  9426. }
  9427. /* dlclose (self); */
  9428. }
  9429. else
  9430. puts (dlerror ());
  9431. return status;
  9432. }
  9433. _LT_EOF
  9434. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9435. (eval $ac_link) 2>&5
  9436. ac_status=$?
  9437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9438. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9439. (./conftest; exit; ) >&5 2>/dev/null
  9440. lt_status=$?
  9441. case x$lt_status in
  9442. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9443. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9444. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9445. esac
  9446. else :
  9447. # compilation failed
  9448. lt_cv_dlopen_self=no
  9449. fi
  9450. fi
  9451. rm -fr conftest*
  9452. fi
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9454. $as_echo "$lt_cv_dlopen_self" >&6; }
  9455. if test "x$lt_cv_dlopen_self" = xyes; then
  9456. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9458. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9459. if ${lt_cv_dlopen_self_static+:} false; then :
  9460. $as_echo_n "(cached) " >&6
  9461. else
  9462. if test "$cross_compiling" = yes; then :
  9463. lt_cv_dlopen_self_static=cross
  9464. else
  9465. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9466. lt_status=$lt_dlunknown
  9467. cat > conftest.$ac_ext <<_LT_EOF
  9468. #line $LINENO "configure"
  9469. #include "confdefs.h"
  9470. #if HAVE_DLFCN_H
  9471. #include <dlfcn.h>
  9472. #endif
  9473. #include <stdio.h>
  9474. #ifdef RTLD_GLOBAL
  9475. # define LT_DLGLOBAL RTLD_GLOBAL
  9476. #else
  9477. # ifdef DL_GLOBAL
  9478. # define LT_DLGLOBAL DL_GLOBAL
  9479. # else
  9480. # define LT_DLGLOBAL 0
  9481. # endif
  9482. #endif
  9483. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9484. find out it does not work in some platform. */
  9485. #ifndef LT_DLLAZY_OR_NOW
  9486. # ifdef RTLD_LAZY
  9487. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9488. # else
  9489. # ifdef DL_LAZY
  9490. # define LT_DLLAZY_OR_NOW DL_LAZY
  9491. # else
  9492. # ifdef RTLD_NOW
  9493. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9494. # else
  9495. # ifdef DL_NOW
  9496. # define LT_DLLAZY_OR_NOW DL_NOW
  9497. # else
  9498. # define LT_DLLAZY_OR_NOW 0
  9499. # endif
  9500. # endif
  9501. # endif
  9502. # endif
  9503. #endif
  9504. /* When -fvisbility=hidden is used, assume the code has been annotated
  9505. correspondingly for the symbols needed. */
  9506. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9507. int fnord () __attribute__((visibility("default")));
  9508. #endif
  9509. int fnord () { return 42; }
  9510. int main ()
  9511. {
  9512. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9513. int status = $lt_dlunknown;
  9514. if (self)
  9515. {
  9516. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9517. else
  9518. {
  9519. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9520. else puts (dlerror ());
  9521. }
  9522. /* dlclose (self); */
  9523. }
  9524. else
  9525. puts (dlerror ());
  9526. return status;
  9527. }
  9528. _LT_EOF
  9529. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9530. (eval $ac_link) 2>&5
  9531. ac_status=$?
  9532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9533. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9534. (./conftest; exit; ) >&5 2>/dev/null
  9535. lt_status=$?
  9536. case x$lt_status in
  9537. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9538. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9539. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9540. esac
  9541. else :
  9542. # compilation failed
  9543. lt_cv_dlopen_self_static=no
  9544. fi
  9545. fi
  9546. rm -fr conftest*
  9547. fi
  9548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9549. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9550. fi
  9551. CPPFLAGS="$save_CPPFLAGS"
  9552. LDFLAGS="$save_LDFLAGS"
  9553. LIBS="$save_LIBS"
  9554. ;;
  9555. esac
  9556. case $lt_cv_dlopen_self in
  9557. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9558. *) enable_dlopen_self=unknown ;;
  9559. esac
  9560. case $lt_cv_dlopen_self_static in
  9561. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9562. *) enable_dlopen_self_static=unknown ;;
  9563. esac
  9564. fi
  9565. striplib=
  9566. old_striplib=
  9567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9568. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9569. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9570. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9571. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9573. $as_echo "yes" >&6; }
  9574. else
  9575. # FIXME - insert some real tests, host_os isn't really good enough
  9576. case $host_os in
  9577. darwin*)
  9578. if test -n "$STRIP" ; then
  9579. striplib="$STRIP -x"
  9580. old_striplib="$STRIP -S"
  9581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9582. $as_echo "yes" >&6; }
  9583. else
  9584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9585. $as_echo "no" >&6; }
  9586. fi
  9587. ;;
  9588. *)
  9589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9590. $as_echo "no" >&6; }
  9591. ;;
  9592. esac
  9593. fi
  9594. # Report which library types will actually be built
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9596. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9598. $as_echo "$can_build_shared" >&6; }
  9599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9600. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9601. test "$can_build_shared" = "no" && enable_shared=no
  9602. # On AIX, shared libraries and static libraries use the same namespace, and
  9603. # are all built from PIC.
  9604. case $host_os in
  9605. aix3*)
  9606. test "$enable_shared" = yes && enable_static=no
  9607. if test -n "$RANLIB"; then
  9608. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9609. postinstall_cmds='$RANLIB $lib'
  9610. fi
  9611. ;;
  9612. aix[4-9]*)
  9613. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9614. test "$enable_shared" = yes && enable_static=no
  9615. fi
  9616. ;;
  9617. esac
  9618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9619. $as_echo "$enable_shared" >&6; }
  9620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9621. $as_echo_n "checking whether to build static libraries... " >&6; }
  9622. # Make sure either enable_shared or enable_static is yes.
  9623. test "$enable_shared" = yes || enable_static=yes
  9624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9625. $as_echo "$enable_static" >&6; }
  9626. fi
  9627. ac_ext=c
  9628. ac_cpp='$CPP $CPPFLAGS'
  9629. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9630. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9631. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9632. CC="$lt_save_CC"
  9633. ac_config_commands="$ac_config_commands libtool"
  9634. # Only expand once:
  9635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
  9636. $as_echo_n "checking for exp in -lm... " >&6; }
  9637. if ${ac_cv_lib_m_exp+:} false; then :
  9638. $as_echo_n "(cached) " >&6
  9639. else
  9640. ac_check_lib_save_LIBS=$LIBS
  9641. LIBS="-lm $LIBS"
  9642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9643. /* end confdefs.h. */
  9644. /* Override any GCC internal prototype to avoid an error.
  9645. Use char because int might match the return type of a GCC
  9646. builtin and then its argument prototype would still apply. */
  9647. #ifdef __cplusplus
  9648. extern "C"
  9649. #endif
  9650. char exp ();
  9651. int
  9652. main ()
  9653. {
  9654. return exp ();
  9655. ;
  9656. return 0;
  9657. }
  9658. _ACEOF
  9659. if ac_fn_c_try_link "$LINENO"; then :
  9660. ac_cv_lib_m_exp=yes
  9661. else
  9662. ac_cv_lib_m_exp=no
  9663. fi
  9664. rm -f core conftest.err conftest.$ac_objext \
  9665. conftest$ac_exeext conftest.$ac_ext
  9666. LIBS=$ac_check_lib_save_LIBS
  9667. fi
  9668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
  9669. $as_echo "$ac_cv_lib_m_exp" >&6; }
  9670. if test "x$ac_cv_lib_m_exp" = xyes; then :
  9671. cat >>confdefs.h <<_ACEOF
  9672. #define HAVE_LIBM 1
  9673. _ACEOF
  9674. LIBS="-lm $LIBS"
  9675. fi
  9676. ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  9677. if test "x$ac_cv_header_sys_time_h" = xyes; then :
  9678. $as_echo "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  9679. fi
  9680. ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  9681. if test "x$ac_cv_func_gettimeofday" = xyes; then :
  9682. $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
  9683. fi
  9684. if test "$with_gmp" = "yes"; then
  9685. ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
  9686. if test "x$ac_cv_header_gmp_h" = xyes; then :
  9687. else
  9688. as_fn_error $? "gmp.h header not found" "$LINENO" 5
  9689. fi
  9690. fi
  9691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GNU MP bignum library" >&5
  9692. $as_echo_n "checking whether to use GNU MP bignum library... " >&6; }
  9693. if test "$with_gmp" = "yes"; then
  9694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9695. $as_echo "yes" >&6; }
  9696. $as_echo "#define HAVE_GMP 1" >>confdefs.h
  9697. LIBS="-lgmp $LIBS"
  9698. else
  9699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9700. $as_echo "no" >&6; }
  9701. fi
  9702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable shared library support" >&5
  9703. $as_echo_n "checking whether to enable shared library support... " >&6; }
  9704. if test "$enable_dl" = "yes"; then
  9705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
  9706. $as_echo "ltdl" >&6; }
  9707. $as_echo "#define HAVE_LTDL 1" >>confdefs.h
  9708. LIBS="-lltdl $LIBS"
  9709. elif test "$enable_dl" = "ltdl"; then
  9710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
  9711. $as_echo "ltdl" >&6; }
  9712. $as_echo "#define HAVE_LTDL 1" >>confdefs.h
  9713. LIBS="-lltdl $LIBS"
  9714. elif test "$enable_dl" = "dlfcn"; then
  9715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: dlfcn" >&5
  9716. $as_echo "dlfcn" >&6; }
  9717. $as_echo "#define HAVE_DLFCN 1" >>confdefs.h
  9718. else
  9719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9720. $as_echo "no" >&6; }
  9721. fi
  9722. case $host_os in
  9723. darwin* | macosx*)
  9724. LIBIODBC="libiodbc.dylib"
  9725. LIBODBC="libodbc.dylib"
  9726. LIBMYSQL="libmysqlclient.dylib"
  9727. ;;
  9728. *)
  9729. LIBIODBC="libiodbc.so"
  9730. LIBODBC="libodbc.so"
  9731. LIBMYSQL="libmysqlclient.so"
  9732. ;;
  9733. esac
  9734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MathProg ODBC support" >&5
  9735. $as_echo_n "checking whether to enable MathProg ODBC support... " >&6; }
  9736. if test "$enable_odbc" = "yes"; then
  9737. if test "$enable_dl" = "no"; then
  9738. as_fn_error $? "--enable-odbc requires --enable-dl" "$LINENO" 5
  9739. fi
  9740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9741. $as_echo "yes" >&6; }
  9742. CFLAGS="$(iodbc-config --cflags) $CFLAGS"
  9743. cat >>confdefs.h <<_ACEOF
  9744. #define ODBC_DLNAME "$LIBIODBC"
  9745. _ACEOF
  9746. elif test "$enable_odbc" = "unix"; then
  9747. if test "$enable_dl" = "no"; then
  9748. as_fn_error $? "--enable-odbc requires --enable-dl" "$LINENO" 5
  9749. fi
  9750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix" >&5
  9751. $as_echo "unix" >&6; }
  9752. cat >>confdefs.h <<_ACEOF
  9753. #define ODBC_DLNAME "$LIBODBC"
  9754. _ACEOF
  9755. else
  9756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9757. $as_echo "no" >&6; }
  9758. fi
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MathProg MySQL support" >&5
  9760. $as_echo_n "checking whether to enable MathProg MySQL support... " >&6; }
  9761. if test "$enable_mysql" = "yes"; then
  9762. if test "$enable_dl" = "no"; then
  9763. as_fn_error $? "--enable-mysql requires --enable-dl" "$LINENO" 5
  9764. fi
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9766. $as_echo "yes" >&6; }
  9767. CPPFLAGS="-I/usr/include/mysql $CPPFLAGS"
  9768. cat >>confdefs.h <<_ACEOF
  9769. #define MYSQL_DLNAME "$LIBMYSQL"
  9770. _ACEOF
  9771. else
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9773. $as_echo "no" >&6; }
  9774. fi
  9775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable reentrancy support" >&5
  9776. $as_echo_n "checking whether to enable reentrancy support... " >&6; }
  9777. if test "$enable_reentrant" = "yes"; then
  9778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9779. $as_echo "yes" >&6; }
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class specifier" >&5
  9781. $as_echo_n "checking for thread local storage (TLS) class specifier... " >&6; }
  9782. keywords="_Thread_local __thread __declspec(thread)"
  9783. tls=none
  9784. for tls_keyword in $keywords; do
  9785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9786. /* end confdefs.h. */
  9787. #include <stdlib.h>
  9788. static void foo(void)
  9789. { static $tls_keyword int bar;
  9790. exit(1);
  9791. }
  9792. _ACEOF
  9793. if ac_fn_c_try_compile "$LINENO"; then :
  9794. tls=$tls_keyword; break
  9795. fi
  9796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9797. done
  9798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tls" >&5
  9799. $as_echo "$tls" >&6; }
  9800. if test "$tls" != "none"; then
  9801. cat >>confdefs.h <<_ACEOF
  9802. #define TLS $tls
  9803. _ACEOF
  9804. else
  9805. as_fn_error $? "Reentrancy needs complier support for TLS" "$LINENO" 5
  9806. fi
  9807. else
  9808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9809. $as_echo "no" >&6; }
  9810. fi
  9811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool needs -no-undefined flag to build shared libraries" >&5
  9812. $as_echo_n "checking if libtool needs -no-undefined flag to build shared libraries... " >&6; }
  9813. case "${host}" in
  9814. *-*-cygwin* | *-*-mingw* | *-*-aix*)
  9815. ## Add in the -no-undefined flag to LDFLAGS for libtool.
  9816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9817. $as_echo "yes" >&6; }
  9818. NOUNDEFINED=" -no-undefined"
  9819. ;;
  9820. *)
  9821. ## Don't add in anything.
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9823. $as_echo "no" >&6; }
  9824. ;;
  9825. esac
  9826. ac_config_files="$ac_config_files src/Makefile examples/Makefile Makefile"
  9827. cat >confcache <<\_ACEOF
  9828. # This file is a shell script that caches the results of configure
  9829. # tests run on this system so they can be shared between configure
  9830. # scripts and configure runs, see configure's option --config-cache.
  9831. # It is not useful on other systems. If it contains results you don't
  9832. # want to keep, you may remove or edit it.
  9833. #
  9834. # config.status only pays attention to the cache file if you give it
  9835. # the --recheck option to rerun configure.
  9836. #
  9837. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9838. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9839. # following values.
  9840. _ACEOF
  9841. # The following way of writing the cache mishandles newlines in values,
  9842. # but we know of no workaround that is simple, portable, and efficient.
  9843. # So, we kill variables containing newlines.
  9844. # Ultrix sh set writes to stderr and can't be redirected directly,
  9845. # and sets the high bit in the cache file unless we assign to the vars.
  9846. (
  9847. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9848. eval ac_val=\$$ac_var
  9849. case $ac_val in #(
  9850. *${as_nl}*)
  9851. case $ac_var in #(
  9852. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9853. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9854. esac
  9855. case $ac_var in #(
  9856. _ | IFS | as_nl) ;; #(
  9857. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9858. *) { eval $ac_var=; unset $ac_var;} ;;
  9859. esac ;;
  9860. esac
  9861. done
  9862. (set) 2>&1 |
  9863. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9864. *${as_nl}ac_space=\ *)
  9865. # `set' does not quote correctly, so add quotes: double-quote
  9866. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9867. sed -n \
  9868. "s/'/'\\\\''/g;
  9869. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9870. ;; #(
  9871. *)
  9872. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9873. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9874. ;;
  9875. esac |
  9876. sort
  9877. ) |
  9878. sed '
  9879. /^ac_cv_env_/b end
  9880. t clear
  9881. :clear
  9882. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9883. t end
  9884. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9885. :end' >>confcache
  9886. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9887. if test -w "$cache_file"; then
  9888. if test "x$cache_file" != "x/dev/null"; then
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9890. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9891. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9892. cat confcache >"$cache_file"
  9893. else
  9894. case $cache_file in #(
  9895. */* | ?:*)
  9896. mv -f confcache "$cache_file"$$ &&
  9897. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9898. *)
  9899. mv -f confcache "$cache_file" ;;
  9900. esac
  9901. fi
  9902. fi
  9903. else
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9905. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9906. fi
  9907. fi
  9908. rm -f confcache
  9909. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9910. # Let make expand exec_prefix.
  9911. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9912. DEFS=-DHAVE_CONFIG_H
  9913. ac_libobjs=
  9914. ac_ltlibobjs=
  9915. U=
  9916. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9917. # 1. Remove the extension, and $U if already installed.
  9918. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9919. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9920. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9921. # will be set to the directory where LIBOBJS objects are built.
  9922. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9923. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9924. done
  9925. LIBOBJS=$ac_libobjs
  9926. LTLIBOBJS=$ac_ltlibobjs
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  9928. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  9929. if test -n "$am_sleep_pid"; then
  9930. # Hide warnings about reused PIDs.
  9931. wait $am_sleep_pid 2>/dev/null
  9932. fi
  9933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  9934. $as_echo "done" >&6; }
  9935. if test -n "$EXEEXT"; then
  9936. am__EXEEXT_TRUE=
  9937. am__EXEEXT_FALSE='#'
  9938. else
  9939. am__EXEEXT_TRUE='#'
  9940. am__EXEEXT_FALSE=
  9941. fi
  9942. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9943. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9944. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9945. fi
  9946. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9947. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9948. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9949. fi
  9950. : "${CONFIG_STATUS=./config.status}"
  9951. ac_write_fail=0
  9952. ac_clean_files_save=$ac_clean_files
  9953. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9954. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9955. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9956. as_write_fail=0
  9957. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9958. #! $SHELL
  9959. # Generated by $as_me.
  9960. # Run this file to recreate the current configuration.
  9961. # Compiler output produced by configure, useful for debugging
  9962. # configure, is in config.log if it exists.
  9963. debug=false
  9964. ac_cs_recheck=false
  9965. ac_cs_silent=false
  9966. SHELL=\${CONFIG_SHELL-$SHELL}
  9967. export SHELL
  9968. _ASEOF
  9969. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9970. ## -------------------- ##
  9971. ## M4sh Initialization. ##
  9972. ## -------------------- ##
  9973. # Be more Bourne compatible
  9974. DUALCASE=1; export DUALCASE # for MKS sh
  9975. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9976. emulate sh
  9977. NULLCMD=:
  9978. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9979. # is contrary to our usage. Disable this feature.
  9980. alias -g '${1+"$@"}'='"$@"'
  9981. setopt NO_GLOB_SUBST
  9982. else
  9983. case `(set -o) 2>/dev/null` in #(
  9984. *posix*) :
  9985. set -o posix ;; #(
  9986. *) :
  9987. ;;
  9988. esac
  9989. fi
  9990. as_nl='
  9991. '
  9992. export as_nl
  9993. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9994. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9995. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9996. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9997. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9998. # but without wasting forks for bash or zsh.
  9999. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10000. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10001. as_echo='print -r --'
  10002. as_echo_n='print -rn --'
  10003. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10004. as_echo='printf %s\n'
  10005. as_echo_n='printf %s'
  10006. else
  10007. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10008. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10009. as_echo_n='/usr/ucb/echo -n'
  10010. else
  10011. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10012. as_echo_n_body='eval
  10013. arg=$1;
  10014. case $arg in #(
  10015. *"$as_nl"*)
  10016. expr "X$arg" : "X\\(.*\\)$as_nl";
  10017. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10018. esac;
  10019. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10020. '
  10021. export as_echo_n_body
  10022. as_echo_n='sh -c $as_echo_n_body as_echo'
  10023. fi
  10024. export as_echo_body
  10025. as_echo='sh -c $as_echo_body as_echo'
  10026. fi
  10027. # The user is always right.
  10028. if test "${PATH_SEPARATOR+set}" != set; then
  10029. PATH_SEPARATOR=:
  10030. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10031. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10032. PATH_SEPARATOR=';'
  10033. }
  10034. fi
  10035. # IFS
  10036. # We need space, tab and new line, in precisely that order. Quoting is
  10037. # there to prevent editors from complaining about space-tab.
  10038. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10039. # splitting by setting IFS to empty value.)
  10040. IFS=" "" $as_nl"
  10041. # Find who we are. Look in the path if we contain no directory separator.
  10042. as_myself=
  10043. case $0 in #((
  10044. *[\\/]* ) as_myself=$0 ;;
  10045. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10046. for as_dir in $PATH
  10047. do
  10048. IFS=$as_save_IFS
  10049. test -z "$as_dir" && as_dir=.
  10050. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10051. done
  10052. IFS=$as_save_IFS
  10053. ;;
  10054. esac
  10055. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10056. # in which case we are not to be found in the path.
  10057. if test "x$as_myself" = x; then
  10058. as_myself=$0
  10059. fi
  10060. if test ! -f "$as_myself"; then
  10061. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10062. exit 1
  10063. fi
  10064. # Unset variables that we do not need and which cause bugs (e.g. in
  10065. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10066. # suppresses any "Segmentation fault" message there. '((' could
  10067. # trigger a bug in pdksh 5.2.14.
  10068. for as_var in BASH_ENV ENV MAIL MAILPATH
  10069. do eval test x\${$as_var+set} = xset \
  10070. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10071. done
  10072. PS1='$ '
  10073. PS2='> '
  10074. PS4='+ '
  10075. # NLS nuisances.
  10076. LC_ALL=C
  10077. export LC_ALL
  10078. LANGUAGE=C
  10079. export LANGUAGE
  10080. # CDPATH.
  10081. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10082. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10083. # ----------------------------------------
  10084. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10085. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10086. # script with STATUS, using 1 if that was 0.
  10087. as_fn_error ()
  10088. {
  10089. as_status=$1; test $as_status -eq 0 && as_status=1
  10090. if test "$4"; then
  10091. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10092. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10093. fi
  10094. $as_echo "$as_me: error: $2" >&2
  10095. as_fn_exit $as_status
  10096. } # as_fn_error
  10097. # as_fn_set_status STATUS
  10098. # -----------------------
  10099. # Set $? to STATUS, without forking.
  10100. as_fn_set_status ()
  10101. {
  10102. return $1
  10103. } # as_fn_set_status
  10104. # as_fn_exit STATUS
  10105. # -----------------
  10106. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10107. as_fn_exit ()
  10108. {
  10109. set +e
  10110. as_fn_set_status $1
  10111. exit $1
  10112. } # as_fn_exit
  10113. # as_fn_unset VAR
  10114. # ---------------
  10115. # Portably unset VAR.
  10116. as_fn_unset ()
  10117. {
  10118. { eval $1=; unset $1;}
  10119. }
  10120. as_unset=as_fn_unset
  10121. # as_fn_append VAR VALUE
  10122. # ----------------------
  10123. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10124. # advantage of any shell optimizations that allow amortized linear growth over
  10125. # repeated appends, instead of the typical quadratic growth present in naive
  10126. # implementations.
  10127. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10128. eval 'as_fn_append ()
  10129. {
  10130. eval $1+=\$2
  10131. }'
  10132. else
  10133. as_fn_append ()
  10134. {
  10135. eval $1=\$$1\$2
  10136. }
  10137. fi # as_fn_append
  10138. # as_fn_arith ARG...
  10139. # ------------------
  10140. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10141. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10142. # must be portable across $(()) and expr.
  10143. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10144. eval 'as_fn_arith ()
  10145. {
  10146. as_val=$(( $* ))
  10147. }'
  10148. else
  10149. as_fn_arith ()
  10150. {
  10151. as_val=`expr "$@" || test $? -eq 1`
  10152. }
  10153. fi # as_fn_arith
  10154. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10155. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10156. as_expr=expr
  10157. else
  10158. as_expr=false
  10159. fi
  10160. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10161. as_basename=basename
  10162. else
  10163. as_basename=false
  10164. fi
  10165. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10166. as_dirname=dirname
  10167. else
  10168. as_dirname=false
  10169. fi
  10170. as_me=`$as_basename -- "$0" ||
  10171. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10172. X"$0" : 'X\(//\)$' \| \
  10173. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10174. $as_echo X/"$0" |
  10175. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10176. s//\1/
  10177. q
  10178. }
  10179. /^X\/\(\/\/\)$/{
  10180. s//\1/
  10181. q
  10182. }
  10183. /^X\/\(\/\).*/{
  10184. s//\1/
  10185. q
  10186. }
  10187. s/.*/./; q'`
  10188. # Avoid depending upon Character Ranges.
  10189. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10190. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10191. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10192. as_cr_digits='0123456789'
  10193. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10194. ECHO_C= ECHO_N= ECHO_T=
  10195. case `echo -n x` in #(((((
  10196. -n*)
  10197. case `echo 'xy\c'` in
  10198. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10199. xy) ECHO_C='\c';;
  10200. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10201. ECHO_T=' ';;
  10202. esac;;
  10203. *)
  10204. ECHO_N='-n';;
  10205. esac
  10206. rm -f conf$$ conf$$.exe conf$$.file
  10207. if test -d conf$$.dir; then
  10208. rm -f conf$$.dir/conf$$.file
  10209. else
  10210. rm -f conf$$.dir
  10211. mkdir conf$$.dir 2>/dev/null
  10212. fi
  10213. if (echo >conf$$.file) 2>/dev/null; then
  10214. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10215. as_ln_s='ln -s'
  10216. # ... but there are two gotchas:
  10217. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10218. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10219. # In both cases, we have to default to `cp -pR'.
  10220. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10221. as_ln_s='cp -pR'
  10222. elif ln conf$$.file conf$$ 2>/dev/null; then
  10223. as_ln_s=ln
  10224. else
  10225. as_ln_s='cp -pR'
  10226. fi
  10227. else
  10228. as_ln_s='cp -pR'
  10229. fi
  10230. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10231. rmdir conf$$.dir 2>/dev/null
  10232. # as_fn_mkdir_p
  10233. # -------------
  10234. # Create "$as_dir" as a directory, including parents if necessary.
  10235. as_fn_mkdir_p ()
  10236. {
  10237. case $as_dir in #(
  10238. -*) as_dir=./$as_dir;;
  10239. esac
  10240. test -d "$as_dir" || eval $as_mkdir_p || {
  10241. as_dirs=
  10242. while :; do
  10243. case $as_dir in #(
  10244. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10245. *) as_qdir=$as_dir;;
  10246. esac
  10247. as_dirs="'$as_qdir' $as_dirs"
  10248. as_dir=`$as_dirname -- "$as_dir" ||
  10249. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10250. X"$as_dir" : 'X\(//\)[^/]' \| \
  10251. X"$as_dir" : 'X\(//\)$' \| \
  10252. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10253. $as_echo X"$as_dir" |
  10254. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10255. s//\1/
  10256. q
  10257. }
  10258. /^X\(\/\/\)[^/].*/{
  10259. s//\1/
  10260. q
  10261. }
  10262. /^X\(\/\/\)$/{
  10263. s//\1/
  10264. q
  10265. }
  10266. /^X\(\/\).*/{
  10267. s//\1/
  10268. q
  10269. }
  10270. s/.*/./; q'`
  10271. test -d "$as_dir" && break
  10272. done
  10273. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10274. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10275. } # as_fn_mkdir_p
  10276. if mkdir -p . 2>/dev/null; then
  10277. as_mkdir_p='mkdir -p "$as_dir"'
  10278. else
  10279. test -d ./-p && rmdir ./-p
  10280. as_mkdir_p=false
  10281. fi
  10282. # as_fn_executable_p FILE
  10283. # -----------------------
  10284. # Test if FILE is an executable regular file.
  10285. as_fn_executable_p ()
  10286. {
  10287. test -f "$1" && test -x "$1"
  10288. } # as_fn_executable_p
  10289. as_test_x='test -x'
  10290. as_executable_p=as_fn_executable_p
  10291. # Sed expression to map a string onto a valid CPP name.
  10292. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10293. # Sed expression to map a string onto a valid variable name.
  10294. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10295. exec 6>&1
  10296. ## ----------------------------------- ##
  10297. ## Main body of $CONFIG_STATUS script. ##
  10298. ## ----------------------------------- ##
  10299. _ASEOF
  10300. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10301. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10302. # Save the log message, to keep $0 and so on meaningful, and to
  10303. # report actual input values of CONFIG_FILES etc. instead of their
  10304. # values after options handling.
  10305. ac_log="
  10306. This file was extended by GLPK $as_me 4.65, which was
  10307. generated by GNU Autoconf 2.69. Invocation command line was
  10308. CONFIG_FILES = $CONFIG_FILES
  10309. CONFIG_HEADERS = $CONFIG_HEADERS
  10310. CONFIG_LINKS = $CONFIG_LINKS
  10311. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10312. $ $0 $@
  10313. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10314. "
  10315. _ACEOF
  10316. case $ac_config_files in *"
  10317. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10318. esac
  10319. case $ac_config_headers in *"
  10320. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10321. esac
  10322. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10323. # Files that config.status was made for.
  10324. config_files="$ac_config_files"
  10325. config_headers="$ac_config_headers"
  10326. config_commands="$ac_config_commands"
  10327. _ACEOF
  10328. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10329. ac_cs_usage="\
  10330. \`$as_me' instantiates files and other configuration actions
  10331. from templates according to the current configuration. Unless the files
  10332. and actions are specified as TAGs, all are instantiated by default.
  10333. Usage: $0 [OPTION]... [TAG]...
  10334. -h, --help print this help, then exit
  10335. -V, --version print version number and configuration settings, then exit
  10336. --config print configuration, then exit
  10337. -q, --quiet, --silent
  10338. do not print progress messages
  10339. -d, --debug don't remove temporary files
  10340. --recheck update $as_me by reconfiguring in the same conditions
  10341. --file=FILE[:TEMPLATE]
  10342. instantiate the configuration file FILE
  10343. --header=FILE[:TEMPLATE]
  10344. instantiate the configuration header FILE
  10345. Configuration files:
  10346. $config_files
  10347. Configuration headers:
  10348. $config_headers
  10349. Configuration commands:
  10350. $config_commands
  10351. Report bugs to <bug-glpk@gnu.org>."
  10352. _ACEOF
  10353. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10354. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10355. ac_cs_version="\\
  10356. GLPK config.status 4.65
  10357. configured by $0, generated by GNU Autoconf 2.69,
  10358. with options \\"\$ac_cs_config\\"
  10359. Copyright (C) 2012 Free Software Foundation, Inc.
  10360. This config.status script is free software; the Free Software Foundation
  10361. gives unlimited permission to copy, distribute and modify it."
  10362. ac_pwd='$ac_pwd'
  10363. srcdir='$srcdir'
  10364. INSTALL='$INSTALL'
  10365. MKDIR_P='$MKDIR_P'
  10366. AWK='$AWK'
  10367. test -n "\$AWK" || AWK=awk
  10368. _ACEOF
  10369. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10370. # The default lists apply if the user does not specify any file.
  10371. ac_need_defaults=:
  10372. while test $# != 0
  10373. do
  10374. case $1 in
  10375. --*=?*)
  10376. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10377. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10378. ac_shift=:
  10379. ;;
  10380. --*=)
  10381. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10382. ac_optarg=
  10383. ac_shift=:
  10384. ;;
  10385. *)
  10386. ac_option=$1
  10387. ac_optarg=$2
  10388. ac_shift=shift
  10389. ;;
  10390. esac
  10391. case $ac_option in
  10392. # Handling of the options.
  10393. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10394. ac_cs_recheck=: ;;
  10395. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10396. $as_echo "$ac_cs_version"; exit ;;
  10397. --config | --confi | --conf | --con | --co | --c )
  10398. $as_echo "$ac_cs_config"; exit ;;
  10399. --debug | --debu | --deb | --de | --d | -d )
  10400. debug=: ;;
  10401. --file | --fil | --fi | --f )
  10402. $ac_shift
  10403. case $ac_optarg in
  10404. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10405. '') as_fn_error $? "missing file argument" ;;
  10406. esac
  10407. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10408. ac_need_defaults=false;;
  10409. --header | --heade | --head | --hea )
  10410. $ac_shift
  10411. case $ac_optarg in
  10412. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10413. esac
  10414. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10415. ac_need_defaults=false;;
  10416. --he | --h)
  10417. # Conflict between --help and --header
  10418. as_fn_error $? "ambiguous option: \`$1'
  10419. Try \`$0 --help' for more information.";;
  10420. --help | --hel | -h )
  10421. $as_echo "$ac_cs_usage"; exit ;;
  10422. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10423. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10424. ac_cs_silent=: ;;
  10425. # This is an error.
  10426. -*) as_fn_error $? "unrecognized option: \`$1'
  10427. Try \`$0 --help' for more information." ;;
  10428. *) as_fn_append ac_config_targets " $1"
  10429. ac_need_defaults=false ;;
  10430. esac
  10431. shift
  10432. done
  10433. ac_configure_extra_args=
  10434. if $ac_cs_silent; then
  10435. exec 6>/dev/null
  10436. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10437. fi
  10438. _ACEOF
  10439. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10440. if \$ac_cs_recheck; then
  10441. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10442. shift
  10443. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10444. CONFIG_SHELL='$SHELL'
  10445. export CONFIG_SHELL
  10446. exec "\$@"
  10447. fi
  10448. _ACEOF
  10449. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10450. exec 5>>config.log
  10451. {
  10452. echo
  10453. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10454. ## Running $as_me. ##
  10455. _ASBOX
  10456. $as_echo "$ac_log"
  10457. } >&5
  10458. _ACEOF
  10459. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10460. #
  10461. # INIT-COMMANDS
  10462. #
  10463. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10464. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10465. # if CDPATH is set.
  10466. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10467. sed_quote_subst='$sed_quote_subst'
  10468. double_quote_subst='$double_quote_subst'
  10469. delay_variable_subst='$delay_variable_subst'
  10470. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10471. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10472. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10473. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10474. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10475. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10476. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10477. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10478. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10479. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10480. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10481. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10482. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10483. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10484. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10485. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10486. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10487. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10488. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10489. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10490. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10491. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10492. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10493. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10494. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10495. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10496. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10497. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10498. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  10499. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  10500. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10501. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10502. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10503. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10504. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10505. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  10506. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  10507. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  10508. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  10509. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10510. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10511. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  10512. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10513. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10514. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10515. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10516. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10517. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10518. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10519. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10520. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10521. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10522. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10523. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10524. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10525. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10526. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  10527. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  10528. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10529. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10530. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10531. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10532. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10533. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10534. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10535. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10536. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  10537. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10538. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10539. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10540. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10541. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10542. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10543. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10544. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10545. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10546. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10547. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10548. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10549. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10550. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10551. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10552. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10553. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10554. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10555. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10556. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10557. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10558. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10559. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10560. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  10561. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10562. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10563. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10564. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10565. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10566. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10567. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10568. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10569. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10570. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10571. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10572. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10573. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10574. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  10575. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10576. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10577. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10578. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10579. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10580. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10581. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10582. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10583. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10584. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10585. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10586. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10587. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10588. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10589. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10590. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10591. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10592. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10593. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10594. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10595. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10596. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10597. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10598. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10599. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10600. LTCC='$LTCC'
  10601. LTCFLAGS='$LTCFLAGS'
  10602. compiler='$compiler_DEFAULT'
  10603. # A function that is used when there is no print builtin or printf.
  10604. func_fallback_echo ()
  10605. {
  10606. eval 'cat <<_LTECHO_EOF
  10607. \$1
  10608. _LTECHO_EOF'
  10609. }
  10610. # Quote evaled strings.
  10611. for var in SHELL \
  10612. ECHO \
  10613. SED \
  10614. GREP \
  10615. EGREP \
  10616. FGREP \
  10617. LD \
  10618. NM \
  10619. LN_S \
  10620. lt_SP2NL \
  10621. lt_NL2SP \
  10622. reload_flag \
  10623. OBJDUMP \
  10624. deplibs_check_method \
  10625. file_magic_cmd \
  10626. file_magic_glob \
  10627. want_nocaseglob \
  10628. DLLTOOL \
  10629. sharedlib_from_linklib_cmd \
  10630. AR \
  10631. AR_FLAGS \
  10632. archiver_list_spec \
  10633. STRIP \
  10634. RANLIB \
  10635. CC \
  10636. CFLAGS \
  10637. compiler \
  10638. lt_cv_sys_global_symbol_pipe \
  10639. lt_cv_sys_global_symbol_to_cdecl \
  10640. lt_cv_sys_global_symbol_to_c_name_address \
  10641. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10642. nm_file_list_spec \
  10643. lt_prog_compiler_no_builtin_flag \
  10644. lt_prog_compiler_pic \
  10645. lt_prog_compiler_wl \
  10646. lt_prog_compiler_static \
  10647. lt_cv_prog_compiler_c_o \
  10648. need_locks \
  10649. MANIFEST_TOOL \
  10650. DSYMUTIL \
  10651. NMEDIT \
  10652. LIPO \
  10653. OTOOL \
  10654. OTOOL64 \
  10655. shrext_cmds \
  10656. export_dynamic_flag_spec \
  10657. whole_archive_flag_spec \
  10658. compiler_needs_object \
  10659. with_gnu_ld \
  10660. allow_undefined_flag \
  10661. no_undefined_flag \
  10662. hardcode_libdir_flag_spec \
  10663. hardcode_libdir_flag_spec_ld \
  10664. hardcode_libdir_separator \
  10665. exclude_expsyms \
  10666. include_expsyms \
  10667. file_list_spec \
  10668. variables_saved_for_relink \
  10669. libname_spec \
  10670. library_names_spec \
  10671. soname_spec \
  10672. install_override_mode \
  10673. finish_eval \
  10674. old_striplib \
  10675. striplib; do
  10676. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10677. *[\\\\\\\`\\"\\\$]*)
  10678. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10679. ;;
  10680. *)
  10681. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10682. ;;
  10683. esac
  10684. done
  10685. # Double-quote double-evaled strings.
  10686. for var in reload_cmds \
  10687. old_postinstall_cmds \
  10688. old_postuninstall_cmds \
  10689. old_archive_cmds \
  10690. extract_expsyms_cmds \
  10691. old_archive_from_new_cmds \
  10692. old_archive_from_expsyms_cmds \
  10693. archive_cmds \
  10694. archive_expsym_cmds \
  10695. module_cmds \
  10696. module_expsym_cmds \
  10697. export_symbols_cmds \
  10698. prelink_cmds \
  10699. postlink_cmds \
  10700. postinstall_cmds \
  10701. postuninstall_cmds \
  10702. finish_cmds \
  10703. sys_lib_search_path_spec \
  10704. sys_lib_dlsearch_path_spec; do
  10705. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10706. *[\\\\\\\`\\"\\\$]*)
  10707. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10708. ;;
  10709. *)
  10710. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10711. ;;
  10712. esac
  10713. done
  10714. ac_aux_dir='$ac_aux_dir'
  10715. xsi_shell='$xsi_shell'
  10716. lt_shell_append='$lt_shell_append'
  10717. # See if we are running on zsh, and set the options which allow our
  10718. # commands through without removal of \ escapes INIT.
  10719. if test -n "\${ZSH_VERSION+set}" ; then
  10720. setopt NO_GLOB_SUBST
  10721. fi
  10722. PACKAGE='$PACKAGE'
  10723. VERSION='$VERSION'
  10724. TIMESTAMP='$TIMESTAMP'
  10725. RM='$RM'
  10726. ofile='$ofile'
  10727. _ACEOF
  10728. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10729. # Handling of arguments.
  10730. for ac_config_target in $ac_config_targets
  10731. do
  10732. case $ac_config_target in
  10733. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10734. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10735. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10736. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10737. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  10738. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10739. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10740. esac
  10741. done
  10742. # If the user did not use the arguments to specify the items to instantiate,
  10743. # then the envvar interface is used. Set only those that are not.
  10744. # We use the long form for the default assignment because of an extremely
  10745. # bizarre bug on SunOS 4.1.3.
  10746. if $ac_need_defaults; then
  10747. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10748. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10749. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10750. fi
  10751. # Have a temporary directory for convenience. Make it in the build tree
  10752. # simply because there is no reason against having it here, and in addition,
  10753. # creating and moving files from /tmp can sometimes cause problems.
  10754. # Hook for its removal unless debugging.
  10755. # Note that there is a small window in which the directory will not be cleaned:
  10756. # after its creation but before its name has been assigned to `$tmp'.
  10757. $debug ||
  10758. {
  10759. tmp= ac_tmp=
  10760. trap 'exit_status=$?
  10761. : "${ac_tmp:=$tmp}"
  10762. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10763. ' 0
  10764. trap 'as_fn_exit 1' 1 2 13 15
  10765. }
  10766. # Create a (secure) tmp directory for tmp files.
  10767. {
  10768. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10769. test -d "$tmp"
  10770. } ||
  10771. {
  10772. tmp=./conf$$-$RANDOM
  10773. (umask 077 && mkdir "$tmp")
  10774. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10775. ac_tmp=$tmp
  10776. # Set up the scripts for CONFIG_FILES section.
  10777. # No need to generate them if there are no CONFIG_FILES.
  10778. # This happens for instance with `./config.status config.h'.
  10779. if test -n "$CONFIG_FILES"; then
  10780. ac_cr=`echo X | tr X '\015'`
  10781. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10782. # But we know of no other shell where ac_cr would be empty at this
  10783. # point, so we can use a bashism as a fallback.
  10784. if test "x$ac_cr" = x; then
  10785. eval ac_cr=\$\'\\r\'
  10786. fi
  10787. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10788. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10789. ac_cs_awk_cr='\\r'
  10790. else
  10791. ac_cs_awk_cr=$ac_cr
  10792. fi
  10793. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10794. _ACEOF
  10795. {
  10796. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10797. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10798. echo "_ACEOF"
  10799. } >conf$$subs.sh ||
  10800. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10801. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10802. ac_delim='%!_!# '
  10803. for ac_last_try in false false false false false :; do
  10804. . ./conf$$subs.sh ||
  10805. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10806. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10807. if test $ac_delim_n = $ac_delim_num; then
  10808. break
  10809. elif $ac_last_try; then
  10810. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10811. else
  10812. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10813. fi
  10814. done
  10815. rm -f conf$$subs.sh
  10816. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10817. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10818. _ACEOF
  10819. sed -n '
  10820. h
  10821. s/^/S["/; s/!.*/"]=/
  10822. p
  10823. g
  10824. s/^[^!]*!//
  10825. :repl
  10826. t repl
  10827. s/'"$ac_delim"'$//
  10828. t delim
  10829. :nl
  10830. h
  10831. s/\(.\{148\}\)..*/\1/
  10832. t more1
  10833. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10834. p
  10835. n
  10836. b repl
  10837. :more1
  10838. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10839. p
  10840. g
  10841. s/.\{148\}//
  10842. t nl
  10843. :delim
  10844. h
  10845. s/\(.\{148\}\)..*/\1/
  10846. t more2
  10847. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10848. p
  10849. b
  10850. :more2
  10851. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10852. p
  10853. g
  10854. s/.\{148\}//
  10855. t delim
  10856. ' <conf$$subs.awk | sed '
  10857. /^[^""]/{
  10858. N
  10859. s/\n//
  10860. }
  10861. ' >>$CONFIG_STATUS || ac_write_fail=1
  10862. rm -f conf$$subs.awk
  10863. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10864. _ACAWK
  10865. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10866. for (key in S) S_is_set[key] = 1
  10867. FS = ""
  10868. }
  10869. {
  10870. line = $ 0
  10871. nfields = split(line, field, "@")
  10872. substed = 0
  10873. len = length(field[1])
  10874. for (i = 2; i < nfields; i++) {
  10875. key = field[i]
  10876. keylen = length(key)
  10877. if (S_is_set[key]) {
  10878. value = S[key]
  10879. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10880. len += length(value) + length(field[++i])
  10881. substed = 1
  10882. } else
  10883. len += 1 + keylen
  10884. }
  10885. print line
  10886. }
  10887. _ACAWK
  10888. _ACEOF
  10889. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10890. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10891. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10892. else
  10893. cat
  10894. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10895. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10896. _ACEOF
  10897. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10898. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10899. # trailing colons and then remove the whole line if VPATH becomes empty
  10900. # (actually we leave an empty line to preserve line numbers).
  10901. if test "x$srcdir" = x.; then
  10902. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10903. h
  10904. s///
  10905. s/^/:/
  10906. s/[ ]*$/:/
  10907. s/:\$(srcdir):/:/g
  10908. s/:\${srcdir}:/:/g
  10909. s/:@srcdir@:/:/g
  10910. s/^:*//
  10911. s/:*$//
  10912. x
  10913. s/\(=[ ]*\).*/\1/
  10914. G
  10915. s/\n//
  10916. s/^[^=]*=[ ]*$//
  10917. }'
  10918. fi
  10919. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10920. fi # test -n "$CONFIG_FILES"
  10921. # Set up the scripts for CONFIG_HEADERS section.
  10922. # No need to generate them if there are no CONFIG_HEADERS.
  10923. # This happens for instance with `./config.status Makefile'.
  10924. if test -n "$CONFIG_HEADERS"; then
  10925. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  10926. BEGIN {
  10927. _ACEOF
  10928. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10929. # here-document in config.status, that substitutes the proper values into
  10930. # config.h.in to produce config.h.
  10931. # Create a delimiter string that does not exist in confdefs.h, to ease
  10932. # handling of long lines.
  10933. ac_delim='%!_!# '
  10934. for ac_last_try in false false :; do
  10935. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  10936. if test -z "$ac_tt"; then
  10937. break
  10938. elif $ac_last_try; then
  10939. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  10940. else
  10941. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10942. fi
  10943. done
  10944. # For the awk script, D is an array of macro values keyed by name,
  10945. # likewise P contains macro parameters if any. Preserve backslash
  10946. # newline sequences.
  10947. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10948. sed -n '
  10949. s/.\{148\}/&'"$ac_delim"'/g
  10950. t rset
  10951. :rset
  10952. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10953. t def
  10954. d
  10955. :def
  10956. s/\\$//
  10957. t bsnl
  10958. s/["\\]/\\&/g
  10959. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10960. D["\1"]=" \3"/p
  10961. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10962. d
  10963. :bsnl
  10964. s/["\\]/\\&/g
  10965. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10966. D["\1"]=" \3\\\\\\n"\\/p
  10967. t cont
  10968. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10969. t cont
  10970. d
  10971. :cont
  10972. n
  10973. s/.\{148\}/&'"$ac_delim"'/g
  10974. t clear
  10975. :clear
  10976. s/\\$//
  10977. t bsnlc
  10978. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10979. d
  10980. :bsnlc
  10981. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10982. b cont
  10983. ' <confdefs.h | sed '
  10984. s/'"$ac_delim"'/"\\\
  10985. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10986. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10987. for (key in D) D_is_set[key] = 1
  10988. FS = ""
  10989. }
  10990. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10991. line = \$ 0
  10992. split(line, arg, " ")
  10993. if (arg[1] == "#") {
  10994. defundef = arg[2]
  10995. mac1 = arg[3]
  10996. } else {
  10997. defundef = substr(arg[1], 2)
  10998. mac1 = arg[2]
  10999. }
  11000. split(mac1, mac2, "(") #)
  11001. macro = mac2[1]
  11002. prefix = substr(line, 1, index(line, defundef) - 1)
  11003. if (D_is_set[macro]) {
  11004. # Preserve the white space surrounding the "#".
  11005. print prefix "define", macro P[macro] D[macro]
  11006. next
  11007. } else {
  11008. # Replace #undef with comments. This is necessary, for example,
  11009. # in the case of _POSIX_SOURCE, which is predefined and required
  11010. # on some systems where configure will not decide to define it.
  11011. if (defundef == "undef") {
  11012. print "/*", prefix defundef, macro, "*/"
  11013. next
  11014. }
  11015. }
  11016. }
  11017. { print }
  11018. _ACAWK
  11019. _ACEOF
  11020. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11021. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11022. fi # test -n "$CONFIG_HEADERS"
  11023. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11024. shift
  11025. for ac_tag
  11026. do
  11027. case $ac_tag in
  11028. :[FHLC]) ac_mode=$ac_tag; continue;;
  11029. esac
  11030. case $ac_mode$ac_tag in
  11031. :[FHL]*:*);;
  11032. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11033. :[FH]-) ac_tag=-:-;;
  11034. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11035. esac
  11036. ac_save_IFS=$IFS
  11037. IFS=:
  11038. set x $ac_tag
  11039. IFS=$ac_save_IFS
  11040. shift
  11041. ac_file=$1
  11042. shift
  11043. case $ac_mode in
  11044. :L) ac_source=$1;;
  11045. :[FH])
  11046. ac_file_inputs=
  11047. for ac_f
  11048. do
  11049. case $ac_f in
  11050. -) ac_f="$ac_tmp/stdin";;
  11051. *) # Look for the file first in the build tree, then in the source tree
  11052. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11053. # because $ac_f cannot contain `:'.
  11054. test -f "$ac_f" ||
  11055. case $ac_f in
  11056. [\\/$]*) false;;
  11057. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11058. esac ||
  11059. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11060. esac
  11061. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11062. as_fn_append ac_file_inputs " '$ac_f'"
  11063. done
  11064. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11065. # use $as_me), people would be surprised to read:
  11066. # /* config.h. Generated by config.status. */
  11067. configure_input='Generated from '`
  11068. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11069. `' by configure.'
  11070. if test x"$ac_file" != x-; then
  11071. configure_input="$ac_file. $configure_input"
  11072. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11073. $as_echo "$as_me: creating $ac_file" >&6;}
  11074. fi
  11075. # Neutralize special characters interpreted by sed in replacement strings.
  11076. case $configure_input in #(
  11077. *\&* | *\|* | *\\* )
  11078. ac_sed_conf_input=`$as_echo "$configure_input" |
  11079. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11080. *) ac_sed_conf_input=$configure_input;;
  11081. esac
  11082. case $ac_tag in
  11083. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11084. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11085. esac
  11086. ;;
  11087. esac
  11088. ac_dir=`$as_dirname -- "$ac_file" ||
  11089. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11090. X"$ac_file" : 'X\(//\)[^/]' \| \
  11091. X"$ac_file" : 'X\(//\)$' \| \
  11092. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11093. $as_echo X"$ac_file" |
  11094. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11095. s//\1/
  11096. q
  11097. }
  11098. /^X\(\/\/\)[^/].*/{
  11099. s//\1/
  11100. q
  11101. }
  11102. /^X\(\/\/\)$/{
  11103. s//\1/
  11104. q
  11105. }
  11106. /^X\(\/\).*/{
  11107. s//\1/
  11108. q
  11109. }
  11110. s/.*/./; q'`
  11111. as_dir="$ac_dir"; as_fn_mkdir_p
  11112. ac_builddir=.
  11113. case "$ac_dir" in
  11114. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11115. *)
  11116. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11117. # A ".." for each directory in $ac_dir_suffix.
  11118. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11119. case $ac_top_builddir_sub in
  11120. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11121. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11122. esac ;;
  11123. esac
  11124. ac_abs_top_builddir=$ac_pwd
  11125. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11126. # for backward compatibility:
  11127. ac_top_builddir=$ac_top_build_prefix
  11128. case $srcdir in
  11129. .) # We are building in place.
  11130. ac_srcdir=.
  11131. ac_top_srcdir=$ac_top_builddir_sub
  11132. ac_abs_top_srcdir=$ac_pwd ;;
  11133. [\\/]* | ?:[\\/]* ) # Absolute name.
  11134. ac_srcdir=$srcdir$ac_dir_suffix;
  11135. ac_top_srcdir=$srcdir
  11136. ac_abs_top_srcdir=$srcdir ;;
  11137. *) # Relative name.
  11138. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11139. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11140. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11141. esac
  11142. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11143. case $ac_mode in
  11144. :F)
  11145. #
  11146. # CONFIG_FILE
  11147. #
  11148. case $INSTALL in
  11149. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11150. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11151. esac
  11152. ac_MKDIR_P=$MKDIR_P
  11153. case $MKDIR_P in
  11154. [\\/$]* | ?:[\\/]* ) ;;
  11155. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11156. esac
  11157. _ACEOF
  11158. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11159. # If the template does not know about datarootdir, expand it.
  11160. # FIXME: This hack should be removed a few years after 2.60.
  11161. ac_datarootdir_hack=; ac_datarootdir_seen=
  11162. ac_sed_dataroot='
  11163. /datarootdir/ {
  11164. p
  11165. q
  11166. }
  11167. /@datadir@/p
  11168. /@docdir@/p
  11169. /@infodir@/p
  11170. /@localedir@/p
  11171. /@mandir@/p'
  11172. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11173. *datarootdir*) ac_datarootdir_seen=yes;;
  11174. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11175. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11176. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11177. _ACEOF
  11178. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11179. ac_datarootdir_hack='
  11180. s&@datadir@&$datadir&g
  11181. s&@docdir@&$docdir&g
  11182. s&@infodir@&$infodir&g
  11183. s&@localedir@&$localedir&g
  11184. s&@mandir@&$mandir&g
  11185. s&\\\${datarootdir}&$datarootdir&g' ;;
  11186. esac
  11187. _ACEOF
  11188. # Neutralize VPATH when `$srcdir' = `.'.
  11189. # Shell code in configure.ac might set extrasub.
  11190. # FIXME: do we really want to maintain this feature?
  11191. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11192. ac_sed_extra="$ac_vpsub
  11193. $extrasub
  11194. _ACEOF
  11195. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11196. :t
  11197. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11198. s|@configure_input@|$ac_sed_conf_input|;t t
  11199. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11200. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11201. s&@srcdir@&$ac_srcdir&;t t
  11202. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11203. s&@top_srcdir@&$ac_top_srcdir&;t t
  11204. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11205. s&@builddir@&$ac_builddir&;t t
  11206. s&@abs_builddir@&$ac_abs_builddir&;t t
  11207. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11208. s&@INSTALL@&$ac_INSTALL&;t t
  11209. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11210. $ac_datarootdir_hack
  11211. "
  11212. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11213. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11214. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11215. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11216. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11217. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11218. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11219. which seems to be undefined. Please make sure it is defined" >&5
  11220. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11221. which seems to be undefined. Please make sure it is defined" >&2;}
  11222. rm -f "$ac_tmp/stdin"
  11223. case $ac_file in
  11224. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11225. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11226. esac \
  11227. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11228. ;;
  11229. :H)
  11230. #
  11231. # CONFIG_HEADER
  11232. #
  11233. if test x"$ac_file" != x-; then
  11234. {
  11235. $as_echo "/* $configure_input */" \
  11236. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  11237. } >"$ac_tmp/config.h" \
  11238. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11239. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  11240. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11241. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11242. else
  11243. rm -f "$ac_file"
  11244. mv "$ac_tmp/config.h" "$ac_file" \
  11245. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11246. fi
  11247. else
  11248. $as_echo "/* $configure_input */" \
  11249. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  11250. || as_fn_error $? "could not create -" "$LINENO" 5
  11251. fi
  11252. # Compute "$ac_file"'s index in $config_headers.
  11253. _am_arg="$ac_file"
  11254. _am_stamp_count=1
  11255. for _am_header in $config_headers :; do
  11256. case $_am_header in
  11257. $_am_arg | $_am_arg:* )
  11258. break ;;
  11259. * )
  11260. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11261. esac
  11262. done
  11263. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11264. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11265. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11266. X"$_am_arg" : 'X\(//\)$' \| \
  11267. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11268. $as_echo X"$_am_arg" |
  11269. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11270. s//\1/
  11271. q
  11272. }
  11273. /^X\(\/\/\)[^/].*/{
  11274. s//\1/
  11275. q
  11276. }
  11277. /^X\(\/\/\)$/{
  11278. s//\1/
  11279. q
  11280. }
  11281. /^X\(\/\).*/{
  11282. s//\1/
  11283. q
  11284. }
  11285. s/.*/./; q'`/stamp-h$_am_stamp_count
  11286. ;;
  11287. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11288. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11289. ;;
  11290. esac
  11291. case $ac_file$ac_mode in
  11292. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11293. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11294. # are listed without --file. Let's play safe and only enable the eval
  11295. # if we detect the quoting.
  11296. case $CONFIG_FILES in
  11297. *\'*) eval set x "$CONFIG_FILES" ;;
  11298. *) set x $CONFIG_FILES ;;
  11299. esac
  11300. shift
  11301. for mf
  11302. do
  11303. # Strip MF so we end up with the name of the file.
  11304. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11305. # Check whether this is an Automake generated Makefile or not.
  11306. # We used to match only the files named 'Makefile.in', but
  11307. # some people rename them; so instead we look at the file content.
  11308. # Grep'ing the first line is not enough: some people post-process
  11309. # each Makefile.in and add a new line on top of each file to say so.
  11310. # Grep'ing the whole file is not good either: AIX grep has a line
  11311. # limit of 2048, but all sed's we know have understand at least 4000.
  11312. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11313. dirpart=`$as_dirname -- "$mf" ||
  11314. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11315. X"$mf" : 'X\(//\)[^/]' \| \
  11316. X"$mf" : 'X\(//\)$' \| \
  11317. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11318. $as_echo X"$mf" |
  11319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11320. s//\1/
  11321. q
  11322. }
  11323. /^X\(\/\/\)[^/].*/{
  11324. s//\1/
  11325. q
  11326. }
  11327. /^X\(\/\/\)$/{
  11328. s//\1/
  11329. q
  11330. }
  11331. /^X\(\/\).*/{
  11332. s//\1/
  11333. q
  11334. }
  11335. s/.*/./; q'`
  11336. else
  11337. continue
  11338. fi
  11339. # Extract the definition of DEPDIR, am__include, and am__quote
  11340. # from the Makefile without running 'make'.
  11341. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11342. test -z "$DEPDIR" && continue
  11343. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11344. test -z "am__include" && continue
  11345. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11346. # Find all dependency output files, they are included files with
  11347. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11348. # simplest approach to changing $(DEPDIR) to its actual value in the
  11349. # expansion.
  11350. for file in `sed -n "
  11351. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11352. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  11353. # Make sure the directory exists.
  11354. test -f "$dirpart/$file" && continue
  11355. fdir=`$as_dirname -- "$file" ||
  11356. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11357. X"$file" : 'X\(//\)[^/]' \| \
  11358. X"$file" : 'X\(//\)$' \| \
  11359. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11360. $as_echo X"$file" |
  11361. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11362. s//\1/
  11363. q
  11364. }
  11365. /^X\(\/\/\)[^/].*/{
  11366. s//\1/
  11367. q
  11368. }
  11369. /^X\(\/\/\)$/{
  11370. s//\1/
  11371. q
  11372. }
  11373. /^X\(\/\).*/{
  11374. s//\1/
  11375. q
  11376. }
  11377. s/.*/./; q'`
  11378. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11379. # echo "creating $dirpart/$file"
  11380. echo '# dummy' > "$dirpart/$file"
  11381. done
  11382. done
  11383. }
  11384. ;;
  11385. "libtool":C)
  11386. # See if we are running on zsh, and set the options which allow our
  11387. # commands through without removal of \ escapes.
  11388. if test -n "${ZSH_VERSION+set}" ; then
  11389. setopt NO_GLOB_SUBST
  11390. fi
  11391. cfgfile="${ofile}T"
  11392. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11393. $RM "$cfgfile"
  11394. cat <<_LT_EOF >> "$cfgfile"
  11395. #! $SHELL
  11396. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11397. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11398. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11399. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11400. #
  11401. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11402. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  11403. # Inc.
  11404. # Written by Gordon Matzigkeit, 1996
  11405. #
  11406. # This file is part of GNU Libtool.
  11407. #
  11408. # GNU Libtool is free software; you can redistribute it and/or
  11409. # modify it under the terms of the GNU General Public License as
  11410. # published by the Free Software Foundation; either version 2 of
  11411. # the License, or (at your option) any later version.
  11412. #
  11413. # As a special exception to the GNU General Public License,
  11414. # if you distribute this file as part of a program or library that
  11415. # is built using GNU Libtool, you may include this file under the
  11416. # same distribution terms that you use for the rest of that program.
  11417. #
  11418. # GNU Libtool is distributed in the hope that it will be useful,
  11419. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11420. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11421. # GNU General Public License for more details.
  11422. #
  11423. # You should have received a copy of the GNU General Public License
  11424. # along with GNU Libtool; see the file COPYING. If not, a copy
  11425. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11426. # obtained by writing to the Free Software Foundation, Inc.,
  11427. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11428. # The names of the tagged configurations supported by this script.
  11429. available_tags=""
  11430. # ### BEGIN LIBTOOL CONFIG
  11431. # Which release of libtool.m4 was used?
  11432. macro_version=$macro_version
  11433. macro_revision=$macro_revision
  11434. # Whether or not to build shared libraries.
  11435. build_libtool_libs=$enable_shared
  11436. # Whether or not to build static libraries.
  11437. build_old_libs=$enable_static
  11438. # What type of objects to build.
  11439. pic_mode=$pic_mode
  11440. # Whether or not to optimize for fast installation.
  11441. fast_install=$enable_fast_install
  11442. # Shell to use when invoking shell scripts.
  11443. SHELL=$lt_SHELL
  11444. # An echo program that protects backslashes.
  11445. ECHO=$lt_ECHO
  11446. # The host system.
  11447. host_alias=$host_alias
  11448. host=$host
  11449. host_os=$host_os
  11450. # The build system.
  11451. build_alias=$build_alias
  11452. build=$build
  11453. build_os=$build_os
  11454. # A sed program that does not truncate output.
  11455. SED=$lt_SED
  11456. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11457. Xsed="\$SED -e 1s/^X//"
  11458. # A grep program that handles long lines.
  11459. GREP=$lt_GREP
  11460. # An ERE matcher.
  11461. EGREP=$lt_EGREP
  11462. # A literal string matcher.
  11463. FGREP=$lt_FGREP
  11464. # A BSD- or MS-compatible name lister.
  11465. NM=$lt_NM
  11466. # Whether we need soft or hard links.
  11467. LN_S=$lt_LN_S
  11468. # What is the maximum length of a command?
  11469. max_cmd_len=$max_cmd_len
  11470. # Object file suffix (normally "o").
  11471. objext=$ac_objext
  11472. # Executable file suffix (normally "").
  11473. exeext=$exeext
  11474. # whether the shell understands "unset".
  11475. lt_unset=$lt_unset
  11476. # turn spaces into newlines.
  11477. SP2NL=$lt_lt_SP2NL
  11478. # turn newlines into spaces.
  11479. NL2SP=$lt_lt_NL2SP
  11480. # convert \$build file names to \$host format.
  11481. to_host_file_cmd=$lt_cv_to_host_file_cmd
  11482. # convert \$build files to toolchain format.
  11483. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  11484. # An object symbol dumper.
  11485. OBJDUMP=$lt_OBJDUMP
  11486. # Method to check whether dependent libraries are shared objects.
  11487. deplibs_check_method=$lt_deplibs_check_method
  11488. # Command to use when deplibs_check_method = "file_magic".
  11489. file_magic_cmd=$lt_file_magic_cmd
  11490. # How to find potential files when deplibs_check_method = "file_magic".
  11491. file_magic_glob=$lt_file_magic_glob
  11492. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  11493. want_nocaseglob=$lt_want_nocaseglob
  11494. # DLL creation program.
  11495. DLLTOOL=$lt_DLLTOOL
  11496. # Command to associate shared and link libraries.
  11497. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  11498. # The archiver.
  11499. AR=$lt_AR
  11500. # Flags to create an archive.
  11501. AR_FLAGS=$lt_AR_FLAGS
  11502. # How to feed a file listing to the archiver.
  11503. archiver_list_spec=$lt_archiver_list_spec
  11504. # A symbol stripping program.
  11505. STRIP=$lt_STRIP
  11506. # Commands used to install an old-style archive.
  11507. RANLIB=$lt_RANLIB
  11508. old_postinstall_cmds=$lt_old_postinstall_cmds
  11509. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11510. # Whether to use a lock for old archive extraction.
  11511. lock_old_archive_extraction=$lock_old_archive_extraction
  11512. # A C compiler.
  11513. LTCC=$lt_CC
  11514. # LTCC compiler flags.
  11515. LTCFLAGS=$lt_CFLAGS
  11516. # Take the output of nm and produce a listing of raw symbols and C names.
  11517. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11518. # Transform the output of nm in a proper C declaration.
  11519. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11520. # Transform the output of nm in a C name address pair.
  11521. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11522. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11523. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11524. # Specify filename containing input files for \$NM.
  11525. nm_file_list_spec=$lt_nm_file_list_spec
  11526. # The root where to search for dependent libraries,and in which our libraries should be installed.
  11527. lt_sysroot=$lt_sysroot
  11528. # The name of the directory that contains temporary libtool files.
  11529. objdir=$objdir
  11530. # Used to examine libraries when file_magic_cmd begins with "file".
  11531. MAGIC_CMD=$MAGIC_CMD
  11532. # Must we lock files when doing compilation?
  11533. need_locks=$lt_need_locks
  11534. # Manifest tool.
  11535. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  11536. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11537. DSYMUTIL=$lt_DSYMUTIL
  11538. # Tool to change global to local symbols on Mac OS X.
  11539. NMEDIT=$lt_NMEDIT
  11540. # Tool to manipulate fat objects and archives on Mac OS X.
  11541. LIPO=$lt_LIPO
  11542. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11543. OTOOL=$lt_OTOOL
  11544. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11545. OTOOL64=$lt_OTOOL64
  11546. # Old archive suffix (normally "a").
  11547. libext=$libext
  11548. # Shared library suffix (normally ".so").
  11549. shrext_cmds=$lt_shrext_cmds
  11550. # The commands to extract the exported symbol list from a shared archive.
  11551. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11552. # Variables whose values should be saved in libtool wrapper scripts and
  11553. # restored at link time.
  11554. variables_saved_for_relink=$lt_variables_saved_for_relink
  11555. # Do we need the "lib" prefix for modules?
  11556. need_lib_prefix=$need_lib_prefix
  11557. # Do we need a version for libraries?
  11558. need_version=$need_version
  11559. # Library versioning type.
  11560. version_type=$version_type
  11561. # Shared library runtime path variable.
  11562. runpath_var=$runpath_var
  11563. # Shared library path variable.
  11564. shlibpath_var=$shlibpath_var
  11565. # Is shlibpath searched before the hard-coded library search path?
  11566. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11567. # Format of library name prefix.
  11568. libname_spec=$lt_libname_spec
  11569. # List of archive names. First name is the real one, the rest are links.
  11570. # The last name is the one that the linker finds with -lNAME
  11571. library_names_spec=$lt_library_names_spec
  11572. # The coded name of the library, if different from the real name.
  11573. soname_spec=$lt_soname_spec
  11574. # Permission mode override for installation of shared libraries.
  11575. install_override_mode=$lt_install_override_mode
  11576. # Command to use after installation of a shared archive.
  11577. postinstall_cmds=$lt_postinstall_cmds
  11578. # Command to use after uninstallation of a shared archive.
  11579. postuninstall_cmds=$lt_postuninstall_cmds
  11580. # Commands used to finish a libtool library installation in a directory.
  11581. finish_cmds=$lt_finish_cmds
  11582. # As "finish_cmds", except a single script fragment to be evaled but
  11583. # not shown.
  11584. finish_eval=$lt_finish_eval
  11585. # Whether we should hardcode library paths into libraries.
  11586. hardcode_into_libs=$hardcode_into_libs
  11587. # Compile-time system search path for libraries.
  11588. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11589. # Run-time system search path for libraries.
  11590. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11591. # Whether dlopen is supported.
  11592. dlopen_support=$enable_dlopen
  11593. # Whether dlopen of programs is supported.
  11594. dlopen_self=$enable_dlopen_self
  11595. # Whether dlopen of statically linked programs is supported.
  11596. dlopen_self_static=$enable_dlopen_self_static
  11597. # Commands to strip libraries.
  11598. old_striplib=$lt_old_striplib
  11599. striplib=$lt_striplib
  11600. # The linker used to build libraries.
  11601. LD=$lt_LD
  11602. # How to create reloadable object files.
  11603. reload_flag=$lt_reload_flag
  11604. reload_cmds=$lt_reload_cmds
  11605. # Commands used to build an old-style archive.
  11606. old_archive_cmds=$lt_old_archive_cmds
  11607. # A language specific compiler.
  11608. CC=$lt_compiler
  11609. # Is the compiler the GNU compiler?
  11610. with_gcc=$GCC
  11611. # Compiler flag to turn off builtin functions.
  11612. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11613. # Additional compiler flags for building library objects.
  11614. pic_flag=$lt_lt_prog_compiler_pic
  11615. # How to pass a linker flag through the compiler.
  11616. wl=$lt_lt_prog_compiler_wl
  11617. # Compiler flag to prevent dynamic linking.
  11618. link_static_flag=$lt_lt_prog_compiler_static
  11619. # Does compiler simultaneously support -c and -o options?
  11620. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11621. # Whether or not to add -lc for building shared libraries.
  11622. build_libtool_need_lc=$archive_cmds_need_lc
  11623. # Whether or not to disallow shared libs when runtime libs are static.
  11624. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11625. # Compiler flag to allow reflexive dlopens.
  11626. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11627. # Compiler flag to generate shared objects directly from archives.
  11628. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11629. # Whether the compiler copes with passing no objects directly.
  11630. compiler_needs_object=$lt_compiler_needs_object
  11631. # Create an old-style archive from a shared archive.
  11632. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11633. # Create a temporary old-style archive to link instead of a shared archive.
  11634. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11635. # Commands used to build a shared archive.
  11636. archive_cmds=$lt_archive_cmds
  11637. archive_expsym_cmds=$lt_archive_expsym_cmds
  11638. # Commands used to build a loadable module if different from building
  11639. # a shared archive.
  11640. module_cmds=$lt_module_cmds
  11641. module_expsym_cmds=$lt_module_expsym_cmds
  11642. # Whether we are building with GNU ld or not.
  11643. with_gnu_ld=$lt_with_gnu_ld
  11644. # Flag that allows shared libraries with undefined symbols to be built.
  11645. allow_undefined_flag=$lt_allow_undefined_flag
  11646. # Flag that enforces no undefined symbols.
  11647. no_undefined_flag=$lt_no_undefined_flag
  11648. # Flag to hardcode \$libdir into a binary during linking.
  11649. # This must work even if \$libdir does not exist
  11650. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11651. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11652. # during linking. This must work even if \$libdir does not exist.
  11653. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11654. # Whether we need a single "-rpath" flag with a separated argument.
  11655. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11656. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11657. # DIR into the resulting binary.
  11658. hardcode_direct=$hardcode_direct
  11659. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11660. # DIR into the resulting binary and the resulting library dependency is
  11661. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11662. # library is relocated.
  11663. hardcode_direct_absolute=$hardcode_direct_absolute
  11664. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11665. # into the resulting binary.
  11666. hardcode_minus_L=$hardcode_minus_L
  11667. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11668. # into the resulting binary.
  11669. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11670. # Set to "yes" if building a shared library automatically hardcodes DIR
  11671. # into the library and all subsequent libraries and executables linked
  11672. # against it.
  11673. hardcode_automatic=$hardcode_automatic
  11674. # Set to yes if linker adds runtime paths of dependent libraries
  11675. # to runtime path list.
  11676. inherit_rpath=$inherit_rpath
  11677. # Whether libtool must link a program against all its dependency libraries.
  11678. link_all_deplibs=$link_all_deplibs
  11679. # Set to "yes" if exported symbols are required.
  11680. always_export_symbols=$always_export_symbols
  11681. # The commands to list exported symbols.
  11682. export_symbols_cmds=$lt_export_symbols_cmds
  11683. # Symbols that should not be listed in the preloaded symbols.
  11684. exclude_expsyms=$lt_exclude_expsyms
  11685. # Symbols that must always be exported.
  11686. include_expsyms=$lt_include_expsyms
  11687. # Commands necessary for linking programs (against libraries) with templates.
  11688. prelink_cmds=$lt_prelink_cmds
  11689. # Commands necessary for finishing linking programs.
  11690. postlink_cmds=$lt_postlink_cmds
  11691. # Specify filename containing input files.
  11692. file_list_spec=$lt_file_list_spec
  11693. # How to hardcode a shared library path into an executable.
  11694. hardcode_action=$hardcode_action
  11695. # ### END LIBTOOL CONFIG
  11696. _LT_EOF
  11697. case $host_os in
  11698. aix3*)
  11699. cat <<\_LT_EOF >> "$cfgfile"
  11700. # AIX sometimes has problems with the GCC collect2 program. For some
  11701. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11702. # vanish in a puff of smoke.
  11703. if test "X${COLLECT_NAMES+set}" != Xset; then
  11704. COLLECT_NAMES=
  11705. export COLLECT_NAMES
  11706. fi
  11707. _LT_EOF
  11708. ;;
  11709. esac
  11710. ltmain="$ac_aux_dir/ltmain.sh"
  11711. # We use sed instead of cat because bash on DJGPP gets confused if
  11712. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11713. # text mode, it properly converts lines to CR/LF. This bash problem
  11714. # is reportedly fixed, but why not run on old versions too?
  11715. sed '$q' "$ltmain" >> "$cfgfile" \
  11716. || (rm -f "$cfgfile"; exit 1)
  11717. if test x"$xsi_shell" = xyes; then
  11718. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  11719. func_dirname ()\
  11720. {\
  11721. \ case ${1} in\
  11722. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11723. \ * ) func_dirname_result="${3}" ;;\
  11724. \ esac\
  11725. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  11726. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11727. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11728. test 0 -eq $? || _lt_function_replace_fail=:
  11729. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  11730. func_basename ()\
  11731. {\
  11732. \ func_basename_result="${1##*/}"\
  11733. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11734. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11735. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11736. test 0 -eq $? || _lt_function_replace_fail=:
  11737. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  11738. func_dirname_and_basename ()\
  11739. {\
  11740. \ case ${1} in\
  11741. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11742. \ * ) func_dirname_result="${3}" ;;\
  11743. \ esac\
  11744. \ func_basename_result="${1##*/}"\
  11745. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11746. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11747. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11748. test 0 -eq $? || _lt_function_replace_fail=:
  11749. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  11750. func_stripname ()\
  11751. {\
  11752. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  11753. \ # positional parameters, so assign one to ordinary parameter first.\
  11754. \ func_stripname_result=${3}\
  11755. \ func_stripname_result=${func_stripname_result#"${1}"}\
  11756. \ func_stripname_result=${func_stripname_result%"${2}"}\
  11757. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  11758. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11759. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11760. test 0 -eq $? || _lt_function_replace_fail=:
  11761. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  11762. func_split_long_opt ()\
  11763. {\
  11764. \ func_split_long_opt_name=${1%%=*}\
  11765. \ func_split_long_opt_arg=${1#*=}\
  11766. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11767. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11768. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11769. test 0 -eq $? || _lt_function_replace_fail=:
  11770. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  11771. func_split_short_opt ()\
  11772. {\
  11773. \ func_split_short_opt_arg=${1#??}\
  11774. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  11775. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11776. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11777. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11778. test 0 -eq $? || _lt_function_replace_fail=:
  11779. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  11780. func_lo2o ()\
  11781. {\
  11782. \ case ${1} in\
  11783. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  11784. \ *) func_lo2o_result=${1} ;;\
  11785. \ esac\
  11786. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  11787. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11788. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11789. test 0 -eq $? || _lt_function_replace_fail=:
  11790. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  11791. func_xform ()\
  11792. {\
  11793. func_xform_result=${1%.*}.lo\
  11794. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  11795. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11796. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11797. test 0 -eq $? || _lt_function_replace_fail=:
  11798. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  11799. func_arith ()\
  11800. {\
  11801. func_arith_result=$(( $* ))\
  11802. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  11803. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11804. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11805. test 0 -eq $? || _lt_function_replace_fail=:
  11806. sed -e '/^func_len ()$/,/^} # func_len /c\
  11807. func_len ()\
  11808. {\
  11809. func_len_result=${#1}\
  11810. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  11811. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11812. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11813. test 0 -eq $? || _lt_function_replace_fail=:
  11814. fi
  11815. if test x"$lt_shell_append" = xyes; then
  11816. sed -e '/^func_append ()$/,/^} # func_append /c\
  11817. func_append ()\
  11818. {\
  11819. eval "${1}+=\\${2}"\
  11820. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  11821. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11822. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11823. test 0 -eq $? || _lt_function_replace_fail=:
  11824. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  11825. func_append_quoted ()\
  11826. {\
  11827. \ func_quote_for_eval "${2}"\
  11828. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  11829. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  11830. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11831. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11832. test 0 -eq $? || _lt_function_replace_fail=:
  11833. # Save a `func_append' function call where possible by direct use of '+='
  11834. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  11835. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11836. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11837. test 0 -eq $? || _lt_function_replace_fail=:
  11838. else
  11839. # Save a `func_append' function call even when '+=' is not available
  11840. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  11841. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11842. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11843. test 0 -eq $? || _lt_function_replace_fail=:
  11844. fi
  11845. if test x"$_lt_function_replace_fail" = x":"; then
  11846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  11847. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  11848. fi
  11849. mv -f "$cfgfile" "$ofile" ||
  11850. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11851. chmod +x "$ofile"
  11852. ;;
  11853. esac
  11854. done # for ac_tag
  11855. as_fn_exit 0
  11856. _ACEOF
  11857. ac_clean_files=$ac_clean_files_save
  11858. test $ac_write_fail = 0 ||
  11859. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11860. # configure is writing to config.log, and then calls config.status.
  11861. # config.status does its own redirection, appending to config.log.
  11862. # Unfortunately, on DOS this fails, as config.log is still kept open
  11863. # by configure, so config.status won't be able to write to it; its
  11864. # output is simply discarded. So we exec the FD to /dev/null,
  11865. # effectively closing config.log, so it can be properly (re)opened and
  11866. # appended to by config.status. When coming back to configure, we
  11867. # need to make the FD available again.
  11868. if test "$no_create" != yes; then
  11869. ac_cs_success=:
  11870. ac_config_status_args=
  11871. test "$silent" = yes &&
  11872. ac_config_status_args="$ac_config_status_args --quiet"
  11873. exec 5>/dev/null
  11874. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11875. exec 5>>config.log
  11876. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11877. # would make configure fail if this is the last instruction.
  11878. $ac_cs_success || as_fn_exit 1
  11879. fi
  11880. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11882. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11883. fi