/vendor/gc/configure

http://github.com/feyeleanor/RubyGoLightly · Shell · 23565 lines · 19309 code · 1871 blank · 2385 comment · 1273 complexity · bc4ea0fc2fce7d47281fe64981bc7546 MD5 · raw file

  1. #! /bin/sh
  2. # From configure.ac Revision: 1.35 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.61 for gc 7.1.
  5. #
  6. # Report bugs to <Hans.Boehm@hp.com>.
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## --------------------- ##
  13. ## M4sh Initialization. ##
  14. ## --------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18. emulate sh
  19. NULLCMD=:
  20. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in
  26. *posix*) set -o posix ;;
  27. esac
  28. fi
  29. # PATH needs CR
  30. # Avoid depending upon Character Ranges.
  31. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  32. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  33. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34. as_cr_digits='0123456789'
  35. as_cr_alnum=$as_cr_Letters$as_cr_digits
  36. # The user is always right.
  37. if test "${PATH_SEPARATOR+set}" != set; then
  38. echo "#! /bin/sh" >conf$$.sh
  39. echo "exit 0" >>conf$$.sh
  40. chmod +x conf$$.sh
  41. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  42. PATH_SEPARATOR=';'
  43. else
  44. PATH_SEPARATOR=:
  45. fi
  46. rm -f conf$$.sh
  47. fi
  48. # Support unset when possible.
  49. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  50. as_unset=unset
  51. else
  52. as_unset=false
  53. fi
  54. # IFS
  55. # We need space, tab and new line, in precisely that order. Quoting is
  56. # there to prevent editors from complaining about space-tab.
  57. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  58. # splitting by setting IFS to empty value.)
  59. as_nl='
  60. '
  61. IFS=" "" $as_nl"
  62. # Find who we are. Look in the path if we contain no directory separator.
  63. case $0 in
  64. *[\\/]* ) as_myself=$0 ;;
  65. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  66. for as_dir in $PATH
  67. do
  68. IFS=$as_save_IFS
  69. test -z "$as_dir" && as_dir=.
  70. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  71. done
  72. IFS=$as_save_IFS
  73. ;;
  74. esac
  75. # We did not find ourselves, most probably we were run as `sh COMMAND'
  76. # in which case we are not to be found in the path.
  77. if test "x$as_myself" = x; then
  78. as_myself=$0
  79. fi
  80. if test ! -f "$as_myself"; then
  81. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  82. { (exit 1); exit 1; }
  83. fi
  84. # Work around bugs in pre-3.0 UWIN ksh.
  85. for as_var in ENV MAIL MAILPATH
  86. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  87. done
  88. PS1='$ '
  89. PS2='> '
  90. PS4='+ '
  91. # NLS nuisances.
  92. for as_var in \
  93. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  94. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  95. LC_TELEPHONE LC_TIME
  96. do
  97. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  98. eval $as_var=C; export $as_var
  99. else
  100. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  101. fi
  102. done
  103. # Required to use basename.
  104. if expr a : '\(a\)' >/dev/null 2>&1 &&
  105. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  106. as_expr=expr
  107. else
  108. as_expr=false
  109. fi
  110. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  111. as_basename=basename
  112. else
  113. as_basename=false
  114. fi
  115. # Name of the executable.
  116. as_me=`$as_basename -- "$0" ||
  117. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  118. X"$0" : 'X\(//\)$' \| \
  119. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  120. echo X/"$0" |
  121. sed '/^.*\/\([^/][^/]*\)\/*$/{
  122. s//\1/
  123. q
  124. }
  125. /^X\/\(\/\/\)$/{
  126. s//\1/
  127. q
  128. }
  129. /^X\/\(\/\).*/{
  130. s//\1/
  131. q
  132. }
  133. s/.*/./; q'`
  134. # CDPATH.
  135. $as_unset CDPATH
  136. if test "x$CONFIG_SHELL" = x; then
  137. if (eval ":") 2>/dev/null; then
  138. as_have_required=yes
  139. else
  140. as_have_required=no
  141. fi
  142. if test $as_have_required = yes && (eval ":
  143. (as_func_return () {
  144. (exit \$1)
  145. }
  146. as_func_success () {
  147. as_func_return 0
  148. }
  149. as_func_failure () {
  150. as_func_return 1
  151. }
  152. as_func_ret_success () {
  153. return 0
  154. }
  155. as_func_ret_failure () {
  156. return 1
  157. }
  158. exitcode=0
  159. if as_func_success; then
  160. :
  161. else
  162. exitcode=1
  163. echo as_func_success failed.
  164. fi
  165. if as_func_failure; then
  166. exitcode=1
  167. echo as_func_failure succeeded.
  168. fi
  169. if as_func_ret_success; then
  170. :
  171. else
  172. exitcode=1
  173. echo as_func_ret_success failed.
  174. fi
  175. if as_func_ret_failure; then
  176. exitcode=1
  177. echo as_func_ret_failure succeeded.
  178. fi
  179. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  180. :
  181. else
  182. exitcode=1
  183. echo positional parameters were not saved.
  184. fi
  185. test \$exitcode = 0) || { (exit 1); exit 1; }
  186. (
  187. as_lineno_1=\$LINENO
  188. as_lineno_2=\$LINENO
  189. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  190. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  191. ") 2> /dev/null; then
  192. :
  193. else
  194. as_candidate_shells=
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  197. do
  198. IFS=$as_save_IFS
  199. test -z "$as_dir" && as_dir=.
  200. case $as_dir in
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  204. done;;
  205. esac
  206. done
  207. IFS=$as_save_IFS
  208. for as_shell in $as_candidate_shells $SHELL; do
  209. # Try only shells that exist, to save several forks.
  210. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  211. { ("$as_shell") 2> /dev/null <<\_ASEOF
  212. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  213. emulate sh
  214. NULLCMD=:
  215. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  216. # is contrary to our usage. Disable this feature.
  217. alias -g '${1+"$@"}'='"$@"'
  218. setopt NO_GLOB_SUBST
  219. else
  220. case `(set -o) 2>/dev/null` in
  221. *posix*) set -o posix ;;
  222. esac
  223. fi
  224. :
  225. _ASEOF
  226. }; then
  227. CONFIG_SHELL=$as_shell
  228. as_have_required=yes
  229. if { "$as_shell" 2> /dev/null <<\_ASEOF
  230. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  231. emulate sh
  232. NULLCMD=:
  233. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  234. # is contrary to our usage. Disable this feature.
  235. alias -g '${1+"$@"}'='"$@"'
  236. setopt NO_GLOB_SUBST
  237. else
  238. case `(set -o) 2>/dev/null` in
  239. *posix*) set -o posix ;;
  240. esac
  241. fi
  242. :
  243. (as_func_return () {
  244. (exit $1)
  245. }
  246. as_func_success () {
  247. as_func_return 0
  248. }
  249. as_func_failure () {
  250. as_func_return 1
  251. }
  252. as_func_ret_success () {
  253. return 0
  254. }
  255. as_func_ret_failure () {
  256. return 1
  257. }
  258. exitcode=0
  259. if as_func_success; then
  260. :
  261. else
  262. exitcode=1
  263. echo as_func_success failed.
  264. fi
  265. if as_func_failure; then
  266. exitcode=1
  267. echo as_func_failure succeeded.
  268. fi
  269. if as_func_ret_success; then
  270. :
  271. else
  272. exitcode=1
  273. echo as_func_ret_success failed.
  274. fi
  275. if as_func_ret_failure; then
  276. exitcode=1
  277. echo as_func_ret_failure succeeded.
  278. fi
  279. if ( set x; as_func_ret_success y && test x = "$1" ); then
  280. :
  281. else
  282. exitcode=1
  283. echo positional parameters were not saved.
  284. fi
  285. test $exitcode = 0) || { (exit 1); exit 1; }
  286. (
  287. as_lineno_1=$LINENO
  288. as_lineno_2=$LINENO
  289. test "x$as_lineno_1" != "x$as_lineno_2" &&
  290. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  291. _ASEOF
  292. }; then
  293. break
  294. fi
  295. fi
  296. done
  297. if test "x$CONFIG_SHELL" != x; then
  298. for as_var in BASH_ENV ENV
  299. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  300. done
  301. export CONFIG_SHELL
  302. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  303. fi
  304. if test $as_have_required = no; then
  305. echo This script requires a shell more modern than all the
  306. echo shells that I found on your system. Please install a
  307. echo modern shell, or manually run the script under such a
  308. echo shell if you do have one.
  309. { (exit 1); exit 1; }
  310. fi
  311. fi
  312. fi
  313. (eval "as_func_return () {
  314. (exit \$1)
  315. }
  316. as_func_success () {
  317. as_func_return 0
  318. }
  319. as_func_failure () {
  320. as_func_return 1
  321. }
  322. as_func_ret_success () {
  323. return 0
  324. }
  325. as_func_ret_failure () {
  326. return 1
  327. }
  328. exitcode=0
  329. if as_func_success; then
  330. :
  331. else
  332. exitcode=1
  333. echo as_func_success failed.
  334. fi
  335. if as_func_failure; then
  336. exitcode=1
  337. echo as_func_failure succeeded.
  338. fi
  339. if as_func_ret_success; then
  340. :
  341. else
  342. exitcode=1
  343. echo as_func_ret_success failed.
  344. fi
  345. if as_func_ret_failure; then
  346. exitcode=1
  347. echo as_func_ret_failure succeeded.
  348. fi
  349. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  350. :
  351. else
  352. exitcode=1
  353. echo positional parameters were not saved.
  354. fi
  355. test \$exitcode = 0") || {
  356. echo No shell found that supports shell functions.
  357. echo Please tell autoconf@gnu.org about your system,
  358. echo including any error possibly output before this
  359. echo message
  360. }
  361. as_lineno_1=$LINENO
  362. as_lineno_2=$LINENO
  363. test "x$as_lineno_1" != "x$as_lineno_2" &&
  364. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  365. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  366. # uniformly replaced by the line number. The first 'sed' inserts a
  367. # line-number line after each line using $LINENO; the second 'sed'
  368. # does the real work. The second script uses 'N' to pair each
  369. # line-number line with the line containing $LINENO, and appends
  370. # trailing '-' during substitution so that $LINENO is not a special
  371. # case at line end.
  372. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  373. # scripts with optimization help from Paolo Bonzini. Blame Lee
  374. # E. McMahon (1931-1989) for sed's syntax. :-)
  375. sed -n '
  376. p
  377. /[$]LINENO/=
  378. ' <$as_myself |
  379. sed '
  380. s/[$]LINENO.*/&-/
  381. t lineno
  382. b
  383. :lineno
  384. N
  385. :loop
  386. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  387. t loop
  388. s/-\n.*//
  389. ' >$as_me.lineno &&
  390. chmod +x "$as_me.lineno" ||
  391. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  392. { (exit 1); exit 1; }; }
  393. # Don't try to exec as it changes $[0], causing all sort of problems
  394. # (the dirname of $[0] is not the place where we might find the
  395. # original and so on. Autoconf is especially sensitive to this).
  396. . "./$as_me.lineno"
  397. # Exit status is that of the last command.
  398. exit
  399. }
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. ECHO_C= ECHO_N= ECHO_T=
  406. case `echo -n x` in
  407. -n*)
  408. case `echo 'x\c'` in
  409. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  410. *) ECHO_C='\c';;
  411. esac;;
  412. *)
  413. ECHO_N='-n';;
  414. esac
  415. if expr a : '\(a\)' >/dev/null 2>&1 &&
  416. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  417. as_expr=expr
  418. else
  419. as_expr=false
  420. fi
  421. rm -f conf$$ conf$$.exe conf$$.file
  422. if test -d conf$$.dir; then
  423. rm -f conf$$.dir/conf$$.file
  424. else
  425. rm -f conf$$.dir
  426. mkdir conf$$.dir
  427. fi
  428. echo >conf$$.file
  429. if ln -s conf$$.file conf$$ 2>/dev/null; then
  430. as_ln_s='ln -s'
  431. # ... but there are two gotchas:
  432. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  433. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  434. # In both cases, we have to default to `cp -p'.
  435. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  436. as_ln_s='cp -p'
  437. elif ln conf$$.file conf$$ 2>/dev/null; then
  438. as_ln_s=ln
  439. else
  440. as_ln_s='cp -p'
  441. fi
  442. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  443. rmdir conf$$.dir 2>/dev/null
  444. if mkdir -p . 2>/dev/null; then
  445. as_mkdir_p=:
  446. else
  447. test -d ./-p && rmdir ./-p
  448. as_mkdir_p=false
  449. fi
  450. if test -x / >/dev/null 2>&1; then
  451. as_test_x='test -x'
  452. else
  453. if ls -dL / >/dev/null 2>&1; then
  454. as_ls_L_option=L
  455. else
  456. as_ls_L_option=
  457. fi
  458. as_test_x='
  459. eval sh -c '\''
  460. if test -d "$1"; then
  461. test -d "$1/.";
  462. else
  463. case $1 in
  464. -*)set "./$1";;
  465. esac;
  466. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  467. ???[sx]*):;;*)false;;esac;fi
  468. '\'' sh
  469. '
  470. fi
  471. as_executable_p=$as_test_x
  472. # Sed expression to map a string onto a valid CPP name.
  473. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  474. # Sed expression to map a string onto a valid variable name.
  475. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  476. # Check that we are running under the correct shell.
  477. SHELL=${CONFIG_SHELL-/bin/sh}
  478. case X$ECHO in
  479. X*--fallback-echo)
  480. # Remove one level of quotation (which was required for Make).
  481. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  482. ;;
  483. esac
  484. echo=${ECHO-echo}
  485. if test "X$1" = X--no-reexec; then
  486. # Discard the --no-reexec flag, and continue.
  487. shift
  488. elif test "X$1" = X--fallback-echo; then
  489. # Avoid inline document here, it may be left over
  490. :
  491. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  492. # Yippee, $echo works!
  493. :
  494. else
  495. # Restart under the correct shell.
  496. exec $SHELL "$0" --no-reexec ${1+"$@"}
  497. fi
  498. if test "X$1" = X--fallback-echo; then
  499. # used as fallback echo
  500. shift
  501. cat <<EOF
  502. $*
  503. EOF
  504. exit 0
  505. fi
  506. # The HP-UX ksh and POSIX shell print the target directory to stdout
  507. # if CDPATH is set.
  508. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  509. if test -z "$ECHO"; then
  510. if test "X${echo_test_string+set}" != Xset; then
  511. # find a string as large as possible, as long as the shell can cope with it
  512. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  513. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  514. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  515. echo_test_string=`eval $cmd` &&
  516. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  517. then
  518. break
  519. fi
  520. done
  521. fi
  522. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  523. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  524. test "X$echo_testing_string" = "X$echo_test_string"; then
  525. :
  526. else
  527. # The Solaris, AIX, and Digital Unix default echo programs unquote
  528. # backslashes. This makes it impossible to quote backslashes using
  529. # echo "$something" | sed 's/\\/\\\\/g'
  530. #
  531. # So, first we look for a working echo in the user's PATH.
  532. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  533. for dir in $PATH /usr/ucb; do
  534. IFS="$lt_save_ifs"
  535. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  536. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  537. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  538. test "X$echo_testing_string" = "X$echo_test_string"; then
  539. echo="$dir/echo"
  540. break
  541. fi
  542. done
  543. IFS="$lt_save_ifs"
  544. if test "X$echo" = Xecho; then
  545. # We didn't find a better echo, so look for alternatives.
  546. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  547. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  548. test "X$echo_testing_string" = "X$echo_test_string"; then
  549. # This shell has a builtin print -r that does the trick.
  550. echo='print -r'
  551. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  552. test "X$CONFIG_SHELL" != X/bin/ksh; then
  553. # If we have ksh, try running configure again with it.
  554. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  555. export ORIGINAL_CONFIG_SHELL
  556. CONFIG_SHELL=/bin/ksh
  557. export CONFIG_SHELL
  558. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  559. else
  560. # Try using printf.
  561. echo='printf %s\n'
  562. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  563. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  564. test "X$echo_testing_string" = "X$echo_test_string"; then
  565. # Cool, printf works
  566. :
  567. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  568. test "X$echo_testing_string" = 'X\t' &&
  569. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  570. test "X$echo_testing_string" = "X$echo_test_string"; then
  571. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  572. export CONFIG_SHELL
  573. SHELL="$CONFIG_SHELL"
  574. export SHELL
  575. echo="$CONFIG_SHELL $0 --fallback-echo"
  576. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  577. test "X$echo_testing_string" = 'X\t' &&
  578. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  579. test "X$echo_testing_string" = "X$echo_test_string"; then
  580. echo="$CONFIG_SHELL $0 --fallback-echo"
  581. else
  582. # maybe with a smaller string...
  583. prev=:
  584. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  585. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  586. then
  587. break
  588. fi
  589. prev="$cmd"
  590. done
  591. if test "$prev" != 'sed 50q "$0"'; then
  592. echo_test_string=`eval $prev`
  593. export echo_test_string
  594. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  595. else
  596. # Oops. We lost completely, so just stick with echo.
  597. echo=echo
  598. fi
  599. fi
  600. fi
  601. fi
  602. fi
  603. fi
  604. # Copy echo and quote the copy suitably for passing to libtool from
  605. # the Makefile, instead of quoting the original, which is used later.
  606. ECHO=$echo
  607. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  608. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  609. fi
  610. tagnames=${tagnames+${tagnames},}CXX
  611. tagnames=${tagnames+${tagnames},}F77
  612. exec 7<&0 </dev/null 6>&1
  613. # Name of the host.
  614. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  615. # so uname gets run too.
  616. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  617. #
  618. # Initializations.
  619. #
  620. ac_default_prefix=/usr/local
  621. ac_clean_files=
  622. ac_config_libobj_dir=.
  623. LIBOBJS=
  624. cross_compiling=no
  625. subdirs=
  626. MFLAGS=
  627. MAKEFLAGS=
  628. SHELL=${CONFIG_SHELL-/bin/sh}
  629. # Identity of this package.
  630. PACKAGE_NAME='gc'
  631. PACKAGE_TARNAME='gc'
  632. PACKAGE_VERSION='7.1'
  633. PACKAGE_STRING='gc 7.1'
  634. PACKAGE_BUGREPORT='Hans.Boehm@hp.com'
  635. ac_unique_file="gcj_mlc.c"
  636. # Factoring default headers for most tests.
  637. ac_includes_default="\
  638. #include <stdio.h>
  639. #ifdef HAVE_SYS_TYPES_H
  640. # include <sys/types.h>
  641. #endif
  642. #ifdef HAVE_SYS_STAT_H
  643. # include <sys/stat.h>
  644. #endif
  645. #ifdef STDC_HEADERS
  646. # include <stdlib.h>
  647. # include <stddef.h>
  648. #else
  649. # ifdef HAVE_STDLIB_H
  650. # include <stdlib.h>
  651. # endif
  652. #endif
  653. #ifdef HAVE_STRING_H
  654. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  655. # include <memory.h>
  656. # endif
  657. # include <string.h>
  658. #endif
  659. #ifdef HAVE_STRINGS_H
  660. # include <strings.h>
  661. #endif
  662. #ifdef HAVE_INTTYPES_H
  663. # include <inttypes.h>
  664. #endif
  665. #ifdef HAVE_STDINT_H
  666. # include <stdint.h>
  667. #endif
  668. #ifdef HAVE_UNISTD_H
  669. # include <unistd.h>
  670. #endif"
  671. ac_subst_vars='SHELL
  672. PATH_SEPARATOR
  673. PACKAGE_NAME
  674. PACKAGE_TARNAME
  675. PACKAGE_VERSION
  676. PACKAGE_STRING
  677. PACKAGE_BUGREPORT
  678. exec_prefix
  679. prefix
  680. program_transform_name
  681. bindir
  682. sbindir
  683. libexecdir
  684. datarootdir
  685. datadir
  686. sysconfdir
  687. sharedstatedir
  688. localstatedir
  689. includedir
  690. oldincludedir
  691. docdir
  692. infodir
  693. htmldir
  694. dvidir
  695. pdfdir
  696. psdir
  697. libdir
  698. localedir
  699. mandir
  700. DEFS
  701. ECHO_C
  702. ECHO_N
  703. ECHO_T
  704. LIBS
  705. build_alias
  706. host_alias
  707. target_alias
  708. build
  709. build_cpu
  710. build_vendor
  711. build_os
  712. host
  713. host_cpu
  714. host_vendor
  715. host_os
  716. target
  717. target_cpu
  718. target_vendor
  719. target_os
  720. INSTALL_PROGRAM
  721. INSTALL_SCRIPT
  722. INSTALL_DATA
  723. CYGPATH_W
  724. PACKAGE
  725. VERSION
  726. ACLOCAL
  727. AUTOCONF
  728. AUTOMAKE
  729. AUTOHEADER
  730. MAKEINFO
  731. install_sh
  732. STRIP
  733. INSTALL_STRIP_PROGRAM
  734. mkdir_p
  735. AWK
  736. SET_MAKE
  737. am__leading_dot
  738. AMTAR
  739. am__tar
  740. am__untar
  741. MAINTAINER_MODE_TRUE
  742. MAINTAINER_MODE_FALSE
  743. MAINT
  744. GC_VERSION
  745. CC
  746. CFLAGS
  747. LDFLAGS
  748. CPPFLAGS
  749. ac_ct_CC
  750. EXEEXT
  751. OBJEXT
  752. DEPDIR
  753. am__include
  754. am__quote
  755. AMDEP_TRUE
  756. AMDEP_FALSE
  757. AMDEPBACKSLASH
  758. CCDEPMODE
  759. am__fastdepCC_TRUE
  760. am__fastdepCC_FALSE
  761. CXX
  762. CXXFLAGS
  763. ac_ct_CXX
  764. CXXDEPMODE
  765. am__fastdepCXX_TRUE
  766. am__fastdepCXX_FALSE
  767. CCAS
  768. CCASFLAGS
  769. AR
  770. RANLIB
  771. GC_CFLAGS
  772. THREADDLLIBS
  773. THREADS_TRUE
  774. THREADS_FALSE
  775. PTHREADS_TRUE
  776. PTHREADS_FALSE
  777. DARWIN_THREADS_TRUE
  778. DARWIN_THREADS_FALSE
  779. WIN32_THREADS_TRUE
  780. WIN32_THREADS_FALSE
  781. COMPILER_XLC_TRUE
  782. COMPILER_XLC_FALSE
  783. AVOID_CPP_LIB_TRUE
  784. AVOID_CPP_LIB_FALSE
  785. extra_ldflags_libgc
  786. EXTRA_TEST_LIBS
  787. target_all
  788. CPLUSPLUS_TRUE
  789. CPLUSPLUS_FALSE
  790. INCLUDES
  791. CXXINCLUDES
  792. addobjs
  793. addlibs
  794. GREP
  795. EGREP
  796. LN_S
  797. ECHO
  798. CPP
  799. CXXCPP
  800. F77
  801. FFLAGS
  802. ac_ct_F77
  803. LIBTOOL
  804. ENABLE_GCJ_SUPPORT_TRUE
  805. ENABLE_GCJ_SUPPORT_FALSE
  806. UNWINDLIBS
  807. USE_LIBDIR_TRUE
  808. USE_LIBDIR_FALSE
  809. subdirs
  810. USE_INTERNAL_LIBATOMIC_OPS_TRUE
  811. USE_INTERNAL_LIBATOMIC_OPS_FALSE
  812. NEED_ATOMIC_OPS_ASM_TRUE
  813. NEED_ATOMIC_OPS_ASM_FALSE
  814. atomic_ops_libs
  815. LIBOBJS
  816. LTLIBOBJS'
  817. ac_subst_files=''
  818. ac_precious_vars='build_alias
  819. host_alias
  820. target_alias
  821. CC
  822. CFLAGS
  823. LDFLAGS
  824. LIBS
  825. CPPFLAGS
  826. CXX
  827. CXXFLAGS
  828. CCC
  829. CCAS
  830. CCASFLAGS
  831. CPP
  832. CXXCPP
  833. F77
  834. FFLAGS'
  835. ac_subdirs_all='libatomic_ops'
  836. # Initialize some variables set by options.
  837. ac_init_help=
  838. ac_init_version=false
  839. # The variables have the same names as the options, with
  840. # dashes changed to underlines.
  841. cache_file=/dev/null
  842. exec_prefix=NONE
  843. no_create=
  844. no_recursion=
  845. prefix=NONE
  846. program_prefix=NONE
  847. program_suffix=NONE
  848. program_transform_name=s,x,x,
  849. silent=
  850. site=
  851. srcdir=
  852. verbose=
  853. x_includes=NONE
  854. x_libraries=NONE
  855. # Installation directory options.
  856. # These are left unexpanded so users can "make install exec_prefix=/foo"
  857. # and all the variables that are supposed to be based on exec_prefix
  858. # by default will actually change.
  859. # Use braces instead of parens because sh, perl, etc. also accept them.
  860. # (The list follows the same order as the GNU Coding Standards.)
  861. bindir='${exec_prefix}/bin'
  862. sbindir='${exec_prefix}/sbin'
  863. libexecdir='${exec_prefix}/libexec'
  864. datarootdir='${prefix}/share'
  865. datadir='${datarootdir}'
  866. sysconfdir='${prefix}/etc'
  867. sharedstatedir='${prefix}/com'
  868. localstatedir='${prefix}/var'
  869. includedir='${prefix}/include'
  870. oldincludedir='/usr/include'
  871. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  872. infodir='${datarootdir}/info'
  873. htmldir='${docdir}'
  874. dvidir='${docdir}'
  875. pdfdir='${docdir}'
  876. psdir='${docdir}'
  877. libdir='${exec_prefix}/lib'
  878. localedir='${datarootdir}/locale'
  879. mandir='${datarootdir}/man'
  880. ac_prev=
  881. ac_dashdash=
  882. for ac_option
  883. do
  884. # If the previous option needs an argument, assign it.
  885. if test -n "$ac_prev"; then
  886. eval $ac_prev=\$ac_option
  887. ac_prev=
  888. continue
  889. fi
  890. case $ac_option in
  891. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  892. *) ac_optarg=yes ;;
  893. esac
  894. # Accept the important Cygnus configure options, so we can diagnose typos.
  895. case $ac_dashdash$ac_option in
  896. --)
  897. ac_dashdash=yes ;;
  898. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  899. ac_prev=bindir ;;
  900. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  901. bindir=$ac_optarg ;;
  902. -build | --build | --buil | --bui | --bu)
  903. ac_prev=build_alias ;;
  904. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  905. build_alias=$ac_optarg ;;
  906. -cache-file | --cache-file | --cache-fil | --cache-fi \
  907. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  908. ac_prev=cache_file ;;
  909. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  910. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  911. cache_file=$ac_optarg ;;
  912. --config-cache | -C)
  913. cache_file=config.cache ;;
  914. -datadir | --datadir | --datadi | --datad)
  915. ac_prev=datadir ;;
  916. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  917. datadir=$ac_optarg ;;
  918. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  919. | --dataroo | --dataro | --datar)
  920. ac_prev=datarootdir ;;
  921. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  922. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  923. datarootdir=$ac_optarg ;;
  924. -disable-* | --disable-*)
  925. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  926. # Reject names that are not valid shell variable names.
  927. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  928. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  929. { (exit 1); exit 1; }; }
  930. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  931. eval enable_$ac_feature=no ;;
  932. -docdir | --docdir | --docdi | --doc | --do)
  933. ac_prev=docdir ;;
  934. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  935. docdir=$ac_optarg ;;
  936. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  937. ac_prev=dvidir ;;
  938. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  939. dvidir=$ac_optarg ;;
  940. -enable-* | --enable-*)
  941. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  942. # Reject names that are not valid shell variable names.
  943. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  944. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  945. { (exit 1); exit 1; }; }
  946. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  947. eval enable_$ac_feature=\$ac_optarg ;;
  948. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  949. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  950. | --exec | --exe | --ex)
  951. ac_prev=exec_prefix ;;
  952. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  953. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  954. | --exec=* | --exe=* | --ex=*)
  955. exec_prefix=$ac_optarg ;;
  956. -gas | --gas | --ga | --g)
  957. # Obsolete; use --with-gas.
  958. with_gas=yes ;;
  959. -help | --help | --hel | --he | -h)
  960. ac_init_help=long ;;
  961. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  962. ac_init_help=recursive ;;
  963. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  964. ac_init_help=short ;;
  965. -host | --host | --hos | --ho)
  966. ac_prev=host_alias ;;
  967. -host=* | --host=* | --hos=* | --ho=*)
  968. host_alias=$ac_optarg ;;
  969. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  970. ac_prev=htmldir ;;
  971. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  972. | --ht=*)
  973. htmldir=$ac_optarg ;;
  974. -includedir | --includedir | --includedi | --included | --include \
  975. | --includ | --inclu | --incl | --inc)
  976. ac_prev=includedir ;;
  977. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  978. | --includ=* | --inclu=* | --incl=* | --inc=*)
  979. includedir=$ac_optarg ;;
  980. -infodir | --infodir | --infodi | --infod | --info | --inf)
  981. ac_prev=infodir ;;
  982. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  983. infodir=$ac_optarg ;;
  984. -libdir | --libdir | --libdi | --libd)
  985. ac_prev=libdir ;;
  986. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  987. libdir=$ac_optarg ;;
  988. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  989. | --libexe | --libex | --libe)
  990. ac_prev=libexecdir ;;
  991. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  992. | --libexe=* | --libex=* | --libe=*)
  993. libexecdir=$ac_optarg ;;
  994. -localedir | --localedir | --localedi | --localed | --locale)
  995. ac_prev=localedir ;;
  996. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  997. localedir=$ac_optarg ;;
  998. -localstatedir | --localstatedir | --localstatedi | --localstated \
  999. | --localstate | --localstat | --localsta | --localst | --locals)
  1000. ac_prev=localstatedir ;;
  1001. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1002. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1003. localstatedir=$ac_optarg ;;
  1004. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1005. ac_prev=mandir ;;
  1006. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1007. mandir=$ac_optarg ;;
  1008. -nfp | --nfp | --nf)
  1009. # Obsolete; use --without-fp.
  1010. with_fp=no ;;
  1011. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1012. | --no-cr | --no-c | -n)
  1013. no_create=yes ;;
  1014. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1015. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1016. no_recursion=yes ;;
  1017. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1018. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1019. | --oldin | --oldi | --old | --ol | --o)
  1020. ac_prev=oldincludedir ;;
  1021. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1022. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1023. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1024. oldincludedir=$ac_optarg ;;
  1025. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1026. ac_prev=prefix ;;
  1027. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1028. prefix=$ac_optarg ;;
  1029. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1030. | --program-pre | --program-pr | --program-p)
  1031. ac_prev=program_prefix ;;
  1032. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1033. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1034. program_prefix=$ac_optarg ;;
  1035. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1036. | --program-suf | --program-su | --program-s)
  1037. ac_prev=program_suffix ;;
  1038. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1039. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1040. program_suffix=$ac_optarg ;;
  1041. -program-transform-name | --program-transform-name \
  1042. | --program-transform-nam | --program-transform-na \
  1043. | --program-transform-n | --program-transform- \
  1044. | --program-transform | --program-transfor \
  1045. | --program-transfo | --program-transf \
  1046. | --program-trans | --program-tran \
  1047. | --progr-tra | --program-tr | --program-t)
  1048. ac_prev=program_transform_name ;;
  1049. -program-transform-name=* | --program-transform-name=* \
  1050. | --program-transform-nam=* | --program-transform-na=* \
  1051. | --program-transform-n=* | --program-transform-=* \
  1052. | --program-transform=* | --program-transfor=* \
  1053. | --program-transfo=* | --program-transf=* \
  1054. | --program-trans=* | --program-tran=* \
  1055. | --progr-tra=* | --program-tr=* | --program-t=*)
  1056. program_transform_name=$ac_optarg ;;
  1057. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1058. ac_prev=pdfdir ;;
  1059. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1060. pdfdir=$ac_optarg ;;
  1061. -psdir | --psdir | --psdi | --psd | --ps)
  1062. ac_prev=psdir ;;
  1063. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1064. psdir=$ac_optarg ;;
  1065. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1066. | -silent | --silent | --silen | --sile | --sil)
  1067. silent=yes ;;
  1068. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1069. ac_prev=sbindir ;;
  1070. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1071. | --sbi=* | --sb=*)
  1072. sbindir=$ac_optarg ;;
  1073. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1074. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1075. | --sharedst | --shareds | --shared | --share | --shar \
  1076. | --sha | --sh)
  1077. ac_prev=sharedstatedir ;;
  1078. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1079. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1080. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1081. | --sha=* | --sh=*)
  1082. sharedstatedir=$ac_optarg ;;
  1083. -site | --site | --sit)
  1084. ac_prev=site ;;
  1085. -site=* | --site=* | --sit=*)
  1086. site=$ac_optarg ;;
  1087. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1088. ac_prev=srcdir ;;
  1089. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1090. srcdir=$ac_optarg ;;
  1091. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1092. | --syscon | --sysco | --sysc | --sys | --sy)
  1093. ac_prev=sysconfdir ;;
  1094. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1095. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1096. sysconfdir=$ac_optarg ;;
  1097. -target | --target | --targe | --targ | --tar | --ta | --t)
  1098. ac_prev=target_alias ;;
  1099. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1100. target_alias=$ac_optarg ;;
  1101. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1102. verbose=yes ;;
  1103. -version | --version | --versio | --versi | --vers | -V)
  1104. ac_init_version=: ;;
  1105. -with-* | --with-*)
  1106. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1107. # Reject names that are not valid shell variable names.
  1108. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1109. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1110. { (exit 1); exit 1; }; }
  1111. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1112. eval with_$ac_package=\$ac_optarg ;;
  1113. -without-* | --without-*)
  1114. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1115. # Reject names that are not valid shell variable names.
  1116. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1117. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1118. { (exit 1); exit 1; }; }
  1119. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1120. eval with_$ac_package=no ;;
  1121. --x)
  1122. # Obsolete; use --with-x.
  1123. with_x=yes ;;
  1124. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1125. | --x-incl | --x-inc | --x-in | --x-i)
  1126. ac_prev=x_includes ;;
  1127. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1128. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1129. x_includes=$ac_optarg ;;
  1130. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1131. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1132. ac_prev=x_libraries ;;
  1133. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1134. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1135. x_libraries=$ac_optarg ;;
  1136. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1137. Try \`$0 --help' for more information." >&2
  1138. { (exit 1); exit 1; }; }
  1139. ;;
  1140. *=*)
  1141. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1142. # Reject names that are not valid shell variable names.
  1143. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1144. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1145. { (exit 1); exit 1; }; }
  1146. eval $ac_envvar=\$ac_optarg
  1147. export $ac_envvar ;;
  1148. *)
  1149. # FIXME: should be removed in autoconf 3.0.
  1150. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1151. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1152. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1153. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1154. ;;
  1155. esac
  1156. done
  1157. if test -n "$ac_prev"; then
  1158. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1159. { echo "$as_me: error: missing argument to $ac_option" >&2
  1160. { (exit 1); exit 1; }; }
  1161. fi
  1162. # Be sure to have absolute directory names.
  1163. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1164. datadir sysconfdir sharedstatedir localstatedir includedir \
  1165. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1166. libdir localedir mandir
  1167. do
  1168. eval ac_val=\$$ac_var
  1169. case $ac_val in
  1170. [\\/$]* | ?:[\\/]* ) continue;;
  1171. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1172. esac
  1173. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1174. { (exit 1); exit 1; }; }
  1175. done
  1176. # There might be people who depend on the old broken behavior: `$host'
  1177. # used to hold the argument of --host etc.
  1178. # FIXME: To remove some day.
  1179. build=$build_alias
  1180. host=$host_alias
  1181. target=$target_alias
  1182. # FIXME: To remove some day.
  1183. if test "x$host_alias" != x; then
  1184. if test "x$build_alias" = x; then
  1185. cross_compiling=maybe
  1186. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1187. If a cross compiler is detected then cross compile mode will be used." >&2
  1188. elif test "x$build_alias" != "x$host_alias"; then
  1189. cross_compiling=yes
  1190. fi
  1191. fi
  1192. ac_tool_prefix=
  1193. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1194. test "$silent" = yes && exec 6>/dev/null
  1195. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1196. ac_ls_di=`ls -di .` &&
  1197. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1198. { echo "$as_me: error: Working directory cannot be determined" >&2
  1199. { (exit 1); exit 1; }; }
  1200. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1201. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1202. { (exit 1); exit 1; }; }
  1203. # Find the source files, if location was not specified.
  1204. if test -z "$srcdir"; then
  1205. ac_srcdir_defaulted=yes
  1206. # Try the directory containing this script, then the parent directory.
  1207. ac_confdir=`$as_dirname -- "$0" ||
  1208. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1209. X"$0" : 'X\(//\)[^/]' \| \
  1210. X"$0" : 'X\(//\)$' \| \
  1211. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1212. echo X"$0" |
  1213. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1214. s//\1/
  1215. q
  1216. }
  1217. /^X\(\/\/\)[^/].*/{
  1218. s//\1/
  1219. q
  1220. }
  1221. /^X\(\/\/\)$/{
  1222. s//\1/
  1223. q
  1224. }
  1225. /^X\(\/\).*/{
  1226. s//\1/
  1227. q
  1228. }
  1229. s/.*/./; q'`
  1230. srcdir=$ac_confdir
  1231. if test ! -r "$srcdir/$ac_unique_file"; then
  1232. srcdir=..
  1233. fi
  1234. else
  1235. ac_srcdir_defaulted=no
  1236. fi
  1237. if test ! -r "$srcdir/$ac_unique_file"; then
  1238. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1239. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1240. { (exit 1); exit 1; }; }
  1241. fi
  1242. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1243. ac_abs_confdir=`(
  1244. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1245. { (exit 1); exit 1; }; }
  1246. pwd)`
  1247. # When building in place, set srcdir=.
  1248. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1249. srcdir=.
  1250. fi
  1251. # Remove unnecessary trailing slashes from srcdir.
  1252. # Double slashes in file names in object file debugging info
  1253. # mess up M-x gdb in Emacs.
  1254. case $srcdir in
  1255. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1256. esac
  1257. for ac_var in $ac_precious_vars; do
  1258. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1259. eval ac_env_${ac_var}_value=\$${ac_var}
  1260. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1261. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1262. done
  1263. #
  1264. # Report the --help message.
  1265. #
  1266. if test "$ac_init_help" = "long"; then
  1267. # Omit some internal or obsolete options to make the list less imposing.
  1268. # This message is too long to be a string in the A/UX 3.1 sh.
  1269. cat <<_ACEOF
  1270. \`configure' configures gc 7.1 to adapt to many kinds of systems.
  1271. Usage: $0 [OPTION]... [VAR=VALUE]...
  1272. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1273. VAR=VALUE. See below for descriptions of some of the useful variables.
  1274. Defaults for the options are specified in brackets.
  1275. Configuration:
  1276. -h, --help display this help and exit
  1277. --help=short display options specific to this package
  1278. --help=recursive display the short help of all the included packages
  1279. -V, --version display version information and exit
  1280. -q, --quiet, --silent do not print \`checking...' messages
  1281. --cache-file=FILE cache test results in FILE [disabled]
  1282. -C, --config-cache alias for \`--cache-file=config.cache'
  1283. -n, --no-create do not create output files
  1284. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1285. Installation directories:
  1286. --prefix=PREFIX install architecture-independent files in PREFIX
  1287. [$ac_default_prefix]
  1288. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1289. [PREFIX]
  1290. By default, \`make install' will install all the files in
  1291. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1292. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1293. for instance \`--prefix=\$HOME'.
  1294. For better control, use the options below.
  1295. Fine tuning of the installation directories:
  1296. --bindir=DIR user executables [EPREFIX/bin]
  1297. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1298. --libexecdir=DIR program executables [EPREFIX/libexec]
  1299. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1300. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1301. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1302. --libdir=DIR object code libraries [EPREFIX/lib]
  1303. --includedir=DIR C header files [PREFIX/include]
  1304. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1305. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1306. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1307. --infodir=DIR info documentation [DATAROOTDIR/info]
  1308. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1309. --mandir=DIR man documentation [DATAROOTDIR/man]
  1310. --docdir=DIR documentation root [DATAROOTDIR/doc/gc]
  1311. --htmldir=DIR html documentation [DOCDIR]
  1312. --dvidir=DIR dvi documentation [DOCDIR]
  1313. --pdfdir=DIR pdf documentation [DOCDIR]
  1314. --psdir=DIR ps documentation [DOCDIR]
  1315. _ACEOF
  1316. cat <<\_ACEOF
  1317. Program names:
  1318. --program-prefix=PREFIX prepend PREFIX to installed program names
  1319. --program-suffix=SUFFIX append SUFFIX to installed program names
  1320. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1321. System types:
  1322. --build=BUILD configure for building on BUILD [guessed]
  1323. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1324. --target=TARGET configure for building compilers for TARGET [HOST]
  1325. _ACEOF
  1326. fi
  1327. if test -n "$ac_init_help"; then
  1328. case $ac_init_help in
  1329. short | recursive ) echo "Configuration of gc 7.1:";;
  1330. esac
  1331. cat <<\_ACEOF
  1332. Optional Features:
  1333. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1334. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1335. --enable-maintainer-mode enable make rules and dependencies not useful
  1336. (and sometimes confusing) to the casual installer
  1337. --disable-dependency-tracking speeds up one-time build
  1338. --enable-dependency-tracking do not reject slow dependency extractors
  1339. --enable-threads=TYPE choose threading package
  1340. --enable-parallel-mark parallelize marking and free list construction
  1341. --enable-cplusplus install C++ support
  1342. --enable-shared[=PKGS] build shared libraries [default=yes]
  1343. --enable-static[=PKGS] build static libraries [default=yes]
  1344. --enable-fast-install[=PKGS]
  1345. optimize for fast installation [default=yes]
  1346. --disable-libtool-lock avoid locking (might break parallel builds)
  1347. --disable-gcj-support Disable support for gcj.
  1348. --disable-java-finalization
  1349. Disable support for java finalization.
  1350. --disable-atomic-uncollectible
  1351. Disable support for atomic uncollectible allocation.
  1352. --enable-redirect-malloc
  1353. Redirect malloc and friends to GC routines
  1354. --enable-large-config Optimize for large (> 100 MB) heap or root set
  1355. --enable-gc-debug include full support for pointer backtracing etc.
  1356. --enable-gc-assertions collector-internal assertion checking
  1357. --enable-munmap=N return page to the os if empty for N collections
  1358. Optional Packages:
  1359. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1360. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1361. --with-ecos enable runtime eCos target support
  1362. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1363. --with-pic try to use only PIC/non-PIC objects [default=use
  1364. both]
  1365. --with-tags[=TAGS] include additional configurations [automatic]
  1366. --with-target-subdir=SUBDIR
  1367. configuring with a cross compiler
  1368. --with-cross-host=HOST configuring with a cross compiler
  1369. Some influential environment variables:
  1370. CC C compiler command
  1371. CFLAGS C compiler flags
  1372. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1373. nonstandard directory <lib dir>
  1374. LIBS libraries to pass to the linker, e.g. -l<library>
  1375. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1376. you have headers in a nonstandard directory <include dir>
  1377. CXX C++ compiler command
  1378. CXXFLAGS C++ compiler flags
  1379. CCAS assembler compiler command (defaults to CC)
  1380. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1381. CPP C preprocessor
  1382. CXXCPP C++ preprocessor
  1383. F77 Fortran 77 compiler command
  1384. FFLAGS Fortran 77 compiler flags
  1385. Use these variables to override the choices made by `configure' or to help
  1386. it to find libraries and programs with nonstandard names/locations.
  1387. Report bugs to <Hans.Boehm@hp.com>.
  1388. _ACEOF
  1389. ac_status=$?
  1390. fi
  1391. if test "$ac_init_help" = "recursive"; then
  1392. # If there are subdirs, report their specific --help.
  1393. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1394. test -d "$ac_dir" || continue
  1395. ac_builddir=.
  1396. case "$ac_dir" in
  1397. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1398. *)
  1399. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1400. # A ".." for each directory in $ac_dir_suffix.
  1401. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1402. case $ac_top_builddir_sub in
  1403. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1404. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1405. esac ;;
  1406. esac
  1407. ac_abs_top_builddir=$ac_pwd
  1408. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1409. # for backward compatibility:
  1410. ac_top_builddir=$ac_top_build_prefix
  1411. case $srcdir in
  1412. .) # We are building in place.
  1413. ac_srcdir=.
  1414. ac_top_srcdir=$ac_top_builddir_sub
  1415. ac_abs_top_srcdir=$ac_pwd ;;
  1416. [\\/]* | ?:[\\/]* ) # Absolute name.
  1417. ac_srcdir=$srcdir$ac_dir_suffix;
  1418. ac_top_srcdir=$srcdir
  1419. ac_abs_top_srcdir=$srcdir ;;
  1420. *) # Relative name.
  1421. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1422. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1423. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1424. esac
  1425. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1426. cd "$ac_dir" || { ac_status=$?; continue; }
  1427. # Check for guested configure.
  1428. if test -f "$ac_srcdir/configure.gnu"; then
  1429. echo &&
  1430. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1431. elif test -f "$ac_srcdir/configure"; then
  1432. echo &&
  1433. $SHELL "$ac_srcdir/configure" --help=recursive
  1434. else
  1435. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1436. fi || ac_status=$?
  1437. cd "$ac_pwd" || { ac_status=$?; break; }
  1438. done
  1439. fi
  1440. test -n "$ac_init_help" && exit $ac_status
  1441. if $ac_init_version; then
  1442. cat <<\_ACEOF
  1443. gc configure 7.1
  1444. generated by GNU Autoconf 2.61
  1445. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1446. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1447. This configure script is free software; the Free Software Foundation
  1448. gives unlimited permission to copy, distribute and modify it.
  1449. _ACEOF
  1450. exit
  1451. fi
  1452. cat >config.log <<_ACEOF
  1453. This file contains any messages produced by compilers while
  1454. running configure, to aid debugging if configure makes a mistake.
  1455. It was created by gc $as_me 7.1, which was
  1456. generated by GNU Autoconf 2.61. Invocation command line was
  1457. $ $0 $@
  1458. _ACEOF
  1459. exec 5>>config.log
  1460. {
  1461. cat <<_ASUNAME
  1462. ## --------- ##
  1463. ## Platform. ##
  1464. ## --------- ##
  1465. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1466. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1467. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1468. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1469. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1470. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1471. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1472. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1473. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1474. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1475. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1476. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1477. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1478. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1479. _ASUNAME
  1480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1481. for as_dir in $PATH
  1482. do
  1483. IFS=$as_save_IFS
  1484. test -z "$as_dir" && as_dir=.
  1485. echo "PATH: $as_dir"
  1486. done
  1487. IFS=$as_save_IFS
  1488. } >&5
  1489. cat >&5 <<_ACEOF
  1490. ## ----------- ##
  1491. ## Core tests. ##
  1492. ## ----------- ##
  1493. _ACEOF
  1494. # Keep a trace of the command line.
  1495. # Strip out --no-create and --no-recursion so they do not pile up.
  1496. # Strip out --silent because we don't want to record it for future runs.
  1497. # Also quote any args containing shell meta-characters.
  1498. # Make two passes to allow for proper duplicate-argument suppression.
  1499. ac_configure_args=
  1500. ac_configure_args0=
  1501. ac_configure_args1=
  1502. ac_must_keep_next=false
  1503. for ac_pass in 1 2
  1504. do
  1505. for ac_arg
  1506. do
  1507. case $ac_arg in
  1508. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1509. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1510. | -silent | --silent | --silen | --sile | --sil)
  1511. continue ;;
  1512. *\'*)
  1513. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1514. esac
  1515. case $ac_pass in
  1516. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1517. 2)
  1518. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1519. if test $ac_must_keep_next = true; then
  1520. ac_must_keep_next=false # Got value, back to normal.
  1521. else
  1522. case $ac_arg in
  1523. *=* | --config-cache | -C | -disable-* | --disable-* \
  1524. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1525. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1526. | -with-* | --with-* | -without-* | --without-* | --x)
  1527. case "$ac_configure_args0 " in
  1528. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1529. esac
  1530. ;;
  1531. -* ) ac_must_keep_next=true ;;
  1532. esac
  1533. fi
  1534. ac_configure_args="$ac_configure_args '$ac_arg'"
  1535. ;;
  1536. esac
  1537. done
  1538. done
  1539. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1540. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1541. # When interrupted or exit'd, cleanup temporary files, and complete
  1542. # config.log. We remove comments because anyway the quotes in there
  1543. # would cause problems or look ugly.
  1544. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1545. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1546. trap 'exit_status=$?
  1547. # Save into config.log some information that might help in debugging.
  1548. {
  1549. echo
  1550. cat <<\_ASBOX
  1551. ## ---------------- ##
  1552. ## Cache variables. ##
  1553. ## ---------------- ##
  1554. _ASBOX
  1555. echo
  1556. # The following way of writing the cache mishandles newlines in values,
  1557. (
  1558. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1559. eval ac_val=\$$ac_var
  1560. case $ac_val in #(
  1561. *${as_nl}*)
  1562. case $ac_var in #(
  1563. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1564. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1565. esac
  1566. case $ac_var in #(
  1567. _ | IFS | as_nl) ;; #(
  1568. *) $as_unset $ac_var ;;
  1569. esac ;;
  1570. esac
  1571. done
  1572. (set) 2>&1 |
  1573. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1574. *${as_nl}ac_space=\ *)
  1575. sed -n \
  1576. "s/'\''/'\''\\\\'\'''\''/g;
  1577. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1578. ;; #(
  1579. *)
  1580. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1581. ;;
  1582. esac |
  1583. sort
  1584. )
  1585. echo
  1586. cat <<\_ASBOX
  1587. ## ----------------- ##
  1588. ## Output variables. ##
  1589. ## ----------------- ##
  1590. _ASBOX
  1591. echo
  1592. for ac_var in $ac_subst_vars
  1593. do
  1594. eval ac_val=\$$ac_var
  1595. case $ac_val in
  1596. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1597. esac
  1598. echo "$ac_var='\''$ac_val'\''"
  1599. done | sort
  1600. echo
  1601. if test -n "$ac_subst_files"; then
  1602. cat <<\_ASBOX
  1603. ## ------------------- ##
  1604. ## File substitutions. ##
  1605. ## ------------------- ##
  1606. _ASBOX
  1607. echo
  1608. for ac_var in $ac_subst_files
  1609. do
  1610. eval ac_val=\$$ac_var
  1611. case $ac_val in
  1612. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1613. esac
  1614. echo "$ac_var='\''$ac_val'\''"
  1615. done | sort
  1616. echo
  1617. fi
  1618. if test -s confdefs.h; then
  1619. cat <<\_ASBOX
  1620. ## ----------- ##
  1621. ## confdefs.h. ##
  1622. ## ----------- ##
  1623. _ASBOX
  1624. echo
  1625. cat confdefs.h
  1626. echo
  1627. fi
  1628. test "$ac_signal" != 0 &&
  1629. echo "$as_me: caught signal $ac_signal"
  1630. echo "$as_me: exit $exit_status"
  1631. } >&5
  1632. rm -f core *.core core.conftest.* &&
  1633. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1634. exit $exit_status
  1635. ' 0
  1636. for ac_signal in 1 2 13 15; do
  1637. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1638. done
  1639. ac_signal=0
  1640. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1641. rm -f -r conftest* confdefs.h
  1642. # Predefined preprocessor variables.
  1643. cat >>confdefs.h <<_ACEOF
  1644. #define PACKAGE_NAME "$PACKAGE_NAME"
  1645. _ACEOF
  1646. cat >>confdefs.h <<_ACEOF
  1647. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1648. _ACEOF
  1649. cat >>confdefs.h <<_ACEOF
  1650. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1651. _ACEOF
  1652. cat >>confdefs.h <<_ACEOF
  1653. #define PACKAGE_STRING "$PACKAGE_STRING"
  1654. _ACEOF
  1655. cat >>confdefs.h <<_ACEOF
  1656. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1657. _ACEOF
  1658. # Let the site file select an alternate cache file if it wants to.
  1659. # Prefer explicitly selected file to automatically selected ones.
  1660. if test -n "$CONFIG_SITE"; then
  1661. set x "$CONFIG_SITE"
  1662. elif test "x$prefix" != xNONE; then
  1663. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1664. else
  1665. set x "$ac_default_prefix/share/config.site" \
  1666. "$ac_default_prefix/etc/config.site"
  1667. fi
  1668. shift
  1669. for ac_site_file
  1670. do
  1671. if test -r "$ac_site_file"; then
  1672. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1673. echo "$as_me: loading site script $ac_site_file" >&6;}
  1674. sed 's/^/| /' "$ac_site_file" >&5
  1675. . "$ac_site_file"
  1676. fi
  1677. done
  1678. if test -r "$cache_file"; then
  1679. # Some versions of bash will fail to source /dev/null (special
  1680. # files actually), so we avoid doing that.
  1681. if test -f "$cache_file"; then
  1682. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1683. echo "$as_me: loading cache $cache_file" >&6;}
  1684. case $cache_file in
  1685. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1686. *) . "./$cache_file";;
  1687. esac
  1688. fi
  1689. else
  1690. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1691. echo "$as_me: creating cache $cache_file" >&6;}
  1692. >$cache_file
  1693. fi
  1694. # Check that the precious variables saved in the cache have kept the same
  1695. # value.
  1696. ac_cache_corrupted=false
  1697. for ac_var in $ac_precious_vars; do
  1698. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1699. eval ac_new_set=\$ac_env_${ac_var}_set
  1700. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1701. eval ac_new_val=\$ac_env_${ac_var}_value
  1702. case $ac_old_set,$ac_new_set in
  1703. set,)
  1704. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1705. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1706. ac_cache_corrupted=: ;;
  1707. ,set)
  1708. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1709. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1710. ac_cache_corrupted=: ;;
  1711. ,);;
  1712. *)
  1713. if test "x$ac_old_val" != "x$ac_new_val"; then
  1714. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1715. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1716. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1717. echo "$as_me: former value: $ac_old_val" >&2;}
  1718. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1719. echo "$as_me: current value: $ac_new_val" >&2;}
  1720. ac_cache_corrupted=:
  1721. fi;;
  1722. esac
  1723. # Pass precious variables to config.status.
  1724. if test "$ac_new_set" = set; then
  1725. case $ac_new_val in
  1726. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1727. *) ac_arg=$ac_var=$ac_new_val ;;
  1728. esac
  1729. case " $ac_configure_args " in
  1730. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1731. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1732. esac
  1733. fi
  1734. done
  1735. if $ac_cache_corrupted; then
  1736. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1737. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1738. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1739. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1740. { (exit 1); exit 1; }; }
  1741. fi
  1742. ac_ext=c
  1743. ac_cpp='$CPP $CPPFLAGS'
  1744. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1745. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1746. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1747. ## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)?
  1748. ac_aux_dir=
  1749. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1750. if test -f "$ac_dir/install-sh"; then
  1751. ac_aux_dir=$ac_dir
  1752. ac_install_sh="$ac_aux_dir/install-sh -c"
  1753. break
  1754. elif test -f "$ac_dir/install.sh"; then
  1755. ac_aux_dir=$ac_dir
  1756. ac_install_sh="$ac_aux_dir/install.sh -c"
  1757. break
  1758. elif test -f "$ac_dir/shtool"; then
  1759. ac_aux_dir=$ac_dir
  1760. ac_install_sh="$ac_aux_dir/shtool install -c"
  1761. break
  1762. fi
  1763. done
  1764. if test -z "$ac_aux_dir"; then
  1765. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1766. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1767. { (exit 1); exit 1; }; }
  1768. fi
  1769. # These three variables are undocumented and unsupported,
  1770. # and are intended to be withdrawn in a future Autoconf release.
  1771. # They can cause serious problems if a builder's source tree is in a directory
  1772. # whose full name contains unusual characters.
  1773. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1774. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1775. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1776. # Make sure we can run config.sub.
  1777. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1778. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1779. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1780. { (exit 1); exit 1; }; }
  1781. { echo "$as_me:$LINENO: checking build system type" >&5
  1782. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1783. if test "${ac_cv_build+set}" = set; then
  1784. echo $ECHO_N "(cached) $ECHO_C" >&6
  1785. else
  1786. ac_build_alias=$build_alias
  1787. test "x$ac_build_alias" = x &&
  1788. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1789. test "x$ac_build_alias" = x &&
  1790. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1791. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1792. { (exit 1); exit 1; }; }
  1793. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1794. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1795. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1796. { (exit 1); exit 1; }; }
  1797. fi
  1798. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1799. echo "${ECHO_T}$ac_cv_build" >&6; }
  1800. case $ac_cv_build in
  1801. *-*-*) ;;
  1802. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1803. echo "$as_me: error: invalid value of canonical build" >&2;}
  1804. { (exit 1); exit 1; }; };;
  1805. esac
  1806. build=$ac_cv_build
  1807. ac_save_IFS=$IFS; IFS='-'
  1808. set x $ac_cv_build
  1809. shift
  1810. build_cpu=$1
  1811. build_vendor=$2
  1812. shift; shift
  1813. # Remember, the first character of IFS is used to create $*,
  1814. # except with old shells:
  1815. build_os=$*
  1816. IFS=$ac_save_IFS
  1817. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1818. { echo "$as_me:$LINENO: checking host system type" >&5
  1819. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1820. if test "${ac_cv_host+set}" = set; then
  1821. echo $ECHO_N "(cached) $ECHO_C" >&6
  1822. else
  1823. if test "x$host_alias" = x; then
  1824. ac_cv_host=$ac_cv_build
  1825. else
  1826. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1827. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1828. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1829. { (exit 1); exit 1; }; }
  1830. fi
  1831. fi
  1832. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1833. echo "${ECHO_T}$ac_cv_host" >&6; }
  1834. case $ac_cv_host in
  1835. *-*-*) ;;
  1836. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1837. echo "$as_me: error: invalid value of canonical host" >&2;}
  1838. { (exit 1); exit 1; }; };;
  1839. esac
  1840. host=$ac_cv_host
  1841. ac_save_IFS=$IFS; IFS='-'
  1842. set x $ac_cv_host
  1843. shift
  1844. host_cpu=$1
  1845. host_vendor=$2
  1846. shift; shift
  1847. # Remember, the first character of IFS is used to create $*,
  1848. # except with old shells:
  1849. host_os=$*
  1850. IFS=$ac_save_IFS
  1851. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1852. { echo "$as_me:$LINENO: checking target system type" >&5
  1853. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1854. if test "${ac_cv_target+set}" = set; then
  1855. echo $ECHO_N "(cached) $ECHO_C" >&6
  1856. else
  1857. if test "x$target_alias" = x; then
  1858. ac_cv_target=$ac_cv_host
  1859. else
  1860. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1861. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1862. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1863. { (exit 1); exit 1; }; }
  1864. fi
  1865. fi
  1866. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1867. echo "${ECHO_T}$ac_cv_target" >&6; }
  1868. case $ac_cv_target in
  1869. *-*-*) ;;
  1870. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1871. echo "$as_me: error: invalid value of canonical target" >&2;}
  1872. { (exit 1); exit 1; }; };;
  1873. esac
  1874. target=$ac_cv_target
  1875. ac_save_IFS=$IFS; IFS='-'
  1876. set x $ac_cv_target
  1877. shift
  1878. target_cpu=$1
  1879. target_vendor=$2
  1880. shift; shift
  1881. # Remember, the first character of IFS is used to create $*,
  1882. # except with old shells:
  1883. target_os=$*
  1884. IFS=$ac_save_IFS
  1885. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1886. # The aliases save the names the user supplied, while $host etc.
  1887. # will get canonicalized.
  1888. test -n "$target_alias" &&
  1889. test "$program_prefix$program_suffix$program_transform_name" = \
  1890. NONENONEs,x,x, &&
  1891. program_prefix=${target_alias}-
  1892. { echo "$as_me:$LINENO: checking GC version numbers" >&5
  1893. echo $ECHO_N "checking GC version numbers... $ECHO_C" >&6; }
  1894. GC_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/^\([0-9][0-9]*\)[.].*$/\1/g'`
  1895. GC_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.]\([0-9][0-9]*\).*$/\1/g'`
  1896. GC_ALPHA_VERSION=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.][0-9]*//'`
  1897. case "$GC_ALPHA_VERSION" in
  1898. alpha*)
  1899. GC_ALPHA_VERSION=`echo $GC_ALPHA_VERSION \
  1900. | sed 's/alpha\([0-9][0-9]*\)/\1/'` ;;
  1901. *) GC_ALPHA_MAJOR='' ;;
  1902. esac
  1903. if test :$GC_VERSION_MAJOR: = :: \
  1904. -o :$GC_VERSION_MINOR: = :: ;
  1905. then
  1906. { echo "$as_me:$LINENO: result: invalid" >&5
  1907. echo "${ECHO_T}invalid" >&6; }
  1908. { { echo "$as_me:$LINENO: error: nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" >&5
  1909. echo "$as_me: error: nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" >&2;}
  1910. { (exit 1); exit 1; }; }
  1911. fi
  1912. cat >>confdefs.h <<_ACEOF
  1913. #define GC_VERSION_MAJOR $GC_VERSION_MAJOR
  1914. _ACEOF
  1915. cat >>confdefs.h <<_ACEOF
  1916. #define GC_VERSION_MINOR $GC_VERSION_MINOR
  1917. _ACEOF
  1918. if test :$GC_ALPHA_VERSION: != :: ; then
  1919. cat >>confdefs.h <<_ACEOF
  1920. #define GC_ALPHA_VERSION $GC_ALPHA_VERSION
  1921. _ACEOF
  1922. fi
  1923. { echo "$as_me:$LINENO: result: major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
  1924. ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&5
  1925. echo "${ECHO_T}major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
  1926. ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&6; }
  1927. am__api_version="1.9"
  1928. # Find a good install program. We prefer a C program (faster),
  1929. # so one script is as good as another. But avoid the broken or
  1930. # incompatible versions:
  1931. # SysV /etc/install, /usr/sbin/install
  1932. # SunOS /usr/etc/install
  1933. # IRIX /sbin/install
  1934. # AIX /bin/install
  1935. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1936. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1937. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1938. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1939. # OS/2's system install, which has a completely different semantic
  1940. # ./install, which can be erroneously created by make from ./install.sh.
  1941. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1942. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1943. if test -z "$INSTALL"; then
  1944. if test "${ac_cv_path_install+set}" = set; then
  1945. echo $ECHO_N "(cached) $ECHO_C" >&6
  1946. else
  1947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1948. for as_dir in $PATH
  1949. do
  1950. IFS=$as_save_IFS
  1951. test -z "$as_dir" && as_dir=.
  1952. # Account for people who put trailing slashes in PATH elements.
  1953. case $as_dir/ in
  1954. ./ | .// | /cC/* | \
  1955. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1956. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1957. /usr/ucb/* ) ;;
  1958. *)
  1959. # OSF1 and SCO ODT 3.0 have their own names for install.
  1960. # Don't use installbsd from OSF since it installs stuff as root
  1961. # by default.
  1962. for ac_prog in ginstall scoinst install; do
  1963. for ac_exec_ext in '' $ac_executable_extensions; do
  1964. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1965. if test $ac_prog = install &&
  1966. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1967. # AIX install. It has an incompatible calling convention.
  1968. :
  1969. elif test $ac_prog = install &&
  1970. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1971. # program-specific install script used by HP pwplus--don't use.
  1972. :
  1973. else
  1974. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1975. break 3
  1976. fi
  1977. fi
  1978. done
  1979. done
  1980. ;;
  1981. esac
  1982. done
  1983. IFS=$as_save_IFS
  1984. fi
  1985. if test "${ac_cv_path_install+set}" = set; then
  1986. INSTALL=$ac_cv_path_install
  1987. else
  1988. # As a last resort, use the slow shell script. Don't cache a
  1989. # value for INSTALL within a source directory, because that will
  1990. # break other packages using the cache if that directory is
  1991. # removed, or if the value is a relative name.
  1992. INSTALL=$ac_install_sh
  1993. fi
  1994. fi
  1995. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1996. echo "${ECHO_T}$INSTALL" >&6; }
  1997. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1998. # It thinks the first close brace ends the variable substitution.
  1999. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2000. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2001. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2002. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2003. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2004. # Just in case
  2005. sleep 1
  2006. echo timestamp > conftest.file
  2007. # Do `set' in a subshell so we don't clobber the current shell's
  2008. # arguments. Must try -L first in case configure is actually a
  2009. # symlink; some systems play weird games with the mod time of symlinks
  2010. # (eg FreeBSD returns the mod time of the symlink's containing
  2011. # directory).
  2012. if (
  2013. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2014. if test "$*" = "X"; then
  2015. # -L didn't work.
  2016. set X `ls -t $srcdir/configure conftest.file`
  2017. fi
  2018. rm -f conftest.file
  2019. if test "$*" != "X $srcdir/configure conftest.file" \
  2020. && test "$*" != "X conftest.file $srcdir/configure"; then
  2021. # If neither matched, then we have a broken ls. This can happen
  2022. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2023. # broken ls alias from the environment. This has actually
  2024. # happened. Such a system could not be considered "sane".
  2025. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2026. alias in your environment" >&5
  2027. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2028. alias in your environment" >&2;}
  2029. { (exit 1); exit 1; }; }
  2030. fi
  2031. test "$2" = conftest.file
  2032. )
  2033. then
  2034. # Ok.
  2035. :
  2036. else
  2037. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2038. Check your system clock" >&5
  2039. echo "$as_me: error: newly created file is older than distributed files!
  2040. Check your system clock" >&2;}
  2041. { (exit 1); exit 1; }; }
  2042. fi
  2043. { echo "$as_me:$LINENO: result: yes" >&5
  2044. echo "${ECHO_T}yes" >&6; }
  2045. test "$program_prefix" != NONE &&
  2046. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2047. # Use a double $ so make ignores it.
  2048. test "$program_suffix" != NONE &&
  2049. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2050. # Double any \ or $. echo might interpret backslashes.
  2051. # By default was `s,x,x', remove it if useless.
  2052. cat <<\_ACEOF >conftest.sed
  2053. s/[\\$]/&&/g;s/;s,x,x,$//
  2054. _ACEOF
  2055. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2056. rm -f conftest.sed
  2057. # expand $ac_aux_dir to an absolute path
  2058. am_aux_dir=`cd $ac_aux_dir && pwd`
  2059. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2060. # Use eval to expand $SHELL
  2061. if eval "$MISSING --run true"; then
  2062. am_missing_run="$MISSING --run "
  2063. else
  2064. am_missing_run=
  2065. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2066. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2067. fi
  2068. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2069. # We used to keeping the `.' as first argument, in order to
  2070. # allow $(mkdir_p) to be used without argument. As in
  2071. # $(mkdir_p) $(somedir)
  2072. # where $(somedir) is conditionally defined. However this is wrong
  2073. # for two reasons:
  2074. # 1. if the package is installed by a user who cannot write `.'
  2075. # make install will fail,
  2076. # 2. the above comment should most certainly read
  2077. # $(mkdir_p) $(DESTDIR)$(somedir)
  2078. # so it does not work when $(somedir) is undefined and
  2079. # $(DESTDIR) is not.
  2080. # To support the latter case, we have to write
  2081. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2082. # so the `.' trick is pointless.
  2083. mkdir_p='mkdir -p --'
  2084. else
  2085. # On NextStep and OpenStep, the `mkdir' command does not
  2086. # recognize any option. It will interpret all options as
  2087. # directories to create, and then abort because `.' already
  2088. # exists.
  2089. for d in ./-p ./--version;
  2090. do
  2091. test -d $d && rmdir $d
  2092. done
  2093. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2094. if test -f "$ac_aux_dir/mkinstalldirs"; then
  2095. mkdir_p='$(mkinstalldirs)'
  2096. else
  2097. mkdir_p='$(install_sh) -d'
  2098. fi
  2099. fi
  2100. for ac_prog in gawk mawk nawk awk
  2101. do
  2102. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2103. set dummy $ac_prog; ac_word=$2
  2104. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2105. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2106. if test "${ac_cv_prog_AWK+set}" = set; then
  2107. echo $ECHO_N "(cached) $ECHO_C" >&6
  2108. else
  2109. if test -n "$AWK"; then
  2110. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2111. else
  2112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2113. for as_dir in $PATH
  2114. do
  2115. IFS=$as_save_IFS
  2116. test -z "$as_dir" && as_dir=.
  2117. for ac_exec_ext in '' $ac_executable_extensions; do
  2118. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2119. ac_cv_prog_AWK="$ac_prog"
  2120. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2121. break 2
  2122. fi
  2123. done
  2124. done
  2125. IFS=$as_save_IFS
  2126. fi
  2127. fi
  2128. AWK=$ac_cv_prog_AWK
  2129. if test -n "$AWK"; then
  2130. { echo "$as_me:$LINENO: result: $AWK" >&5
  2131. echo "${ECHO_T}$AWK" >&6; }
  2132. else
  2133. { echo "$as_me:$LINENO: result: no" >&5
  2134. echo "${ECHO_T}no" >&6; }
  2135. fi
  2136. test -n "$AWK" && break
  2137. done
  2138. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2139. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2140. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2141. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2142. echo $ECHO_N "(cached) $ECHO_C" >&6
  2143. else
  2144. cat >conftest.make <<\_ACEOF
  2145. SHELL = /bin/sh
  2146. all:
  2147. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2148. _ACEOF
  2149. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2150. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2151. *@@@%%%=?*=@@@%%%*)
  2152. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2153. *)
  2154. eval ac_cv_prog_make_${ac_make}_set=no;;
  2155. esac
  2156. rm -f conftest.make
  2157. fi
  2158. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2159. { echo "$as_me:$LINENO: result: yes" >&5
  2160. echo "${ECHO_T}yes" >&6; }
  2161. SET_MAKE=
  2162. else
  2163. { echo "$as_me:$LINENO: result: no" >&5
  2164. echo "${ECHO_T}no" >&6; }
  2165. SET_MAKE="MAKE=${MAKE-make}"
  2166. fi
  2167. rm -rf .tst 2>/dev/null
  2168. mkdir .tst 2>/dev/null
  2169. if test -d .tst; then
  2170. am__leading_dot=.
  2171. else
  2172. am__leading_dot=_
  2173. fi
  2174. rmdir .tst 2>/dev/null
  2175. # test to see if srcdir already configured
  2176. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2177. test -f $srcdir/config.status; then
  2178. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2179. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2180. { (exit 1); exit 1; }; }
  2181. fi
  2182. # test whether we have cygpath
  2183. if test -z "$CYGPATH_W"; then
  2184. if (cygpath --version) >/dev/null 2>/dev/null; then
  2185. CYGPATH_W='cygpath -w'
  2186. else
  2187. CYGPATH_W=echo
  2188. fi
  2189. fi
  2190. # Define the identity of the package.
  2191. PACKAGE='gc'
  2192. VERSION='7.1'
  2193. cat >>confdefs.h <<_ACEOF
  2194. #define PACKAGE "$PACKAGE"
  2195. _ACEOF
  2196. cat >>confdefs.h <<_ACEOF
  2197. #define VERSION "$VERSION"
  2198. _ACEOF
  2199. # Some tools Automake needs.
  2200. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2201. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2202. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2203. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2204. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2205. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2206. # Installed binaries are usually stripped using `strip' when the user
  2207. # run `make install-strip'. However `strip' might not be the right
  2208. # tool to use in cross-compilation environments, therefore Automake
  2209. # will honor the `STRIP' environment variable to overrule this program.
  2210. if test "$cross_compiling" != no; then
  2211. if test -n "$ac_tool_prefix"; then
  2212. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2213. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2214. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2215. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2216. if test "${ac_cv_prog_STRIP+set}" = set; then
  2217. echo $ECHO_N "(cached) $ECHO_C" >&6
  2218. else
  2219. if test -n "$STRIP"; then
  2220. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2221. else
  2222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2223. for as_dir in $PATH
  2224. do
  2225. IFS=$as_save_IFS
  2226. test -z "$as_dir" && as_dir=.
  2227. for ac_exec_ext in '' $ac_executable_extensions; do
  2228. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2229. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2230. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2231. break 2
  2232. fi
  2233. done
  2234. done
  2235. IFS=$as_save_IFS
  2236. fi
  2237. fi
  2238. STRIP=$ac_cv_prog_STRIP
  2239. if test -n "$STRIP"; then
  2240. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2241. echo "${ECHO_T}$STRIP" >&6; }
  2242. else
  2243. { echo "$as_me:$LINENO: result: no" >&5
  2244. echo "${ECHO_T}no" >&6; }
  2245. fi
  2246. fi
  2247. if test -z "$ac_cv_prog_STRIP"; then
  2248. ac_ct_STRIP=$STRIP
  2249. # Extract the first word of "strip", so it can be a program name with args.
  2250. set dummy strip; ac_word=$2
  2251. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2252. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2253. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2254. echo $ECHO_N "(cached) $ECHO_C" >&6
  2255. else
  2256. if test -n "$ac_ct_STRIP"; then
  2257. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2258. else
  2259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2260. for as_dir in $PATH
  2261. do
  2262. IFS=$as_save_IFS
  2263. test -z "$as_dir" && as_dir=.
  2264. for ac_exec_ext in '' $ac_executable_extensions; do
  2265. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2266. ac_cv_prog_ac_ct_STRIP="strip"
  2267. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2268. break 2
  2269. fi
  2270. done
  2271. done
  2272. IFS=$as_save_IFS
  2273. fi
  2274. fi
  2275. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2276. if test -n "$ac_ct_STRIP"; then
  2277. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2278. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2279. else
  2280. { echo "$as_me:$LINENO: result: no" >&5
  2281. echo "${ECHO_T}no" >&6; }
  2282. fi
  2283. if test "x$ac_ct_STRIP" = x; then
  2284. STRIP=":"
  2285. else
  2286. case $cross_compiling:$ac_tool_warned in
  2287. yes:)
  2288. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2289. whose name does not start with the host triplet. If you think this
  2290. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2291. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2292. whose name does not start with the host triplet. If you think this
  2293. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2294. ac_tool_warned=yes ;;
  2295. esac
  2296. STRIP=$ac_ct_STRIP
  2297. fi
  2298. else
  2299. STRIP="$ac_cv_prog_STRIP"
  2300. fi
  2301. fi
  2302. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2303. # We need awk for the "check" target. The system "awk" is bad on
  2304. # some platforms.
  2305. # Always define AMTAR for backward compatibility.
  2306. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2307. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2308. { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2309. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2310. # Check whether --enable-maintainer-mode was given.
  2311. if test "${enable_maintainer_mode+set}" = set; then
  2312. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2313. else
  2314. USE_MAINTAINER_MODE=no
  2315. fi
  2316. { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2317. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2318. if test $USE_MAINTAINER_MODE = yes; then
  2319. MAINTAINER_MODE_TRUE=
  2320. MAINTAINER_MODE_FALSE='#'
  2321. else
  2322. MAINTAINER_MODE_TRUE='#'
  2323. MAINTAINER_MODE_FALSE=
  2324. fi
  2325. MAINT=$MAINTAINER_MODE_TRUE
  2326. DEPDIR="${am__leading_dot}deps"
  2327. ac_config_commands="$ac_config_commands depfiles"
  2328. am_make=${MAKE-make}
  2329. cat > confinc << 'END'
  2330. am__doit:
  2331. @echo done
  2332. .PHONY: am__doit
  2333. END
  2334. # If we don't find an include directive, just comment out the code.
  2335. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2336. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2337. am__include="#"
  2338. am__quote=
  2339. _am_result=none
  2340. # First try GNU make style include.
  2341. echo "include confinc" > confmf
  2342. # We grep out `Entering directory' and `Leaving directory'
  2343. # messages which can occur if `w' ends up in MAKEFLAGS.
  2344. # In particular we don't look at `^make:' because GNU make might
  2345. # be invoked under some other name (usually "gmake"), in which
  2346. # case it prints its new name instead of `make'.
  2347. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2348. am__include=include
  2349. am__quote=
  2350. _am_result=GNU
  2351. fi
  2352. # Now try BSD make style include.
  2353. if test "$am__include" = "#"; then
  2354. echo '.include "confinc"' > confmf
  2355. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2356. am__include=.include
  2357. am__quote="\""
  2358. _am_result=BSD
  2359. fi
  2360. fi
  2361. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2362. echo "${ECHO_T}$_am_result" >&6; }
  2363. rm -f confinc confmf
  2364. # Check whether --enable-dependency-tracking was given.
  2365. if test "${enable_dependency_tracking+set}" = set; then
  2366. enableval=$enable_dependency_tracking;
  2367. fi
  2368. if test "x$enable_dependency_tracking" != xno; then
  2369. am_depcomp="$ac_aux_dir/depcomp"
  2370. AMDEPBACKSLASH='\'
  2371. fi
  2372. if test "x$enable_dependency_tracking" != xno; then
  2373. AMDEP_TRUE=
  2374. AMDEP_FALSE='#'
  2375. else
  2376. AMDEP_TRUE='#'
  2377. AMDEP_FALSE=
  2378. fi
  2379. ac_ext=c
  2380. ac_cpp='$CPP $CPPFLAGS'
  2381. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2382. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2383. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2384. if test -n "$ac_tool_prefix"; then
  2385. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2386. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2387. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2388. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2389. if test "${ac_cv_prog_CC+set}" = set; then
  2390. echo $ECHO_N "(cached) $ECHO_C" >&6
  2391. else
  2392. if test -n "$CC"; then
  2393. ac_cv_prog_CC="$CC" # Let the user override the test.
  2394. else
  2395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2396. for as_dir in $PATH
  2397. do
  2398. IFS=$as_save_IFS
  2399. test -z "$as_dir" && as_dir=.
  2400. for ac_exec_ext in '' $ac_executable_extensions; do
  2401. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2402. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2403. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2404. break 2
  2405. fi
  2406. done
  2407. done
  2408. IFS=$as_save_IFS
  2409. fi
  2410. fi
  2411. CC=$ac_cv_prog_CC
  2412. if test -n "$CC"; then
  2413. { echo "$as_me:$LINENO: result: $CC" >&5
  2414. echo "${ECHO_T}$CC" >&6; }
  2415. else
  2416. { echo "$as_me:$LINENO: result: no" >&5
  2417. echo "${ECHO_T}no" >&6; }
  2418. fi
  2419. fi
  2420. if test -z "$ac_cv_prog_CC"; then
  2421. ac_ct_CC=$CC
  2422. # Extract the first word of "gcc", so it can be a program name with args.
  2423. set dummy gcc; ac_word=$2
  2424. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2425. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2426. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2427. echo $ECHO_N "(cached) $ECHO_C" >&6
  2428. else
  2429. if test -n "$ac_ct_CC"; then
  2430. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2431. else
  2432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2433. for as_dir in $PATH
  2434. do
  2435. IFS=$as_save_IFS
  2436. test -z "$as_dir" && as_dir=.
  2437. for ac_exec_ext in '' $ac_executable_extensions; do
  2438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2439. ac_cv_prog_ac_ct_CC="gcc"
  2440. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2441. break 2
  2442. fi
  2443. done
  2444. done
  2445. IFS=$as_save_IFS
  2446. fi
  2447. fi
  2448. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2449. if test -n "$ac_ct_CC"; then
  2450. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2451. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2452. else
  2453. { echo "$as_me:$LINENO: result: no" >&5
  2454. echo "${ECHO_T}no" >&6; }
  2455. fi
  2456. if test "x$ac_ct_CC" = x; then
  2457. CC=""
  2458. else
  2459. case $cross_compiling:$ac_tool_warned in
  2460. yes:)
  2461. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2462. whose name does not start with the host triplet. If you think this
  2463. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2464. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2465. whose name does not start with the host triplet. If you think this
  2466. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2467. ac_tool_warned=yes ;;
  2468. esac
  2469. CC=$ac_ct_CC
  2470. fi
  2471. else
  2472. CC="$ac_cv_prog_CC"
  2473. fi
  2474. if test -z "$CC"; then
  2475. if test -n "$ac_tool_prefix"; then
  2476. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2477. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2478. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2479. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2480. if test "${ac_cv_prog_CC+set}" = set; then
  2481. echo $ECHO_N "(cached) $ECHO_C" >&6
  2482. else
  2483. if test -n "$CC"; then
  2484. ac_cv_prog_CC="$CC" # Let the user override the test.
  2485. else
  2486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2487. for as_dir in $PATH
  2488. do
  2489. IFS=$as_save_IFS
  2490. test -z "$as_dir" && as_dir=.
  2491. for ac_exec_ext in '' $ac_executable_extensions; do
  2492. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2493. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2494. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2495. break 2
  2496. fi
  2497. done
  2498. done
  2499. IFS=$as_save_IFS
  2500. fi
  2501. fi
  2502. CC=$ac_cv_prog_CC
  2503. if test -n "$CC"; then
  2504. { echo "$as_me:$LINENO: result: $CC" >&5
  2505. echo "${ECHO_T}$CC" >&6; }
  2506. else
  2507. { echo "$as_me:$LINENO: result: no" >&5
  2508. echo "${ECHO_T}no" >&6; }
  2509. fi
  2510. fi
  2511. fi
  2512. if test -z "$CC"; then
  2513. # Extract the first word of "cc", so it can be a program name with args.
  2514. set dummy cc; ac_word=$2
  2515. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2516. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2517. if test "${ac_cv_prog_CC+set}" = set; then
  2518. echo $ECHO_N "(cached) $ECHO_C" >&6
  2519. else
  2520. if test -n "$CC"; then
  2521. ac_cv_prog_CC="$CC" # Let the user override the test.
  2522. else
  2523. ac_prog_rejected=no
  2524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2525. for as_dir in $PATH
  2526. do
  2527. IFS=$as_save_IFS
  2528. test -z "$as_dir" && as_dir=.
  2529. for ac_exec_ext in '' $ac_executable_extensions; do
  2530. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2531. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2532. ac_prog_rejected=yes
  2533. continue
  2534. fi
  2535. ac_cv_prog_CC="cc"
  2536. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2537. break 2
  2538. fi
  2539. done
  2540. done
  2541. IFS=$as_save_IFS
  2542. if test $ac_prog_rejected = yes; then
  2543. # We found a bogon in the path, so make sure we never use it.
  2544. set dummy $ac_cv_prog_CC
  2545. shift
  2546. if test $# != 0; then
  2547. # We chose a different compiler from the bogus one.
  2548. # However, it has the same basename, so the bogon will be chosen
  2549. # first if we set CC to just the basename; use the full file name.
  2550. shift
  2551. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2552. fi
  2553. fi
  2554. fi
  2555. fi
  2556. CC=$ac_cv_prog_CC
  2557. if test -n "$CC"; then
  2558. { echo "$as_me:$LINENO: result: $CC" >&5
  2559. echo "${ECHO_T}$CC" >&6; }
  2560. else
  2561. { echo "$as_me:$LINENO: result: no" >&5
  2562. echo "${ECHO_T}no" >&6; }
  2563. fi
  2564. fi
  2565. if test -z "$CC"; then
  2566. if test -n "$ac_tool_prefix"; then
  2567. for ac_prog in cl.exe
  2568. do
  2569. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2570. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2571. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2572. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2573. if test "${ac_cv_prog_CC+set}" = set; then
  2574. echo $ECHO_N "(cached) $ECHO_C" >&6
  2575. else
  2576. if test -n "$CC"; then
  2577. ac_cv_prog_CC="$CC" # Let the user override the test.
  2578. else
  2579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2580. for as_dir in $PATH
  2581. do
  2582. IFS=$as_save_IFS
  2583. test -z "$as_dir" && as_dir=.
  2584. for ac_exec_ext in '' $ac_executable_extensions; do
  2585. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2586. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2587. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2588. break 2
  2589. fi
  2590. done
  2591. done
  2592. IFS=$as_save_IFS
  2593. fi
  2594. fi
  2595. CC=$ac_cv_prog_CC
  2596. if test -n "$CC"; then
  2597. { echo "$as_me:$LINENO: result: $CC" >&5
  2598. echo "${ECHO_T}$CC" >&6; }
  2599. else
  2600. { echo "$as_me:$LINENO: result: no" >&5
  2601. echo "${ECHO_T}no" >&6; }
  2602. fi
  2603. test -n "$CC" && break
  2604. done
  2605. fi
  2606. if test -z "$CC"; then
  2607. ac_ct_CC=$CC
  2608. for ac_prog in cl.exe
  2609. do
  2610. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2611. set dummy $ac_prog; ac_word=$2
  2612. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2613. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2614. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2615. echo $ECHO_N "(cached) $ECHO_C" >&6
  2616. else
  2617. if test -n "$ac_ct_CC"; then
  2618. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2619. else
  2620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2621. for as_dir in $PATH
  2622. do
  2623. IFS=$as_save_IFS
  2624. test -z "$as_dir" && as_dir=.
  2625. for ac_exec_ext in '' $ac_executable_extensions; do
  2626. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2627. ac_cv_prog_ac_ct_CC="$ac_prog"
  2628. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2629. break 2
  2630. fi
  2631. done
  2632. done
  2633. IFS=$as_save_IFS
  2634. fi
  2635. fi
  2636. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2637. if test -n "$ac_ct_CC"; then
  2638. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2639. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2640. else
  2641. { echo "$as_me:$LINENO: result: no" >&5
  2642. echo "${ECHO_T}no" >&6; }
  2643. fi
  2644. test -n "$ac_ct_CC" && break
  2645. done
  2646. if test "x$ac_ct_CC" = x; then
  2647. CC=""
  2648. else
  2649. case $cross_compiling:$ac_tool_warned in
  2650. yes:)
  2651. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2652. whose name does not start with the host triplet. If you think this
  2653. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2654. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2655. whose name does not start with the host triplet. If you think this
  2656. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2657. ac_tool_warned=yes ;;
  2658. esac
  2659. CC=$ac_ct_CC
  2660. fi
  2661. fi
  2662. fi
  2663. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2664. See \`config.log' for more details." >&5
  2665. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2666. See \`config.log' for more details." >&2;}
  2667. { (exit 1); exit 1; }; }
  2668. # Provide some information about the compiler.
  2669. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2670. ac_compiler=`set X $ac_compile; echo $2`
  2671. { (ac_try="$ac_compiler --version >&5"
  2672. case "(($ac_try" in
  2673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2674. *) ac_try_echo=$ac_try;;
  2675. esac
  2676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2677. (eval "$ac_compiler --version >&5") 2>&5
  2678. ac_status=$?
  2679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2680. (exit $ac_status); }
  2681. { (ac_try="$ac_compiler -v >&5"
  2682. case "(($ac_try" in
  2683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2684. *) ac_try_echo=$ac_try;;
  2685. esac
  2686. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2687. (eval "$ac_compiler -v >&5") 2>&5
  2688. ac_status=$?
  2689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2690. (exit $ac_status); }
  2691. { (ac_try="$ac_compiler -V >&5"
  2692. case "(($ac_try" in
  2693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2694. *) ac_try_echo=$ac_try;;
  2695. esac
  2696. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2697. (eval "$ac_compiler -V >&5") 2>&5
  2698. ac_status=$?
  2699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2700. (exit $ac_status); }
  2701. cat >conftest.$ac_ext <<_ACEOF
  2702. /* confdefs.h. */
  2703. _ACEOF
  2704. cat confdefs.h >>conftest.$ac_ext
  2705. cat >>conftest.$ac_ext <<_ACEOF
  2706. /* end confdefs.h. */
  2707. int
  2708. main ()
  2709. {
  2710. ;
  2711. return 0;
  2712. }
  2713. _ACEOF
  2714. ac_clean_files_save=$ac_clean_files
  2715. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2716. # Try to create an executable without -o first, disregard a.out.
  2717. # It will help us diagnose broken compilers, and finding out an intuition
  2718. # of exeext.
  2719. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2720. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2721. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2722. #
  2723. # List of possible output files, starting from the most likely.
  2724. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2725. # only as a last resort. b.out is created by i960 compilers.
  2726. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2727. #
  2728. # The IRIX 6 linker writes into existing files which may not be
  2729. # executable, retaining their permissions. Remove them first so a
  2730. # subsequent execution test works.
  2731. ac_rmfiles=
  2732. for ac_file in $ac_files
  2733. do
  2734. case $ac_file in
  2735. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2736. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2737. esac
  2738. done
  2739. rm -f $ac_rmfiles
  2740. if { (ac_try="$ac_link_default"
  2741. case "(($ac_try" in
  2742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2743. *) ac_try_echo=$ac_try;;
  2744. esac
  2745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2746. (eval "$ac_link_default") 2>&5
  2747. ac_status=$?
  2748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2749. (exit $ac_status); }; then
  2750. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2751. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2752. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2753. # so that the user can short-circuit this test for compilers unknown to
  2754. # Autoconf.
  2755. for ac_file in $ac_files ''
  2756. do
  2757. test -f "$ac_file" || continue
  2758. case $ac_file in
  2759. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2760. ;;
  2761. [ab].out )
  2762. # We found the default executable, but exeext='' is most
  2763. # certainly right.
  2764. break;;
  2765. *.* )
  2766. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2767. then :; else
  2768. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2769. fi
  2770. # We set ac_cv_exeext here because the later test for it is not
  2771. # safe: cross compilers may not add the suffix if given an `-o'
  2772. # argument, so we may need to know it at that point already.
  2773. # Even if this section looks crufty: it has the advantage of
  2774. # actually working.
  2775. break;;
  2776. * )
  2777. break;;
  2778. esac
  2779. done
  2780. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2781. else
  2782. ac_file=''
  2783. fi
  2784. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2785. echo "${ECHO_T}$ac_file" >&6; }
  2786. if test -z "$ac_file"; then
  2787. echo "$as_me: failed program was:" >&5
  2788. sed 's/^/| /' conftest.$ac_ext >&5
  2789. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2790. See \`config.log' for more details." >&5
  2791. echo "$as_me: error: C compiler cannot create executables
  2792. See \`config.log' for more details." >&2;}
  2793. { (exit 77); exit 77; }; }
  2794. fi
  2795. ac_exeext=$ac_cv_exeext
  2796. # Check that the compiler produces executables we can run. If not, either
  2797. # the compiler is broken, or we cross compile.
  2798. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2799. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2800. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2801. # If not cross compiling, check that we can run a simple program.
  2802. if test "$cross_compiling" != yes; then
  2803. if { ac_try='./$ac_file'
  2804. { (case "(($ac_try" in
  2805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2806. *) ac_try_echo=$ac_try;;
  2807. esac
  2808. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2809. (eval "$ac_try") 2>&5
  2810. ac_status=$?
  2811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2812. (exit $ac_status); }; }; then
  2813. cross_compiling=no
  2814. else
  2815. if test "$cross_compiling" = maybe; then
  2816. cross_compiling=yes
  2817. else
  2818. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2819. If you meant to cross compile, use \`--host'.
  2820. See \`config.log' for more details." >&5
  2821. echo "$as_me: error: cannot run C compiled programs.
  2822. If you meant to cross compile, use \`--host'.
  2823. See \`config.log' for more details." >&2;}
  2824. { (exit 1); exit 1; }; }
  2825. fi
  2826. fi
  2827. fi
  2828. { echo "$as_me:$LINENO: result: yes" >&5
  2829. echo "${ECHO_T}yes" >&6; }
  2830. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2831. ac_clean_files=$ac_clean_files_save
  2832. # Check that the compiler produces executables we can run. If not, either
  2833. # the compiler is broken, or we cross compile.
  2834. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2835. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2836. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2837. echo "${ECHO_T}$cross_compiling" >&6; }
  2838. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2839. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2840. if { (ac_try="$ac_link"
  2841. case "(($ac_try" in
  2842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2843. *) ac_try_echo=$ac_try;;
  2844. esac
  2845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2846. (eval "$ac_link") 2>&5
  2847. ac_status=$?
  2848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2849. (exit $ac_status); }; then
  2850. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2851. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2852. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2853. # `rm'.
  2854. for ac_file in conftest.exe conftest conftest.*; do
  2855. test -f "$ac_file" || continue
  2856. case $ac_file in
  2857. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2858. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2859. break;;
  2860. * ) break;;
  2861. esac
  2862. done
  2863. else
  2864. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2865. See \`config.log' for more details." >&5
  2866. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2867. See \`config.log' for more details." >&2;}
  2868. { (exit 1); exit 1; }; }
  2869. fi
  2870. rm -f conftest$ac_cv_exeext
  2871. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2872. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2873. rm -f conftest.$ac_ext
  2874. EXEEXT=$ac_cv_exeext
  2875. ac_exeext=$EXEEXT
  2876. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2877. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2878. if test "${ac_cv_objext+set}" = set; then
  2879. echo $ECHO_N "(cached) $ECHO_C" >&6
  2880. else
  2881. cat >conftest.$ac_ext <<_ACEOF
  2882. /* confdefs.h. */
  2883. _ACEOF
  2884. cat confdefs.h >>conftest.$ac_ext
  2885. cat >>conftest.$ac_ext <<_ACEOF
  2886. /* end confdefs.h. */
  2887. int
  2888. main ()
  2889. {
  2890. ;
  2891. return 0;
  2892. }
  2893. _ACEOF
  2894. rm -f conftest.o conftest.obj
  2895. if { (ac_try="$ac_compile"
  2896. case "(($ac_try" in
  2897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2898. *) ac_try_echo=$ac_try;;
  2899. esac
  2900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2901. (eval "$ac_compile") 2>&5
  2902. ac_status=$?
  2903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2904. (exit $ac_status); }; then
  2905. for ac_file in conftest.o conftest.obj conftest.*; do
  2906. test -f "$ac_file" || continue;
  2907. case $ac_file in
  2908. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2909. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2910. break;;
  2911. esac
  2912. done
  2913. else
  2914. echo "$as_me: failed program was:" >&5
  2915. sed 's/^/| /' conftest.$ac_ext >&5
  2916. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2917. See \`config.log' for more details." >&5
  2918. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2919. See \`config.log' for more details." >&2;}
  2920. { (exit 1); exit 1; }; }
  2921. fi
  2922. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2923. fi
  2924. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2925. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2926. OBJEXT=$ac_cv_objext
  2927. ac_objext=$OBJEXT
  2928. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2929. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2930. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2931. echo $ECHO_N "(cached) $ECHO_C" >&6
  2932. else
  2933. cat >conftest.$ac_ext <<_ACEOF
  2934. /* confdefs.h. */
  2935. _ACEOF
  2936. cat confdefs.h >>conftest.$ac_ext
  2937. cat >>conftest.$ac_ext <<_ACEOF
  2938. /* end confdefs.h. */
  2939. int
  2940. main ()
  2941. {
  2942. #ifndef __GNUC__
  2943. choke me
  2944. #endif
  2945. ;
  2946. return 0;
  2947. }
  2948. _ACEOF
  2949. rm -f conftest.$ac_objext
  2950. if { (ac_try="$ac_compile"
  2951. case "(($ac_try" in
  2952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2953. *) ac_try_echo=$ac_try;;
  2954. esac
  2955. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2956. (eval "$ac_compile") 2>conftest.er1
  2957. ac_status=$?
  2958. grep -v '^ *+' conftest.er1 >conftest.err
  2959. rm -f conftest.er1
  2960. cat conftest.err >&5
  2961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2962. (exit $ac_status); } && {
  2963. test -z "$ac_c_werror_flag" ||
  2964. test ! -s conftest.err
  2965. } && test -s conftest.$ac_objext; then
  2966. ac_compiler_gnu=yes
  2967. else
  2968. echo "$as_me: failed program was:" >&5
  2969. sed 's/^/| /' conftest.$ac_ext >&5
  2970. ac_compiler_gnu=no
  2971. fi
  2972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2973. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2974. fi
  2975. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2976. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2977. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2978. ac_test_CFLAGS=${CFLAGS+set}
  2979. ac_save_CFLAGS=$CFLAGS
  2980. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2981. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2982. if test "${ac_cv_prog_cc_g+set}" = set; then
  2983. echo $ECHO_N "(cached) $ECHO_C" >&6
  2984. else
  2985. ac_save_c_werror_flag=$ac_c_werror_flag
  2986. ac_c_werror_flag=yes
  2987. ac_cv_prog_cc_g=no
  2988. CFLAGS="-g"
  2989. cat >conftest.$ac_ext <<_ACEOF
  2990. /* confdefs.h. */
  2991. _ACEOF
  2992. cat confdefs.h >>conftest.$ac_ext
  2993. cat >>conftest.$ac_ext <<_ACEOF
  2994. /* end confdefs.h. */
  2995. int
  2996. main ()
  2997. {
  2998. ;
  2999. return 0;
  3000. }
  3001. _ACEOF
  3002. rm -f conftest.$ac_objext
  3003. if { (ac_try="$ac_compile"
  3004. case "(($ac_try" in
  3005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3006. *) ac_try_echo=$ac_try;;
  3007. esac
  3008. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3009. (eval "$ac_compile") 2>conftest.er1
  3010. ac_status=$?
  3011. grep -v '^ *+' conftest.er1 >conftest.err
  3012. rm -f conftest.er1
  3013. cat conftest.err >&5
  3014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3015. (exit $ac_status); } && {
  3016. test -z "$ac_c_werror_flag" ||
  3017. test ! -s conftest.err
  3018. } && test -s conftest.$ac_objext; then
  3019. ac_cv_prog_cc_g=yes
  3020. else
  3021. echo "$as_me: failed program was:" >&5
  3022. sed 's/^/| /' conftest.$ac_ext >&5
  3023. CFLAGS=""
  3024. cat >conftest.$ac_ext <<_ACEOF
  3025. /* confdefs.h. */
  3026. _ACEOF
  3027. cat confdefs.h >>conftest.$ac_ext
  3028. cat >>conftest.$ac_ext <<_ACEOF
  3029. /* end confdefs.h. */
  3030. int
  3031. main ()
  3032. {
  3033. ;
  3034. return 0;
  3035. }
  3036. _ACEOF
  3037. rm -f conftest.$ac_objext
  3038. if { (ac_try="$ac_compile"
  3039. case "(($ac_try" in
  3040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3041. *) ac_try_echo=$ac_try;;
  3042. esac
  3043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3044. (eval "$ac_compile") 2>conftest.er1
  3045. ac_status=$?
  3046. grep -v '^ *+' conftest.er1 >conftest.err
  3047. rm -f conftest.er1
  3048. cat conftest.err >&5
  3049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3050. (exit $ac_status); } && {
  3051. test -z "$ac_c_werror_flag" ||
  3052. test ! -s conftest.err
  3053. } && test -s conftest.$ac_objext; then
  3054. :
  3055. else
  3056. echo "$as_me: failed program was:" >&5
  3057. sed 's/^/| /' conftest.$ac_ext >&5
  3058. ac_c_werror_flag=$ac_save_c_werror_flag
  3059. CFLAGS="-g"
  3060. cat >conftest.$ac_ext <<_ACEOF
  3061. /* confdefs.h. */
  3062. _ACEOF
  3063. cat confdefs.h >>conftest.$ac_ext
  3064. cat >>conftest.$ac_ext <<_ACEOF
  3065. /* end confdefs.h. */
  3066. int
  3067. main ()
  3068. {
  3069. ;
  3070. return 0;
  3071. }
  3072. _ACEOF
  3073. rm -f conftest.$ac_objext
  3074. if { (ac_try="$ac_compile"
  3075. case "(($ac_try" in
  3076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3077. *) ac_try_echo=$ac_try;;
  3078. esac
  3079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3080. (eval "$ac_compile") 2>conftest.er1
  3081. ac_status=$?
  3082. grep -v '^ *+' conftest.er1 >conftest.err
  3083. rm -f conftest.er1
  3084. cat conftest.err >&5
  3085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3086. (exit $ac_status); } && {
  3087. test -z "$ac_c_werror_flag" ||
  3088. test ! -s conftest.err
  3089. } && test -s conftest.$ac_objext; then
  3090. ac_cv_prog_cc_g=yes
  3091. else
  3092. echo "$as_me: failed program was:" >&5
  3093. sed 's/^/| /' conftest.$ac_ext >&5
  3094. fi
  3095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3096. fi
  3097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3098. fi
  3099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3100. ac_c_werror_flag=$ac_save_c_werror_flag
  3101. fi
  3102. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3103. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3104. if test "$ac_test_CFLAGS" = set; then
  3105. CFLAGS=$ac_save_CFLAGS
  3106. elif test $ac_cv_prog_cc_g = yes; then
  3107. if test "$GCC" = yes; then
  3108. CFLAGS="-g -O2"
  3109. else
  3110. CFLAGS="-g"
  3111. fi
  3112. else
  3113. if test "$GCC" = yes; then
  3114. CFLAGS="-O2"
  3115. else
  3116. CFLAGS=
  3117. fi
  3118. fi
  3119. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3120. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3121. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3122. echo $ECHO_N "(cached) $ECHO_C" >&6
  3123. else
  3124. ac_cv_prog_cc_c89=no
  3125. ac_save_CC=$CC
  3126. cat >conftest.$ac_ext <<_ACEOF
  3127. /* confdefs.h. */
  3128. _ACEOF
  3129. cat confdefs.h >>conftest.$ac_ext
  3130. cat >>conftest.$ac_ext <<_ACEOF
  3131. /* end confdefs.h. */
  3132. #include <stdarg.h>
  3133. #include <stdio.h>
  3134. #include <sys/types.h>
  3135. #include <sys/stat.h>
  3136. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3137. struct buf { int x; };
  3138. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3139. static char *e (p, i)
  3140. char **p;
  3141. int i;
  3142. {
  3143. return p[i];
  3144. }
  3145. static char *f (char * (*g) (char **, int), char **p, ...)
  3146. {
  3147. char *s;
  3148. va_list v;
  3149. va_start (v,p);
  3150. s = g (p, va_arg (v,int));
  3151. va_end (v);
  3152. return s;
  3153. }
  3154. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3155. function prototypes and stuff, but not '\xHH' hex character constants.
  3156. These don't provoke an error unfortunately, instead are silently treated
  3157. as 'x'. The following induces an error, until -std is added to get
  3158. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3159. array size at least. It's necessary to write '\x00'==0 to get something
  3160. that's true only with -std. */
  3161. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3162. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3163. inside strings and character constants. */
  3164. #define FOO(x) 'x'
  3165. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3166. int test (int i, double x);
  3167. struct s1 {int (*f) (int a);};
  3168. struct s2 {int (*f) (double a);};
  3169. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3170. int argc;
  3171. char **argv;
  3172. int
  3173. main ()
  3174. {
  3175. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3176. ;
  3177. return 0;
  3178. }
  3179. _ACEOF
  3180. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3181. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3182. do
  3183. CC="$ac_save_CC $ac_arg"
  3184. rm -f conftest.$ac_objext
  3185. if { (ac_try="$ac_compile"
  3186. case "(($ac_try" in
  3187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3188. *) ac_try_echo=$ac_try;;
  3189. esac
  3190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3191. (eval "$ac_compile") 2>conftest.er1
  3192. ac_status=$?
  3193. grep -v '^ *+' conftest.er1 >conftest.err
  3194. rm -f conftest.er1
  3195. cat conftest.err >&5
  3196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3197. (exit $ac_status); } && {
  3198. test -z "$ac_c_werror_flag" ||
  3199. test ! -s conftest.err
  3200. } && test -s conftest.$ac_objext; then
  3201. ac_cv_prog_cc_c89=$ac_arg
  3202. else
  3203. echo "$as_me: failed program was:" >&5
  3204. sed 's/^/| /' conftest.$ac_ext >&5
  3205. fi
  3206. rm -f core conftest.err conftest.$ac_objext
  3207. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3208. done
  3209. rm -f conftest.$ac_ext
  3210. CC=$ac_save_CC
  3211. fi
  3212. # AC_CACHE_VAL
  3213. case "x$ac_cv_prog_cc_c89" in
  3214. x)
  3215. { echo "$as_me:$LINENO: result: none needed" >&5
  3216. echo "${ECHO_T}none needed" >&6; } ;;
  3217. xno)
  3218. { echo "$as_me:$LINENO: result: unsupported" >&5
  3219. echo "${ECHO_T}unsupported" >&6; } ;;
  3220. *)
  3221. CC="$CC $ac_cv_prog_cc_c89"
  3222. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3223. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3224. esac
  3225. ac_ext=c
  3226. ac_cpp='$CPP $CPPFLAGS'
  3227. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3228. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3229. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3230. depcc="$CC" am_compiler_list=
  3231. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3232. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3233. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3234. echo $ECHO_N "(cached) $ECHO_C" >&6
  3235. else
  3236. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3237. # We make a subdir and do the tests there. Otherwise we can end up
  3238. # making bogus files that we don't know about and never remove. For
  3239. # instance it was reported that on HP-UX the gcc test will end up
  3240. # making a dummy file named `D' -- because `-MD' means `put the output
  3241. # in D'.
  3242. mkdir conftest.dir
  3243. # Copy depcomp to subdir because otherwise we won't find it if we're
  3244. # using a relative directory.
  3245. cp "$am_depcomp" conftest.dir
  3246. cd conftest.dir
  3247. # We will build objects and dependencies in a subdirectory because
  3248. # it helps to detect inapplicable dependency modes. For instance
  3249. # both Tru64's cc and ICC support -MD to output dependencies as a
  3250. # side effect of compilation, but ICC will put the dependencies in
  3251. # the current directory while Tru64 will put them in the object
  3252. # directory.
  3253. mkdir sub
  3254. am_cv_CC_dependencies_compiler_type=none
  3255. if test "$am_compiler_list" = ""; then
  3256. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3257. fi
  3258. for depmode in $am_compiler_list; do
  3259. # Setup a source with many dependencies, because some compilers
  3260. # like to wrap large dependency lists on column 80 (with \), and
  3261. # we should not choose a depcomp mode which is confused by this.
  3262. #
  3263. # We need to recreate these files for each test, as the compiler may
  3264. # overwrite some of them when testing with obscure command lines.
  3265. # This happens at least with the AIX C compiler.
  3266. : > sub/conftest.c
  3267. for i in 1 2 3 4 5 6; do
  3268. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3269. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3270. # Solaris 8's {/usr,}/bin/sh.
  3271. touch sub/conftst$i.h
  3272. done
  3273. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3274. case $depmode in
  3275. nosideeffect)
  3276. # after this tag, mechanisms are not by side-effect, so they'll
  3277. # only be used when explicitly requested
  3278. if test "x$enable_dependency_tracking" = xyes; then
  3279. continue
  3280. else
  3281. break
  3282. fi
  3283. ;;
  3284. none) break ;;
  3285. esac
  3286. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3287. # mode. It turns out that the SunPro C++ compiler does not properly
  3288. # handle `-M -o', and we need to detect this.
  3289. if depmode=$depmode \
  3290. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3291. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3292. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3293. >/dev/null 2>conftest.err &&
  3294. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3295. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3296. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3297. # icc doesn't choke on unknown options, it will just issue warnings
  3298. # or remarks (even with -Werror). So we grep stderr for any message
  3299. # that says an option was ignored or not supported.
  3300. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3301. # icc: Command line warning: ignoring option '-M'; no argument required
  3302. # The diagnosis changed in icc 8.0:
  3303. # icc: Command line remark: option '-MP' not supported
  3304. if (grep 'ignoring option' conftest.err ||
  3305. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3306. am_cv_CC_dependencies_compiler_type=$depmode
  3307. break
  3308. fi
  3309. fi
  3310. done
  3311. cd ..
  3312. rm -rf conftest.dir
  3313. else
  3314. am_cv_CC_dependencies_compiler_type=none
  3315. fi
  3316. fi
  3317. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3318. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3319. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3320. if
  3321. test "x$enable_dependency_tracking" != xno \
  3322. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3323. am__fastdepCC_TRUE=
  3324. am__fastdepCC_FALSE='#'
  3325. else
  3326. am__fastdepCC_TRUE='#'
  3327. am__fastdepCC_FALSE=
  3328. fi
  3329. if test "x$CC" != xcc; then
  3330. { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3331. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  3332. else
  3333. { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3334. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  3335. fi
  3336. set dummy $CC; ac_cc=`echo $2 |
  3337. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3338. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  3339. echo $ECHO_N "(cached) $ECHO_C" >&6
  3340. else
  3341. cat >conftest.$ac_ext <<_ACEOF
  3342. /* confdefs.h. */
  3343. _ACEOF
  3344. cat confdefs.h >>conftest.$ac_ext
  3345. cat >>conftest.$ac_ext <<_ACEOF
  3346. /* end confdefs.h. */
  3347. int
  3348. main ()
  3349. {
  3350. ;
  3351. return 0;
  3352. }
  3353. _ACEOF
  3354. # Make sure it works both with $CC and with simple cc.
  3355. # We do the test twice because some compilers refuse to overwrite an
  3356. # existing .o file with -o, though they will create one.
  3357. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3358. rm -f conftest2.*
  3359. if { (case "(($ac_try" in
  3360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3361. *) ac_try_echo=$ac_try;;
  3362. esac
  3363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3364. (eval "$ac_try") 2>&5
  3365. ac_status=$?
  3366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3367. (exit $ac_status); } &&
  3368. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3370. *) ac_try_echo=$ac_try;;
  3371. esac
  3372. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3373. (eval "$ac_try") 2>&5
  3374. ac_status=$?
  3375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3376. (exit $ac_status); };
  3377. then
  3378. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3379. if test "x$CC" != xcc; then
  3380. # Test first that cc exists at all.
  3381. if { ac_try='cc -c conftest.$ac_ext >&5'
  3382. { (case "(($ac_try" in
  3383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3384. *) ac_try_echo=$ac_try;;
  3385. esac
  3386. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3387. (eval "$ac_try") 2>&5
  3388. ac_status=$?
  3389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3390. (exit $ac_status); }; }; then
  3391. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3392. rm -f conftest2.*
  3393. if { (case "(($ac_try" in
  3394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3395. *) ac_try_echo=$ac_try;;
  3396. esac
  3397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3398. (eval "$ac_try") 2>&5
  3399. ac_status=$?
  3400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3401. (exit $ac_status); } &&
  3402. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3404. *) ac_try_echo=$ac_try;;
  3405. esac
  3406. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3407. (eval "$ac_try") 2>&5
  3408. ac_status=$?
  3409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3410. (exit $ac_status); };
  3411. then
  3412. # cc works too.
  3413. :
  3414. else
  3415. # cc exists but doesn't like -o.
  3416. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3417. fi
  3418. fi
  3419. fi
  3420. else
  3421. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3422. fi
  3423. rm -f core conftest*
  3424. fi
  3425. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3426. { echo "$as_me:$LINENO: result: yes" >&5
  3427. echo "${ECHO_T}yes" >&6; }
  3428. else
  3429. { echo "$as_me:$LINENO: result: no" >&5
  3430. echo "${ECHO_T}no" >&6; }
  3431. cat >>confdefs.h <<\_ACEOF
  3432. #define NO_MINUS_C_MINUS_O 1
  3433. _ACEOF
  3434. fi
  3435. # FIXME: we rely on the cache variable name because
  3436. # there is no other way.
  3437. set dummy $CC
  3438. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3439. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3440. # Losing compiler, so override with the script.
  3441. # FIXME: It is wrong to rewrite CC.
  3442. # But if we don't then we get into trouble of one sort or another.
  3443. # A longer-term fix would be to have automake use am__CC in this case,
  3444. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3445. CC="$am_aux_dir/compile $CC"
  3446. fi
  3447. ac_ext=cpp
  3448. ac_cpp='$CXXCPP $CPPFLAGS'
  3449. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3450. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3451. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3452. if test -z "$CXX"; then
  3453. if test -n "$CCC"; then
  3454. CXX=$CCC
  3455. else
  3456. if test -n "$ac_tool_prefix"; then
  3457. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3458. do
  3459. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3460. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3461. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3462. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3463. if test "${ac_cv_prog_CXX+set}" = set; then
  3464. echo $ECHO_N "(cached) $ECHO_C" >&6
  3465. else
  3466. if test -n "$CXX"; then
  3467. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3468. else
  3469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3470. for as_dir in $PATH
  3471. do
  3472. IFS=$as_save_IFS
  3473. test -z "$as_dir" && as_dir=.
  3474. for ac_exec_ext in '' $ac_executable_extensions; do
  3475. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3476. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3477. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3478. break 2
  3479. fi
  3480. done
  3481. done
  3482. IFS=$as_save_IFS
  3483. fi
  3484. fi
  3485. CXX=$ac_cv_prog_CXX
  3486. if test -n "$CXX"; then
  3487. { echo "$as_me:$LINENO: result: $CXX" >&5
  3488. echo "${ECHO_T}$CXX" >&6; }
  3489. else
  3490. { echo "$as_me:$LINENO: result: no" >&5
  3491. echo "${ECHO_T}no" >&6; }
  3492. fi
  3493. test -n "$CXX" && break
  3494. done
  3495. fi
  3496. if test -z "$CXX"; then
  3497. ac_ct_CXX=$CXX
  3498. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3499. do
  3500. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3501. set dummy $ac_prog; ac_word=$2
  3502. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3503. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3504. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  3505. echo $ECHO_N "(cached) $ECHO_C" >&6
  3506. else
  3507. if test -n "$ac_ct_CXX"; then
  3508. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3509. else
  3510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3511. for as_dir in $PATH
  3512. do
  3513. IFS=$as_save_IFS
  3514. test -z "$as_dir" && as_dir=.
  3515. for ac_exec_ext in '' $ac_executable_extensions; do
  3516. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3517. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3518. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3519. break 2
  3520. fi
  3521. done
  3522. done
  3523. IFS=$as_save_IFS
  3524. fi
  3525. fi
  3526. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3527. if test -n "$ac_ct_CXX"; then
  3528. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  3529. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  3530. else
  3531. { echo "$as_me:$LINENO: result: no" >&5
  3532. echo "${ECHO_T}no" >&6; }
  3533. fi
  3534. test -n "$ac_ct_CXX" && break
  3535. done
  3536. if test "x$ac_ct_CXX" = x; then
  3537. CXX="g++"
  3538. else
  3539. case $cross_compiling:$ac_tool_warned in
  3540. yes:)
  3541. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3542. whose name does not start with the host triplet. If you think this
  3543. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3544. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3545. whose name does not start with the host triplet. If you think this
  3546. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3547. ac_tool_warned=yes ;;
  3548. esac
  3549. CXX=$ac_ct_CXX
  3550. fi
  3551. fi
  3552. fi
  3553. fi
  3554. # Provide some information about the compiler.
  3555. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  3556. ac_compiler=`set X $ac_compile; echo $2`
  3557. { (ac_try="$ac_compiler --version >&5"
  3558. case "(($ac_try" in
  3559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3560. *) ac_try_echo=$ac_try;;
  3561. esac
  3562. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3563. (eval "$ac_compiler --version >&5") 2>&5
  3564. ac_status=$?
  3565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3566. (exit $ac_status); }
  3567. { (ac_try="$ac_compiler -v >&5"
  3568. case "(($ac_try" in
  3569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3570. *) ac_try_echo=$ac_try;;
  3571. esac
  3572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3573. (eval "$ac_compiler -v >&5") 2>&5
  3574. ac_status=$?
  3575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3576. (exit $ac_status); }
  3577. { (ac_try="$ac_compiler -V >&5"
  3578. case "(($ac_try" in
  3579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3580. *) ac_try_echo=$ac_try;;
  3581. esac
  3582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3583. (eval "$ac_compiler -V >&5") 2>&5
  3584. ac_status=$?
  3585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3586. (exit $ac_status); }
  3587. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  3588. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  3589. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  3590. echo $ECHO_N "(cached) $ECHO_C" >&6
  3591. else
  3592. cat >conftest.$ac_ext <<_ACEOF
  3593. /* confdefs.h. */
  3594. _ACEOF
  3595. cat confdefs.h >>conftest.$ac_ext
  3596. cat >>conftest.$ac_ext <<_ACEOF
  3597. /* end confdefs.h. */
  3598. int
  3599. main ()
  3600. {
  3601. #ifndef __GNUC__
  3602. choke me
  3603. #endif
  3604. ;
  3605. return 0;
  3606. }
  3607. _ACEOF
  3608. rm -f conftest.$ac_objext
  3609. if { (ac_try="$ac_compile"
  3610. case "(($ac_try" in
  3611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3612. *) ac_try_echo=$ac_try;;
  3613. esac
  3614. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3615. (eval "$ac_compile") 2>conftest.er1
  3616. ac_status=$?
  3617. grep -v '^ *+' conftest.er1 >conftest.err
  3618. rm -f conftest.er1
  3619. cat conftest.err >&5
  3620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3621. (exit $ac_status); } && {
  3622. test -z "$ac_cxx_werror_flag" ||
  3623. test ! -s conftest.err
  3624. } && test -s conftest.$ac_objext; then
  3625. ac_compiler_gnu=yes
  3626. else
  3627. echo "$as_me: failed program was:" >&5
  3628. sed 's/^/| /' conftest.$ac_ext >&5
  3629. ac_compiler_gnu=no
  3630. fi
  3631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3632. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3633. fi
  3634. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3635. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  3636. GXX=`test $ac_compiler_gnu = yes && echo yes`
  3637. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3638. ac_save_CXXFLAGS=$CXXFLAGS
  3639. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3640. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  3641. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3642. echo $ECHO_N "(cached) $ECHO_C" >&6
  3643. else
  3644. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3645. ac_cxx_werror_flag=yes
  3646. ac_cv_prog_cxx_g=no
  3647. CXXFLAGS="-g"
  3648. cat >conftest.$ac_ext <<_ACEOF
  3649. /* confdefs.h. */
  3650. _ACEOF
  3651. cat confdefs.h >>conftest.$ac_ext
  3652. cat >>conftest.$ac_ext <<_ACEOF
  3653. /* end confdefs.h. */
  3654. int
  3655. main ()
  3656. {
  3657. ;
  3658. return 0;
  3659. }
  3660. _ACEOF
  3661. rm -f conftest.$ac_objext
  3662. if { (ac_try="$ac_compile"
  3663. case "(($ac_try" in
  3664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3665. *) ac_try_echo=$ac_try;;
  3666. esac
  3667. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3668. (eval "$ac_compile") 2>conftest.er1
  3669. ac_status=$?
  3670. grep -v '^ *+' conftest.er1 >conftest.err
  3671. rm -f conftest.er1
  3672. cat conftest.err >&5
  3673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3674. (exit $ac_status); } && {
  3675. test -z "$ac_cxx_werror_flag" ||
  3676. test ! -s conftest.err
  3677. } && test -s conftest.$ac_objext; then
  3678. ac_cv_prog_cxx_g=yes
  3679. else
  3680. echo "$as_me: failed program was:" >&5
  3681. sed 's/^/| /' conftest.$ac_ext >&5
  3682. CXXFLAGS=""
  3683. cat >conftest.$ac_ext <<_ACEOF
  3684. /* confdefs.h. */
  3685. _ACEOF
  3686. cat confdefs.h >>conftest.$ac_ext
  3687. cat >>conftest.$ac_ext <<_ACEOF
  3688. /* end confdefs.h. */
  3689. int
  3690. main ()
  3691. {
  3692. ;
  3693. return 0;
  3694. }
  3695. _ACEOF
  3696. rm -f conftest.$ac_objext
  3697. if { (ac_try="$ac_compile"
  3698. case "(($ac_try" in
  3699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3700. *) ac_try_echo=$ac_try;;
  3701. esac
  3702. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3703. (eval "$ac_compile") 2>conftest.er1
  3704. ac_status=$?
  3705. grep -v '^ *+' conftest.er1 >conftest.err
  3706. rm -f conftest.er1
  3707. cat conftest.err >&5
  3708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3709. (exit $ac_status); } && {
  3710. test -z "$ac_cxx_werror_flag" ||
  3711. test ! -s conftest.err
  3712. } && test -s conftest.$ac_objext; then
  3713. :
  3714. else
  3715. echo "$as_me: failed program was:" >&5
  3716. sed 's/^/| /' conftest.$ac_ext >&5
  3717. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3718. CXXFLAGS="-g"
  3719. cat >conftest.$ac_ext <<_ACEOF
  3720. /* confdefs.h. */
  3721. _ACEOF
  3722. cat confdefs.h >>conftest.$ac_ext
  3723. cat >>conftest.$ac_ext <<_ACEOF
  3724. /* end confdefs.h. */
  3725. int
  3726. main ()
  3727. {
  3728. ;
  3729. return 0;
  3730. }
  3731. _ACEOF
  3732. rm -f conftest.$ac_objext
  3733. if { (ac_try="$ac_compile"
  3734. case "(($ac_try" in
  3735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3736. *) ac_try_echo=$ac_try;;
  3737. esac
  3738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3739. (eval "$ac_compile") 2>conftest.er1
  3740. ac_status=$?
  3741. grep -v '^ *+' conftest.er1 >conftest.err
  3742. rm -f conftest.er1
  3743. cat conftest.err >&5
  3744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3745. (exit $ac_status); } && {
  3746. test -z "$ac_cxx_werror_flag" ||
  3747. test ! -s conftest.err
  3748. } && test -s conftest.$ac_objext; then
  3749. ac_cv_prog_cxx_g=yes
  3750. else
  3751. echo "$as_me: failed program was:" >&5
  3752. sed 's/^/| /' conftest.$ac_ext >&5
  3753. fi
  3754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3755. fi
  3756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3757. fi
  3758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3759. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3760. fi
  3761. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3762. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  3763. if test "$ac_test_CXXFLAGS" = set; then
  3764. CXXFLAGS=$ac_save_CXXFLAGS
  3765. elif test $ac_cv_prog_cxx_g = yes; then
  3766. if test "$GXX" = yes; then
  3767. CXXFLAGS="-g -O2"
  3768. else
  3769. CXXFLAGS="-g"
  3770. fi
  3771. else
  3772. if test "$GXX" = yes; then
  3773. CXXFLAGS="-O2"
  3774. else
  3775. CXXFLAGS=
  3776. fi
  3777. fi
  3778. ac_ext=c
  3779. ac_cpp='$CPP $CPPFLAGS'
  3780. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3781. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3782. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3783. depcc="$CXX" am_compiler_list=
  3784. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3785. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3786. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3787. echo $ECHO_N "(cached) $ECHO_C" >&6
  3788. else
  3789. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3790. # We make a subdir and do the tests there. Otherwise we can end up
  3791. # making bogus files that we don't know about and never remove. For
  3792. # instance it was reported that on HP-UX the gcc test will end up
  3793. # making a dummy file named `D' -- because `-MD' means `put the output
  3794. # in D'.
  3795. mkdir conftest.dir
  3796. # Copy depcomp to subdir because otherwise we won't find it if we're
  3797. # using a relative directory.
  3798. cp "$am_depcomp" conftest.dir
  3799. cd conftest.dir
  3800. # We will build objects and dependencies in a subdirectory because
  3801. # it helps to detect inapplicable dependency modes. For instance
  3802. # both Tru64's cc and ICC support -MD to output dependencies as a
  3803. # side effect of compilation, but ICC will put the dependencies in
  3804. # the current directory while Tru64 will put them in the object
  3805. # directory.
  3806. mkdir sub
  3807. am_cv_CXX_dependencies_compiler_type=none
  3808. if test "$am_compiler_list" = ""; then
  3809. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3810. fi
  3811. for depmode in $am_compiler_list; do
  3812. # Setup a source with many dependencies, because some compilers
  3813. # like to wrap large dependency lists on column 80 (with \), and
  3814. # we should not choose a depcomp mode which is confused by this.
  3815. #
  3816. # We need to recreate these files for each test, as the compiler may
  3817. # overwrite some of them when testing with obscure command lines.
  3818. # This happens at least with the AIX C compiler.
  3819. : > sub/conftest.c
  3820. for i in 1 2 3 4 5 6; do
  3821. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3822. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3823. # Solaris 8's {/usr,}/bin/sh.
  3824. touch sub/conftst$i.h
  3825. done
  3826. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3827. case $depmode in
  3828. nosideeffect)
  3829. # after this tag, mechanisms are not by side-effect, so they'll
  3830. # only be used when explicitly requested
  3831. if test "x$enable_dependency_tracking" = xyes; then
  3832. continue
  3833. else
  3834. break
  3835. fi
  3836. ;;
  3837. none) break ;;
  3838. esac
  3839. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3840. # mode. It turns out that the SunPro C++ compiler does not properly
  3841. # handle `-M -o', and we need to detect this.
  3842. if depmode=$depmode \
  3843. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3844. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3845. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3846. >/dev/null 2>conftest.err &&
  3847. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3848. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3849. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3850. # icc doesn't choke on unknown options, it will just issue warnings
  3851. # or remarks (even with -Werror). So we grep stderr for any message
  3852. # that says an option was ignored or not supported.
  3853. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3854. # icc: Command line warning: ignoring option '-M'; no argument required
  3855. # The diagnosis changed in icc 8.0:
  3856. # icc: Command line remark: option '-MP' not supported
  3857. if (grep 'ignoring option' conftest.err ||
  3858. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3859. am_cv_CXX_dependencies_compiler_type=$depmode
  3860. break
  3861. fi
  3862. fi
  3863. done
  3864. cd ..
  3865. rm -rf conftest.dir
  3866. else
  3867. am_cv_CXX_dependencies_compiler_type=none
  3868. fi
  3869. fi
  3870. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3871. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3872. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3873. if
  3874. test "x$enable_dependency_tracking" != xno \
  3875. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3876. am__fastdepCXX_TRUE=
  3877. am__fastdepCXX_FALSE='#'
  3878. else
  3879. am__fastdepCXX_TRUE='#'
  3880. am__fastdepCXX_FALSE=
  3881. fi
  3882. # By default we simply use the C compiler to build assembly code.
  3883. test "${CCAS+set}" = set || CCAS=$CC
  3884. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3885. ## FIXME: really needed? (AC_LIBTOOL already provides this)
  3886. if test -n "$ac_tool_prefix"; then
  3887. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3888. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3889. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3890. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3891. if test "${ac_cv_prog_AR+set}" = set; then
  3892. echo $ECHO_N "(cached) $ECHO_C" >&6
  3893. else
  3894. if test -n "$AR"; then
  3895. ac_cv_prog_AR="$AR" # Let the user override the test.
  3896. else
  3897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3898. for as_dir in $PATH
  3899. do
  3900. IFS=$as_save_IFS
  3901. test -z "$as_dir" && as_dir=.
  3902. for ac_exec_ext in '' $ac_executable_extensions; do
  3903. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3904. ac_cv_prog_AR="${ac_tool_prefix}ar"
  3905. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3906. break 2
  3907. fi
  3908. done
  3909. done
  3910. IFS=$as_save_IFS
  3911. fi
  3912. fi
  3913. AR=$ac_cv_prog_AR
  3914. if test -n "$AR"; then
  3915. { echo "$as_me:$LINENO: result: $AR" >&5
  3916. echo "${ECHO_T}$AR" >&6; }
  3917. else
  3918. { echo "$as_me:$LINENO: result: no" >&5
  3919. echo "${ECHO_T}no" >&6; }
  3920. fi
  3921. fi
  3922. if test -z "$ac_cv_prog_AR"; then
  3923. ac_ct_AR=$AR
  3924. # Extract the first word of "ar", so it can be a program name with args.
  3925. set dummy ar; ac_word=$2
  3926. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3927. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3928. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  3929. echo $ECHO_N "(cached) $ECHO_C" >&6
  3930. else
  3931. if test -n "$ac_ct_AR"; then
  3932. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3933. else
  3934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3935. for as_dir in $PATH
  3936. do
  3937. IFS=$as_save_IFS
  3938. test -z "$as_dir" && as_dir=.
  3939. for ac_exec_ext in '' $ac_executable_extensions; do
  3940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3941. ac_cv_prog_ac_ct_AR="ar"
  3942. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3943. break 2
  3944. fi
  3945. done
  3946. done
  3947. IFS=$as_save_IFS
  3948. fi
  3949. fi
  3950. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3951. if test -n "$ac_ct_AR"; then
  3952. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  3953. echo "${ECHO_T}$ac_ct_AR" >&6; }
  3954. else
  3955. { echo "$as_me:$LINENO: result: no" >&5
  3956. echo "${ECHO_T}no" >&6; }
  3957. fi
  3958. if test "x$ac_ct_AR" = x; then
  3959. AR=""
  3960. else
  3961. case $cross_compiling:$ac_tool_warned in
  3962. yes:)
  3963. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3964. whose name does not start with the host triplet. If you think this
  3965. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3966. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3967. whose name does not start with the host triplet. If you think this
  3968. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3969. ac_tool_warned=yes ;;
  3970. esac
  3971. AR=$ac_ct_AR
  3972. fi
  3973. else
  3974. AR="$ac_cv_prog_AR"
  3975. fi
  3976. if test -n "$ac_tool_prefix"; then
  3977. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3978. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3979. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3980. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3981. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3982. echo $ECHO_N "(cached) $ECHO_C" >&6
  3983. else
  3984. if test -n "$RANLIB"; then
  3985. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3986. else
  3987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3988. for as_dir in $PATH
  3989. do
  3990. IFS=$as_save_IFS
  3991. test -z "$as_dir" && as_dir=.
  3992. for ac_exec_ext in '' $ac_executable_extensions; do
  3993. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3994. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3995. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3996. break 2
  3997. fi
  3998. done
  3999. done
  4000. IFS=$as_save_IFS
  4001. fi
  4002. fi
  4003. RANLIB=$ac_cv_prog_RANLIB
  4004. if test -n "$RANLIB"; then
  4005. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  4006. echo "${ECHO_T}$RANLIB" >&6; }
  4007. else
  4008. { echo "$as_me:$LINENO: result: no" >&5
  4009. echo "${ECHO_T}no" >&6; }
  4010. fi
  4011. fi
  4012. if test -z "$ac_cv_prog_RANLIB"; then
  4013. ac_ct_RANLIB=$RANLIB
  4014. # Extract the first word of "ranlib", so it can be a program name with args.
  4015. set dummy ranlib; ac_word=$2
  4016. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4017. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4018. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4019. echo $ECHO_N "(cached) $ECHO_C" >&6
  4020. else
  4021. if test -n "$ac_ct_RANLIB"; then
  4022. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4023. else
  4024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4025. for as_dir in $PATH
  4026. do
  4027. IFS=$as_save_IFS
  4028. test -z "$as_dir" && as_dir=.
  4029. for ac_exec_ext in '' $ac_executable_extensions; do
  4030. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4031. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4032. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4033. break 2
  4034. fi
  4035. done
  4036. done
  4037. IFS=$as_save_IFS
  4038. fi
  4039. fi
  4040. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4041. if test -n "$ac_ct_RANLIB"; then
  4042. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4043. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4044. else
  4045. { echo "$as_me:$LINENO: result: no" >&5
  4046. echo "${ECHO_T}no" >&6; }
  4047. fi
  4048. if test "x$ac_ct_RANLIB" = x; then
  4049. RANLIB=":"
  4050. else
  4051. case $cross_compiling:$ac_tool_warned in
  4052. yes:)
  4053. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4054. whose name does not start with the host triplet. If you think this
  4055. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4056. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4057. whose name does not start with the host triplet. If you think this
  4058. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4059. ac_tool_warned=yes ;;
  4060. esac
  4061. RANLIB=$ac_ct_RANLIB
  4062. fi
  4063. else
  4064. RANLIB="$ac_cv_prog_RANLIB"
  4065. fi
  4066. # :)
  4067. # Find a good install program. We prefer a C program (faster),
  4068. # so one script is as good as another. But avoid the broken or
  4069. # incompatible versions:
  4070. # SysV /etc/install, /usr/sbin/install
  4071. # SunOS /usr/etc/install
  4072. # IRIX /sbin/install
  4073. # AIX /bin/install
  4074. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4075. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4076. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4077. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4078. # OS/2's system install, which has a completely different semantic
  4079. # ./install, which can be erroneously created by make from ./install.sh.
  4080. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4081. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  4082. if test -z "$INSTALL"; then
  4083. if test "${ac_cv_path_install+set}" = set; then
  4084. echo $ECHO_N "(cached) $ECHO_C" >&6
  4085. else
  4086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4087. for as_dir in $PATH
  4088. do
  4089. IFS=$as_save_IFS
  4090. test -z "$as_dir" && as_dir=.
  4091. # Account for people who put trailing slashes in PATH elements.
  4092. case $as_dir/ in
  4093. ./ | .// | /cC/* | \
  4094. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4095. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  4096. /usr/ucb/* ) ;;
  4097. *)
  4098. # OSF1 and SCO ODT 3.0 have their own names for install.
  4099. # Don't use installbsd from OSF since it installs stuff as root
  4100. # by default.
  4101. for ac_prog in ginstall scoinst install; do
  4102. for ac_exec_ext in '' $ac_executable_extensions; do
  4103. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4104. if test $ac_prog = install &&
  4105. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4106. # AIX install. It has an incompatible calling convention.
  4107. :
  4108. elif test $ac_prog = install &&
  4109. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4110. # program-specific install script used by HP pwplus--don't use.
  4111. :
  4112. else
  4113. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4114. break 3
  4115. fi
  4116. fi
  4117. done
  4118. done
  4119. ;;
  4120. esac
  4121. done
  4122. IFS=$as_save_IFS
  4123. fi
  4124. if test "${ac_cv_path_install+set}" = set; then
  4125. INSTALL=$ac_cv_path_install
  4126. else
  4127. # As a last resort, use the slow shell script. Don't cache a
  4128. # value for INSTALL within a source directory, because that will
  4129. # break other packages using the cache if that directory is
  4130. # removed, or if the value is a relative name.
  4131. INSTALL=$ac_install_sh
  4132. fi
  4133. fi
  4134. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  4135. echo "${ECHO_T}$INSTALL" >&6; }
  4136. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4137. # It thinks the first close brace ends the variable substitution.
  4138. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4139. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4140. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4141. . ${srcdir}/configure.host
  4142. GC_CFLAGS=${gc_cflags}
  4143. # Check whether --enable-threads was given.
  4144. if test "${enable_threads+set}" = set; then
  4145. enableval=$enable_threads; THREADS=$enableval
  4146. else
  4147. { echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
  4148. echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6; }
  4149. THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
  4150. if test -z "$THREADS"; then
  4151. THREADS=no
  4152. fi
  4153. { echo "$as_me:$LINENO: result: $THREADS" >&5
  4154. echo "${ECHO_T}$THREADS" >&6; }
  4155. fi
  4156. # Check whether --enable-parallel-mark was given.
  4157. if test "${enable_parallel_mark+set}" = set; then
  4158. enableval=$enable_parallel_mark; case "$THREADS" in
  4159. no | none | single)
  4160. { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
  4161. echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
  4162. { (exit 1); exit 1; }; }
  4163. ;;
  4164. esac
  4165. fi
  4166. # Check whether --enable-cplusplus was given.
  4167. if test "${enable_cplusplus+set}" = set; then
  4168. enableval=$enable_cplusplus;
  4169. fi
  4170. INCLUDES=-I${srcdir}/include
  4171. THREADDLLIBS=
  4172. need_atomic_ops_asm=false
  4173. ## Libraries needed to support dynamic loading and/or threads.
  4174. case "$THREADS" in
  4175. no | none | single)
  4176. THREADS=none
  4177. ;;
  4178. posix | pthreads)
  4179. THREADS=posix
  4180. THREADDLLIBS=-lpthread
  4181. case "$host" in
  4182. x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
  4183. cat >>confdefs.h <<\_ACEOF
  4184. #define GC_LINUX_THREADS 1
  4185. _ACEOF
  4186. cat >>confdefs.h <<\_ACEOF
  4187. #define _REENTRANT 1
  4188. _ACEOF
  4189. if test "${enable_parallel_mark}" = yes; then
  4190. cat >>confdefs.h <<\_ACEOF
  4191. #define PARALLEL_MARK 1
  4192. _ACEOF
  4193. fi
  4194. cat >>confdefs.h <<\_ACEOF
  4195. #define THREAD_LOCAL_ALLOC 1
  4196. _ACEOF
  4197. { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
  4198. echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
  4199. ;;
  4200. *-*-linux*)
  4201. cat >>confdefs.h <<\_ACEOF
  4202. #define GC_LINUX_THREADS 1
  4203. _ACEOF
  4204. cat >>confdefs.h <<\_ACEOF
  4205. #define _REENTRANT 1
  4206. _ACEOF
  4207. ;;
  4208. *-*-aix*)
  4209. cat >>confdefs.h <<\_ACEOF
  4210. #define GC_AIX_THREADS 1
  4211. _ACEOF
  4212. cat >>confdefs.h <<\_ACEOF
  4213. #define _REENTRANT 1
  4214. _ACEOF
  4215. ;;
  4216. *-*-hpux11*)
  4217. { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&5
  4218. echo "$as_me: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&2;}
  4219. cat >>confdefs.h <<\_ACEOF
  4220. #define GC_HPUX_THREADS 1
  4221. _ACEOF
  4222. cat >>confdefs.h <<\_ACEOF
  4223. #define _POSIX_C_SOURCE 199506L
  4224. _ACEOF
  4225. if test "${enable_parallel_mark}" = yes; then
  4226. cat >>confdefs.h <<\_ACEOF
  4227. #define PARALLEL_MARK 1
  4228. _ACEOF
  4229. fi
  4230. cat >>confdefs.h <<\_ACEOF
  4231. #define THREAD_LOCAL_ALLOC 1
  4232. _ACEOF
  4233. { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
  4234. echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
  4235. THREADDLLIBS="-lpthread -lrt"
  4236. # HPUX needs REENTRANT for the _r calls.
  4237. cat >>confdefs.h <<\_ACEOF
  4238. #define _REENTRANT 1
  4239. _ACEOF
  4240. ;;
  4241. *-*-hpux10*)
  4242. { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
  4243. echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
  4244. ;;
  4245. *-*-freebsd*)
  4246. { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
  4247. echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
  4248. cat >>confdefs.h <<\_ACEOF
  4249. #define GC_FREEBSD_THREADS 1
  4250. _ACEOF
  4251. INCLUDES="$INCLUDES -pthread"
  4252. ;;
  4253. *-*-kfreebsd*-gnu)
  4254. cat >>confdefs.h <<\_ACEOF
  4255. #define GC_FREEBSD_THREADS 1
  4256. _ACEOF
  4257. INCLUDES="$INCLUDES -pthread"
  4258. THREADDLLIBS=-pthread
  4259. cat >>confdefs.h <<\_ACEOF
  4260. #define _REENTRANT 1
  4261. _ACEOF
  4262. if test "${enable_parallel_mark}" = yes; then
  4263. cat >>confdefs.h <<\_ACEOF
  4264. #define PARALLEL_MARK 1
  4265. _ACEOF
  4266. fi
  4267. cat >>confdefs.h <<\_ACEOF
  4268. #define THREAD_LOCAL_ALLOC 1
  4269. _ACEOF
  4270. cat >>confdefs.h <<\_ACEOF
  4271. #define USE_COMPILER_TLS 1
  4272. _ACEOF
  4273. ;;
  4274. *-*-gnu*)
  4275. cat >>confdefs.h <<\_ACEOF
  4276. #define GC_GNU_THREADS 1
  4277. _ACEOF
  4278. cat >>confdefs.h <<\_ACEOF
  4279. #define _REENTRANT 1
  4280. _ACEOF
  4281. cat >>confdefs.h <<\_ACEOF
  4282. #define THREAD_LOCAL_ALLOC 1
  4283. _ACEOF
  4284. ;;
  4285. *-*-netbsd*)
  4286. { echo "$as_me:$LINENO: WARNING: \"Only on NetBSD 2.0 or later.\"" >&5
  4287. echo "$as_me: WARNING: \"Only on NetBSD 2.0 or later.\"" >&2;}
  4288. cat >>confdefs.h <<\_ACEOF
  4289. #define GC_NETBSD_THREADS 1
  4290. _ACEOF
  4291. cat >>confdefs.h <<\_ACEOF
  4292. #define _REENTRANT 1
  4293. _ACEOF
  4294. cat >>confdefs.h <<\_ACEOF
  4295. #define _PTHREADS 1
  4296. _ACEOF
  4297. THREADDLLIBS="-lpthread -lrt"
  4298. ;;
  4299. *-*-solaris*)
  4300. cat >>confdefs.h <<\_ACEOF
  4301. #define GC_SOLARIS_THREADS 1
  4302. _ACEOF
  4303. cat >>confdefs.h <<\_ACEOF
  4304. #define THREAD_LOCAL_ALLOC 1
  4305. _ACEOF
  4306. THREADDLLIBS="-lpthread -lrt"
  4307. if test "$GCC" != yes; then
  4308. CFLAGS="$CFLAGS -O"
  4309. need_atomic_ops_asm=true
  4310. fi
  4311. ;;
  4312. *-*-irix*)
  4313. cat >>confdefs.h <<\_ACEOF
  4314. #define GC_IRIX_THREADS 1
  4315. _ACEOF
  4316. ;;
  4317. *-*-cygwin*)
  4318. cat >>confdefs.h <<\_ACEOF
  4319. #define GC_WIN32_THREADS 1
  4320. _ACEOF
  4321. cat >>confdefs.h <<\_ACEOF
  4322. #define THREAD_LOCAL_ALLOC 1
  4323. _ACEOF
  4324. win32_threads=true
  4325. ;;
  4326. *-*-darwin*)
  4327. cat >>confdefs.h <<\_ACEOF
  4328. #define GC_DARWIN_THREADS 1
  4329. _ACEOF
  4330. cat >>confdefs.h <<\_ACEOF
  4331. #define THREAD_LOCAL_ALLOC 1
  4332. _ACEOF
  4333. { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
  4334. echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
  4335. # Parallel-mark is currently unreliable on Darwin; ignore request
  4336. # if test "${enable_parallel_mark}" = yes; then
  4337. # AC_DEFINE(PARALLEL_MARK)
  4338. # fi
  4339. darwin_threads=true
  4340. ;;
  4341. *-*-osf*)
  4342. cat >>confdefs.h <<\_ACEOF
  4343. #define GC_OSF1_THREADS 1
  4344. _ACEOF
  4345. if test "${enable_parallel_mark}" = yes; then
  4346. cat >>confdefs.h <<\_ACEOF
  4347. #define PARALLEL_MARK 1
  4348. _ACEOF
  4349. cat >>confdefs.h <<\_ACEOF
  4350. #define THREAD_LOCAL_ALLOC 1
  4351. _ACEOF
  4352. { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
  4353. echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
  4354. # May want to enable it in other cases, too.
  4355. # Measurements havent yet been done.
  4356. fi
  4357. INCLUDES="$INCLUDES -pthread"
  4358. THREADDLLIBS="-lpthread -lrt"
  4359. ;;
  4360. *)
  4361. { { echo "$as_me:$LINENO: error: \"Pthreads not supported by the GC on this platform.\"" >&5
  4362. echo "$as_me: error: \"Pthreads not supported by the GC on this platform.\"" >&2;}
  4363. { (exit 1); exit 1; }; }
  4364. ;;
  4365. esac
  4366. ;;
  4367. win32)
  4368. cat >>confdefs.h <<\_ACEOF
  4369. #define GC_WIN32_THREADS 1
  4370. _ACEOF
  4371. cat >>confdefs.h <<\_ACEOF
  4372. #define NO_GETENV 1
  4373. _ACEOF
  4374. ;;
  4375. dgux386)
  4376. THREADS=dgux386
  4377. { echo "$as_me:$LINENO: result: $THREADDLLIBS" >&5
  4378. echo "${ECHO_T}$THREADDLLIBS" >&6; }
  4379. # Use pthread GCC switch
  4380. THREADDLLIBS=-pthread
  4381. if test "${enable_parallel_mark}" = yes; then
  4382. cat >>confdefs.h <<\_ACEOF
  4383. #define PARALLEL_MARK 1
  4384. _ACEOF
  4385. fi
  4386. cat >>confdefs.h <<\_ACEOF
  4387. #define THREAD_LOCAL_ALLOC 1
  4388. _ACEOF
  4389. { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
  4390. echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
  4391. cat >>confdefs.h <<\_ACEOF
  4392. #define GC_DGUX386_THREADS 1
  4393. _ACEOF
  4394. cat >>confdefs.h <<\_ACEOF
  4395. #define DGUX_THREADS 1
  4396. _ACEOF
  4397. # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
  4398. INCLUDES="-pthread $INCLUDES"
  4399. ;;
  4400. aix)
  4401. THREADS=posix
  4402. THREADDLLIBS=-lpthread
  4403. cat >>confdefs.h <<\_ACEOF
  4404. #define GC_AIX_THREADS 1
  4405. _ACEOF
  4406. cat >>confdefs.h <<\_ACEOF
  4407. #define _REENTRANT 1
  4408. _ACEOF
  4409. ;;
  4410. decosf1 | irix | mach | os2 | solaris | dce | vxworks)
  4411. { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
  4412. echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
  4413. { (exit 1); exit 1; }; }
  4414. ;;
  4415. *)
  4416. { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
  4417. echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
  4418. { (exit 1); exit 1; }; }
  4419. ;;
  4420. esac
  4421. if test x$THREADS != xnone; then
  4422. THREADS_TRUE=
  4423. THREADS_FALSE='#'
  4424. else
  4425. THREADS_TRUE='#'
  4426. THREADS_FALSE=
  4427. fi
  4428. if test x$THREADS = xposix; then
  4429. PTHREADS_TRUE=
  4430. PTHREADS_FALSE='#'
  4431. else
  4432. PTHREADS_TRUE='#'
  4433. PTHREADS_FALSE=
  4434. fi
  4435. if test x$darwin_threads = xtrue; then
  4436. DARWIN_THREADS_TRUE=
  4437. DARWIN_THREADS_FALSE='#'
  4438. else
  4439. DARWIN_THREADS_TRUE='#'
  4440. DARWIN_THREADS_FALSE=
  4441. fi
  4442. if test x$win32_threads = xtrue; then
  4443. WIN32_THREADS_TRUE=
  4444. WIN32_THREADS_FALSE='#'
  4445. else
  4446. WIN32_THREADS_TRUE='#'
  4447. WIN32_THREADS_FALSE=
  4448. fi
  4449. case "$host" in
  4450. powerpc-*-darwin*)
  4451. powerpc_darwin=true
  4452. ;;
  4453. esac
  4454. # Darwin needs a few extra special tests to deal with variation in the
  4455. # system headers.
  4456. case "$host" in
  4457. powerpc*-*-darwin*)
  4458. { echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
  4459. echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6; }
  4460. if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
  4461. echo $ECHO_N "(cached) $ECHO_C" >&6
  4462. else
  4463. cat >conftest.$ac_ext <<_ACEOF
  4464. /* confdefs.h. */
  4465. _ACEOF
  4466. cat confdefs.h >>conftest.$ac_ext
  4467. cat >>conftest.$ac_ext <<_ACEOF
  4468. /* end confdefs.h. */
  4469. #include <mach/thread_status.h>
  4470. int
  4471. main ()
  4472. {
  4473. static ppc_thread_state_t ac_aggr;
  4474. if (ac_aggr.r0)
  4475. return 0;
  4476. ;
  4477. return 0;
  4478. }
  4479. _ACEOF
  4480. rm -f conftest.$ac_objext
  4481. if { (ac_try="$ac_compile"
  4482. case "(($ac_try" in
  4483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4484. *) ac_try_echo=$ac_try;;
  4485. esac
  4486. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4487. (eval "$ac_compile") 2>conftest.er1
  4488. ac_status=$?
  4489. grep -v '^ *+' conftest.er1 >conftest.err
  4490. rm -f conftest.er1
  4491. cat conftest.err >&5
  4492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4493. (exit $ac_status); } && {
  4494. test -z "$ac_c_werror_flag" ||
  4495. test ! -s conftest.err
  4496. } && test -s conftest.$ac_objext; then
  4497. ac_cv_member_ppc_thread_state_t_r0=yes
  4498. else
  4499. echo "$as_me: failed program was:" >&5
  4500. sed 's/^/| /' conftest.$ac_ext >&5
  4501. cat >conftest.$ac_ext <<_ACEOF
  4502. /* confdefs.h. */
  4503. _ACEOF
  4504. cat confdefs.h >>conftest.$ac_ext
  4505. cat >>conftest.$ac_ext <<_ACEOF
  4506. /* end confdefs.h. */
  4507. #include <mach/thread_status.h>
  4508. int
  4509. main ()
  4510. {
  4511. static ppc_thread_state_t ac_aggr;
  4512. if (sizeof ac_aggr.r0)
  4513. return 0;
  4514. ;
  4515. return 0;
  4516. }
  4517. _ACEOF
  4518. rm -f conftest.$ac_objext
  4519. if { (ac_try="$ac_compile"
  4520. case "(($ac_try" in
  4521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4522. *) ac_try_echo=$ac_try;;
  4523. esac
  4524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4525. (eval "$ac_compile") 2>conftest.er1
  4526. ac_status=$?
  4527. grep -v '^ *+' conftest.er1 >conftest.err
  4528. rm -f conftest.er1
  4529. cat conftest.err >&5
  4530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4531. (exit $ac_status); } && {
  4532. test -z "$ac_c_werror_flag" ||
  4533. test ! -s conftest.err
  4534. } && test -s conftest.$ac_objext; then
  4535. ac_cv_member_ppc_thread_state_t_r0=yes
  4536. else
  4537. echo "$as_me: failed program was:" >&5
  4538. sed 's/^/| /' conftest.$ac_ext >&5
  4539. ac_cv_member_ppc_thread_state_t_r0=no
  4540. fi
  4541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4542. fi
  4543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4544. fi
  4545. { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
  4546. echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6; }
  4547. if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
  4548. cat >>confdefs.h <<\_ACEOF
  4549. #define HAS_PPC_THREAD_STATE_R0 1
  4550. _ACEOF
  4551. fi
  4552. { echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
  4553. echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6; }
  4554. if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
  4555. echo $ECHO_N "(cached) $ECHO_C" >&6
  4556. else
  4557. cat >conftest.$ac_ext <<_ACEOF
  4558. /* confdefs.h. */
  4559. _ACEOF
  4560. cat confdefs.h >>conftest.$ac_ext
  4561. cat >>conftest.$ac_ext <<_ACEOF
  4562. /* end confdefs.h. */
  4563. #include <mach/thread_status.h>
  4564. int
  4565. main ()
  4566. {
  4567. static ppc_thread_state_t ac_aggr;
  4568. if (ac_aggr.__r0)
  4569. return 0;
  4570. ;
  4571. return 0;
  4572. }
  4573. _ACEOF
  4574. rm -f conftest.$ac_objext
  4575. if { (ac_try="$ac_compile"
  4576. case "(($ac_try" in
  4577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4578. *) ac_try_echo=$ac_try;;
  4579. esac
  4580. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4581. (eval "$ac_compile") 2>conftest.er1
  4582. ac_status=$?
  4583. grep -v '^ *+' conftest.er1 >conftest.err
  4584. rm -f conftest.er1
  4585. cat conftest.err >&5
  4586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4587. (exit $ac_status); } && {
  4588. test -z "$ac_c_werror_flag" ||
  4589. test ! -s conftest.err
  4590. } && test -s conftest.$ac_objext; then
  4591. ac_cv_member_ppc_thread_state_t___r0=yes
  4592. else
  4593. echo "$as_me: failed program was:" >&5
  4594. sed 's/^/| /' conftest.$ac_ext >&5
  4595. cat >conftest.$ac_ext <<_ACEOF
  4596. /* confdefs.h. */
  4597. _ACEOF
  4598. cat confdefs.h >>conftest.$ac_ext
  4599. cat >>conftest.$ac_ext <<_ACEOF
  4600. /* end confdefs.h. */
  4601. #include <mach/thread_status.h>
  4602. int
  4603. main ()
  4604. {
  4605. static ppc_thread_state_t ac_aggr;
  4606. if (sizeof ac_aggr.__r0)
  4607. return 0;
  4608. ;
  4609. return 0;
  4610. }
  4611. _ACEOF
  4612. rm -f conftest.$ac_objext
  4613. if { (ac_try="$ac_compile"
  4614. case "(($ac_try" in
  4615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4616. *) ac_try_echo=$ac_try;;
  4617. esac
  4618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4619. (eval "$ac_compile") 2>conftest.er1
  4620. ac_status=$?
  4621. grep -v '^ *+' conftest.er1 >conftest.err
  4622. rm -f conftest.er1
  4623. cat conftest.err >&5
  4624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4625. (exit $ac_status); } && {
  4626. test -z "$ac_c_werror_flag" ||
  4627. test ! -s conftest.err
  4628. } && test -s conftest.$ac_objext; then
  4629. ac_cv_member_ppc_thread_state_t___r0=yes
  4630. else
  4631. echo "$as_me: failed program was:" >&5
  4632. sed 's/^/| /' conftest.$ac_ext >&5
  4633. ac_cv_member_ppc_thread_state_t___r0=no
  4634. fi
  4635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4636. fi
  4637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4638. fi
  4639. { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
  4640. echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6; }
  4641. if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
  4642. cat >>confdefs.h <<\_ACEOF
  4643. #define HAS_PPC_THREAD_STATE___R0 1
  4644. _ACEOF
  4645. fi
  4646. { echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
  4647. echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6; }
  4648. if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
  4649. echo $ECHO_N "(cached) $ECHO_C" >&6
  4650. else
  4651. cat >conftest.$ac_ext <<_ACEOF
  4652. /* confdefs.h. */
  4653. _ACEOF
  4654. cat confdefs.h >>conftest.$ac_ext
  4655. cat >>conftest.$ac_ext <<_ACEOF
  4656. /* end confdefs.h. */
  4657. #include <mach/thread_status.h>
  4658. int
  4659. main ()
  4660. {
  4661. static ppc_thread_state64_t ac_aggr;
  4662. if (ac_aggr.r0)
  4663. return 0;
  4664. ;
  4665. return 0;
  4666. }
  4667. _ACEOF
  4668. rm -f conftest.$ac_objext
  4669. if { (ac_try="$ac_compile"
  4670. case "(($ac_try" in
  4671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4672. *) ac_try_echo=$ac_try;;
  4673. esac
  4674. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4675. (eval "$ac_compile") 2>conftest.er1
  4676. ac_status=$?
  4677. grep -v '^ *+' conftest.er1 >conftest.err
  4678. rm -f conftest.er1
  4679. cat conftest.err >&5
  4680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4681. (exit $ac_status); } && {
  4682. test -z "$ac_c_werror_flag" ||
  4683. test ! -s conftest.err
  4684. } && test -s conftest.$ac_objext; then
  4685. ac_cv_member_ppc_thread_state64_t_r0=yes
  4686. else
  4687. echo "$as_me: failed program was:" >&5
  4688. sed 's/^/| /' conftest.$ac_ext >&5
  4689. cat >conftest.$ac_ext <<_ACEOF
  4690. /* confdefs.h. */
  4691. _ACEOF
  4692. cat confdefs.h >>conftest.$ac_ext
  4693. cat >>conftest.$ac_ext <<_ACEOF
  4694. /* end confdefs.h. */
  4695. #include <mach/thread_status.h>
  4696. int
  4697. main ()
  4698. {
  4699. static ppc_thread_state64_t ac_aggr;
  4700. if (sizeof ac_aggr.r0)
  4701. return 0;
  4702. ;
  4703. return 0;
  4704. }
  4705. _ACEOF
  4706. rm -f conftest.$ac_objext
  4707. if { (ac_try="$ac_compile"
  4708. case "(($ac_try" in
  4709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4710. *) ac_try_echo=$ac_try;;
  4711. esac
  4712. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4713. (eval "$ac_compile") 2>conftest.er1
  4714. ac_status=$?
  4715. grep -v '^ *+' conftest.er1 >conftest.err
  4716. rm -f conftest.er1
  4717. cat conftest.err >&5
  4718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4719. (exit $ac_status); } && {
  4720. test -z "$ac_c_werror_flag" ||
  4721. test ! -s conftest.err
  4722. } && test -s conftest.$ac_objext; then
  4723. ac_cv_member_ppc_thread_state64_t_r0=yes
  4724. else
  4725. echo "$as_me: failed program was:" >&5
  4726. sed 's/^/| /' conftest.$ac_ext >&5
  4727. ac_cv_member_ppc_thread_state64_t_r0=no
  4728. fi
  4729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4730. fi
  4731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4732. fi
  4733. { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
  4734. echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6; }
  4735. if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
  4736. cat >>confdefs.h <<\_ACEOF
  4737. #define HAS_PPC_THREAD_STATE64_R0 1
  4738. _ACEOF
  4739. fi
  4740. { echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
  4741. echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6; }
  4742. if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
  4743. echo $ECHO_N "(cached) $ECHO_C" >&6
  4744. else
  4745. cat >conftest.$ac_ext <<_ACEOF
  4746. /* confdefs.h. */
  4747. _ACEOF
  4748. cat confdefs.h >>conftest.$ac_ext
  4749. cat >>conftest.$ac_ext <<_ACEOF
  4750. /* end confdefs.h. */
  4751. #include <mach/thread_status.h>
  4752. int
  4753. main ()
  4754. {
  4755. static ppc_thread_state64_t ac_aggr;
  4756. if (ac_aggr.__r0)
  4757. return 0;
  4758. ;
  4759. return 0;
  4760. }
  4761. _ACEOF
  4762. rm -f conftest.$ac_objext
  4763. if { (ac_try="$ac_compile"
  4764. case "(($ac_try" in
  4765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4766. *) ac_try_echo=$ac_try;;
  4767. esac
  4768. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4769. (eval "$ac_compile") 2>conftest.er1
  4770. ac_status=$?
  4771. grep -v '^ *+' conftest.er1 >conftest.err
  4772. rm -f conftest.er1
  4773. cat conftest.err >&5
  4774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4775. (exit $ac_status); } && {
  4776. test -z "$ac_c_werror_flag" ||
  4777. test ! -s conftest.err
  4778. } && test -s conftest.$ac_objext; then
  4779. ac_cv_member_ppc_thread_state64_t___r0=yes
  4780. else
  4781. echo "$as_me: failed program was:" >&5
  4782. sed 's/^/| /' conftest.$ac_ext >&5
  4783. cat >conftest.$ac_ext <<_ACEOF
  4784. /* confdefs.h. */
  4785. _ACEOF
  4786. cat confdefs.h >>conftest.$ac_ext
  4787. cat >>conftest.$ac_ext <<_ACEOF
  4788. /* end confdefs.h. */
  4789. #include <mach/thread_status.h>
  4790. int
  4791. main ()
  4792. {
  4793. static ppc_thread_state64_t ac_aggr;
  4794. if (sizeof ac_aggr.__r0)
  4795. return 0;
  4796. ;
  4797. return 0;
  4798. }
  4799. _ACEOF
  4800. rm -f conftest.$ac_objext
  4801. if { (ac_try="$ac_compile"
  4802. case "(($ac_try" in
  4803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4804. *) ac_try_echo=$ac_try;;
  4805. esac
  4806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4807. (eval "$ac_compile") 2>conftest.er1
  4808. ac_status=$?
  4809. grep -v '^ *+' conftest.er1 >conftest.err
  4810. rm -f conftest.er1
  4811. cat conftest.err >&5
  4812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4813. (exit $ac_status); } && {
  4814. test -z "$ac_c_werror_flag" ||
  4815. test ! -s conftest.err
  4816. } && test -s conftest.$ac_objext; then
  4817. ac_cv_member_ppc_thread_state64_t___r0=yes
  4818. else
  4819. echo "$as_me: failed program was:" >&5
  4820. sed 's/^/| /' conftest.$ac_ext >&5
  4821. ac_cv_member_ppc_thread_state64_t___r0=no
  4822. fi
  4823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4824. fi
  4825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4826. fi
  4827. { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
  4828. echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6; }
  4829. if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
  4830. cat >>confdefs.h <<\_ACEOF
  4831. #define HAS_PPC_THREAD_STATE64___R0 1
  4832. _ACEOF
  4833. fi
  4834. ;;
  4835. i?86*-*-darwin*)
  4836. { echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
  4837. echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6; }
  4838. if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
  4839. echo $ECHO_N "(cached) $ECHO_C" >&6
  4840. else
  4841. cat >conftest.$ac_ext <<_ACEOF
  4842. /* confdefs.h. */
  4843. _ACEOF
  4844. cat confdefs.h >>conftest.$ac_ext
  4845. cat >>conftest.$ac_ext <<_ACEOF
  4846. /* end confdefs.h. */
  4847. #include <sys/cdefs.h>
  4848. #include <mach/thread_status.h>
  4849. int
  4850. main ()
  4851. {
  4852. static x86_thread_state32_t ac_aggr;
  4853. if (ac_aggr.eax)
  4854. return 0;
  4855. ;
  4856. return 0;
  4857. }
  4858. _ACEOF
  4859. rm -f conftest.$ac_objext
  4860. if { (ac_try="$ac_compile"
  4861. case "(($ac_try" in
  4862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4863. *) ac_try_echo=$ac_try;;
  4864. esac
  4865. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4866. (eval "$ac_compile") 2>conftest.er1
  4867. ac_status=$?
  4868. grep -v '^ *+' conftest.er1 >conftest.err
  4869. rm -f conftest.er1
  4870. cat conftest.err >&5
  4871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4872. (exit $ac_status); } && {
  4873. test -z "$ac_c_werror_flag" ||
  4874. test ! -s conftest.err
  4875. } && test -s conftest.$ac_objext; then
  4876. ac_cv_member_x86_thread_state32_t_eax=yes
  4877. else
  4878. echo "$as_me: failed program was:" >&5
  4879. sed 's/^/| /' conftest.$ac_ext >&5
  4880. cat >conftest.$ac_ext <<_ACEOF
  4881. /* confdefs.h. */
  4882. _ACEOF
  4883. cat confdefs.h >>conftest.$ac_ext
  4884. cat >>conftest.$ac_ext <<_ACEOF
  4885. /* end confdefs.h. */
  4886. #include <sys/cdefs.h>
  4887. #include <mach/thread_status.h>
  4888. int
  4889. main ()
  4890. {
  4891. static x86_thread_state32_t ac_aggr;
  4892. if (sizeof ac_aggr.eax)
  4893. return 0;
  4894. ;
  4895. return 0;
  4896. }
  4897. _ACEOF
  4898. rm -f conftest.$ac_objext
  4899. if { (ac_try="$ac_compile"
  4900. case "(($ac_try" in
  4901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4902. *) ac_try_echo=$ac_try;;
  4903. esac
  4904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4905. (eval "$ac_compile") 2>conftest.er1
  4906. ac_status=$?
  4907. grep -v '^ *+' conftest.er1 >conftest.err
  4908. rm -f conftest.er1
  4909. cat conftest.err >&5
  4910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4911. (exit $ac_status); } && {
  4912. test -z "$ac_c_werror_flag" ||
  4913. test ! -s conftest.err
  4914. } && test -s conftest.$ac_objext; then
  4915. ac_cv_member_x86_thread_state32_t_eax=yes
  4916. else
  4917. echo "$as_me: failed program was:" >&5
  4918. sed 's/^/| /' conftest.$ac_ext >&5
  4919. ac_cv_member_x86_thread_state32_t_eax=no
  4920. fi
  4921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4922. fi
  4923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4924. fi
  4925. { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
  4926. echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6; }
  4927. if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
  4928. cat >>confdefs.h <<\_ACEOF
  4929. #define HAS_X86_THREAD_STATE32_EAX 1
  4930. _ACEOF
  4931. fi
  4932. { echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
  4933. echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6; }
  4934. if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
  4935. echo $ECHO_N "(cached) $ECHO_C" >&6
  4936. else
  4937. cat >conftest.$ac_ext <<_ACEOF
  4938. /* confdefs.h. */
  4939. _ACEOF
  4940. cat confdefs.h >>conftest.$ac_ext
  4941. cat >>conftest.$ac_ext <<_ACEOF
  4942. /* end confdefs.h. */
  4943. #include <sys/cdefs.h>
  4944. #include <mach/thread_status.h>
  4945. int
  4946. main ()
  4947. {
  4948. static x86_thread_state32_t ac_aggr;
  4949. if (ac_aggr.__eax)
  4950. return 0;
  4951. ;
  4952. return 0;
  4953. }
  4954. _ACEOF
  4955. rm -f conftest.$ac_objext
  4956. if { (ac_try="$ac_compile"
  4957. case "(($ac_try" in
  4958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4959. *) ac_try_echo=$ac_try;;
  4960. esac
  4961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4962. (eval "$ac_compile") 2>conftest.er1
  4963. ac_status=$?
  4964. grep -v '^ *+' conftest.er1 >conftest.err
  4965. rm -f conftest.er1
  4966. cat conftest.err >&5
  4967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4968. (exit $ac_status); } && {
  4969. test -z "$ac_c_werror_flag" ||
  4970. test ! -s conftest.err
  4971. } && test -s conftest.$ac_objext; then
  4972. ac_cv_member_x86_thread_state32_t___eax=yes
  4973. else
  4974. echo "$as_me: failed program was:" >&5
  4975. sed 's/^/| /' conftest.$ac_ext >&5
  4976. cat >conftest.$ac_ext <<_ACEOF
  4977. /* confdefs.h. */
  4978. _ACEOF
  4979. cat confdefs.h >>conftest.$ac_ext
  4980. cat >>conftest.$ac_ext <<_ACEOF
  4981. /* end confdefs.h. */
  4982. #include <sys/cdefs.h>
  4983. #include <mach/thread_status.h>
  4984. int
  4985. main ()
  4986. {
  4987. static x86_thread_state32_t ac_aggr;
  4988. if (sizeof ac_aggr.__eax)
  4989. return 0;
  4990. ;
  4991. return 0;
  4992. }
  4993. _ACEOF
  4994. rm -f conftest.$ac_objext
  4995. if { (ac_try="$ac_compile"
  4996. case "(($ac_try" in
  4997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4998. *) ac_try_echo=$ac_try;;
  4999. esac
  5000. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5001. (eval "$ac_compile") 2>conftest.er1
  5002. ac_status=$?
  5003. grep -v '^ *+' conftest.er1 >conftest.err
  5004. rm -f conftest.er1
  5005. cat conftest.err >&5
  5006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5007. (exit $ac_status); } && {
  5008. test -z "$ac_c_werror_flag" ||
  5009. test ! -s conftest.err
  5010. } && test -s conftest.$ac_objext; then
  5011. ac_cv_member_x86_thread_state32_t___eax=yes
  5012. else
  5013. echo "$as_me: failed program was:" >&5
  5014. sed 's/^/| /' conftest.$ac_ext >&5
  5015. ac_cv_member_x86_thread_state32_t___eax=no
  5016. fi
  5017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5018. fi
  5019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5020. fi
  5021. { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
  5022. echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6; }
  5023. if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
  5024. cat >>confdefs.h <<\_ACEOF
  5025. #define HAS_X86_THREAD_STATE32___EAX 1
  5026. _ACEOF
  5027. fi
  5028. ;;
  5029. x86_64-*-darwin*)
  5030. { echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
  5031. echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6; }
  5032. if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
  5033. echo $ECHO_N "(cached) $ECHO_C" >&6
  5034. else
  5035. cat >conftest.$ac_ext <<_ACEOF
  5036. /* confdefs.h. */
  5037. _ACEOF
  5038. cat confdefs.h >>conftest.$ac_ext
  5039. cat >>conftest.$ac_ext <<_ACEOF
  5040. /* end confdefs.h. */
  5041. #include <sys/cdefs.h>
  5042. #include <mach/thread_status.h>
  5043. int
  5044. main ()
  5045. {
  5046. static x86_thread_state64_t ac_aggr;
  5047. if (ac_aggr.rax)
  5048. return 0;
  5049. ;
  5050. return 0;
  5051. }
  5052. _ACEOF
  5053. rm -f conftest.$ac_objext
  5054. if { (ac_try="$ac_compile"
  5055. case "(($ac_try" in
  5056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5057. *) ac_try_echo=$ac_try;;
  5058. esac
  5059. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5060. (eval "$ac_compile") 2>conftest.er1
  5061. ac_status=$?
  5062. grep -v '^ *+' conftest.er1 >conftest.err
  5063. rm -f conftest.er1
  5064. cat conftest.err >&5
  5065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5066. (exit $ac_status); } && {
  5067. test -z "$ac_c_werror_flag" ||
  5068. test ! -s conftest.err
  5069. } && test -s conftest.$ac_objext; then
  5070. ac_cv_member_x86_thread_state64_t_rax=yes
  5071. else
  5072. echo "$as_me: failed program was:" >&5
  5073. sed 's/^/| /' conftest.$ac_ext >&5
  5074. cat >conftest.$ac_ext <<_ACEOF
  5075. /* confdefs.h. */
  5076. _ACEOF
  5077. cat confdefs.h >>conftest.$ac_ext
  5078. cat >>conftest.$ac_ext <<_ACEOF
  5079. /* end confdefs.h. */
  5080. #include <sys/cdefs.h>
  5081. #include <mach/thread_status.h>
  5082. int
  5083. main ()
  5084. {
  5085. static x86_thread_state64_t ac_aggr;
  5086. if (sizeof ac_aggr.rax)
  5087. return 0;
  5088. ;
  5089. return 0;
  5090. }
  5091. _ACEOF
  5092. rm -f conftest.$ac_objext
  5093. if { (ac_try="$ac_compile"
  5094. case "(($ac_try" in
  5095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5096. *) ac_try_echo=$ac_try;;
  5097. esac
  5098. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5099. (eval "$ac_compile") 2>conftest.er1
  5100. ac_status=$?
  5101. grep -v '^ *+' conftest.er1 >conftest.err
  5102. rm -f conftest.er1
  5103. cat conftest.err >&5
  5104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5105. (exit $ac_status); } && {
  5106. test -z "$ac_c_werror_flag" ||
  5107. test ! -s conftest.err
  5108. } && test -s conftest.$ac_objext; then
  5109. ac_cv_member_x86_thread_state64_t_rax=yes
  5110. else
  5111. echo "$as_me: failed program was:" >&5
  5112. sed 's/^/| /' conftest.$ac_ext >&5
  5113. ac_cv_member_x86_thread_state64_t_rax=no
  5114. fi
  5115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5116. fi
  5117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5118. fi
  5119. { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
  5120. echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6; }
  5121. if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
  5122. cat >>confdefs.h <<\_ACEOF
  5123. #define HAS_X86_THREAD_STATE64_RAX 1
  5124. _ACEOF
  5125. fi
  5126. { echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
  5127. echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6; }
  5128. if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
  5129. echo $ECHO_N "(cached) $ECHO_C" >&6
  5130. else
  5131. cat >conftest.$ac_ext <<_ACEOF
  5132. /* confdefs.h. */
  5133. _ACEOF
  5134. cat confdefs.h >>conftest.$ac_ext
  5135. cat >>conftest.$ac_ext <<_ACEOF
  5136. /* end confdefs.h. */
  5137. #include <sys/cdefs.h>
  5138. #include <mach/thread_status.h>
  5139. int
  5140. main ()
  5141. {
  5142. static x86_thread_state64_t ac_aggr;
  5143. if (ac_aggr.__rax)
  5144. return 0;
  5145. ;
  5146. return 0;
  5147. }
  5148. _ACEOF
  5149. rm -f conftest.$ac_objext
  5150. if { (ac_try="$ac_compile"
  5151. case "(($ac_try" in
  5152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5153. *) ac_try_echo=$ac_try;;
  5154. esac
  5155. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5156. (eval "$ac_compile") 2>conftest.er1
  5157. ac_status=$?
  5158. grep -v '^ *+' conftest.er1 >conftest.err
  5159. rm -f conftest.er1
  5160. cat conftest.err >&5
  5161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5162. (exit $ac_status); } && {
  5163. test -z "$ac_c_werror_flag" ||
  5164. test ! -s conftest.err
  5165. } && test -s conftest.$ac_objext; then
  5166. ac_cv_member_x86_thread_state64_t___rax=yes
  5167. else
  5168. echo "$as_me: failed program was:" >&5
  5169. sed 's/^/| /' conftest.$ac_ext >&5
  5170. cat >conftest.$ac_ext <<_ACEOF
  5171. /* confdefs.h. */
  5172. _ACEOF
  5173. cat confdefs.h >>conftest.$ac_ext
  5174. cat >>conftest.$ac_ext <<_ACEOF
  5175. /* end confdefs.h. */
  5176. #include <sys/cdefs.h>
  5177. #include <mach/thread_status.h>
  5178. int
  5179. main ()
  5180. {
  5181. static x86_thread_state64_t ac_aggr;
  5182. if (sizeof ac_aggr.__rax)
  5183. return 0;
  5184. ;
  5185. return 0;
  5186. }
  5187. _ACEOF
  5188. rm -f conftest.$ac_objext
  5189. if { (ac_try="$ac_compile"
  5190. case "(($ac_try" in
  5191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5192. *) ac_try_echo=$ac_try;;
  5193. esac
  5194. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5195. (eval "$ac_compile") 2>conftest.er1
  5196. ac_status=$?
  5197. grep -v '^ *+' conftest.er1 >conftest.err
  5198. rm -f conftest.er1
  5199. cat conftest.err >&5
  5200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5201. (exit $ac_status); } && {
  5202. test -z "$ac_c_werror_flag" ||
  5203. test ! -s conftest.err
  5204. } && test -s conftest.$ac_objext; then
  5205. ac_cv_member_x86_thread_state64_t___rax=yes
  5206. else
  5207. echo "$as_me: failed program was:" >&5
  5208. sed 's/^/| /' conftest.$ac_ext >&5
  5209. ac_cv_member_x86_thread_state64_t___rax=no
  5210. fi
  5211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5212. fi
  5213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5214. fi
  5215. { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
  5216. echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6; }
  5217. if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
  5218. cat >>confdefs.h <<\_ACEOF
  5219. #define HAS_X86_THREAD_STATE64___RAX 1
  5220. _ACEOF
  5221. fi
  5222. ;;
  5223. *) ;;
  5224. esac
  5225. { echo "$as_me:$LINENO: checking for xlc" >&5
  5226. echo $ECHO_N "checking for xlc... $ECHO_C" >&6; }
  5227. cat >conftest.$ac_ext <<_ACEOF
  5228. /* confdefs.h. */
  5229. _ACEOF
  5230. cat confdefs.h >>conftest.$ac_ext
  5231. cat >>conftest.$ac_ext <<_ACEOF
  5232. /* end confdefs.h. */
  5233. int
  5234. main ()
  5235. {
  5236. #ifndef __xlC__
  5237. # error
  5238. #endif
  5239. ;
  5240. return 0;
  5241. }
  5242. _ACEOF
  5243. rm -f conftest.$ac_objext
  5244. if { (ac_try="$ac_compile"
  5245. case "(($ac_try" in
  5246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5247. *) ac_try_echo=$ac_try;;
  5248. esac
  5249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5250. (eval "$ac_compile") 2>conftest.er1
  5251. ac_status=$?
  5252. grep -v '^ *+' conftest.er1 >conftest.err
  5253. rm -f conftest.er1
  5254. cat conftest.err >&5
  5255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5256. (exit $ac_status); } && {
  5257. test -z "$ac_c_werror_flag" ||
  5258. test ! -s conftest.err
  5259. } && test -s conftest.$ac_objext; then
  5260. compiler_xlc=yes
  5261. else
  5262. echo "$as_me: failed program was:" >&5
  5263. sed 's/^/| /' conftest.$ac_ext >&5
  5264. compiler_xlc=no
  5265. fi
  5266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5267. { echo "$as_me:$LINENO: result: $compiler_xlc" >&5
  5268. echo "${ECHO_T}$compiler_xlc" >&6; }
  5269. if test $compiler_xlc = yes; then
  5270. COMPILER_XLC_TRUE=
  5271. COMPILER_XLC_FALSE='#'
  5272. else
  5273. COMPILER_XLC_TRUE='#'
  5274. COMPILER_XLC_FALSE=
  5275. fi
  5276. if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then
  5277. # the darwin stack-frame-walking code is completely broken on xlc
  5278. cat >>confdefs.h <<\_ACEOF
  5279. #define DARWIN_DONT_PARSE_STACK 1
  5280. _ACEOF
  5281. fi
  5282. # We never want libdl on darwin. It is a fake libdl that just ends up making
  5283. # dyld calls anyway
  5284. case "$host" in
  5285. *-*-darwin*) ;;
  5286. *)
  5287. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  5288. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  5289. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  5290. echo $ECHO_N "(cached) $ECHO_C" >&6
  5291. else
  5292. ac_check_lib_save_LIBS=$LIBS
  5293. LIBS="-ldl $LIBS"
  5294. cat >conftest.$ac_ext <<_ACEOF
  5295. /* confdefs.h. */
  5296. _ACEOF
  5297. cat confdefs.h >>conftest.$ac_ext
  5298. cat >>conftest.$ac_ext <<_ACEOF
  5299. /* end confdefs.h. */
  5300. /* Override any GCC internal prototype to avoid an error.
  5301. Use char because int might match the return type of a GCC
  5302. builtin and then its argument prototype would still apply. */
  5303. #ifdef __cplusplus
  5304. extern "C"
  5305. #endif
  5306. char dlopen ();
  5307. int
  5308. main ()
  5309. {
  5310. return dlopen ();
  5311. ;
  5312. return 0;
  5313. }
  5314. _ACEOF
  5315. rm -f conftest.$ac_objext conftest$ac_exeext
  5316. if { (ac_try="$ac_link"
  5317. case "(($ac_try" in
  5318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5319. *) ac_try_echo=$ac_try;;
  5320. esac
  5321. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5322. (eval "$ac_link") 2>conftest.er1
  5323. ac_status=$?
  5324. grep -v '^ *+' conftest.er1 >conftest.err
  5325. rm -f conftest.er1
  5326. cat conftest.err >&5
  5327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5328. (exit $ac_status); } && {
  5329. test -z "$ac_c_werror_flag" ||
  5330. test ! -s conftest.err
  5331. } && test -s conftest$ac_exeext &&
  5332. $as_test_x conftest$ac_exeext; then
  5333. ac_cv_lib_dl_dlopen=yes
  5334. else
  5335. echo "$as_me: failed program was:" >&5
  5336. sed 's/^/| /' conftest.$ac_ext >&5
  5337. ac_cv_lib_dl_dlopen=no
  5338. fi
  5339. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5340. conftest$ac_exeext conftest.$ac_ext
  5341. LIBS=$ac_check_lib_save_LIBS
  5342. fi
  5343. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  5344. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  5345. if test $ac_cv_lib_dl_dlopen = yes; then
  5346. THREADDLLIBS="$THREADDLLIBS -ldl"
  5347. fi
  5348. ;;
  5349. esac
  5350. case "$host" in
  5351. *-*-hpux*)
  5352. avoid_cpp_lib=yes;;
  5353. *)
  5354. avoid_cpp_lib=no;
  5355. ;;
  5356. esac
  5357. if test $avoid_cpp_lib = yes; then
  5358. AVOID_CPP_LIB_TRUE=
  5359. AVOID_CPP_LIB_FALSE='#'
  5360. else
  5361. AVOID_CPP_LIB_TRUE='#'
  5362. AVOID_CPP_LIB_FALSE=
  5363. fi
  5364. # extra LD Flags which are required for targets
  5365. case "${host}" in
  5366. *-*-darwin*)
  5367. extra_ldflags_libgc=-Wl,-single_module
  5368. ;;
  5369. esac
  5370. target_all=libgc.la
  5371. TARGET_ECOS="no"
  5372. # Check whether --with-ecos was given.
  5373. if test "${with_ecos+set}" = set; then
  5374. withval=$with_ecos; TARGET_ECOS="$with_ecos"
  5375. fi
  5376. addobjs=
  5377. addlibs=
  5378. CXXINCLUDES=
  5379. case "$TARGET_ECOS" in
  5380. no)
  5381. ;;
  5382. *)
  5383. cat >>confdefs.h <<\_ACEOF
  5384. #define ECOS 1
  5385. _ACEOF
  5386. CXXINCLUDES="-I${TARGET_ECOS}/include"
  5387. addobjs="$addobjs ecos.lo"
  5388. ;;
  5389. esac
  5390. if test "${enable_cplusplus}" = yes; then
  5391. CPLUSPLUS_TRUE=
  5392. CPLUSPLUS_FALSE='#'
  5393. else
  5394. CPLUSPLUS_TRUE='#'
  5395. CPLUSPLUS_FALSE=
  5396. fi
  5397. # Configuration of shared libraries
  5398. #
  5399. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  5400. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  5401. # Check whether --enable-shared was given.
  5402. if test "${enable_shared+set}" = set; then
  5403. enableval=$enable_shared; p=${PACKAGE-default}
  5404. case $enableval in
  5405. yes) enable_shared=yes ;;
  5406. no) enable_shared=no ;;
  5407. *)
  5408. enable_shared=no
  5409. # Look at the argument we got. We use all the common list separators.
  5410. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5411. for pkg in $enableval; do
  5412. IFS="$lt_save_ifs"
  5413. if test "X$pkg" = "X$p"; then
  5414. enable_shared=yes
  5415. fi
  5416. done
  5417. IFS="$lt_save_ifs"
  5418. ;;
  5419. esac
  5420. else
  5421. enable_shared=yes
  5422. fi
  5423. case "$host" in
  5424. alpha-*-openbsd*)
  5425. enable_shared=no
  5426. ;;
  5427. *)
  5428. ;;
  5429. esac
  5430. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  5431. echo "${ECHO_T}$enable_shared" >&6; }
  5432. # Configuration of machine-dependent code
  5433. #
  5434. { echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
  5435. echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6; }
  5436. machdep=
  5437. case "$host" in
  5438. alpha-*-openbsd*)
  5439. machdep="mach_dep.lo"
  5440. if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
  5441. { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
  5442. echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
  5443. fi
  5444. ;;
  5445. alpha*-*-linux*)
  5446. machdep="mach_dep.lo"
  5447. ;;
  5448. i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
  5449. cat >>confdefs.h <<\_ACEOF
  5450. #define SOLARIS25_PROC_VDB_BUG_FIXED 1
  5451. _ACEOF
  5452. ;;
  5453. mipstx39-*-elf*)
  5454. machdep="mach_dep.lo"
  5455. cat >>confdefs.h <<\_ACEOF
  5456. #define STACKBASE __stackbase
  5457. _ACEOF
  5458. cat >>confdefs.h <<\_ACEOF
  5459. #define DATASTART_IS_ETEXT 1
  5460. _ACEOF
  5461. ;;
  5462. mips-dec-ultrix*)
  5463. machdep="mach-dep.lo"
  5464. ;;
  5465. mips-nec-sysv*|mips-unknown-sysv*)
  5466. ;;
  5467. mips*-*-linux*)
  5468. ;;
  5469. mips-*-*)
  5470. machdep="mach_dep.lo"
  5471. ;;
  5472. sparc-*-netbsd*)
  5473. machdep="mach_dep.lo sparc_netbsd_mach_dep.lo"
  5474. ;;
  5475. sparc-sun-solaris2.3)
  5476. machdep="mach_dep.lo sparc_mach_dep.lo"
  5477. cat >>confdefs.h <<\_ACEOF
  5478. #define SUNOS53_SHARED_LIB 1
  5479. _ACEOF
  5480. ;;
  5481. sparc*-sun-solaris2.*)
  5482. machdep="mach_dep.lo sparc_mach_dep.lo"
  5483. ;;
  5484. ia64-*-*)
  5485. machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
  5486. ;;
  5487. esac
  5488. if test x"$machdep" = x; then
  5489. { echo "$as_me:$LINENO: result: $machdep" >&5
  5490. echo "${ECHO_T}$machdep" >&6; }
  5491. machdep="mach_dep.lo"
  5492. fi
  5493. addobjs="$addobjs $machdep"
  5494. # Check whether --enable-static was given.
  5495. if test "${enable_static+set}" = set; then
  5496. enableval=$enable_static; p=${PACKAGE-default}
  5497. case $enableval in
  5498. yes) enable_static=yes ;;
  5499. no) enable_static=no ;;
  5500. *)
  5501. enable_static=no
  5502. # Look at the argument we got. We use all the common list separators.
  5503. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5504. for pkg in $enableval; do
  5505. IFS="$lt_save_ifs"
  5506. if test "X$pkg" = "X$p"; then
  5507. enable_static=yes
  5508. fi
  5509. done
  5510. IFS="$lt_save_ifs"
  5511. ;;
  5512. esac
  5513. else
  5514. enable_static=yes
  5515. fi
  5516. # Check whether --enable-fast-install was given.
  5517. if test "${enable_fast_install+set}" = set; then
  5518. enableval=$enable_fast_install; p=${PACKAGE-default}
  5519. case $enableval in
  5520. yes) enable_fast_install=yes ;;
  5521. no) enable_fast_install=no ;;
  5522. *)
  5523. enable_fast_install=no
  5524. # Look at the argument we got. We use all the common list separators.
  5525. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5526. for pkg in $enableval; do
  5527. IFS="$lt_save_ifs"
  5528. if test "X$pkg" = "X$p"; then
  5529. enable_fast_install=yes
  5530. fi
  5531. done
  5532. IFS="$lt_save_ifs"
  5533. ;;
  5534. esac
  5535. else
  5536. enable_fast_install=yes
  5537. fi
  5538. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  5539. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  5540. if test "${lt_cv_path_SED+set}" = set; then
  5541. echo $ECHO_N "(cached) $ECHO_C" >&6
  5542. else
  5543. # Loop through the user's path and test for sed and gsed.
  5544. # Then use that list of sed's as ones to test for truncation.
  5545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5546. for as_dir in $PATH
  5547. do
  5548. IFS=$as_save_IFS
  5549. test -z "$as_dir" && as_dir=.
  5550. for lt_ac_prog in sed gsed; do
  5551. for ac_exec_ext in '' $ac_executable_extensions; do
  5552. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  5553. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  5554. fi
  5555. done
  5556. done
  5557. done
  5558. lt_ac_max=0
  5559. lt_ac_count=0
  5560. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  5561. # along with /bin/sed that truncates output.
  5562. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  5563. test ! -f $lt_ac_sed && continue
  5564. cat /dev/null > conftest.in
  5565. lt_ac_count=0
  5566. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  5567. # Check for GNU sed and select it if it is found.
  5568. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  5569. lt_cv_path_SED=$lt_ac_sed
  5570. break
  5571. fi
  5572. while true; do
  5573. cat conftest.in conftest.in >conftest.tmp
  5574. mv conftest.tmp conftest.in
  5575. cp conftest.in conftest.nl
  5576. echo >>conftest.nl
  5577. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  5578. cmp -s conftest.out conftest.nl || break
  5579. # 10000 chars as input seems more than enough
  5580. test $lt_ac_count -gt 10 && break
  5581. lt_ac_count=`expr $lt_ac_count + 1`
  5582. if test $lt_ac_count -gt $lt_ac_max; then
  5583. lt_ac_max=$lt_ac_count
  5584. lt_cv_path_SED=$lt_ac_sed
  5585. fi
  5586. done
  5587. done
  5588. fi
  5589. SED=$lt_cv_path_SED
  5590. { echo "$as_me:$LINENO: result: $SED" >&5
  5591. echo "${ECHO_T}$SED" >&6; }
  5592. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5593. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5594. if test "${ac_cv_path_GREP+set}" = set; then
  5595. echo $ECHO_N "(cached) $ECHO_C" >&6
  5596. else
  5597. # Extract the first word of "grep ggrep" to use in msg output
  5598. if test -z "$GREP"; then
  5599. set dummy grep ggrep; ac_prog_name=$2
  5600. if test "${ac_cv_path_GREP+set}" = set; then
  5601. echo $ECHO_N "(cached) $ECHO_C" >&6
  5602. else
  5603. ac_path_GREP_found=false
  5604. # Loop through the user's path and test for each of PROGNAME-LIST
  5605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5606. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5607. do
  5608. IFS=$as_save_IFS
  5609. test -z "$as_dir" && as_dir=.
  5610. for ac_prog in grep ggrep; do
  5611. for ac_exec_ext in '' $ac_executable_extensions; do
  5612. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5613. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5614. # Check for GNU ac_path_GREP and select it if it is found.
  5615. # Check for GNU $ac_path_GREP
  5616. case `"$ac_path_GREP" --version 2>&1` in
  5617. *GNU*)
  5618. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5619. *)
  5620. ac_count=0
  5621. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5622. while :
  5623. do
  5624. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5625. mv "conftest.tmp" "conftest.in"
  5626. cp "conftest.in" "conftest.nl"
  5627. echo 'GREP' >> "conftest.nl"
  5628. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5629. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5630. ac_count=`expr $ac_count + 1`
  5631. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5632. # Best one so far, save it but keep looking for a better one
  5633. ac_cv_path_GREP="$ac_path_GREP"
  5634. ac_path_GREP_max=$ac_count
  5635. fi
  5636. # 10*(2^10) chars as input seems more than enough
  5637. test $ac_count -gt 10 && break
  5638. done
  5639. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5640. esac
  5641. $ac_path_GREP_found && break 3
  5642. done
  5643. done
  5644. done
  5645. IFS=$as_save_IFS
  5646. fi
  5647. GREP="$ac_cv_path_GREP"
  5648. if test -z "$GREP"; then
  5649. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5650. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5651. { (exit 1); exit 1; }; }
  5652. fi
  5653. else
  5654. ac_cv_path_GREP=$GREP
  5655. fi
  5656. fi
  5657. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5658. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5659. GREP="$ac_cv_path_GREP"
  5660. { echo "$as_me:$LINENO: checking for egrep" >&5
  5661. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5662. if test "${ac_cv_path_EGREP+set}" = set; then
  5663. echo $ECHO_N "(cached) $ECHO_C" >&6
  5664. else
  5665. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5666. then ac_cv_path_EGREP="$GREP -E"
  5667. else
  5668. # Extract the first word of "egrep" to use in msg output
  5669. if test -z "$EGREP"; then
  5670. set dummy egrep; ac_prog_name=$2
  5671. if test "${ac_cv_path_EGREP+set}" = set; then
  5672. echo $ECHO_N "(cached) $ECHO_C" >&6
  5673. else
  5674. ac_path_EGREP_found=false
  5675. # Loop through the user's path and test for each of PROGNAME-LIST
  5676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5677. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5678. do
  5679. IFS=$as_save_IFS
  5680. test -z "$as_dir" && as_dir=.
  5681. for ac_prog in egrep; do
  5682. for ac_exec_ext in '' $ac_executable_extensions; do
  5683. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5684. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5685. # Check for GNU ac_path_EGREP and select it if it is found.
  5686. # Check for GNU $ac_path_EGREP
  5687. case `"$ac_path_EGREP" --version 2>&1` in
  5688. *GNU*)
  5689. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5690. *)
  5691. ac_count=0
  5692. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5693. while :
  5694. do
  5695. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5696. mv "conftest.tmp" "conftest.in"
  5697. cp "conftest.in" "conftest.nl"
  5698. echo 'EGREP' >> "conftest.nl"
  5699. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5700. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5701. ac_count=`expr $ac_count + 1`
  5702. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5703. # Best one so far, save it but keep looking for a better one
  5704. ac_cv_path_EGREP="$ac_path_EGREP"
  5705. ac_path_EGREP_max=$ac_count
  5706. fi
  5707. # 10*(2^10) chars as input seems more than enough
  5708. test $ac_count -gt 10 && break
  5709. done
  5710. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5711. esac
  5712. $ac_path_EGREP_found && break 3
  5713. done
  5714. done
  5715. done
  5716. IFS=$as_save_IFS
  5717. fi
  5718. EGREP="$ac_cv_path_EGREP"
  5719. if test -z "$EGREP"; then
  5720. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5721. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5722. { (exit 1); exit 1; }; }
  5723. fi
  5724. else
  5725. ac_cv_path_EGREP=$EGREP
  5726. fi
  5727. fi
  5728. fi
  5729. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5730. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5731. EGREP="$ac_cv_path_EGREP"
  5732. # Check whether --with-gnu-ld was given.
  5733. if test "${with_gnu_ld+set}" = set; then
  5734. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5735. else
  5736. with_gnu_ld=no
  5737. fi
  5738. ac_prog=ld
  5739. if test "$GCC" = yes; then
  5740. # Check if gcc -print-prog-name=ld gives a path.
  5741. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  5742. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  5743. case $host in
  5744. *-*-mingw*)
  5745. # gcc leaves a trailing carriage return which upsets mingw
  5746. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5747. *)
  5748. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5749. esac
  5750. case $ac_prog in
  5751. # Accept absolute paths.
  5752. [\\/]* | ?:[\\/]*)
  5753. re_direlt='/[^/][^/]*/\.\./'
  5754. # Canonicalize the pathname of ld
  5755. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  5756. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5757. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  5758. done
  5759. test -z "$LD" && LD="$ac_prog"
  5760. ;;
  5761. "")
  5762. # If it fails, then pretend we aren't using GCC.
  5763. ac_prog=ld
  5764. ;;
  5765. *)
  5766. # If it is relative, then search for the first ld in PATH.
  5767. with_gnu_ld=unknown
  5768. ;;
  5769. esac
  5770. elif test "$with_gnu_ld" = yes; then
  5771. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  5772. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  5773. else
  5774. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  5775. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  5776. fi
  5777. if test "${lt_cv_path_LD+set}" = set; then
  5778. echo $ECHO_N "(cached) $ECHO_C" >&6
  5779. else
  5780. if test -z "$LD"; then
  5781. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5782. for ac_dir in $PATH; do
  5783. IFS="$lt_save_ifs"
  5784. test -z "$ac_dir" && ac_dir=.
  5785. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5786. lt_cv_path_LD="$ac_dir/$ac_prog"
  5787. # Check to see if the program is GNU ld. I'd rather use --version,
  5788. # but apparently some variants of GNU ld only accept -v.
  5789. # Break only if it was the GNU/non-GNU ld that we prefer.
  5790. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5791. *GNU* | *'with BFD'*)
  5792. test "$with_gnu_ld" != no && break
  5793. ;;
  5794. *)
  5795. test "$with_gnu_ld" != yes && break
  5796. ;;
  5797. esac
  5798. fi
  5799. done
  5800. IFS="$lt_save_ifs"
  5801. else
  5802. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5803. fi
  5804. fi
  5805. LD="$lt_cv_path_LD"
  5806. if test -n "$LD"; then
  5807. { echo "$as_me:$LINENO: result: $LD" >&5
  5808. echo "${ECHO_T}$LD" >&6; }
  5809. else
  5810. { echo "$as_me:$LINENO: result: no" >&5
  5811. echo "${ECHO_T}no" >&6; }
  5812. fi
  5813. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  5814. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  5815. { (exit 1); exit 1; }; }
  5816. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  5817. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  5818. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  5819. echo $ECHO_N "(cached) $ECHO_C" >&6
  5820. else
  5821. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5822. case `$LD -v 2>&1 </dev/null` in
  5823. *GNU* | *'with BFD'*)
  5824. lt_cv_prog_gnu_ld=yes
  5825. ;;
  5826. *)
  5827. lt_cv_prog_gnu_ld=no
  5828. ;;
  5829. esac
  5830. fi
  5831. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  5832. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  5833. with_gnu_ld=$lt_cv_prog_gnu_ld
  5834. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  5835. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  5836. if test "${lt_cv_ld_reload_flag+set}" = set; then
  5837. echo $ECHO_N "(cached) $ECHO_C" >&6
  5838. else
  5839. lt_cv_ld_reload_flag='-r'
  5840. fi
  5841. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  5842. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  5843. reload_flag=$lt_cv_ld_reload_flag
  5844. case $reload_flag in
  5845. "" | " "*) ;;
  5846. *) reload_flag=" $reload_flag" ;;
  5847. esac
  5848. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5849. case $host_os in
  5850. darwin*)
  5851. if test "$GCC" = yes; then
  5852. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5853. else
  5854. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5855. fi
  5856. ;;
  5857. esac
  5858. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  5859. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  5860. if test "${lt_cv_path_NM+set}" = set; then
  5861. echo $ECHO_N "(cached) $ECHO_C" >&6
  5862. else
  5863. if test -n "$NM"; then
  5864. # Let the user override the test.
  5865. lt_cv_path_NM="$NM"
  5866. else
  5867. lt_nm_to_check="${ac_tool_prefix}nm"
  5868. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5869. lt_nm_to_check="$lt_nm_to_check nm"
  5870. fi
  5871. for lt_tmp_nm in $lt_nm_to_check; do
  5872. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5873. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5874. IFS="$lt_save_ifs"
  5875. test -z "$ac_dir" && ac_dir=.
  5876. tmp_nm="$ac_dir/$lt_tmp_nm"
  5877. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5878. # Check to see if the nm accepts a BSD-compat flag.
  5879. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5880. # nm: unknown option "B" ignored
  5881. # Tru64's nm complains that /dev/null is an invalid object file
  5882. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5883. */dev/null* | *'Invalid file or object type'*)
  5884. lt_cv_path_NM="$tmp_nm -B"
  5885. break
  5886. ;;
  5887. *)
  5888. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5889. */dev/null*)
  5890. lt_cv_path_NM="$tmp_nm -p"
  5891. break
  5892. ;;
  5893. *)
  5894. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5895. continue # so that we can try to find one that supports BSD flags
  5896. ;;
  5897. esac
  5898. ;;
  5899. esac
  5900. fi
  5901. done
  5902. IFS="$lt_save_ifs"
  5903. done
  5904. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  5905. fi
  5906. fi
  5907. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  5908. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  5909. NM="$lt_cv_path_NM"
  5910. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  5911. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  5912. LN_S=$as_ln_s
  5913. if test "$LN_S" = "ln -s"; then
  5914. { echo "$as_me:$LINENO: result: yes" >&5
  5915. echo "${ECHO_T}yes" >&6; }
  5916. else
  5917. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  5918. echo "${ECHO_T}no, using $LN_S" >&6; }
  5919. fi
  5920. { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  5921. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  5922. if test "${lt_cv_deplibs_check_method+set}" = set; then
  5923. echo $ECHO_N "(cached) $ECHO_C" >&6
  5924. else
  5925. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5926. lt_cv_file_magic_test_file=
  5927. lt_cv_deplibs_check_method='unknown'
  5928. # Need to set the preceding variable on all platforms that support
  5929. # interlibrary dependencies.
  5930. # 'none' -- dependencies not supported.
  5931. # `unknown' -- same as none, but documents that we really don't know.
  5932. # 'pass_all' -- all dependencies passed with no checks.
  5933. # 'test_compile' -- check by making test program.
  5934. # 'file_magic [[regex]]' -- check by looking for files in library path
  5935. # which responds to the $file_magic_cmd with a given extended regex.
  5936. # If you have `file' or equivalent on your system and you're not sure
  5937. # whether `pass_all' will *always* work, you probably want this one.
  5938. case $host_os in
  5939. aix4* | aix5*)
  5940. lt_cv_deplibs_check_method=pass_all
  5941. ;;
  5942. beos*)
  5943. lt_cv_deplibs_check_method=pass_all
  5944. ;;
  5945. bsdi[45]*)
  5946. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5947. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5948. lt_cv_file_magic_test_file=/shlib/libc.so
  5949. ;;
  5950. cygwin*)
  5951. # func_win32_libid is a shell function defined in ltmain.sh
  5952. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5953. lt_cv_file_magic_cmd='func_win32_libid'
  5954. ;;
  5955. mingw* | pw32*)
  5956. # Base MSYS/MinGW do not provide the 'file' command needed by
  5957. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  5958. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5959. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5960. ;;
  5961. darwin* | rhapsody*)
  5962. lt_cv_deplibs_check_method=pass_all
  5963. ;;
  5964. freebsd* | kfreebsd*-gnu | dragonfly*)
  5965. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  5966. case $host_cpu in
  5967. i*86 )
  5968. # Not sure whether the presence of OpenBSD here was a mistake.
  5969. # Let's accept both of them until this is cleared up.
  5970. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5971. lt_cv_file_magic_cmd=/usr/bin/file
  5972. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5973. ;;
  5974. esac
  5975. else
  5976. lt_cv_deplibs_check_method=pass_all
  5977. fi
  5978. ;;
  5979. gnu*)
  5980. lt_cv_deplibs_check_method=pass_all
  5981. ;;
  5982. hpux10.20* | hpux11*)
  5983. lt_cv_file_magic_cmd=/usr/bin/file
  5984. case $host_cpu in
  5985. ia64*)
  5986. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5987. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5988. ;;
  5989. hppa*64*)
  5990. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5991. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5992. ;;
  5993. *)
  5994. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5995. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5996. ;;
  5997. esac
  5998. ;;
  5999. interix3*)
  6000. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6001. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6002. ;;
  6003. irix5* | irix6* | nonstopux*)
  6004. case $LD in
  6005. *-32|*"-32 ") libmagic=32-bit;;
  6006. *-n32|*"-n32 ") libmagic=N32;;
  6007. *-64|*"-64 ") libmagic=64-bit;;
  6008. *) libmagic=never-match;;
  6009. esac
  6010. lt_cv_deplibs_check_method=pass_all
  6011. ;;
  6012. # This must be Linux ELF.
  6013. linux*)
  6014. lt_cv_deplibs_check_method=pass_all
  6015. ;;
  6016. netbsd*)
  6017. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  6018. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6019. else
  6020. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6021. fi
  6022. ;;
  6023. newos6*)
  6024. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6025. lt_cv_file_magic_cmd=/usr/bin/file
  6026. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6027. ;;
  6028. nto-qnx*)
  6029. lt_cv_deplibs_check_method=unknown
  6030. ;;
  6031. openbsd*)
  6032. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6033. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6034. else
  6035. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6036. fi
  6037. ;;
  6038. osf3* | osf4* | osf5*)
  6039. lt_cv_deplibs_check_method=pass_all
  6040. ;;
  6041. solaris*)
  6042. lt_cv_deplibs_check_method=pass_all
  6043. ;;
  6044. sysv4 | sysv4.3*)
  6045. case $host_vendor in
  6046. motorola)
  6047. 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]'
  6048. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6049. ;;
  6050. ncr)
  6051. lt_cv_deplibs_check_method=pass_all
  6052. ;;
  6053. sequent)
  6054. lt_cv_file_magic_cmd='/bin/file'
  6055. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6056. ;;
  6057. sni)
  6058. lt_cv_file_magic_cmd='/bin/file'
  6059. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6060. lt_cv_file_magic_test_file=/lib/libc.so
  6061. ;;
  6062. siemens)
  6063. lt_cv_deplibs_check_method=pass_all
  6064. ;;
  6065. pc)
  6066. lt_cv_deplibs_check_method=pass_all
  6067. ;;
  6068. esac
  6069. ;;
  6070. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6071. lt_cv_deplibs_check_method=pass_all
  6072. ;;
  6073. esac
  6074. fi
  6075. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  6076. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  6077. file_magic_cmd=$lt_cv_file_magic_cmd
  6078. deplibs_check_method=$lt_cv_deplibs_check_method
  6079. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6080. # If no C compiler was specified, use CC.
  6081. LTCC=${LTCC-"$CC"}
  6082. # If no C compiler flags were specified, use CFLAGS.
  6083. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6084. # Allow CC to be a program name with arguments.
  6085. compiler=$CC
  6086. # Check whether --enable-libtool-lock was given.
  6087. if test "${enable_libtool_lock+set}" = set; then
  6088. enableval=$enable_libtool_lock;
  6089. fi
  6090. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6091. # Some flags need to be propagated to the compiler or linker for good
  6092. # libtool support.
  6093. case $host in
  6094. ia64-*-hpux*)
  6095. # Find out which ABI we are using.
  6096. echo 'int i;' > conftest.$ac_ext
  6097. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6098. (eval $ac_compile) 2>&5
  6099. ac_status=$?
  6100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6101. (exit $ac_status); }; then
  6102. case `/usr/bin/file conftest.$ac_objext` in
  6103. *ELF-32*)
  6104. HPUX_IA64_MODE="32"
  6105. ;;
  6106. *ELF-64*)
  6107. HPUX_IA64_MODE="64"
  6108. ;;
  6109. esac
  6110. fi
  6111. rm -rf conftest*
  6112. ;;
  6113. *-*-irix6*)
  6114. # Find out which ABI we are using.
  6115. echo '#line 6875 "configure"' > conftest.$ac_ext
  6116. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6117. (eval $ac_compile) 2>&5
  6118. ac_status=$?
  6119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6120. (exit $ac_status); }; then
  6121. if test "$lt_cv_prog_gnu_ld" = yes; then
  6122. case `/usr/bin/file conftest.$ac_objext` in
  6123. *32-bit*)
  6124. LD="${LD-ld} -melf32bsmip"
  6125. ;;
  6126. *N32*)
  6127. LD="${LD-ld} -melf32bmipn32"
  6128. ;;
  6129. *64-bit*)
  6130. LD="${LD-ld} -melf64bmip"
  6131. ;;
  6132. esac
  6133. else
  6134. case `/usr/bin/file conftest.$ac_objext` in
  6135. *32-bit*)
  6136. LD="${LD-ld} -32"
  6137. ;;
  6138. *N32*)
  6139. LD="${LD-ld} -n32"
  6140. ;;
  6141. *64-bit*)
  6142. LD="${LD-ld} -64"
  6143. ;;
  6144. esac
  6145. fi
  6146. fi
  6147. rm -rf conftest*
  6148. ;;
  6149. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  6150. # Find out which ABI we are using.
  6151. echo 'int i;' > conftest.$ac_ext
  6152. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6153. (eval $ac_compile) 2>&5
  6154. ac_status=$?
  6155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6156. (exit $ac_status); }; then
  6157. case `/usr/bin/file conftest.o` in
  6158. *32-bit*)
  6159. case $host in
  6160. x86_64-*linux*)
  6161. LD="${LD-ld} -m elf_i386"
  6162. ;;
  6163. ppc64-*linux*|powerpc64-*linux*)
  6164. LD="${LD-ld} -m elf32ppclinux"
  6165. ;;
  6166. s390x-*linux*)
  6167. LD="${LD-ld} -m elf_s390"
  6168. ;;
  6169. sparc64-*linux*)
  6170. LD="${LD-ld} -m elf32_sparc"
  6171. ;;
  6172. esac
  6173. ;;
  6174. *64-bit*)
  6175. case $host in
  6176. x86_64-*linux*)
  6177. LD="${LD-ld} -m elf_x86_64"
  6178. ;;
  6179. ppc*-*linux*|powerpc*-*linux*)
  6180. LD="${LD-ld} -m elf64ppc"
  6181. ;;
  6182. s390*-*linux*)
  6183. LD="${LD-ld} -m elf64_s390"
  6184. ;;
  6185. sparc*-*linux*)
  6186. LD="${LD-ld} -m elf64_sparc"
  6187. ;;
  6188. esac
  6189. ;;
  6190. esac
  6191. fi
  6192. rm -rf conftest*
  6193. ;;
  6194. *-*-sco3.2v5*)
  6195. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6196. SAVE_CFLAGS="$CFLAGS"
  6197. CFLAGS="$CFLAGS -belf"
  6198. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  6199. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  6200. if test "${lt_cv_cc_needs_belf+set}" = set; then
  6201. echo $ECHO_N "(cached) $ECHO_C" >&6
  6202. else
  6203. ac_ext=c
  6204. ac_cpp='$CPP $CPPFLAGS'
  6205. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6206. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6207. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6208. cat >conftest.$ac_ext <<_ACEOF
  6209. /* confdefs.h. */
  6210. _ACEOF
  6211. cat confdefs.h >>conftest.$ac_ext
  6212. cat >>conftest.$ac_ext <<_ACEOF
  6213. /* end confdefs.h. */
  6214. int
  6215. main ()
  6216. {
  6217. ;
  6218. return 0;
  6219. }
  6220. _ACEOF
  6221. rm -f conftest.$ac_objext conftest$ac_exeext
  6222. if { (ac_try="$ac_link"
  6223. case "(($ac_try" in
  6224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6225. *) ac_try_echo=$ac_try;;
  6226. esac
  6227. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6228. (eval "$ac_link") 2>conftest.er1
  6229. ac_status=$?
  6230. grep -v '^ *+' conftest.er1 >conftest.err
  6231. rm -f conftest.er1
  6232. cat conftest.err >&5
  6233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6234. (exit $ac_status); } && {
  6235. test -z "$ac_c_werror_flag" ||
  6236. test ! -s conftest.err
  6237. } && test -s conftest$ac_exeext &&
  6238. $as_test_x conftest$ac_exeext; then
  6239. lt_cv_cc_needs_belf=yes
  6240. else
  6241. echo "$as_me: failed program was:" >&5
  6242. sed 's/^/| /' conftest.$ac_ext >&5
  6243. lt_cv_cc_needs_belf=no
  6244. fi
  6245. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6246. conftest$ac_exeext conftest.$ac_ext
  6247. ac_ext=c
  6248. ac_cpp='$CPP $CPPFLAGS'
  6249. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6250. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6251. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6252. fi
  6253. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  6254. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  6255. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6256. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6257. CFLAGS="$SAVE_CFLAGS"
  6258. fi
  6259. ;;
  6260. sparc*-*solaris*)
  6261. # Find out which ABI we are using.
  6262. echo 'int i;' > conftest.$ac_ext
  6263. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6264. (eval $ac_compile) 2>&5
  6265. ac_status=$?
  6266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6267. (exit $ac_status); }; then
  6268. case `/usr/bin/file conftest.o` in
  6269. *64-bit*)
  6270. case $lt_cv_prog_gnu_ld in
  6271. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6272. *) LD="${LD-ld} -64" ;;
  6273. esac
  6274. ;;
  6275. esac
  6276. fi
  6277. rm -rf conftest*
  6278. ;;
  6279. esac
  6280. need_locks="$enable_libtool_lock"
  6281. ac_ext=c
  6282. ac_cpp='$CPP $CPPFLAGS'
  6283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6286. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6287. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  6288. # On Suns, sometimes $CPP names a directory.
  6289. if test -n "$CPP" && test -d "$CPP"; then
  6290. CPP=
  6291. fi
  6292. if test -z "$CPP"; then
  6293. if test "${ac_cv_prog_CPP+set}" = set; then
  6294. echo $ECHO_N "(cached) $ECHO_C" >&6
  6295. else
  6296. # Double quotes because CPP needs to be expanded
  6297. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6298. do
  6299. ac_preproc_ok=false
  6300. for ac_c_preproc_warn_flag in '' yes
  6301. do
  6302. # Use a header file that comes with gcc, so configuring glibc
  6303. # with a fresh cross-compiler works.
  6304. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6305. # <limits.h> exists even on freestanding compilers.
  6306. # On the NeXT, cc -E runs the code through the compiler's parser,
  6307. # not just through cpp. "Syntax error" is here to catch this case.
  6308. cat >conftest.$ac_ext <<_ACEOF
  6309. /* confdefs.h. */
  6310. _ACEOF
  6311. cat confdefs.h >>conftest.$ac_ext
  6312. cat >>conftest.$ac_ext <<_ACEOF
  6313. /* end confdefs.h. */
  6314. #ifdef __STDC__
  6315. # include <limits.h>
  6316. #else
  6317. # include <assert.h>
  6318. #endif
  6319. Syntax error
  6320. _ACEOF
  6321. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6322. case "(($ac_try" in
  6323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6324. *) ac_try_echo=$ac_try;;
  6325. esac
  6326. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6327. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6328. ac_status=$?
  6329. grep -v '^ *+' conftest.er1 >conftest.err
  6330. rm -f conftest.er1
  6331. cat conftest.err >&5
  6332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6333. (exit $ac_status); } >/dev/null && {
  6334. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6335. test ! -s conftest.err
  6336. }; then
  6337. :
  6338. else
  6339. echo "$as_me: failed program was:" >&5
  6340. sed 's/^/| /' conftest.$ac_ext >&5
  6341. # Broken: fails on valid input.
  6342. continue
  6343. fi
  6344. rm -f conftest.err conftest.$ac_ext
  6345. # OK, works on sane cases. Now check whether nonexistent headers
  6346. # can be detected and how.
  6347. cat >conftest.$ac_ext <<_ACEOF
  6348. /* confdefs.h. */
  6349. _ACEOF
  6350. cat confdefs.h >>conftest.$ac_ext
  6351. cat >>conftest.$ac_ext <<_ACEOF
  6352. /* end confdefs.h. */
  6353. #include <ac_nonexistent.h>
  6354. _ACEOF
  6355. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6356. case "(($ac_try" in
  6357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6358. *) ac_try_echo=$ac_try;;
  6359. esac
  6360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6361. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6362. ac_status=$?
  6363. grep -v '^ *+' conftest.er1 >conftest.err
  6364. rm -f conftest.er1
  6365. cat conftest.err >&5
  6366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6367. (exit $ac_status); } >/dev/null && {
  6368. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6369. test ! -s conftest.err
  6370. }; then
  6371. # Broken: success on invalid input.
  6372. continue
  6373. else
  6374. echo "$as_me: failed program was:" >&5
  6375. sed 's/^/| /' conftest.$ac_ext >&5
  6376. # Passes both tests.
  6377. ac_preproc_ok=:
  6378. break
  6379. fi
  6380. rm -f conftest.err conftest.$ac_ext
  6381. done
  6382. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6383. rm -f conftest.err conftest.$ac_ext
  6384. if $ac_preproc_ok; then
  6385. break
  6386. fi
  6387. done
  6388. ac_cv_prog_CPP=$CPP
  6389. fi
  6390. CPP=$ac_cv_prog_CPP
  6391. else
  6392. ac_cv_prog_CPP=$CPP
  6393. fi
  6394. { echo "$as_me:$LINENO: result: $CPP" >&5
  6395. echo "${ECHO_T}$CPP" >&6; }
  6396. ac_preproc_ok=false
  6397. for ac_c_preproc_warn_flag in '' yes
  6398. do
  6399. # Use a header file that comes with gcc, so configuring glibc
  6400. # with a fresh cross-compiler works.
  6401. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6402. # <limits.h> exists even on freestanding compilers.
  6403. # On the NeXT, cc -E runs the code through the compiler's parser,
  6404. # not just through cpp. "Syntax error" is here to catch this case.
  6405. cat >conftest.$ac_ext <<_ACEOF
  6406. /* confdefs.h. */
  6407. _ACEOF
  6408. cat confdefs.h >>conftest.$ac_ext
  6409. cat >>conftest.$ac_ext <<_ACEOF
  6410. /* end confdefs.h. */
  6411. #ifdef __STDC__
  6412. # include <limits.h>
  6413. #else
  6414. # include <assert.h>
  6415. #endif
  6416. Syntax error
  6417. _ACEOF
  6418. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6419. case "(($ac_try" in
  6420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6421. *) ac_try_echo=$ac_try;;
  6422. esac
  6423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6424. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6425. ac_status=$?
  6426. grep -v '^ *+' conftest.er1 >conftest.err
  6427. rm -f conftest.er1
  6428. cat conftest.err >&5
  6429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6430. (exit $ac_status); } >/dev/null && {
  6431. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6432. test ! -s conftest.err
  6433. }; then
  6434. :
  6435. else
  6436. echo "$as_me: failed program was:" >&5
  6437. sed 's/^/| /' conftest.$ac_ext >&5
  6438. # Broken: fails on valid input.
  6439. continue
  6440. fi
  6441. rm -f conftest.err conftest.$ac_ext
  6442. # OK, works on sane cases. Now check whether nonexistent headers
  6443. # can be detected and how.
  6444. cat >conftest.$ac_ext <<_ACEOF
  6445. /* confdefs.h. */
  6446. _ACEOF
  6447. cat confdefs.h >>conftest.$ac_ext
  6448. cat >>conftest.$ac_ext <<_ACEOF
  6449. /* end confdefs.h. */
  6450. #include <ac_nonexistent.h>
  6451. _ACEOF
  6452. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6453. case "(($ac_try" in
  6454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6455. *) ac_try_echo=$ac_try;;
  6456. esac
  6457. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6458. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6459. ac_status=$?
  6460. grep -v '^ *+' conftest.er1 >conftest.err
  6461. rm -f conftest.er1
  6462. cat conftest.err >&5
  6463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6464. (exit $ac_status); } >/dev/null && {
  6465. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6466. test ! -s conftest.err
  6467. }; then
  6468. # Broken: success on invalid input.
  6469. continue
  6470. else
  6471. echo "$as_me: failed program was:" >&5
  6472. sed 's/^/| /' conftest.$ac_ext >&5
  6473. # Passes both tests.
  6474. ac_preproc_ok=:
  6475. break
  6476. fi
  6477. rm -f conftest.err conftest.$ac_ext
  6478. done
  6479. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6480. rm -f conftest.err conftest.$ac_ext
  6481. if $ac_preproc_ok; then
  6482. :
  6483. else
  6484. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  6485. See \`config.log' for more details." >&5
  6486. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  6487. See \`config.log' for more details." >&2;}
  6488. { (exit 1); exit 1; }; }
  6489. fi
  6490. ac_ext=c
  6491. ac_cpp='$CPP $CPPFLAGS'
  6492. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6493. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6494. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6495. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6496. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6497. if test "${ac_cv_header_stdc+set}" = set; then
  6498. echo $ECHO_N "(cached) $ECHO_C" >&6
  6499. else
  6500. cat >conftest.$ac_ext <<_ACEOF
  6501. /* confdefs.h. */
  6502. _ACEOF
  6503. cat confdefs.h >>conftest.$ac_ext
  6504. cat >>conftest.$ac_ext <<_ACEOF
  6505. /* end confdefs.h. */
  6506. #include <stdlib.h>
  6507. #include <stdarg.h>
  6508. #include <string.h>
  6509. #include <float.h>
  6510. int
  6511. main ()
  6512. {
  6513. ;
  6514. return 0;
  6515. }
  6516. _ACEOF
  6517. rm -f conftest.$ac_objext
  6518. if { (ac_try="$ac_compile"
  6519. case "(($ac_try" in
  6520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6521. *) ac_try_echo=$ac_try;;
  6522. esac
  6523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6524. (eval "$ac_compile") 2>conftest.er1
  6525. ac_status=$?
  6526. grep -v '^ *+' conftest.er1 >conftest.err
  6527. rm -f conftest.er1
  6528. cat conftest.err >&5
  6529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6530. (exit $ac_status); } && {
  6531. test -z "$ac_c_werror_flag" ||
  6532. test ! -s conftest.err
  6533. } && test -s conftest.$ac_objext; then
  6534. ac_cv_header_stdc=yes
  6535. else
  6536. echo "$as_me: failed program was:" >&5
  6537. sed 's/^/| /' conftest.$ac_ext >&5
  6538. ac_cv_header_stdc=no
  6539. fi
  6540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6541. if test $ac_cv_header_stdc = yes; then
  6542. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6543. cat >conftest.$ac_ext <<_ACEOF
  6544. /* confdefs.h. */
  6545. _ACEOF
  6546. cat confdefs.h >>conftest.$ac_ext
  6547. cat >>conftest.$ac_ext <<_ACEOF
  6548. /* end confdefs.h. */
  6549. #include <string.h>
  6550. _ACEOF
  6551. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6552. $EGREP "memchr" >/dev/null 2>&1; then
  6553. :
  6554. else
  6555. ac_cv_header_stdc=no
  6556. fi
  6557. rm -f conftest*
  6558. fi
  6559. if test $ac_cv_header_stdc = yes; then
  6560. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6561. cat >conftest.$ac_ext <<_ACEOF
  6562. /* confdefs.h. */
  6563. _ACEOF
  6564. cat confdefs.h >>conftest.$ac_ext
  6565. cat >>conftest.$ac_ext <<_ACEOF
  6566. /* end confdefs.h. */
  6567. #include <stdlib.h>
  6568. _ACEOF
  6569. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6570. $EGREP "free" >/dev/null 2>&1; then
  6571. :
  6572. else
  6573. ac_cv_header_stdc=no
  6574. fi
  6575. rm -f conftest*
  6576. fi
  6577. if test $ac_cv_header_stdc = yes; then
  6578. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6579. if test "$cross_compiling" = yes; then
  6580. :
  6581. else
  6582. cat >conftest.$ac_ext <<_ACEOF
  6583. /* confdefs.h. */
  6584. _ACEOF
  6585. cat confdefs.h >>conftest.$ac_ext
  6586. cat >>conftest.$ac_ext <<_ACEOF
  6587. /* end confdefs.h. */
  6588. #include <ctype.h>
  6589. #include <stdlib.h>
  6590. #if ((' ' & 0x0FF) == 0x020)
  6591. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6592. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6593. #else
  6594. # define ISLOWER(c) \
  6595. (('a' <= (c) && (c) <= 'i') \
  6596. || ('j' <= (c) && (c) <= 'r') \
  6597. || ('s' <= (c) && (c) <= 'z'))
  6598. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6599. #endif
  6600. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6601. int
  6602. main ()
  6603. {
  6604. int i;
  6605. for (i = 0; i < 256; i++)
  6606. if (XOR (islower (i), ISLOWER (i))
  6607. || toupper (i) != TOUPPER (i))
  6608. return 2;
  6609. return 0;
  6610. }
  6611. _ACEOF
  6612. rm -f conftest$ac_exeext
  6613. if { (ac_try="$ac_link"
  6614. case "(($ac_try" in
  6615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6616. *) ac_try_echo=$ac_try;;
  6617. esac
  6618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6619. (eval "$ac_link") 2>&5
  6620. ac_status=$?
  6621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6622. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6623. { (case "(($ac_try" in
  6624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6625. *) ac_try_echo=$ac_try;;
  6626. esac
  6627. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6628. (eval "$ac_try") 2>&5
  6629. ac_status=$?
  6630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6631. (exit $ac_status); }; }; then
  6632. :
  6633. else
  6634. echo "$as_me: program exited with status $ac_status" >&5
  6635. echo "$as_me: failed program was:" >&5
  6636. sed 's/^/| /' conftest.$ac_ext >&5
  6637. ( exit $ac_status )
  6638. ac_cv_header_stdc=no
  6639. fi
  6640. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6641. fi
  6642. fi
  6643. fi
  6644. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6645. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  6646. if test $ac_cv_header_stdc = yes; then
  6647. cat >>confdefs.h <<\_ACEOF
  6648. #define STDC_HEADERS 1
  6649. _ACEOF
  6650. fi
  6651. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6652. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6653. inttypes.h stdint.h unistd.h
  6654. do
  6655. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6656. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6657. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6658. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6659. echo $ECHO_N "(cached) $ECHO_C" >&6
  6660. else
  6661. cat >conftest.$ac_ext <<_ACEOF
  6662. /* confdefs.h. */
  6663. _ACEOF
  6664. cat confdefs.h >>conftest.$ac_ext
  6665. cat >>conftest.$ac_ext <<_ACEOF
  6666. /* end confdefs.h. */
  6667. $ac_includes_default
  6668. #include <$ac_header>
  6669. _ACEOF
  6670. rm -f conftest.$ac_objext
  6671. if { (ac_try="$ac_compile"
  6672. case "(($ac_try" in
  6673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6674. *) ac_try_echo=$ac_try;;
  6675. esac
  6676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6677. (eval "$ac_compile") 2>conftest.er1
  6678. ac_status=$?
  6679. grep -v '^ *+' conftest.er1 >conftest.err
  6680. rm -f conftest.er1
  6681. cat conftest.err >&5
  6682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6683. (exit $ac_status); } && {
  6684. test -z "$ac_c_werror_flag" ||
  6685. test ! -s conftest.err
  6686. } && test -s conftest.$ac_objext; then
  6687. eval "$as_ac_Header=yes"
  6688. else
  6689. echo "$as_me: failed program was:" >&5
  6690. sed 's/^/| /' conftest.$ac_ext >&5
  6691. eval "$as_ac_Header=no"
  6692. fi
  6693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6694. fi
  6695. ac_res=`eval echo '${'$as_ac_Header'}'`
  6696. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6697. echo "${ECHO_T}$ac_res" >&6; }
  6698. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6699. cat >>confdefs.h <<_ACEOF
  6700. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6701. _ACEOF
  6702. fi
  6703. done
  6704. for ac_header in dlfcn.h
  6705. do
  6706. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6707. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6708. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6709. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6710. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6711. echo $ECHO_N "(cached) $ECHO_C" >&6
  6712. fi
  6713. ac_res=`eval echo '${'$as_ac_Header'}'`
  6714. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6715. echo "${ECHO_T}$ac_res" >&6; }
  6716. else
  6717. # Is the header compilable?
  6718. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6719. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6720. cat >conftest.$ac_ext <<_ACEOF
  6721. /* confdefs.h. */
  6722. _ACEOF
  6723. cat confdefs.h >>conftest.$ac_ext
  6724. cat >>conftest.$ac_ext <<_ACEOF
  6725. /* end confdefs.h. */
  6726. $ac_includes_default
  6727. #include <$ac_header>
  6728. _ACEOF
  6729. rm -f conftest.$ac_objext
  6730. if { (ac_try="$ac_compile"
  6731. case "(($ac_try" in
  6732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6733. *) ac_try_echo=$ac_try;;
  6734. esac
  6735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6736. (eval "$ac_compile") 2>conftest.er1
  6737. ac_status=$?
  6738. grep -v '^ *+' conftest.er1 >conftest.err
  6739. rm -f conftest.er1
  6740. cat conftest.err >&5
  6741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6742. (exit $ac_status); } && {
  6743. test -z "$ac_c_werror_flag" ||
  6744. test ! -s conftest.err
  6745. } && test -s conftest.$ac_objext; then
  6746. ac_header_compiler=yes
  6747. else
  6748. echo "$as_me: failed program was:" >&5
  6749. sed 's/^/| /' conftest.$ac_ext >&5
  6750. ac_header_compiler=no
  6751. fi
  6752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6753. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6754. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6755. # Is the header present?
  6756. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6757. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6758. cat >conftest.$ac_ext <<_ACEOF
  6759. /* confdefs.h. */
  6760. _ACEOF
  6761. cat confdefs.h >>conftest.$ac_ext
  6762. cat >>conftest.$ac_ext <<_ACEOF
  6763. /* end confdefs.h. */
  6764. #include <$ac_header>
  6765. _ACEOF
  6766. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6767. case "(($ac_try" in
  6768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6769. *) ac_try_echo=$ac_try;;
  6770. esac
  6771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6772. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6773. ac_status=$?
  6774. grep -v '^ *+' conftest.er1 >conftest.err
  6775. rm -f conftest.er1
  6776. cat conftest.err >&5
  6777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6778. (exit $ac_status); } >/dev/null && {
  6779. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6780. test ! -s conftest.err
  6781. }; then
  6782. ac_header_preproc=yes
  6783. else
  6784. echo "$as_me: failed program was:" >&5
  6785. sed 's/^/| /' conftest.$ac_ext >&5
  6786. ac_header_preproc=no
  6787. fi
  6788. rm -f conftest.err conftest.$ac_ext
  6789. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6790. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6791. # So? What about this header?
  6792. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6793. yes:no: )
  6794. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6795. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6796. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6797. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6798. ac_header_preproc=yes
  6799. ;;
  6800. no:yes:* )
  6801. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6802. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6803. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6804. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6805. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6806. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6807. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6808. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6809. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6810. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6811. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6812. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6813. ( cat <<\_ASBOX
  6814. ## -------------------------------- ##
  6815. ## Report this to Hans.Boehm@hp.com ##
  6816. ## -------------------------------- ##
  6817. _ASBOX
  6818. ) | sed "s/^/$as_me: WARNING: /" >&2
  6819. ;;
  6820. esac
  6821. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6822. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6823. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6824. echo $ECHO_N "(cached) $ECHO_C" >&6
  6825. else
  6826. eval "$as_ac_Header=\$ac_header_preproc"
  6827. fi
  6828. ac_res=`eval echo '${'$as_ac_Header'}'`
  6829. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6830. echo "${ECHO_T}$ac_res" >&6; }
  6831. fi
  6832. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6833. cat >>confdefs.h <<_ACEOF
  6834. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6835. _ACEOF
  6836. fi
  6837. done
  6838. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6839. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6840. (test "X$CXX" != "Xg++"))) ; then
  6841. ac_ext=cpp
  6842. ac_cpp='$CXXCPP $CPPFLAGS'
  6843. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6844. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6845. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6846. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  6847. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  6848. if test -z "$CXXCPP"; then
  6849. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  6850. echo $ECHO_N "(cached) $ECHO_C" >&6
  6851. else
  6852. # Double quotes because CXXCPP needs to be expanded
  6853. for CXXCPP in "$CXX -E" "/lib/cpp"
  6854. do
  6855. ac_preproc_ok=false
  6856. for ac_cxx_preproc_warn_flag in '' yes
  6857. do
  6858. # Use a header file that comes with gcc, so configuring glibc
  6859. # with a fresh cross-compiler works.
  6860. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6861. # <limits.h> exists even on freestanding compilers.
  6862. # On the NeXT, cc -E runs the code through the compiler's parser,
  6863. # not just through cpp. "Syntax error" is here to catch this case.
  6864. cat >conftest.$ac_ext <<_ACEOF
  6865. /* confdefs.h. */
  6866. _ACEOF
  6867. cat confdefs.h >>conftest.$ac_ext
  6868. cat >>conftest.$ac_ext <<_ACEOF
  6869. /* end confdefs.h. */
  6870. #ifdef __STDC__
  6871. # include <limits.h>
  6872. #else
  6873. # include <assert.h>
  6874. #endif
  6875. Syntax error
  6876. _ACEOF
  6877. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6878. case "(($ac_try" in
  6879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6880. *) ac_try_echo=$ac_try;;
  6881. esac
  6882. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6883. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6884. ac_status=$?
  6885. grep -v '^ *+' conftest.er1 >conftest.err
  6886. rm -f conftest.er1
  6887. cat conftest.err >&5
  6888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6889. (exit $ac_status); } >/dev/null && {
  6890. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6891. test ! -s conftest.err
  6892. }; then
  6893. :
  6894. else
  6895. echo "$as_me: failed program was:" >&5
  6896. sed 's/^/| /' conftest.$ac_ext >&5
  6897. # Broken: fails on valid input.
  6898. continue
  6899. fi
  6900. rm -f conftest.err conftest.$ac_ext
  6901. # OK, works on sane cases. Now check whether nonexistent headers
  6902. # can be detected and how.
  6903. cat >conftest.$ac_ext <<_ACEOF
  6904. /* confdefs.h. */
  6905. _ACEOF
  6906. cat confdefs.h >>conftest.$ac_ext
  6907. cat >>conftest.$ac_ext <<_ACEOF
  6908. /* end confdefs.h. */
  6909. #include <ac_nonexistent.h>
  6910. _ACEOF
  6911. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6912. case "(($ac_try" in
  6913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6914. *) ac_try_echo=$ac_try;;
  6915. esac
  6916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6917. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6918. ac_status=$?
  6919. grep -v '^ *+' conftest.er1 >conftest.err
  6920. rm -f conftest.er1
  6921. cat conftest.err >&5
  6922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6923. (exit $ac_status); } >/dev/null && {
  6924. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6925. test ! -s conftest.err
  6926. }; then
  6927. # Broken: success on invalid input.
  6928. continue
  6929. else
  6930. echo "$as_me: failed program was:" >&5
  6931. sed 's/^/| /' conftest.$ac_ext >&5
  6932. # Passes both tests.
  6933. ac_preproc_ok=:
  6934. break
  6935. fi
  6936. rm -f conftest.err conftest.$ac_ext
  6937. done
  6938. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6939. rm -f conftest.err conftest.$ac_ext
  6940. if $ac_preproc_ok; then
  6941. break
  6942. fi
  6943. done
  6944. ac_cv_prog_CXXCPP=$CXXCPP
  6945. fi
  6946. CXXCPP=$ac_cv_prog_CXXCPP
  6947. else
  6948. ac_cv_prog_CXXCPP=$CXXCPP
  6949. fi
  6950. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  6951. echo "${ECHO_T}$CXXCPP" >&6; }
  6952. ac_preproc_ok=false
  6953. for ac_cxx_preproc_warn_flag in '' yes
  6954. do
  6955. # Use a header file that comes with gcc, so configuring glibc
  6956. # with a fresh cross-compiler works.
  6957. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6958. # <limits.h> exists even on freestanding compilers.
  6959. # On the NeXT, cc -E runs the code through the compiler's parser,
  6960. # not just through cpp. "Syntax error" is here to catch this case.
  6961. cat >conftest.$ac_ext <<_ACEOF
  6962. /* confdefs.h. */
  6963. _ACEOF
  6964. cat confdefs.h >>conftest.$ac_ext
  6965. cat >>conftest.$ac_ext <<_ACEOF
  6966. /* end confdefs.h. */
  6967. #ifdef __STDC__
  6968. # include <limits.h>
  6969. #else
  6970. # include <assert.h>
  6971. #endif
  6972. Syntax error
  6973. _ACEOF
  6974. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6975. case "(($ac_try" in
  6976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6977. *) ac_try_echo=$ac_try;;
  6978. esac
  6979. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6980. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6981. ac_status=$?
  6982. grep -v '^ *+' conftest.er1 >conftest.err
  6983. rm -f conftest.er1
  6984. cat conftest.err >&5
  6985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6986. (exit $ac_status); } >/dev/null && {
  6987. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6988. test ! -s conftest.err
  6989. }; then
  6990. :
  6991. else
  6992. echo "$as_me: failed program was:" >&5
  6993. sed 's/^/| /' conftest.$ac_ext >&5
  6994. # Broken: fails on valid input.
  6995. continue
  6996. fi
  6997. rm -f conftest.err conftest.$ac_ext
  6998. # OK, works on sane cases. Now check whether nonexistent headers
  6999. # can be detected and how.
  7000. cat >conftest.$ac_ext <<_ACEOF
  7001. /* confdefs.h. */
  7002. _ACEOF
  7003. cat confdefs.h >>conftest.$ac_ext
  7004. cat >>conftest.$ac_ext <<_ACEOF
  7005. /* end confdefs.h. */
  7006. #include <ac_nonexistent.h>
  7007. _ACEOF
  7008. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7009. case "(($ac_try" in
  7010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7011. *) ac_try_echo=$ac_try;;
  7012. esac
  7013. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7014. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7015. ac_status=$?
  7016. grep -v '^ *+' conftest.er1 >conftest.err
  7017. rm -f conftest.er1
  7018. cat conftest.err >&5
  7019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7020. (exit $ac_status); } >/dev/null && {
  7021. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7022. test ! -s conftest.err
  7023. }; then
  7024. # Broken: success on invalid input.
  7025. continue
  7026. else
  7027. echo "$as_me: failed program was:" >&5
  7028. sed 's/^/| /' conftest.$ac_ext >&5
  7029. # Passes both tests.
  7030. ac_preproc_ok=:
  7031. break
  7032. fi
  7033. rm -f conftest.err conftest.$ac_ext
  7034. done
  7035. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7036. rm -f conftest.err conftest.$ac_ext
  7037. if $ac_preproc_ok; then
  7038. :
  7039. else
  7040. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  7041. See \`config.log' for more details." >&5
  7042. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  7043. See \`config.log' for more details." >&2;}
  7044. { (exit 1); exit 1; }; }
  7045. fi
  7046. ac_ext=cpp
  7047. ac_cpp='$CXXCPP $CPPFLAGS'
  7048. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7049. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7050. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7051. fi
  7052. ac_ext=f
  7053. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  7054. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7055. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  7056. if test -n "$ac_tool_prefix"; then
  7057. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  7058. do
  7059. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7060. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7061. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7062. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7063. if test "${ac_cv_prog_F77+set}" = set; then
  7064. echo $ECHO_N "(cached) $ECHO_C" >&6
  7065. else
  7066. if test -n "$F77"; then
  7067. ac_cv_prog_F77="$F77" # Let the user override the test.
  7068. else
  7069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7070. for as_dir in $PATH
  7071. do
  7072. IFS=$as_save_IFS
  7073. test -z "$as_dir" && as_dir=.
  7074. for ac_exec_ext in '' $ac_executable_extensions; do
  7075. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7076. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  7077. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7078. break 2
  7079. fi
  7080. done
  7081. done
  7082. IFS=$as_save_IFS
  7083. fi
  7084. fi
  7085. F77=$ac_cv_prog_F77
  7086. if test -n "$F77"; then
  7087. { echo "$as_me:$LINENO: result: $F77" >&5
  7088. echo "${ECHO_T}$F77" >&6; }
  7089. else
  7090. { echo "$as_me:$LINENO: result: no" >&5
  7091. echo "${ECHO_T}no" >&6; }
  7092. fi
  7093. test -n "$F77" && break
  7094. done
  7095. fi
  7096. if test -z "$F77"; then
  7097. ac_ct_F77=$F77
  7098. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  7099. do
  7100. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7101. set dummy $ac_prog; ac_word=$2
  7102. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7103. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7104. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  7105. echo $ECHO_N "(cached) $ECHO_C" >&6
  7106. else
  7107. if test -n "$ac_ct_F77"; then
  7108. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  7109. else
  7110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7111. for as_dir in $PATH
  7112. do
  7113. IFS=$as_save_IFS
  7114. test -z "$as_dir" && as_dir=.
  7115. for ac_exec_ext in '' $ac_executable_extensions; do
  7116. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7117. ac_cv_prog_ac_ct_F77="$ac_prog"
  7118. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7119. break 2
  7120. fi
  7121. done
  7122. done
  7123. IFS=$as_save_IFS
  7124. fi
  7125. fi
  7126. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  7127. if test -n "$ac_ct_F77"; then
  7128. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  7129. echo "${ECHO_T}$ac_ct_F77" >&6; }
  7130. else
  7131. { echo "$as_me:$LINENO: result: no" >&5
  7132. echo "${ECHO_T}no" >&6; }
  7133. fi
  7134. test -n "$ac_ct_F77" && break
  7135. done
  7136. if test "x$ac_ct_F77" = x; then
  7137. F77=""
  7138. else
  7139. case $cross_compiling:$ac_tool_warned in
  7140. yes:)
  7141. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7142. whose name does not start with the host triplet. If you think this
  7143. configuration is useful to you, please write to autoconf@gnu.org." >&5
  7144. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7145. whose name does not start with the host triplet. If you think this
  7146. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7147. ac_tool_warned=yes ;;
  7148. esac
  7149. F77=$ac_ct_F77
  7150. fi
  7151. fi
  7152. # Provide some information about the compiler.
  7153. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  7154. ac_compiler=`set X $ac_compile; echo $2`
  7155. { (ac_try="$ac_compiler --version >&5"
  7156. case "(($ac_try" in
  7157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7158. *) ac_try_echo=$ac_try;;
  7159. esac
  7160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7161. (eval "$ac_compiler --version >&5") 2>&5
  7162. ac_status=$?
  7163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7164. (exit $ac_status); }
  7165. { (ac_try="$ac_compiler -v >&5"
  7166. case "(($ac_try" in
  7167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7168. *) ac_try_echo=$ac_try;;
  7169. esac
  7170. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7171. (eval "$ac_compiler -v >&5") 2>&5
  7172. ac_status=$?
  7173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7174. (exit $ac_status); }
  7175. { (ac_try="$ac_compiler -V >&5"
  7176. case "(($ac_try" in
  7177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7178. *) ac_try_echo=$ac_try;;
  7179. esac
  7180. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7181. (eval "$ac_compiler -V >&5") 2>&5
  7182. ac_status=$?
  7183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7184. (exit $ac_status); }
  7185. rm -f a.out
  7186. # If we don't use `.F' as extension, the preprocessor is not run on the
  7187. # input file. (Note that this only needs to work for GNU compilers.)
  7188. ac_save_ext=$ac_ext
  7189. ac_ext=F
  7190. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  7191. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  7192. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  7193. echo $ECHO_N "(cached) $ECHO_C" >&6
  7194. else
  7195. cat >conftest.$ac_ext <<_ACEOF
  7196. program main
  7197. #ifndef __GNUC__
  7198. choke me
  7199. #endif
  7200. end
  7201. _ACEOF
  7202. rm -f conftest.$ac_objext
  7203. if { (ac_try="$ac_compile"
  7204. case "(($ac_try" in
  7205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7206. *) ac_try_echo=$ac_try;;
  7207. esac
  7208. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7209. (eval "$ac_compile") 2>conftest.er1
  7210. ac_status=$?
  7211. grep -v '^ *+' conftest.er1 >conftest.err
  7212. rm -f conftest.er1
  7213. cat conftest.err >&5
  7214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7215. (exit $ac_status); } && {
  7216. test -z "$ac_f77_werror_flag" ||
  7217. test ! -s conftest.err
  7218. } && test -s conftest.$ac_objext; then
  7219. ac_compiler_gnu=yes
  7220. else
  7221. echo "$as_me: failed program was:" >&5
  7222. sed 's/^/| /' conftest.$ac_ext >&5
  7223. ac_compiler_gnu=no
  7224. fi
  7225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7226. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  7227. fi
  7228. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  7229. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  7230. ac_ext=$ac_save_ext
  7231. ac_test_FFLAGS=${FFLAGS+set}
  7232. ac_save_FFLAGS=$FFLAGS
  7233. FFLAGS=
  7234. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  7235. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  7236. if test "${ac_cv_prog_f77_g+set}" = set; then
  7237. echo $ECHO_N "(cached) $ECHO_C" >&6
  7238. else
  7239. FFLAGS=-g
  7240. cat >conftest.$ac_ext <<_ACEOF
  7241. program main
  7242. end
  7243. _ACEOF
  7244. rm -f conftest.$ac_objext
  7245. if { (ac_try="$ac_compile"
  7246. case "(($ac_try" in
  7247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7248. *) ac_try_echo=$ac_try;;
  7249. esac
  7250. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7251. (eval "$ac_compile") 2>conftest.er1
  7252. ac_status=$?
  7253. grep -v '^ *+' conftest.er1 >conftest.err
  7254. rm -f conftest.er1
  7255. cat conftest.err >&5
  7256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7257. (exit $ac_status); } && {
  7258. test -z "$ac_f77_werror_flag" ||
  7259. test ! -s conftest.err
  7260. } && test -s conftest.$ac_objext; then
  7261. ac_cv_prog_f77_g=yes
  7262. else
  7263. echo "$as_me: failed program was:" >&5
  7264. sed 's/^/| /' conftest.$ac_ext >&5
  7265. ac_cv_prog_f77_g=no
  7266. fi
  7267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7268. fi
  7269. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  7270. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  7271. if test "$ac_test_FFLAGS" = set; then
  7272. FFLAGS=$ac_save_FFLAGS
  7273. elif test $ac_cv_prog_f77_g = yes; then
  7274. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  7275. FFLAGS="-g -O2"
  7276. else
  7277. FFLAGS="-g"
  7278. fi
  7279. else
  7280. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  7281. FFLAGS="-O2"
  7282. else
  7283. FFLAGS=
  7284. fi
  7285. fi
  7286. G77=`test $ac_compiler_gnu = yes && echo yes`
  7287. ac_ext=c
  7288. ac_cpp='$CPP $CPPFLAGS'
  7289. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7290. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7291. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7292. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  7293. # find the maximum length of command line arguments
  7294. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  7295. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  7296. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  7297. echo $ECHO_N "(cached) $ECHO_C" >&6
  7298. else
  7299. i=0
  7300. teststring="ABCD"
  7301. case $build_os in
  7302. msdosdjgpp*)
  7303. # On DJGPP, this test can blow up pretty badly due to problems in libc
  7304. # (any single argument exceeding 2000 bytes causes a buffer overrun
  7305. # during glob expansion). Even if it were fixed, the result of this
  7306. # check would be larger than it should be.
  7307. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  7308. ;;
  7309. gnu*)
  7310. # Under GNU Hurd, this test is not required because there is
  7311. # no limit to the length of command line arguments.
  7312. # Libtool will interpret -1 as no limit whatsoever
  7313. lt_cv_sys_max_cmd_len=-1;
  7314. ;;
  7315. cygwin* | mingw*)
  7316. # On Win9x/ME, this test blows up -- it succeeds, but takes
  7317. # about 5 minutes as the teststring grows exponentially.
  7318. # Worse, since 9x/ME are not pre-emptively multitasking,
  7319. # you end up with a "frozen" computer, even though with patience
  7320. # the test eventually succeeds (with a max line length of 256k).
  7321. # Instead, let's just punt: use the minimum linelength reported by
  7322. # all of the supported platforms: 8192 (on NT/2K/XP).
  7323. lt_cv_sys_max_cmd_len=8192;
  7324. ;;
  7325. amigaos*)
  7326. # On AmigaOS with pdksh, this test takes hours, literally.
  7327. # So we just punt and use a minimum line length of 8192.
  7328. lt_cv_sys_max_cmd_len=8192;
  7329. ;;
  7330. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  7331. # This has been around since 386BSD, at least. Likely further.
  7332. if test -x /sbin/sysctl; then
  7333. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  7334. elif test -x /usr/sbin/sysctl; then
  7335. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  7336. else
  7337. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  7338. fi
  7339. # And add a safety zone
  7340. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7341. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7342. ;;
  7343. interix*)
  7344. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  7345. lt_cv_sys_max_cmd_len=196608
  7346. ;;
  7347. osf*)
  7348. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  7349. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  7350. # nice to cause kernel panics so lets avoid the loop below.
  7351. # First set a reasonable default.
  7352. lt_cv_sys_max_cmd_len=16384
  7353. #
  7354. if test -x /sbin/sysconfig; then
  7355. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  7356. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  7357. esac
  7358. fi
  7359. ;;
  7360. sco3.2v5*)
  7361. lt_cv_sys_max_cmd_len=102400
  7362. ;;
  7363. sysv5* | sco5v6* | sysv4.2uw2*)
  7364. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  7365. if test -n "$kargmax"; then
  7366. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  7367. else
  7368. lt_cv_sys_max_cmd_len=32768
  7369. fi
  7370. ;;
  7371. *)
  7372. # If test is not a shell built-in, we'll probably end up computing a
  7373. # maximum length that is only half of the actual maximum length, but
  7374. # we can't tell.
  7375. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7376. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  7377. = "XX$teststring") >/dev/null 2>&1 &&
  7378. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  7379. lt_cv_sys_max_cmd_len=$new_result &&
  7380. test $i != 17 # 1/2 MB should be enough
  7381. do
  7382. i=`expr $i + 1`
  7383. teststring=$teststring$teststring
  7384. done
  7385. teststring=
  7386. # Add a significant safety factor because C++ compilers can tack on massive
  7387. # amounts of additional arguments before passing them to the linker.
  7388. # It appears as though 1/2 is a usable value.
  7389. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7390. ;;
  7391. esac
  7392. fi
  7393. if test -n $lt_cv_sys_max_cmd_len ; then
  7394. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  7395. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  7396. else
  7397. { echo "$as_me:$LINENO: result: none" >&5
  7398. echo "${ECHO_T}none" >&6; }
  7399. fi
  7400. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7401. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  7402. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  7403. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  7404. echo $ECHO_N "(cached) $ECHO_C" >&6
  7405. else
  7406. # These are sane defaults that work on at least a few old systems.
  7407. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7408. # Character class describing NM global symbol codes.
  7409. symcode='[BCDEGRST]'
  7410. # Regexp to match symbols that can be accessed directly from C.
  7411. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7412. # Transform an extracted symbol line into a proper C declaration
  7413. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  7414. # Transform an extracted symbol line into symbol name and symbol address
  7415. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7416. # Define system-specific variables.
  7417. case $host_os in
  7418. aix*)
  7419. symcode='[BCDT]'
  7420. ;;
  7421. cygwin* | mingw* | pw32*)
  7422. symcode='[ABCDGISTW]'
  7423. ;;
  7424. hpux*) # Its linker distinguishes data from code symbols
  7425. if test "$host_cpu" = ia64; then
  7426. symcode='[ABCDEGRST]'
  7427. fi
  7428. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7429. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7430. ;;
  7431. linux*)
  7432. if test "$host_cpu" = ia64; then
  7433. symcode='[ABCDGIRSTW]'
  7434. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7435. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7436. fi
  7437. ;;
  7438. irix* | nonstopux*)
  7439. symcode='[BCDEGRST]'
  7440. ;;
  7441. osf*)
  7442. symcode='[BCDEGQRST]'
  7443. ;;
  7444. solaris*)
  7445. symcode='[BDRT]'
  7446. ;;
  7447. sco3.2v5*)
  7448. symcode='[DT]'
  7449. ;;
  7450. sysv4.2uw2*)
  7451. symcode='[DT]'
  7452. ;;
  7453. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7454. symcode='[ABDT]'
  7455. ;;
  7456. sysv4)
  7457. symcode='[DFNSTU]'
  7458. ;;
  7459. esac
  7460. # Handle CRLF in mingw tool chain
  7461. opt_cr=
  7462. case $build_os in
  7463. mingw*)
  7464. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7465. ;;
  7466. esac
  7467. # If we're using GNU nm, then use its standard symbol codes.
  7468. case `$NM -V 2>&1` in
  7469. *GNU* | *'with BFD'*)
  7470. symcode='[ABCDGIRSTW]' ;;
  7471. esac
  7472. # Try without a prefix undercore, then with it.
  7473. for ac_symprfx in "" "_"; do
  7474. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7475. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7476. # Write the raw and C identifiers.
  7477. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7478. # Check to see that the pipe works correctly.
  7479. pipe_works=no
  7480. rm -f conftest*
  7481. cat > conftest.$ac_ext <<EOF
  7482. #ifdef __cplusplus
  7483. extern "C" {
  7484. #endif
  7485. char nm_test_var;
  7486. void nm_test_func(){}
  7487. #ifdef __cplusplus
  7488. }
  7489. #endif
  7490. int main(){nm_test_var='a';nm_test_func();return(0);}
  7491. EOF
  7492. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7493. (eval $ac_compile) 2>&5
  7494. ac_status=$?
  7495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7496. (exit $ac_status); }; then
  7497. # Now try to grab the symbols.
  7498. nlist=conftest.nm
  7499. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  7500. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  7501. ac_status=$?
  7502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7503. (exit $ac_status); } && test -s "$nlist"; then
  7504. # Try sorting and uniquifying the output.
  7505. if sort "$nlist" | uniq > "$nlist"T; then
  7506. mv -f "$nlist"T "$nlist"
  7507. else
  7508. rm -f "$nlist"T
  7509. fi
  7510. # Make sure that we snagged all the symbols we need.
  7511. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  7512. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  7513. cat <<EOF > conftest.$ac_ext
  7514. #ifdef __cplusplus
  7515. extern "C" {
  7516. #endif
  7517. EOF
  7518. # Now generate the symbol file.
  7519. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  7520. cat <<EOF >> conftest.$ac_ext
  7521. #if defined (__STDC__) && __STDC__
  7522. # define lt_ptr_t void *
  7523. #else
  7524. # define lt_ptr_t char *
  7525. # define const
  7526. #endif
  7527. /* The mapping between symbol names and symbols. */
  7528. const struct {
  7529. const char *name;
  7530. lt_ptr_t address;
  7531. }
  7532. lt_preloaded_symbols[] =
  7533. {
  7534. EOF
  7535. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  7536. cat <<\EOF >> conftest.$ac_ext
  7537. {0, (lt_ptr_t) 0}
  7538. };
  7539. #ifdef __cplusplus
  7540. }
  7541. #endif
  7542. EOF
  7543. # Now try linking the two files.
  7544. mv conftest.$ac_objext conftstm.$ac_objext
  7545. lt_save_LIBS="$LIBS"
  7546. lt_save_CFLAGS="$CFLAGS"
  7547. LIBS="conftstm.$ac_objext"
  7548. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7549. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7550. (eval $ac_link) 2>&5
  7551. ac_status=$?
  7552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7553. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  7554. pipe_works=yes
  7555. fi
  7556. LIBS="$lt_save_LIBS"
  7557. CFLAGS="$lt_save_CFLAGS"
  7558. else
  7559. echo "cannot find nm_test_func in $nlist" >&5
  7560. fi
  7561. else
  7562. echo "cannot find nm_test_var in $nlist" >&5
  7563. fi
  7564. else
  7565. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7566. fi
  7567. else
  7568. echo "$progname: failed program was:" >&5
  7569. cat conftest.$ac_ext >&5
  7570. fi
  7571. rm -f conftest* conftst*
  7572. # Do not use the global_symbol_pipe unless it works.
  7573. if test "$pipe_works" = yes; then
  7574. break
  7575. else
  7576. lt_cv_sys_global_symbol_pipe=
  7577. fi
  7578. done
  7579. fi
  7580. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7581. lt_cv_sys_global_symbol_to_cdecl=
  7582. fi
  7583. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7584. { echo "$as_me:$LINENO: result: failed" >&5
  7585. echo "${ECHO_T}failed" >&6; }
  7586. else
  7587. { echo "$as_me:$LINENO: result: ok" >&5
  7588. echo "${ECHO_T}ok" >&6; }
  7589. fi
  7590. { echo "$as_me:$LINENO: checking for objdir" >&5
  7591. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  7592. if test "${lt_cv_objdir+set}" = set; then
  7593. echo $ECHO_N "(cached) $ECHO_C" >&6
  7594. else
  7595. rm -f .libs 2>/dev/null
  7596. mkdir .libs 2>/dev/null
  7597. if test -d .libs; then
  7598. lt_cv_objdir=.libs
  7599. else
  7600. # MS-DOS does not allow filenames that begin with a dot.
  7601. lt_cv_objdir=_libs
  7602. fi
  7603. rmdir .libs 2>/dev/null
  7604. fi
  7605. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7606. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  7607. objdir=$lt_cv_objdir
  7608. case $host_os in
  7609. aix3*)
  7610. # AIX sometimes has problems with the GCC collect2 program. For some
  7611. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7612. # vanish in a puff of smoke.
  7613. if test "X${COLLECT_NAMES+set}" != Xset; then
  7614. COLLECT_NAMES=
  7615. export COLLECT_NAMES
  7616. fi
  7617. ;;
  7618. esac
  7619. # Sed substitution that helps us do robust quoting. It backslashifies
  7620. # metacharacters that are still active within double-quoted strings.
  7621. Xsed='sed -e 1s/^X//'
  7622. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  7623. # Same as above, but do not quote variable references.
  7624. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  7625. # Sed substitution to delay expansion of an escaped shell variable in a
  7626. # double_quote_subst'ed string.
  7627. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7628. # Sed substitution to avoid accidental globbing in evaled expressions
  7629. no_glob_subst='s/\*/\\\*/g'
  7630. # Constants:
  7631. rm="rm -f"
  7632. # Global variables:
  7633. default_ofile=libtool
  7634. can_build_shared=yes
  7635. # All known linkers require a `.a' archive for static linking (except MSVC,
  7636. # which needs '.lib').
  7637. libext=a
  7638. ltmain="$ac_aux_dir/ltmain.sh"
  7639. ofile="$default_ofile"
  7640. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7641. if test -n "$ac_tool_prefix"; then
  7642. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  7643. set dummy ${ac_tool_prefix}ar; ac_word=$2
  7644. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7645. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7646. if test "${ac_cv_prog_AR+set}" = set; then
  7647. echo $ECHO_N "(cached) $ECHO_C" >&6
  7648. else
  7649. if test -n "$AR"; then
  7650. ac_cv_prog_AR="$AR" # Let the user override the test.
  7651. else
  7652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7653. for as_dir in $PATH
  7654. do
  7655. IFS=$as_save_IFS
  7656. test -z "$as_dir" && as_dir=.
  7657. for ac_exec_ext in '' $ac_executable_extensions; do
  7658. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7659. ac_cv_prog_AR="${ac_tool_prefix}ar"
  7660. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7661. break 2
  7662. fi
  7663. done
  7664. done
  7665. IFS=$as_save_IFS
  7666. fi
  7667. fi
  7668. AR=$ac_cv_prog_AR
  7669. if test -n "$AR"; then
  7670. { echo "$as_me:$LINENO: result: $AR" >&5
  7671. echo "${ECHO_T}$AR" >&6; }
  7672. else
  7673. { echo "$as_me:$LINENO: result: no" >&5
  7674. echo "${ECHO_T}no" >&6; }
  7675. fi
  7676. fi
  7677. if test -z "$ac_cv_prog_AR"; then
  7678. ac_ct_AR=$AR
  7679. # Extract the first word of "ar", so it can be a program name with args.
  7680. set dummy ar; ac_word=$2
  7681. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7682. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7683. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  7684. echo $ECHO_N "(cached) $ECHO_C" >&6
  7685. else
  7686. if test -n "$ac_ct_AR"; then
  7687. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7688. else
  7689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7690. for as_dir in $PATH
  7691. do
  7692. IFS=$as_save_IFS
  7693. test -z "$as_dir" && as_dir=.
  7694. for ac_exec_ext in '' $ac_executable_extensions; do
  7695. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7696. ac_cv_prog_ac_ct_AR="ar"
  7697. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7698. break 2
  7699. fi
  7700. done
  7701. done
  7702. IFS=$as_save_IFS
  7703. fi
  7704. fi
  7705. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7706. if test -n "$ac_ct_AR"; then
  7707. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  7708. echo "${ECHO_T}$ac_ct_AR" >&6; }
  7709. else
  7710. { echo "$as_me:$LINENO: result: no" >&5
  7711. echo "${ECHO_T}no" >&6; }
  7712. fi
  7713. if test "x$ac_ct_AR" = x; then
  7714. AR="false"
  7715. else
  7716. case $cross_compiling:$ac_tool_warned in
  7717. yes:)
  7718. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7719. whose name does not start with the host triplet. If you think this
  7720. configuration is useful to you, please write to autoconf@gnu.org." >&5
  7721. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7722. whose name does not start with the host triplet. If you think this
  7723. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7724. ac_tool_warned=yes ;;
  7725. esac
  7726. AR=$ac_ct_AR
  7727. fi
  7728. else
  7729. AR="$ac_cv_prog_AR"
  7730. fi
  7731. if test -n "$ac_tool_prefix"; then
  7732. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7733. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7734. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7735. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7736. if test "${ac_cv_prog_RANLIB+set}" = set; then
  7737. echo $ECHO_N "(cached) $ECHO_C" >&6
  7738. else
  7739. if test -n "$RANLIB"; then
  7740. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7741. else
  7742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7743. for as_dir in $PATH
  7744. do
  7745. IFS=$as_save_IFS
  7746. test -z "$as_dir" && as_dir=.
  7747. for ac_exec_ext in '' $ac_executable_extensions; do
  7748. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7749. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7750. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7751. break 2
  7752. fi
  7753. done
  7754. done
  7755. IFS=$as_save_IFS
  7756. fi
  7757. fi
  7758. RANLIB=$ac_cv_prog_RANLIB
  7759. if test -n "$RANLIB"; then
  7760. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  7761. echo "${ECHO_T}$RANLIB" >&6; }
  7762. else
  7763. { echo "$as_me:$LINENO: result: no" >&5
  7764. echo "${ECHO_T}no" >&6; }
  7765. fi
  7766. fi
  7767. if test -z "$ac_cv_prog_RANLIB"; then
  7768. ac_ct_RANLIB=$RANLIB
  7769. # Extract the first word of "ranlib", so it can be a program name with args.
  7770. set dummy ranlib; ac_word=$2
  7771. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7772. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7773. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  7774. echo $ECHO_N "(cached) $ECHO_C" >&6
  7775. else
  7776. if test -n "$ac_ct_RANLIB"; then
  7777. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7778. else
  7779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7780. for as_dir in $PATH
  7781. do
  7782. IFS=$as_save_IFS
  7783. test -z "$as_dir" && as_dir=.
  7784. for ac_exec_ext in '' $ac_executable_extensions; do
  7785. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7786. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7787. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7788. break 2
  7789. fi
  7790. done
  7791. done
  7792. IFS=$as_save_IFS
  7793. fi
  7794. fi
  7795. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7796. if test -n "$ac_ct_RANLIB"; then
  7797. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  7798. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  7799. else
  7800. { echo "$as_me:$LINENO: result: no" >&5
  7801. echo "${ECHO_T}no" >&6; }
  7802. fi
  7803. if test "x$ac_ct_RANLIB" = x; then
  7804. RANLIB=":"
  7805. else
  7806. case $cross_compiling:$ac_tool_warned in
  7807. yes:)
  7808. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7809. whose name does not start with the host triplet. If you think this
  7810. configuration is useful to you, please write to autoconf@gnu.org." >&5
  7811. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7812. whose name does not start with the host triplet. If you think this
  7813. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7814. ac_tool_warned=yes ;;
  7815. esac
  7816. RANLIB=$ac_ct_RANLIB
  7817. fi
  7818. else
  7819. RANLIB="$ac_cv_prog_RANLIB"
  7820. fi
  7821. if test -n "$ac_tool_prefix"; then
  7822. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7823. set dummy ${ac_tool_prefix}strip; ac_word=$2
  7824. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7825. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7826. if test "${ac_cv_prog_STRIP+set}" = set; then
  7827. echo $ECHO_N "(cached) $ECHO_C" >&6
  7828. else
  7829. if test -n "$STRIP"; then
  7830. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7831. else
  7832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7833. for as_dir in $PATH
  7834. do
  7835. IFS=$as_save_IFS
  7836. test -z "$as_dir" && as_dir=.
  7837. for ac_exec_ext in '' $ac_executable_extensions; do
  7838. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7839. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7840. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7841. break 2
  7842. fi
  7843. done
  7844. done
  7845. IFS=$as_save_IFS
  7846. fi
  7847. fi
  7848. STRIP=$ac_cv_prog_STRIP
  7849. if test -n "$STRIP"; then
  7850. { echo "$as_me:$LINENO: result: $STRIP" >&5
  7851. echo "${ECHO_T}$STRIP" >&6; }
  7852. else
  7853. { echo "$as_me:$LINENO: result: no" >&5
  7854. echo "${ECHO_T}no" >&6; }
  7855. fi
  7856. fi
  7857. if test -z "$ac_cv_prog_STRIP"; then
  7858. ac_ct_STRIP=$STRIP
  7859. # Extract the first word of "strip", so it can be a program name with args.
  7860. set dummy strip; ac_word=$2
  7861. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7862. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7863. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  7864. echo $ECHO_N "(cached) $ECHO_C" >&6
  7865. else
  7866. if test -n "$ac_ct_STRIP"; then
  7867. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7868. else
  7869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7870. for as_dir in $PATH
  7871. do
  7872. IFS=$as_save_IFS
  7873. test -z "$as_dir" && as_dir=.
  7874. for ac_exec_ext in '' $ac_executable_extensions; do
  7875. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7876. ac_cv_prog_ac_ct_STRIP="strip"
  7877. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7878. break 2
  7879. fi
  7880. done
  7881. done
  7882. IFS=$as_save_IFS
  7883. fi
  7884. fi
  7885. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7886. if test -n "$ac_ct_STRIP"; then
  7887. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  7888. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  7889. else
  7890. { echo "$as_me:$LINENO: result: no" >&5
  7891. echo "${ECHO_T}no" >&6; }
  7892. fi
  7893. if test "x$ac_ct_STRIP" = x; then
  7894. STRIP=":"
  7895. else
  7896. case $cross_compiling:$ac_tool_warned in
  7897. yes:)
  7898. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7899. whose name does not start with the host triplet. If you think this
  7900. configuration is useful to you, please write to autoconf@gnu.org." >&5
  7901. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7902. whose name does not start with the host triplet. If you think this
  7903. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7904. ac_tool_warned=yes ;;
  7905. esac
  7906. STRIP=$ac_ct_STRIP
  7907. fi
  7908. else
  7909. STRIP="$ac_cv_prog_STRIP"
  7910. fi
  7911. old_CC="$CC"
  7912. old_CFLAGS="$CFLAGS"
  7913. # Set sane defaults for various variables
  7914. test -z "$AR" && AR=ar
  7915. test -z "$AR_FLAGS" && AR_FLAGS=cru
  7916. test -z "$AS" && AS=as
  7917. test -z "$CC" && CC=cc
  7918. test -z "$LTCC" && LTCC=$CC
  7919. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7920. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7921. test -z "$LD" && LD=ld
  7922. test -z "$LN_S" && LN_S="ln -s"
  7923. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7924. test -z "$NM" && NM=nm
  7925. test -z "$SED" && SED=sed
  7926. test -z "$OBJDUMP" && OBJDUMP=objdump
  7927. test -z "$RANLIB" && RANLIB=:
  7928. test -z "$STRIP" && STRIP=:
  7929. test -z "$ac_objext" && ac_objext=o
  7930. # Determine commands to create old-style static archives.
  7931. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  7932. old_postinstall_cmds='chmod 644 $oldlib'
  7933. old_postuninstall_cmds=
  7934. if test -n "$RANLIB"; then
  7935. case $host_os in
  7936. openbsd*)
  7937. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  7938. ;;
  7939. *)
  7940. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  7941. ;;
  7942. esac
  7943. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  7944. fi
  7945. for cc_temp in $compiler""; do
  7946. case $cc_temp in
  7947. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7948. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7949. \-*) ;;
  7950. *) break;;
  7951. esac
  7952. done
  7953. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7954. # Only perform the check for file, if the check method requires it
  7955. case $deplibs_check_method in
  7956. file_magic*)
  7957. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7958. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7959. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  7960. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7961. echo $ECHO_N "(cached) $ECHO_C" >&6
  7962. else
  7963. case $MAGIC_CMD in
  7964. [\\/*] | ?:[\\/]*)
  7965. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7966. ;;
  7967. *)
  7968. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7969. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7970. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7971. for ac_dir in $ac_dummy; do
  7972. IFS="$lt_save_ifs"
  7973. test -z "$ac_dir" && ac_dir=.
  7974. if test -f $ac_dir/${ac_tool_prefix}file; then
  7975. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7976. if test -n "$file_magic_test_file"; then
  7977. case $deplibs_check_method in
  7978. "file_magic "*)
  7979. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7980. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7981. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7982. $EGREP "$file_magic_regex" > /dev/null; then
  7983. :
  7984. else
  7985. cat <<EOF 1>&2
  7986. *** Warning: the command libtool uses to detect shared libraries,
  7987. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7988. *** The result is that libtool may fail to recognize shared libraries
  7989. *** as such. This will affect the creation of libtool libraries that
  7990. *** depend on shared libraries, but programs linked with such libtool
  7991. *** libraries will work regardless of this problem. Nevertheless, you
  7992. *** may want to report the problem to your system manager and/or to
  7993. *** bug-libtool@gnu.org
  7994. EOF
  7995. fi ;;
  7996. esac
  7997. fi
  7998. break
  7999. fi
  8000. done
  8001. IFS="$lt_save_ifs"
  8002. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8003. ;;
  8004. esac
  8005. fi
  8006. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8007. if test -n "$MAGIC_CMD"; then
  8008. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8009. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  8010. else
  8011. { echo "$as_me:$LINENO: result: no" >&5
  8012. echo "${ECHO_T}no" >&6; }
  8013. fi
  8014. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8015. if test -n "$ac_tool_prefix"; then
  8016. { echo "$as_me:$LINENO: checking for file" >&5
  8017. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  8018. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  8019. echo $ECHO_N "(cached) $ECHO_C" >&6
  8020. else
  8021. case $MAGIC_CMD in
  8022. [\\/*] | ?:[\\/]*)
  8023. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8024. ;;
  8025. *)
  8026. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8027. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8028. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8029. for ac_dir in $ac_dummy; do
  8030. IFS="$lt_save_ifs"
  8031. test -z "$ac_dir" && ac_dir=.
  8032. if test -f $ac_dir/file; then
  8033. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8034. if test -n "$file_magic_test_file"; then
  8035. case $deplibs_check_method in
  8036. "file_magic "*)
  8037. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8038. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8039. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8040. $EGREP "$file_magic_regex" > /dev/null; then
  8041. :
  8042. else
  8043. cat <<EOF 1>&2
  8044. *** Warning: the command libtool uses to detect shared libraries,
  8045. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8046. *** The result is that libtool may fail to recognize shared libraries
  8047. *** as such. This will affect the creation of libtool libraries that
  8048. *** depend on shared libraries, but programs linked with such libtool
  8049. *** libraries will work regardless of this problem. Nevertheless, you
  8050. *** may want to report the problem to your system manager and/or to
  8051. *** bug-libtool@gnu.org
  8052. EOF
  8053. fi ;;
  8054. esac
  8055. fi
  8056. break
  8057. fi
  8058. done
  8059. IFS="$lt_save_ifs"
  8060. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8061. ;;
  8062. esac
  8063. fi
  8064. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8065. if test -n "$MAGIC_CMD"; then
  8066. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8067. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  8068. else
  8069. { echo "$as_me:$LINENO: result: no" >&5
  8070. echo "${ECHO_T}no" >&6; }
  8071. fi
  8072. else
  8073. MAGIC_CMD=:
  8074. fi
  8075. fi
  8076. fi
  8077. ;;
  8078. esac
  8079. enable_dlopen=no
  8080. enable_win32_dll=no
  8081. # Check whether --enable-libtool-lock was given.
  8082. if test "${enable_libtool_lock+set}" = set; then
  8083. enableval=$enable_libtool_lock;
  8084. fi
  8085. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8086. # Check whether --with-pic was given.
  8087. if test "${with_pic+set}" = set; then
  8088. withval=$with_pic; pic_mode="$withval"
  8089. else
  8090. pic_mode=default
  8091. fi
  8092. test -z "$pic_mode" && pic_mode=default
  8093. # Use C for the default configuration in the libtool script
  8094. tagname=
  8095. lt_save_CC="$CC"
  8096. ac_ext=c
  8097. ac_cpp='$CPP $CPPFLAGS'
  8098. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8099. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8100. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8101. # Source file extension for C test sources.
  8102. ac_ext=c
  8103. # Object file extension for compiled C test sources.
  8104. objext=o
  8105. objext=$objext
  8106. # Code to be used in simple compile tests
  8107. lt_simple_compile_test_code="int some_variable = 0;\n"
  8108. # Code to be used in simple link tests
  8109. lt_simple_link_test_code='int main(){return(0);}\n'
  8110. # If no C compiler was specified, use CC.
  8111. LTCC=${LTCC-"$CC"}
  8112. # If no C compiler flags were specified, use CFLAGS.
  8113. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8114. # Allow CC to be a program name with arguments.
  8115. compiler=$CC
  8116. # save warnings/boilerplate of simple test code
  8117. ac_outfile=conftest.$ac_objext
  8118. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  8119. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8120. _lt_compiler_boilerplate=`cat conftest.err`
  8121. $rm conftest*
  8122. ac_outfile=conftest.$ac_objext
  8123. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  8124. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8125. _lt_linker_boilerplate=`cat conftest.err`
  8126. $rm conftest*
  8127. ## CAVEAT EMPTOR:
  8128. ## There is no encapsulation within the following macros, do not change
  8129. ## the running order or otherwise move them around unless you know exactly
  8130. ## what you are doing...
  8131. lt_prog_compiler_no_builtin_flag=
  8132. if test "$GCC" = yes; then
  8133. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  8134. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8135. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  8136. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  8137. echo $ECHO_N "(cached) $ECHO_C" >&6
  8138. else
  8139. lt_cv_prog_compiler_rtti_exceptions=no
  8140. ac_outfile=conftest.$ac_objext
  8141. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8142. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8143. # Insert the option either (1) after the last *FLAGS variable, or
  8144. # (2) before a word containing "conftest.", or (3) at the end.
  8145. # Note that $ac_compile itself does not contain backslashes and begins
  8146. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8147. # The option is referenced via a variable to avoid confusing sed.
  8148. lt_compile=`echo "$ac_compile" | $SED \
  8149. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8150. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8151. -e 's:$: $lt_compiler_flag:'`
  8152. (eval echo "\"\$as_me:9138: $lt_compile\"" >&5)
  8153. (eval "$lt_compile" 2>conftest.err)
  8154. ac_status=$?
  8155. cat conftest.err >&5
  8156. echo "$as_me:9142: \$? = $ac_status" >&5
  8157. if (exit $ac_status) && test -s "$ac_outfile"; then
  8158. # The compiler can only warn and ignore the option if not recognized
  8159. # So say no if there are warnings other than the usual output.
  8160. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8161. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8162. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8163. lt_cv_prog_compiler_rtti_exceptions=yes
  8164. fi
  8165. fi
  8166. $rm conftest*
  8167. fi
  8168. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8169. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8170. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8171. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8172. else
  8173. :
  8174. fi
  8175. fi
  8176. lt_prog_compiler_wl=
  8177. lt_prog_compiler_pic=
  8178. lt_prog_compiler_static=
  8179. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  8180. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  8181. if test "$GCC" = yes; then
  8182. lt_prog_compiler_wl='-Wl,'
  8183. lt_prog_compiler_static='-static'
  8184. case $host_os in
  8185. aix*)
  8186. # All AIX code is PIC.
  8187. if test "$host_cpu" = ia64; then
  8188. # AIX 5 now supports IA64 processor
  8189. lt_prog_compiler_static='-Bstatic'
  8190. fi
  8191. ;;
  8192. amigaos*)
  8193. # FIXME: we need at least 68020 code to build shared libraries, but
  8194. # adding the `-m68020' flag to GCC prevents building anything better,
  8195. # like `-m68040'.
  8196. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8197. ;;
  8198. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8199. # PIC is the default for these OSes.
  8200. ;;
  8201. mingw* | pw32* | os2*)
  8202. # This hack is so that the source file can tell whether it is being
  8203. # built for inclusion in a dll (and should export symbols for example).
  8204. lt_prog_compiler_pic='-DDLL_EXPORT'
  8205. ;;
  8206. darwin* | rhapsody*)
  8207. # PIC is the default on this platform
  8208. # Common symbols not allowed in MH_DYLIB files
  8209. lt_prog_compiler_pic='-fno-common'
  8210. ;;
  8211. interix3*)
  8212. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8213. # Instead, we relocate shared libraries at runtime.
  8214. ;;
  8215. msdosdjgpp*)
  8216. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8217. # on systems that don't support them.
  8218. lt_prog_compiler_can_build_shared=no
  8219. enable_shared=no
  8220. ;;
  8221. sysv4*MP*)
  8222. if test -d /usr/nec; then
  8223. lt_prog_compiler_pic=-Kconform_pic
  8224. fi
  8225. ;;
  8226. hpux*)
  8227. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8228. # not for PA HP-UX.
  8229. case $host_cpu in
  8230. hppa*64*|ia64*)
  8231. # +Z the default
  8232. ;;
  8233. *)
  8234. lt_prog_compiler_pic='-fPIC'
  8235. ;;
  8236. esac
  8237. ;;
  8238. *)
  8239. lt_prog_compiler_pic='-fPIC'
  8240. ;;
  8241. esac
  8242. else
  8243. # PORTME Check for flag to pass linker flags through the system compiler.
  8244. case $host_os in
  8245. aix*)
  8246. lt_prog_compiler_wl='-Wl,'
  8247. if test "$host_cpu" = ia64; then
  8248. # AIX 5 now supports IA64 processor
  8249. lt_prog_compiler_static='-Bstatic'
  8250. else
  8251. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8252. fi
  8253. ;;
  8254. darwin*)
  8255. # PIC is the default on this platform
  8256. # Common symbols not allowed in MH_DYLIB files
  8257. case $cc_basename in
  8258. xlc*)
  8259. lt_prog_compiler_pic='-qnocommon'
  8260. lt_prog_compiler_wl='-Wl,'
  8261. ;;
  8262. esac
  8263. ;;
  8264. mingw* | pw32* | os2*)
  8265. # This hack is so that the source file can tell whether it is being
  8266. # built for inclusion in a dll (and should export symbols for example).
  8267. lt_prog_compiler_pic='-DDLL_EXPORT'
  8268. ;;
  8269. hpux9* | hpux10* | hpux11*)
  8270. lt_prog_compiler_wl='-Wl,'
  8271. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8272. # not for PA HP-UX.
  8273. case $host_cpu in
  8274. hppa*64*|ia64*)
  8275. # +Z the default
  8276. ;;
  8277. *)
  8278. lt_prog_compiler_pic='+Z'
  8279. ;;
  8280. esac
  8281. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8282. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8283. ;;
  8284. irix5* | irix6* | nonstopux*)
  8285. lt_prog_compiler_wl='-Wl,'
  8286. # PIC (with -KPIC) is the default.
  8287. lt_prog_compiler_static='-non_shared'
  8288. ;;
  8289. newsos6)
  8290. lt_prog_compiler_pic='-KPIC'
  8291. lt_prog_compiler_static='-Bstatic'
  8292. ;;
  8293. linux*)
  8294. case $cc_basename in
  8295. icc* | ecc*)
  8296. lt_prog_compiler_wl='-Wl,'
  8297. lt_prog_compiler_pic='-KPIC'
  8298. lt_prog_compiler_static='-static'
  8299. ;;
  8300. pgcc* | pgf77* | pgf90* | pgf95*)
  8301. # Portland Group compilers (*not* the Pentium gcc compiler,
  8302. # which looks to be a dead project)
  8303. lt_prog_compiler_wl='-Wl,'
  8304. lt_prog_compiler_pic='-fpic'
  8305. lt_prog_compiler_static='-Bstatic'
  8306. ;;
  8307. ccc*)
  8308. lt_prog_compiler_wl='-Wl,'
  8309. # All Alpha code is PIC.
  8310. lt_prog_compiler_static='-non_shared'
  8311. ;;
  8312. esac
  8313. ;;
  8314. osf3* | osf4* | osf5*)
  8315. lt_prog_compiler_wl='-Wl,'
  8316. # All OSF/1 code is PIC.
  8317. lt_prog_compiler_static='-non_shared'
  8318. ;;
  8319. solaris*)
  8320. lt_prog_compiler_pic='-KPIC'
  8321. lt_prog_compiler_static='-Bstatic'
  8322. case $cc_basename in
  8323. f77* | f90* | f95*)
  8324. lt_prog_compiler_wl='-Qoption ld ';;
  8325. *)
  8326. lt_prog_compiler_wl='-Wl,';;
  8327. esac
  8328. ;;
  8329. sunos4*)
  8330. lt_prog_compiler_wl='-Qoption ld '
  8331. lt_prog_compiler_pic='-PIC'
  8332. lt_prog_compiler_static='-Bstatic'
  8333. ;;
  8334. sysv4 | sysv4.2uw2* | sysv4.3*)
  8335. lt_prog_compiler_wl='-Wl,'
  8336. lt_prog_compiler_pic='-KPIC'
  8337. lt_prog_compiler_static='-Bstatic'
  8338. ;;
  8339. sysv4*MP*)
  8340. if test -d /usr/nec ;then
  8341. lt_prog_compiler_pic='-Kconform_pic'
  8342. lt_prog_compiler_static='-Bstatic'
  8343. fi
  8344. ;;
  8345. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8346. lt_prog_compiler_wl='-Wl,'
  8347. lt_prog_compiler_pic='-KPIC'
  8348. lt_prog_compiler_static='-Bstatic'
  8349. ;;
  8350. unicos*)
  8351. lt_prog_compiler_wl='-Wl,'
  8352. lt_prog_compiler_can_build_shared=no
  8353. ;;
  8354. uts4*)
  8355. lt_prog_compiler_pic='-pic'
  8356. lt_prog_compiler_static='-Bstatic'
  8357. ;;
  8358. *)
  8359. lt_prog_compiler_can_build_shared=no
  8360. ;;
  8361. esac
  8362. fi
  8363. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  8364. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  8365. #
  8366. # Check to make sure the PIC flag actually works.
  8367. #
  8368. if test -n "$lt_prog_compiler_pic"; then
  8369. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8370. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  8371. if test "${lt_prog_compiler_pic_works+set}" = set; then
  8372. echo $ECHO_N "(cached) $ECHO_C" >&6
  8373. else
  8374. lt_prog_compiler_pic_works=no
  8375. ac_outfile=conftest.$ac_objext
  8376. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8377. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8378. # Insert the option either (1) after the last *FLAGS variable, or
  8379. # (2) before a word containing "conftest.", or (3) at the end.
  8380. # Note that $ac_compile itself does not contain backslashes and begins
  8381. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8382. # The option is referenced via a variable to avoid confusing sed.
  8383. lt_compile=`echo "$ac_compile" | $SED \
  8384. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8385. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8386. -e 's:$: $lt_compiler_flag:'`
  8387. (eval echo "\"\$as_me:9406: $lt_compile\"" >&5)
  8388. (eval "$lt_compile" 2>conftest.err)
  8389. ac_status=$?
  8390. cat conftest.err >&5
  8391. echo "$as_me:9410: \$? = $ac_status" >&5
  8392. if (exit $ac_status) && test -s "$ac_outfile"; then
  8393. # The compiler can only warn and ignore the option if not recognized
  8394. # So say no if there are warnings other than the usual output.
  8395. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8396. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8397. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8398. lt_prog_compiler_pic_works=yes
  8399. fi
  8400. fi
  8401. $rm conftest*
  8402. fi
  8403. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  8404. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  8405. if test x"$lt_prog_compiler_pic_works" = xyes; then
  8406. case $lt_prog_compiler_pic in
  8407. "" | " "*) ;;
  8408. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8409. esac
  8410. else
  8411. lt_prog_compiler_pic=
  8412. lt_prog_compiler_can_build_shared=no
  8413. fi
  8414. fi
  8415. case $host_os in
  8416. # For platforms which do not support PIC, -DPIC is meaningless:
  8417. *djgpp*)
  8418. lt_prog_compiler_pic=
  8419. ;;
  8420. *)
  8421. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8422. ;;
  8423. esac
  8424. #
  8425. # Check to make sure the static flag actually works.
  8426. #
  8427. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8428. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8429. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  8430. if test "${lt_prog_compiler_static_works+set}" = set; then
  8431. echo $ECHO_N "(cached) $ECHO_C" >&6
  8432. else
  8433. lt_prog_compiler_static_works=no
  8434. save_LDFLAGS="$LDFLAGS"
  8435. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8436. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  8437. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8438. # The linker can only warn and ignore the option if not recognized
  8439. # So say no if there are warnings
  8440. if test -s conftest.err; then
  8441. # Append any errors to the config.log.
  8442. cat conftest.err 1>&5
  8443. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  8444. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8445. if diff conftest.exp conftest.er2 >/dev/null; then
  8446. lt_prog_compiler_static_works=yes
  8447. fi
  8448. else
  8449. lt_prog_compiler_static_works=yes
  8450. fi
  8451. fi
  8452. $rm conftest*
  8453. LDFLAGS="$save_LDFLAGS"
  8454. fi
  8455. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  8456. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  8457. if test x"$lt_prog_compiler_static_works" = xyes; then
  8458. :
  8459. else
  8460. lt_prog_compiler_static=
  8461. fi
  8462. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8463. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  8464. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8465. echo $ECHO_N "(cached) $ECHO_C" >&6
  8466. else
  8467. lt_cv_prog_compiler_c_o=no
  8468. $rm -r conftest 2>/dev/null
  8469. mkdir conftest
  8470. cd conftest
  8471. mkdir out
  8472. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8473. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8474. # Insert the option either (1) after the last *FLAGS variable, or
  8475. # (2) before a word containing "conftest.", or (3) at the end.
  8476. # Note that $ac_compile itself does not contain backslashes and begins
  8477. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8478. lt_compile=`echo "$ac_compile" | $SED \
  8479. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8480. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8481. -e 's:$: $lt_compiler_flag:'`
  8482. (eval echo "\"\$as_me:9510: $lt_compile\"" >&5)
  8483. (eval "$lt_compile" 2>out/conftest.err)
  8484. ac_status=$?
  8485. cat out/conftest.err >&5
  8486. echo "$as_me:9514: \$? = $ac_status" >&5
  8487. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8488. then
  8489. # The compiler can only warn and ignore the option if not recognized
  8490. # So say no if there are warnings
  8491. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8492. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8493. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8494. lt_cv_prog_compiler_c_o=yes
  8495. fi
  8496. fi
  8497. chmod u+w . 2>&5
  8498. $rm conftest*
  8499. # SGI C++ compiler will create directory out/ii_files/ for
  8500. # template instantiation
  8501. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  8502. $rm out/* && rmdir out
  8503. cd ..
  8504. rmdir conftest
  8505. $rm conftest*
  8506. fi
  8507. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8508. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  8509. hard_links="nottested"
  8510. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8511. # do not overwrite the value of need_locks provided by the user
  8512. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  8513. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  8514. hard_links=yes
  8515. $rm conftest*
  8516. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8517. touch conftest.a
  8518. ln conftest.a conftest.b 2>&5 || hard_links=no
  8519. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8520. { echo "$as_me:$LINENO: result: $hard_links" >&5
  8521. echo "${ECHO_T}$hard_links" >&6; }
  8522. if test "$hard_links" = no; then
  8523. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8524. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8525. need_locks=warn
  8526. fi
  8527. else
  8528. need_locks=no
  8529. fi
  8530. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8531. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  8532. runpath_var=
  8533. allow_undefined_flag=
  8534. enable_shared_with_static_runtimes=no
  8535. archive_cmds=
  8536. archive_expsym_cmds=
  8537. old_archive_From_new_cmds=
  8538. old_archive_from_expsyms_cmds=
  8539. export_dynamic_flag_spec=
  8540. whole_archive_flag_spec=
  8541. thread_safe_flag_spec=
  8542. hardcode_libdir_flag_spec=
  8543. hardcode_libdir_flag_spec_ld=
  8544. hardcode_libdir_separator=
  8545. hardcode_direct=no
  8546. hardcode_minus_L=no
  8547. hardcode_shlibpath_var=unsupported
  8548. link_all_deplibs=unknown
  8549. hardcode_automatic=no
  8550. module_cmds=
  8551. module_expsym_cmds=
  8552. always_export_symbols=no
  8553. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8554. # include_expsyms should be a list of space-separated symbols to be *always*
  8555. # included in the symbol list
  8556. include_expsyms=
  8557. # exclude_expsyms can be an extended regexp of symbols to exclude
  8558. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8559. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8560. # as well as any symbol that contains `d'.
  8561. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  8562. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8563. # platforms (ab)use it in PIC code, but their linkers get confused if
  8564. # the symbol is explicitly referenced. Since portable code cannot
  8565. # rely on this symbol name, it's probably fine to never include it in
  8566. # preloaded symbol tables.
  8567. extract_expsyms_cmds=
  8568. # Just being paranoid about ensuring that cc_basename is set.
  8569. for cc_temp in $compiler""; do
  8570. case $cc_temp in
  8571. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8572. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8573. \-*) ;;
  8574. *) break;;
  8575. esac
  8576. done
  8577. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8578. case $host_os in
  8579. cygwin* | mingw* | pw32*)
  8580. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8581. # When not using gcc, we currently assume that we are using
  8582. # Microsoft Visual C++.
  8583. if test "$GCC" != yes; then
  8584. with_gnu_ld=no
  8585. fi
  8586. ;;
  8587. interix*)
  8588. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8589. with_gnu_ld=yes
  8590. ;;
  8591. openbsd*)
  8592. with_gnu_ld=no
  8593. ;;
  8594. esac
  8595. ld_shlibs=yes
  8596. if test "$with_gnu_ld" = yes; then
  8597. # If archive_cmds runs LD, not CC, wlarc should be empty
  8598. wlarc='${wl}'
  8599. # Set some defaults for GNU ld with shared library support. These
  8600. # are reset later if shared libraries are not supported. Putting them
  8601. # here allows them to be overridden if necessary.
  8602. runpath_var=LD_RUN_PATH
  8603. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  8604. export_dynamic_flag_spec='${wl}--export-dynamic'
  8605. # ancient GNU ld didn't support --whole-archive et. al.
  8606. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  8607. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8608. else
  8609. whole_archive_flag_spec=
  8610. fi
  8611. supports_anon_versioning=no
  8612. case `$LD -v 2>/dev/null` in
  8613. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8614. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8615. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8616. *\ 2.11.*) ;; # other 2.11 versions
  8617. *) supports_anon_versioning=yes ;;
  8618. esac
  8619. # See if GNU ld supports shared libraries.
  8620. case $host_os in
  8621. aix3* | aix4* | aix5*)
  8622. # On AIX/PPC, the GNU linker is very broken
  8623. if test "$host_cpu" != ia64; then
  8624. ld_shlibs=no
  8625. cat <<EOF 1>&2
  8626. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8627. *** to be unable to reliably create shared libraries on AIX.
  8628. *** Therefore, libtool is disabling shared libraries support. If you
  8629. *** really care for shared libraries, you may want to modify your PATH
  8630. *** so that a non-GNU linker is found, and then restart.
  8631. EOF
  8632. fi
  8633. ;;
  8634. amigaos*)
  8635. 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)'
  8636. hardcode_libdir_flag_spec='-L$libdir'
  8637. hardcode_minus_L=yes
  8638. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  8639. # that the semantics of dynamic libraries on AmigaOS, at least up
  8640. # to version 4, is to share data among multiple programs linked
  8641. # with the same dynamic library. Since this doesn't match the
  8642. # behavior of shared libraries on other platforms, we can't use
  8643. # them.
  8644. ld_shlibs=no
  8645. ;;
  8646. beos*)
  8647. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8648. allow_undefined_flag=unsupported
  8649. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8650. # support --undefined. This deserves some investigation. FIXME
  8651. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8652. else
  8653. ld_shlibs=no
  8654. fi
  8655. ;;
  8656. cygwin* | mingw* | pw32*)
  8657. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8658. # as there is no search path for DLLs.
  8659. hardcode_libdir_flag_spec='-L$libdir'
  8660. allow_undefined_flag=unsupported
  8661. always_export_symbols=no
  8662. enable_shared_with_static_runtimes=yes
  8663. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  8664. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  8665. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8666. # If the export-symbols file already is a .def file (1st line
  8667. # is EXPORTS), use it as is; otherwise, prepend...
  8668. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8669. cp $export_symbols $output_objdir/$soname.def;
  8670. else
  8671. echo EXPORTS > $output_objdir/$soname.def;
  8672. cat $export_symbols >> $output_objdir/$soname.def;
  8673. fi~
  8674. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8675. else
  8676. ld_shlibs=no
  8677. fi
  8678. ;;
  8679. interix3*)
  8680. hardcode_direct=no
  8681. hardcode_shlibpath_var=no
  8682. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8683. export_dynamic_flag_spec='${wl}-E'
  8684. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8685. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8686. # default) and relocated if they conflict, which is a slow very memory
  8687. # consuming and fragmenting process. To avoid this, we pick a random,
  8688. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8689. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8690. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8691. 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'
  8692. ;;
  8693. linux*)
  8694. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8695. tmp_addflag=
  8696. case $cc_basename,$host_cpu in
  8697. pgcc*) # Portland Group C compiler
  8698. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  8699. tmp_addflag=' $pic_flag'
  8700. ;;
  8701. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8702. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  8703. tmp_addflag=' $pic_flag -Mnomain' ;;
  8704. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8705. tmp_addflag=' -i_dynamic' ;;
  8706. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8707. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8708. ifc* | ifort*) # Intel Fortran compiler
  8709. tmp_addflag=' -nofor_main' ;;
  8710. esac
  8711. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8712. if test $supports_anon_versioning = yes; then
  8713. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  8714. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8715. $echo "local: *; };" >> $output_objdir/$libname.ver~
  8716. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8717. fi
  8718. else
  8719. ld_shlibs=no
  8720. fi
  8721. ;;
  8722. netbsd*)
  8723. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8724. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8725. wlarc=
  8726. else
  8727. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8728. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8729. fi
  8730. ;;
  8731. solaris*)
  8732. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  8733. ld_shlibs=no
  8734. cat <<EOF 1>&2
  8735. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8736. *** create shared libraries on Solaris systems. Therefore, libtool
  8737. *** is disabling shared libraries support. We urge you to upgrade GNU
  8738. *** binutils to release 2.9.1 or newer. Another option is to modify
  8739. *** your PATH or compiler configuration so that the native linker is
  8740. *** used, and then restart.
  8741. EOF
  8742. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8743. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8744. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8745. else
  8746. ld_shlibs=no
  8747. fi
  8748. ;;
  8749. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8750. case `$LD -v 2>&1` in
  8751. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8752. ld_shlibs=no
  8753. cat <<_LT_EOF 1>&2
  8754. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8755. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8756. *** is disabling shared libraries support. We urge you to upgrade GNU
  8757. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8758. *** your PATH or compiler configuration so that the native linker is
  8759. *** used, and then restart.
  8760. _LT_EOF
  8761. ;;
  8762. *)
  8763. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8764. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  8765. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  8766. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  8767. else
  8768. ld_shlibs=no
  8769. fi
  8770. ;;
  8771. esac
  8772. ;;
  8773. sunos4*)
  8774. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8775. wlarc=
  8776. hardcode_direct=yes
  8777. hardcode_shlibpath_var=no
  8778. ;;
  8779. *)
  8780. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8781. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8782. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8783. else
  8784. ld_shlibs=no
  8785. fi
  8786. ;;
  8787. esac
  8788. if test "$ld_shlibs" = no; then
  8789. runpath_var=
  8790. hardcode_libdir_flag_spec=
  8791. export_dynamic_flag_spec=
  8792. whole_archive_flag_spec=
  8793. fi
  8794. else
  8795. # PORTME fill in a description of your system's linker (not GNU ld)
  8796. case $host_os in
  8797. aix3*)
  8798. allow_undefined_flag=unsupported
  8799. always_export_symbols=yes
  8800. 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'
  8801. # Note: this linker hardcodes the directories in LIBPATH if there
  8802. # are no directories specified by -L.
  8803. hardcode_minus_L=yes
  8804. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8805. # Neither direct hardcoding nor static linking is supported with a
  8806. # broken collect2.
  8807. hardcode_direct=unsupported
  8808. fi
  8809. ;;
  8810. aix4* | aix5*)
  8811. if test "$host_cpu" = ia64; then
  8812. # On IA64, the linker does run time linking by default, so we don't
  8813. # have to do anything special.
  8814. aix_use_runtimelinking=no
  8815. exp_sym_flag='-Bexport'
  8816. no_entry_flag=""
  8817. else
  8818. # If we're using GNU nm, then we don't want the "-C" option.
  8819. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8820. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  8821. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  8822. else
  8823. 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'
  8824. fi
  8825. aix_use_runtimelinking=no
  8826. # Test if we are trying to use run time linking or normal
  8827. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8828. # need to do runtime linking.
  8829. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  8830. for ld_flag in $LDFLAGS; do
  8831. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8832. aix_use_runtimelinking=yes
  8833. break
  8834. fi
  8835. done
  8836. ;;
  8837. esac
  8838. exp_sym_flag='-bexport'
  8839. no_entry_flag='-bnoentry'
  8840. fi
  8841. # When large executables or shared objects are built, AIX ld can
  8842. # have problems creating the table of contents. If linking a library
  8843. # or program results in "error TOC overflow" add -mminimal-toc to
  8844. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8845. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8846. archive_cmds=''
  8847. hardcode_direct=yes
  8848. hardcode_libdir_separator=':'
  8849. link_all_deplibs=yes
  8850. if test "$GCC" = yes; then
  8851. case $host_os in aix4.[012]|aix4.[012].*)
  8852. # We only want to do this on AIX 4.2 and lower, the check
  8853. # below for broken collect2 doesn't work under 4.3+
  8854. collect2name=`${CC} -print-prog-name=collect2`
  8855. if test -f "$collect2name" && \
  8856. strings "$collect2name" | grep resolve_lib_name >/dev/null
  8857. then
  8858. # We have reworked collect2
  8859. hardcode_direct=yes
  8860. else
  8861. # We have old collect2
  8862. hardcode_direct=unsupported
  8863. # It fails to find uninstalled libraries when the uninstalled
  8864. # path is not listed in the libpath. Setting hardcode_minus_L
  8865. # to unsupported forces relinking
  8866. hardcode_minus_L=yes
  8867. hardcode_libdir_flag_spec='-L$libdir'
  8868. hardcode_libdir_separator=
  8869. fi
  8870. ;;
  8871. esac
  8872. shared_flag='-shared'
  8873. if test "$aix_use_runtimelinking" = yes; then
  8874. shared_flag="$shared_flag "'${wl}-G'
  8875. fi
  8876. else
  8877. # not using gcc
  8878. if test "$host_cpu" = ia64; then
  8879. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8880. # chokes on -Wl,-G. The following line is correct:
  8881. shared_flag='-G'
  8882. else
  8883. if test "$aix_use_runtimelinking" = yes; then
  8884. shared_flag='${wl}-G'
  8885. else
  8886. shared_flag='${wl}-bM:SRE'
  8887. fi
  8888. fi
  8889. fi
  8890. # It seems that -bexpall does not export symbols beginning with
  8891. # underscore (_), so it is better to generate a list of symbols to export.
  8892. always_export_symbols=yes
  8893. if test "$aix_use_runtimelinking" = yes; then
  8894. # Warning - without using the other runtime loading flags (-brtl),
  8895. # -berok will link without error, but may produce a broken library.
  8896. allow_undefined_flag='-berok'
  8897. # Determine the default libpath from the value encoded in an empty executable.
  8898. cat >conftest.$ac_ext <<_ACEOF
  8899. /* confdefs.h. */
  8900. _ACEOF
  8901. cat confdefs.h >>conftest.$ac_ext
  8902. cat >>conftest.$ac_ext <<_ACEOF
  8903. /* end confdefs.h. */
  8904. int
  8905. main ()
  8906. {
  8907. ;
  8908. return 0;
  8909. }
  8910. _ACEOF
  8911. rm -f conftest.$ac_objext conftest$ac_exeext
  8912. if { (ac_try="$ac_link"
  8913. case "(($ac_try" in
  8914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8915. *) ac_try_echo=$ac_try;;
  8916. esac
  8917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8918. (eval "$ac_link") 2>conftest.er1
  8919. ac_status=$?
  8920. grep -v '^ *+' conftest.er1 >conftest.err
  8921. rm -f conftest.er1
  8922. cat conftest.err >&5
  8923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8924. (exit $ac_status); } && {
  8925. test -z "$ac_c_werror_flag" ||
  8926. test ! -s conftest.err
  8927. } && test -s conftest$ac_exeext &&
  8928. $as_test_x conftest$ac_exeext; then
  8929. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8930. }'`
  8931. # Check for a 64-bit object if we didn't find anything.
  8932. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8933. }'`; fi
  8934. else
  8935. echo "$as_me: failed program was:" >&5
  8936. sed 's/^/| /' conftest.$ac_ext >&5
  8937. fi
  8938. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8939. conftest$ac_exeext conftest.$ac_ext
  8940. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8941. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8942. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8943. else
  8944. if test "$host_cpu" = ia64; then
  8945. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8946. allow_undefined_flag="-z nodefs"
  8947. 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"
  8948. else
  8949. # Determine the default libpath from the value encoded in an empty executable.
  8950. cat >conftest.$ac_ext <<_ACEOF
  8951. /* confdefs.h. */
  8952. _ACEOF
  8953. cat confdefs.h >>conftest.$ac_ext
  8954. cat >>conftest.$ac_ext <<_ACEOF
  8955. /* end confdefs.h. */
  8956. int
  8957. main ()
  8958. {
  8959. ;
  8960. return 0;
  8961. }
  8962. _ACEOF
  8963. rm -f conftest.$ac_objext conftest$ac_exeext
  8964. if { (ac_try="$ac_link"
  8965. case "(($ac_try" in
  8966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8967. *) ac_try_echo=$ac_try;;
  8968. esac
  8969. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8970. (eval "$ac_link") 2>conftest.er1
  8971. ac_status=$?
  8972. grep -v '^ *+' conftest.er1 >conftest.err
  8973. rm -f conftest.er1
  8974. cat conftest.err >&5
  8975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8976. (exit $ac_status); } && {
  8977. test -z "$ac_c_werror_flag" ||
  8978. test ! -s conftest.err
  8979. } && test -s conftest$ac_exeext &&
  8980. $as_test_x conftest$ac_exeext; then
  8981. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8982. }'`
  8983. # Check for a 64-bit object if we didn't find anything.
  8984. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8985. }'`; fi
  8986. else
  8987. echo "$as_me: failed program was:" >&5
  8988. sed 's/^/| /' conftest.$ac_ext >&5
  8989. fi
  8990. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8991. conftest$ac_exeext conftest.$ac_ext
  8992. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8993. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8994. # Warning - without using the other run time loading flags,
  8995. # -berok will link without error, but may produce a broken library.
  8996. no_undefined_flag=' ${wl}-bernotok'
  8997. allow_undefined_flag=' ${wl}-berok'
  8998. # Exported symbols can be pulled into shared objects from archives
  8999. whole_archive_flag_spec='$convenience'
  9000. archive_cmds_need_lc=yes
  9001. # This is similar to how AIX traditionally builds its shared libraries.
  9002. 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'
  9003. fi
  9004. fi
  9005. ;;
  9006. amigaos*)
  9007. 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)'
  9008. hardcode_libdir_flag_spec='-L$libdir'
  9009. hardcode_minus_L=yes
  9010. # see comment about different semantics on the GNU ld section
  9011. ld_shlibs=no
  9012. ;;
  9013. bsdi[45]*)
  9014. export_dynamic_flag_spec=-rdynamic
  9015. ;;
  9016. cygwin* | mingw* | pw32*)
  9017. # When not using gcc, we currently assume that we are using
  9018. # Microsoft Visual C++.
  9019. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9020. # no search path for DLLs.
  9021. hardcode_libdir_flag_spec=' '
  9022. allow_undefined_flag=unsupported
  9023. # Tell ltmain to make .lib files, not .a files.
  9024. libext=lib
  9025. # Tell ltmain to make .dll files, not .so files.
  9026. shrext_cmds=".dll"
  9027. # FIXME: Setting linknames here is a bad hack.
  9028. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9029. # The linker will automatically build a .lib file if we build a DLL.
  9030. old_archive_From_new_cmds='true'
  9031. # FIXME: Should let the user specify the lib program.
  9032. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  9033. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9034. enable_shared_with_static_runtimes=yes
  9035. ;;
  9036. darwin* | rhapsody*)
  9037. case $host_os in
  9038. rhapsody* | darwin1.[012])
  9039. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  9040. ;;
  9041. *) # Darwin 1.3 on
  9042. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9043. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9044. else
  9045. case ${MACOSX_DEPLOYMENT_TARGET} in
  9046. 10.[012])
  9047. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9048. ;;
  9049. 10.*)
  9050. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  9051. ;;
  9052. esac
  9053. fi
  9054. ;;
  9055. esac
  9056. archive_cmds_need_lc=no
  9057. hardcode_direct=no
  9058. hardcode_automatic=yes
  9059. hardcode_shlibpath_var=unsupported
  9060. whole_archive_flag_spec=''
  9061. link_all_deplibs=yes
  9062. if test "$GCC" = yes ; then
  9063. output_verbose_link_cmd='echo'
  9064. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9065. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9066. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9067. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9068. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9069. else
  9070. case $cc_basename in
  9071. xlc*)
  9072. output_verbose_link_cmd='echo'
  9073. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  9074. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9075. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9076. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9077. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9078. ;;
  9079. *)
  9080. ld_shlibs=no
  9081. ;;
  9082. esac
  9083. fi
  9084. ;;
  9085. dgux*)
  9086. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9087. hardcode_libdir_flag_spec='-L$libdir'
  9088. hardcode_shlibpath_var=no
  9089. ;;
  9090. freebsd1*)
  9091. ld_shlibs=no
  9092. ;;
  9093. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9094. # support. Future versions do this automatically, but an explicit c++rt0.o
  9095. # does not break anything, and helps significantly (at the cost of a little
  9096. # extra space).
  9097. freebsd2.2*)
  9098. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9099. hardcode_libdir_flag_spec='-R$libdir'
  9100. hardcode_direct=yes
  9101. hardcode_shlibpath_var=no
  9102. ;;
  9103. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9104. freebsd2*)
  9105. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9106. hardcode_direct=yes
  9107. hardcode_minus_L=yes
  9108. hardcode_shlibpath_var=no
  9109. ;;
  9110. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9111. freebsd* | kfreebsd*-gnu | dragonfly*)
  9112. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9113. hardcode_libdir_flag_spec='-R$libdir'
  9114. hardcode_direct=yes
  9115. hardcode_shlibpath_var=no
  9116. ;;
  9117. hpux9*)
  9118. if test "$GCC" = yes; then
  9119. archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9120. else
  9121. 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'
  9122. fi
  9123. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9124. hardcode_libdir_separator=:
  9125. hardcode_direct=yes
  9126. # hardcode_minus_L: Not really in the search PATH,
  9127. # but as the default location of the library.
  9128. hardcode_minus_L=yes
  9129. export_dynamic_flag_spec='${wl}-E'
  9130. ;;
  9131. hpux10*)
  9132. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9133. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9134. else
  9135. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9136. fi
  9137. if test "$with_gnu_ld" = no; then
  9138. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9139. hardcode_libdir_separator=:
  9140. hardcode_direct=yes
  9141. export_dynamic_flag_spec='${wl}-E'
  9142. # hardcode_minus_L: Not really in the search PATH,
  9143. # but as the default location of the library.
  9144. hardcode_minus_L=yes
  9145. fi
  9146. ;;
  9147. hpux11*)
  9148. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9149. case $host_cpu in
  9150. hppa*64*)
  9151. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9152. ;;
  9153. ia64*)
  9154. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9155. ;;
  9156. *)
  9157. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9158. ;;
  9159. esac
  9160. else
  9161. case $host_cpu in
  9162. hppa*64*)
  9163. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9164. ;;
  9165. ia64*)
  9166. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9167. ;;
  9168. *)
  9169. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9170. ;;
  9171. esac
  9172. fi
  9173. if test "$with_gnu_ld" = no; then
  9174. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9175. hardcode_libdir_separator=:
  9176. case $host_cpu in
  9177. hppa*64*|ia64*)
  9178. hardcode_libdir_flag_spec_ld='+b $libdir'
  9179. hardcode_direct=no
  9180. hardcode_shlibpath_var=no
  9181. ;;
  9182. *)
  9183. hardcode_direct=yes
  9184. export_dynamic_flag_spec='${wl}-E'
  9185. # hardcode_minus_L: Not really in the search PATH,
  9186. # but as the default location of the library.
  9187. hardcode_minus_L=yes
  9188. ;;
  9189. esac
  9190. fi
  9191. ;;
  9192. irix5* | irix6* | nonstopux*)
  9193. if test "$GCC" = yes; then
  9194. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9195. else
  9196. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  9197. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  9198. fi
  9199. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9200. hardcode_libdir_separator=:
  9201. link_all_deplibs=yes
  9202. ;;
  9203. netbsd*)
  9204. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9205. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9206. else
  9207. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9208. fi
  9209. hardcode_libdir_flag_spec='-R$libdir'
  9210. hardcode_direct=yes
  9211. hardcode_shlibpath_var=no
  9212. ;;
  9213. newsos6)
  9214. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9215. hardcode_direct=yes
  9216. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9217. hardcode_libdir_separator=:
  9218. hardcode_shlibpath_var=no
  9219. ;;
  9220. openbsd*)
  9221. hardcode_direct=yes
  9222. hardcode_shlibpath_var=no
  9223. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9224. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9225. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9226. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9227. export_dynamic_flag_spec='${wl}-E'
  9228. else
  9229. case $host_os in
  9230. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9231. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9232. hardcode_libdir_flag_spec='-R$libdir'
  9233. ;;
  9234. *)
  9235. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9236. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9237. ;;
  9238. esac
  9239. fi
  9240. ;;
  9241. os2*)
  9242. hardcode_libdir_flag_spec='-L$libdir'
  9243. hardcode_minus_L=yes
  9244. allow_undefined_flag=unsupported
  9245. 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'
  9246. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9247. ;;
  9248. osf3*)
  9249. if test "$GCC" = yes; then
  9250. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9251. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9252. else
  9253. allow_undefined_flag=' -expect_unresolved \*'
  9254. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  9255. fi
  9256. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9257. hardcode_libdir_separator=:
  9258. ;;
  9259. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9260. if test "$GCC" = yes; then
  9261. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9262. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9263. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9264. else
  9265. allow_undefined_flag=' -expect_unresolved \*'
  9266. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  9267. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  9268. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  9269. # Both c and cxx compiler support -rpath directly
  9270. hardcode_libdir_flag_spec='-rpath $libdir'
  9271. fi
  9272. hardcode_libdir_separator=:
  9273. ;;
  9274. solaris*)
  9275. no_undefined_flag=' -z text'
  9276. if test "$GCC" = yes; then
  9277. wlarc='${wl}'
  9278. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9279. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9280. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  9281. else
  9282. wlarc=''
  9283. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9284. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9285. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  9286. fi
  9287. hardcode_libdir_flag_spec='-R$libdir'
  9288. hardcode_shlibpath_var=no
  9289. case $host_os in
  9290. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9291. *)
  9292. # The compiler driver will combine linker options so we
  9293. # cannot just pass the convience library names through
  9294. # without $wl, iff we do not link with $LD.
  9295. # Luckily, gcc supports the same syntax we need for Sun Studio.
  9296. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9297. case $wlarc in
  9298. '')
  9299. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  9300. *)
  9301. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  9302. esac ;;
  9303. esac
  9304. link_all_deplibs=yes
  9305. ;;
  9306. sunos4*)
  9307. if test "x$host_vendor" = xsequent; then
  9308. # Use $CC to link under sequent, because it throws in some extra .o
  9309. # files that make .init and .fini sections work.
  9310. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9311. else
  9312. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9313. fi
  9314. hardcode_libdir_flag_spec='-L$libdir'
  9315. hardcode_direct=yes
  9316. hardcode_minus_L=yes
  9317. hardcode_shlibpath_var=no
  9318. ;;
  9319. sysv4)
  9320. case $host_vendor in
  9321. sni)
  9322. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9323. hardcode_direct=yes # is this really true???
  9324. ;;
  9325. siemens)
  9326. ## LD is ld it makes a PLAMLIB
  9327. ## CC just makes a GrossModule.
  9328. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9329. reload_cmds='$CC -r -o $output$reload_objs'
  9330. hardcode_direct=no
  9331. ;;
  9332. motorola)
  9333. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9334. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9335. ;;
  9336. esac
  9337. runpath_var='LD_RUN_PATH'
  9338. hardcode_shlibpath_var=no
  9339. ;;
  9340. sysv4.3*)
  9341. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9342. hardcode_shlibpath_var=no
  9343. export_dynamic_flag_spec='-Bexport'
  9344. ;;
  9345. sysv4*MP*)
  9346. if test -d /usr/nec; then
  9347. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9348. hardcode_shlibpath_var=no
  9349. runpath_var=LD_RUN_PATH
  9350. hardcode_runpath_var=yes
  9351. ld_shlibs=yes
  9352. fi
  9353. ;;
  9354. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  9355. no_undefined_flag='${wl}-z,text'
  9356. archive_cmds_need_lc=no
  9357. hardcode_shlibpath_var=no
  9358. runpath_var='LD_RUN_PATH'
  9359. if test "$GCC" = yes; then
  9360. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9361. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9362. else
  9363. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9364. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9365. fi
  9366. ;;
  9367. sysv5* | sco3.2v5* | sco5v6*)
  9368. # Note: We can NOT use -z defs as we might desire, because we do not
  9369. # link with -lc, and that would cause any symbols used from libc to
  9370. # always be unresolved, which means just about no library would
  9371. # ever link correctly. If we're not using GNU ld we use -z text
  9372. # though, which does catch some bad symbols but isn't as heavy-handed
  9373. # as -z defs.
  9374. no_undefined_flag='${wl}-z,text'
  9375. allow_undefined_flag='${wl}-z,nodefs'
  9376. archive_cmds_need_lc=no
  9377. hardcode_shlibpath_var=no
  9378. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  9379. hardcode_libdir_separator=':'
  9380. link_all_deplibs=yes
  9381. export_dynamic_flag_spec='${wl}-Bexport'
  9382. runpath_var='LD_RUN_PATH'
  9383. if test "$GCC" = yes; then
  9384. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9385. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9386. else
  9387. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9388. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9389. fi
  9390. ;;
  9391. uts4*)
  9392. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9393. hardcode_libdir_flag_spec='-L$libdir'
  9394. hardcode_shlibpath_var=no
  9395. ;;
  9396. *)
  9397. ld_shlibs=no
  9398. ;;
  9399. esac
  9400. fi
  9401. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  9402. echo "${ECHO_T}$ld_shlibs" >&6; }
  9403. test "$ld_shlibs" = no && can_build_shared=no
  9404. #
  9405. # Do we need to explicitly link libc?
  9406. #
  9407. case "x$archive_cmds_need_lc" in
  9408. x|xyes)
  9409. # Assume -lc should be added
  9410. archive_cmds_need_lc=yes
  9411. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9412. case $archive_cmds in
  9413. *'~'*)
  9414. # FIXME: we may have to deal with multi-command sequences.
  9415. ;;
  9416. '$CC '*)
  9417. # Test whether the compiler implicitly links with -lc since on some
  9418. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9419. # to ld, don't add -lc before -lgcc.
  9420. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9421. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  9422. $rm conftest*
  9423. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9424. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9425. (eval $ac_compile) 2>&5
  9426. ac_status=$?
  9427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9428. (exit $ac_status); } 2>conftest.err; then
  9429. soname=conftest
  9430. lib=conftest
  9431. libobjs=conftest.$ac_objext
  9432. deplibs=
  9433. wl=$lt_prog_compiler_wl
  9434. pic_flag=$lt_prog_compiler_pic
  9435. compiler_flags=-v
  9436. linker_flags=-v
  9437. verstring=
  9438. output_objdir=.
  9439. libname=conftest
  9440. lt_save_allow_undefined_flag=$allow_undefined_flag
  9441. allow_undefined_flag=
  9442. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9443. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9444. ac_status=$?
  9445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9446. (exit $ac_status); }
  9447. then
  9448. archive_cmds_need_lc=no
  9449. else
  9450. archive_cmds_need_lc=yes
  9451. fi
  9452. allow_undefined_flag=$lt_save_allow_undefined_flag
  9453. else
  9454. cat conftest.err 1>&5
  9455. fi
  9456. $rm conftest*
  9457. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  9458. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  9459. ;;
  9460. esac
  9461. fi
  9462. ;;
  9463. esac
  9464. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9465. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  9466. library_names_spec=
  9467. libname_spec='lib$name'
  9468. soname_spec=
  9469. shrext_cmds=".so"
  9470. postinstall_cmds=
  9471. postuninstall_cmds=
  9472. finish_cmds=
  9473. finish_eval=
  9474. shlibpath_var=
  9475. shlibpath_overrides_runpath=unknown
  9476. version_type=none
  9477. dynamic_linker="$host_os ld.so"
  9478. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9479. if test "$GCC" = yes; then
  9480. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9481. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  9482. # if the path contains ";" then we assume it to be the separator
  9483. # otherwise default to the standard path separator (i.e. ":") - it is
  9484. # assumed that no part of a normal pathname contains ";" but that should
  9485. # okay in the real world where ";" in dirpaths is itself problematic.
  9486. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9487. else
  9488. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9489. fi
  9490. else
  9491. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9492. fi
  9493. need_lib_prefix=unknown
  9494. hardcode_into_libs=no
  9495. # when you set need_version to no, make sure it does not cause -set_version
  9496. # flags to be left without arguments
  9497. need_version=unknown
  9498. case $host_os in
  9499. aix3*)
  9500. version_type=linux
  9501. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9502. shlibpath_var=LIBPATH
  9503. # AIX 3 has no versioning support, so we append a major version to the name.
  9504. soname_spec='${libname}${release}${shared_ext}$major'
  9505. ;;
  9506. aix4* | aix5*)
  9507. version_type=linux
  9508. need_lib_prefix=no
  9509. need_version=no
  9510. hardcode_into_libs=yes
  9511. if test "$host_cpu" = ia64; then
  9512. # AIX 5 supports IA64
  9513. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9514. shlibpath_var=LD_LIBRARY_PATH
  9515. else
  9516. # With GCC up to 2.95.x, collect2 would create an import file
  9517. # for dependence libraries. The import file would start with
  9518. # the line `#! .'. This would cause the generated library to
  9519. # depend on `.', always an invalid library. This was fixed in
  9520. # development snapshots of GCC prior to 3.0.
  9521. case $host_os in
  9522. aix4 | aix4.[01] | aix4.[01].*)
  9523. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9524. echo ' yes '
  9525. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  9526. :
  9527. else
  9528. can_build_shared=no
  9529. fi
  9530. ;;
  9531. esac
  9532. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9533. # soname into executable. Probably we can add versioning support to
  9534. # collect2, so additional links can be useful in future.
  9535. if test "$aix_use_runtimelinking" = yes; then
  9536. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9537. # instead of lib<name>.a to let people know that these are not
  9538. # typical AIX shared libraries.
  9539. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9540. else
  9541. # We preserve .a as extension for shared libraries through AIX4.2
  9542. # and later when we are not doing run time linking.
  9543. library_names_spec='${libname}${release}.a $libname.a'
  9544. soname_spec='${libname}${release}${shared_ext}$major'
  9545. fi
  9546. shlibpath_var=LIBPATH
  9547. fi
  9548. ;;
  9549. amigaos*)
  9550. library_names_spec='$libname.ixlibrary $libname.a'
  9551. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9552. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9553. ;;
  9554. beos*)
  9555. library_names_spec='${libname}${shared_ext}'
  9556. dynamic_linker="$host_os ld.so"
  9557. shlibpath_var=LIBRARY_PATH
  9558. ;;
  9559. bsdi[45]*)
  9560. version_type=linux
  9561. need_version=no
  9562. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9563. soname_spec='${libname}${release}${shared_ext}$major'
  9564. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9565. shlibpath_var=LD_LIBRARY_PATH
  9566. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9567. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9568. # the default ld.so.conf also contains /usr/contrib/lib and
  9569. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9570. # libtool to hard-code these into programs
  9571. ;;
  9572. cygwin* | mingw* | pw32*)
  9573. version_type=windows
  9574. shrext_cmds=".dll"
  9575. need_version=no
  9576. need_lib_prefix=no
  9577. case $GCC,$host_os in
  9578. yes,cygwin* | yes,mingw* | yes,pw32*)
  9579. library_names_spec='$libname.dll.a'
  9580. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9581. postinstall_cmds='base_file=`basename \${file}`~
  9582. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  9583. dldir=$destdir/`dirname \$dlpath`~
  9584. test -d \$dldir || mkdir -p \$dldir~
  9585. $install_prog $dir/$dlname \$dldir/$dlname~
  9586. chmod a+x \$dldir/$dlname'
  9587. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9588. dlpath=$dir/\$dldll~
  9589. $rm \$dlpath'
  9590. shlibpath_overrides_runpath=yes
  9591. case $host_os in
  9592. cygwin*)
  9593. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9594. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9595. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9596. ;;
  9597. mingw*)
  9598. # MinGW DLLs use traditional 'lib' prefix
  9599. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9600. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9601. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  9602. # It is most probably a Windows format PATH printed by
  9603. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9604. # path with ; separators, and with drive letters. We can handle the
  9605. # drive letters (cygwin fileutils understands them), so leave them,
  9606. # especially as we might pass files found there to a mingw objdump,
  9607. # which wouldn't understand a cygwinified path. Ahh.
  9608. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9609. else
  9610. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9611. fi
  9612. ;;
  9613. pw32*)
  9614. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9615. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9616. ;;
  9617. esac
  9618. ;;
  9619. *)
  9620. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9621. ;;
  9622. esac
  9623. dynamic_linker='Win32 ld.exe'
  9624. # FIXME: first we should search . and the directory the executable is in
  9625. shlibpath_var=PATH
  9626. ;;
  9627. darwin* | rhapsody*)
  9628. dynamic_linker="$host_os dyld"
  9629. version_type=darwin
  9630. need_lib_prefix=no
  9631. need_version=no
  9632. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9633. soname_spec='${libname}${release}${major}$shared_ext'
  9634. shlibpath_overrides_runpath=yes
  9635. shlibpath_var=DYLD_LIBRARY_PATH
  9636. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9637. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  9638. if test "$GCC" = yes; then
  9639. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  9640. else
  9641. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  9642. fi
  9643. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9644. ;;
  9645. dgux*)
  9646. version_type=linux
  9647. need_lib_prefix=no
  9648. need_version=no
  9649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9650. soname_spec='${libname}${release}${shared_ext}$major'
  9651. shlibpath_var=LD_LIBRARY_PATH
  9652. ;;
  9653. freebsd1*)
  9654. dynamic_linker=no
  9655. ;;
  9656. kfreebsd*-gnu)
  9657. version_type=linux
  9658. need_lib_prefix=no
  9659. need_version=no
  9660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9661. soname_spec='${libname}${release}${shared_ext}$major'
  9662. shlibpath_var=LD_LIBRARY_PATH
  9663. shlibpath_overrides_runpath=no
  9664. hardcode_into_libs=yes
  9665. dynamic_linker='GNU ld.so'
  9666. ;;
  9667. freebsd* | dragonfly*)
  9668. # DragonFly does not have aout. When/if they implement a new
  9669. # versioning mechanism, adjust this.
  9670. if test -x /usr/bin/objformat; then
  9671. objformat=`/usr/bin/objformat`
  9672. else
  9673. case $host_os in
  9674. freebsd[123]*) objformat=aout ;;
  9675. *) objformat=elf ;;
  9676. esac
  9677. fi
  9678. version_type=freebsd-$objformat
  9679. case $version_type in
  9680. freebsd-elf*)
  9681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9682. need_version=no
  9683. need_lib_prefix=no
  9684. ;;
  9685. freebsd-*)
  9686. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9687. need_version=yes
  9688. ;;
  9689. esac
  9690. shlibpath_var=LD_LIBRARY_PATH
  9691. case $host_os in
  9692. freebsd2*)
  9693. shlibpath_overrides_runpath=yes
  9694. ;;
  9695. freebsd3.[01]* | freebsdelf3.[01]*)
  9696. shlibpath_overrides_runpath=yes
  9697. hardcode_into_libs=yes
  9698. ;;
  9699. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9700. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9701. shlibpath_overrides_runpath=no
  9702. hardcode_into_libs=yes
  9703. ;;
  9704. freebsd*) # from 4.6 on
  9705. shlibpath_overrides_runpath=yes
  9706. hardcode_into_libs=yes
  9707. ;;
  9708. esac
  9709. ;;
  9710. gnu*)
  9711. version_type=linux
  9712. need_lib_prefix=no
  9713. need_version=no
  9714. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9715. soname_spec='${libname}${release}${shared_ext}$major'
  9716. shlibpath_var=LD_LIBRARY_PATH
  9717. hardcode_into_libs=yes
  9718. ;;
  9719. hpux9* | hpux10* | hpux11*)
  9720. # Give a soname corresponding to the major version so that dld.sl refuses to
  9721. # link against other versions.
  9722. version_type=sunos
  9723. need_lib_prefix=no
  9724. need_version=no
  9725. case $host_cpu in
  9726. ia64*)
  9727. shrext_cmds='.so'
  9728. hardcode_into_libs=yes
  9729. dynamic_linker="$host_os dld.so"
  9730. shlibpath_var=LD_LIBRARY_PATH
  9731. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9733. soname_spec='${libname}${release}${shared_ext}$major'
  9734. if test "X$HPUX_IA64_MODE" = X32; then
  9735. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9736. else
  9737. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9738. fi
  9739. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9740. ;;
  9741. hppa*64*)
  9742. shrext_cmds='.sl'
  9743. hardcode_into_libs=yes
  9744. dynamic_linker="$host_os dld.sl"
  9745. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9746. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9748. soname_spec='${libname}${release}${shared_ext}$major'
  9749. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9750. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9751. ;;
  9752. *)
  9753. shrext_cmds='.sl'
  9754. dynamic_linker="$host_os dld.sl"
  9755. shlibpath_var=SHLIB_PATH
  9756. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9758. soname_spec='${libname}${release}${shared_ext}$major'
  9759. ;;
  9760. esac
  9761. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9762. postinstall_cmds='chmod 555 $lib'
  9763. ;;
  9764. interix3*)
  9765. version_type=linux
  9766. need_lib_prefix=no
  9767. need_version=no
  9768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9769. soname_spec='${libname}${release}${shared_ext}$major'
  9770. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9771. shlibpath_var=LD_LIBRARY_PATH
  9772. shlibpath_overrides_runpath=no
  9773. hardcode_into_libs=yes
  9774. ;;
  9775. irix5* | irix6* | nonstopux*)
  9776. case $host_os in
  9777. nonstopux*) version_type=nonstopux ;;
  9778. *)
  9779. if test "$lt_cv_prog_gnu_ld" = yes; then
  9780. version_type=linux
  9781. else
  9782. version_type=irix
  9783. fi ;;
  9784. esac
  9785. need_lib_prefix=no
  9786. need_version=no
  9787. soname_spec='${libname}${release}${shared_ext}$major'
  9788. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9789. case $host_os in
  9790. irix5* | nonstopux*)
  9791. libsuff= shlibsuff=
  9792. ;;
  9793. *)
  9794. case $LD in # libtool.m4 will add one of these switches to LD
  9795. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9796. libsuff= shlibsuff= libmagic=32-bit;;
  9797. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9798. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9799. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9800. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9801. *) libsuff= shlibsuff= libmagic=never-match;;
  9802. esac
  9803. ;;
  9804. esac
  9805. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9806. shlibpath_overrides_runpath=no
  9807. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9808. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9809. hardcode_into_libs=yes
  9810. ;;
  9811. # No shared lib support for Linux oldld, aout, or coff.
  9812. linux*oldld* | linux*aout* | linux*coff*)
  9813. dynamic_linker=no
  9814. ;;
  9815. # This must be Linux ELF.
  9816. linux*)
  9817. version_type=linux
  9818. need_lib_prefix=no
  9819. need_version=no
  9820. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9821. soname_spec='${libname}${release}${shared_ext}$major'
  9822. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9823. shlibpath_var=LD_LIBRARY_PATH
  9824. shlibpath_overrides_runpath=no
  9825. # This implies no fast_install, which is unacceptable.
  9826. # Some rework will be needed to allow for fast_install
  9827. # before this can be enabled.
  9828. hardcode_into_libs=yes
  9829. # Append ld.so.conf contents to the search path
  9830. if test -f /etc/ld.so.conf; then
  9831. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  9832. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9833. fi
  9834. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9835. # powerpc, because MkLinux only supported shared libraries with the
  9836. # GNU dynamic linker. Since this was broken with cross compilers,
  9837. # most powerpc-linux boxes support dynamic linking these days and
  9838. # people can always --disable-shared, the test was removed, and we
  9839. # assume the GNU/Linux dynamic linker is in use.
  9840. dynamic_linker='GNU/Linux ld.so'
  9841. ;;
  9842. knetbsd*-gnu)
  9843. version_type=linux
  9844. need_lib_prefix=no
  9845. need_version=no
  9846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9847. soname_spec='${libname}${release}${shared_ext}$major'
  9848. shlibpath_var=LD_LIBRARY_PATH
  9849. shlibpath_overrides_runpath=no
  9850. hardcode_into_libs=yes
  9851. dynamic_linker='GNU ld.so'
  9852. ;;
  9853. netbsd*)
  9854. version_type=sunos
  9855. need_lib_prefix=no
  9856. need_version=no
  9857. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9859. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9860. dynamic_linker='NetBSD (a.out) ld.so'
  9861. else
  9862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9863. soname_spec='${libname}${release}${shared_ext}$major'
  9864. dynamic_linker='NetBSD ld.elf_so'
  9865. fi
  9866. shlibpath_var=LD_LIBRARY_PATH
  9867. shlibpath_overrides_runpath=yes
  9868. hardcode_into_libs=yes
  9869. ;;
  9870. newsos6)
  9871. version_type=linux
  9872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9873. shlibpath_var=LD_LIBRARY_PATH
  9874. shlibpath_overrides_runpath=yes
  9875. ;;
  9876. nto-qnx*)
  9877. version_type=linux
  9878. need_lib_prefix=no
  9879. need_version=no
  9880. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9881. soname_spec='${libname}${release}${shared_ext}$major'
  9882. shlibpath_var=LD_LIBRARY_PATH
  9883. shlibpath_overrides_runpath=yes
  9884. ;;
  9885. openbsd*)
  9886. version_type=sunos
  9887. sys_lib_dlsearch_path_spec="/usr/lib"
  9888. need_lib_prefix=no
  9889. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9890. case $host_os in
  9891. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9892. *) need_version=no ;;
  9893. esac
  9894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9895. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9896. shlibpath_var=LD_LIBRARY_PATH
  9897. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9898. case $host_os in
  9899. openbsd2.[89] | openbsd2.[89].*)
  9900. shlibpath_overrides_runpath=no
  9901. ;;
  9902. *)
  9903. shlibpath_overrides_runpath=yes
  9904. ;;
  9905. esac
  9906. else
  9907. shlibpath_overrides_runpath=yes
  9908. fi
  9909. ;;
  9910. os2*)
  9911. libname_spec='$name'
  9912. shrext_cmds=".dll"
  9913. need_lib_prefix=no
  9914. library_names_spec='$libname${shared_ext} $libname.a'
  9915. dynamic_linker='OS/2 ld.exe'
  9916. shlibpath_var=LIBPATH
  9917. ;;
  9918. osf3* | osf4* | osf5*)
  9919. version_type=osf
  9920. need_lib_prefix=no
  9921. need_version=no
  9922. soname_spec='${libname}${release}${shared_ext}$major'
  9923. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9924. shlibpath_var=LD_LIBRARY_PATH
  9925. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9926. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9927. ;;
  9928. solaris*)
  9929. version_type=linux
  9930. need_lib_prefix=no
  9931. need_version=no
  9932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9933. soname_spec='${libname}${release}${shared_ext}$major'
  9934. shlibpath_var=LD_LIBRARY_PATH
  9935. shlibpath_overrides_runpath=yes
  9936. hardcode_into_libs=yes
  9937. # ldd complains unless libraries are executable
  9938. postinstall_cmds='chmod +x $lib'
  9939. ;;
  9940. sunos4*)
  9941. version_type=sunos
  9942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9943. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9944. shlibpath_var=LD_LIBRARY_PATH
  9945. shlibpath_overrides_runpath=yes
  9946. if test "$with_gnu_ld" = yes; then
  9947. need_lib_prefix=no
  9948. fi
  9949. need_version=yes
  9950. ;;
  9951. sysv4 | sysv4.3*)
  9952. version_type=linux
  9953. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9954. soname_spec='${libname}${release}${shared_ext}$major'
  9955. shlibpath_var=LD_LIBRARY_PATH
  9956. case $host_vendor in
  9957. sni)
  9958. shlibpath_overrides_runpath=no
  9959. need_lib_prefix=no
  9960. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9961. runpath_var=LD_RUN_PATH
  9962. ;;
  9963. siemens)
  9964. need_lib_prefix=no
  9965. ;;
  9966. motorola)
  9967. need_lib_prefix=no
  9968. need_version=no
  9969. shlibpath_overrides_runpath=no
  9970. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9971. ;;
  9972. esac
  9973. ;;
  9974. sysv4*MP*)
  9975. if test -d /usr/nec ;then
  9976. version_type=linux
  9977. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9978. soname_spec='$libname${shared_ext}.$major'
  9979. shlibpath_var=LD_LIBRARY_PATH
  9980. fi
  9981. ;;
  9982. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9983. version_type=freebsd-elf
  9984. need_lib_prefix=no
  9985. need_version=no
  9986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9987. soname_spec='${libname}${release}${shared_ext}$major'
  9988. shlibpath_var=LD_LIBRARY_PATH
  9989. hardcode_into_libs=yes
  9990. if test "$with_gnu_ld" = yes; then
  9991. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9992. shlibpath_overrides_runpath=no
  9993. else
  9994. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9995. shlibpath_overrides_runpath=yes
  9996. case $host_os in
  9997. sco3.2v5*)
  9998. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9999. ;;
  10000. esac
  10001. fi
  10002. sys_lib_dlsearch_path_spec='/usr/lib'
  10003. ;;
  10004. uts4*)
  10005. version_type=linux
  10006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10007. soname_spec='${libname}${release}${shared_ext}$major'
  10008. shlibpath_var=LD_LIBRARY_PATH
  10009. ;;
  10010. *)
  10011. dynamic_linker=no
  10012. ;;
  10013. esac
  10014. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10015. echo "${ECHO_T}$dynamic_linker" >&6; }
  10016. test "$dynamic_linker" = no && can_build_shared=no
  10017. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10018. if test "$GCC" = yes; then
  10019. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10020. fi
  10021. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10022. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  10023. hardcode_action=
  10024. if test -n "$hardcode_libdir_flag_spec" || \
  10025. test -n "$runpath_var" || \
  10026. test "X$hardcode_automatic" = "Xyes" ; then
  10027. # We can hardcode non-existant directories.
  10028. if test "$hardcode_direct" != no &&
  10029. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10030. # have to relink, otherwise we might link with an installed library
  10031. # when we should be linking with a yet-to-be-installed one
  10032. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10033. test "$hardcode_minus_L" != no; then
  10034. # Linking always hardcodes the temporary library directory.
  10035. hardcode_action=relink
  10036. else
  10037. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10038. hardcode_action=immediate
  10039. fi
  10040. else
  10041. # We cannot hardcode anything, or else we can only hardcode existing
  10042. # directories.
  10043. hardcode_action=unsupported
  10044. fi
  10045. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  10046. echo "${ECHO_T}$hardcode_action" >&6; }
  10047. if test "$hardcode_action" = relink; then
  10048. # Fast installation is not supported
  10049. enable_fast_install=no
  10050. elif test "$shlibpath_overrides_runpath" = yes ||
  10051. test "$enable_shared" = no; then
  10052. # Fast installation is not necessary
  10053. enable_fast_install=needless
  10054. fi
  10055. striplib=
  10056. old_striplib=
  10057. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  10058. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  10059. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  10060. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10061. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10062. { echo "$as_me:$LINENO: result: yes" >&5
  10063. echo "${ECHO_T}yes" >&6; }
  10064. else
  10065. # FIXME - insert some real tests, host_os isn't really good enough
  10066. case $host_os in
  10067. darwin*)
  10068. if test -n "$STRIP" ; then
  10069. striplib="$STRIP -x"
  10070. { echo "$as_me:$LINENO: result: yes" >&5
  10071. echo "${ECHO_T}yes" >&6; }
  10072. else
  10073. { echo "$as_me:$LINENO: result: no" >&5
  10074. echo "${ECHO_T}no" >&6; }
  10075. fi
  10076. ;;
  10077. *)
  10078. { echo "$as_me:$LINENO: result: no" >&5
  10079. echo "${ECHO_T}no" >&6; }
  10080. ;;
  10081. esac
  10082. fi
  10083. if test "x$enable_dlopen" != xyes; then
  10084. enable_dlopen=unknown
  10085. enable_dlopen_self=unknown
  10086. enable_dlopen_self_static=unknown
  10087. else
  10088. lt_cv_dlopen=no
  10089. lt_cv_dlopen_libs=
  10090. case $host_os in
  10091. beos*)
  10092. lt_cv_dlopen="load_add_on"
  10093. lt_cv_dlopen_libs=
  10094. lt_cv_dlopen_self=yes
  10095. ;;
  10096. mingw* | pw32*)
  10097. lt_cv_dlopen="LoadLibrary"
  10098. lt_cv_dlopen_libs=
  10099. ;;
  10100. cygwin*)
  10101. lt_cv_dlopen="dlopen"
  10102. lt_cv_dlopen_libs=
  10103. ;;
  10104. darwin*)
  10105. # if libdl is installed we need to link against it
  10106. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10107. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  10108. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10109. echo $ECHO_N "(cached) $ECHO_C" >&6
  10110. else
  10111. ac_check_lib_save_LIBS=$LIBS
  10112. LIBS="-ldl $LIBS"
  10113. cat >conftest.$ac_ext <<_ACEOF
  10114. /* confdefs.h. */
  10115. _ACEOF
  10116. cat confdefs.h >>conftest.$ac_ext
  10117. cat >>conftest.$ac_ext <<_ACEOF
  10118. /* end confdefs.h. */
  10119. /* Override any GCC internal prototype to avoid an error.
  10120. Use char because int might match the return type of a GCC
  10121. builtin and then its argument prototype would still apply. */
  10122. #ifdef __cplusplus
  10123. extern "C"
  10124. #endif
  10125. char dlopen ();
  10126. int
  10127. main ()
  10128. {
  10129. return dlopen ();
  10130. ;
  10131. return 0;
  10132. }
  10133. _ACEOF
  10134. rm -f conftest.$ac_objext conftest$ac_exeext
  10135. if { (ac_try="$ac_link"
  10136. case "(($ac_try" in
  10137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10138. *) ac_try_echo=$ac_try;;
  10139. esac
  10140. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10141. (eval "$ac_link") 2>conftest.er1
  10142. ac_status=$?
  10143. grep -v '^ *+' conftest.er1 >conftest.err
  10144. rm -f conftest.er1
  10145. cat conftest.err >&5
  10146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10147. (exit $ac_status); } && {
  10148. test -z "$ac_c_werror_flag" ||
  10149. test ! -s conftest.err
  10150. } && test -s conftest$ac_exeext &&
  10151. $as_test_x conftest$ac_exeext; then
  10152. ac_cv_lib_dl_dlopen=yes
  10153. else
  10154. echo "$as_me: failed program was:" >&5
  10155. sed 's/^/| /' conftest.$ac_ext >&5
  10156. ac_cv_lib_dl_dlopen=no
  10157. fi
  10158. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10159. conftest$ac_exeext conftest.$ac_ext
  10160. LIBS=$ac_check_lib_save_LIBS
  10161. fi
  10162. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10163. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  10164. if test $ac_cv_lib_dl_dlopen = yes; then
  10165. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10166. else
  10167. lt_cv_dlopen="dyld"
  10168. lt_cv_dlopen_libs=
  10169. lt_cv_dlopen_self=yes
  10170. fi
  10171. ;;
  10172. *)
  10173. { echo "$as_me:$LINENO: checking for shl_load" >&5
  10174. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  10175. if test "${ac_cv_func_shl_load+set}" = set; then
  10176. echo $ECHO_N "(cached) $ECHO_C" >&6
  10177. else
  10178. cat >conftest.$ac_ext <<_ACEOF
  10179. /* confdefs.h. */
  10180. _ACEOF
  10181. cat confdefs.h >>conftest.$ac_ext
  10182. cat >>conftest.$ac_ext <<_ACEOF
  10183. /* end confdefs.h. */
  10184. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  10185. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10186. #define shl_load innocuous_shl_load
  10187. /* System header to define __stub macros and hopefully few prototypes,
  10188. which can conflict with char shl_load (); below.
  10189. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10190. <limits.h> exists even on freestanding compilers. */
  10191. #ifdef __STDC__
  10192. # include <limits.h>
  10193. #else
  10194. # include <assert.h>
  10195. #endif
  10196. #undef shl_load
  10197. /* Override any GCC internal prototype to avoid an error.
  10198. Use char because int might match the return type of a GCC
  10199. builtin and then its argument prototype would still apply. */
  10200. #ifdef __cplusplus
  10201. extern "C"
  10202. #endif
  10203. char shl_load ();
  10204. /* The GNU C library defines this for functions which it implements
  10205. to always fail with ENOSYS. Some functions are actually named
  10206. something starting with __ and the normal name is an alias. */
  10207. #if defined __stub_shl_load || defined __stub___shl_load
  10208. choke me
  10209. #endif
  10210. int
  10211. main ()
  10212. {
  10213. return shl_load ();
  10214. ;
  10215. return 0;
  10216. }
  10217. _ACEOF
  10218. rm -f conftest.$ac_objext conftest$ac_exeext
  10219. if { (ac_try="$ac_link"
  10220. case "(($ac_try" in
  10221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10222. *) ac_try_echo=$ac_try;;
  10223. esac
  10224. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10225. (eval "$ac_link") 2>conftest.er1
  10226. ac_status=$?
  10227. grep -v '^ *+' conftest.er1 >conftest.err
  10228. rm -f conftest.er1
  10229. cat conftest.err >&5
  10230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10231. (exit $ac_status); } && {
  10232. test -z "$ac_c_werror_flag" ||
  10233. test ! -s conftest.err
  10234. } && test -s conftest$ac_exeext &&
  10235. $as_test_x conftest$ac_exeext; then
  10236. ac_cv_func_shl_load=yes
  10237. else
  10238. echo "$as_me: failed program was:" >&5
  10239. sed 's/^/| /' conftest.$ac_ext >&5
  10240. ac_cv_func_shl_load=no
  10241. fi
  10242. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10243. conftest$ac_exeext conftest.$ac_ext
  10244. fi
  10245. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  10246. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  10247. if test $ac_cv_func_shl_load = yes; then
  10248. lt_cv_dlopen="shl_load"
  10249. else
  10250. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  10251. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  10252. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  10253. echo $ECHO_N "(cached) $ECHO_C" >&6
  10254. else
  10255. ac_check_lib_save_LIBS=$LIBS
  10256. LIBS="-ldld $LIBS"
  10257. cat >conftest.$ac_ext <<_ACEOF
  10258. /* confdefs.h. */
  10259. _ACEOF
  10260. cat confdefs.h >>conftest.$ac_ext
  10261. cat >>conftest.$ac_ext <<_ACEOF
  10262. /* end confdefs.h. */
  10263. /* Override any GCC internal prototype to avoid an error.
  10264. Use char because int might match the return type of a GCC
  10265. builtin and then its argument prototype would still apply. */
  10266. #ifdef __cplusplus
  10267. extern "C"
  10268. #endif
  10269. char shl_load ();
  10270. int
  10271. main ()
  10272. {
  10273. return shl_load ();
  10274. ;
  10275. return 0;
  10276. }
  10277. _ACEOF
  10278. rm -f conftest.$ac_objext conftest$ac_exeext
  10279. if { (ac_try="$ac_link"
  10280. case "(($ac_try" in
  10281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10282. *) ac_try_echo=$ac_try;;
  10283. esac
  10284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10285. (eval "$ac_link") 2>conftest.er1
  10286. ac_status=$?
  10287. grep -v '^ *+' conftest.er1 >conftest.err
  10288. rm -f conftest.er1
  10289. cat conftest.err >&5
  10290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10291. (exit $ac_status); } && {
  10292. test -z "$ac_c_werror_flag" ||
  10293. test ! -s conftest.err
  10294. } && test -s conftest$ac_exeext &&
  10295. $as_test_x conftest$ac_exeext; then
  10296. ac_cv_lib_dld_shl_load=yes
  10297. else
  10298. echo "$as_me: failed program was:" >&5
  10299. sed 's/^/| /' conftest.$ac_ext >&5
  10300. ac_cv_lib_dld_shl_load=no
  10301. fi
  10302. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10303. conftest$ac_exeext conftest.$ac_ext
  10304. LIBS=$ac_check_lib_save_LIBS
  10305. fi
  10306. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  10307. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  10308. if test $ac_cv_lib_dld_shl_load = yes; then
  10309. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  10310. else
  10311. { echo "$as_me:$LINENO: checking for dlopen" >&5
  10312. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  10313. if test "${ac_cv_func_dlopen+set}" = set; then
  10314. echo $ECHO_N "(cached) $ECHO_C" >&6
  10315. else
  10316. cat >conftest.$ac_ext <<_ACEOF
  10317. /* confdefs.h. */
  10318. _ACEOF
  10319. cat confdefs.h >>conftest.$ac_ext
  10320. cat >>conftest.$ac_ext <<_ACEOF
  10321. /* end confdefs.h. */
  10322. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10323. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10324. #define dlopen innocuous_dlopen
  10325. /* System header to define __stub macros and hopefully few prototypes,
  10326. which can conflict with char dlopen (); below.
  10327. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10328. <limits.h> exists even on freestanding compilers. */
  10329. #ifdef __STDC__
  10330. # include <limits.h>
  10331. #else
  10332. # include <assert.h>
  10333. #endif
  10334. #undef dlopen
  10335. /* Override any GCC internal prototype to avoid an error.
  10336. Use char because int might match the return type of a GCC
  10337. builtin and then its argument prototype would still apply. */
  10338. #ifdef __cplusplus
  10339. extern "C"
  10340. #endif
  10341. char dlopen ();
  10342. /* The GNU C library defines this for functions which it implements
  10343. to always fail with ENOSYS. Some functions are actually named
  10344. something starting with __ and the normal name is an alias. */
  10345. #if defined __stub_dlopen || defined __stub___dlopen
  10346. choke me
  10347. #endif
  10348. int
  10349. main ()
  10350. {
  10351. return dlopen ();
  10352. ;
  10353. return 0;
  10354. }
  10355. _ACEOF
  10356. rm -f conftest.$ac_objext conftest$ac_exeext
  10357. if { (ac_try="$ac_link"
  10358. case "(($ac_try" in
  10359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10360. *) ac_try_echo=$ac_try;;
  10361. esac
  10362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10363. (eval "$ac_link") 2>conftest.er1
  10364. ac_status=$?
  10365. grep -v '^ *+' conftest.er1 >conftest.err
  10366. rm -f conftest.er1
  10367. cat conftest.err >&5
  10368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10369. (exit $ac_status); } && {
  10370. test -z "$ac_c_werror_flag" ||
  10371. test ! -s conftest.err
  10372. } && test -s conftest$ac_exeext &&
  10373. $as_test_x conftest$ac_exeext; then
  10374. ac_cv_func_dlopen=yes
  10375. else
  10376. echo "$as_me: failed program was:" >&5
  10377. sed 's/^/| /' conftest.$ac_ext >&5
  10378. ac_cv_func_dlopen=no
  10379. fi
  10380. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10381. conftest$ac_exeext conftest.$ac_ext
  10382. fi
  10383. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10384. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  10385. if test $ac_cv_func_dlopen = yes; then
  10386. lt_cv_dlopen="dlopen"
  10387. else
  10388. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10389. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  10390. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10391. echo $ECHO_N "(cached) $ECHO_C" >&6
  10392. else
  10393. ac_check_lib_save_LIBS=$LIBS
  10394. LIBS="-ldl $LIBS"
  10395. cat >conftest.$ac_ext <<_ACEOF
  10396. /* confdefs.h. */
  10397. _ACEOF
  10398. cat confdefs.h >>conftest.$ac_ext
  10399. cat >>conftest.$ac_ext <<_ACEOF
  10400. /* end confdefs.h. */
  10401. /* Override any GCC internal prototype to avoid an error.
  10402. Use char because int might match the return type of a GCC
  10403. builtin and then its argument prototype would still apply. */
  10404. #ifdef __cplusplus
  10405. extern "C"
  10406. #endif
  10407. char dlopen ();
  10408. int
  10409. main ()
  10410. {
  10411. return dlopen ();
  10412. ;
  10413. return 0;
  10414. }
  10415. _ACEOF
  10416. rm -f conftest.$ac_objext conftest$ac_exeext
  10417. if { (ac_try="$ac_link"
  10418. case "(($ac_try" in
  10419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10420. *) ac_try_echo=$ac_try;;
  10421. esac
  10422. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10423. (eval "$ac_link") 2>conftest.er1
  10424. ac_status=$?
  10425. grep -v '^ *+' conftest.er1 >conftest.err
  10426. rm -f conftest.er1
  10427. cat conftest.err >&5
  10428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10429. (exit $ac_status); } && {
  10430. test -z "$ac_c_werror_flag" ||
  10431. test ! -s conftest.err
  10432. } && test -s conftest$ac_exeext &&
  10433. $as_test_x conftest$ac_exeext; then
  10434. ac_cv_lib_dl_dlopen=yes
  10435. else
  10436. echo "$as_me: failed program was:" >&5
  10437. sed 's/^/| /' conftest.$ac_ext >&5
  10438. ac_cv_lib_dl_dlopen=no
  10439. fi
  10440. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10441. conftest$ac_exeext conftest.$ac_ext
  10442. LIBS=$ac_check_lib_save_LIBS
  10443. fi
  10444. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10445. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  10446. if test $ac_cv_lib_dl_dlopen = yes; then
  10447. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10448. else
  10449. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10450. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  10451. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10452. echo $ECHO_N "(cached) $ECHO_C" >&6
  10453. else
  10454. ac_check_lib_save_LIBS=$LIBS
  10455. LIBS="-lsvld $LIBS"
  10456. cat >conftest.$ac_ext <<_ACEOF
  10457. /* confdefs.h. */
  10458. _ACEOF
  10459. cat confdefs.h >>conftest.$ac_ext
  10460. cat >>conftest.$ac_ext <<_ACEOF
  10461. /* end confdefs.h. */
  10462. /* Override any GCC internal prototype to avoid an error.
  10463. Use char because int might match the return type of a GCC
  10464. builtin and then its argument prototype would still apply. */
  10465. #ifdef __cplusplus
  10466. extern "C"
  10467. #endif
  10468. char dlopen ();
  10469. int
  10470. main ()
  10471. {
  10472. return dlopen ();
  10473. ;
  10474. return 0;
  10475. }
  10476. _ACEOF
  10477. rm -f conftest.$ac_objext conftest$ac_exeext
  10478. if { (ac_try="$ac_link"
  10479. case "(($ac_try" in
  10480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10481. *) ac_try_echo=$ac_try;;
  10482. esac
  10483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10484. (eval "$ac_link") 2>conftest.er1
  10485. ac_status=$?
  10486. grep -v '^ *+' conftest.er1 >conftest.err
  10487. rm -f conftest.er1
  10488. cat conftest.err >&5
  10489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10490. (exit $ac_status); } && {
  10491. test -z "$ac_c_werror_flag" ||
  10492. test ! -s conftest.err
  10493. } && test -s conftest$ac_exeext &&
  10494. $as_test_x conftest$ac_exeext; then
  10495. ac_cv_lib_svld_dlopen=yes
  10496. else
  10497. echo "$as_me: failed program was:" >&5
  10498. sed 's/^/| /' conftest.$ac_ext >&5
  10499. ac_cv_lib_svld_dlopen=no
  10500. fi
  10501. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10502. conftest$ac_exeext conftest.$ac_ext
  10503. LIBS=$ac_check_lib_save_LIBS
  10504. fi
  10505. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10506. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  10507. if test $ac_cv_lib_svld_dlopen = yes; then
  10508. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10509. else
  10510. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10511. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  10512. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10513. echo $ECHO_N "(cached) $ECHO_C" >&6
  10514. else
  10515. ac_check_lib_save_LIBS=$LIBS
  10516. LIBS="-ldld $LIBS"
  10517. cat >conftest.$ac_ext <<_ACEOF
  10518. /* confdefs.h. */
  10519. _ACEOF
  10520. cat confdefs.h >>conftest.$ac_ext
  10521. cat >>conftest.$ac_ext <<_ACEOF
  10522. /* end confdefs.h. */
  10523. /* Override any GCC internal prototype to avoid an error.
  10524. Use char because int might match the return type of a GCC
  10525. builtin and then its argument prototype would still apply. */
  10526. #ifdef __cplusplus
  10527. extern "C"
  10528. #endif
  10529. char dld_link ();
  10530. int
  10531. main ()
  10532. {
  10533. return dld_link ();
  10534. ;
  10535. return 0;
  10536. }
  10537. _ACEOF
  10538. rm -f conftest.$ac_objext conftest$ac_exeext
  10539. if { (ac_try="$ac_link"
  10540. case "(($ac_try" in
  10541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10542. *) ac_try_echo=$ac_try;;
  10543. esac
  10544. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10545. (eval "$ac_link") 2>conftest.er1
  10546. ac_status=$?
  10547. grep -v '^ *+' conftest.er1 >conftest.err
  10548. rm -f conftest.er1
  10549. cat conftest.err >&5
  10550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10551. (exit $ac_status); } && {
  10552. test -z "$ac_c_werror_flag" ||
  10553. test ! -s conftest.err
  10554. } && test -s conftest$ac_exeext &&
  10555. $as_test_x conftest$ac_exeext; then
  10556. ac_cv_lib_dld_dld_link=yes
  10557. else
  10558. echo "$as_me: failed program was:" >&5
  10559. sed 's/^/| /' conftest.$ac_ext >&5
  10560. ac_cv_lib_dld_dld_link=no
  10561. fi
  10562. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10563. conftest$ac_exeext conftest.$ac_ext
  10564. LIBS=$ac_check_lib_save_LIBS
  10565. fi
  10566. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10567. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  10568. if test $ac_cv_lib_dld_dld_link = yes; then
  10569. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  10570. fi
  10571. fi
  10572. fi
  10573. fi
  10574. fi
  10575. fi
  10576. ;;
  10577. esac
  10578. if test "x$lt_cv_dlopen" != xno; then
  10579. enable_dlopen=yes
  10580. else
  10581. enable_dlopen=no
  10582. fi
  10583. case $lt_cv_dlopen in
  10584. dlopen)
  10585. save_CPPFLAGS="$CPPFLAGS"
  10586. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10587. save_LDFLAGS="$LDFLAGS"
  10588. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10589. save_LIBS="$LIBS"
  10590. LIBS="$lt_cv_dlopen_libs $LIBS"
  10591. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10592. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  10593. if test "${lt_cv_dlopen_self+set}" = set; then
  10594. echo $ECHO_N "(cached) $ECHO_C" >&6
  10595. else
  10596. if test "$cross_compiling" = yes; then :
  10597. lt_cv_dlopen_self=cross
  10598. else
  10599. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10600. lt_status=$lt_dlunknown
  10601. cat > conftest.$ac_ext <<EOF
  10602. #line 11818 "configure"
  10603. #include "confdefs.h"
  10604. #if HAVE_DLFCN_H
  10605. #include <dlfcn.h>
  10606. #endif
  10607. #include <stdio.h>
  10608. #ifdef RTLD_GLOBAL
  10609. # define LT_DLGLOBAL RTLD_GLOBAL
  10610. #else
  10611. # ifdef DL_GLOBAL
  10612. # define LT_DLGLOBAL DL_GLOBAL
  10613. # else
  10614. # define LT_DLGLOBAL 0
  10615. # endif
  10616. #endif
  10617. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10618. find out it does not work in some platform. */
  10619. #ifndef LT_DLLAZY_OR_NOW
  10620. # ifdef RTLD_LAZY
  10621. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10622. # else
  10623. # ifdef DL_LAZY
  10624. # define LT_DLLAZY_OR_NOW DL_LAZY
  10625. # else
  10626. # ifdef RTLD_NOW
  10627. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10628. # else
  10629. # ifdef DL_NOW
  10630. # define LT_DLLAZY_OR_NOW DL_NOW
  10631. # else
  10632. # define LT_DLLAZY_OR_NOW 0
  10633. # endif
  10634. # endif
  10635. # endif
  10636. # endif
  10637. #endif
  10638. #ifdef __cplusplus
  10639. extern "C" void exit (int);
  10640. #endif
  10641. void fnord() { int i=42;}
  10642. int main ()
  10643. {
  10644. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10645. int status = $lt_dlunknown;
  10646. if (self)
  10647. {
  10648. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10649. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10650. /* dlclose (self); */
  10651. }
  10652. else
  10653. puts (dlerror ());
  10654. exit (status);
  10655. }
  10656. EOF
  10657. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10658. (eval $ac_link) 2>&5
  10659. ac_status=$?
  10660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10661. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10662. (./conftest; exit; ) >&5 2>/dev/null
  10663. lt_status=$?
  10664. case x$lt_status in
  10665. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10666. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10667. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10668. esac
  10669. else :
  10670. # compilation failed
  10671. lt_cv_dlopen_self=no
  10672. fi
  10673. fi
  10674. rm -fr conftest*
  10675. fi
  10676. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10677. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  10678. if test "x$lt_cv_dlopen_self" = xyes; then
  10679. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10680. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10681. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  10682. if test "${lt_cv_dlopen_self_static+set}" = set; then
  10683. echo $ECHO_N "(cached) $ECHO_C" >&6
  10684. else
  10685. if test "$cross_compiling" = yes; then :
  10686. lt_cv_dlopen_self_static=cross
  10687. else
  10688. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10689. lt_status=$lt_dlunknown
  10690. cat > conftest.$ac_ext <<EOF
  10691. #line 11918 "configure"
  10692. #include "confdefs.h"
  10693. #if HAVE_DLFCN_H
  10694. #include <dlfcn.h>
  10695. #endif
  10696. #include <stdio.h>
  10697. #ifdef RTLD_GLOBAL
  10698. # define LT_DLGLOBAL RTLD_GLOBAL
  10699. #else
  10700. # ifdef DL_GLOBAL
  10701. # define LT_DLGLOBAL DL_GLOBAL
  10702. # else
  10703. # define LT_DLGLOBAL 0
  10704. # endif
  10705. #endif
  10706. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10707. find out it does not work in some platform. */
  10708. #ifndef LT_DLLAZY_OR_NOW
  10709. # ifdef RTLD_LAZY
  10710. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10711. # else
  10712. # ifdef DL_LAZY
  10713. # define LT_DLLAZY_OR_NOW DL_LAZY
  10714. # else
  10715. # ifdef RTLD_NOW
  10716. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10717. # else
  10718. # ifdef DL_NOW
  10719. # define LT_DLLAZY_OR_NOW DL_NOW
  10720. # else
  10721. # define LT_DLLAZY_OR_NOW 0
  10722. # endif
  10723. # endif
  10724. # endif
  10725. # endif
  10726. #endif
  10727. #ifdef __cplusplus
  10728. extern "C" void exit (int);
  10729. #endif
  10730. void fnord() { int i=42;}
  10731. int main ()
  10732. {
  10733. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10734. int status = $lt_dlunknown;
  10735. if (self)
  10736. {
  10737. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10738. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10739. /* dlclose (self); */
  10740. }
  10741. else
  10742. puts (dlerror ());
  10743. exit (status);
  10744. }
  10745. EOF
  10746. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10747. (eval $ac_link) 2>&5
  10748. ac_status=$?
  10749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10750. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10751. (./conftest; exit; ) >&5 2>/dev/null
  10752. lt_status=$?
  10753. case x$lt_status in
  10754. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10755. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10756. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10757. esac
  10758. else :
  10759. # compilation failed
  10760. lt_cv_dlopen_self_static=no
  10761. fi
  10762. fi
  10763. rm -fr conftest*
  10764. fi
  10765. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  10766. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  10767. fi
  10768. CPPFLAGS="$save_CPPFLAGS"
  10769. LDFLAGS="$save_LDFLAGS"
  10770. LIBS="$save_LIBS"
  10771. ;;
  10772. esac
  10773. case $lt_cv_dlopen_self in
  10774. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10775. *) enable_dlopen_self=unknown ;;
  10776. esac
  10777. case $lt_cv_dlopen_self_static in
  10778. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10779. *) enable_dlopen_self_static=unknown ;;
  10780. esac
  10781. fi
  10782. # Report which library types will actually be built
  10783. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  10784. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  10785. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  10786. echo "${ECHO_T}$can_build_shared" >&6; }
  10787. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  10788. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  10789. test "$can_build_shared" = "no" && enable_shared=no
  10790. # On AIX, shared libraries and static libraries use the same namespace, and
  10791. # are all built from PIC.
  10792. case $host_os in
  10793. aix3*)
  10794. test "$enable_shared" = yes && enable_static=no
  10795. if test -n "$RANLIB"; then
  10796. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10797. postinstall_cmds='$RANLIB $lib'
  10798. fi
  10799. ;;
  10800. aix4* | aix5*)
  10801. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10802. test "$enable_shared" = yes && enable_static=no
  10803. fi
  10804. ;;
  10805. esac
  10806. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  10807. echo "${ECHO_T}$enable_shared" >&6; }
  10808. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  10809. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  10810. # Make sure either enable_shared or enable_static is yes.
  10811. test "$enable_shared" = yes || enable_static=yes
  10812. { echo "$as_me:$LINENO: result: $enable_static" >&5
  10813. echo "${ECHO_T}$enable_static" >&6; }
  10814. # The else clause should only fire when bootstrapping the
  10815. # libtool distribution, otherwise you forgot to ship ltmain.sh
  10816. # with your package, and you will get complaints that there are
  10817. # no rules to generate ltmain.sh.
  10818. if test -f "$ltmain"; then
  10819. # See if we are running on zsh, and set the options which allow our commands through
  10820. # without removal of \ escapes.
  10821. if test -n "${ZSH_VERSION+set}" ; then
  10822. setopt NO_GLOB_SUBST
  10823. fi
  10824. # Now quote all the things that may contain metacharacters while being
  10825. # careful not to overquote the AC_SUBSTed values. We take copies of the
  10826. # variables and quote the copies for generation of the libtool script.
  10827. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  10828. SED SHELL STRIP \
  10829. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  10830. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  10831. deplibs_check_method reload_flag reload_cmds need_locks \
  10832. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  10833. lt_cv_sys_global_symbol_to_c_name_address \
  10834. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  10835. old_postinstall_cmds old_postuninstall_cmds \
  10836. compiler \
  10837. CC \
  10838. LD \
  10839. lt_prog_compiler_wl \
  10840. lt_prog_compiler_pic \
  10841. lt_prog_compiler_static \
  10842. lt_prog_compiler_no_builtin_flag \
  10843. export_dynamic_flag_spec \
  10844. thread_safe_flag_spec \
  10845. whole_archive_flag_spec \
  10846. enable_shared_with_static_runtimes \
  10847. old_archive_cmds \
  10848. old_archive_from_new_cmds \
  10849. predep_objects \
  10850. postdep_objects \
  10851. predeps \
  10852. postdeps \
  10853. compiler_lib_search_path \
  10854. archive_cmds \
  10855. archive_expsym_cmds \
  10856. postinstall_cmds \
  10857. postuninstall_cmds \
  10858. old_archive_from_expsyms_cmds \
  10859. allow_undefined_flag \
  10860. no_undefined_flag \
  10861. export_symbols_cmds \
  10862. hardcode_libdir_flag_spec \
  10863. hardcode_libdir_flag_spec_ld \
  10864. hardcode_libdir_separator \
  10865. hardcode_automatic \
  10866. module_cmds \
  10867. module_expsym_cmds \
  10868. lt_cv_prog_compiler_c_o \
  10869. exclude_expsyms \
  10870. include_expsyms; do
  10871. case $var in
  10872. old_archive_cmds | \
  10873. old_archive_from_new_cmds | \
  10874. archive_cmds | \
  10875. archive_expsym_cmds | \
  10876. module_cmds | \
  10877. module_expsym_cmds | \
  10878. old_archive_from_expsyms_cmds | \
  10879. export_symbols_cmds | \
  10880. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  10881. postinstall_cmds | postuninstall_cmds | \
  10882. old_postinstall_cmds | old_postuninstall_cmds | \
  10883. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  10884. # Double-quote double-evaled strings.
  10885. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  10886. ;;
  10887. *)
  10888. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  10889. ;;
  10890. esac
  10891. done
  10892. case $lt_echo in
  10893. *'\$0 --fallback-echo"')
  10894. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  10895. ;;
  10896. esac
  10897. cfgfile="${ofile}T"
  10898. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  10899. $rm -f "$cfgfile"
  10900. { echo "$as_me:$LINENO: creating $ofile" >&5
  10901. echo "$as_me: creating $ofile" >&6;}
  10902. cat <<__EOF__ >> "$cfgfile"
  10903. #! $SHELL
  10904. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  10905. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  10906. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  10907. #
  10908. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  10909. # Free Software Foundation, Inc.
  10910. #
  10911. # This file is part of GNU Libtool:
  10912. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  10913. #
  10914. # This program is free software; you can redistribute it and/or modify
  10915. # it under the terms of the GNU General Public License as published by
  10916. # the Free Software Foundation; either version 2 of the License, or
  10917. # (at your option) any later version.
  10918. #
  10919. # This program is distributed in the hope that it will be useful, but
  10920. # WITHOUT ANY WARRANTY; without even the implied warranty of
  10921. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10922. # General Public License for more details.
  10923. #
  10924. # You should have received a copy of the GNU General Public License
  10925. # along with this program; if not, write to the Free Software
  10926. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  10927. #
  10928. # As a special exception to the GNU General Public License, if you
  10929. # distribute this file as part of a program that contains a
  10930. # configuration script generated by Autoconf, you may include it under
  10931. # the same distribution terms that you use for the rest of that program.
  10932. # A sed program that does not truncate output.
  10933. SED=$lt_SED
  10934. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  10935. Xsed="$SED -e 1s/^X//"
  10936. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10937. # if CDPATH is set.
  10938. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10939. # The names of the tagged configurations supported by this script.
  10940. available_tags=
  10941. # ### BEGIN LIBTOOL CONFIG
  10942. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10943. # Shell to use when invoking shell scripts.
  10944. SHELL=$lt_SHELL
  10945. # Whether or not to build shared libraries.
  10946. build_libtool_libs=$enable_shared
  10947. # Whether or not to build static libraries.
  10948. build_old_libs=$enable_static
  10949. # Whether or not to add -lc for building shared libraries.
  10950. build_libtool_need_lc=$archive_cmds_need_lc
  10951. # Whether or not to disallow shared libs when runtime libs are static
  10952. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  10953. # Whether or not to optimize for fast installation.
  10954. fast_install=$enable_fast_install
  10955. # The host system.
  10956. host_alias=$host_alias
  10957. host=$host
  10958. host_os=$host_os
  10959. # The build system.
  10960. build_alias=$build_alias
  10961. build=$build
  10962. build_os=$build_os
  10963. # An echo program that does not interpret backslashes.
  10964. echo=$lt_echo
  10965. # The archiver.
  10966. AR=$lt_AR
  10967. AR_FLAGS=$lt_AR_FLAGS
  10968. # A C compiler.
  10969. LTCC=$lt_LTCC
  10970. # LTCC compiler flags.
  10971. LTCFLAGS=$lt_LTCFLAGS
  10972. # A language-specific compiler.
  10973. CC=$lt_compiler
  10974. # Is the compiler the GNU C compiler?
  10975. with_gcc=$GCC
  10976. # An ERE matcher.
  10977. EGREP=$lt_EGREP
  10978. # The linker used to build libraries.
  10979. LD=$lt_LD
  10980. # Whether we need hard or soft links.
  10981. LN_S=$lt_LN_S
  10982. # A BSD-compatible nm program.
  10983. NM=$lt_NM
  10984. # A symbol stripping program
  10985. STRIP=$lt_STRIP
  10986. # Used to examine libraries when file_magic_cmd begins "file"
  10987. MAGIC_CMD=$MAGIC_CMD
  10988. # Used on cygwin: DLL creation program.
  10989. DLLTOOL="$DLLTOOL"
  10990. # Used on cygwin: object dumper.
  10991. OBJDUMP="$OBJDUMP"
  10992. # Used on cygwin: assembler.
  10993. AS="$AS"
  10994. # The name of the directory that contains temporary libtool files.
  10995. objdir=$objdir
  10996. # How to create reloadable object files.
  10997. reload_flag=$lt_reload_flag
  10998. reload_cmds=$lt_reload_cmds
  10999. # How to pass a linker flag through the compiler.
  11000. wl=$lt_lt_prog_compiler_wl
  11001. # Object file suffix (normally "o").
  11002. objext="$ac_objext"
  11003. # Old archive suffix (normally "a").
  11004. libext="$libext"
  11005. # Shared library suffix (normally ".so").
  11006. shrext_cmds='$shrext_cmds'
  11007. # Executable file suffix (normally "").
  11008. exeext="$exeext"
  11009. # Additional compiler flags for building library objects.
  11010. pic_flag=$lt_lt_prog_compiler_pic
  11011. pic_mode=$pic_mode
  11012. # What is the maximum length of a command?
  11013. max_cmd_len=$lt_cv_sys_max_cmd_len
  11014. # Does compiler simultaneously support -c and -o options?
  11015. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11016. # Must we lock files when doing compilation?
  11017. need_locks=$lt_need_locks
  11018. # Do we need the lib prefix for modules?
  11019. need_lib_prefix=$need_lib_prefix
  11020. # Do we need a version for libraries?
  11021. need_version=$need_version
  11022. # Whether dlopen is supported.
  11023. dlopen_support=$enable_dlopen
  11024. # Whether dlopen of programs is supported.
  11025. dlopen_self=$enable_dlopen_self
  11026. # Whether dlopen of statically linked programs is supported.
  11027. dlopen_self_static=$enable_dlopen_self_static
  11028. # Compiler flag to prevent dynamic linking.
  11029. link_static_flag=$lt_lt_prog_compiler_static
  11030. # Compiler flag to turn off builtin functions.
  11031. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11032. # Compiler flag to allow reflexive dlopens.
  11033. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11034. # Compiler flag to generate shared objects directly from archives.
  11035. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11036. # Compiler flag to generate thread-safe objects.
  11037. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  11038. # Library versioning type.
  11039. version_type=$version_type
  11040. # Format of library name prefix.
  11041. libname_spec=$lt_libname_spec
  11042. # List of archive names. First name is the real one, the rest are links.
  11043. # The last name is the one that the linker finds with -lNAME.
  11044. library_names_spec=$lt_library_names_spec
  11045. # The coded name of the library, if different from the real name.
  11046. soname_spec=$lt_soname_spec
  11047. # Commands used to build and install an old-style archive.
  11048. RANLIB=$lt_RANLIB
  11049. old_archive_cmds=$lt_old_archive_cmds
  11050. old_postinstall_cmds=$lt_old_postinstall_cmds
  11051. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11052. # Create an old-style archive from a shared archive.
  11053. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11054. # Create a temporary old-style archive to link instead of a shared archive.
  11055. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11056. # Commands used to build and install a shared archive.
  11057. archive_cmds=$lt_archive_cmds
  11058. archive_expsym_cmds=$lt_archive_expsym_cmds
  11059. postinstall_cmds=$lt_postinstall_cmds
  11060. postuninstall_cmds=$lt_postuninstall_cmds
  11061. # Commands used to build a loadable module (assumed same as above if empty)
  11062. module_cmds=$lt_module_cmds
  11063. module_expsym_cmds=$lt_module_expsym_cmds
  11064. # Commands to strip libraries.
  11065. old_striplib=$lt_old_striplib
  11066. striplib=$lt_striplib
  11067. # Dependencies to place before the objects being linked to create a
  11068. # shared library.
  11069. predep_objects=$lt_predep_objects
  11070. # Dependencies to place after the objects being linked to create a
  11071. # shared library.
  11072. postdep_objects=$lt_postdep_objects
  11073. # Dependencies to place before the objects being linked to create a
  11074. # shared library.
  11075. predeps=$lt_predeps
  11076. # Dependencies to place after the objects being linked to create a
  11077. # shared library.
  11078. postdeps=$lt_postdeps
  11079. # The library search path used internally by the compiler when linking
  11080. # a shared library.
  11081. compiler_lib_search_path=$lt_compiler_lib_search_path
  11082. # Method to check whether dependent libraries are shared objects.
  11083. deplibs_check_method=$lt_deplibs_check_method
  11084. # Command to use when deplibs_check_method == file_magic.
  11085. file_magic_cmd=$lt_file_magic_cmd
  11086. # Flag that allows shared libraries with undefined symbols to be built.
  11087. allow_undefined_flag=$lt_allow_undefined_flag
  11088. # Flag that forces no undefined symbols.
  11089. no_undefined_flag=$lt_no_undefined_flag
  11090. # Commands used to finish a libtool library installation in a directory.
  11091. finish_cmds=$lt_finish_cmds
  11092. # Same as above, but a single script fragment to be evaled but not shown.
  11093. finish_eval=$lt_finish_eval
  11094. # Take the output of nm and produce a listing of raw symbols and C names.
  11095. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11096. # Transform the output of nm in a proper C declaration
  11097. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11098. # Transform the output of nm in a C name address pair
  11099. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11100. # This is the shared library runtime path variable.
  11101. runpath_var=$runpath_var
  11102. # This is the shared library path variable.
  11103. shlibpath_var=$shlibpath_var
  11104. # Is shlibpath searched before the hard-coded library search path?
  11105. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11106. # How to hardcode a shared library path into an executable.
  11107. hardcode_action=$hardcode_action
  11108. # Whether we should hardcode library paths into libraries.
  11109. hardcode_into_libs=$hardcode_into_libs
  11110. # Flag to hardcode \$libdir into a binary during linking.
  11111. # This must work even if \$libdir does not exist.
  11112. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11113. # If ld is used when linking, flag to hardcode \$libdir into
  11114. # a binary during linking. This must work even if \$libdir does
  11115. # not exist.
  11116. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11117. # Whether we need a single -rpath flag with a separated argument.
  11118. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11119. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11120. # resulting binary.
  11121. hardcode_direct=$hardcode_direct
  11122. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11123. # resulting binary.
  11124. hardcode_minus_L=$hardcode_minus_L
  11125. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11126. # the resulting binary.
  11127. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11128. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11129. # and all subsequent libraries and executables linked against it.
  11130. hardcode_automatic=$hardcode_automatic
  11131. # Variables whose values should be saved in libtool wrapper scripts and
  11132. # restored at relink time.
  11133. variables_saved_for_relink="$variables_saved_for_relink"
  11134. # Whether libtool must link a program against all its dependency libraries.
  11135. link_all_deplibs=$link_all_deplibs
  11136. # Compile-time system search path for libraries
  11137. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11138. # Run-time system search path for libraries
  11139. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11140. # Fix the shell variable \$srcfile for the compiler.
  11141. fix_srcfile_path="$fix_srcfile_path"
  11142. # Set to yes if exported symbols are required.
  11143. always_export_symbols=$always_export_symbols
  11144. # The commands to list exported symbols.
  11145. export_symbols_cmds=$lt_export_symbols_cmds
  11146. # The commands to extract the exported symbol list from a shared archive.
  11147. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11148. # Symbols that should not be listed in the preloaded symbols.
  11149. exclude_expsyms=$lt_exclude_expsyms
  11150. # Symbols that must always be exported.
  11151. include_expsyms=$lt_include_expsyms
  11152. # ### END LIBTOOL CONFIG
  11153. __EOF__
  11154. case $host_os in
  11155. aix3*)
  11156. cat <<\EOF >> "$cfgfile"
  11157. # AIX sometimes has problems with the GCC collect2 program. For some
  11158. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11159. # vanish in a puff of smoke.
  11160. if test "X${COLLECT_NAMES+set}" != Xset; then
  11161. COLLECT_NAMES=
  11162. export COLLECT_NAMES
  11163. fi
  11164. EOF
  11165. ;;
  11166. esac
  11167. # We use sed instead of cat because bash on DJGPP gets confused if
  11168. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11169. # text mode, it properly converts lines to CR/LF. This bash problem
  11170. # is reportedly fixed, but why not run on old versions too?
  11171. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  11172. mv -f "$cfgfile" "$ofile" || \
  11173. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11174. chmod +x "$ofile"
  11175. else
  11176. # If there is no Makefile yet, we rely on a make rule to execute
  11177. # `config.status --recheck' to rerun these tests and create the
  11178. # libtool script then.
  11179. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11180. if test -f "$ltmain_in"; then
  11181. test -f Makefile && make "$ltmain"
  11182. fi
  11183. fi
  11184. ac_ext=c
  11185. ac_cpp='$CPP $CPPFLAGS'
  11186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11189. CC="$lt_save_CC"
  11190. # Check whether --with-tags was given.
  11191. if test "${with_tags+set}" = set; then
  11192. withval=$with_tags; tagnames="$withval"
  11193. fi
  11194. if test -f "$ltmain" && test -n "$tagnames"; then
  11195. if test ! -f "${ofile}"; then
  11196. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  11197. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  11198. fi
  11199. if test -z "$LTCC"; then
  11200. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  11201. if test -z "$LTCC"; then
  11202. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  11203. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  11204. else
  11205. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  11206. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  11207. fi
  11208. fi
  11209. if test -z "$LTCFLAGS"; then
  11210. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  11211. fi
  11212. # Extract list of available tagged configurations in $ofile.
  11213. # Note that this assumes the entire list is on one line.
  11214. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  11215. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11216. for tagname in $tagnames; do
  11217. IFS="$lt_save_ifs"
  11218. # Check whether tagname contains only valid characters
  11219. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  11220. "") ;;
  11221. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  11222. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  11223. { (exit 1); exit 1; }; }
  11224. ;;
  11225. esac
  11226. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  11227. then
  11228. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  11229. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  11230. { (exit 1); exit 1; }; }
  11231. fi
  11232. # Update the list of available tags.
  11233. if test -n "$tagname"; then
  11234. echo appending configuration tag \"$tagname\" to $ofile
  11235. case $tagname in
  11236. CXX)
  11237. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  11238. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  11239. (test "X$CXX" != "Xg++"))) ; then
  11240. ac_ext=cpp
  11241. ac_cpp='$CXXCPP $CPPFLAGS'
  11242. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11243. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11244. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11245. archive_cmds_need_lc_CXX=no
  11246. allow_undefined_flag_CXX=
  11247. always_export_symbols_CXX=no
  11248. archive_expsym_cmds_CXX=
  11249. export_dynamic_flag_spec_CXX=
  11250. hardcode_direct_CXX=no
  11251. hardcode_libdir_flag_spec_CXX=
  11252. hardcode_libdir_flag_spec_ld_CXX=
  11253. hardcode_libdir_separator_CXX=
  11254. hardcode_minus_L_CXX=no
  11255. hardcode_shlibpath_var_CXX=unsupported
  11256. hardcode_automatic_CXX=no
  11257. module_cmds_CXX=
  11258. module_expsym_cmds_CXX=
  11259. link_all_deplibs_CXX=unknown
  11260. old_archive_cmds_CXX=$old_archive_cmds
  11261. no_undefined_flag_CXX=
  11262. whole_archive_flag_spec_CXX=
  11263. enable_shared_with_static_runtimes_CXX=no
  11264. # Dependencies to place before and after the object being linked:
  11265. predep_objects_CXX=
  11266. postdep_objects_CXX=
  11267. predeps_CXX=
  11268. postdeps_CXX=
  11269. compiler_lib_search_path_CXX=
  11270. # Source file extension for C++ test sources.
  11271. ac_ext=cpp
  11272. # Object file extension for compiled C++ test sources.
  11273. objext=o
  11274. objext_CXX=$objext
  11275. # Code to be used in simple compile tests
  11276. lt_simple_compile_test_code="int some_variable = 0;\n"
  11277. # Code to be used in simple link tests
  11278. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  11279. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11280. # If no C compiler was specified, use CC.
  11281. LTCC=${LTCC-"$CC"}
  11282. # If no C compiler flags were specified, use CFLAGS.
  11283. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11284. # Allow CC to be a program name with arguments.
  11285. compiler=$CC
  11286. # save warnings/boilerplate of simple test code
  11287. ac_outfile=conftest.$ac_objext
  11288. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11289. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11290. _lt_compiler_boilerplate=`cat conftest.err`
  11291. $rm conftest*
  11292. ac_outfile=conftest.$ac_objext
  11293. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11294. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11295. _lt_linker_boilerplate=`cat conftest.err`
  11296. $rm conftest*
  11297. # Allow CC to be a program name with arguments.
  11298. lt_save_CC=$CC
  11299. lt_save_LD=$LD
  11300. lt_save_GCC=$GCC
  11301. GCC=$GXX
  11302. lt_save_with_gnu_ld=$with_gnu_ld
  11303. lt_save_path_LD=$lt_cv_path_LD
  11304. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11305. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11306. else
  11307. $as_unset lt_cv_prog_gnu_ld
  11308. fi
  11309. if test -n "${lt_cv_path_LDCXX+set}"; then
  11310. lt_cv_path_LD=$lt_cv_path_LDCXX
  11311. else
  11312. $as_unset lt_cv_path_LD
  11313. fi
  11314. test -z "${LDCXX+set}" || LD=$LDCXX
  11315. CC=${CXX-"c++"}
  11316. compiler=$CC
  11317. compiler_CXX=$CC
  11318. for cc_temp in $compiler""; do
  11319. case $cc_temp in
  11320. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11321. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11322. \-*) ;;
  11323. *) break;;
  11324. esac
  11325. done
  11326. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11327. # We don't want -fno-exception wen compiling C++ code, so set the
  11328. # no_builtin_flag separately
  11329. if test "$GXX" = yes; then
  11330. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11331. else
  11332. lt_prog_compiler_no_builtin_flag_CXX=
  11333. fi
  11334. if test "$GXX" = yes; then
  11335. # Set up default GNU C++ configuration
  11336. # Check whether --with-gnu-ld was given.
  11337. if test "${with_gnu_ld+set}" = set; then
  11338. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11339. else
  11340. with_gnu_ld=no
  11341. fi
  11342. ac_prog=ld
  11343. if test "$GCC" = yes; then
  11344. # Check if gcc -print-prog-name=ld gives a path.
  11345. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  11346. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  11347. case $host in
  11348. *-*-mingw*)
  11349. # gcc leaves a trailing carriage return which upsets mingw
  11350. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11351. *)
  11352. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11353. esac
  11354. case $ac_prog in
  11355. # Accept absolute paths.
  11356. [\\/]* | ?:[\\/]*)
  11357. re_direlt='/[^/][^/]*/\.\./'
  11358. # Canonicalize the pathname of ld
  11359. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  11360. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11361. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  11362. done
  11363. test -z "$LD" && LD="$ac_prog"
  11364. ;;
  11365. "")
  11366. # If it fails, then pretend we aren't using GCC.
  11367. ac_prog=ld
  11368. ;;
  11369. *)
  11370. # If it is relative, then search for the first ld in PATH.
  11371. with_gnu_ld=unknown
  11372. ;;
  11373. esac
  11374. elif test "$with_gnu_ld" = yes; then
  11375. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  11376. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  11377. else
  11378. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11379. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  11380. fi
  11381. if test "${lt_cv_path_LD+set}" = set; then
  11382. echo $ECHO_N "(cached) $ECHO_C" >&6
  11383. else
  11384. if test -z "$LD"; then
  11385. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11386. for ac_dir in $PATH; do
  11387. IFS="$lt_save_ifs"
  11388. test -z "$ac_dir" && ac_dir=.
  11389. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11390. lt_cv_path_LD="$ac_dir/$ac_prog"
  11391. # Check to see if the program is GNU ld. I'd rather use --version,
  11392. # but apparently some variants of GNU ld only accept -v.
  11393. # Break only if it was the GNU/non-GNU ld that we prefer.
  11394. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11395. *GNU* | *'with BFD'*)
  11396. test "$with_gnu_ld" != no && break
  11397. ;;
  11398. *)
  11399. test "$with_gnu_ld" != yes && break
  11400. ;;
  11401. esac
  11402. fi
  11403. done
  11404. IFS="$lt_save_ifs"
  11405. else
  11406. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11407. fi
  11408. fi
  11409. LD="$lt_cv_path_LD"
  11410. if test -n "$LD"; then
  11411. { echo "$as_me:$LINENO: result: $LD" >&5
  11412. echo "${ECHO_T}$LD" >&6; }
  11413. else
  11414. { echo "$as_me:$LINENO: result: no" >&5
  11415. echo "${ECHO_T}no" >&6; }
  11416. fi
  11417. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11418. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11419. { (exit 1); exit 1; }; }
  11420. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11421. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  11422. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  11423. echo $ECHO_N "(cached) $ECHO_C" >&6
  11424. else
  11425. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11426. case `$LD -v 2>&1 </dev/null` in
  11427. *GNU* | *'with BFD'*)
  11428. lt_cv_prog_gnu_ld=yes
  11429. ;;
  11430. *)
  11431. lt_cv_prog_gnu_ld=no
  11432. ;;
  11433. esac
  11434. fi
  11435. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  11436. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  11437. with_gnu_ld=$lt_cv_prog_gnu_ld
  11438. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11439. # archiving commands below assume that GNU ld is being used.
  11440. if test "$with_gnu_ld" = yes; then
  11441. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11442. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11443. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11444. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11445. # If archive_cmds runs LD, not CC, wlarc should be empty
  11446. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11447. # investigate it a little bit more. (MM)
  11448. wlarc='${wl}'
  11449. # ancient GNU ld didn't support --whole-archive et. al.
  11450. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  11451. grep 'no-whole-archive' > /dev/null; then
  11452. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11453. else
  11454. whole_archive_flag_spec_CXX=
  11455. fi
  11456. else
  11457. with_gnu_ld=no
  11458. wlarc=
  11459. # A generic and very simple default shared library creation
  11460. # command for GNU C++ for the case where it uses the native
  11461. # linker, instead of GNU ld. If possible, this setting should
  11462. # overridden to take advantage of the native linker features on
  11463. # the platform it is being used on.
  11464. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11465. fi
  11466. # Commands to make compiler produce verbose output that lists
  11467. # what "hidden" libraries, object files and flags are used when
  11468. # linking a shared library.
  11469. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  11470. else
  11471. GXX=no
  11472. with_gnu_ld=no
  11473. wlarc=
  11474. fi
  11475. # PORTME: fill in a description of your system's C++ link characteristics
  11476. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11477. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11478. ld_shlibs_CXX=yes
  11479. case $host_os in
  11480. aix3*)
  11481. # FIXME: insert proper C++ library support
  11482. ld_shlibs_CXX=no
  11483. ;;
  11484. aix4* | aix5*)
  11485. if test "$host_cpu" = ia64; then
  11486. # On IA64, the linker does run time linking by default, so we don't
  11487. # have to do anything special.
  11488. aix_use_runtimelinking=no
  11489. exp_sym_flag='-Bexport'
  11490. no_entry_flag=""
  11491. else
  11492. aix_use_runtimelinking=no
  11493. # Test if we are trying to use run time linking or normal
  11494. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11495. # need to do runtime linking.
  11496. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  11497. for ld_flag in $LDFLAGS; do
  11498. case $ld_flag in
  11499. *-brtl*)
  11500. aix_use_runtimelinking=yes
  11501. break
  11502. ;;
  11503. esac
  11504. done
  11505. ;;
  11506. esac
  11507. exp_sym_flag='-bexport'
  11508. no_entry_flag='-bnoentry'
  11509. fi
  11510. # When large executables or shared objects are built, AIX ld can
  11511. # have problems creating the table of contents. If linking a library
  11512. # or program results in "error TOC overflow" add -mminimal-toc to
  11513. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11514. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11515. archive_cmds_CXX=''
  11516. hardcode_direct_CXX=yes
  11517. hardcode_libdir_separator_CXX=':'
  11518. link_all_deplibs_CXX=yes
  11519. if test "$GXX" = yes; then
  11520. case $host_os in aix4.[012]|aix4.[012].*)
  11521. # We only want to do this on AIX 4.2 and lower, the check
  11522. # below for broken collect2 doesn't work under 4.3+
  11523. collect2name=`${CC} -print-prog-name=collect2`
  11524. if test -f "$collect2name" && \
  11525. strings "$collect2name" | grep resolve_lib_name >/dev/null
  11526. then
  11527. # We have reworked collect2
  11528. hardcode_direct_CXX=yes
  11529. else
  11530. # We have old collect2
  11531. hardcode_direct_CXX=unsupported
  11532. # It fails to find uninstalled libraries when the uninstalled
  11533. # path is not listed in the libpath. Setting hardcode_minus_L
  11534. # to unsupported forces relinking
  11535. hardcode_minus_L_CXX=yes
  11536. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11537. hardcode_libdir_separator_CXX=
  11538. fi
  11539. ;;
  11540. esac
  11541. shared_flag='-shared'
  11542. if test "$aix_use_runtimelinking" = yes; then
  11543. shared_flag="$shared_flag "'${wl}-G'
  11544. fi
  11545. else
  11546. # not using gcc
  11547. if test "$host_cpu" = ia64; then
  11548. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11549. # chokes on -Wl,-G. The following line is correct:
  11550. shared_flag='-G'
  11551. else
  11552. if test "$aix_use_runtimelinking" = yes; then
  11553. shared_flag='${wl}-G'
  11554. else
  11555. shared_flag='${wl}-bM:SRE'
  11556. fi
  11557. fi
  11558. fi
  11559. # It seems that -bexpall does not export symbols beginning with
  11560. # underscore (_), so it is better to generate a list of symbols to export.
  11561. always_export_symbols_CXX=yes
  11562. if test "$aix_use_runtimelinking" = yes; then
  11563. # Warning - without using the other runtime loading flags (-brtl),
  11564. # -berok will link without error, but may produce a broken library.
  11565. allow_undefined_flag_CXX='-berok'
  11566. # Determine the default libpath from the value encoded in an empty executable.
  11567. cat >conftest.$ac_ext <<_ACEOF
  11568. /* confdefs.h. */
  11569. _ACEOF
  11570. cat confdefs.h >>conftest.$ac_ext
  11571. cat >>conftest.$ac_ext <<_ACEOF
  11572. /* end confdefs.h. */
  11573. int
  11574. main ()
  11575. {
  11576. ;
  11577. return 0;
  11578. }
  11579. _ACEOF
  11580. rm -f conftest.$ac_objext conftest$ac_exeext
  11581. if { (ac_try="$ac_link"
  11582. case "(($ac_try" in
  11583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11584. *) ac_try_echo=$ac_try;;
  11585. esac
  11586. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11587. (eval "$ac_link") 2>conftest.er1
  11588. ac_status=$?
  11589. grep -v '^ *+' conftest.er1 >conftest.err
  11590. rm -f conftest.er1
  11591. cat conftest.err >&5
  11592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11593. (exit $ac_status); } && {
  11594. test -z "$ac_cxx_werror_flag" ||
  11595. test ! -s conftest.err
  11596. } && test -s conftest$ac_exeext &&
  11597. $as_test_x conftest$ac_exeext; then
  11598. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  11599. }'`
  11600. # Check for a 64-bit object if we didn't find anything.
  11601. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  11602. }'`; fi
  11603. else
  11604. echo "$as_me: failed program was:" >&5
  11605. sed 's/^/| /' conftest.$ac_ext >&5
  11606. fi
  11607. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11608. conftest$ac_exeext conftest.$ac_ext
  11609. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11610. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11611. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11612. else
  11613. if test "$host_cpu" = ia64; then
  11614. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11615. allow_undefined_flag_CXX="-z nodefs"
  11616. archive_expsym_cmds_CXX="\$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"
  11617. else
  11618. # Determine the default libpath from the value encoded in an empty executable.
  11619. cat >conftest.$ac_ext <<_ACEOF
  11620. /* confdefs.h. */
  11621. _ACEOF
  11622. cat confdefs.h >>conftest.$ac_ext
  11623. cat >>conftest.$ac_ext <<_ACEOF
  11624. /* end confdefs.h. */
  11625. int
  11626. main ()
  11627. {
  11628. ;
  11629. return 0;
  11630. }
  11631. _ACEOF
  11632. rm -f conftest.$ac_objext conftest$ac_exeext
  11633. if { (ac_try="$ac_link"
  11634. case "(($ac_try" in
  11635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11636. *) ac_try_echo=$ac_try;;
  11637. esac
  11638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11639. (eval "$ac_link") 2>conftest.er1
  11640. ac_status=$?
  11641. grep -v '^ *+' conftest.er1 >conftest.err
  11642. rm -f conftest.er1
  11643. cat conftest.err >&5
  11644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11645. (exit $ac_status); } && {
  11646. test -z "$ac_cxx_werror_flag" ||
  11647. test ! -s conftest.err
  11648. } && test -s conftest$ac_exeext &&
  11649. $as_test_x conftest$ac_exeext; then
  11650. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  11651. }'`
  11652. # Check for a 64-bit object if we didn't find anything.
  11653. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  11654. }'`; fi
  11655. else
  11656. echo "$as_me: failed program was:" >&5
  11657. sed 's/^/| /' conftest.$ac_ext >&5
  11658. fi
  11659. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11660. conftest$ac_exeext conftest.$ac_ext
  11661. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11662. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11663. # Warning - without using the other run time loading flags,
  11664. # -berok will link without error, but may produce a broken library.
  11665. no_undefined_flag_CXX=' ${wl}-bernotok'
  11666. allow_undefined_flag_CXX=' ${wl}-berok'
  11667. # Exported symbols can be pulled into shared objects from archives
  11668. whole_archive_flag_spec_CXX='$convenience'
  11669. archive_cmds_need_lc_CXX=yes
  11670. # This is similar to how AIX traditionally builds its shared libraries.
  11671. archive_expsym_cmds_CXX="\$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'
  11672. fi
  11673. fi
  11674. ;;
  11675. beos*)
  11676. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11677. allow_undefined_flag_CXX=unsupported
  11678. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11679. # support --undefined. This deserves some investigation. FIXME
  11680. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11681. else
  11682. ld_shlibs_CXX=no
  11683. fi
  11684. ;;
  11685. chorus*)
  11686. case $cc_basename in
  11687. *)
  11688. # FIXME: insert proper C++ library support
  11689. ld_shlibs_CXX=no
  11690. ;;
  11691. esac
  11692. ;;
  11693. cygwin* | mingw* | pw32*)
  11694. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11695. # as there is no search path for DLLs.
  11696. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11697. allow_undefined_flag_CXX=unsupported
  11698. always_export_symbols_CXX=no
  11699. enable_shared_with_static_runtimes_CXX=yes
  11700. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11701. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11702. # If the export-symbols file already is a .def file (1st line
  11703. # is EXPORTS), use it as is; otherwise, prepend...
  11704. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11705. cp $export_symbols $output_objdir/$soname.def;
  11706. else
  11707. echo EXPORTS > $output_objdir/$soname.def;
  11708. cat $export_symbols >> $output_objdir/$soname.def;
  11709. fi~
  11710. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11711. else
  11712. ld_shlibs_CXX=no
  11713. fi
  11714. ;;
  11715. darwin* | rhapsody*)
  11716. case $host_os in
  11717. rhapsody* | darwin1.[012])
  11718. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  11719. ;;
  11720. *) # Darwin 1.3 on
  11721. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  11722. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11723. else
  11724. case ${MACOSX_DEPLOYMENT_TARGET} in
  11725. 10.[012])
  11726. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11727. ;;
  11728. 10.*)
  11729. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  11730. ;;
  11731. esac
  11732. fi
  11733. ;;
  11734. esac
  11735. archive_cmds_need_lc_CXX=no
  11736. hardcode_direct_CXX=no
  11737. hardcode_automatic_CXX=yes
  11738. hardcode_shlibpath_var_CXX=unsupported
  11739. whole_archive_flag_spec_CXX=''
  11740. link_all_deplibs_CXX=yes
  11741. if test "$GXX" = yes ; then
  11742. lt_int_apple_cc_single_mod=no
  11743. output_verbose_link_cmd='echo'
  11744. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  11745. lt_int_apple_cc_single_mod=yes
  11746. fi
  11747. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  11748. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  11749. else
  11750. archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  11751. fi
  11752. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11753. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  11754. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  11755. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11756. else
  11757. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11758. fi
  11759. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11760. else
  11761. case $cc_basename in
  11762. xlc*)
  11763. output_verbose_link_cmd='echo'
  11764. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  11765. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11766. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  11767. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11768. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11769. ;;
  11770. *)
  11771. ld_shlibs_CXX=no
  11772. ;;
  11773. esac
  11774. fi
  11775. ;;
  11776. dgux*)
  11777. case $cc_basename in
  11778. ec++*)
  11779. # FIXME: insert proper C++ library support
  11780. ld_shlibs_CXX=no
  11781. ;;
  11782. ghcx*)
  11783. # Green Hills C++ Compiler
  11784. # FIXME: insert proper C++ library support
  11785. ld_shlibs_CXX=no
  11786. ;;
  11787. *)
  11788. # FIXME: insert proper C++ library support
  11789. ld_shlibs_CXX=no
  11790. ;;
  11791. esac
  11792. ;;
  11793. freebsd[12]*)
  11794. # C++ shared libraries reported to be fairly broken before switch to ELF
  11795. ld_shlibs_CXX=no
  11796. ;;
  11797. freebsd-elf*)
  11798. archive_cmds_need_lc_CXX=no
  11799. ;;
  11800. freebsd* | kfreebsd*-gnu | dragonfly*)
  11801. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11802. # conventions
  11803. ld_shlibs_CXX=yes
  11804. ;;
  11805. gnu*)
  11806. ;;
  11807. hpux9*)
  11808. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11809. hardcode_libdir_separator_CXX=:
  11810. export_dynamic_flag_spec_CXX='${wl}-E'
  11811. hardcode_direct_CXX=yes
  11812. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11813. # but as the default
  11814. # location of the library.
  11815. case $cc_basename in
  11816. CC*)
  11817. # FIXME: insert proper C++ library support
  11818. ld_shlibs_CXX=no
  11819. ;;
  11820. aCC*)
  11821. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11822. # Commands to make compiler produce verbose output that lists
  11823. # what "hidden" libraries, object files and flags are used when
  11824. # linking a shared library.
  11825. #
  11826. # There doesn't appear to be a way to prevent this compiler from
  11827. # explicitly linking system object files so we need to strip them
  11828. # from the output so that they don't get included in the library
  11829. # dependencies.
  11830. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  11831. ;;
  11832. *)
  11833. if test "$GXX" = yes; then
  11834. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11835. else
  11836. # FIXME: insert proper C++ library support
  11837. ld_shlibs_CXX=no
  11838. fi
  11839. ;;
  11840. esac
  11841. ;;
  11842. hpux10*|hpux11*)
  11843. if test $with_gnu_ld = no; then
  11844. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11845. hardcode_libdir_separator_CXX=:
  11846. case $host_cpu in
  11847. hppa*64*|ia64*)
  11848. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  11849. ;;
  11850. *)
  11851. export_dynamic_flag_spec_CXX='${wl}-E'
  11852. ;;
  11853. esac
  11854. fi
  11855. case $host_cpu in
  11856. hppa*64*|ia64*)
  11857. hardcode_direct_CXX=no
  11858. hardcode_shlibpath_var_CXX=no
  11859. ;;
  11860. *)
  11861. hardcode_direct_CXX=yes
  11862. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11863. # but as the default
  11864. # location of the library.
  11865. ;;
  11866. esac
  11867. case $cc_basename in
  11868. CC*)
  11869. # FIXME: insert proper C++ library support
  11870. ld_shlibs_CXX=no
  11871. ;;
  11872. aCC*)
  11873. case $host_cpu in
  11874. hppa*64*)
  11875. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11876. ;;
  11877. ia64*)
  11878. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11879. ;;
  11880. *)
  11881. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11882. ;;
  11883. esac
  11884. # Commands to make compiler produce verbose output that lists
  11885. # what "hidden" libraries, object files and flags are used when
  11886. # linking a shared library.
  11887. #
  11888. # There doesn't appear to be a way to prevent this compiler from
  11889. # explicitly linking system object files so we need to strip them
  11890. # from the output so that they don't get included in the library
  11891. # dependencies.
  11892. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  11893. ;;
  11894. *)
  11895. if test "$GXX" = yes; then
  11896. if test $with_gnu_ld = no; then
  11897. case $host_cpu in
  11898. hppa*64*)
  11899. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11900. ;;
  11901. ia64*)
  11902. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11903. ;;
  11904. *)
  11905. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11906. ;;
  11907. esac
  11908. fi
  11909. else
  11910. # FIXME: insert proper C++ library support
  11911. ld_shlibs_CXX=no
  11912. fi
  11913. ;;
  11914. esac
  11915. ;;
  11916. interix3*)
  11917. hardcode_direct_CXX=no
  11918. hardcode_shlibpath_var_CXX=no
  11919. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11920. export_dynamic_flag_spec_CXX='${wl}-E'
  11921. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11922. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11923. # default) and relocated if they conflict, which is a slow very memory
  11924. # consuming and fragmenting process. To avoid this, we pick a random,
  11925. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11926. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11927. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11928. archive_expsym_cmds_CXX='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'
  11929. ;;
  11930. irix5* | irix6*)
  11931. case $cc_basename in
  11932. CC*)
  11933. # SGI C++
  11934. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  11935. # Archives containing C++ object files must be created using
  11936. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11937. # necessary to make sure instantiated templates are included
  11938. # in the archive.
  11939. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11940. ;;
  11941. *)
  11942. if test "$GXX" = yes; then
  11943. if test "$with_gnu_ld" = no; then
  11944. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11945. else
  11946. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  11947. fi
  11948. fi
  11949. link_all_deplibs_CXX=yes
  11950. ;;
  11951. esac
  11952. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11953. hardcode_libdir_separator_CXX=:
  11954. ;;
  11955. linux*)
  11956. case $cc_basename in
  11957. KCC*)
  11958. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11959. # KCC will only create a shared library if the output file
  11960. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11961. # to its proper name (with version) after linking.
  11962. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11963. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  11964. # Commands to make compiler produce verbose output that lists
  11965. # what "hidden" libraries, object files and flags are used when
  11966. # linking a shared library.
  11967. #
  11968. # There doesn't appear to be a way to prevent this compiler from
  11969. # explicitly linking system object files so we need to strip them
  11970. # from the output so that they don't get included in the library
  11971. # dependencies.
  11972. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  11973. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  11974. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11975. # Archives containing C++ object files must be created using
  11976. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11977. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11978. ;;
  11979. icpc*)
  11980. # Intel C++
  11981. with_gnu_ld=yes
  11982. # version 8.0 and above of icpc choke on multiply defined symbols
  11983. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11984. # earlier do not add the objects themselves.
  11985. case `$CC -V 2>&1` in
  11986. *"Version 7."*)
  11987. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11988. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11989. ;;
  11990. *) # Version 8.0 or newer
  11991. tmp_idyn=
  11992. case $host_cpu in
  11993. ia64*) tmp_idyn=' -i_dynamic';;
  11994. esac
  11995. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11996. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11997. ;;
  11998. esac
  11999. archive_cmds_need_lc_CXX=no
  12000. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12001. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12002. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12003. ;;
  12004. pgCC*)
  12005. # Portland Group C++ compiler
  12006. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12007. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  12008. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  12009. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12010. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  12011. ;;
  12012. cxx*)
  12013. # Compaq C++
  12014. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12015. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  12016. runpath_var=LD_RUN_PATH
  12017. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12018. hardcode_libdir_separator_CXX=:
  12019. # Commands to make compiler produce verbose output that lists
  12020. # what "hidden" libraries, object files and flags are used when
  12021. # linking a shared library.
  12022. #
  12023. # There doesn't appear to be a way to prevent this compiler from
  12024. # explicitly linking system object files so we need to strip them
  12025. # from the output so that they don't get included in the library
  12026. # dependencies.
  12027. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  12028. ;;
  12029. esac
  12030. ;;
  12031. lynxos*)
  12032. # FIXME: insert proper C++ library support
  12033. ld_shlibs_CXX=no
  12034. ;;
  12035. m88k*)
  12036. # FIXME: insert proper C++ library support
  12037. ld_shlibs_CXX=no
  12038. ;;
  12039. mvs*)
  12040. case $cc_basename in
  12041. cxx*)
  12042. # FIXME: insert proper C++ library support
  12043. ld_shlibs_CXX=no
  12044. ;;
  12045. *)
  12046. # FIXME: insert proper C++ library support
  12047. ld_shlibs_CXX=no
  12048. ;;
  12049. esac
  12050. ;;
  12051. netbsd*)
  12052. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12053. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12054. wlarc=
  12055. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12056. hardcode_direct_CXX=yes
  12057. hardcode_shlibpath_var_CXX=no
  12058. fi
  12059. # Workaround some broken pre-1.5 toolchains
  12060. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12061. ;;
  12062. openbsd2*)
  12063. # C++ shared libraries are fairly broken
  12064. ld_shlibs_CXX=no
  12065. ;;
  12066. openbsd*)
  12067. hardcode_direct_CXX=yes
  12068. hardcode_shlibpath_var_CXX=no
  12069. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12070. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12071. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12072. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  12073. export_dynamic_flag_spec_CXX='${wl}-E'
  12074. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12075. fi
  12076. output_verbose_link_cmd='echo'
  12077. ;;
  12078. osf3*)
  12079. case $cc_basename in
  12080. KCC*)
  12081. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12082. # KCC will only create a shared library if the output file
  12083. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12084. # to its proper name (with version) after linking.
  12085. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  12086. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12087. hardcode_libdir_separator_CXX=:
  12088. # Archives containing C++ object files must be created using
  12089. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12090. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12091. ;;
  12092. RCC*)
  12093. # Rational C++ 2.4.1
  12094. # FIXME: insert proper C++ library support
  12095. ld_shlibs_CXX=no
  12096. ;;
  12097. cxx*)
  12098. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12099. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12100. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12101. hardcode_libdir_separator_CXX=:
  12102. # Commands to make compiler produce verbose output that lists
  12103. # what "hidden" libraries, object files and flags are used when
  12104. # linking a shared library.
  12105. #
  12106. # There doesn't appear to be a way to prevent this compiler from
  12107. # explicitly linking system object files so we need to strip them
  12108. # from the output so that they don't get included in the library
  12109. # dependencies.
  12110. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  12111. ;;
  12112. *)
  12113. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12114. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12115. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12116. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12117. hardcode_libdir_separator_CXX=:
  12118. # Commands to make compiler produce verbose output that lists
  12119. # what "hidden" libraries, object files and flags are used when
  12120. # linking a shared library.
  12121. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  12122. else
  12123. # FIXME: insert proper C++ library support
  12124. ld_shlibs_CXX=no
  12125. fi
  12126. ;;
  12127. esac
  12128. ;;
  12129. osf4* | osf5*)
  12130. case $cc_basename in
  12131. KCC*)
  12132. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12133. # KCC will only create a shared library if the output file
  12134. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12135. # to its proper name (with version) after linking.
  12136. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  12137. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12138. hardcode_libdir_separator_CXX=:
  12139. # Archives containing C++ object files must be created using
  12140. # the KAI C++ compiler.
  12141. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  12142. ;;
  12143. RCC*)
  12144. # Rational C++ 2.4.1
  12145. # FIXME: insert proper C++ library support
  12146. ld_shlibs_CXX=no
  12147. ;;
  12148. cxx*)
  12149. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12150. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12151. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12152. echo "-hidden">> $lib.exp~
  12153. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  12154. $rm $lib.exp'
  12155. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12156. hardcode_libdir_separator_CXX=:
  12157. # Commands to make compiler produce verbose output that lists
  12158. # what "hidden" libraries, object files and flags are used when
  12159. # linking a shared library.
  12160. #
  12161. # There doesn't appear to be a way to prevent this compiler from
  12162. # explicitly linking system object files so we need to strip them
  12163. # from the output so that they don't get included in the library
  12164. # dependencies.
  12165. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  12166. ;;
  12167. *)
  12168. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12169. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12170. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12171. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12172. hardcode_libdir_separator_CXX=:
  12173. # Commands to make compiler produce verbose output that lists
  12174. # what "hidden" libraries, object files and flags are used when
  12175. # linking a shared library.
  12176. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  12177. else
  12178. # FIXME: insert proper C++ library support
  12179. ld_shlibs_CXX=no
  12180. fi
  12181. ;;
  12182. esac
  12183. ;;
  12184. psos*)
  12185. # FIXME: insert proper C++ library support
  12186. ld_shlibs_CXX=no
  12187. ;;
  12188. sunos4*)
  12189. case $cc_basename in
  12190. CC*)
  12191. # Sun C++ 4.x
  12192. # FIXME: insert proper C++ library support
  12193. ld_shlibs_CXX=no
  12194. ;;
  12195. lcc*)
  12196. # Lucid
  12197. # FIXME: insert proper C++ library support
  12198. ld_shlibs_CXX=no
  12199. ;;
  12200. *)
  12201. # FIXME: insert proper C++ library support
  12202. ld_shlibs_CXX=no
  12203. ;;
  12204. esac
  12205. ;;
  12206. solaris*)
  12207. case $cc_basename in
  12208. CC*)
  12209. # Sun C++ 4.2, 5.x and Centerline C++
  12210. archive_cmds_need_lc_CXX=yes
  12211. no_undefined_flag_CXX=' -zdefs'
  12212. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12213. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12214. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  12215. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12216. hardcode_shlibpath_var_CXX=no
  12217. case $host_os in
  12218. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12219. *)
  12220. # The C++ compiler is used as linker so we must use $wl
  12221. # flag to pass the commands to the underlying system
  12222. # linker. We must also pass each convience library through
  12223. # to the system linker between allextract/defaultextract.
  12224. # The C++ compiler will combine linker options so we
  12225. # cannot just pass the convience library names through
  12226. # without $wl.
  12227. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12228. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  12229. ;;
  12230. esac
  12231. link_all_deplibs_CXX=yes
  12232. output_verbose_link_cmd='echo'
  12233. # Archives containing C++ object files must be created using
  12234. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12235. # necessary to make sure instantiated templates are included
  12236. # in the archive.
  12237. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12238. ;;
  12239. gcx*)
  12240. # Green Hills C++ Compiler
  12241. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12242. # The C++ compiler must be used to create the archive.
  12243. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12244. ;;
  12245. *)
  12246. # GNU C++ compiler with Solaris linker
  12247. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12248. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12249. if $CC --version | grep -v '^2\.7' > /dev/null; then
  12250. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12251. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12252. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  12253. # Commands to make compiler produce verbose output that lists
  12254. # what "hidden" libraries, object files and flags are used when
  12255. # linking a shared library.
  12256. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  12257. else
  12258. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12259. # platform.
  12260. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12261. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12262. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  12263. # Commands to make compiler produce verbose output that lists
  12264. # what "hidden" libraries, object files and flags are used when
  12265. # linking a shared library.
  12266. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  12267. fi
  12268. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12269. fi
  12270. ;;
  12271. esac
  12272. ;;
  12273. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12274. no_undefined_flag_CXX='${wl}-z,text'
  12275. archive_cmds_need_lc_CXX=no
  12276. hardcode_shlibpath_var_CXX=no
  12277. runpath_var='LD_RUN_PATH'
  12278. case $cc_basename in
  12279. CC*)
  12280. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12281. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12282. ;;
  12283. *)
  12284. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12285. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12286. ;;
  12287. esac
  12288. ;;
  12289. sysv5* | sco3.2v5* | sco5v6*)
  12290. # Note: We can NOT use -z defs as we might desire, because we do not
  12291. # link with -lc, and that would cause any symbols used from libc to
  12292. # always be unresolved, which means just about no library would
  12293. # ever link correctly. If we're not using GNU ld we use -z text
  12294. # though, which does catch some bad symbols but isn't as heavy-handed
  12295. # as -z defs.
  12296. # For security reasons, it is highly recommended that you always
  12297. # use absolute paths for naming shared libraries, and exclude the
  12298. # DT_RUNPATH tag from executables and libraries. But doing so
  12299. # requires that you compile everything twice, which is a pain.
  12300. # So that behaviour is only enabled if SCOABSPATH is set to a
  12301. # non-empty value in the environment. Most likely only useful for
  12302. # creating official distributions of packages.
  12303. # This is a hack until libtool officially supports absolute path
  12304. # names for shared libraries.
  12305. no_undefined_flag_CXX='${wl}-z,text'
  12306. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12307. archive_cmds_need_lc_CXX=no
  12308. hardcode_shlibpath_var_CXX=no
  12309. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12310. hardcode_libdir_separator_CXX=':'
  12311. link_all_deplibs_CXX=yes
  12312. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12313. runpath_var='LD_RUN_PATH'
  12314. case $cc_basename in
  12315. CC*)
  12316. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12317. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12318. ;;
  12319. *)
  12320. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12321. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12322. ;;
  12323. esac
  12324. ;;
  12325. tandem*)
  12326. case $cc_basename in
  12327. NCC*)
  12328. # NonStop-UX NCC 3.20
  12329. # FIXME: insert proper C++ library support
  12330. ld_shlibs_CXX=no
  12331. ;;
  12332. *)
  12333. # FIXME: insert proper C++ library support
  12334. ld_shlibs_CXX=no
  12335. ;;
  12336. esac
  12337. ;;
  12338. vxworks*)
  12339. # FIXME: insert proper C++ library support
  12340. ld_shlibs_CXX=no
  12341. ;;
  12342. *)
  12343. # FIXME: insert proper C++ library support
  12344. ld_shlibs_CXX=no
  12345. ;;
  12346. esac
  12347. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12348. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  12349. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12350. GCC_CXX="$GXX"
  12351. LD_CXX="$LD"
  12352. ## CAVEAT EMPTOR:
  12353. ## There is no encapsulation within the following macros, do not change
  12354. ## the running order or otherwise move them around unless you know exactly
  12355. ## what you are doing...
  12356. cat > conftest.$ac_ext <<EOF
  12357. class Foo
  12358. {
  12359. public:
  12360. Foo (void) { a = 0; }
  12361. private:
  12362. int a;
  12363. };
  12364. EOF
  12365. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12366. (eval $ac_compile) 2>&5
  12367. ac_status=$?
  12368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12369. (exit $ac_status); }; then
  12370. # Parse the compiler output and extract the necessary
  12371. # objects, libraries and library flags.
  12372. # Sentinel used to keep track of whether or not we are before
  12373. # the conftest object file.
  12374. pre_test_object_deps_done=no
  12375. # The `*' in the case matches for architectures that use `case' in
  12376. # $output_verbose_cmd can trigger glob expansion during the loop
  12377. # eval without this substitution.
  12378. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  12379. for p in `eval $output_verbose_link_cmd`; do
  12380. case $p in
  12381. -L* | -R* | -l*)
  12382. # Some compilers place space between "-{L,R}" and the path.
  12383. # Remove the space.
  12384. if test $p = "-L" \
  12385. || test $p = "-R"; then
  12386. prev=$p
  12387. continue
  12388. else
  12389. prev=
  12390. fi
  12391. if test "$pre_test_object_deps_done" = no; then
  12392. case $p in
  12393. -L* | -R*)
  12394. # Internal compiler library paths should come after those
  12395. # provided the user. The postdeps already come after the
  12396. # user supplied libs so there is no need to process them.
  12397. if test -z "$compiler_lib_search_path_CXX"; then
  12398. compiler_lib_search_path_CXX="${prev}${p}"
  12399. else
  12400. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12401. fi
  12402. ;;
  12403. # The "-l" case would never come before the object being
  12404. # linked, so don't bother handling this case.
  12405. esac
  12406. else
  12407. if test -z "$postdeps_CXX"; then
  12408. postdeps_CXX="${prev}${p}"
  12409. else
  12410. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12411. fi
  12412. fi
  12413. ;;
  12414. *.$objext)
  12415. # This assumes that the test object file only shows up
  12416. # once in the compiler output.
  12417. if test "$p" = "conftest.$objext"; then
  12418. pre_test_object_deps_done=yes
  12419. continue
  12420. fi
  12421. if test "$pre_test_object_deps_done" = no; then
  12422. if test -z "$predep_objects_CXX"; then
  12423. predep_objects_CXX="$p"
  12424. else
  12425. predep_objects_CXX="$predep_objects_CXX $p"
  12426. fi
  12427. else
  12428. if test -z "$postdep_objects_CXX"; then
  12429. postdep_objects_CXX="$p"
  12430. else
  12431. postdep_objects_CXX="$postdep_objects_CXX $p"
  12432. fi
  12433. fi
  12434. ;;
  12435. *) ;; # Ignore the rest.
  12436. esac
  12437. done
  12438. # Clean up.
  12439. rm -f a.out a.exe
  12440. else
  12441. echo "libtool.m4: error: problem compiling CXX test program"
  12442. fi
  12443. $rm -f confest.$objext
  12444. # PORTME: override above test on systems where it is broken
  12445. case $host_os in
  12446. interix3*)
  12447. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12448. # hack all around it, let's just trust "g++" to DTRT.
  12449. predep_objects_CXX=
  12450. postdep_objects_CXX=
  12451. postdeps_CXX=
  12452. ;;
  12453. solaris*)
  12454. case $cc_basename in
  12455. CC*)
  12456. # Adding this requires a known-good setup of shared libraries for
  12457. # Sun compiler versions before 5.6, else PIC objects from an old
  12458. # archive will be linked into the output, leading to subtle bugs.
  12459. postdeps_CXX='-lCstd -lCrun'
  12460. ;;
  12461. esac
  12462. ;;
  12463. esac
  12464. case " $postdeps_CXX " in
  12465. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12466. esac
  12467. lt_prog_compiler_wl_CXX=
  12468. lt_prog_compiler_pic_CXX=
  12469. lt_prog_compiler_static_CXX=
  12470. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12471. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12472. # C++ specific cases for pic, static, wl, etc.
  12473. if test "$GXX" = yes; then
  12474. lt_prog_compiler_wl_CXX='-Wl,'
  12475. lt_prog_compiler_static_CXX='-static'
  12476. case $host_os in
  12477. aix*)
  12478. # All AIX code is PIC.
  12479. if test "$host_cpu" = ia64; then
  12480. # AIX 5 now supports IA64 processor
  12481. lt_prog_compiler_static_CXX='-Bstatic'
  12482. fi
  12483. ;;
  12484. amigaos*)
  12485. # FIXME: we need at least 68020 code to build shared libraries, but
  12486. # adding the `-m68020' flag to GCC prevents building anything better,
  12487. # like `-m68040'.
  12488. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12489. ;;
  12490. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12491. # PIC is the default for these OSes.
  12492. ;;
  12493. mingw* | os2* | pw32*)
  12494. # This hack is so that the source file can tell whether it is being
  12495. # built for inclusion in a dll (and should export symbols for example).
  12496. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12497. ;;
  12498. darwin* | rhapsody*)
  12499. # PIC is the default on this platform
  12500. # Common symbols not allowed in MH_DYLIB files
  12501. lt_prog_compiler_pic_CXX='-fno-common'
  12502. ;;
  12503. *djgpp*)
  12504. # DJGPP does not support shared libraries at all
  12505. lt_prog_compiler_pic_CXX=
  12506. ;;
  12507. interix3*)
  12508. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12509. # Instead, we relocate shared libraries at runtime.
  12510. ;;
  12511. sysv4*MP*)
  12512. if test -d /usr/nec; then
  12513. lt_prog_compiler_pic_CXX=-Kconform_pic
  12514. fi
  12515. ;;
  12516. hpux*)
  12517. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12518. # not for PA HP-UX.
  12519. case $host_cpu in
  12520. hppa*64*|ia64*)
  12521. ;;
  12522. *)
  12523. lt_prog_compiler_pic_CXX='-fPIC'
  12524. ;;
  12525. esac
  12526. ;;
  12527. *)
  12528. lt_prog_compiler_pic_CXX='-fPIC'
  12529. ;;
  12530. esac
  12531. else
  12532. case $host_os in
  12533. aix4* | aix5*)
  12534. # All AIX code is PIC.
  12535. if test "$host_cpu" = ia64; then
  12536. # AIX 5 now supports IA64 processor
  12537. lt_prog_compiler_static_CXX='-Bstatic'
  12538. else
  12539. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12540. fi
  12541. ;;
  12542. chorus*)
  12543. case $cc_basename in
  12544. cxch68*)
  12545. # Green Hills C++ Compiler
  12546. # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12547. ;;
  12548. esac
  12549. ;;
  12550. darwin*)
  12551. # PIC is the default on this platform
  12552. # Common symbols not allowed in MH_DYLIB files
  12553. case $cc_basename in
  12554. xlc*)
  12555. lt_prog_compiler_pic_CXX='-qnocommon'
  12556. lt_prog_compiler_wl_CXX='-Wl,'
  12557. ;;
  12558. esac
  12559. ;;
  12560. dgux*)
  12561. case $cc_basename in
  12562. ec++*)
  12563. lt_prog_compiler_pic_CXX='-KPIC'
  12564. ;;
  12565. ghcx*)
  12566. # Green Hills C++ Compiler
  12567. lt_prog_compiler_pic_CXX='-pic'
  12568. ;;
  12569. *)
  12570. ;;
  12571. esac
  12572. ;;
  12573. freebsd* | kfreebsd*-gnu | dragonfly*)
  12574. # FreeBSD uses GNU C++
  12575. ;;
  12576. hpux9* | hpux10* | hpux11*)
  12577. case $cc_basename in
  12578. CC*)
  12579. lt_prog_compiler_wl_CXX='-Wl,'
  12580. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12581. if test "$host_cpu" != ia64; then
  12582. lt_prog_compiler_pic_CXX='+Z'
  12583. fi
  12584. ;;
  12585. aCC*)
  12586. lt_prog_compiler_wl_CXX='-Wl,'
  12587. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12588. case $host_cpu in
  12589. hppa*64*|ia64*)
  12590. # +Z the default
  12591. ;;
  12592. *)
  12593. lt_prog_compiler_pic_CXX='+Z'
  12594. ;;
  12595. esac
  12596. ;;
  12597. *)
  12598. ;;
  12599. esac
  12600. ;;
  12601. interix*)
  12602. # This is c89, which is MS Visual C++ (no shared libs)
  12603. # Anyone wants to do a port?
  12604. ;;
  12605. irix5* | irix6* | nonstopux*)
  12606. case $cc_basename in
  12607. CC*)
  12608. lt_prog_compiler_wl_CXX='-Wl,'
  12609. lt_prog_compiler_static_CXX='-non_shared'
  12610. # CC pic flag -KPIC is the default.
  12611. ;;
  12612. *)
  12613. ;;
  12614. esac
  12615. ;;
  12616. linux*)
  12617. case $cc_basename in
  12618. KCC*)
  12619. # KAI C++ Compiler
  12620. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12621. lt_prog_compiler_pic_CXX='-fPIC'
  12622. ;;
  12623. icpc* | ecpc*)
  12624. # Intel C++
  12625. lt_prog_compiler_wl_CXX='-Wl,'
  12626. lt_prog_compiler_pic_CXX='-KPIC'
  12627. lt_prog_compiler_static_CXX='-static'
  12628. ;;
  12629. pgCC*)
  12630. # Portland Group C++ compiler.
  12631. lt_prog_compiler_wl_CXX='-Wl,'
  12632. lt_prog_compiler_pic_CXX='-fpic'
  12633. lt_prog_compiler_static_CXX='-Bstatic'
  12634. ;;
  12635. cxx*)
  12636. # Compaq C++
  12637. # Make sure the PIC flag is empty. It appears that all Alpha
  12638. # Linux and Compaq Tru64 Unix objects are PIC.
  12639. lt_prog_compiler_pic_CXX=
  12640. lt_prog_compiler_static_CXX='-non_shared'
  12641. ;;
  12642. *)
  12643. ;;
  12644. esac
  12645. ;;
  12646. lynxos*)
  12647. ;;
  12648. m88k*)
  12649. ;;
  12650. mvs*)
  12651. case $cc_basename in
  12652. cxx*)
  12653. lt_prog_compiler_pic_CXX='-W c,exportall'
  12654. ;;
  12655. *)
  12656. ;;
  12657. esac
  12658. ;;
  12659. netbsd*)
  12660. ;;
  12661. osf3* | osf4* | osf5*)
  12662. case $cc_basename in
  12663. KCC*)
  12664. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12665. ;;
  12666. RCC*)
  12667. # Rational C++ 2.4.1
  12668. lt_prog_compiler_pic_CXX='-pic'
  12669. ;;
  12670. cxx*)
  12671. # Digital/Compaq C++
  12672. lt_prog_compiler_wl_CXX='-Wl,'
  12673. # Make sure the PIC flag is empty. It appears that all Alpha
  12674. # Linux and Compaq Tru64 Unix objects are PIC.
  12675. lt_prog_compiler_pic_CXX=
  12676. lt_prog_compiler_static_CXX='-non_shared'
  12677. ;;
  12678. *)
  12679. ;;
  12680. esac
  12681. ;;
  12682. psos*)
  12683. ;;
  12684. solaris*)
  12685. case $cc_basename in
  12686. CC*)
  12687. # Sun C++ 4.2, 5.x and Centerline C++
  12688. lt_prog_compiler_pic_CXX='-KPIC'
  12689. lt_prog_compiler_static_CXX='-Bstatic'
  12690. lt_prog_compiler_wl_CXX='-Qoption ld '
  12691. ;;
  12692. gcx*)
  12693. # Green Hills C++ Compiler
  12694. lt_prog_compiler_pic_CXX='-PIC'
  12695. ;;
  12696. *)
  12697. ;;
  12698. esac
  12699. ;;
  12700. sunos4*)
  12701. case $cc_basename in
  12702. CC*)
  12703. # Sun C++ 4.x
  12704. lt_prog_compiler_pic_CXX='-pic'
  12705. lt_prog_compiler_static_CXX='-Bstatic'
  12706. ;;
  12707. lcc*)
  12708. # Lucid
  12709. lt_prog_compiler_pic_CXX='-pic'
  12710. ;;
  12711. *)
  12712. ;;
  12713. esac
  12714. ;;
  12715. tandem*)
  12716. case $cc_basename in
  12717. NCC*)
  12718. # NonStop-UX NCC 3.20
  12719. lt_prog_compiler_pic_CXX='-KPIC'
  12720. ;;
  12721. *)
  12722. ;;
  12723. esac
  12724. ;;
  12725. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12726. case $cc_basename in
  12727. CC*)
  12728. lt_prog_compiler_wl_CXX='-Wl,'
  12729. lt_prog_compiler_pic_CXX='-KPIC'
  12730. lt_prog_compiler_static_CXX='-Bstatic'
  12731. ;;
  12732. esac
  12733. ;;
  12734. vxworks*)
  12735. ;;
  12736. *)
  12737. lt_prog_compiler_can_build_shared_CXX=no
  12738. ;;
  12739. esac
  12740. fi
  12741. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12742. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  12743. #
  12744. # Check to make sure the PIC flag actually works.
  12745. #
  12746. if test -n "$lt_prog_compiler_pic_CXX"; then
  12747. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12748. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  12749. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  12750. echo $ECHO_N "(cached) $ECHO_C" >&6
  12751. else
  12752. lt_prog_compiler_pic_works_CXX=no
  12753. ac_outfile=conftest.$ac_objext
  12754. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12755. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12756. # Insert the option either (1) after the last *FLAGS variable, or
  12757. # (2) before a word containing "conftest.", or (3) at the end.
  12758. # Note that $ac_compile itself does not contain backslashes and begins
  12759. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12760. # The option is referenced via a variable to avoid confusing sed.
  12761. lt_compile=`echo "$ac_compile" | $SED \
  12762. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12763. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12764. -e 's:$: $lt_compiler_flag:'`
  12765. (eval echo "\"\$as_me:14258: $lt_compile\"" >&5)
  12766. (eval "$lt_compile" 2>conftest.err)
  12767. ac_status=$?
  12768. cat conftest.err >&5
  12769. echo "$as_me:14262: \$? = $ac_status" >&5
  12770. if (exit $ac_status) && test -s "$ac_outfile"; then
  12771. # The compiler can only warn and ignore the option if not recognized
  12772. # So say no if there are warnings other than the usual output.
  12773. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12774. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12775. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12776. lt_prog_compiler_pic_works_CXX=yes
  12777. fi
  12778. fi
  12779. $rm conftest*
  12780. fi
  12781. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  12782. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  12783. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  12784. case $lt_prog_compiler_pic_CXX in
  12785. "" | " "*) ;;
  12786. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12787. esac
  12788. else
  12789. lt_prog_compiler_pic_CXX=
  12790. lt_prog_compiler_can_build_shared_CXX=no
  12791. fi
  12792. fi
  12793. case $host_os in
  12794. # For platforms which do not support PIC, -DPIC is meaningless:
  12795. *djgpp*)
  12796. lt_prog_compiler_pic_CXX=
  12797. ;;
  12798. *)
  12799. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12800. ;;
  12801. esac
  12802. #
  12803. # Check to make sure the static flag actually works.
  12804. #
  12805. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12806. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12807. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12808. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  12809. echo $ECHO_N "(cached) $ECHO_C" >&6
  12810. else
  12811. lt_prog_compiler_static_works_CXX=no
  12812. save_LDFLAGS="$LDFLAGS"
  12813. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12814. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  12815. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12816. # The linker can only warn and ignore the option if not recognized
  12817. # So say no if there are warnings
  12818. if test -s conftest.err; then
  12819. # Append any errors to the config.log.
  12820. cat conftest.err 1>&5
  12821. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12822. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12823. if diff conftest.exp conftest.er2 >/dev/null; then
  12824. lt_prog_compiler_static_works_CXX=yes
  12825. fi
  12826. else
  12827. lt_prog_compiler_static_works_CXX=yes
  12828. fi
  12829. fi
  12830. $rm conftest*
  12831. LDFLAGS="$save_LDFLAGS"
  12832. fi
  12833. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  12834. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  12835. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  12836. :
  12837. else
  12838. lt_prog_compiler_static_CXX=
  12839. fi
  12840. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12841. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12842. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12843. echo $ECHO_N "(cached) $ECHO_C" >&6
  12844. else
  12845. lt_cv_prog_compiler_c_o_CXX=no
  12846. $rm -r conftest 2>/dev/null
  12847. mkdir conftest
  12848. cd conftest
  12849. mkdir out
  12850. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12851. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12852. # Insert the option either (1) after the last *FLAGS variable, or
  12853. # (2) before a word containing "conftest.", or (3) at the end.
  12854. # Note that $ac_compile itself does not contain backslashes and begins
  12855. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12856. lt_compile=`echo "$ac_compile" | $SED \
  12857. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12858. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12859. -e 's:$: $lt_compiler_flag:'`
  12860. (eval echo "\"\$as_me:14362: $lt_compile\"" >&5)
  12861. (eval "$lt_compile" 2>out/conftest.err)
  12862. ac_status=$?
  12863. cat out/conftest.err >&5
  12864. echo "$as_me:14366: \$? = $ac_status" >&5
  12865. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12866. then
  12867. # The compiler can only warn and ignore the option if not recognized
  12868. # So say no if there are warnings
  12869. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12870. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12871. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12872. lt_cv_prog_compiler_c_o_CXX=yes
  12873. fi
  12874. fi
  12875. chmod u+w . 2>&5
  12876. $rm conftest*
  12877. # SGI C++ compiler will create directory out/ii_files/ for
  12878. # template instantiation
  12879. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12880. $rm out/* && rmdir out
  12881. cd ..
  12882. rmdir conftest
  12883. $rm conftest*
  12884. fi
  12885. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12886. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12887. hard_links="nottested"
  12888. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12889. # do not overwrite the value of need_locks provided by the user
  12890. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12891. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  12892. hard_links=yes
  12893. $rm conftest*
  12894. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12895. touch conftest.a
  12896. ln conftest.a conftest.b 2>&5 || hard_links=no
  12897. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12898. { echo "$as_me:$LINENO: result: $hard_links" >&5
  12899. echo "${ECHO_T}$hard_links" >&6; }
  12900. if test "$hard_links" = no; then
  12901. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12902. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12903. need_locks=warn
  12904. fi
  12905. else
  12906. need_locks=no
  12907. fi
  12908. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12909. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  12910. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12911. case $host_os in
  12912. aix4* | aix5*)
  12913. # If we're using GNU nm, then we don't want the "-C" option.
  12914. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12915. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12916. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12917. else
  12918. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12919. fi
  12920. ;;
  12921. pw32*)
  12922. export_symbols_cmds_CXX="$ltdll_cmds"
  12923. ;;
  12924. cygwin* | mingw*)
  12925. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12926. ;;
  12927. *)
  12928. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12929. ;;
  12930. esac
  12931. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12932. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  12933. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12934. #
  12935. # Do we need to explicitly link libc?
  12936. #
  12937. case "x$archive_cmds_need_lc_CXX" in
  12938. x|xyes)
  12939. # Assume -lc should be added
  12940. archive_cmds_need_lc_CXX=yes
  12941. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12942. case $archive_cmds_CXX in
  12943. *'~'*)
  12944. # FIXME: we may have to deal with multi-command sequences.
  12945. ;;
  12946. '$CC '*)
  12947. # Test whether the compiler implicitly links with -lc since on some
  12948. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12949. # to ld, don't add -lc before -lgcc.
  12950. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12951. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  12952. $rm conftest*
  12953. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12954. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12955. (eval $ac_compile) 2>&5
  12956. ac_status=$?
  12957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12958. (exit $ac_status); } 2>conftest.err; then
  12959. soname=conftest
  12960. lib=conftest
  12961. libobjs=conftest.$ac_objext
  12962. deplibs=
  12963. wl=$lt_prog_compiler_wl_CXX
  12964. pic_flag=$lt_prog_compiler_pic_CXX
  12965. compiler_flags=-v
  12966. linker_flags=-v
  12967. verstring=
  12968. output_objdir=.
  12969. libname=conftest
  12970. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12971. allow_undefined_flag_CXX=
  12972. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12973. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12974. ac_status=$?
  12975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12976. (exit $ac_status); }
  12977. then
  12978. archive_cmds_need_lc_CXX=no
  12979. else
  12980. archive_cmds_need_lc_CXX=yes
  12981. fi
  12982. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12983. else
  12984. cat conftest.err 1>&5
  12985. fi
  12986. $rm conftest*
  12987. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  12988. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  12989. ;;
  12990. esac
  12991. fi
  12992. ;;
  12993. esac
  12994. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12995. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  12996. library_names_spec=
  12997. libname_spec='lib$name'
  12998. soname_spec=
  12999. shrext_cmds=".so"
  13000. postinstall_cmds=
  13001. postuninstall_cmds=
  13002. finish_cmds=
  13003. finish_eval=
  13004. shlibpath_var=
  13005. shlibpath_overrides_runpath=unknown
  13006. version_type=none
  13007. dynamic_linker="$host_os ld.so"
  13008. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13009. if test "$GCC" = yes; then
  13010. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13011. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13012. # if the path contains ";" then we assume it to be the separator
  13013. # otherwise default to the standard path separator (i.e. ":") - it is
  13014. # assumed that no part of a normal pathname contains ";" but that should
  13015. # okay in the real world where ";" in dirpaths is itself problematic.
  13016. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13017. else
  13018. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13019. fi
  13020. else
  13021. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13022. fi
  13023. need_lib_prefix=unknown
  13024. hardcode_into_libs=no
  13025. # when you set need_version to no, make sure it does not cause -set_version
  13026. # flags to be left without arguments
  13027. need_version=unknown
  13028. case $host_os in
  13029. aix3*)
  13030. version_type=linux
  13031. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13032. shlibpath_var=LIBPATH
  13033. # AIX 3 has no versioning support, so we append a major version to the name.
  13034. soname_spec='${libname}${release}${shared_ext}$major'
  13035. ;;
  13036. aix4* | aix5*)
  13037. version_type=linux
  13038. need_lib_prefix=no
  13039. need_version=no
  13040. hardcode_into_libs=yes
  13041. if test "$host_cpu" = ia64; then
  13042. # AIX 5 supports IA64
  13043. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13044. shlibpath_var=LD_LIBRARY_PATH
  13045. else
  13046. # With GCC up to 2.95.x, collect2 would create an import file
  13047. # for dependence libraries. The import file would start with
  13048. # the line `#! .'. This would cause the generated library to
  13049. # depend on `.', always an invalid library. This was fixed in
  13050. # development snapshots of GCC prior to 3.0.
  13051. case $host_os in
  13052. aix4 | aix4.[01] | aix4.[01].*)
  13053. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13054. echo ' yes '
  13055. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13056. :
  13057. else
  13058. can_build_shared=no
  13059. fi
  13060. ;;
  13061. esac
  13062. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13063. # soname into executable. Probably we can add versioning support to
  13064. # collect2, so additional links can be useful in future.
  13065. if test "$aix_use_runtimelinking" = yes; then
  13066. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13067. # instead of lib<name>.a to let people know that these are not
  13068. # typical AIX shared libraries.
  13069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13070. else
  13071. # We preserve .a as extension for shared libraries through AIX4.2
  13072. # and later when we are not doing run time linking.
  13073. library_names_spec='${libname}${release}.a $libname.a'
  13074. soname_spec='${libname}${release}${shared_ext}$major'
  13075. fi
  13076. shlibpath_var=LIBPATH
  13077. fi
  13078. ;;
  13079. amigaos*)
  13080. library_names_spec='$libname.ixlibrary $libname.a'
  13081. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13082. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  13083. ;;
  13084. beos*)
  13085. library_names_spec='${libname}${shared_ext}'
  13086. dynamic_linker="$host_os ld.so"
  13087. shlibpath_var=LIBRARY_PATH
  13088. ;;
  13089. bsdi[45]*)
  13090. version_type=linux
  13091. need_version=no
  13092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13093. soname_spec='${libname}${release}${shared_ext}$major'
  13094. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13095. shlibpath_var=LD_LIBRARY_PATH
  13096. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13097. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13098. # the default ld.so.conf also contains /usr/contrib/lib and
  13099. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13100. # libtool to hard-code these into programs
  13101. ;;
  13102. cygwin* | mingw* | pw32*)
  13103. version_type=windows
  13104. shrext_cmds=".dll"
  13105. need_version=no
  13106. need_lib_prefix=no
  13107. case $GCC,$host_os in
  13108. yes,cygwin* | yes,mingw* | yes,pw32*)
  13109. library_names_spec='$libname.dll.a'
  13110. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13111. postinstall_cmds='base_file=`basename \${file}`~
  13112. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13113. dldir=$destdir/`dirname \$dlpath`~
  13114. test -d \$dldir || mkdir -p \$dldir~
  13115. $install_prog $dir/$dlname \$dldir/$dlname~
  13116. chmod a+x \$dldir/$dlname'
  13117. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13118. dlpath=$dir/\$dldll~
  13119. $rm \$dlpath'
  13120. shlibpath_overrides_runpath=yes
  13121. case $host_os in
  13122. cygwin*)
  13123. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13124. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13125. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13126. ;;
  13127. mingw*)
  13128. # MinGW DLLs use traditional 'lib' prefix
  13129. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13130. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13131. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13132. # It is most probably a Windows format PATH printed by
  13133. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13134. # path with ; separators, and with drive letters. We can handle the
  13135. # drive letters (cygwin fileutils understands them), so leave them,
  13136. # especially as we might pass files found there to a mingw objdump,
  13137. # which wouldn't understand a cygwinified path. Ahh.
  13138. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13139. else
  13140. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13141. fi
  13142. ;;
  13143. pw32*)
  13144. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13145. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13146. ;;
  13147. esac
  13148. ;;
  13149. *)
  13150. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13151. ;;
  13152. esac
  13153. dynamic_linker='Win32 ld.exe'
  13154. # FIXME: first we should search . and the directory the executable is in
  13155. shlibpath_var=PATH
  13156. ;;
  13157. darwin* | rhapsody*)
  13158. dynamic_linker="$host_os dyld"
  13159. version_type=darwin
  13160. need_lib_prefix=no
  13161. need_version=no
  13162. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13163. soname_spec='${libname}${release}${major}$shared_ext'
  13164. shlibpath_overrides_runpath=yes
  13165. shlibpath_var=DYLD_LIBRARY_PATH
  13166. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13167. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13168. if test "$GCC" = yes; then
  13169. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  13170. else
  13171. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13172. fi
  13173. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13174. ;;
  13175. dgux*)
  13176. version_type=linux
  13177. need_lib_prefix=no
  13178. need_version=no
  13179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13180. soname_spec='${libname}${release}${shared_ext}$major'
  13181. shlibpath_var=LD_LIBRARY_PATH
  13182. ;;
  13183. freebsd1*)
  13184. dynamic_linker=no
  13185. ;;
  13186. kfreebsd*-gnu)
  13187. version_type=linux
  13188. need_lib_prefix=no
  13189. need_version=no
  13190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13191. soname_spec='${libname}${release}${shared_ext}$major'
  13192. shlibpath_var=LD_LIBRARY_PATH
  13193. shlibpath_overrides_runpath=no
  13194. hardcode_into_libs=yes
  13195. dynamic_linker='GNU ld.so'
  13196. ;;
  13197. freebsd* | dragonfly*)
  13198. # DragonFly does not have aout. When/if they implement a new
  13199. # versioning mechanism, adjust this.
  13200. if test -x /usr/bin/objformat; then
  13201. objformat=`/usr/bin/objformat`
  13202. else
  13203. case $host_os in
  13204. freebsd[123]*) objformat=aout ;;
  13205. *) objformat=elf ;;
  13206. esac
  13207. fi
  13208. version_type=freebsd-$objformat
  13209. case $version_type in
  13210. freebsd-elf*)
  13211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13212. need_version=no
  13213. need_lib_prefix=no
  13214. ;;
  13215. freebsd-*)
  13216. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13217. need_version=yes
  13218. ;;
  13219. esac
  13220. shlibpath_var=LD_LIBRARY_PATH
  13221. case $host_os in
  13222. freebsd2*)
  13223. shlibpath_overrides_runpath=yes
  13224. ;;
  13225. freebsd3.[01]* | freebsdelf3.[01]*)
  13226. shlibpath_overrides_runpath=yes
  13227. hardcode_into_libs=yes
  13228. ;;
  13229. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13230. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13231. shlibpath_overrides_runpath=no
  13232. hardcode_into_libs=yes
  13233. ;;
  13234. freebsd*) # from 4.6 on
  13235. shlibpath_overrides_runpath=yes
  13236. hardcode_into_libs=yes
  13237. ;;
  13238. esac
  13239. ;;
  13240. gnu*)
  13241. version_type=linux
  13242. need_lib_prefix=no
  13243. need_version=no
  13244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13245. soname_spec='${libname}${release}${shared_ext}$major'
  13246. shlibpath_var=LD_LIBRARY_PATH
  13247. hardcode_into_libs=yes
  13248. ;;
  13249. hpux9* | hpux10* | hpux11*)
  13250. # Give a soname corresponding to the major version so that dld.sl refuses to
  13251. # link against other versions.
  13252. version_type=sunos
  13253. need_lib_prefix=no
  13254. need_version=no
  13255. case $host_cpu in
  13256. ia64*)
  13257. shrext_cmds='.so'
  13258. hardcode_into_libs=yes
  13259. dynamic_linker="$host_os dld.so"
  13260. shlibpath_var=LD_LIBRARY_PATH
  13261. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13263. soname_spec='${libname}${release}${shared_ext}$major'
  13264. if test "X$HPUX_IA64_MODE" = X32; then
  13265. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13266. else
  13267. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13268. fi
  13269. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13270. ;;
  13271. hppa*64*)
  13272. shrext_cmds='.sl'
  13273. hardcode_into_libs=yes
  13274. dynamic_linker="$host_os dld.sl"
  13275. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13276. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13278. soname_spec='${libname}${release}${shared_ext}$major'
  13279. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13280. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13281. ;;
  13282. *)
  13283. shrext_cmds='.sl'
  13284. dynamic_linker="$host_os dld.sl"
  13285. shlibpath_var=SHLIB_PATH
  13286. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13288. soname_spec='${libname}${release}${shared_ext}$major'
  13289. ;;
  13290. esac
  13291. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13292. postinstall_cmds='chmod 555 $lib'
  13293. ;;
  13294. interix3*)
  13295. version_type=linux
  13296. need_lib_prefix=no
  13297. need_version=no
  13298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13299. soname_spec='${libname}${release}${shared_ext}$major'
  13300. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13301. shlibpath_var=LD_LIBRARY_PATH
  13302. shlibpath_overrides_runpath=no
  13303. hardcode_into_libs=yes
  13304. ;;
  13305. irix5* | irix6* | nonstopux*)
  13306. case $host_os in
  13307. nonstopux*) version_type=nonstopux ;;
  13308. *)
  13309. if test "$lt_cv_prog_gnu_ld" = yes; then
  13310. version_type=linux
  13311. else
  13312. version_type=irix
  13313. fi ;;
  13314. esac
  13315. need_lib_prefix=no
  13316. need_version=no
  13317. soname_spec='${libname}${release}${shared_ext}$major'
  13318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13319. case $host_os in
  13320. irix5* | nonstopux*)
  13321. libsuff= shlibsuff=
  13322. ;;
  13323. *)
  13324. case $LD in # libtool.m4 will add one of these switches to LD
  13325. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13326. libsuff= shlibsuff= libmagic=32-bit;;
  13327. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13328. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13329. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13330. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13331. *) libsuff= shlibsuff= libmagic=never-match;;
  13332. esac
  13333. ;;
  13334. esac
  13335. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13336. shlibpath_overrides_runpath=no
  13337. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13338. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13339. hardcode_into_libs=yes
  13340. ;;
  13341. # No shared lib support for Linux oldld, aout, or coff.
  13342. linux*oldld* | linux*aout* | linux*coff*)
  13343. dynamic_linker=no
  13344. ;;
  13345. # This must be Linux ELF.
  13346. linux*)
  13347. version_type=linux
  13348. need_lib_prefix=no
  13349. need_version=no
  13350. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13351. soname_spec='${libname}${release}${shared_ext}$major'
  13352. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13353. shlibpath_var=LD_LIBRARY_PATH
  13354. shlibpath_overrides_runpath=no
  13355. # This implies no fast_install, which is unacceptable.
  13356. # Some rework will be needed to allow for fast_install
  13357. # before this can be enabled.
  13358. hardcode_into_libs=yes
  13359. # Append ld.so.conf contents to the search path
  13360. if test -f /etc/ld.so.conf; then
  13361. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13362. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13363. fi
  13364. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13365. # powerpc, because MkLinux only supported shared libraries with the
  13366. # GNU dynamic linker. Since this was broken with cross compilers,
  13367. # most powerpc-linux boxes support dynamic linking these days and
  13368. # people can always --disable-shared, the test was removed, and we
  13369. # assume the GNU/Linux dynamic linker is in use.
  13370. dynamic_linker='GNU/Linux ld.so'
  13371. ;;
  13372. knetbsd*-gnu)
  13373. version_type=linux
  13374. need_lib_prefix=no
  13375. need_version=no
  13376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13377. soname_spec='${libname}${release}${shared_ext}$major'
  13378. shlibpath_var=LD_LIBRARY_PATH
  13379. shlibpath_overrides_runpath=no
  13380. hardcode_into_libs=yes
  13381. dynamic_linker='GNU ld.so'
  13382. ;;
  13383. netbsd*)
  13384. version_type=sunos
  13385. need_lib_prefix=no
  13386. need_version=no
  13387. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13388. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13389. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13390. dynamic_linker='NetBSD (a.out) ld.so'
  13391. else
  13392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13393. soname_spec='${libname}${release}${shared_ext}$major'
  13394. dynamic_linker='NetBSD ld.elf_so'
  13395. fi
  13396. shlibpath_var=LD_LIBRARY_PATH
  13397. shlibpath_overrides_runpath=yes
  13398. hardcode_into_libs=yes
  13399. ;;
  13400. newsos6)
  13401. version_type=linux
  13402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13403. shlibpath_var=LD_LIBRARY_PATH
  13404. shlibpath_overrides_runpath=yes
  13405. ;;
  13406. nto-qnx*)
  13407. version_type=linux
  13408. need_lib_prefix=no
  13409. need_version=no
  13410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13411. soname_spec='${libname}${release}${shared_ext}$major'
  13412. shlibpath_var=LD_LIBRARY_PATH
  13413. shlibpath_overrides_runpath=yes
  13414. ;;
  13415. openbsd*)
  13416. version_type=sunos
  13417. sys_lib_dlsearch_path_spec="/usr/lib"
  13418. need_lib_prefix=no
  13419. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13420. case $host_os in
  13421. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13422. *) need_version=no ;;
  13423. esac
  13424. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13425. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13426. shlibpath_var=LD_LIBRARY_PATH
  13427. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13428. case $host_os in
  13429. openbsd2.[89] | openbsd2.[89].*)
  13430. shlibpath_overrides_runpath=no
  13431. ;;
  13432. *)
  13433. shlibpath_overrides_runpath=yes
  13434. ;;
  13435. esac
  13436. else
  13437. shlibpath_overrides_runpath=yes
  13438. fi
  13439. ;;
  13440. os2*)
  13441. libname_spec='$name'
  13442. shrext_cmds=".dll"
  13443. need_lib_prefix=no
  13444. library_names_spec='$libname${shared_ext} $libname.a'
  13445. dynamic_linker='OS/2 ld.exe'
  13446. shlibpath_var=LIBPATH
  13447. ;;
  13448. osf3* | osf4* | osf5*)
  13449. version_type=osf
  13450. need_lib_prefix=no
  13451. need_version=no
  13452. soname_spec='${libname}${release}${shared_ext}$major'
  13453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13454. shlibpath_var=LD_LIBRARY_PATH
  13455. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13456. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13457. ;;
  13458. solaris*)
  13459. version_type=linux
  13460. need_lib_prefix=no
  13461. need_version=no
  13462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13463. soname_spec='${libname}${release}${shared_ext}$major'
  13464. shlibpath_var=LD_LIBRARY_PATH
  13465. shlibpath_overrides_runpath=yes
  13466. hardcode_into_libs=yes
  13467. # ldd complains unless libraries are executable
  13468. postinstall_cmds='chmod +x $lib'
  13469. ;;
  13470. sunos4*)
  13471. version_type=sunos
  13472. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13473. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13474. shlibpath_var=LD_LIBRARY_PATH
  13475. shlibpath_overrides_runpath=yes
  13476. if test "$with_gnu_ld" = yes; then
  13477. need_lib_prefix=no
  13478. fi
  13479. need_version=yes
  13480. ;;
  13481. sysv4 | sysv4.3*)
  13482. version_type=linux
  13483. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13484. soname_spec='${libname}${release}${shared_ext}$major'
  13485. shlibpath_var=LD_LIBRARY_PATH
  13486. case $host_vendor in
  13487. sni)
  13488. shlibpath_overrides_runpath=no
  13489. need_lib_prefix=no
  13490. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13491. runpath_var=LD_RUN_PATH
  13492. ;;
  13493. siemens)
  13494. need_lib_prefix=no
  13495. ;;
  13496. motorola)
  13497. need_lib_prefix=no
  13498. need_version=no
  13499. shlibpath_overrides_runpath=no
  13500. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13501. ;;
  13502. esac
  13503. ;;
  13504. sysv4*MP*)
  13505. if test -d /usr/nec ;then
  13506. version_type=linux
  13507. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13508. soname_spec='$libname${shared_ext}.$major'
  13509. shlibpath_var=LD_LIBRARY_PATH
  13510. fi
  13511. ;;
  13512. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13513. version_type=freebsd-elf
  13514. need_lib_prefix=no
  13515. need_version=no
  13516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13517. soname_spec='${libname}${release}${shared_ext}$major'
  13518. shlibpath_var=LD_LIBRARY_PATH
  13519. hardcode_into_libs=yes
  13520. if test "$with_gnu_ld" = yes; then
  13521. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13522. shlibpath_overrides_runpath=no
  13523. else
  13524. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13525. shlibpath_overrides_runpath=yes
  13526. case $host_os in
  13527. sco3.2v5*)
  13528. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13529. ;;
  13530. esac
  13531. fi
  13532. sys_lib_dlsearch_path_spec='/usr/lib'
  13533. ;;
  13534. uts4*)
  13535. version_type=linux
  13536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13537. soname_spec='${libname}${release}${shared_ext}$major'
  13538. shlibpath_var=LD_LIBRARY_PATH
  13539. ;;
  13540. *)
  13541. dynamic_linker=no
  13542. ;;
  13543. esac
  13544. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13545. echo "${ECHO_T}$dynamic_linker" >&6; }
  13546. test "$dynamic_linker" = no && can_build_shared=no
  13547. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13548. if test "$GCC" = yes; then
  13549. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13550. fi
  13551. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13552. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  13553. hardcode_action_CXX=
  13554. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  13555. test -n "$runpath_var_CXX" || \
  13556. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13557. # We can hardcode non-existant directories.
  13558. if test "$hardcode_direct_CXX" != no &&
  13559. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13560. # have to relink, otherwise we might link with an installed library
  13561. # when we should be linking with a yet-to-be-installed one
  13562. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13563. test "$hardcode_minus_L_CXX" != no; then
  13564. # Linking always hardcodes the temporary library directory.
  13565. hardcode_action_CXX=relink
  13566. else
  13567. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13568. hardcode_action_CXX=immediate
  13569. fi
  13570. else
  13571. # We cannot hardcode anything, or else we can only hardcode existing
  13572. # directories.
  13573. hardcode_action_CXX=unsupported
  13574. fi
  13575. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  13576. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  13577. if test "$hardcode_action_CXX" = relink; then
  13578. # Fast installation is not supported
  13579. enable_fast_install=no
  13580. elif test "$shlibpath_overrides_runpath" = yes ||
  13581. test "$enable_shared" = no; then
  13582. # Fast installation is not necessary
  13583. enable_fast_install=needless
  13584. fi
  13585. # The else clause should only fire when bootstrapping the
  13586. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13587. # with your package, and you will get complaints that there are
  13588. # no rules to generate ltmain.sh.
  13589. if test -f "$ltmain"; then
  13590. # See if we are running on zsh, and set the options which allow our commands through
  13591. # without removal of \ escapes.
  13592. if test -n "${ZSH_VERSION+set}" ; then
  13593. setopt NO_GLOB_SUBST
  13594. fi
  13595. # Now quote all the things that may contain metacharacters while being
  13596. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13597. # variables and quote the copies for generation of the libtool script.
  13598. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13599. SED SHELL STRIP \
  13600. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13601. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13602. deplibs_check_method reload_flag reload_cmds need_locks \
  13603. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13604. lt_cv_sys_global_symbol_to_c_name_address \
  13605. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13606. old_postinstall_cmds old_postuninstall_cmds \
  13607. compiler_CXX \
  13608. CC_CXX \
  13609. LD_CXX \
  13610. lt_prog_compiler_wl_CXX \
  13611. lt_prog_compiler_pic_CXX \
  13612. lt_prog_compiler_static_CXX \
  13613. lt_prog_compiler_no_builtin_flag_CXX \
  13614. export_dynamic_flag_spec_CXX \
  13615. thread_safe_flag_spec_CXX \
  13616. whole_archive_flag_spec_CXX \
  13617. enable_shared_with_static_runtimes_CXX \
  13618. old_archive_cmds_CXX \
  13619. old_archive_from_new_cmds_CXX \
  13620. predep_objects_CXX \
  13621. postdep_objects_CXX \
  13622. predeps_CXX \
  13623. postdeps_CXX \
  13624. compiler_lib_search_path_CXX \
  13625. archive_cmds_CXX \
  13626. archive_expsym_cmds_CXX \
  13627. postinstall_cmds_CXX \
  13628. postuninstall_cmds_CXX \
  13629. old_archive_from_expsyms_cmds_CXX \
  13630. allow_undefined_flag_CXX \
  13631. no_undefined_flag_CXX \
  13632. export_symbols_cmds_CXX \
  13633. hardcode_libdir_flag_spec_CXX \
  13634. hardcode_libdir_flag_spec_ld_CXX \
  13635. hardcode_libdir_separator_CXX \
  13636. hardcode_automatic_CXX \
  13637. module_cmds_CXX \
  13638. module_expsym_cmds_CXX \
  13639. lt_cv_prog_compiler_c_o_CXX \
  13640. exclude_expsyms_CXX \
  13641. include_expsyms_CXX; do
  13642. case $var in
  13643. old_archive_cmds_CXX | \
  13644. old_archive_from_new_cmds_CXX | \
  13645. archive_cmds_CXX | \
  13646. archive_expsym_cmds_CXX | \
  13647. module_cmds_CXX | \
  13648. module_expsym_cmds_CXX | \
  13649. old_archive_from_expsyms_cmds_CXX | \
  13650. export_symbols_cmds_CXX | \
  13651. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13652. postinstall_cmds | postuninstall_cmds | \
  13653. old_postinstall_cmds | old_postuninstall_cmds | \
  13654. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13655. # Double-quote double-evaled strings.
  13656. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13657. ;;
  13658. *)
  13659. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13660. ;;
  13661. esac
  13662. done
  13663. case $lt_echo in
  13664. *'\$0 --fallback-echo"')
  13665. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13666. ;;
  13667. esac
  13668. cfgfile="$ofile"
  13669. cat <<__EOF__ >> "$cfgfile"
  13670. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13671. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13672. # Shell to use when invoking shell scripts.
  13673. SHELL=$lt_SHELL
  13674. # Whether or not to build shared libraries.
  13675. build_libtool_libs=$enable_shared
  13676. # Whether or not to build static libraries.
  13677. build_old_libs=$enable_static
  13678. # Whether or not to add -lc for building shared libraries.
  13679. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  13680. # Whether or not to disallow shared libs when runtime libs are static
  13681. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  13682. # Whether or not to optimize for fast installation.
  13683. fast_install=$enable_fast_install
  13684. # The host system.
  13685. host_alias=$host_alias
  13686. host=$host
  13687. host_os=$host_os
  13688. # The build system.
  13689. build_alias=$build_alias
  13690. build=$build
  13691. build_os=$build_os
  13692. # An echo program that does not interpret backslashes.
  13693. echo=$lt_echo
  13694. # The archiver.
  13695. AR=$lt_AR
  13696. AR_FLAGS=$lt_AR_FLAGS
  13697. # A C compiler.
  13698. LTCC=$lt_LTCC
  13699. # LTCC compiler flags.
  13700. LTCFLAGS=$lt_LTCFLAGS
  13701. # A language-specific compiler.
  13702. CC=$lt_compiler_CXX
  13703. # Is the compiler the GNU C compiler?
  13704. with_gcc=$GCC_CXX
  13705. # An ERE matcher.
  13706. EGREP=$lt_EGREP
  13707. # The linker used to build libraries.
  13708. LD=$lt_LD_CXX
  13709. # Whether we need hard or soft links.
  13710. LN_S=$lt_LN_S
  13711. # A BSD-compatible nm program.
  13712. NM=$lt_NM
  13713. # A symbol stripping program
  13714. STRIP=$lt_STRIP
  13715. # Used to examine libraries when file_magic_cmd begins "file"
  13716. MAGIC_CMD=$MAGIC_CMD
  13717. # Used on cygwin: DLL creation program.
  13718. DLLTOOL="$DLLTOOL"
  13719. # Used on cygwin: object dumper.
  13720. OBJDUMP="$OBJDUMP"
  13721. # Used on cygwin: assembler.
  13722. AS="$AS"
  13723. # The name of the directory that contains temporary libtool files.
  13724. objdir=$objdir
  13725. # How to create reloadable object files.
  13726. reload_flag=$lt_reload_flag
  13727. reload_cmds=$lt_reload_cmds
  13728. # How to pass a linker flag through the compiler.
  13729. wl=$lt_lt_prog_compiler_wl_CXX
  13730. # Object file suffix (normally "o").
  13731. objext="$ac_objext"
  13732. # Old archive suffix (normally "a").
  13733. libext="$libext"
  13734. # Shared library suffix (normally ".so").
  13735. shrext_cmds='$shrext_cmds'
  13736. # Executable file suffix (normally "").
  13737. exeext="$exeext"
  13738. # Additional compiler flags for building library objects.
  13739. pic_flag=$lt_lt_prog_compiler_pic_CXX
  13740. pic_mode=$pic_mode
  13741. # What is the maximum length of a command?
  13742. max_cmd_len=$lt_cv_sys_max_cmd_len
  13743. # Does compiler simultaneously support -c and -o options?
  13744. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  13745. # Must we lock files when doing compilation?
  13746. need_locks=$lt_need_locks
  13747. # Do we need the lib prefix for modules?
  13748. need_lib_prefix=$need_lib_prefix
  13749. # Do we need a version for libraries?
  13750. need_version=$need_version
  13751. # Whether dlopen is supported.
  13752. dlopen_support=$enable_dlopen
  13753. # Whether dlopen of programs is supported.
  13754. dlopen_self=$enable_dlopen_self
  13755. # Whether dlopen of statically linked programs is supported.
  13756. dlopen_self_static=$enable_dlopen_self_static
  13757. # Compiler flag to prevent dynamic linking.
  13758. link_static_flag=$lt_lt_prog_compiler_static_CXX
  13759. # Compiler flag to turn off builtin functions.
  13760. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  13761. # Compiler flag to allow reflexive dlopens.
  13762. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  13763. # Compiler flag to generate shared objects directly from archives.
  13764. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  13765. # Compiler flag to generate thread-safe objects.
  13766. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  13767. # Library versioning type.
  13768. version_type=$version_type
  13769. # Format of library name prefix.
  13770. libname_spec=$lt_libname_spec
  13771. # List of archive names. First name is the real one, the rest are links.
  13772. # The last name is the one that the linker finds with -lNAME.
  13773. library_names_spec=$lt_library_names_spec
  13774. # The coded name of the library, if different from the real name.
  13775. soname_spec=$lt_soname_spec
  13776. # Commands used to build and install an old-style archive.
  13777. RANLIB=$lt_RANLIB
  13778. old_archive_cmds=$lt_old_archive_cmds_CXX
  13779. old_postinstall_cmds=$lt_old_postinstall_cmds
  13780. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13781. # Create an old-style archive from a shared archive.
  13782. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  13783. # Create a temporary old-style archive to link instead of a shared archive.
  13784. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  13785. # Commands used to build and install a shared archive.
  13786. archive_cmds=$lt_archive_cmds_CXX
  13787. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  13788. postinstall_cmds=$lt_postinstall_cmds
  13789. postuninstall_cmds=$lt_postuninstall_cmds
  13790. # Commands used to build a loadable module (assumed same as above if empty)
  13791. module_cmds=$lt_module_cmds_CXX
  13792. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  13793. # Commands to strip libraries.
  13794. old_striplib=$lt_old_striplib
  13795. striplib=$lt_striplib
  13796. # Dependencies to place before the objects being linked to create a
  13797. # shared library.
  13798. predep_objects=$lt_predep_objects_CXX
  13799. # Dependencies to place after the objects being linked to create a
  13800. # shared library.
  13801. postdep_objects=$lt_postdep_objects_CXX
  13802. # Dependencies to place before the objects being linked to create a
  13803. # shared library.
  13804. predeps=$lt_predeps_CXX
  13805. # Dependencies to place after the objects being linked to create a
  13806. # shared library.
  13807. postdeps=$lt_postdeps_CXX
  13808. # The library search path used internally by the compiler when linking
  13809. # a shared library.
  13810. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  13811. # Method to check whether dependent libraries are shared objects.
  13812. deplibs_check_method=$lt_deplibs_check_method
  13813. # Command to use when deplibs_check_method == file_magic.
  13814. file_magic_cmd=$lt_file_magic_cmd
  13815. # Flag that allows shared libraries with undefined symbols to be built.
  13816. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  13817. # Flag that forces no undefined symbols.
  13818. no_undefined_flag=$lt_no_undefined_flag_CXX
  13819. # Commands used to finish a libtool library installation in a directory.
  13820. finish_cmds=$lt_finish_cmds
  13821. # Same as above, but a single script fragment to be evaled but not shown.
  13822. finish_eval=$lt_finish_eval
  13823. # Take the output of nm and produce a listing of raw symbols and C names.
  13824. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13825. # Transform the output of nm in a proper C declaration
  13826. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13827. # Transform the output of nm in a C name address pair
  13828. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13829. # This is the shared library runtime path variable.
  13830. runpath_var=$runpath_var
  13831. # This is the shared library path variable.
  13832. shlibpath_var=$shlibpath_var
  13833. # Is shlibpath searched before the hard-coded library search path?
  13834. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13835. # How to hardcode a shared library path into an executable.
  13836. hardcode_action=$hardcode_action_CXX
  13837. # Whether we should hardcode library paths into libraries.
  13838. hardcode_into_libs=$hardcode_into_libs
  13839. # Flag to hardcode \$libdir into a binary during linking.
  13840. # This must work even if \$libdir does not exist.
  13841. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  13842. # If ld is used when linking, flag to hardcode \$libdir into
  13843. # a binary during linking. This must work even if \$libdir does
  13844. # not exist.
  13845. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  13846. # Whether we need a single -rpath flag with a separated argument.
  13847. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  13848. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13849. # resulting binary.
  13850. hardcode_direct=$hardcode_direct_CXX
  13851. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13852. # resulting binary.
  13853. hardcode_minus_L=$hardcode_minus_L_CXX
  13854. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13855. # the resulting binary.
  13856. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  13857. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13858. # and all subsequent libraries and executables linked against it.
  13859. hardcode_automatic=$hardcode_automatic_CXX
  13860. # Variables whose values should be saved in libtool wrapper scripts and
  13861. # restored at relink time.
  13862. variables_saved_for_relink="$variables_saved_for_relink"
  13863. # Whether libtool must link a program against all its dependency libraries.
  13864. link_all_deplibs=$link_all_deplibs_CXX
  13865. # Compile-time system search path for libraries
  13866. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13867. # Run-time system search path for libraries
  13868. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13869. # Fix the shell variable \$srcfile for the compiler.
  13870. fix_srcfile_path="$fix_srcfile_path_CXX"
  13871. # Set to yes if exported symbols are required.
  13872. always_export_symbols=$always_export_symbols_CXX
  13873. # The commands to list exported symbols.
  13874. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  13875. # The commands to extract the exported symbol list from a shared archive.
  13876. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13877. # Symbols that should not be listed in the preloaded symbols.
  13878. exclude_expsyms=$lt_exclude_expsyms_CXX
  13879. # Symbols that must always be exported.
  13880. include_expsyms=$lt_include_expsyms_CXX
  13881. # ### END LIBTOOL TAG CONFIG: $tagname
  13882. __EOF__
  13883. else
  13884. # If there is no Makefile yet, we rely on a make rule to execute
  13885. # `config.status --recheck' to rerun these tests and create the
  13886. # libtool script then.
  13887. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13888. if test -f "$ltmain_in"; then
  13889. test -f Makefile && make "$ltmain"
  13890. fi
  13891. fi
  13892. ac_ext=c
  13893. ac_cpp='$CPP $CPPFLAGS'
  13894. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13895. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13896. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13897. CC=$lt_save_CC
  13898. LDCXX=$LD
  13899. LD=$lt_save_LD
  13900. GCC=$lt_save_GCC
  13901. with_gnu_ldcxx=$with_gnu_ld
  13902. with_gnu_ld=$lt_save_with_gnu_ld
  13903. lt_cv_path_LDCXX=$lt_cv_path_LD
  13904. lt_cv_path_LD=$lt_save_path_LD
  13905. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13906. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13907. else
  13908. tagname=""
  13909. fi
  13910. ;;
  13911. F77)
  13912. if test -n "$F77" && test "X$F77" != "Xno"; then
  13913. ac_ext=f
  13914. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  13915. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13916. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  13917. archive_cmds_need_lc_F77=no
  13918. allow_undefined_flag_F77=
  13919. always_export_symbols_F77=no
  13920. archive_expsym_cmds_F77=
  13921. export_dynamic_flag_spec_F77=
  13922. hardcode_direct_F77=no
  13923. hardcode_libdir_flag_spec_F77=
  13924. hardcode_libdir_flag_spec_ld_F77=
  13925. hardcode_libdir_separator_F77=
  13926. hardcode_minus_L_F77=no
  13927. hardcode_automatic_F77=no
  13928. module_cmds_F77=
  13929. module_expsym_cmds_F77=
  13930. link_all_deplibs_F77=unknown
  13931. old_archive_cmds_F77=$old_archive_cmds
  13932. no_undefined_flag_F77=
  13933. whole_archive_flag_spec_F77=
  13934. enable_shared_with_static_runtimes_F77=no
  13935. # Source file extension for f77 test sources.
  13936. ac_ext=f
  13937. # Object file extension for compiled f77 test sources.
  13938. objext=o
  13939. objext_F77=$objext
  13940. # Code to be used in simple compile tests
  13941. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  13942. # Code to be used in simple link tests
  13943. lt_simple_link_test_code=" program t\n end\n"
  13944. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13945. # If no C compiler was specified, use CC.
  13946. LTCC=${LTCC-"$CC"}
  13947. # If no C compiler flags were specified, use CFLAGS.
  13948. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13949. # Allow CC to be a program name with arguments.
  13950. compiler=$CC
  13951. # save warnings/boilerplate of simple test code
  13952. ac_outfile=conftest.$ac_objext
  13953. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  13954. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13955. _lt_compiler_boilerplate=`cat conftest.err`
  13956. $rm conftest*
  13957. ac_outfile=conftest.$ac_objext
  13958. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  13959. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13960. _lt_linker_boilerplate=`cat conftest.err`
  13961. $rm conftest*
  13962. # Allow CC to be a program name with arguments.
  13963. lt_save_CC="$CC"
  13964. CC=${F77-"f77"}
  13965. compiler=$CC
  13966. compiler_F77=$CC
  13967. for cc_temp in $compiler""; do
  13968. case $cc_temp in
  13969. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13970. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13971. \-*) ;;
  13972. *) break;;
  13973. esac
  13974. done
  13975. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13976. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  13977. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  13978. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  13979. echo "${ECHO_T}$can_build_shared" >&6; }
  13980. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  13981. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  13982. test "$can_build_shared" = "no" && enable_shared=no
  13983. # On AIX, shared libraries and static libraries use the same namespace, and
  13984. # are all built from PIC.
  13985. case $host_os in
  13986. aix3*)
  13987. test "$enable_shared" = yes && enable_static=no
  13988. if test -n "$RANLIB"; then
  13989. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13990. postinstall_cmds='$RANLIB $lib'
  13991. fi
  13992. ;;
  13993. aix4* | aix5*)
  13994. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  13995. test "$enable_shared" = yes && enable_static=no
  13996. fi
  13997. ;;
  13998. esac
  13999. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  14000. echo "${ECHO_T}$enable_shared" >&6; }
  14001. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  14002. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  14003. # Make sure either enable_shared or enable_static is yes.
  14004. test "$enable_shared" = yes || enable_static=yes
  14005. { echo "$as_me:$LINENO: result: $enable_static" >&5
  14006. echo "${ECHO_T}$enable_static" >&6; }
  14007. GCC_F77="$G77"
  14008. LD_F77="$LD"
  14009. lt_prog_compiler_wl_F77=
  14010. lt_prog_compiler_pic_F77=
  14011. lt_prog_compiler_static_F77=
  14012. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14013. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14014. if test "$GCC" = yes; then
  14015. lt_prog_compiler_wl_F77='-Wl,'
  14016. lt_prog_compiler_static_F77='-static'
  14017. case $host_os in
  14018. aix*)
  14019. # All AIX code is PIC.
  14020. if test "$host_cpu" = ia64; then
  14021. # AIX 5 now supports IA64 processor
  14022. lt_prog_compiler_static_F77='-Bstatic'
  14023. fi
  14024. ;;
  14025. amigaos*)
  14026. # FIXME: we need at least 68020 code to build shared libraries, but
  14027. # adding the `-m68020' flag to GCC prevents building anything better,
  14028. # like `-m68040'.
  14029. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  14030. ;;
  14031. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14032. # PIC is the default for these OSes.
  14033. ;;
  14034. mingw* | pw32* | os2*)
  14035. # This hack is so that the source file can tell whether it is being
  14036. # built for inclusion in a dll (and should export symbols for example).
  14037. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  14038. ;;
  14039. darwin* | rhapsody*)
  14040. # PIC is the default on this platform
  14041. # Common symbols not allowed in MH_DYLIB files
  14042. lt_prog_compiler_pic_F77='-fno-common'
  14043. ;;
  14044. interix3*)
  14045. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14046. # Instead, we relocate shared libraries at runtime.
  14047. ;;
  14048. msdosdjgpp*)
  14049. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14050. # on systems that don't support them.
  14051. lt_prog_compiler_can_build_shared_F77=no
  14052. enable_shared=no
  14053. ;;
  14054. sysv4*MP*)
  14055. if test -d /usr/nec; then
  14056. lt_prog_compiler_pic_F77=-Kconform_pic
  14057. fi
  14058. ;;
  14059. hpux*)
  14060. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14061. # not for PA HP-UX.
  14062. case $host_cpu in
  14063. hppa*64*|ia64*)
  14064. # +Z the default
  14065. ;;
  14066. *)
  14067. lt_prog_compiler_pic_F77='-fPIC'
  14068. ;;
  14069. esac
  14070. ;;
  14071. *)
  14072. lt_prog_compiler_pic_F77='-fPIC'
  14073. ;;
  14074. esac
  14075. else
  14076. # PORTME Check for flag to pass linker flags through the system compiler.
  14077. case $host_os in
  14078. aix*)
  14079. lt_prog_compiler_wl_F77='-Wl,'
  14080. if test "$host_cpu" = ia64; then
  14081. # AIX 5 now supports IA64 processor
  14082. lt_prog_compiler_static_F77='-Bstatic'
  14083. else
  14084. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  14085. fi
  14086. ;;
  14087. darwin*)
  14088. # PIC is the default on this platform
  14089. # Common symbols not allowed in MH_DYLIB files
  14090. case $cc_basename in
  14091. xlc*)
  14092. lt_prog_compiler_pic_F77='-qnocommon'
  14093. lt_prog_compiler_wl_F77='-Wl,'
  14094. ;;
  14095. esac
  14096. ;;
  14097. mingw* | pw32* | os2*)
  14098. # This hack is so that the source file can tell whether it is being
  14099. # built for inclusion in a dll (and should export symbols for example).
  14100. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  14101. ;;
  14102. hpux9* | hpux10* | hpux11*)
  14103. lt_prog_compiler_wl_F77='-Wl,'
  14104. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14105. # not for PA HP-UX.
  14106. case $host_cpu in
  14107. hppa*64*|ia64*)
  14108. # +Z the default
  14109. ;;
  14110. *)
  14111. lt_prog_compiler_pic_F77='+Z'
  14112. ;;
  14113. esac
  14114. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14115. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  14116. ;;
  14117. irix5* | irix6* | nonstopux*)
  14118. lt_prog_compiler_wl_F77='-Wl,'
  14119. # PIC (with -KPIC) is the default.
  14120. lt_prog_compiler_static_F77='-non_shared'
  14121. ;;
  14122. newsos6)
  14123. lt_prog_compiler_pic_F77='-KPIC'
  14124. lt_prog_compiler_static_F77='-Bstatic'
  14125. ;;
  14126. linux*)
  14127. case $cc_basename in
  14128. icc* | ecc*)
  14129. lt_prog_compiler_wl_F77='-Wl,'
  14130. lt_prog_compiler_pic_F77='-KPIC'
  14131. lt_prog_compiler_static_F77='-static'
  14132. ;;
  14133. pgcc* | pgf77* | pgf90* | pgf95*)
  14134. # Portland Group compilers (*not* the Pentium gcc compiler,
  14135. # which looks to be a dead project)
  14136. lt_prog_compiler_wl_F77='-Wl,'
  14137. lt_prog_compiler_pic_F77='-fpic'
  14138. lt_prog_compiler_static_F77='-Bstatic'
  14139. ;;
  14140. ccc*)
  14141. lt_prog_compiler_wl_F77='-Wl,'
  14142. # All Alpha code is PIC.
  14143. lt_prog_compiler_static_F77='-non_shared'
  14144. ;;
  14145. esac
  14146. ;;
  14147. osf3* | osf4* | osf5*)
  14148. lt_prog_compiler_wl_F77='-Wl,'
  14149. # All OSF/1 code is PIC.
  14150. lt_prog_compiler_static_F77='-non_shared'
  14151. ;;
  14152. solaris*)
  14153. lt_prog_compiler_pic_F77='-KPIC'
  14154. lt_prog_compiler_static_F77='-Bstatic'
  14155. case $cc_basename in
  14156. f77* | f90* | f95*)
  14157. lt_prog_compiler_wl_F77='-Qoption ld ';;
  14158. *)
  14159. lt_prog_compiler_wl_F77='-Wl,';;
  14160. esac
  14161. ;;
  14162. sunos4*)
  14163. lt_prog_compiler_wl_F77='-Qoption ld '
  14164. lt_prog_compiler_pic_F77='-PIC'
  14165. lt_prog_compiler_static_F77='-Bstatic'
  14166. ;;
  14167. sysv4 | sysv4.2uw2* | sysv4.3*)
  14168. lt_prog_compiler_wl_F77='-Wl,'
  14169. lt_prog_compiler_pic_F77='-KPIC'
  14170. lt_prog_compiler_static_F77='-Bstatic'
  14171. ;;
  14172. sysv4*MP*)
  14173. if test -d /usr/nec ;then
  14174. lt_prog_compiler_pic_F77='-Kconform_pic'
  14175. lt_prog_compiler_static_F77='-Bstatic'
  14176. fi
  14177. ;;
  14178. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14179. lt_prog_compiler_wl_F77='-Wl,'
  14180. lt_prog_compiler_pic_F77='-KPIC'
  14181. lt_prog_compiler_static_F77='-Bstatic'
  14182. ;;
  14183. unicos*)
  14184. lt_prog_compiler_wl_F77='-Wl,'
  14185. lt_prog_compiler_can_build_shared_F77=no
  14186. ;;
  14187. uts4*)
  14188. lt_prog_compiler_pic_F77='-pic'
  14189. lt_prog_compiler_static_F77='-Bstatic'
  14190. ;;
  14191. *)
  14192. lt_prog_compiler_can_build_shared_F77=no
  14193. ;;
  14194. esac
  14195. fi
  14196. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  14197. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  14198. #
  14199. # Check to make sure the PIC flag actually works.
  14200. #
  14201. if test -n "$lt_prog_compiler_pic_F77"; then
  14202. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  14203. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  14204. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  14205. echo $ECHO_N "(cached) $ECHO_C" >&6
  14206. else
  14207. lt_prog_compiler_pic_works_F77=no
  14208. ac_outfile=conftest.$ac_objext
  14209. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14210. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  14211. # Insert the option either (1) after the last *FLAGS variable, or
  14212. # (2) before a word containing "conftest.", or (3) at the end.
  14213. # Note that $ac_compile itself does not contain backslashes and begins
  14214. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14215. # The option is referenced via a variable to avoid confusing sed.
  14216. lt_compile=`echo "$ac_compile" | $SED \
  14217. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14218. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14219. -e 's:$: $lt_compiler_flag:'`
  14220. (eval echo "\"\$as_me:15932: $lt_compile\"" >&5)
  14221. (eval "$lt_compile" 2>conftest.err)
  14222. ac_status=$?
  14223. cat conftest.err >&5
  14224. echo "$as_me:15936: \$? = $ac_status" >&5
  14225. if (exit $ac_status) && test -s "$ac_outfile"; then
  14226. # The compiler can only warn and ignore the option if not recognized
  14227. # So say no if there are warnings other than the usual output.
  14228. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14229. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14230. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14231. lt_prog_compiler_pic_works_F77=yes
  14232. fi
  14233. fi
  14234. $rm conftest*
  14235. fi
  14236. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  14237. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  14238. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  14239. case $lt_prog_compiler_pic_F77 in
  14240. "" | " "*) ;;
  14241. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  14242. esac
  14243. else
  14244. lt_prog_compiler_pic_F77=
  14245. lt_prog_compiler_can_build_shared_F77=no
  14246. fi
  14247. fi
  14248. case $host_os in
  14249. # For platforms which do not support PIC, -DPIC is meaningless:
  14250. *djgpp*)
  14251. lt_prog_compiler_pic_F77=
  14252. ;;
  14253. *)
  14254. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  14255. ;;
  14256. esac
  14257. #
  14258. # Check to make sure the static flag actually works.
  14259. #
  14260. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  14261. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14262. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  14263. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  14264. echo $ECHO_N "(cached) $ECHO_C" >&6
  14265. else
  14266. lt_prog_compiler_static_works_F77=no
  14267. save_LDFLAGS="$LDFLAGS"
  14268. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14269. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14270. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14271. # The linker can only warn and ignore the option if not recognized
  14272. # So say no if there are warnings
  14273. if test -s conftest.err; then
  14274. # Append any errors to the config.log.
  14275. cat conftest.err 1>&5
  14276. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14277. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14278. if diff conftest.exp conftest.er2 >/dev/null; then
  14279. lt_prog_compiler_static_works_F77=yes
  14280. fi
  14281. else
  14282. lt_prog_compiler_static_works_F77=yes
  14283. fi
  14284. fi
  14285. $rm conftest*
  14286. LDFLAGS="$save_LDFLAGS"
  14287. fi
  14288. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  14289. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  14290. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  14291. :
  14292. else
  14293. lt_prog_compiler_static_F77=
  14294. fi
  14295. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14296. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  14297. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  14298. echo $ECHO_N "(cached) $ECHO_C" >&6
  14299. else
  14300. lt_cv_prog_compiler_c_o_F77=no
  14301. $rm -r conftest 2>/dev/null
  14302. mkdir conftest
  14303. cd conftest
  14304. mkdir out
  14305. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14306. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14307. # Insert the option either (1) after the last *FLAGS variable, or
  14308. # (2) before a word containing "conftest.", or (3) at the end.
  14309. # Note that $ac_compile itself does not contain backslashes and begins
  14310. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14311. lt_compile=`echo "$ac_compile" | $SED \
  14312. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14313. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14314. -e 's:$: $lt_compiler_flag:'`
  14315. (eval echo "\"\$as_me:16036: $lt_compile\"" >&5)
  14316. (eval "$lt_compile" 2>out/conftest.err)
  14317. ac_status=$?
  14318. cat out/conftest.err >&5
  14319. echo "$as_me:16040: \$? = $ac_status" >&5
  14320. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14321. then
  14322. # The compiler can only warn and ignore the option if not recognized
  14323. # So say no if there are warnings
  14324. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14325. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14326. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14327. lt_cv_prog_compiler_c_o_F77=yes
  14328. fi
  14329. fi
  14330. chmod u+w . 2>&5
  14331. $rm conftest*
  14332. # SGI C++ compiler will create directory out/ii_files/ for
  14333. # template instantiation
  14334. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14335. $rm out/* && rmdir out
  14336. cd ..
  14337. rmdir conftest
  14338. $rm conftest*
  14339. fi
  14340. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  14341. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  14342. hard_links="nottested"
  14343. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  14344. # do not overwrite the value of need_locks provided by the user
  14345. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14346. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  14347. hard_links=yes
  14348. $rm conftest*
  14349. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14350. touch conftest.a
  14351. ln conftest.a conftest.b 2>&5 || hard_links=no
  14352. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14353. { echo "$as_me:$LINENO: result: $hard_links" >&5
  14354. echo "${ECHO_T}$hard_links" >&6; }
  14355. if test "$hard_links" = no; then
  14356. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14357. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14358. need_locks=warn
  14359. fi
  14360. else
  14361. need_locks=no
  14362. fi
  14363. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14364. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  14365. runpath_var=
  14366. allow_undefined_flag_F77=
  14367. enable_shared_with_static_runtimes_F77=no
  14368. archive_cmds_F77=
  14369. archive_expsym_cmds_F77=
  14370. old_archive_From_new_cmds_F77=
  14371. old_archive_from_expsyms_cmds_F77=
  14372. export_dynamic_flag_spec_F77=
  14373. whole_archive_flag_spec_F77=
  14374. thread_safe_flag_spec_F77=
  14375. hardcode_libdir_flag_spec_F77=
  14376. hardcode_libdir_flag_spec_ld_F77=
  14377. hardcode_libdir_separator_F77=
  14378. hardcode_direct_F77=no
  14379. hardcode_minus_L_F77=no
  14380. hardcode_shlibpath_var_F77=unsupported
  14381. link_all_deplibs_F77=unknown
  14382. hardcode_automatic_F77=no
  14383. module_cmds_F77=
  14384. module_expsym_cmds_F77=
  14385. always_export_symbols_F77=no
  14386. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14387. # include_expsyms should be a list of space-separated symbols to be *always*
  14388. # included in the symbol list
  14389. include_expsyms_F77=
  14390. # exclude_expsyms can be an extended regexp of symbols to exclude
  14391. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14392. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14393. # as well as any symbol that contains `d'.
  14394. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  14395. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14396. # platforms (ab)use it in PIC code, but their linkers get confused if
  14397. # the symbol is explicitly referenced. Since portable code cannot
  14398. # rely on this symbol name, it's probably fine to never include it in
  14399. # preloaded symbol tables.
  14400. extract_expsyms_cmds=
  14401. # Just being paranoid about ensuring that cc_basename is set.
  14402. for cc_temp in $compiler""; do
  14403. case $cc_temp in
  14404. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14405. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14406. \-*) ;;
  14407. *) break;;
  14408. esac
  14409. done
  14410. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14411. case $host_os in
  14412. cygwin* | mingw* | pw32*)
  14413. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14414. # When not using gcc, we currently assume that we are using
  14415. # Microsoft Visual C++.
  14416. if test "$GCC" != yes; then
  14417. with_gnu_ld=no
  14418. fi
  14419. ;;
  14420. interix*)
  14421. # we just hope/assume this is gcc and not c89 (= MSVC++)
  14422. with_gnu_ld=yes
  14423. ;;
  14424. openbsd*)
  14425. with_gnu_ld=no
  14426. ;;
  14427. esac
  14428. ld_shlibs_F77=yes
  14429. if test "$with_gnu_ld" = yes; then
  14430. # If archive_cmds runs LD, not CC, wlarc should be empty
  14431. wlarc='${wl}'
  14432. # Set some defaults for GNU ld with shared library support. These
  14433. # are reset later if shared libraries are not supported. Putting them
  14434. # here allows them to be overridden if necessary.
  14435. runpath_var=LD_RUN_PATH
  14436. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  14437. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  14438. # ancient GNU ld didn't support --whole-archive et. al.
  14439. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14440. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14441. else
  14442. whole_archive_flag_spec_F77=
  14443. fi
  14444. supports_anon_versioning=no
  14445. case `$LD -v 2>/dev/null` in
  14446. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14447. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14448. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14449. *\ 2.11.*) ;; # other 2.11 versions
  14450. *) supports_anon_versioning=yes ;;
  14451. esac
  14452. # See if GNU ld supports shared libraries.
  14453. case $host_os in
  14454. aix3* | aix4* | aix5*)
  14455. # On AIX/PPC, the GNU linker is very broken
  14456. if test "$host_cpu" != ia64; then
  14457. ld_shlibs_F77=no
  14458. cat <<EOF 1>&2
  14459. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14460. *** to be unable to reliably create shared libraries on AIX.
  14461. *** Therefore, libtool is disabling shared libraries support. If you
  14462. *** really care for shared libraries, you may want to modify your PATH
  14463. *** so that a non-GNU linker is found, and then restart.
  14464. EOF
  14465. fi
  14466. ;;
  14467. amigaos*)
  14468. archive_cmds_F77='$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)'
  14469. hardcode_libdir_flag_spec_F77='-L$libdir'
  14470. hardcode_minus_L_F77=yes
  14471. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  14472. # that the semantics of dynamic libraries on AmigaOS, at least up
  14473. # to version 4, is to share data among multiple programs linked
  14474. # with the same dynamic library. Since this doesn't match the
  14475. # behavior of shared libraries on other platforms, we can't use
  14476. # them.
  14477. ld_shlibs_F77=no
  14478. ;;
  14479. beos*)
  14480. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14481. allow_undefined_flag_F77=unsupported
  14482. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  14483. # support --undefined. This deserves some investigation. FIXME
  14484. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14485. else
  14486. ld_shlibs_F77=no
  14487. fi
  14488. ;;
  14489. cygwin* | mingw* | pw32*)
  14490. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  14491. # as there is no search path for DLLs.
  14492. hardcode_libdir_flag_spec_F77='-L$libdir'
  14493. allow_undefined_flag_F77=unsupported
  14494. always_export_symbols_F77=no
  14495. enable_shared_with_static_runtimes_F77=yes
  14496. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14497. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14498. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14499. # If the export-symbols file already is a .def file (1st line
  14500. # is EXPORTS), use it as is; otherwise, prepend...
  14501. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14502. cp $export_symbols $output_objdir/$soname.def;
  14503. else
  14504. echo EXPORTS > $output_objdir/$soname.def;
  14505. cat $export_symbols >> $output_objdir/$soname.def;
  14506. fi~
  14507. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14508. else
  14509. ld_shlibs_F77=no
  14510. fi
  14511. ;;
  14512. interix3*)
  14513. hardcode_direct_F77=no
  14514. hardcode_shlibpath_var_F77=no
  14515. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14516. export_dynamic_flag_spec_F77='${wl}-E'
  14517. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14518. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14519. # default) and relocated if they conflict, which is a slow very memory
  14520. # consuming and fragmenting process. To avoid this, we pick a random,
  14521. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14522. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14523. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  14524. archive_expsym_cmds_F77='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'
  14525. ;;
  14526. linux*)
  14527. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14528. tmp_addflag=
  14529. case $cc_basename,$host_cpu in
  14530. pgcc*) # Portland Group C compiler
  14531. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  14532. tmp_addflag=' $pic_flag'
  14533. ;;
  14534. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14535. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  14536. tmp_addflag=' $pic_flag -Mnomain' ;;
  14537. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14538. tmp_addflag=' -i_dynamic' ;;
  14539. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14540. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14541. ifc* | ifort*) # Intel Fortran compiler
  14542. tmp_addflag=' -nofor_main' ;;
  14543. esac
  14544. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14545. if test $supports_anon_versioning = yes; then
  14546. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  14547. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14548. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14549. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14550. fi
  14551. else
  14552. ld_shlibs_F77=no
  14553. fi
  14554. ;;
  14555. netbsd*)
  14556. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14557. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14558. wlarc=
  14559. else
  14560. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14561. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14562. fi
  14563. ;;
  14564. solaris*)
  14565. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14566. ld_shlibs_F77=no
  14567. cat <<EOF 1>&2
  14568. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14569. *** create shared libraries on Solaris systems. Therefore, libtool
  14570. *** is disabling shared libraries support. We urge you to upgrade GNU
  14571. *** binutils to release 2.9.1 or newer. Another option is to modify
  14572. *** your PATH or compiler configuration so that the native linker is
  14573. *** used, and then restart.
  14574. EOF
  14575. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14576. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14577. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14578. else
  14579. ld_shlibs_F77=no
  14580. fi
  14581. ;;
  14582. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14583. case `$LD -v 2>&1` in
  14584. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  14585. ld_shlibs_F77=no
  14586. cat <<_LT_EOF 1>&2
  14587. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14588. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14589. *** is disabling shared libraries support. We urge you to upgrade GNU
  14590. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14591. *** your PATH or compiler configuration so that the native linker is
  14592. *** used, and then restart.
  14593. _LT_EOF
  14594. ;;
  14595. *)
  14596. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14597. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14598. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14599. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14600. else
  14601. ld_shlibs_F77=no
  14602. fi
  14603. ;;
  14604. esac
  14605. ;;
  14606. sunos4*)
  14607. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14608. wlarc=
  14609. hardcode_direct_F77=yes
  14610. hardcode_shlibpath_var_F77=no
  14611. ;;
  14612. *)
  14613. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14614. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14615. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14616. else
  14617. ld_shlibs_F77=no
  14618. fi
  14619. ;;
  14620. esac
  14621. if test "$ld_shlibs_F77" = no; then
  14622. runpath_var=
  14623. hardcode_libdir_flag_spec_F77=
  14624. export_dynamic_flag_spec_F77=
  14625. whole_archive_flag_spec_F77=
  14626. fi
  14627. else
  14628. # PORTME fill in a description of your system's linker (not GNU ld)
  14629. case $host_os in
  14630. aix3*)
  14631. allow_undefined_flag_F77=unsupported
  14632. always_export_symbols_F77=yes
  14633. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  14634. # Note: this linker hardcodes the directories in LIBPATH if there
  14635. # are no directories specified by -L.
  14636. hardcode_minus_L_F77=yes
  14637. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14638. # Neither direct hardcoding nor static linking is supported with a
  14639. # broken collect2.
  14640. hardcode_direct_F77=unsupported
  14641. fi
  14642. ;;
  14643. aix4* | aix5*)
  14644. if test "$host_cpu" = ia64; then
  14645. # On IA64, the linker does run time linking by default, so we don't
  14646. # have to do anything special.
  14647. aix_use_runtimelinking=no
  14648. exp_sym_flag='-Bexport'
  14649. no_entry_flag=""
  14650. else
  14651. # If we're using GNU nm, then we don't want the "-C" option.
  14652. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14653. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14654. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14655. else
  14656. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14657. fi
  14658. aix_use_runtimelinking=no
  14659. # Test if we are trying to use run time linking or normal
  14660. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14661. # need to do runtime linking.
  14662. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14663. for ld_flag in $LDFLAGS; do
  14664. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14665. aix_use_runtimelinking=yes
  14666. break
  14667. fi
  14668. done
  14669. ;;
  14670. esac
  14671. exp_sym_flag='-bexport'
  14672. no_entry_flag='-bnoentry'
  14673. fi
  14674. # When large executables or shared objects are built, AIX ld can
  14675. # have problems creating the table of contents. If linking a library
  14676. # or program results in "error TOC overflow" add -mminimal-toc to
  14677. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14678. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14679. archive_cmds_F77=''
  14680. hardcode_direct_F77=yes
  14681. hardcode_libdir_separator_F77=':'
  14682. link_all_deplibs_F77=yes
  14683. if test "$GCC" = yes; then
  14684. case $host_os in aix4.[012]|aix4.[012].*)
  14685. # We only want to do this on AIX 4.2 and lower, the check
  14686. # below for broken collect2 doesn't work under 4.3+
  14687. collect2name=`${CC} -print-prog-name=collect2`
  14688. if test -f "$collect2name" && \
  14689. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14690. then
  14691. # We have reworked collect2
  14692. hardcode_direct_F77=yes
  14693. else
  14694. # We have old collect2
  14695. hardcode_direct_F77=unsupported
  14696. # It fails to find uninstalled libraries when the uninstalled
  14697. # path is not listed in the libpath. Setting hardcode_minus_L
  14698. # to unsupported forces relinking
  14699. hardcode_minus_L_F77=yes
  14700. hardcode_libdir_flag_spec_F77='-L$libdir'
  14701. hardcode_libdir_separator_F77=
  14702. fi
  14703. ;;
  14704. esac
  14705. shared_flag='-shared'
  14706. if test "$aix_use_runtimelinking" = yes; then
  14707. shared_flag="$shared_flag "'${wl}-G'
  14708. fi
  14709. else
  14710. # not using gcc
  14711. if test "$host_cpu" = ia64; then
  14712. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14713. # chokes on -Wl,-G. The following line is correct:
  14714. shared_flag='-G'
  14715. else
  14716. if test "$aix_use_runtimelinking" = yes; then
  14717. shared_flag='${wl}-G'
  14718. else
  14719. shared_flag='${wl}-bM:SRE'
  14720. fi
  14721. fi
  14722. fi
  14723. # It seems that -bexpall does not export symbols beginning with
  14724. # underscore (_), so it is better to generate a list of symbols to export.
  14725. always_export_symbols_F77=yes
  14726. if test "$aix_use_runtimelinking" = yes; then
  14727. # Warning - without using the other runtime loading flags (-brtl),
  14728. # -berok will link without error, but may produce a broken library.
  14729. allow_undefined_flag_F77='-berok'
  14730. # Determine the default libpath from the value encoded in an empty executable.
  14731. cat >conftest.$ac_ext <<_ACEOF
  14732. program main
  14733. end
  14734. _ACEOF
  14735. rm -f conftest.$ac_objext conftest$ac_exeext
  14736. if { (ac_try="$ac_link"
  14737. case "(($ac_try" in
  14738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14739. *) ac_try_echo=$ac_try;;
  14740. esac
  14741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14742. (eval "$ac_link") 2>conftest.er1
  14743. ac_status=$?
  14744. grep -v '^ *+' conftest.er1 >conftest.err
  14745. rm -f conftest.er1
  14746. cat conftest.err >&5
  14747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14748. (exit $ac_status); } && {
  14749. test -z "$ac_f77_werror_flag" ||
  14750. test ! -s conftest.err
  14751. } && test -s conftest$ac_exeext &&
  14752. $as_test_x conftest$ac_exeext; then
  14753. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14754. }'`
  14755. # Check for a 64-bit object if we didn't find anything.
  14756. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14757. }'`; fi
  14758. else
  14759. echo "$as_me: failed program was:" >&5
  14760. sed 's/^/| /' conftest.$ac_ext >&5
  14761. fi
  14762. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14763. conftest$ac_exeext conftest.$ac_ext
  14764. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14765. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  14766. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  14767. else
  14768. if test "$host_cpu" = ia64; then
  14769. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  14770. allow_undefined_flag_F77="-z nodefs"
  14771. archive_expsym_cmds_F77="\$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"
  14772. else
  14773. # Determine the default libpath from the value encoded in an empty executable.
  14774. cat >conftest.$ac_ext <<_ACEOF
  14775. program main
  14776. end
  14777. _ACEOF
  14778. rm -f conftest.$ac_objext conftest$ac_exeext
  14779. if { (ac_try="$ac_link"
  14780. case "(($ac_try" in
  14781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14782. *) ac_try_echo=$ac_try;;
  14783. esac
  14784. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14785. (eval "$ac_link") 2>conftest.er1
  14786. ac_status=$?
  14787. grep -v '^ *+' conftest.er1 >conftest.err
  14788. rm -f conftest.er1
  14789. cat conftest.err >&5
  14790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14791. (exit $ac_status); } && {
  14792. test -z "$ac_f77_werror_flag" ||
  14793. test ! -s conftest.err
  14794. } && test -s conftest$ac_exeext &&
  14795. $as_test_x conftest$ac_exeext; then
  14796. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14797. }'`
  14798. # Check for a 64-bit object if we didn't find anything.
  14799. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14800. }'`; fi
  14801. else
  14802. echo "$as_me: failed program was:" >&5
  14803. sed 's/^/| /' conftest.$ac_ext >&5
  14804. fi
  14805. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14806. conftest$ac_exeext conftest.$ac_ext
  14807. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14808. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  14809. # Warning - without using the other run time loading flags,
  14810. # -berok will link without error, but may produce a broken library.
  14811. no_undefined_flag_F77=' ${wl}-bernotok'
  14812. allow_undefined_flag_F77=' ${wl}-berok'
  14813. # Exported symbols can be pulled into shared objects from archives
  14814. whole_archive_flag_spec_F77='$convenience'
  14815. archive_cmds_need_lc_F77=yes
  14816. # This is similar to how AIX traditionally builds its shared libraries.
  14817. archive_expsym_cmds_F77="\$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'
  14818. fi
  14819. fi
  14820. ;;
  14821. amigaos*)
  14822. archive_cmds_F77='$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)'
  14823. hardcode_libdir_flag_spec_F77='-L$libdir'
  14824. hardcode_minus_L_F77=yes
  14825. # see comment about different semantics on the GNU ld section
  14826. ld_shlibs_F77=no
  14827. ;;
  14828. bsdi[45]*)
  14829. export_dynamic_flag_spec_F77=-rdynamic
  14830. ;;
  14831. cygwin* | mingw* | pw32*)
  14832. # When not using gcc, we currently assume that we are using
  14833. # Microsoft Visual C++.
  14834. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14835. # no search path for DLLs.
  14836. hardcode_libdir_flag_spec_F77=' '
  14837. allow_undefined_flag_F77=unsupported
  14838. # Tell ltmain to make .lib files, not .a files.
  14839. libext=lib
  14840. # Tell ltmain to make .dll files, not .so files.
  14841. shrext_cmds=".dll"
  14842. # FIXME: Setting linknames here is a bad hack.
  14843. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14844. # The linker will automatically build a .lib file if we build a DLL.
  14845. old_archive_From_new_cmds_F77='true'
  14846. # FIXME: Should let the user specify the lib program.
  14847. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14848. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  14849. enable_shared_with_static_runtimes_F77=yes
  14850. ;;
  14851. darwin* | rhapsody*)
  14852. case $host_os in
  14853. rhapsody* | darwin1.[012])
  14854. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  14855. ;;
  14856. *) # Darwin 1.3 on
  14857. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14858. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14859. else
  14860. case ${MACOSX_DEPLOYMENT_TARGET} in
  14861. 10.[012])
  14862. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14863. ;;
  14864. 10.*)
  14865. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  14866. ;;
  14867. esac
  14868. fi
  14869. ;;
  14870. esac
  14871. archive_cmds_need_lc_F77=no
  14872. hardcode_direct_F77=no
  14873. hardcode_automatic_F77=yes
  14874. hardcode_shlibpath_var_F77=unsupported
  14875. whole_archive_flag_spec_F77=''
  14876. link_all_deplibs_F77=yes
  14877. if test "$GCC" = yes ; then
  14878. output_verbose_link_cmd='echo'
  14879. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14880. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14881. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14882. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14883. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14884. else
  14885. case $cc_basename in
  14886. xlc*)
  14887. output_verbose_link_cmd='echo'
  14888. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  14889. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14890. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14891. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14892. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14893. ;;
  14894. *)
  14895. ld_shlibs_F77=no
  14896. ;;
  14897. esac
  14898. fi
  14899. ;;
  14900. dgux*)
  14901. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14902. hardcode_libdir_flag_spec_F77='-L$libdir'
  14903. hardcode_shlibpath_var_F77=no
  14904. ;;
  14905. freebsd1*)
  14906. ld_shlibs_F77=no
  14907. ;;
  14908. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14909. # support. Future versions do this automatically, but an explicit c++rt0.o
  14910. # does not break anything, and helps significantly (at the cost of a little
  14911. # extra space).
  14912. freebsd2.2*)
  14913. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14914. hardcode_libdir_flag_spec_F77='-R$libdir'
  14915. hardcode_direct_F77=yes
  14916. hardcode_shlibpath_var_F77=no
  14917. ;;
  14918. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14919. freebsd2*)
  14920. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14921. hardcode_direct_F77=yes
  14922. hardcode_minus_L_F77=yes
  14923. hardcode_shlibpath_var_F77=no
  14924. ;;
  14925. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14926. freebsd* | kfreebsd*-gnu | dragonfly*)
  14927. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14928. hardcode_libdir_flag_spec_F77='-R$libdir'
  14929. hardcode_direct_F77=yes
  14930. hardcode_shlibpath_var_F77=no
  14931. ;;
  14932. hpux9*)
  14933. if test "$GCC" = yes; then
  14934. archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  14935. else
  14936. archive_cmds_F77='$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'
  14937. fi
  14938. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  14939. hardcode_libdir_separator_F77=:
  14940. hardcode_direct_F77=yes
  14941. # hardcode_minus_L: Not really in the search PATH,
  14942. # but as the default location of the library.
  14943. hardcode_minus_L_F77=yes
  14944. export_dynamic_flag_spec_F77='${wl}-E'
  14945. ;;
  14946. hpux10*)
  14947. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14948. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14949. else
  14950. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14951. fi
  14952. if test "$with_gnu_ld" = no; then
  14953. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  14954. hardcode_libdir_separator_F77=:
  14955. hardcode_direct_F77=yes
  14956. export_dynamic_flag_spec_F77='${wl}-E'
  14957. # hardcode_minus_L: Not really in the search PATH,
  14958. # but as the default location of the library.
  14959. hardcode_minus_L_F77=yes
  14960. fi
  14961. ;;
  14962. hpux11*)
  14963. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14964. case $host_cpu in
  14965. hppa*64*)
  14966. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14967. ;;
  14968. ia64*)
  14969. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14970. ;;
  14971. *)
  14972. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14973. ;;
  14974. esac
  14975. else
  14976. case $host_cpu in
  14977. hppa*64*)
  14978. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14979. ;;
  14980. ia64*)
  14981. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14982. ;;
  14983. *)
  14984. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14985. ;;
  14986. esac
  14987. fi
  14988. if test "$with_gnu_ld" = no; then
  14989. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  14990. hardcode_libdir_separator_F77=:
  14991. case $host_cpu in
  14992. hppa*64*|ia64*)
  14993. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  14994. hardcode_direct_F77=no
  14995. hardcode_shlibpath_var_F77=no
  14996. ;;
  14997. *)
  14998. hardcode_direct_F77=yes
  14999. export_dynamic_flag_spec_F77='${wl}-E'
  15000. # hardcode_minus_L: Not really in the search PATH,
  15001. # but as the default location of the library.
  15002. hardcode_minus_L_F77=yes
  15003. ;;
  15004. esac
  15005. fi
  15006. ;;
  15007. irix5* | irix6* | nonstopux*)
  15008. if test "$GCC" = yes; then
  15009. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15010. else
  15011. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15012. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  15013. fi
  15014. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  15015. hardcode_libdir_separator_F77=:
  15016. link_all_deplibs_F77=yes
  15017. ;;
  15018. netbsd*)
  15019. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15020. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15021. else
  15022. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15023. fi
  15024. hardcode_libdir_flag_spec_F77='-R$libdir'
  15025. hardcode_direct_F77=yes
  15026. hardcode_shlibpath_var_F77=no
  15027. ;;
  15028. newsos6)
  15029. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15030. hardcode_direct_F77=yes
  15031. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  15032. hardcode_libdir_separator_F77=:
  15033. hardcode_shlibpath_var_F77=no
  15034. ;;
  15035. openbsd*)
  15036. hardcode_direct_F77=yes
  15037. hardcode_shlibpath_var_F77=no
  15038. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15039. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15040. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15041. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  15042. export_dynamic_flag_spec_F77='${wl}-E'
  15043. else
  15044. case $host_os in
  15045. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15046. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15047. hardcode_libdir_flag_spec_F77='-R$libdir'
  15048. ;;
  15049. *)
  15050. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15051. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  15052. ;;
  15053. esac
  15054. fi
  15055. ;;
  15056. os2*)
  15057. hardcode_libdir_flag_spec_F77='-L$libdir'
  15058. hardcode_minus_L_F77=yes
  15059. allow_undefined_flag_F77=unsupported
  15060. archive_cmds_F77='$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'
  15061. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15062. ;;
  15063. osf3*)
  15064. if test "$GCC" = yes; then
  15065. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  15066. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15067. else
  15068. allow_undefined_flag_F77=' -expect_unresolved \*'
  15069. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15070. fi
  15071. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  15072. hardcode_libdir_separator_F77=:
  15073. ;;
  15074. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15075. if test "$GCC" = yes; then
  15076. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  15077. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15078. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  15079. else
  15080. allow_undefined_flag_F77=' -expect_unresolved \*'
  15081. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15082. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  15083. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  15084. # Both c and cxx compiler support -rpath directly
  15085. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  15086. fi
  15087. hardcode_libdir_separator_F77=:
  15088. ;;
  15089. solaris*)
  15090. no_undefined_flag_F77=' -z text'
  15091. if test "$GCC" = yes; then
  15092. wlarc='${wl}'
  15093. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15094. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15095. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15096. else
  15097. wlarc=''
  15098. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15099. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15100. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15101. fi
  15102. hardcode_libdir_flag_spec_F77='-R$libdir'
  15103. hardcode_shlibpath_var_F77=no
  15104. case $host_os in
  15105. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15106. *)
  15107. # The compiler driver will combine linker options so we
  15108. # cannot just pass the convience library names through
  15109. # without $wl, iff we do not link with $LD.
  15110. # Luckily, gcc supports the same syntax we need for Sun Studio.
  15111. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15112. case $wlarc in
  15113. '')
  15114. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  15115. *)
  15116. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  15117. esac ;;
  15118. esac
  15119. link_all_deplibs_F77=yes
  15120. ;;
  15121. sunos4*)
  15122. if test "x$host_vendor" = xsequent; then
  15123. # Use $CC to link under sequent, because it throws in some extra .o
  15124. # files that make .init and .fini sections work.
  15125. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15126. else
  15127. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15128. fi
  15129. hardcode_libdir_flag_spec_F77='-L$libdir'
  15130. hardcode_direct_F77=yes
  15131. hardcode_minus_L_F77=yes
  15132. hardcode_shlibpath_var_F77=no
  15133. ;;
  15134. sysv4)
  15135. case $host_vendor in
  15136. sni)
  15137. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15138. hardcode_direct_F77=yes # is this really true???
  15139. ;;
  15140. siemens)
  15141. ## LD is ld it makes a PLAMLIB
  15142. ## CC just makes a GrossModule.
  15143. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15144. reload_cmds_F77='$CC -r -o $output$reload_objs'
  15145. hardcode_direct_F77=no
  15146. ;;
  15147. motorola)
  15148. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15149. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  15150. ;;
  15151. esac
  15152. runpath_var='LD_RUN_PATH'
  15153. hardcode_shlibpath_var_F77=no
  15154. ;;
  15155. sysv4.3*)
  15156. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15157. hardcode_shlibpath_var_F77=no
  15158. export_dynamic_flag_spec_F77='-Bexport'
  15159. ;;
  15160. sysv4*MP*)
  15161. if test -d /usr/nec; then
  15162. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15163. hardcode_shlibpath_var_F77=no
  15164. runpath_var=LD_RUN_PATH
  15165. hardcode_runpath_var=yes
  15166. ld_shlibs_F77=yes
  15167. fi
  15168. ;;
  15169. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  15170. no_undefined_flag_F77='${wl}-z,text'
  15171. archive_cmds_need_lc_F77=no
  15172. hardcode_shlibpath_var_F77=no
  15173. runpath_var='LD_RUN_PATH'
  15174. if test "$GCC" = yes; then
  15175. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15176. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15177. else
  15178. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15179. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15180. fi
  15181. ;;
  15182. sysv5* | sco3.2v5* | sco5v6*)
  15183. # Note: We can NOT use -z defs as we might desire, because we do not
  15184. # link with -lc, and that would cause any symbols used from libc to
  15185. # always be unresolved, which means just about no library would
  15186. # ever link correctly. If we're not using GNU ld we use -z text
  15187. # though, which does catch some bad symbols but isn't as heavy-handed
  15188. # as -z defs.
  15189. no_undefined_flag_F77='${wl}-z,text'
  15190. allow_undefined_flag_F77='${wl}-z,nodefs'
  15191. archive_cmds_need_lc_F77=no
  15192. hardcode_shlibpath_var_F77=no
  15193. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15194. hardcode_libdir_separator_F77=':'
  15195. link_all_deplibs_F77=yes
  15196. export_dynamic_flag_spec_F77='${wl}-Bexport'
  15197. runpath_var='LD_RUN_PATH'
  15198. if test "$GCC" = yes; then
  15199. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15200. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15201. else
  15202. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15203. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15204. fi
  15205. ;;
  15206. uts4*)
  15207. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15208. hardcode_libdir_flag_spec_F77='-L$libdir'
  15209. hardcode_shlibpath_var_F77=no
  15210. ;;
  15211. *)
  15212. ld_shlibs_F77=no
  15213. ;;
  15214. esac
  15215. fi
  15216. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  15217. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  15218. test "$ld_shlibs_F77" = no && can_build_shared=no
  15219. #
  15220. # Do we need to explicitly link libc?
  15221. #
  15222. case "x$archive_cmds_need_lc_F77" in
  15223. x|xyes)
  15224. # Assume -lc should be added
  15225. archive_cmds_need_lc_F77=yes
  15226. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15227. case $archive_cmds_F77 in
  15228. *'~'*)
  15229. # FIXME: we may have to deal with multi-command sequences.
  15230. ;;
  15231. '$CC '*)
  15232. # Test whether the compiler implicitly links with -lc since on some
  15233. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15234. # to ld, don't add -lc before -lgcc.
  15235. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15236. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  15237. $rm conftest*
  15238. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15239. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15240. (eval $ac_compile) 2>&5
  15241. ac_status=$?
  15242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15243. (exit $ac_status); } 2>conftest.err; then
  15244. soname=conftest
  15245. lib=conftest
  15246. libobjs=conftest.$ac_objext
  15247. deplibs=
  15248. wl=$lt_prog_compiler_wl_F77
  15249. pic_flag=$lt_prog_compiler_pic_F77
  15250. compiler_flags=-v
  15251. linker_flags=-v
  15252. verstring=
  15253. output_objdir=.
  15254. libname=conftest
  15255. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  15256. allow_undefined_flag_F77=
  15257. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15258. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15259. ac_status=$?
  15260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15261. (exit $ac_status); }
  15262. then
  15263. archive_cmds_need_lc_F77=no
  15264. else
  15265. archive_cmds_need_lc_F77=yes
  15266. fi
  15267. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  15268. else
  15269. cat conftest.err 1>&5
  15270. fi
  15271. $rm conftest*
  15272. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  15273. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  15274. ;;
  15275. esac
  15276. fi
  15277. ;;
  15278. esac
  15279. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15280. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  15281. library_names_spec=
  15282. libname_spec='lib$name'
  15283. soname_spec=
  15284. shrext_cmds=".so"
  15285. postinstall_cmds=
  15286. postuninstall_cmds=
  15287. finish_cmds=
  15288. finish_eval=
  15289. shlibpath_var=
  15290. shlibpath_overrides_runpath=unknown
  15291. version_type=none
  15292. dynamic_linker="$host_os ld.so"
  15293. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15294. if test "$GCC" = yes; then
  15295. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15296. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15297. # if the path contains ";" then we assume it to be the separator
  15298. # otherwise default to the standard path separator (i.e. ":") - it is
  15299. # assumed that no part of a normal pathname contains ";" but that should
  15300. # okay in the real world where ";" in dirpaths is itself problematic.
  15301. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15302. else
  15303. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15304. fi
  15305. else
  15306. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15307. fi
  15308. need_lib_prefix=unknown
  15309. hardcode_into_libs=no
  15310. # when you set need_version to no, make sure it does not cause -set_version
  15311. # flags to be left without arguments
  15312. need_version=unknown
  15313. case $host_os in
  15314. aix3*)
  15315. version_type=linux
  15316. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15317. shlibpath_var=LIBPATH
  15318. # AIX 3 has no versioning support, so we append a major version to the name.
  15319. soname_spec='${libname}${release}${shared_ext}$major'
  15320. ;;
  15321. aix4* | aix5*)
  15322. version_type=linux
  15323. need_lib_prefix=no
  15324. need_version=no
  15325. hardcode_into_libs=yes
  15326. if test "$host_cpu" = ia64; then
  15327. # AIX 5 supports IA64
  15328. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15329. shlibpath_var=LD_LIBRARY_PATH
  15330. else
  15331. # With GCC up to 2.95.x, collect2 would create an import file
  15332. # for dependence libraries. The import file would start with
  15333. # the line `#! .'. This would cause the generated library to
  15334. # depend on `.', always an invalid library. This was fixed in
  15335. # development snapshots of GCC prior to 3.0.
  15336. case $host_os in
  15337. aix4 | aix4.[01] | aix4.[01].*)
  15338. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15339. echo ' yes '
  15340. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15341. :
  15342. else
  15343. can_build_shared=no
  15344. fi
  15345. ;;
  15346. esac
  15347. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15348. # soname into executable. Probably we can add versioning support to
  15349. # collect2, so additional links can be useful in future.
  15350. if test "$aix_use_runtimelinking" = yes; then
  15351. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15352. # instead of lib<name>.a to let people know that these are not
  15353. # typical AIX shared libraries.
  15354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15355. else
  15356. # We preserve .a as extension for shared libraries through AIX4.2
  15357. # and later when we are not doing run time linking.
  15358. library_names_spec='${libname}${release}.a $libname.a'
  15359. soname_spec='${libname}${release}${shared_ext}$major'
  15360. fi
  15361. shlibpath_var=LIBPATH
  15362. fi
  15363. ;;
  15364. amigaos*)
  15365. library_names_spec='$libname.ixlibrary $libname.a'
  15366. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15367. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  15368. ;;
  15369. beos*)
  15370. library_names_spec='${libname}${shared_ext}'
  15371. dynamic_linker="$host_os ld.so"
  15372. shlibpath_var=LIBRARY_PATH
  15373. ;;
  15374. bsdi[45]*)
  15375. version_type=linux
  15376. need_version=no
  15377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15378. soname_spec='${libname}${release}${shared_ext}$major'
  15379. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15380. shlibpath_var=LD_LIBRARY_PATH
  15381. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15382. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15383. # the default ld.so.conf also contains /usr/contrib/lib and
  15384. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15385. # libtool to hard-code these into programs
  15386. ;;
  15387. cygwin* | mingw* | pw32*)
  15388. version_type=windows
  15389. shrext_cmds=".dll"
  15390. need_version=no
  15391. need_lib_prefix=no
  15392. case $GCC,$host_os in
  15393. yes,cygwin* | yes,mingw* | yes,pw32*)
  15394. library_names_spec='$libname.dll.a'
  15395. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15396. postinstall_cmds='base_file=`basename \${file}`~
  15397. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15398. dldir=$destdir/`dirname \$dlpath`~
  15399. test -d \$dldir || mkdir -p \$dldir~
  15400. $install_prog $dir/$dlname \$dldir/$dlname~
  15401. chmod a+x \$dldir/$dlname'
  15402. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15403. dlpath=$dir/\$dldll~
  15404. $rm \$dlpath'
  15405. shlibpath_overrides_runpath=yes
  15406. case $host_os in
  15407. cygwin*)
  15408. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15409. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15410. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15411. ;;
  15412. mingw*)
  15413. # MinGW DLLs use traditional 'lib' prefix
  15414. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15415. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15416. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15417. # It is most probably a Windows format PATH printed by
  15418. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15419. # path with ; separators, and with drive letters. We can handle the
  15420. # drive letters (cygwin fileutils understands them), so leave them,
  15421. # especially as we might pass files found there to a mingw objdump,
  15422. # which wouldn't understand a cygwinified path. Ahh.
  15423. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15424. else
  15425. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15426. fi
  15427. ;;
  15428. pw32*)
  15429. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15430. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15431. ;;
  15432. esac
  15433. ;;
  15434. *)
  15435. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15436. ;;
  15437. esac
  15438. dynamic_linker='Win32 ld.exe'
  15439. # FIXME: first we should search . and the directory the executable is in
  15440. shlibpath_var=PATH
  15441. ;;
  15442. darwin* | rhapsody*)
  15443. dynamic_linker="$host_os dyld"
  15444. version_type=darwin
  15445. need_lib_prefix=no
  15446. need_version=no
  15447. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15448. soname_spec='${libname}${release}${major}$shared_ext'
  15449. shlibpath_overrides_runpath=yes
  15450. shlibpath_var=DYLD_LIBRARY_PATH
  15451. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15452. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15453. if test "$GCC" = yes; then
  15454. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  15455. else
  15456. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15457. fi
  15458. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15459. ;;
  15460. dgux*)
  15461. version_type=linux
  15462. need_lib_prefix=no
  15463. need_version=no
  15464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15465. soname_spec='${libname}${release}${shared_ext}$major'
  15466. shlibpath_var=LD_LIBRARY_PATH
  15467. ;;
  15468. freebsd1*)
  15469. dynamic_linker=no
  15470. ;;
  15471. kfreebsd*-gnu)
  15472. version_type=linux
  15473. need_lib_prefix=no
  15474. need_version=no
  15475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15476. soname_spec='${libname}${release}${shared_ext}$major'
  15477. shlibpath_var=LD_LIBRARY_PATH
  15478. shlibpath_overrides_runpath=no
  15479. hardcode_into_libs=yes
  15480. dynamic_linker='GNU ld.so'
  15481. ;;
  15482. freebsd* | dragonfly*)
  15483. # DragonFly does not have aout. When/if they implement a new
  15484. # versioning mechanism, adjust this.
  15485. if test -x /usr/bin/objformat; then
  15486. objformat=`/usr/bin/objformat`
  15487. else
  15488. case $host_os in
  15489. freebsd[123]*) objformat=aout ;;
  15490. *) objformat=elf ;;
  15491. esac
  15492. fi
  15493. version_type=freebsd-$objformat
  15494. case $version_type in
  15495. freebsd-elf*)
  15496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15497. need_version=no
  15498. need_lib_prefix=no
  15499. ;;
  15500. freebsd-*)
  15501. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15502. need_version=yes
  15503. ;;
  15504. esac
  15505. shlibpath_var=LD_LIBRARY_PATH
  15506. case $host_os in
  15507. freebsd2*)
  15508. shlibpath_overrides_runpath=yes
  15509. ;;
  15510. freebsd3.[01]* | freebsdelf3.[01]*)
  15511. shlibpath_overrides_runpath=yes
  15512. hardcode_into_libs=yes
  15513. ;;
  15514. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15515. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15516. shlibpath_overrides_runpath=no
  15517. hardcode_into_libs=yes
  15518. ;;
  15519. freebsd*) # from 4.6 on
  15520. shlibpath_overrides_runpath=yes
  15521. hardcode_into_libs=yes
  15522. ;;
  15523. esac
  15524. ;;
  15525. gnu*)
  15526. version_type=linux
  15527. need_lib_prefix=no
  15528. need_version=no
  15529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15530. soname_spec='${libname}${release}${shared_ext}$major'
  15531. shlibpath_var=LD_LIBRARY_PATH
  15532. hardcode_into_libs=yes
  15533. ;;
  15534. hpux9* | hpux10* | hpux11*)
  15535. # Give a soname corresponding to the major version so that dld.sl refuses to
  15536. # link against other versions.
  15537. version_type=sunos
  15538. need_lib_prefix=no
  15539. need_version=no
  15540. case $host_cpu in
  15541. ia64*)
  15542. shrext_cmds='.so'
  15543. hardcode_into_libs=yes
  15544. dynamic_linker="$host_os dld.so"
  15545. shlibpath_var=LD_LIBRARY_PATH
  15546. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15548. soname_spec='${libname}${release}${shared_ext}$major'
  15549. if test "X$HPUX_IA64_MODE" = X32; then
  15550. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15551. else
  15552. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15553. fi
  15554. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15555. ;;
  15556. hppa*64*)
  15557. shrext_cmds='.sl'
  15558. hardcode_into_libs=yes
  15559. dynamic_linker="$host_os dld.sl"
  15560. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15561. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15562. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15563. soname_spec='${libname}${release}${shared_ext}$major'
  15564. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15565. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15566. ;;
  15567. *)
  15568. shrext_cmds='.sl'
  15569. dynamic_linker="$host_os dld.sl"
  15570. shlibpath_var=SHLIB_PATH
  15571. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15573. soname_spec='${libname}${release}${shared_ext}$major'
  15574. ;;
  15575. esac
  15576. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15577. postinstall_cmds='chmod 555 $lib'
  15578. ;;
  15579. interix3*)
  15580. version_type=linux
  15581. need_lib_prefix=no
  15582. need_version=no
  15583. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15584. soname_spec='${libname}${release}${shared_ext}$major'
  15585. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15586. shlibpath_var=LD_LIBRARY_PATH
  15587. shlibpath_overrides_runpath=no
  15588. hardcode_into_libs=yes
  15589. ;;
  15590. irix5* | irix6* | nonstopux*)
  15591. case $host_os in
  15592. nonstopux*) version_type=nonstopux ;;
  15593. *)
  15594. if test "$lt_cv_prog_gnu_ld" = yes; then
  15595. version_type=linux
  15596. else
  15597. version_type=irix
  15598. fi ;;
  15599. esac
  15600. need_lib_prefix=no
  15601. need_version=no
  15602. soname_spec='${libname}${release}${shared_ext}$major'
  15603. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15604. case $host_os in
  15605. irix5* | nonstopux*)
  15606. libsuff= shlibsuff=
  15607. ;;
  15608. *)
  15609. case $LD in # libtool.m4 will add one of these switches to LD
  15610. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15611. libsuff= shlibsuff= libmagic=32-bit;;
  15612. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15613. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15614. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15615. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15616. *) libsuff= shlibsuff= libmagic=never-match;;
  15617. esac
  15618. ;;
  15619. esac
  15620. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15621. shlibpath_overrides_runpath=no
  15622. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15623. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15624. hardcode_into_libs=yes
  15625. ;;
  15626. # No shared lib support for Linux oldld, aout, or coff.
  15627. linux*oldld* | linux*aout* | linux*coff*)
  15628. dynamic_linker=no
  15629. ;;
  15630. # This must be Linux ELF.
  15631. linux*)
  15632. version_type=linux
  15633. need_lib_prefix=no
  15634. need_version=no
  15635. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15636. soname_spec='${libname}${release}${shared_ext}$major'
  15637. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15638. shlibpath_var=LD_LIBRARY_PATH
  15639. shlibpath_overrides_runpath=no
  15640. # This implies no fast_install, which is unacceptable.
  15641. # Some rework will be needed to allow for fast_install
  15642. # before this can be enabled.
  15643. hardcode_into_libs=yes
  15644. # Append ld.so.conf contents to the search path
  15645. if test -f /etc/ld.so.conf; then
  15646. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  15647. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15648. fi
  15649. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15650. # powerpc, because MkLinux only supported shared libraries with the
  15651. # GNU dynamic linker. Since this was broken with cross compilers,
  15652. # most powerpc-linux boxes support dynamic linking these days and
  15653. # people can always --disable-shared, the test was removed, and we
  15654. # assume the GNU/Linux dynamic linker is in use.
  15655. dynamic_linker='GNU/Linux ld.so'
  15656. ;;
  15657. knetbsd*-gnu)
  15658. version_type=linux
  15659. need_lib_prefix=no
  15660. need_version=no
  15661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15662. soname_spec='${libname}${release}${shared_ext}$major'
  15663. shlibpath_var=LD_LIBRARY_PATH
  15664. shlibpath_overrides_runpath=no
  15665. hardcode_into_libs=yes
  15666. dynamic_linker='GNU ld.so'
  15667. ;;
  15668. netbsd*)
  15669. version_type=sunos
  15670. need_lib_prefix=no
  15671. need_version=no
  15672. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15673. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15674. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15675. dynamic_linker='NetBSD (a.out) ld.so'
  15676. else
  15677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15678. soname_spec='${libname}${release}${shared_ext}$major'
  15679. dynamic_linker='NetBSD ld.elf_so'
  15680. fi
  15681. shlibpath_var=LD_LIBRARY_PATH
  15682. shlibpath_overrides_runpath=yes
  15683. hardcode_into_libs=yes
  15684. ;;
  15685. newsos6)
  15686. version_type=linux
  15687. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15688. shlibpath_var=LD_LIBRARY_PATH
  15689. shlibpath_overrides_runpath=yes
  15690. ;;
  15691. nto-qnx*)
  15692. version_type=linux
  15693. need_lib_prefix=no
  15694. need_version=no
  15695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15696. soname_spec='${libname}${release}${shared_ext}$major'
  15697. shlibpath_var=LD_LIBRARY_PATH
  15698. shlibpath_overrides_runpath=yes
  15699. ;;
  15700. openbsd*)
  15701. version_type=sunos
  15702. sys_lib_dlsearch_path_spec="/usr/lib"
  15703. need_lib_prefix=no
  15704. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15705. case $host_os in
  15706. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15707. *) need_version=no ;;
  15708. esac
  15709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15710. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15711. shlibpath_var=LD_LIBRARY_PATH
  15712. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15713. case $host_os in
  15714. openbsd2.[89] | openbsd2.[89].*)
  15715. shlibpath_overrides_runpath=no
  15716. ;;
  15717. *)
  15718. shlibpath_overrides_runpath=yes
  15719. ;;
  15720. esac
  15721. else
  15722. shlibpath_overrides_runpath=yes
  15723. fi
  15724. ;;
  15725. os2*)
  15726. libname_spec='$name'
  15727. shrext_cmds=".dll"
  15728. need_lib_prefix=no
  15729. library_names_spec='$libname${shared_ext} $libname.a'
  15730. dynamic_linker='OS/2 ld.exe'
  15731. shlibpath_var=LIBPATH
  15732. ;;
  15733. osf3* | osf4* | osf5*)
  15734. version_type=osf
  15735. need_lib_prefix=no
  15736. need_version=no
  15737. soname_spec='${libname}${release}${shared_ext}$major'
  15738. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15739. shlibpath_var=LD_LIBRARY_PATH
  15740. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15741. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15742. ;;
  15743. solaris*)
  15744. version_type=linux
  15745. need_lib_prefix=no
  15746. need_version=no
  15747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15748. soname_spec='${libname}${release}${shared_ext}$major'
  15749. shlibpath_var=LD_LIBRARY_PATH
  15750. shlibpath_overrides_runpath=yes
  15751. hardcode_into_libs=yes
  15752. # ldd complains unless libraries are executable
  15753. postinstall_cmds='chmod +x $lib'
  15754. ;;
  15755. sunos4*)
  15756. version_type=sunos
  15757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15758. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15759. shlibpath_var=LD_LIBRARY_PATH
  15760. shlibpath_overrides_runpath=yes
  15761. if test "$with_gnu_ld" = yes; then
  15762. need_lib_prefix=no
  15763. fi
  15764. need_version=yes
  15765. ;;
  15766. sysv4 | sysv4.3*)
  15767. version_type=linux
  15768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15769. soname_spec='${libname}${release}${shared_ext}$major'
  15770. shlibpath_var=LD_LIBRARY_PATH
  15771. case $host_vendor in
  15772. sni)
  15773. shlibpath_overrides_runpath=no
  15774. need_lib_prefix=no
  15775. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15776. runpath_var=LD_RUN_PATH
  15777. ;;
  15778. siemens)
  15779. need_lib_prefix=no
  15780. ;;
  15781. motorola)
  15782. need_lib_prefix=no
  15783. need_version=no
  15784. shlibpath_overrides_runpath=no
  15785. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15786. ;;
  15787. esac
  15788. ;;
  15789. sysv4*MP*)
  15790. if test -d /usr/nec ;then
  15791. version_type=linux
  15792. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15793. soname_spec='$libname${shared_ext}.$major'
  15794. shlibpath_var=LD_LIBRARY_PATH
  15795. fi
  15796. ;;
  15797. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15798. version_type=freebsd-elf
  15799. need_lib_prefix=no
  15800. need_version=no
  15801. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15802. soname_spec='${libname}${release}${shared_ext}$major'
  15803. shlibpath_var=LD_LIBRARY_PATH
  15804. hardcode_into_libs=yes
  15805. if test "$with_gnu_ld" = yes; then
  15806. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15807. shlibpath_overrides_runpath=no
  15808. else
  15809. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15810. shlibpath_overrides_runpath=yes
  15811. case $host_os in
  15812. sco3.2v5*)
  15813. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15814. ;;
  15815. esac
  15816. fi
  15817. sys_lib_dlsearch_path_spec='/usr/lib'
  15818. ;;
  15819. uts4*)
  15820. version_type=linux
  15821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15822. soname_spec='${libname}${release}${shared_ext}$major'
  15823. shlibpath_var=LD_LIBRARY_PATH
  15824. ;;
  15825. *)
  15826. dynamic_linker=no
  15827. ;;
  15828. esac
  15829. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15830. echo "${ECHO_T}$dynamic_linker" >&6; }
  15831. test "$dynamic_linker" = no && can_build_shared=no
  15832. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15833. if test "$GCC" = yes; then
  15834. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15835. fi
  15836. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15837. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  15838. hardcode_action_F77=
  15839. if test -n "$hardcode_libdir_flag_spec_F77" || \
  15840. test -n "$runpath_var_F77" || \
  15841. test "X$hardcode_automatic_F77" = "Xyes" ; then
  15842. # We can hardcode non-existant directories.
  15843. if test "$hardcode_direct_F77" != no &&
  15844. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15845. # have to relink, otherwise we might link with an installed library
  15846. # when we should be linking with a yet-to-be-installed one
  15847. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  15848. test "$hardcode_minus_L_F77" != no; then
  15849. # Linking always hardcodes the temporary library directory.
  15850. hardcode_action_F77=relink
  15851. else
  15852. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15853. hardcode_action_F77=immediate
  15854. fi
  15855. else
  15856. # We cannot hardcode anything, or else we can only hardcode existing
  15857. # directories.
  15858. hardcode_action_F77=unsupported
  15859. fi
  15860. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  15861. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  15862. if test "$hardcode_action_F77" = relink; then
  15863. # Fast installation is not supported
  15864. enable_fast_install=no
  15865. elif test "$shlibpath_overrides_runpath" = yes ||
  15866. test "$enable_shared" = no; then
  15867. # Fast installation is not necessary
  15868. enable_fast_install=needless
  15869. fi
  15870. # The else clause should only fire when bootstrapping the
  15871. # libtool distribution, otherwise you forgot to ship ltmain.sh
  15872. # with your package, and you will get complaints that there are
  15873. # no rules to generate ltmain.sh.
  15874. if test -f "$ltmain"; then
  15875. # See if we are running on zsh, and set the options which allow our commands through
  15876. # without removal of \ escapes.
  15877. if test -n "${ZSH_VERSION+set}" ; then
  15878. setopt NO_GLOB_SUBST
  15879. fi
  15880. # Now quote all the things that may contain metacharacters while being
  15881. # careful not to overquote the AC_SUBSTed values. We take copies of the
  15882. # variables and quote the copies for generation of the libtool script.
  15883. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  15884. SED SHELL STRIP \
  15885. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15886. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15887. deplibs_check_method reload_flag reload_cmds need_locks \
  15888. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15889. lt_cv_sys_global_symbol_to_c_name_address \
  15890. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15891. old_postinstall_cmds old_postuninstall_cmds \
  15892. compiler_F77 \
  15893. CC_F77 \
  15894. LD_F77 \
  15895. lt_prog_compiler_wl_F77 \
  15896. lt_prog_compiler_pic_F77 \
  15897. lt_prog_compiler_static_F77 \
  15898. lt_prog_compiler_no_builtin_flag_F77 \
  15899. export_dynamic_flag_spec_F77 \
  15900. thread_safe_flag_spec_F77 \
  15901. whole_archive_flag_spec_F77 \
  15902. enable_shared_with_static_runtimes_F77 \
  15903. old_archive_cmds_F77 \
  15904. old_archive_from_new_cmds_F77 \
  15905. predep_objects_F77 \
  15906. postdep_objects_F77 \
  15907. predeps_F77 \
  15908. postdeps_F77 \
  15909. compiler_lib_search_path_F77 \
  15910. archive_cmds_F77 \
  15911. archive_expsym_cmds_F77 \
  15912. postinstall_cmds_F77 \
  15913. postuninstall_cmds_F77 \
  15914. old_archive_from_expsyms_cmds_F77 \
  15915. allow_undefined_flag_F77 \
  15916. no_undefined_flag_F77 \
  15917. export_symbols_cmds_F77 \
  15918. hardcode_libdir_flag_spec_F77 \
  15919. hardcode_libdir_flag_spec_ld_F77 \
  15920. hardcode_libdir_separator_F77 \
  15921. hardcode_automatic_F77 \
  15922. module_cmds_F77 \
  15923. module_expsym_cmds_F77 \
  15924. lt_cv_prog_compiler_c_o_F77 \
  15925. exclude_expsyms_F77 \
  15926. include_expsyms_F77; do
  15927. case $var in
  15928. old_archive_cmds_F77 | \
  15929. old_archive_from_new_cmds_F77 | \
  15930. archive_cmds_F77 | \
  15931. archive_expsym_cmds_F77 | \
  15932. module_cmds_F77 | \
  15933. module_expsym_cmds_F77 | \
  15934. old_archive_from_expsyms_cmds_F77 | \
  15935. export_symbols_cmds_F77 | \
  15936. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  15937. postinstall_cmds | postuninstall_cmds | \
  15938. old_postinstall_cmds | old_postuninstall_cmds | \
  15939. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  15940. # Double-quote double-evaled strings.
  15941. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  15942. ;;
  15943. *)
  15944. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  15945. ;;
  15946. esac
  15947. done
  15948. case $lt_echo in
  15949. *'\$0 --fallback-echo"')
  15950. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  15951. ;;
  15952. esac
  15953. cfgfile="$ofile"
  15954. cat <<__EOF__ >> "$cfgfile"
  15955. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  15956. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15957. # Shell to use when invoking shell scripts.
  15958. SHELL=$lt_SHELL
  15959. # Whether or not to build shared libraries.
  15960. build_libtool_libs=$enable_shared
  15961. # Whether or not to build static libraries.
  15962. build_old_libs=$enable_static
  15963. # Whether or not to add -lc for building shared libraries.
  15964. build_libtool_need_lc=$archive_cmds_need_lc_F77
  15965. # Whether or not to disallow shared libs when runtime libs are static
  15966. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  15967. # Whether or not to optimize for fast installation.
  15968. fast_install=$enable_fast_install
  15969. # The host system.
  15970. host_alias=$host_alias
  15971. host=$host
  15972. host_os=$host_os
  15973. # The build system.
  15974. build_alias=$build_alias
  15975. build=$build
  15976. build_os=$build_os
  15977. # An echo program that does not interpret backslashes.
  15978. echo=$lt_echo
  15979. # The archiver.
  15980. AR=$lt_AR
  15981. AR_FLAGS=$lt_AR_FLAGS
  15982. # A C compiler.
  15983. LTCC=$lt_LTCC
  15984. # LTCC compiler flags.
  15985. LTCFLAGS=$lt_LTCFLAGS
  15986. # A language-specific compiler.
  15987. CC=$lt_compiler_F77
  15988. # Is the compiler the GNU C compiler?
  15989. with_gcc=$GCC_F77
  15990. # An ERE matcher.
  15991. EGREP=$lt_EGREP
  15992. # The linker used to build libraries.
  15993. LD=$lt_LD_F77
  15994. # Whether we need hard or soft links.
  15995. LN_S=$lt_LN_S
  15996. # A BSD-compatible nm program.
  15997. NM=$lt_NM
  15998. # A symbol stripping program
  15999. STRIP=$lt_STRIP
  16000. # Used to examine libraries when file_magic_cmd begins "file"
  16001. MAGIC_CMD=$MAGIC_CMD
  16002. # Used on cygwin: DLL creation program.
  16003. DLLTOOL="$DLLTOOL"
  16004. # Used on cygwin: object dumper.
  16005. OBJDUMP="$OBJDUMP"
  16006. # Used on cygwin: assembler.
  16007. AS="$AS"
  16008. # The name of the directory that contains temporary libtool files.
  16009. objdir=$objdir
  16010. # How to create reloadable object files.
  16011. reload_flag=$lt_reload_flag
  16012. reload_cmds=$lt_reload_cmds
  16013. # How to pass a linker flag through the compiler.
  16014. wl=$lt_lt_prog_compiler_wl_F77
  16015. # Object file suffix (normally "o").
  16016. objext="$ac_objext"
  16017. # Old archive suffix (normally "a").
  16018. libext="$libext"
  16019. # Shared library suffix (normally ".so").
  16020. shrext_cmds='$shrext_cmds'
  16021. # Executable file suffix (normally "").
  16022. exeext="$exeext"
  16023. # Additional compiler flags for building library objects.
  16024. pic_flag=$lt_lt_prog_compiler_pic_F77
  16025. pic_mode=$pic_mode
  16026. # What is the maximum length of a command?
  16027. max_cmd_len=$lt_cv_sys_max_cmd_len
  16028. # Does compiler simultaneously support -c and -o options?
  16029. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  16030. # Must we lock files when doing compilation?
  16031. need_locks=$lt_need_locks
  16032. # Do we need the lib prefix for modules?
  16033. need_lib_prefix=$need_lib_prefix
  16034. # Do we need a version for libraries?
  16035. need_version=$need_version
  16036. # Whether dlopen is supported.
  16037. dlopen_support=$enable_dlopen
  16038. # Whether dlopen of programs is supported.
  16039. dlopen_self=$enable_dlopen_self
  16040. # Whether dlopen of statically linked programs is supported.
  16041. dlopen_self_static=$enable_dlopen_self_static
  16042. # Compiler flag to prevent dynamic linking.
  16043. link_static_flag=$lt_lt_prog_compiler_static_F77
  16044. # Compiler flag to turn off builtin functions.
  16045. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  16046. # Compiler flag to allow reflexive dlopens.
  16047. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  16048. # Compiler flag to generate shared objects directly from archives.
  16049. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  16050. # Compiler flag to generate thread-safe objects.
  16051. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  16052. # Library versioning type.
  16053. version_type=$version_type
  16054. # Format of library name prefix.
  16055. libname_spec=$lt_libname_spec
  16056. # List of archive names. First name is the real one, the rest are links.
  16057. # The last name is the one that the linker finds with -lNAME.
  16058. library_names_spec=$lt_library_names_spec
  16059. # The coded name of the library, if different from the real name.
  16060. soname_spec=$lt_soname_spec
  16061. # Commands used to build and install an old-style archive.
  16062. RANLIB=$lt_RANLIB
  16063. old_archive_cmds=$lt_old_archive_cmds_F77
  16064. old_postinstall_cmds=$lt_old_postinstall_cmds
  16065. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16066. # Create an old-style archive from a shared archive.
  16067. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  16068. # Create a temporary old-style archive to link instead of a shared archive.
  16069. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  16070. # Commands used to build and install a shared archive.
  16071. archive_cmds=$lt_archive_cmds_F77
  16072. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  16073. postinstall_cmds=$lt_postinstall_cmds
  16074. postuninstall_cmds=$lt_postuninstall_cmds
  16075. # Commands used to build a loadable module (assumed same as above if empty)
  16076. module_cmds=$lt_module_cmds_F77
  16077. module_expsym_cmds=$lt_module_expsym_cmds_F77
  16078. # Commands to strip libraries.
  16079. old_striplib=$lt_old_striplib
  16080. striplib=$lt_striplib
  16081. # Dependencies to place before the objects being linked to create a
  16082. # shared library.
  16083. predep_objects=$lt_predep_objects_F77
  16084. # Dependencies to place after the objects being linked to create a
  16085. # shared library.
  16086. postdep_objects=$lt_postdep_objects_F77
  16087. # Dependencies to place before the objects being linked to create a
  16088. # shared library.
  16089. predeps=$lt_predeps_F77
  16090. # Dependencies to place after the objects being linked to create a
  16091. # shared library.
  16092. postdeps=$lt_postdeps_F77
  16093. # The library search path used internally by the compiler when linking
  16094. # a shared library.
  16095. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  16096. # Method to check whether dependent libraries are shared objects.
  16097. deplibs_check_method=$lt_deplibs_check_method
  16098. # Command to use when deplibs_check_method == file_magic.
  16099. file_magic_cmd=$lt_file_magic_cmd
  16100. # Flag that allows shared libraries with undefined symbols to be built.
  16101. allow_undefined_flag=$lt_allow_undefined_flag_F77
  16102. # Flag that forces no undefined symbols.
  16103. no_undefined_flag=$lt_no_undefined_flag_F77
  16104. # Commands used to finish a libtool library installation in a directory.
  16105. finish_cmds=$lt_finish_cmds
  16106. # Same as above, but a single script fragment to be evaled but not shown.
  16107. finish_eval=$lt_finish_eval
  16108. # Take the output of nm and produce a listing of raw symbols and C names.
  16109. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16110. # Transform the output of nm in a proper C declaration
  16111. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16112. # Transform the output of nm in a C name address pair
  16113. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16114. # This is the shared library runtime path variable.
  16115. runpath_var=$runpath_var
  16116. # This is the shared library path variable.
  16117. shlibpath_var=$shlibpath_var
  16118. # Is shlibpath searched before the hard-coded library search path?
  16119. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16120. # How to hardcode a shared library path into an executable.
  16121. hardcode_action=$hardcode_action_F77
  16122. # Whether we should hardcode library paths into libraries.
  16123. hardcode_into_libs=$hardcode_into_libs
  16124. # Flag to hardcode \$libdir into a binary during linking.
  16125. # This must work even if \$libdir does not exist.
  16126. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  16127. # If ld is used when linking, flag to hardcode \$libdir into
  16128. # a binary during linking. This must work even if \$libdir does
  16129. # not exist.
  16130. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  16131. # Whether we need a single -rpath flag with a separated argument.
  16132. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  16133. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16134. # resulting binary.
  16135. hardcode_direct=$hardcode_direct_F77
  16136. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16137. # resulting binary.
  16138. hardcode_minus_L=$hardcode_minus_L_F77
  16139. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16140. # the resulting binary.
  16141. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  16142. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16143. # and all subsequent libraries and executables linked against it.
  16144. hardcode_automatic=$hardcode_automatic_F77
  16145. # Variables whose values should be saved in libtool wrapper scripts and
  16146. # restored at relink time.
  16147. variables_saved_for_relink="$variables_saved_for_relink"
  16148. # Whether libtool must link a program against all its dependency libraries.
  16149. link_all_deplibs=$link_all_deplibs_F77
  16150. # Compile-time system search path for libraries
  16151. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16152. # Run-time system search path for libraries
  16153. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16154. # Fix the shell variable \$srcfile for the compiler.
  16155. fix_srcfile_path="$fix_srcfile_path_F77"
  16156. # Set to yes if exported symbols are required.
  16157. always_export_symbols=$always_export_symbols_F77
  16158. # The commands to list exported symbols.
  16159. export_symbols_cmds=$lt_export_symbols_cmds_F77
  16160. # The commands to extract the exported symbol list from a shared archive.
  16161. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16162. # Symbols that should not be listed in the preloaded symbols.
  16163. exclude_expsyms=$lt_exclude_expsyms_F77
  16164. # Symbols that must always be exported.
  16165. include_expsyms=$lt_include_expsyms_F77
  16166. # ### END LIBTOOL TAG CONFIG: $tagname
  16167. __EOF__
  16168. else
  16169. # If there is no Makefile yet, we rely on a make rule to execute
  16170. # `config.status --recheck' to rerun these tests and create the
  16171. # libtool script then.
  16172. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16173. if test -f "$ltmain_in"; then
  16174. test -f Makefile && make "$ltmain"
  16175. fi
  16176. fi
  16177. ac_ext=c
  16178. ac_cpp='$CPP $CPPFLAGS'
  16179. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16180. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16181. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16182. CC="$lt_save_CC"
  16183. else
  16184. tagname=""
  16185. fi
  16186. ;;
  16187. GCJ)
  16188. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  16189. # Source file extension for Java test sources.
  16190. ac_ext=java
  16191. # Object file extension for compiled Java test sources.
  16192. objext=o
  16193. objext_GCJ=$objext
  16194. # Code to be used in simple compile tests
  16195. lt_simple_compile_test_code="class foo {}\n"
  16196. # Code to be used in simple link tests
  16197. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  16198. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16199. # If no C compiler was specified, use CC.
  16200. LTCC=${LTCC-"$CC"}
  16201. # If no C compiler flags were specified, use CFLAGS.
  16202. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16203. # Allow CC to be a program name with arguments.
  16204. compiler=$CC
  16205. # save warnings/boilerplate of simple test code
  16206. ac_outfile=conftest.$ac_objext
  16207. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16208. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16209. _lt_compiler_boilerplate=`cat conftest.err`
  16210. $rm conftest*
  16211. ac_outfile=conftest.$ac_objext
  16212. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16213. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16214. _lt_linker_boilerplate=`cat conftest.err`
  16215. $rm conftest*
  16216. # Allow CC to be a program name with arguments.
  16217. lt_save_CC="$CC"
  16218. CC=${GCJ-"gcj"}
  16219. compiler=$CC
  16220. compiler_GCJ=$CC
  16221. for cc_temp in $compiler""; do
  16222. case $cc_temp in
  16223. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16224. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16225. \-*) ;;
  16226. *) break;;
  16227. esac
  16228. done
  16229. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16230. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  16231. archive_cmds_need_lc_GCJ=no
  16232. old_archive_cmds_GCJ=$old_archive_cmds
  16233. ## CAVEAT EMPTOR:
  16234. ## There is no encapsulation within the following macros, do not change
  16235. ## the running order or otherwise move them around unless you know exactly
  16236. ## what you are doing...
  16237. lt_prog_compiler_no_builtin_flag_GCJ=
  16238. if test "$GCC" = yes; then
  16239. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  16240. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  16241. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  16242. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  16243. echo $ECHO_N "(cached) $ECHO_C" >&6
  16244. else
  16245. lt_cv_prog_compiler_rtti_exceptions=no
  16246. ac_outfile=conftest.$ac_objext
  16247. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16248. lt_compiler_flag="-fno-rtti -fno-exceptions"
  16249. # Insert the option either (1) after the last *FLAGS variable, or
  16250. # (2) before a word containing "conftest.", or (3) at the end.
  16251. # Note that $ac_compile itself does not contain backslashes and begins
  16252. # with a dollar sign (not a hyphen), so the echo should work correctly.
  16253. # The option is referenced via a variable to avoid confusing sed.
  16254. lt_compile=`echo "$ac_compile" | $SED \
  16255. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  16256. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16257. -e 's:$: $lt_compiler_flag:'`
  16258. (eval echo "\"\$as_me:18238: $lt_compile\"" >&5)
  16259. (eval "$lt_compile" 2>conftest.err)
  16260. ac_status=$?
  16261. cat conftest.err >&5
  16262. echo "$as_me:18242: \$? = $ac_status" >&5
  16263. if (exit $ac_status) && test -s "$ac_outfile"; then
  16264. # The compiler can only warn and ignore the option if not recognized
  16265. # So say no if there are warnings other than the usual output.
  16266. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  16267. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  16268. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  16269. lt_cv_prog_compiler_rtti_exceptions=yes
  16270. fi
  16271. fi
  16272. $rm conftest*
  16273. fi
  16274. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  16275. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  16276. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  16277. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  16278. else
  16279. :
  16280. fi
  16281. fi
  16282. lt_prog_compiler_wl_GCJ=
  16283. lt_prog_compiler_pic_GCJ=
  16284. lt_prog_compiler_static_GCJ=
  16285. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  16286. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  16287. if test "$GCC" = yes; then
  16288. lt_prog_compiler_wl_GCJ='-Wl,'
  16289. lt_prog_compiler_static_GCJ='-static'
  16290. case $host_os in
  16291. aix*)
  16292. # All AIX code is PIC.
  16293. if test "$host_cpu" = ia64; then
  16294. # AIX 5 now supports IA64 processor
  16295. lt_prog_compiler_static_GCJ='-Bstatic'
  16296. fi
  16297. ;;
  16298. amigaos*)
  16299. # FIXME: we need at least 68020 code to build shared libraries, but
  16300. # adding the `-m68020' flag to GCC prevents building anything better,
  16301. # like `-m68040'.
  16302. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  16303. ;;
  16304. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  16305. # PIC is the default for these OSes.
  16306. ;;
  16307. mingw* | pw32* | os2*)
  16308. # This hack is so that the source file can tell whether it is being
  16309. # built for inclusion in a dll (and should export symbols for example).
  16310. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  16311. ;;
  16312. darwin* | rhapsody*)
  16313. # PIC is the default on this platform
  16314. # Common symbols not allowed in MH_DYLIB files
  16315. lt_prog_compiler_pic_GCJ='-fno-common'
  16316. ;;
  16317. interix3*)
  16318. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  16319. # Instead, we relocate shared libraries at runtime.
  16320. ;;
  16321. msdosdjgpp*)
  16322. # Just because we use GCC doesn't mean we suddenly get shared libraries
  16323. # on systems that don't support them.
  16324. lt_prog_compiler_can_build_shared_GCJ=no
  16325. enable_shared=no
  16326. ;;
  16327. sysv4*MP*)
  16328. if test -d /usr/nec; then
  16329. lt_prog_compiler_pic_GCJ=-Kconform_pic
  16330. fi
  16331. ;;
  16332. hpux*)
  16333. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  16334. # not for PA HP-UX.
  16335. case $host_cpu in
  16336. hppa*64*|ia64*)
  16337. # +Z the default
  16338. ;;
  16339. *)
  16340. lt_prog_compiler_pic_GCJ='-fPIC'
  16341. ;;
  16342. esac
  16343. ;;
  16344. *)
  16345. lt_prog_compiler_pic_GCJ='-fPIC'
  16346. ;;
  16347. esac
  16348. else
  16349. # PORTME Check for flag to pass linker flags through the system compiler.
  16350. case $host_os in
  16351. aix*)
  16352. lt_prog_compiler_wl_GCJ='-Wl,'
  16353. if test "$host_cpu" = ia64; then
  16354. # AIX 5 now supports IA64 processor
  16355. lt_prog_compiler_static_GCJ='-Bstatic'
  16356. else
  16357. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  16358. fi
  16359. ;;
  16360. darwin*)
  16361. # PIC is the default on this platform
  16362. # Common symbols not allowed in MH_DYLIB files
  16363. case $cc_basename in
  16364. xlc*)
  16365. lt_prog_compiler_pic_GCJ='-qnocommon'
  16366. lt_prog_compiler_wl_GCJ='-Wl,'
  16367. ;;
  16368. esac
  16369. ;;
  16370. mingw* | pw32* | os2*)
  16371. # This hack is so that the source file can tell whether it is being
  16372. # built for inclusion in a dll (and should export symbols for example).
  16373. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  16374. ;;
  16375. hpux9* | hpux10* | hpux11*)
  16376. lt_prog_compiler_wl_GCJ='-Wl,'
  16377. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  16378. # not for PA HP-UX.
  16379. case $host_cpu in
  16380. hppa*64*|ia64*)
  16381. # +Z the default
  16382. ;;
  16383. *)
  16384. lt_prog_compiler_pic_GCJ='+Z'
  16385. ;;
  16386. esac
  16387. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  16388. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  16389. ;;
  16390. irix5* | irix6* | nonstopux*)
  16391. lt_prog_compiler_wl_GCJ='-Wl,'
  16392. # PIC (with -KPIC) is the default.
  16393. lt_prog_compiler_static_GCJ='-non_shared'
  16394. ;;
  16395. newsos6)
  16396. lt_prog_compiler_pic_GCJ='-KPIC'
  16397. lt_prog_compiler_static_GCJ='-Bstatic'
  16398. ;;
  16399. linux*)
  16400. case $cc_basename in
  16401. icc* | ecc*)
  16402. lt_prog_compiler_wl_GCJ='-Wl,'
  16403. lt_prog_compiler_pic_GCJ='-KPIC'
  16404. lt_prog_compiler_static_GCJ='-static'
  16405. ;;
  16406. pgcc* | pgf77* | pgf90* | pgf95*)
  16407. # Portland Group compilers (*not* the Pentium gcc compiler,
  16408. # which looks to be a dead project)
  16409. lt_prog_compiler_wl_GCJ='-Wl,'
  16410. lt_prog_compiler_pic_GCJ='-fpic'
  16411. lt_prog_compiler_static_GCJ='-Bstatic'
  16412. ;;
  16413. ccc*)
  16414. lt_prog_compiler_wl_GCJ='-Wl,'
  16415. # All Alpha code is PIC.
  16416. lt_prog_compiler_static_GCJ='-non_shared'
  16417. ;;
  16418. esac
  16419. ;;
  16420. osf3* | osf4* | osf5*)
  16421. lt_prog_compiler_wl_GCJ='-Wl,'
  16422. # All OSF/1 code is PIC.
  16423. lt_prog_compiler_static_GCJ='-non_shared'
  16424. ;;
  16425. solaris*)
  16426. lt_prog_compiler_pic_GCJ='-KPIC'
  16427. lt_prog_compiler_static_GCJ='-Bstatic'
  16428. case $cc_basename in
  16429. f77* | f90* | f95*)
  16430. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  16431. *)
  16432. lt_prog_compiler_wl_GCJ='-Wl,';;
  16433. esac
  16434. ;;
  16435. sunos4*)
  16436. lt_prog_compiler_wl_GCJ='-Qoption ld '
  16437. lt_prog_compiler_pic_GCJ='-PIC'
  16438. lt_prog_compiler_static_GCJ='-Bstatic'
  16439. ;;
  16440. sysv4 | sysv4.2uw2* | sysv4.3*)
  16441. lt_prog_compiler_wl_GCJ='-Wl,'
  16442. lt_prog_compiler_pic_GCJ='-KPIC'
  16443. lt_prog_compiler_static_GCJ='-Bstatic'
  16444. ;;
  16445. sysv4*MP*)
  16446. if test -d /usr/nec ;then
  16447. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  16448. lt_prog_compiler_static_GCJ='-Bstatic'
  16449. fi
  16450. ;;
  16451. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  16452. lt_prog_compiler_wl_GCJ='-Wl,'
  16453. lt_prog_compiler_pic_GCJ='-KPIC'
  16454. lt_prog_compiler_static_GCJ='-Bstatic'
  16455. ;;
  16456. unicos*)
  16457. lt_prog_compiler_wl_GCJ='-Wl,'
  16458. lt_prog_compiler_can_build_shared_GCJ=no
  16459. ;;
  16460. uts4*)
  16461. lt_prog_compiler_pic_GCJ='-pic'
  16462. lt_prog_compiler_static_GCJ='-Bstatic'
  16463. ;;
  16464. *)
  16465. lt_prog_compiler_can_build_shared_GCJ=no
  16466. ;;
  16467. esac
  16468. fi
  16469. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  16470. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  16471. #
  16472. # Check to make sure the PIC flag actually works.
  16473. #
  16474. if test -n "$lt_prog_compiler_pic_GCJ"; then
  16475. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  16476. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  16477. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  16478. echo $ECHO_N "(cached) $ECHO_C" >&6
  16479. else
  16480. lt_prog_compiler_pic_works_GCJ=no
  16481. ac_outfile=conftest.$ac_objext
  16482. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16483. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  16484. # Insert the option either (1) after the last *FLAGS variable, or
  16485. # (2) before a word containing "conftest.", or (3) at the end.
  16486. # Note that $ac_compile itself does not contain backslashes and begins
  16487. # with a dollar sign (not a hyphen), so the echo should work correctly.
  16488. # The option is referenced via a variable to avoid confusing sed.
  16489. lt_compile=`echo "$ac_compile" | $SED \
  16490. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  16491. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16492. -e 's:$: $lt_compiler_flag:'`
  16493. (eval echo "\"\$as_me:18506: $lt_compile\"" >&5)
  16494. (eval "$lt_compile" 2>conftest.err)
  16495. ac_status=$?
  16496. cat conftest.err >&5
  16497. echo "$as_me:18510: \$? = $ac_status" >&5
  16498. if (exit $ac_status) && test -s "$ac_outfile"; then
  16499. # The compiler can only warn and ignore the option if not recognized
  16500. # So say no if there are warnings other than the usual output.
  16501. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  16502. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  16503. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  16504. lt_prog_compiler_pic_works_GCJ=yes
  16505. fi
  16506. fi
  16507. $rm conftest*
  16508. fi
  16509. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  16510. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  16511. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  16512. case $lt_prog_compiler_pic_GCJ in
  16513. "" | " "*) ;;
  16514. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  16515. esac
  16516. else
  16517. lt_prog_compiler_pic_GCJ=
  16518. lt_prog_compiler_can_build_shared_GCJ=no
  16519. fi
  16520. fi
  16521. case $host_os in
  16522. # For platforms which do not support PIC, -DPIC is meaningless:
  16523. *djgpp*)
  16524. lt_prog_compiler_pic_GCJ=
  16525. ;;
  16526. *)
  16527. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  16528. ;;
  16529. esac
  16530. #
  16531. # Check to make sure the static flag actually works.
  16532. #
  16533. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  16534. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  16535. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  16536. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  16537. echo $ECHO_N "(cached) $ECHO_C" >&6
  16538. else
  16539. lt_prog_compiler_static_works_GCJ=no
  16540. save_LDFLAGS="$LDFLAGS"
  16541. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  16542. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  16543. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  16544. # The linker can only warn and ignore the option if not recognized
  16545. # So say no if there are warnings
  16546. if test -s conftest.err; then
  16547. # Append any errors to the config.log.
  16548. cat conftest.err 1>&5
  16549. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  16550. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  16551. if diff conftest.exp conftest.er2 >/dev/null; then
  16552. lt_prog_compiler_static_works_GCJ=yes
  16553. fi
  16554. else
  16555. lt_prog_compiler_static_works_GCJ=yes
  16556. fi
  16557. fi
  16558. $rm conftest*
  16559. LDFLAGS="$save_LDFLAGS"
  16560. fi
  16561. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  16562. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  16563. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  16564. :
  16565. else
  16566. lt_prog_compiler_static_GCJ=
  16567. fi
  16568. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  16569. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  16570. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  16571. echo $ECHO_N "(cached) $ECHO_C" >&6
  16572. else
  16573. lt_cv_prog_compiler_c_o_GCJ=no
  16574. $rm -r conftest 2>/dev/null
  16575. mkdir conftest
  16576. cd conftest
  16577. mkdir out
  16578. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16579. lt_compiler_flag="-o out/conftest2.$ac_objext"
  16580. # Insert the option either (1) after the last *FLAGS variable, or
  16581. # (2) before a word containing "conftest.", or (3) at the end.
  16582. # Note that $ac_compile itself does not contain backslashes and begins
  16583. # with a dollar sign (not a hyphen), so the echo should work correctly.
  16584. lt_compile=`echo "$ac_compile" | $SED \
  16585. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  16586. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16587. -e 's:$: $lt_compiler_flag:'`
  16588. (eval echo "\"\$as_me:18610: $lt_compile\"" >&5)
  16589. (eval "$lt_compile" 2>out/conftest.err)
  16590. ac_status=$?
  16591. cat out/conftest.err >&5
  16592. echo "$as_me:18614: \$? = $ac_status" >&5
  16593. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  16594. then
  16595. # The compiler can only warn and ignore the option if not recognized
  16596. # So say no if there are warnings
  16597. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  16598. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  16599. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  16600. lt_cv_prog_compiler_c_o_GCJ=yes
  16601. fi
  16602. fi
  16603. chmod u+w . 2>&5
  16604. $rm conftest*
  16605. # SGI C++ compiler will create directory out/ii_files/ for
  16606. # template instantiation
  16607. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  16608. $rm out/* && rmdir out
  16609. cd ..
  16610. rmdir conftest
  16611. $rm conftest*
  16612. fi
  16613. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  16614. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  16615. hard_links="nottested"
  16616. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  16617. # do not overwrite the value of need_locks provided by the user
  16618. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  16619. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  16620. hard_links=yes
  16621. $rm conftest*
  16622. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16623. touch conftest.a
  16624. ln conftest.a conftest.b 2>&5 || hard_links=no
  16625. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16626. { echo "$as_me:$LINENO: result: $hard_links" >&5
  16627. echo "${ECHO_T}$hard_links" >&6; }
  16628. if test "$hard_links" = no; then
  16629. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  16630. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  16631. need_locks=warn
  16632. fi
  16633. else
  16634. need_locks=no
  16635. fi
  16636. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  16637. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  16638. runpath_var=
  16639. allow_undefined_flag_GCJ=
  16640. enable_shared_with_static_runtimes_GCJ=no
  16641. archive_cmds_GCJ=
  16642. archive_expsym_cmds_GCJ=
  16643. old_archive_From_new_cmds_GCJ=
  16644. old_archive_from_expsyms_cmds_GCJ=
  16645. export_dynamic_flag_spec_GCJ=
  16646. whole_archive_flag_spec_GCJ=
  16647. thread_safe_flag_spec_GCJ=
  16648. hardcode_libdir_flag_spec_GCJ=
  16649. hardcode_libdir_flag_spec_ld_GCJ=
  16650. hardcode_libdir_separator_GCJ=
  16651. hardcode_direct_GCJ=no
  16652. hardcode_minus_L_GCJ=no
  16653. hardcode_shlibpath_var_GCJ=unsupported
  16654. link_all_deplibs_GCJ=unknown
  16655. hardcode_automatic_GCJ=no
  16656. module_cmds_GCJ=
  16657. module_expsym_cmds_GCJ=
  16658. always_export_symbols_GCJ=no
  16659. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  16660. # include_expsyms should be a list of space-separated symbols to be *always*
  16661. # included in the symbol list
  16662. include_expsyms_GCJ=
  16663. # exclude_expsyms can be an extended regexp of symbols to exclude
  16664. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  16665. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  16666. # as well as any symbol that contains `d'.
  16667. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  16668. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  16669. # platforms (ab)use it in PIC code, but their linkers get confused if
  16670. # the symbol is explicitly referenced. Since portable code cannot
  16671. # rely on this symbol name, it's probably fine to never include it in
  16672. # preloaded symbol tables.
  16673. extract_expsyms_cmds=
  16674. # Just being paranoid about ensuring that cc_basename is set.
  16675. for cc_temp in $compiler""; do
  16676. case $cc_temp in
  16677. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16678. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16679. \-*) ;;
  16680. *) break;;
  16681. esac
  16682. done
  16683. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16684. case $host_os in
  16685. cygwin* | mingw* | pw32*)
  16686. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  16687. # When not using gcc, we currently assume that we are using
  16688. # Microsoft Visual C++.
  16689. if test "$GCC" != yes; then
  16690. with_gnu_ld=no
  16691. fi
  16692. ;;
  16693. interix*)
  16694. # we just hope/assume this is gcc and not c89 (= MSVC++)
  16695. with_gnu_ld=yes
  16696. ;;
  16697. openbsd*)
  16698. with_gnu_ld=no
  16699. ;;
  16700. esac
  16701. ld_shlibs_GCJ=yes
  16702. if test "$with_gnu_ld" = yes; then
  16703. # If archive_cmds runs LD, not CC, wlarc should be empty
  16704. wlarc='${wl}'
  16705. # Set some defaults for GNU ld with shared library support. These
  16706. # are reset later if shared libraries are not supported. Putting them
  16707. # here allows them to be overridden if necessary.
  16708. runpath_var=LD_RUN_PATH
  16709. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  16710. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  16711. # ancient GNU ld didn't support --whole-archive et. al.
  16712. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  16713. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  16714. else
  16715. whole_archive_flag_spec_GCJ=
  16716. fi
  16717. supports_anon_versioning=no
  16718. case `$LD -v 2>/dev/null` in
  16719. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  16720. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  16721. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  16722. *\ 2.11.*) ;; # other 2.11 versions
  16723. *) supports_anon_versioning=yes ;;
  16724. esac
  16725. # See if GNU ld supports shared libraries.
  16726. case $host_os in
  16727. aix3* | aix4* | aix5*)
  16728. # On AIX/PPC, the GNU linker is very broken
  16729. if test "$host_cpu" != ia64; then
  16730. ld_shlibs_GCJ=no
  16731. cat <<EOF 1>&2
  16732. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  16733. *** to be unable to reliably create shared libraries on AIX.
  16734. *** Therefore, libtool is disabling shared libraries support. If you
  16735. *** really care for shared libraries, you may want to modify your PATH
  16736. *** so that a non-GNU linker is found, and then restart.
  16737. EOF
  16738. fi
  16739. ;;
  16740. amigaos*)
  16741. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  16742. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16743. hardcode_minus_L_GCJ=yes
  16744. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  16745. # that the semantics of dynamic libraries on AmigaOS, at least up
  16746. # to version 4, is to share data among multiple programs linked
  16747. # with the same dynamic library. Since this doesn't match the
  16748. # behavior of shared libraries on other platforms, we can't use
  16749. # them.
  16750. ld_shlibs_GCJ=no
  16751. ;;
  16752. beos*)
  16753. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16754. allow_undefined_flag_GCJ=unsupported
  16755. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  16756. # support --undefined. This deserves some investigation. FIXME
  16757. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16758. else
  16759. ld_shlibs_GCJ=no
  16760. fi
  16761. ;;
  16762. cygwin* | mingw* | pw32*)
  16763. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  16764. # as there is no search path for DLLs.
  16765. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16766. allow_undefined_flag_GCJ=unsupported
  16767. always_export_symbols_GCJ=no
  16768. enable_shared_with_static_runtimes_GCJ=yes
  16769. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  16770. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  16771. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  16772. # If the export-symbols file already is a .def file (1st line
  16773. # is EXPORTS), use it as is; otherwise, prepend...
  16774. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  16775. cp $export_symbols $output_objdir/$soname.def;
  16776. else
  16777. echo EXPORTS > $output_objdir/$soname.def;
  16778. cat $export_symbols >> $output_objdir/$soname.def;
  16779. fi~
  16780. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  16781. else
  16782. ld_shlibs_GCJ=no
  16783. fi
  16784. ;;
  16785. interix3*)
  16786. hardcode_direct_GCJ=no
  16787. hardcode_shlibpath_var_GCJ=no
  16788. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16789. export_dynamic_flag_spec_GCJ='${wl}-E'
  16790. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  16791. # Instead, shared libraries are loaded at an image base (0x10000000 by
  16792. # default) and relocated if they conflict, which is a slow very memory
  16793. # consuming and fragmenting process. To avoid this, we pick a random,
  16794. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  16795. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  16796. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  16797. archive_expsym_cmds_GCJ='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'
  16798. ;;
  16799. linux*)
  16800. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16801. tmp_addflag=
  16802. case $cc_basename,$host_cpu in
  16803. pgcc*) # Portland Group C compiler
  16804. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  16805. tmp_addflag=' $pic_flag'
  16806. ;;
  16807. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  16808. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  16809. tmp_addflag=' $pic_flag -Mnomain' ;;
  16810. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  16811. tmp_addflag=' -i_dynamic' ;;
  16812. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  16813. tmp_addflag=' -i_dynamic -nofor_main' ;;
  16814. ifc* | ifort*) # Intel Fortran compiler
  16815. tmp_addflag=' -nofor_main' ;;
  16816. esac
  16817. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16818. if test $supports_anon_versioning = yes; then
  16819. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  16820. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  16821. $echo "local: *; };" >> $output_objdir/$libname.ver~
  16822. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  16823. fi
  16824. else
  16825. ld_shlibs_GCJ=no
  16826. fi
  16827. ;;
  16828. netbsd*)
  16829. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16830. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  16831. wlarc=
  16832. else
  16833. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16834. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16835. fi
  16836. ;;
  16837. solaris*)
  16838. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  16839. ld_shlibs_GCJ=no
  16840. cat <<EOF 1>&2
  16841. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  16842. *** create shared libraries on Solaris systems. Therefore, libtool
  16843. *** is disabling shared libraries support. We urge you to upgrade GNU
  16844. *** binutils to release 2.9.1 or newer. Another option is to modify
  16845. *** your PATH or compiler configuration so that the native linker is
  16846. *** used, and then restart.
  16847. EOF
  16848. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16849. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16850. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16851. else
  16852. ld_shlibs_GCJ=no
  16853. fi
  16854. ;;
  16855. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  16856. case `$LD -v 2>&1` in
  16857. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  16858. ld_shlibs_GCJ=no
  16859. cat <<_LT_EOF 1>&2
  16860. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  16861. *** reliably create shared libraries on SCO systems. Therefore, libtool
  16862. *** is disabling shared libraries support. We urge you to upgrade GNU
  16863. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  16864. *** your PATH or compiler configuration so that the native linker is
  16865. *** used, and then restart.
  16866. _LT_EOF
  16867. ;;
  16868. *)
  16869. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16870. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  16871. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  16872. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  16873. else
  16874. ld_shlibs_GCJ=no
  16875. fi
  16876. ;;
  16877. esac
  16878. ;;
  16879. sunos4*)
  16880. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16881. wlarc=
  16882. hardcode_direct_GCJ=yes
  16883. hardcode_shlibpath_var_GCJ=no
  16884. ;;
  16885. *)
  16886. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16887. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16888. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16889. else
  16890. ld_shlibs_GCJ=no
  16891. fi
  16892. ;;
  16893. esac
  16894. if test "$ld_shlibs_GCJ" = no; then
  16895. runpath_var=
  16896. hardcode_libdir_flag_spec_GCJ=
  16897. export_dynamic_flag_spec_GCJ=
  16898. whole_archive_flag_spec_GCJ=
  16899. fi
  16900. else
  16901. # PORTME fill in a description of your system's linker (not GNU ld)
  16902. case $host_os in
  16903. aix3*)
  16904. allow_undefined_flag_GCJ=unsupported
  16905. always_export_symbols_GCJ=yes
  16906. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  16907. # Note: this linker hardcodes the directories in LIBPATH if there
  16908. # are no directories specified by -L.
  16909. hardcode_minus_L_GCJ=yes
  16910. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  16911. # Neither direct hardcoding nor static linking is supported with a
  16912. # broken collect2.
  16913. hardcode_direct_GCJ=unsupported
  16914. fi
  16915. ;;
  16916. aix4* | aix5*)
  16917. if test "$host_cpu" = ia64; then
  16918. # On IA64, the linker does run time linking by default, so we don't
  16919. # have to do anything special.
  16920. aix_use_runtimelinking=no
  16921. exp_sym_flag='-Bexport'
  16922. no_entry_flag=""
  16923. else
  16924. # If we're using GNU nm, then we don't want the "-C" option.
  16925. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  16926. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  16927. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  16928. else
  16929. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  16930. fi
  16931. aix_use_runtimelinking=no
  16932. # Test if we are trying to use run time linking or normal
  16933. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  16934. # need to do runtime linking.
  16935. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  16936. for ld_flag in $LDFLAGS; do
  16937. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  16938. aix_use_runtimelinking=yes
  16939. break
  16940. fi
  16941. done
  16942. ;;
  16943. esac
  16944. exp_sym_flag='-bexport'
  16945. no_entry_flag='-bnoentry'
  16946. fi
  16947. # When large executables or shared objects are built, AIX ld can
  16948. # have problems creating the table of contents. If linking a library
  16949. # or program results in "error TOC overflow" add -mminimal-toc to
  16950. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  16951. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  16952. archive_cmds_GCJ=''
  16953. hardcode_direct_GCJ=yes
  16954. hardcode_libdir_separator_GCJ=':'
  16955. link_all_deplibs_GCJ=yes
  16956. if test "$GCC" = yes; then
  16957. case $host_os in aix4.[012]|aix4.[012].*)
  16958. # We only want to do this on AIX 4.2 and lower, the check
  16959. # below for broken collect2 doesn't work under 4.3+
  16960. collect2name=`${CC} -print-prog-name=collect2`
  16961. if test -f "$collect2name" && \
  16962. strings "$collect2name" | grep resolve_lib_name >/dev/null
  16963. then
  16964. # We have reworked collect2
  16965. hardcode_direct_GCJ=yes
  16966. else
  16967. # We have old collect2
  16968. hardcode_direct_GCJ=unsupported
  16969. # It fails to find uninstalled libraries when the uninstalled
  16970. # path is not listed in the libpath. Setting hardcode_minus_L
  16971. # to unsupported forces relinking
  16972. hardcode_minus_L_GCJ=yes
  16973. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16974. hardcode_libdir_separator_GCJ=
  16975. fi
  16976. ;;
  16977. esac
  16978. shared_flag='-shared'
  16979. if test "$aix_use_runtimelinking" = yes; then
  16980. shared_flag="$shared_flag "'${wl}-G'
  16981. fi
  16982. else
  16983. # not using gcc
  16984. if test "$host_cpu" = ia64; then
  16985. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  16986. # chokes on -Wl,-G. The following line is correct:
  16987. shared_flag='-G'
  16988. else
  16989. if test "$aix_use_runtimelinking" = yes; then
  16990. shared_flag='${wl}-G'
  16991. else
  16992. shared_flag='${wl}-bM:SRE'
  16993. fi
  16994. fi
  16995. fi
  16996. # It seems that -bexpall does not export symbols beginning with
  16997. # underscore (_), so it is better to generate a list of symbols to export.
  16998. always_export_symbols_GCJ=yes
  16999. if test "$aix_use_runtimelinking" = yes; then
  17000. # Warning - without using the other runtime loading flags (-brtl),
  17001. # -berok will link without error, but may produce a broken library.
  17002. allow_undefined_flag_GCJ='-berok'
  17003. # Determine the default libpath from the value encoded in an empty executable.
  17004. cat >conftest.$ac_ext <<_ACEOF
  17005. /* confdefs.h. */
  17006. _ACEOF
  17007. cat confdefs.h >>conftest.$ac_ext
  17008. cat >>conftest.$ac_ext <<_ACEOF
  17009. /* end confdefs.h. */
  17010. int
  17011. main ()
  17012. {
  17013. ;
  17014. return 0;
  17015. }
  17016. _ACEOF
  17017. rm -f conftest.$ac_objext conftest$ac_exeext
  17018. if { (ac_try="$ac_link"
  17019. case "(($ac_try" in
  17020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17021. *) ac_try_echo=$ac_try;;
  17022. esac
  17023. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17024. (eval "$ac_link") 2>conftest.er1
  17025. ac_status=$?
  17026. grep -v '^ *+' conftest.er1 >conftest.err
  17027. rm -f conftest.er1
  17028. cat conftest.err >&5
  17029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17030. (exit $ac_status); } && {
  17031. test -z "$ac_c_werror_flag" ||
  17032. test ! -s conftest.err
  17033. } && test -s conftest$ac_exeext &&
  17034. $as_test_x conftest$ac_exeext; then
  17035. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  17036. }'`
  17037. # Check for a 64-bit object if we didn't find anything.
  17038. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  17039. }'`; fi
  17040. else
  17041. echo "$as_me: failed program was:" >&5
  17042. sed 's/^/| /' conftest.$ac_ext >&5
  17043. fi
  17044. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17045. conftest$ac_exeext conftest.$ac_ext
  17046. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  17047. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  17048. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  17049. else
  17050. if test "$host_cpu" = ia64; then
  17051. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  17052. allow_undefined_flag_GCJ="-z nodefs"
  17053. archive_expsym_cmds_GCJ="\$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"
  17054. else
  17055. # Determine the default libpath from the value encoded in an empty executable.
  17056. cat >conftest.$ac_ext <<_ACEOF
  17057. /* confdefs.h. */
  17058. _ACEOF
  17059. cat confdefs.h >>conftest.$ac_ext
  17060. cat >>conftest.$ac_ext <<_ACEOF
  17061. /* end confdefs.h. */
  17062. int
  17063. main ()
  17064. {
  17065. ;
  17066. return 0;
  17067. }
  17068. _ACEOF
  17069. rm -f conftest.$ac_objext conftest$ac_exeext
  17070. if { (ac_try="$ac_link"
  17071. case "(($ac_try" in
  17072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17073. *) ac_try_echo=$ac_try;;
  17074. esac
  17075. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17076. (eval "$ac_link") 2>conftest.er1
  17077. ac_status=$?
  17078. grep -v '^ *+' conftest.er1 >conftest.err
  17079. rm -f conftest.er1
  17080. cat conftest.err >&5
  17081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17082. (exit $ac_status); } && {
  17083. test -z "$ac_c_werror_flag" ||
  17084. test ! -s conftest.err
  17085. } && test -s conftest$ac_exeext &&
  17086. $as_test_x conftest$ac_exeext; then
  17087. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  17088. }'`
  17089. # Check for a 64-bit object if we didn't find anything.
  17090. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  17091. }'`; fi
  17092. else
  17093. echo "$as_me: failed program was:" >&5
  17094. sed 's/^/| /' conftest.$ac_ext >&5
  17095. fi
  17096. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17097. conftest$ac_exeext conftest.$ac_ext
  17098. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  17099. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  17100. # Warning - without using the other run time loading flags,
  17101. # -berok will link without error, but may produce a broken library.
  17102. no_undefined_flag_GCJ=' ${wl}-bernotok'
  17103. allow_undefined_flag_GCJ=' ${wl}-berok'
  17104. # Exported symbols can be pulled into shared objects from archives
  17105. whole_archive_flag_spec_GCJ='$convenience'
  17106. archive_cmds_need_lc_GCJ=yes
  17107. # This is similar to how AIX traditionally builds its shared libraries.
  17108. archive_expsym_cmds_GCJ="\$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'
  17109. fi
  17110. fi
  17111. ;;
  17112. amigaos*)
  17113. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  17114. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17115. hardcode_minus_L_GCJ=yes
  17116. # see comment about different semantics on the GNU ld section
  17117. ld_shlibs_GCJ=no
  17118. ;;
  17119. bsdi[45]*)
  17120. export_dynamic_flag_spec_GCJ=-rdynamic
  17121. ;;
  17122. cygwin* | mingw* | pw32*)
  17123. # When not using gcc, we currently assume that we are using
  17124. # Microsoft Visual C++.
  17125. # hardcode_libdir_flag_spec is actually meaningless, as there is
  17126. # no search path for DLLs.
  17127. hardcode_libdir_flag_spec_GCJ=' '
  17128. allow_undefined_flag_GCJ=unsupported
  17129. # Tell ltmain to make .lib files, not .a files.
  17130. libext=lib
  17131. # Tell ltmain to make .dll files, not .so files.
  17132. shrext_cmds=".dll"
  17133. # FIXME: Setting linknames here is a bad hack.
  17134. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  17135. # The linker will automatically build a .lib file if we build a DLL.
  17136. old_archive_From_new_cmds_GCJ='true'
  17137. # FIXME: Should let the user specify the lib program.
  17138. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  17139. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  17140. enable_shared_with_static_runtimes_GCJ=yes
  17141. ;;
  17142. darwin* | rhapsody*)
  17143. case $host_os in
  17144. rhapsody* | darwin1.[012])
  17145. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  17146. ;;
  17147. *) # Darwin 1.3 on
  17148. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  17149. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  17150. else
  17151. case ${MACOSX_DEPLOYMENT_TARGET} in
  17152. 10.[012])
  17153. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  17154. ;;
  17155. 10.*)
  17156. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  17157. ;;
  17158. esac
  17159. fi
  17160. ;;
  17161. esac
  17162. archive_cmds_need_lc_GCJ=no
  17163. hardcode_direct_GCJ=no
  17164. hardcode_automatic_GCJ=yes
  17165. hardcode_shlibpath_var_GCJ=unsupported
  17166. whole_archive_flag_spec_GCJ=''
  17167. link_all_deplibs_GCJ=yes
  17168. if test "$GCC" = yes ; then
  17169. output_verbose_link_cmd='echo'
  17170. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  17171. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  17172. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  17173. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17174. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17175. else
  17176. case $cc_basename in
  17177. xlc*)
  17178. output_verbose_link_cmd='echo'
  17179. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  17180. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  17181. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  17182. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17183. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17184. ;;
  17185. *)
  17186. ld_shlibs_GCJ=no
  17187. ;;
  17188. esac
  17189. fi
  17190. ;;
  17191. dgux*)
  17192. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17193. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17194. hardcode_shlibpath_var_GCJ=no
  17195. ;;
  17196. freebsd1*)
  17197. ld_shlibs_GCJ=no
  17198. ;;
  17199. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  17200. # support. Future versions do this automatically, but an explicit c++rt0.o
  17201. # does not break anything, and helps significantly (at the cost of a little
  17202. # extra space).
  17203. freebsd2.2*)
  17204. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  17205. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  17206. hardcode_direct_GCJ=yes
  17207. hardcode_shlibpath_var_GCJ=no
  17208. ;;
  17209. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  17210. freebsd2*)
  17211. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  17212. hardcode_direct_GCJ=yes
  17213. hardcode_minus_L_GCJ=yes
  17214. hardcode_shlibpath_var_GCJ=no
  17215. ;;
  17216. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  17217. freebsd* | kfreebsd*-gnu | dragonfly*)
  17218. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  17219. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  17220. hardcode_direct_GCJ=yes
  17221. hardcode_shlibpath_var_GCJ=no
  17222. ;;
  17223. hpux9*)
  17224. if test "$GCC" = yes; then
  17225. archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  17226. else
  17227. archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  17228. fi
  17229. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  17230. hardcode_libdir_separator_GCJ=:
  17231. hardcode_direct_GCJ=yes
  17232. # hardcode_minus_L: Not really in the search PATH,
  17233. # but as the default location of the library.
  17234. hardcode_minus_L_GCJ=yes
  17235. export_dynamic_flag_spec_GCJ='${wl}-E'
  17236. ;;
  17237. hpux10*)
  17238. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  17239. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  17240. else
  17241. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  17242. fi
  17243. if test "$with_gnu_ld" = no; then
  17244. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  17245. hardcode_libdir_separator_GCJ=:
  17246. hardcode_direct_GCJ=yes
  17247. export_dynamic_flag_spec_GCJ='${wl}-E'
  17248. # hardcode_minus_L: Not really in the search PATH,
  17249. # but as the default location of the library.
  17250. hardcode_minus_L_GCJ=yes
  17251. fi
  17252. ;;
  17253. hpux11*)
  17254. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  17255. case $host_cpu in
  17256. hppa*64*)
  17257. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17258. ;;
  17259. ia64*)
  17260. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  17261. ;;
  17262. *)
  17263. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  17264. ;;
  17265. esac
  17266. else
  17267. case $host_cpu in
  17268. hppa*64*)
  17269. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17270. ;;
  17271. ia64*)
  17272. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  17273. ;;
  17274. *)
  17275. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  17276. ;;
  17277. esac
  17278. fi
  17279. if test "$with_gnu_ld" = no; then
  17280. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  17281. hardcode_libdir_separator_GCJ=:
  17282. case $host_cpu in
  17283. hppa*64*|ia64*)
  17284. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  17285. hardcode_direct_GCJ=no
  17286. hardcode_shlibpath_var_GCJ=no
  17287. ;;
  17288. *)
  17289. hardcode_direct_GCJ=yes
  17290. export_dynamic_flag_spec_GCJ='${wl}-E'
  17291. # hardcode_minus_L: Not really in the search PATH,
  17292. # but as the default location of the library.
  17293. hardcode_minus_L_GCJ=yes
  17294. ;;
  17295. esac
  17296. fi
  17297. ;;
  17298. irix5* | irix6* | nonstopux*)
  17299. if test "$GCC" = yes; then
  17300. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  17301. else
  17302. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  17303. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  17304. fi
  17305. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  17306. hardcode_libdir_separator_GCJ=:
  17307. link_all_deplibs_GCJ=yes
  17308. ;;
  17309. netbsd*)
  17310. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  17311. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  17312. else
  17313. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  17314. fi
  17315. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  17316. hardcode_direct_GCJ=yes
  17317. hardcode_shlibpath_var_GCJ=no
  17318. ;;
  17319. newsos6)
  17320. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17321. hardcode_direct_GCJ=yes
  17322. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  17323. hardcode_libdir_separator_GCJ=:
  17324. hardcode_shlibpath_var_GCJ=no
  17325. ;;
  17326. openbsd*)
  17327. hardcode_direct_GCJ=yes
  17328. hardcode_shlibpath_var_GCJ=no
  17329. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  17330. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  17331. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  17332. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  17333. export_dynamic_flag_spec_GCJ='${wl}-E'
  17334. else
  17335. case $host_os in
  17336. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  17337. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  17338. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  17339. ;;
  17340. *)
  17341. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  17342. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  17343. ;;
  17344. esac
  17345. fi
  17346. ;;
  17347. os2*)
  17348. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17349. hardcode_minus_L_GCJ=yes
  17350. allow_undefined_flag_GCJ=unsupported
  17351. archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  17352. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  17353. ;;
  17354. osf3*)
  17355. if test "$GCC" = yes; then
  17356. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  17357. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  17358. else
  17359. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  17360. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  17361. fi
  17362. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  17363. hardcode_libdir_separator_GCJ=:
  17364. ;;
  17365. osf4* | osf5*) # as osf3* with the addition of -msym flag
  17366. if test "$GCC" = yes; then
  17367. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  17368. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  17369. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  17370. else
  17371. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  17372. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  17373. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  17374. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  17375. # Both c and cxx compiler support -rpath directly
  17376. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  17377. fi
  17378. hardcode_libdir_separator_GCJ=:
  17379. ;;
  17380. solaris*)
  17381. no_undefined_flag_GCJ=' -z text'
  17382. if test "$GCC" = yes; then
  17383. wlarc='${wl}'
  17384. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17385. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  17386. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  17387. else
  17388. wlarc=''
  17389. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17390. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  17391. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  17392. fi
  17393. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  17394. hardcode_shlibpath_var_GCJ=no
  17395. case $host_os in
  17396. solaris2.[0-5] | solaris2.[0-5].*) ;;
  17397. *)
  17398. # The compiler driver will combine linker options so we
  17399. # cannot just pass the convience library names through
  17400. # without $wl, iff we do not link with $LD.
  17401. # Luckily, gcc supports the same syntax we need for Sun Studio.
  17402. # Supported since Solaris 2.6 (maybe 2.5.1?)
  17403. case $wlarc in
  17404. '')
  17405. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  17406. *)
  17407. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  17408. esac ;;
  17409. esac
  17410. link_all_deplibs_GCJ=yes
  17411. ;;
  17412. sunos4*)
  17413. if test "x$host_vendor" = xsequent; then
  17414. # Use $CC to link under sequent, because it throws in some extra .o
  17415. # files that make .init and .fini sections work.
  17416. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  17417. else
  17418. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  17419. fi
  17420. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17421. hardcode_direct_GCJ=yes
  17422. hardcode_minus_L_GCJ=yes
  17423. hardcode_shlibpath_var_GCJ=no
  17424. ;;
  17425. sysv4)
  17426. case $host_vendor in
  17427. sni)
  17428. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17429. hardcode_direct_GCJ=yes # is this really true???
  17430. ;;
  17431. siemens)
  17432. ## LD is ld it makes a PLAMLIB
  17433. ## CC just makes a GrossModule.
  17434. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  17435. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  17436. hardcode_direct_GCJ=no
  17437. ;;
  17438. motorola)
  17439. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17440. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  17441. ;;
  17442. esac
  17443. runpath_var='LD_RUN_PATH'
  17444. hardcode_shlibpath_var_GCJ=no
  17445. ;;
  17446. sysv4.3*)
  17447. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17448. hardcode_shlibpath_var_GCJ=no
  17449. export_dynamic_flag_spec_GCJ='-Bexport'
  17450. ;;
  17451. sysv4*MP*)
  17452. if test -d /usr/nec; then
  17453. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17454. hardcode_shlibpath_var_GCJ=no
  17455. runpath_var=LD_RUN_PATH
  17456. hardcode_runpath_var=yes
  17457. ld_shlibs_GCJ=yes
  17458. fi
  17459. ;;
  17460. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  17461. no_undefined_flag_GCJ='${wl}-z,text'
  17462. archive_cmds_need_lc_GCJ=no
  17463. hardcode_shlibpath_var_GCJ=no
  17464. runpath_var='LD_RUN_PATH'
  17465. if test "$GCC" = yes; then
  17466. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17467. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17468. else
  17469. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17470. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17471. fi
  17472. ;;
  17473. sysv5* | sco3.2v5* | sco5v6*)
  17474. # Note: We can NOT use -z defs as we might desire, because we do not
  17475. # link with -lc, and that would cause any symbols used from libc to
  17476. # always be unresolved, which means just about no library would
  17477. # ever link correctly. If we're not using GNU ld we use -z text
  17478. # though, which does catch some bad symbols but isn't as heavy-handed
  17479. # as -z defs.
  17480. no_undefined_flag_GCJ='${wl}-z,text'
  17481. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  17482. archive_cmds_need_lc_GCJ=no
  17483. hardcode_shlibpath_var_GCJ=no
  17484. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  17485. hardcode_libdir_separator_GCJ=':'
  17486. link_all_deplibs_GCJ=yes
  17487. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  17488. runpath_var='LD_RUN_PATH'
  17489. if test "$GCC" = yes; then
  17490. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17491. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17492. else
  17493. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17494. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17495. fi
  17496. ;;
  17497. uts4*)
  17498. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17499. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17500. hardcode_shlibpath_var_GCJ=no
  17501. ;;
  17502. *)
  17503. ld_shlibs_GCJ=no
  17504. ;;
  17505. esac
  17506. fi
  17507. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  17508. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  17509. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  17510. #
  17511. # Do we need to explicitly link libc?
  17512. #
  17513. case "x$archive_cmds_need_lc_GCJ" in
  17514. x|xyes)
  17515. # Assume -lc should be added
  17516. archive_cmds_need_lc_GCJ=yes
  17517. if test "$enable_shared" = yes && test "$GCC" = yes; then
  17518. case $archive_cmds_GCJ in
  17519. *'~'*)
  17520. # FIXME: we may have to deal with multi-command sequences.
  17521. ;;
  17522. '$CC '*)
  17523. # Test whether the compiler implicitly links with -lc since on some
  17524. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  17525. # to ld, don't add -lc before -lgcc.
  17526. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  17527. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  17528. $rm conftest*
  17529. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  17530. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17531. (eval $ac_compile) 2>&5
  17532. ac_status=$?
  17533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17534. (exit $ac_status); } 2>conftest.err; then
  17535. soname=conftest
  17536. lib=conftest
  17537. libobjs=conftest.$ac_objext
  17538. deplibs=
  17539. wl=$lt_prog_compiler_wl_GCJ
  17540. pic_flag=$lt_prog_compiler_pic_GCJ
  17541. compiler_flags=-v
  17542. linker_flags=-v
  17543. verstring=
  17544. output_objdir=.
  17545. libname=conftest
  17546. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  17547. allow_undefined_flag_GCJ=
  17548. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  17549. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  17550. ac_status=$?
  17551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17552. (exit $ac_status); }
  17553. then
  17554. archive_cmds_need_lc_GCJ=no
  17555. else
  17556. archive_cmds_need_lc_GCJ=yes
  17557. fi
  17558. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  17559. else
  17560. cat conftest.err 1>&5
  17561. fi
  17562. $rm conftest*
  17563. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  17564. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  17565. ;;
  17566. esac
  17567. fi
  17568. ;;
  17569. esac
  17570. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  17571. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  17572. library_names_spec=
  17573. libname_spec='lib$name'
  17574. soname_spec=
  17575. shrext_cmds=".so"
  17576. postinstall_cmds=
  17577. postuninstall_cmds=
  17578. finish_cmds=
  17579. finish_eval=
  17580. shlibpath_var=
  17581. shlibpath_overrides_runpath=unknown
  17582. version_type=none
  17583. dynamic_linker="$host_os ld.so"
  17584. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  17585. if test "$GCC" = yes; then
  17586. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  17587. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  17588. # if the path contains ";" then we assume it to be the separator
  17589. # otherwise default to the standard path separator (i.e. ":") - it is
  17590. # assumed that no part of a normal pathname contains ";" but that should
  17591. # okay in the real world where ";" in dirpaths is itself problematic.
  17592. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  17593. else
  17594. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  17595. fi
  17596. else
  17597. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  17598. fi
  17599. need_lib_prefix=unknown
  17600. hardcode_into_libs=no
  17601. # when you set need_version to no, make sure it does not cause -set_version
  17602. # flags to be left without arguments
  17603. need_version=unknown
  17604. case $host_os in
  17605. aix3*)
  17606. version_type=linux
  17607. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  17608. shlibpath_var=LIBPATH
  17609. # AIX 3 has no versioning support, so we append a major version to the name.
  17610. soname_spec='${libname}${release}${shared_ext}$major'
  17611. ;;
  17612. aix4* | aix5*)
  17613. version_type=linux
  17614. need_lib_prefix=no
  17615. need_version=no
  17616. hardcode_into_libs=yes
  17617. if test "$host_cpu" = ia64; then
  17618. # AIX 5 supports IA64
  17619. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  17620. shlibpath_var=LD_LIBRARY_PATH
  17621. else
  17622. # With GCC up to 2.95.x, collect2 would create an import file
  17623. # for dependence libraries. The import file would start with
  17624. # the line `#! .'. This would cause the generated library to
  17625. # depend on `.', always an invalid library. This was fixed in
  17626. # development snapshots of GCC prior to 3.0.
  17627. case $host_os in
  17628. aix4 | aix4.[01] | aix4.[01].*)
  17629. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  17630. echo ' yes '
  17631. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  17632. :
  17633. else
  17634. can_build_shared=no
  17635. fi
  17636. ;;
  17637. esac
  17638. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  17639. # soname into executable. Probably we can add versioning support to
  17640. # collect2, so additional links can be useful in future.
  17641. if test "$aix_use_runtimelinking" = yes; then
  17642. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  17643. # instead of lib<name>.a to let people know that these are not
  17644. # typical AIX shared libraries.
  17645. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17646. else
  17647. # We preserve .a as extension for shared libraries through AIX4.2
  17648. # and later when we are not doing run time linking.
  17649. library_names_spec='${libname}${release}.a $libname.a'
  17650. soname_spec='${libname}${release}${shared_ext}$major'
  17651. fi
  17652. shlibpath_var=LIBPATH
  17653. fi
  17654. ;;
  17655. amigaos*)
  17656. library_names_spec='$libname.ixlibrary $libname.a'
  17657. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  17658. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  17659. ;;
  17660. beos*)
  17661. library_names_spec='${libname}${shared_ext}'
  17662. dynamic_linker="$host_os ld.so"
  17663. shlibpath_var=LIBRARY_PATH
  17664. ;;
  17665. bsdi[45]*)
  17666. version_type=linux
  17667. need_version=no
  17668. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17669. soname_spec='${libname}${release}${shared_ext}$major'
  17670. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  17671. shlibpath_var=LD_LIBRARY_PATH
  17672. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  17673. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  17674. # the default ld.so.conf also contains /usr/contrib/lib and
  17675. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  17676. # libtool to hard-code these into programs
  17677. ;;
  17678. cygwin* | mingw* | pw32*)
  17679. version_type=windows
  17680. shrext_cmds=".dll"
  17681. need_version=no
  17682. need_lib_prefix=no
  17683. case $GCC,$host_os in
  17684. yes,cygwin* | yes,mingw* | yes,pw32*)
  17685. library_names_spec='$libname.dll.a'
  17686. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  17687. postinstall_cmds='base_file=`basename \${file}`~
  17688. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  17689. dldir=$destdir/`dirname \$dlpath`~
  17690. test -d \$dldir || mkdir -p \$dldir~
  17691. $install_prog $dir/$dlname \$dldir/$dlname~
  17692. chmod a+x \$dldir/$dlname'
  17693. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  17694. dlpath=$dir/\$dldll~
  17695. $rm \$dlpath'
  17696. shlibpath_overrides_runpath=yes
  17697. case $host_os in
  17698. cygwin*)
  17699. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  17700. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17701. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  17702. ;;
  17703. mingw*)
  17704. # MinGW DLLs use traditional 'lib' prefix
  17705. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17706. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  17707. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  17708. # It is most probably a Windows format PATH printed by
  17709. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  17710. # path with ; separators, and with drive letters. We can handle the
  17711. # drive letters (cygwin fileutils understands them), so leave them,
  17712. # especially as we might pass files found there to a mingw objdump,
  17713. # which wouldn't understand a cygwinified path. Ahh.
  17714. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  17715. else
  17716. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  17717. fi
  17718. ;;
  17719. pw32*)
  17720. # pw32 DLLs use 'pw' prefix rather than 'lib'
  17721. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17722. ;;
  17723. esac
  17724. ;;
  17725. *)
  17726. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  17727. ;;
  17728. esac
  17729. dynamic_linker='Win32 ld.exe'
  17730. # FIXME: first we should search . and the directory the executable is in
  17731. shlibpath_var=PATH
  17732. ;;
  17733. darwin* | rhapsody*)
  17734. dynamic_linker="$host_os dyld"
  17735. version_type=darwin
  17736. need_lib_prefix=no
  17737. need_version=no
  17738. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  17739. soname_spec='${libname}${release}${major}$shared_ext'
  17740. shlibpath_overrides_runpath=yes
  17741. shlibpath_var=DYLD_LIBRARY_PATH
  17742. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  17743. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  17744. if test "$GCC" = yes; then
  17745. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  17746. else
  17747. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  17748. fi
  17749. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  17750. ;;
  17751. dgux*)
  17752. version_type=linux
  17753. need_lib_prefix=no
  17754. need_version=no
  17755. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  17756. soname_spec='${libname}${release}${shared_ext}$major'
  17757. shlibpath_var=LD_LIBRARY_PATH
  17758. ;;
  17759. freebsd1*)
  17760. dynamic_linker=no
  17761. ;;
  17762. kfreebsd*-gnu)
  17763. version_type=linux
  17764. need_lib_prefix=no
  17765. need_version=no
  17766. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17767. soname_spec='${libname}${release}${shared_ext}$major'
  17768. shlibpath_var=LD_LIBRARY_PATH
  17769. shlibpath_overrides_runpath=no
  17770. hardcode_into_libs=yes
  17771. dynamic_linker='GNU ld.so'
  17772. ;;
  17773. freebsd* | dragonfly*)
  17774. # DragonFly does not have aout. When/if they implement a new
  17775. # versioning mechanism, adjust this.
  17776. if test -x /usr/bin/objformat; then
  17777. objformat=`/usr/bin/objformat`
  17778. else
  17779. case $host_os in
  17780. freebsd[123]*) objformat=aout ;;
  17781. *) objformat=elf ;;
  17782. esac
  17783. fi
  17784. version_type=freebsd-$objformat
  17785. case $version_type in
  17786. freebsd-elf*)
  17787. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  17788. need_version=no
  17789. need_lib_prefix=no
  17790. ;;
  17791. freebsd-*)
  17792. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  17793. need_version=yes
  17794. ;;
  17795. esac
  17796. shlibpath_var=LD_LIBRARY_PATH
  17797. case $host_os in
  17798. freebsd2*)
  17799. shlibpath_overrides_runpath=yes
  17800. ;;
  17801. freebsd3.[01]* | freebsdelf3.[01]*)
  17802. shlibpath_overrides_runpath=yes
  17803. hardcode_into_libs=yes
  17804. ;;
  17805. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  17806. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  17807. shlibpath_overrides_runpath=no
  17808. hardcode_into_libs=yes
  17809. ;;
  17810. freebsd*) # from 4.6 on
  17811. shlibpath_overrides_runpath=yes
  17812. hardcode_into_libs=yes
  17813. ;;
  17814. esac
  17815. ;;
  17816. gnu*)
  17817. version_type=linux
  17818. need_lib_prefix=no
  17819. need_version=no
  17820. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  17821. soname_spec='${libname}${release}${shared_ext}$major'
  17822. shlibpath_var=LD_LIBRARY_PATH
  17823. hardcode_into_libs=yes
  17824. ;;
  17825. hpux9* | hpux10* | hpux11*)
  17826. # Give a soname corresponding to the major version so that dld.sl refuses to
  17827. # link against other versions.
  17828. version_type=sunos
  17829. need_lib_prefix=no
  17830. need_version=no
  17831. case $host_cpu in
  17832. ia64*)
  17833. shrext_cmds='.so'
  17834. hardcode_into_libs=yes
  17835. dynamic_linker="$host_os dld.so"
  17836. shlibpath_var=LD_LIBRARY_PATH
  17837. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17838. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17839. soname_spec='${libname}${release}${shared_ext}$major'
  17840. if test "X$HPUX_IA64_MODE" = X32; then
  17841. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  17842. else
  17843. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  17844. fi
  17845. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17846. ;;
  17847. hppa*64*)
  17848. shrext_cmds='.sl'
  17849. hardcode_into_libs=yes
  17850. dynamic_linker="$host_os dld.sl"
  17851. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  17852. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17854. soname_spec='${libname}${release}${shared_ext}$major'
  17855. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  17856. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17857. ;;
  17858. *)
  17859. shrext_cmds='.sl'
  17860. dynamic_linker="$host_os dld.sl"
  17861. shlibpath_var=SHLIB_PATH
  17862. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  17863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17864. soname_spec='${libname}${release}${shared_ext}$major'
  17865. ;;
  17866. esac
  17867. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  17868. postinstall_cmds='chmod 555 $lib'
  17869. ;;
  17870. interix3*)
  17871. version_type=linux
  17872. need_lib_prefix=no
  17873. need_version=no
  17874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17875. soname_spec='${libname}${release}${shared_ext}$major'
  17876. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  17877. shlibpath_var=LD_LIBRARY_PATH
  17878. shlibpath_overrides_runpath=no
  17879. hardcode_into_libs=yes
  17880. ;;
  17881. irix5* | irix6* | nonstopux*)
  17882. case $host_os in
  17883. nonstopux*) version_type=nonstopux ;;
  17884. *)
  17885. if test "$lt_cv_prog_gnu_ld" = yes; then
  17886. version_type=linux
  17887. else
  17888. version_type=irix
  17889. fi ;;
  17890. esac
  17891. need_lib_prefix=no
  17892. need_version=no
  17893. soname_spec='${libname}${release}${shared_ext}$major'
  17894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  17895. case $host_os in
  17896. irix5* | nonstopux*)
  17897. libsuff= shlibsuff=
  17898. ;;
  17899. *)
  17900. case $LD in # libtool.m4 will add one of these switches to LD
  17901. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  17902. libsuff= shlibsuff= libmagic=32-bit;;
  17903. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  17904. libsuff=32 shlibsuff=N32 libmagic=N32;;
  17905. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  17906. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  17907. *) libsuff= shlibsuff= libmagic=never-match;;
  17908. esac
  17909. ;;
  17910. esac
  17911. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  17912. shlibpath_overrides_runpath=no
  17913. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  17914. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  17915. hardcode_into_libs=yes
  17916. ;;
  17917. # No shared lib support for Linux oldld, aout, or coff.
  17918. linux*oldld* | linux*aout* | linux*coff*)
  17919. dynamic_linker=no
  17920. ;;
  17921. # This must be Linux ELF.
  17922. linux*)
  17923. version_type=linux
  17924. need_lib_prefix=no
  17925. need_version=no
  17926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17927. soname_spec='${libname}${release}${shared_ext}$major'
  17928. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  17929. shlibpath_var=LD_LIBRARY_PATH
  17930. shlibpath_overrides_runpath=no
  17931. # This implies no fast_install, which is unacceptable.
  17932. # Some rework will be needed to allow for fast_install
  17933. # before this can be enabled.
  17934. hardcode_into_libs=yes
  17935. # Append ld.so.conf contents to the search path
  17936. if test -f /etc/ld.so.conf; then
  17937. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  17938. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  17939. fi
  17940. # We used to test for /lib/ld.so.1 and disable shared libraries on
  17941. # powerpc, because MkLinux only supported shared libraries with the
  17942. # GNU dynamic linker. Since this was broken with cross compilers,
  17943. # most powerpc-linux boxes support dynamic linking these days and
  17944. # people can always --disable-shared, the test was removed, and we
  17945. # assume the GNU/Linux dynamic linker is in use.
  17946. dynamic_linker='GNU/Linux ld.so'
  17947. ;;
  17948. knetbsd*-gnu)
  17949. version_type=linux
  17950. need_lib_prefix=no
  17951. need_version=no
  17952. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17953. soname_spec='${libname}${release}${shared_ext}$major'
  17954. shlibpath_var=LD_LIBRARY_PATH
  17955. shlibpath_overrides_runpath=no
  17956. hardcode_into_libs=yes
  17957. dynamic_linker='GNU ld.so'
  17958. ;;
  17959. netbsd*)
  17960. version_type=sunos
  17961. need_lib_prefix=no
  17962. need_version=no
  17963. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  17964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17965. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17966. dynamic_linker='NetBSD (a.out) ld.so'
  17967. else
  17968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17969. soname_spec='${libname}${release}${shared_ext}$major'
  17970. dynamic_linker='NetBSD ld.elf_so'
  17971. fi
  17972. shlibpath_var=LD_LIBRARY_PATH
  17973. shlibpath_overrides_runpath=yes
  17974. hardcode_into_libs=yes
  17975. ;;
  17976. newsos6)
  17977. version_type=linux
  17978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17979. shlibpath_var=LD_LIBRARY_PATH
  17980. shlibpath_overrides_runpath=yes
  17981. ;;
  17982. nto-qnx*)
  17983. version_type=linux
  17984. need_lib_prefix=no
  17985. need_version=no
  17986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17987. soname_spec='${libname}${release}${shared_ext}$major'
  17988. shlibpath_var=LD_LIBRARY_PATH
  17989. shlibpath_overrides_runpath=yes
  17990. ;;
  17991. openbsd*)
  17992. version_type=sunos
  17993. sys_lib_dlsearch_path_spec="/usr/lib"
  17994. need_lib_prefix=no
  17995. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  17996. case $host_os in
  17997. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  17998. *) need_version=no ;;
  17999. esac
  18000. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18001. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  18002. shlibpath_var=LD_LIBRARY_PATH
  18003. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18004. case $host_os in
  18005. openbsd2.[89] | openbsd2.[89].*)
  18006. shlibpath_overrides_runpath=no
  18007. ;;
  18008. *)
  18009. shlibpath_overrides_runpath=yes
  18010. ;;
  18011. esac
  18012. else
  18013. shlibpath_overrides_runpath=yes
  18014. fi
  18015. ;;
  18016. os2*)
  18017. libname_spec='$name'
  18018. shrext_cmds=".dll"
  18019. need_lib_prefix=no
  18020. library_names_spec='$libname${shared_ext} $libname.a'
  18021. dynamic_linker='OS/2 ld.exe'
  18022. shlibpath_var=LIBPATH
  18023. ;;
  18024. osf3* | osf4* | osf5*)
  18025. version_type=osf
  18026. need_lib_prefix=no
  18027. need_version=no
  18028. soname_spec='${libname}${release}${shared_ext}$major'
  18029. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18030. shlibpath_var=LD_LIBRARY_PATH
  18031. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  18032. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  18033. ;;
  18034. solaris*)
  18035. version_type=linux
  18036. need_lib_prefix=no
  18037. need_version=no
  18038. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18039. soname_spec='${libname}${release}${shared_ext}$major'
  18040. shlibpath_var=LD_LIBRARY_PATH
  18041. shlibpath_overrides_runpath=yes
  18042. hardcode_into_libs=yes
  18043. # ldd complains unless libraries are executable
  18044. postinstall_cmds='chmod +x $lib'
  18045. ;;
  18046. sunos4*)
  18047. version_type=sunos
  18048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18049. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  18050. shlibpath_var=LD_LIBRARY_PATH
  18051. shlibpath_overrides_runpath=yes
  18052. if test "$with_gnu_ld" = yes; then
  18053. need_lib_prefix=no
  18054. fi
  18055. need_version=yes
  18056. ;;
  18057. sysv4 | sysv4.3*)
  18058. version_type=linux
  18059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18060. soname_spec='${libname}${release}${shared_ext}$major'
  18061. shlibpath_var=LD_LIBRARY_PATH
  18062. case $host_vendor in
  18063. sni)
  18064. shlibpath_overrides_runpath=no
  18065. need_lib_prefix=no
  18066. export_dynamic_flag_spec='${wl}-Blargedynsym'
  18067. runpath_var=LD_RUN_PATH
  18068. ;;
  18069. siemens)
  18070. need_lib_prefix=no
  18071. ;;
  18072. motorola)
  18073. need_lib_prefix=no
  18074. need_version=no
  18075. shlibpath_overrides_runpath=no
  18076. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  18077. ;;
  18078. esac
  18079. ;;
  18080. sysv4*MP*)
  18081. if test -d /usr/nec ;then
  18082. version_type=linux
  18083. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  18084. soname_spec='$libname${shared_ext}.$major'
  18085. shlibpath_var=LD_LIBRARY_PATH
  18086. fi
  18087. ;;
  18088. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  18089. version_type=freebsd-elf
  18090. need_lib_prefix=no
  18091. need_version=no
  18092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  18093. soname_spec='${libname}${release}${shared_ext}$major'
  18094. shlibpath_var=LD_LIBRARY_PATH
  18095. hardcode_into_libs=yes
  18096. if test "$with_gnu_ld" = yes; then
  18097. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  18098. shlibpath_overrides_runpath=no
  18099. else
  18100. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  18101. shlibpath_overrides_runpath=yes
  18102. case $host_os in
  18103. sco3.2v5*)
  18104. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  18105. ;;
  18106. esac
  18107. fi
  18108. sys_lib_dlsearch_path_spec='/usr/lib'
  18109. ;;
  18110. uts4*)
  18111. version_type=linux
  18112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18113. soname_spec='${libname}${release}${shared_ext}$major'
  18114. shlibpath_var=LD_LIBRARY_PATH
  18115. ;;
  18116. *)
  18117. dynamic_linker=no
  18118. ;;
  18119. esac
  18120. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  18121. echo "${ECHO_T}$dynamic_linker" >&6; }
  18122. test "$dynamic_linker" = no && can_build_shared=no
  18123. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  18124. if test "$GCC" = yes; then
  18125. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  18126. fi
  18127. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  18128. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  18129. hardcode_action_GCJ=
  18130. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  18131. test -n "$runpath_var_GCJ" || \
  18132. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  18133. # We can hardcode non-existant directories.
  18134. if test "$hardcode_direct_GCJ" != no &&
  18135. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  18136. # have to relink, otherwise we might link with an installed library
  18137. # when we should be linking with a yet-to-be-installed one
  18138. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  18139. test "$hardcode_minus_L_GCJ" != no; then
  18140. # Linking always hardcodes the temporary library directory.
  18141. hardcode_action_GCJ=relink
  18142. else
  18143. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  18144. hardcode_action_GCJ=immediate
  18145. fi
  18146. else
  18147. # We cannot hardcode anything, or else we can only hardcode existing
  18148. # directories.
  18149. hardcode_action_GCJ=unsupported
  18150. fi
  18151. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  18152. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  18153. if test "$hardcode_action_GCJ" = relink; then
  18154. # Fast installation is not supported
  18155. enable_fast_install=no
  18156. elif test "$shlibpath_overrides_runpath" = yes ||
  18157. test "$enable_shared" = no; then
  18158. # Fast installation is not necessary
  18159. enable_fast_install=needless
  18160. fi
  18161. # The else clause should only fire when bootstrapping the
  18162. # libtool distribution, otherwise you forgot to ship ltmain.sh
  18163. # with your package, and you will get complaints that there are
  18164. # no rules to generate ltmain.sh.
  18165. if test -f "$ltmain"; then
  18166. # See if we are running on zsh, and set the options which allow our commands through
  18167. # without removal of \ escapes.
  18168. if test -n "${ZSH_VERSION+set}" ; then
  18169. setopt NO_GLOB_SUBST
  18170. fi
  18171. # Now quote all the things that may contain metacharacters while being
  18172. # careful not to overquote the AC_SUBSTed values. We take copies of the
  18173. # variables and quote the copies for generation of the libtool script.
  18174. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  18175. SED SHELL STRIP \
  18176. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  18177. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  18178. deplibs_check_method reload_flag reload_cmds need_locks \
  18179. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  18180. lt_cv_sys_global_symbol_to_c_name_address \
  18181. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  18182. old_postinstall_cmds old_postuninstall_cmds \
  18183. compiler_GCJ \
  18184. CC_GCJ \
  18185. LD_GCJ \
  18186. lt_prog_compiler_wl_GCJ \
  18187. lt_prog_compiler_pic_GCJ \
  18188. lt_prog_compiler_static_GCJ \
  18189. lt_prog_compiler_no_builtin_flag_GCJ \
  18190. export_dynamic_flag_spec_GCJ \
  18191. thread_safe_flag_spec_GCJ \
  18192. whole_archive_flag_spec_GCJ \
  18193. enable_shared_with_static_runtimes_GCJ \
  18194. old_archive_cmds_GCJ \
  18195. old_archive_from_new_cmds_GCJ \
  18196. predep_objects_GCJ \
  18197. postdep_objects_GCJ \
  18198. predeps_GCJ \
  18199. postdeps_GCJ \
  18200. compiler_lib_search_path_GCJ \
  18201. archive_cmds_GCJ \
  18202. archive_expsym_cmds_GCJ \
  18203. postinstall_cmds_GCJ \
  18204. postuninstall_cmds_GCJ \
  18205. old_archive_from_expsyms_cmds_GCJ \
  18206. allow_undefined_flag_GCJ \
  18207. no_undefined_flag_GCJ \
  18208. export_symbols_cmds_GCJ \
  18209. hardcode_libdir_flag_spec_GCJ \
  18210. hardcode_libdir_flag_spec_ld_GCJ \
  18211. hardcode_libdir_separator_GCJ \
  18212. hardcode_automatic_GCJ \
  18213. module_cmds_GCJ \
  18214. module_expsym_cmds_GCJ \
  18215. lt_cv_prog_compiler_c_o_GCJ \
  18216. exclude_expsyms_GCJ \
  18217. include_expsyms_GCJ; do
  18218. case $var in
  18219. old_archive_cmds_GCJ | \
  18220. old_archive_from_new_cmds_GCJ | \
  18221. archive_cmds_GCJ | \
  18222. archive_expsym_cmds_GCJ | \
  18223. module_cmds_GCJ | \
  18224. module_expsym_cmds_GCJ | \
  18225. old_archive_from_expsyms_cmds_GCJ | \
  18226. export_symbols_cmds_GCJ | \
  18227. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  18228. postinstall_cmds | postuninstall_cmds | \
  18229. old_postinstall_cmds | old_postuninstall_cmds | \
  18230. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  18231. # Double-quote double-evaled strings.
  18232. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  18233. ;;
  18234. *)
  18235. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  18236. ;;
  18237. esac
  18238. done
  18239. case $lt_echo in
  18240. *'\$0 --fallback-echo"')
  18241. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  18242. ;;
  18243. esac
  18244. cfgfile="$ofile"
  18245. cat <<__EOF__ >> "$cfgfile"
  18246. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  18247. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  18248. # Shell to use when invoking shell scripts.
  18249. SHELL=$lt_SHELL
  18250. # Whether or not to build shared libraries.
  18251. build_libtool_libs=$enable_shared
  18252. # Whether or not to build static libraries.
  18253. build_old_libs=$enable_static
  18254. # Whether or not to add -lc for building shared libraries.
  18255. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  18256. # Whether or not to disallow shared libs when runtime libs are static
  18257. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  18258. # Whether or not to optimize for fast installation.
  18259. fast_install=$enable_fast_install
  18260. # The host system.
  18261. host_alias=$host_alias
  18262. host=$host
  18263. host_os=$host_os
  18264. # The build system.
  18265. build_alias=$build_alias
  18266. build=$build
  18267. build_os=$build_os
  18268. # An echo program that does not interpret backslashes.
  18269. echo=$lt_echo
  18270. # The archiver.
  18271. AR=$lt_AR
  18272. AR_FLAGS=$lt_AR_FLAGS
  18273. # A C compiler.
  18274. LTCC=$lt_LTCC
  18275. # LTCC compiler flags.
  18276. LTCFLAGS=$lt_LTCFLAGS
  18277. # A language-specific compiler.
  18278. CC=$lt_compiler_GCJ
  18279. # Is the compiler the GNU C compiler?
  18280. with_gcc=$GCC_GCJ
  18281. # An ERE matcher.
  18282. EGREP=$lt_EGREP
  18283. # The linker used to build libraries.
  18284. LD=$lt_LD_GCJ
  18285. # Whether we need hard or soft links.
  18286. LN_S=$lt_LN_S
  18287. # A BSD-compatible nm program.
  18288. NM=$lt_NM
  18289. # A symbol stripping program
  18290. STRIP=$lt_STRIP
  18291. # Used to examine libraries when file_magic_cmd begins "file"
  18292. MAGIC_CMD=$MAGIC_CMD
  18293. # Used on cygwin: DLL creation program.
  18294. DLLTOOL="$DLLTOOL"
  18295. # Used on cygwin: object dumper.
  18296. OBJDUMP="$OBJDUMP"
  18297. # Used on cygwin: assembler.
  18298. AS="$AS"
  18299. # The name of the directory that contains temporary libtool files.
  18300. objdir=$objdir
  18301. # How to create reloadable object files.
  18302. reload_flag=$lt_reload_flag
  18303. reload_cmds=$lt_reload_cmds
  18304. # How to pass a linker flag through the compiler.
  18305. wl=$lt_lt_prog_compiler_wl_GCJ
  18306. # Object file suffix (normally "o").
  18307. objext="$ac_objext"
  18308. # Old archive suffix (normally "a").
  18309. libext="$libext"
  18310. # Shared library suffix (normally ".so").
  18311. shrext_cmds='$shrext_cmds'
  18312. # Executable file suffix (normally "").
  18313. exeext="$exeext"
  18314. # Additional compiler flags for building library objects.
  18315. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  18316. pic_mode=$pic_mode
  18317. # What is the maximum length of a command?
  18318. max_cmd_len=$lt_cv_sys_max_cmd_len
  18319. # Does compiler simultaneously support -c and -o options?
  18320. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  18321. # Must we lock files when doing compilation?
  18322. need_locks=$lt_need_locks
  18323. # Do we need the lib prefix for modules?
  18324. need_lib_prefix=$need_lib_prefix
  18325. # Do we need a version for libraries?
  18326. need_version=$need_version
  18327. # Whether dlopen is supported.
  18328. dlopen_support=$enable_dlopen
  18329. # Whether dlopen of programs is supported.
  18330. dlopen_self=$enable_dlopen_self
  18331. # Whether dlopen of statically linked programs is supported.
  18332. dlopen_self_static=$enable_dlopen_self_static
  18333. # Compiler flag to prevent dynamic linking.
  18334. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  18335. # Compiler flag to turn off builtin functions.
  18336. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  18337. # Compiler flag to allow reflexive dlopens.
  18338. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  18339. # Compiler flag to generate shared objects directly from archives.
  18340. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  18341. # Compiler flag to generate thread-safe objects.
  18342. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  18343. # Library versioning type.
  18344. version_type=$version_type
  18345. # Format of library name prefix.
  18346. libname_spec=$lt_libname_spec
  18347. # List of archive names. First name is the real one, the rest are links.
  18348. # The last name is the one that the linker finds with -lNAME.
  18349. library_names_spec=$lt_library_names_spec
  18350. # The coded name of the library, if different from the real name.
  18351. soname_spec=$lt_soname_spec
  18352. # Commands used to build and install an old-style archive.
  18353. RANLIB=$lt_RANLIB
  18354. old_archive_cmds=$lt_old_archive_cmds_GCJ
  18355. old_postinstall_cmds=$lt_old_postinstall_cmds
  18356. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18357. # Create an old-style archive from a shared archive.
  18358. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  18359. # Create a temporary old-style archive to link instead of a shared archive.
  18360. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  18361. # Commands used to build and install a shared archive.
  18362. archive_cmds=$lt_archive_cmds_GCJ
  18363. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  18364. postinstall_cmds=$lt_postinstall_cmds
  18365. postuninstall_cmds=$lt_postuninstall_cmds
  18366. # Commands used to build a loadable module (assumed same as above if empty)
  18367. module_cmds=$lt_module_cmds_GCJ
  18368. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  18369. # Commands to strip libraries.
  18370. old_striplib=$lt_old_striplib
  18371. striplib=$lt_striplib
  18372. # Dependencies to place before the objects being linked to create a
  18373. # shared library.
  18374. predep_objects=$lt_predep_objects_GCJ
  18375. # Dependencies to place after the objects being linked to create a
  18376. # shared library.
  18377. postdep_objects=$lt_postdep_objects_GCJ
  18378. # Dependencies to place before the objects being linked to create a
  18379. # shared library.
  18380. predeps=$lt_predeps_GCJ
  18381. # Dependencies to place after the objects being linked to create a
  18382. # shared library.
  18383. postdeps=$lt_postdeps_GCJ
  18384. # The library search path used internally by the compiler when linking
  18385. # a shared library.
  18386. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  18387. # Method to check whether dependent libraries are shared objects.
  18388. deplibs_check_method=$lt_deplibs_check_method
  18389. # Command to use when deplibs_check_method == file_magic.
  18390. file_magic_cmd=$lt_file_magic_cmd
  18391. # Flag that allows shared libraries with undefined symbols to be built.
  18392. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  18393. # Flag that forces no undefined symbols.
  18394. no_undefined_flag=$lt_no_undefined_flag_GCJ
  18395. # Commands used to finish a libtool library installation in a directory.
  18396. finish_cmds=$lt_finish_cmds
  18397. # Same as above, but a single script fragment to be evaled but not shown.
  18398. finish_eval=$lt_finish_eval
  18399. # Take the output of nm and produce a listing of raw symbols and C names.
  18400. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18401. # Transform the output of nm in a proper C declaration
  18402. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18403. # Transform the output of nm in a C name address pair
  18404. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18405. # This is the shared library runtime path variable.
  18406. runpath_var=$runpath_var
  18407. # This is the shared library path variable.
  18408. shlibpath_var=$shlibpath_var
  18409. # Is shlibpath searched before the hard-coded library search path?
  18410. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18411. # How to hardcode a shared library path into an executable.
  18412. hardcode_action=$hardcode_action_GCJ
  18413. # Whether we should hardcode library paths into libraries.
  18414. hardcode_into_libs=$hardcode_into_libs
  18415. # Flag to hardcode \$libdir into a binary during linking.
  18416. # This must work even if \$libdir does not exist.
  18417. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  18418. # If ld is used when linking, flag to hardcode \$libdir into
  18419. # a binary during linking. This must work even if \$libdir does
  18420. # not exist.
  18421. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  18422. # Whether we need a single -rpath flag with a separated argument.
  18423. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  18424. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  18425. # resulting binary.
  18426. hardcode_direct=$hardcode_direct_GCJ
  18427. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  18428. # resulting binary.
  18429. hardcode_minus_L=$hardcode_minus_L_GCJ
  18430. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  18431. # the resulting binary.
  18432. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  18433. # Set to yes if building a shared library automatically hardcodes DIR into the library
  18434. # and all subsequent libraries and executables linked against it.
  18435. hardcode_automatic=$hardcode_automatic_GCJ
  18436. # Variables whose values should be saved in libtool wrapper scripts and
  18437. # restored at relink time.
  18438. variables_saved_for_relink="$variables_saved_for_relink"
  18439. # Whether libtool must link a program against all its dependency libraries.
  18440. link_all_deplibs=$link_all_deplibs_GCJ
  18441. # Compile-time system search path for libraries
  18442. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18443. # Run-time system search path for libraries
  18444. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  18445. # Fix the shell variable \$srcfile for the compiler.
  18446. fix_srcfile_path="$fix_srcfile_path_GCJ"
  18447. # Set to yes if exported symbols are required.
  18448. always_export_symbols=$always_export_symbols_GCJ
  18449. # The commands to list exported symbols.
  18450. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  18451. # The commands to extract the exported symbol list from a shared archive.
  18452. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18453. # Symbols that should not be listed in the preloaded symbols.
  18454. exclude_expsyms=$lt_exclude_expsyms_GCJ
  18455. # Symbols that must always be exported.
  18456. include_expsyms=$lt_include_expsyms_GCJ
  18457. # ### END LIBTOOL TAG CONFIG: $tagname
  18458. __EOF__
  18459. else
  18460. # If there is no Makefile yet, we rely on a make rule to execute
  18461. # `config.status --recheck' to rerun these tests and create the
  18462. # libtool script then.
  18463. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  18464. if test -f "$ltmain_in"; then
  18465. test -f Makefile && make "$ltmain"
  18466. fi
  18467. fi
  18468. ac_ext=c
  18469. ac_cpp='$CPP $CPPFLAGS'
  18470. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18471. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18472. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18473. CC="$lt_save_CC"
  18474. else
  18475. tagname=""
  18476. fi
  18477. ;;
  18478. RC)
  18479. # Source file extension for RC test sources.
  18480. ac_ext=rc
  18481. # Object file extension for compiled RC test sources.
  18482. objext=o
  18483. objext_RC=$objext
  18484. # Code to be used in simple compile tests
  18485. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  18486. # Code to be used in simple link tests
  18487. lt_simple_link_test_code="$lt_simple_compile_test_code"
  18488. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  18489. # If no C compiler was specified, use CC.
  18490. LTCC=${LTCC-"$CC"}
  18491. # If no C compiler flags were specified, use CFLAGS.
  18492. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  18493. # Allow CC to be a program name with arguments.
  18494. compiler=$CC
  18495. # save warnings/boilerplate of simple test code
  18496. ac_outfile=conftest.$ac_objext
  18497. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  18498. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  18499. _lt_compiler_boilerplate=`cat conftest.err`
  18500. $rm conftest*
  18501. ac_outfile=conftest.$ac_objext
  18502. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  18503. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  18504. _lt_linker_boilerplate=`cat conftest.err`
  18505. $rm conftest*
  18506. # Allow CC to be a program name with arguments.
  18507. lt_save_CC="$CC"
  18508. CC=${RC-"windres"}
  18509. compiler=$CC
  18510. compiler_RC=$CC
  18511. for cc_temp in $compiler""; do
  18512. case $cc_temp in
  18513. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  18514. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  18515. \-*) ;;
  18516. *) break;;
  18517. esac
  18518. done
  18519. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  18520. lt_cv_prog_compiler_c_o_RC=yes
  18521. # The else clause should only fire when bootstrapping the
  18522. # libtool distribution, otherwise you forgot to ship ltmain.sh
  18523. # with your package, and you will get complaints that there are
  18524. # no rules to generate ltmain.sh.
  18525. if test -f "$ltmain"; then
  18526. # See if we are running on zsh, and set the options which allow our commands through
  18527. # without removal of \ escapes.
  18528. if test -n "${ZSH_VERSION+set}" ; then
  18529. setopt NO_GLOB_SUBST
  18530. fi
  18531. # Now quote all the things that may contain metacharacters while being
  18532. # careful not to overquote the AC_SUBSTed values. We take copies of the
  18533. # variables and quote the copies for generation of the libtool script.
  18534. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  18535. SED SHELL STRIP \
  18536. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  18537. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  18538. deplibs_check_method reload_flag reload_cmds need_locks \
  18539. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  18540. lt_cv_sys_global_symbol_to_c_name_address \
  18541. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  18542. old_postinstall_cmds old_postuninstall_cmds \
  18543. compiler_RC \
  18544. CC_RC \
  18545. LD_RC \
  18546. lt_prog_compiler_wl_RC \
  18547. lt_prog_compiler_pic_RC \
  18548. lt_prog_compiler_static_RC \
  18549. lt_prog_compiler_no_builtin_flag_RC \
  18550. export_dynamic_flag_spec_RC \
  18551. thread_safe_flag_spec_RC \
  18552. whole_archive_flag_spec_RC \
  18553. enable_shared_with_static_runtimes_RC \
  18554. old_archive_cmds_RC \
  18555. old_archive_from_new_cmds_RC \
  18556. predep_objects_RC \
  18557. postdep_objects_RC \
  18558. predeps_RC \
  18559. postdeps_RC \
  18560. compiler_lib_search_path_RC \
  18561. archive_cmds_RC \
  18562. archive_expsym_cmds_RC \
  18563. postinstall_cmds_RC \
  18564. postuninstall_cmds_RC \
  18565. old_archive_from_expsyms_cmds_RC \
  18566. allow_undefined_flag_RC \
  18567. no_undefined_flag_RC \
  18568. export_symbols_cmds_RC \
  18569. hardcode_libdir_flag_spec_RC \
  18570. hardcode_libdir_flag_spec_ld_RC \
  18571. hardcode_libdir_separator_RC \
  18572. hardcode_automatic_RC \
  18573. module_cmds_RC \
  18574. module_expsym_cmds_RC \
  18575. lt_cv_prog_compiler_c_o_RC \
  18576. exclude_expsyms_RC \
  18577. include_expsyms_RC; do
  18578. case $var in
  18579. old_archive_cmds_RC | \
  18580. old_archive_from_new_cmds_RC | \
  18581. archive_cmds_RC | \
  18582. archive_expsym_cmds_RC | \
  18583. module_cmds_RC | \
  18584. module_expsym_cmds_RC | \
  18585. old_archive_from_expsyms_cmds_RC | \
  18586. export_symbols_cmds_RC | \
  18587. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  18588. postinstall_cmds | postuninstall_cmds | \
  18589. old_postinstall_cmds | old_postuninstall_cmds | \
  18590. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  18591. # Double-quote double-evaled strings.
  18592. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  18593. ;;
  18594. *)
  18595. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  18596. ;;
  18597. esac
  18598. done
  18599. case $lt_echo in
  18600. *'\$0 --fallback-echo"')
  18601. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  18602. ;;
  18603. esac
  18604. cfgfile="$ofile"
  18605. cat <<__EOF__ >> "$cfgfile"
  18606. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  18607. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  18608. # Shell to use when invoking shell scripts.
  18609. SHELL=$lt_SHELL
  18610. # Whether or not to build shared libraries.
  18611. build_libtool_libs=$enable_shared
  18612. # Whether or not to build static libraries.
  18613. build_old_libs=$enable_static
  18614. # Whether or not to add -lc for building shared libraries.
  18615. build_libtool_need_lc=$archive_cmds_need_lc_RC
  18616. # Whether or not to disallow shared libs when runtime libs are static
  18617. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  18618. # Whether or not to optimize for fast installation.
  18619. fast_install=$enable_fast_install
  18620. # The host system.
  18621. host_alias=$host_alias
  18622. host=$host
  18623. host_os=$host_os
  18624. # The build system.
  18625. build_alias=$build_alias
  18626. build=$build
  18627. build_os=$build_os
  18628. # An echo program that does not interpret backslashes.
  18629. echo=$lt_echo
  18630. # The archiver.
  18631. AR=$lt_AR
  18632. AR_FLAGS=$lt_AR_FLAGS
  18633. # A C compiler.
  18634. LTCC=$lt_LTCC
  18635. # LTCC compiler flags.
  18636. LTCFLAGS=$lt_LTCFLAGS
  18637. # A language-specific compiler.
  18638. CC=$lt_compiler_RC
  18639. # Is the compiler the GNU C compiler?
  18640. with_gcc=$GCC_RC
  18641. # An ERE matcher.
  18642. EGREP=$lt_EGREP
  18643. # The linker used to build libraries.
  18644. LD=$lt_LD_RC
  18645. # Whether we need hard or soft links.
  18646. LN_S=$lt_LN_S
  18647. # A BSD-compatible nm program.
  18648. NM=$lt_NM
  18649. # A symbol stripping program
  18650. STRIP=$lt_STRIP
  18651. # Used to examine libraries when file_magic_cmd begins "file"
  18652. MAGIC_CMD=$MAGIC_CMD
  18653. # Used on cygwin: DLL creation program.
  18654. DLLTOOL="$DLLTOOL"
  18655. # Used on cygwin: object dumper.
  18656. OBJDUMP="$OBJDUMP"
  18657. # Used on cygwin: assembler.
  18658. AS="$AS"
  18659. # The name of the directory that contains temporary libtool files.
  18660. objdir=$objdir
  18661. # How to create reloadable object files.
  18662. reload_flag=$lt_reload_flag
  18663. reload_cmds=$lt_reload_cmds
  18664. # How to pass a linker flag through the compiler.
  18665. wl=$lt_lt_prog_compiler_wl_RC
  18666. # Object file suffix (normally "o").
  18667. objext="$ac_objext"
  18668. # Old archive suffix (normally "a").
  18669. libext="$libext"
  18670. # Shared library suffix (normally ".so").
  18671. shrext_cmds='$shrext_cmds'
  18672. # Executable file suffix (normally "").
  18673. exeext="$exeext"
  18674. # Additional compiler flags for building library objects.
  18675. pic_flag=$lt_lt_prog_compiler_pic_RC
  18676. pic_mode=$pic_mode
  18677. # What is the maximum length of a command?
  18678. max_cmd_len=$lt_cv_sys_max_cmd_len
  18679. # Does compiler simultaneously support -c and -o options?
  18680. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  18681. # Must we lock files when doing compilation?
  18682. need_locks=$lt_need_locks
  18683. # Do we need the lib prefix for modules?
  18684. need_lib_prefix=$need_lib_prefix
  18685. # Do we need a version for libraries?
  18686. need_version=$need_version
  18687. # Whether dlopen is supported.
  18688. dlopen_support=$enable_dlopen
  18689. # Whether dlopen of programs is supported.
  18690. dlopen_self=$enable_dlopen_self
  18691. # Whether dlopen of statically linked programs is supported.
  18692. dlopen_self_static=$enable_dlopen_self_static
  18693. # Compiler flag to prevent dynamic linking.
  18694. link_static_flag=$lt_lt_prog_compiler_static_RC
  18695. # Compiler flag to turn off builtin functions.
  18696. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  18697. # Compiler flag to allow reflexive dlopens.
  18698. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  18699. # Compiler flag to generate shared objects directly from archives.
  18700. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  18701. # Compiler flag to generate thread-safe objects.
  18702. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  18703. # Library versioning type.
  18704. version_type=$version_type
  18705. # Format of library name prefix.
  18706. libname_spec=$lt_libname_spec
  18707. # List of archive names. First name is the real one, the rest are links.
  18708. # The last name is the one that the linker finds with -lNAME.
  18709. library_names_spec=$lt_library_names_spec
  18710. # The coded name of the library, if different from the real name.
  18711. soname_spec=$lt_soname_spec
  18712. # Commands used to build and install an old-style archive.
  18713. RANLIB=$lt_RANLIB
  18714. old_archive_cmds=$lt_old_archive_cmds_RC
  18715. old_postinstall_cmds=$lt_old_postinstall_cmds
  18716. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18717. # Create an old-style archive from a shared archive.
  18718. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  18719. # Create a temporary old-style archive to link instead of a shared archive.
  18720. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  18721. # Commands used to build and install a shared archive.
  18722. archive_cmds=$lt_archive_cmds_RC
  18723. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  18724. postinstall_cmds=$lt_postinstall_cmds
  18725. postuninstall_cmds=$lt_postuninstall_cmds
  18726. # Commands used to build a loadable module (assumed same as above if empty)
  18727. module_cmds=$lt_module_cmds_RC
  18728. module_expsym_cmds=$lt_module_expsym_cmds_RC
  18729. # Commands to strip libraries.
  18730. old_striplib=$lt_old_striplib
  18731. striplib=$lt_striplib
  18732. # Dependencies to place before the objects being linked to create a
  18733. # shared library.
  18734. predep_objects=$lt_predep_objects_RC
  18735. # Dependencies to place after the objects being linked to create a
  18736. # shared library.
  18737. postdep_objects=$lt_postdep_objects_RC
  18738. # Dependencies to place before the objects being linked to create a
  18739. # shared library.
  18740. predeps=$lt_predeps_RC
  18741. # Dependencies to place after the objects being linked to create a
  18742. # shared library.
  18743. postdeps=$lt_postdeps_RC
  18744. # The library search path used internally by the compiler when linking
  18745. # a shared library.
  18746. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  18747. # Method to check whether dependent libraries are shared objects.
  18748. deplibs_check_method=$lt_deplibs_check_method
  18749. # Command to use when deplibs_check_method == file_magic.
  18750. file_magic_cmd=$lt_file_magic_cmd
  18751. # Flag that allows shared libraries with undefined symbols to be built.
  18752. allow_undefined_flag=$lt_allow_undefined_flag_RC
  18753. # Flag that forces no undefined symbols.
  18754. no_undefined_flag=$lt_no_undefined_flag_RC
  18755. # Commands used to finish a libtool library installation in a directory.
  18756. finish_cmds=$lt_finish_cmds
  18757. # Same as above, but a single script fragment to be evaled but not shown.
  18758. finish_eval=$lt_finish_eval
  18759. # Take the output of nm and produce a listing of raw symbols and C names.
  18760. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18761. # Transform the output of nm in a proper C declaration
  18762. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18763. # Transform the output of nm in a C name address pair
  18764. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18765. # This is the shared library runtime path variable.
  18766. runpath_var=$runpath_var
  18767. # This is the shared library path variable.
  18768. shlibpath_var=$shlibpath_var
  18769. # Is shlibpath searched before the hard-coded library search path?
  18770. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18771. # How to hardcode a shared library path into an executable.
  18772. hardcode_action=$hardcode_action_RC
  18773. # Whether we should hardcode library paths into libraries.
  18774. hardcode_into_libs=$hardcode_into_libs
  18775. # Flag to hardcode \$libdir into a binary during linking.
  18776. # This must work even if \$libdir does not exist.
  18777. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  18778. # If ld is used when linking, flag to hardcode \$libdir into
  18779. # a binary during linking. This must work even if \$libdir does
  18780. # not exist.
  18781. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  18782. # Whether we need a single -rpath flag with a separated argument.
  18783. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  18784. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  18785. # resulting binary.
  18786. hardcode_direct=$hardcode_direct_RC
  18787. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  18788. # resulting binary.
  18789. hardcode_minus_L=$hardcode_minus_L_RC
  18790. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  18791. # the resulting binary.
  18792. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  18793. # Set to yes if building a shared library automatically hardcodes DIR into the library
  18794. # and all subsequent libraries and executables linked against it.
  18795. hardcode_automatic=$hardcode_automatic_RC
  18796. # Variables whose values should be saved in libtool wrapper scripts and
  18797. # restored at relink time.
  18798. variables_saved_for_relink="$variables_saved_for_relink"
  18799. # Whether libtool must link a program against all its dependency libraries.
  18800. link_all_deplibs=$link_all_deplibs_RC
  18801. # Compile-time system search path for libraries
  18802. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18803. # Run-time system search path for libraries
  18804. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  18805. # Fix the shell variable \$srcfile for the compiler.
  18806. fix_srcfile_path="$fix_srcfile_path_RC"
  18807. # Set to yes if exported symbols are required.
  18808. always_export_symbols=$always_export_symbols_RC
  18809. # The commands to list exported symbols.
  18810. export_symbols_cmds=$lt_export_symbols_cmds_RC
  18811. # The commands to extract the exported symbol list from a shared archive.
  18812. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18813. # Symbols that should not be listed in the preloaded symbols.
  18814. exclude_expsyms=$lt_exclude_expsyms_RC
  18815. # Symbols that must always be exported.
  18816. include_expsyms=$lt_include_expsyms_RC
  18817. # ### END LIBTOOL TAG CONFIG: $tagname
  18818. __EOF__
  18819. else
  18820. # If there is no Makefile yet, we rely on a make rule to execute
  18821. # `config.status --recheck' to rerun these tests and create the
  18822. # libtool script then.
  18823. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  18824. if test -f "$ltmain_in"; then
  18825. test -f Makefile && make "$ltmain"
  18826. fi
  18827. fi
  18828. ac_ext=c
  18829. ac_cpp='$CPP $CPPFLAGS'
  18830. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18831. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18832. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18833. CC="$lt_save_CC"
  18834. ;;
  18835. *)
  18836. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  18837. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  18838. { (exit 1); exit 1; }; }
  18839. ;;
  18840. esac
  18841. # Append the new tag name to the list of available tags.
  18842. if test -n "$tagname" ; then
  18843. available_tags="$available_tags $tagname"
  18844. fi
  18845. fi
  18846. done
  18847. IFS="$lt_save_ifs"
  18848. # Now substitute the updated list of available tags.
  18849. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  18850. mv "${ofile}T" "$ofile"
  18851. chmod +x "$ofile"
  18852. else
  18853. rm -f "${ofile}T"
  18854. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  18855. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  18856. { (exit 1); exit 1; }; }
  18857. fi
  18858. fi
  18859. # This can be used to rebuild libtool when needed
  18860. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  18861. # Always use our own libtool.
  18862. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  18863. # Prevent multiple expansion
  18864. #
  18865. # Check for AViiON Machines running DGUX
  18866. #
  18867. ac_is_dgux=no
  18868. if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
  18869. { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
  18870. echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
  18871. if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
  18872. echo $ECHO_N "(cached) $ECHO_C" >&6
  18873. fi
  18874. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
  18875. echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
  18876. else
  18877. # Is the header compilable?
  18878. { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
  18879. echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
  18880. cat >conftest.$ac_ext <<_ACEOF
  18881. /* confdefs.h. */
  18882. _ACEOF
  18883. cat confdefs.h >>conftest.$ac_ext
  18884. cat >>conftest.$ac_ext <<_ACEOF
  18885. /* end confdefs.h. */
  18886. $ac_includes_default
  18887. #include <sys/dg_sys_info.h>
  18888. _ACEOF
  18889. rm -f conftest.$ac_objext
  18890. if { (ac_try="$ac_compile"
  18891. case "(($ac_try" in
  18892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18893. *) ac_try_echo=$ac_try;;
  18894. esac
  18895. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18896. (eval "$ac_compile") 2>conftest.er1
  18897. ac_status=$?
  18898. grep -v '^ *+' conftest.er1 >conftest.err
  18899. rm -f conftest.er1
  18900. cat conftest.err >&5
  18901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18902. (exit $ac_status); } && {
  18903. test -z "$ac_c_werror_flag" ||
  18904. test ! -s conftest.err
  18905. } && test -s conftest.$ac_objext; then
  18906. ac_header_compiler=yes
  18907. else
  18908. echo "$as_me: failed program was:" >&5
  18909. sed 's/^/| /' conftest.$ac_ext >&5
  18910. ac_header_compiler=no
  18911. fi
  18912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18913. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18914. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18915. # Is the header present?
  18916. { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
  18917. echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
  18918. cat >conftest.$ac_ext <<_ACEOF
  18919. /* confdefs.h. */
  18920. _ACEOF
  18921. cat confdefs.h >>conftest.$ac_ext
  18922. cat >>conftest.$ac_ext <<_ACEOF
  18923. /* end confdefs.h. */
  18924. #include <sys/dg_sys_info.h>
  18925. _ACEOF
  18926. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18927. case "(($ac_try" in
  18928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18929. *) ac_try_echo=$ac_try;;
  18930. esac
  18931. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18932. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18933. ac_status=$?
  18934. grep -v '^ *+' conftest.er1 >conftest.err
  18935. rm -f conftest.er1
  18936. cat conftest.err >&5
  18937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18938. (exit $ac_status); } >/dev/null && {
  18939. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18940. test ! -s conftest.err
  18941. }; then
  18942. ac_header_preproc=yes
  18943. else
  18944. echo "$as_me: failed program was:" >&5
  18945. sed 's/^/| /' conftest.$ac_ext >&5
  18946. ac_header_preproc=no
  18947. fi
  18948. rm -f conftest.err conftest.$ac_ext
  18949. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18950. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18951. # So? What about this header?
  18952. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18953. yes:no: )
  18954. { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18955. echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18956. { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
  18957. echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
  18958. ac_header_preproc=yes
  18959. ;;
  18960. no:yes:* )
  18961. { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
  18962. echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
  18963. { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
  18964. echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
  18965. { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
  18966. echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
  18967. { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
  18968. echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18969. { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
  18970. echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
  18971. { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
  18972. echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
  18973. ( cat <<\_ASBOX
  18974. ## -------------------------------- ##
  18975. ## Report this to Hans.Boehm@hp.com ##
  18976. ## -------------------------------- ##
  18977. _ASBOX
  18978. ) | sed "s/^/$as_me: WARNING: /" >&2
  18979. ;;
  18980. esac
  18981. { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
  18982. echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
  18983. if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
  18984. echo $ECHO_N "(cached) $ECHO_C" >&6
  18985. else
  18986. ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
  18987. fi
  18988. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
  18989. echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
  18990. fi
  18991. if test $ac_cv_header_sys_dg_sys_info_h = yes; then
  18992. ac_is_dgux=yes;
  18993. fi
  18994. ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
  18995. if test $ac_is_dgux = yes; then
  18996. if test "$enable_full_debug" = "yes"; then
  18997. CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
  18998. CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
  18999. else
  19000. CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
  19001. CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
  19002. fi
  19003. fi
  19004. # Check whether --with-target-subdir was given.
  19005. if test "${with_target_subdir+set}" = set; then
  19006. withval=$with_target_subdir;
  19007. fi
  19008. # Check whether --with-cross-host was given.
  19009. if test "${with_cross_host+set}" = set; then
  19010. withval=$with_cross_host;
  19011. fi
  19012. # automake wants to see AC_EXEEXT. But we don't need it. And having
  19013. # it is actually a problem, because the compiler we're passed can't
  19014. # necessarily do a full link. So we fool automake here.
  19015. if false; then
  19016. # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
  19017. # to nothing, so nothing would remain between `then' and `fi' if it
  19018. # were not for the `:' below.
  19019. :
  19020. fi
  19021. { echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
  19022. echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6; }
  19023. case "$host" in
  19024. *aix*)
  19025. if test "$GCC" = yes; then
  19026. { echo "$as_me:$LINENO: result: yes" >&5
  19027. echo "${ECHO_T}yes" >&6; }
  19028. new_CFLAGS=
  19029. for i in $CFLAGS; do
  19030. case "$i" in
  19031. -O*)
  19032. ;;
  19033. *)
  19034. new_CFLAGS="$new_CFLAGS $i"
  19035. ;;
  19036. esac
  19037. done
  19038. CFLAGS="$new_CFLAGS"
  19039. else
  19040. { echo "$as_me:$LINENO: result: no" >&5
  19041. echo "${ECHO_T}no" >&6; }
  19042. fi
  19043. ;;
  19044. *) { echo "$as_me:$LINENO: result: no" >&5
  19045. echo "${ECHO_T}no" >&6; } ;;
  19046. esac
  19047. cat >>confdefs.h <<\_ACEOF
  19048. #define NO_EXECUTE_PERMISSION 1
  19049. _ACEOF
  19050. cat >>confdefs.h <<\_ACEOF
  19051. #define ALL_INTERIOR_POINTERS 1
  19052. _ACEOF
  19053. # Check whether --enable-gcj-support was given.
  19054. if test "${enable_gcj_support+set}" = set; then
  19055. enableval=$enable_gcj_support;
  19056. fi
  19057. if test x"$enable_gcj_support" != xno; then
  19058. ENABLE_GCJ_SUPPORT_TRUE=
  19059. ENABLE_GCJ_SUPPORT_FALSE='#'
  19060. else
  19061. ENABLE_GCJ_SUPPORT_TRUE='#'
  19062. ENABLE_GCJ_SUPPORT_FALSE=
  19063. fi
  19064. if test x"$enable_gcj_support" != xno; then
  19065. cat >>confdefs.h <<\_ACEOF
  19066. #define GC_GCJ_SUPPORT 1
  19067. _ACEOF
  19068. fi
  19069. # Check whether --enable-java-finalization was given.
  19070. if test "${enable_java_finalization+set}" = set; then
  19071. enableval=$enable_java_finalization;
  19072. fi
  19073. if test x"$enable_java_finalization" != xno; then
  19074. cat >>confdefs.h <<\_ACEOF
  19075. #define JAVA_FINALIZATION 1
  19076. _ACEOF
  19077. fi
  19078. # Check whether --enable-atomic-uncollectable was given.
  19079. if test "${enable_atomic_uncollectable+set}" = set; then
  19080. enableval=$enable_atomic_uncollectable;
  19081. fi
  19082. if test x"$enable_atomic_uncollectible" != x"no"; then
  19083. cat >>confdefs.h <<\_ACEOF
  19084. #define ATOMIC_UNCOLLECTABLE 1
  19085. _ACEOF
  19086. fi
  19087. # Check whether --enable-redirect-malloc was given.
  19088. if test "${enable_redirect_malloc+set}" = set; then
  19089. enableval=$enable_redirect_malloc;
  19090. fi
  19091. if test "${enable_redirect_malloc}" = yes; then
  19092. if test "${enable_full_debug}" = yes; then
  19093. cat >>confdefs.h <<\_ACEOF
  19094. #define REDIRECT_MALLOC GC_debug_malloc_replacement
  19095. _ACEOF
  19096. cat >>confdefs.h <<\_ACEOF
  19097. #define REDIRECT_REALLOC GC_debug_realloc_replacement
  19098. _ACEOF
  19099. cat >>confdefs.h <<\_ACEOF
  19100. #define REDIRECT_FREE GC_debug_free
  19101. _ACEOF
  19102. else
  19103. cat >>confdefs.h <<\_ACEOF
  19104. #define REDIRECT_MALLOC GC_malloc
  19105. _ACEOF
  19106. fi
  19107. cat >>confdefs.h <<\_ACEOF
  19108. #define GC_USE_DLOPEN_WRAP 1
  19109. _ACEOF
  19110. fi
  19111. # Check whether --enable-large-config was given.
  19112. if test "${enable_large_config+set}" = set; then
  19113. enableval=$enable_large_config;
  19114. fi
  19115. if test "${enable_large_config}" = yes; then
  19116. cat >>confdefs.h <<\_ACEOF
  19117. #define LARGE_CONFIG 1
  19118. _ACEOF
  19119. fi
  19120. if test -n "${with_cross_host}"; then
  19121. cat >>confdefs.h <<\_ACEOF
  19122. #define NO_CLOCK 1
  19123. _ACEOF
  19124. cat >>confdefs.h <<\_ACEOF
  19125. #define SMALL_CONFIG 1
  19126. _ACEOF
  19127. cat >>confdefs.h <<\_ACEOF
  19128. #define NO_DEBUGGING 1
  19129. _ACEOF
  19130. fi
  19131. UNWINDLIBS=
  19132. # Check whether --enable-gc-debug was given.
  19133. if test "${enable_gc_debug+set}" = set; then
  19134. enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
  19135. { echo "$as_me:$LINENO: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&5
  19136. echo "$as_me: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
  19137. cat >>confdefs.h <<\_ACEOF
  19138. #define KEEP_BACK_PTRS 1
  19139. _ACEOF
  19140. cat >>confdefs.h <<\_ACEOF
  19141. #define DBG_HDRS_ALL 1
  19142. _ACEOF
  19143. case $host in
  19144. ia64-*-linux* )
  19145. cat >>confdefs.h <<\_ACEOF
  19146. #define MAKE_BACK_GRAPH 1
  19147. _ACEOF
  19148. cat >>confdefs.h <<\_ACEOF
  19149. #define SAVE_CALL_COUNT 8
  19150. _ACEOF
  19151. { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
  19152. echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
  19153. if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
  19154. echo $ECHO_N "(cached) $ECHO_C" >&6
  19155. else
  19156. ac_check_lib_save_LIBS=$LIBS
  19157. LIBS="-lunwind $LIBS"
  19158. cat >conftest.$ac_ext <<_ACEOF
  19159. /* confdefs.h. */
  19160. _ACEOF
  19161. cat confdefs.h >>conftest.$ac_ext
  19162. cat >>conftest.$ac_ext <<_ACEOF
  19163. /* end confdefs.h. */
  19164. /* Override any GCC internal prototype to avoid an error.
  19165. Use char because int might match the return type of a GCC
  19166. builtin and then its argument prototype would still apply. */
  19167. #ifdef __cplusplus
  19168. extern "C"
  19169. #endif
  19170. char backtrace ();
  19171. int
  19172. main ()
  19173. {
  19174. return backtrace ();
  19175. ;
  19176. return 0;
  19177. }
  19178. _ACEOF
  19179. rm -f conftest.$ac_objext conftest$ac_exeext
  19180. if { (ac_try="$ac_link"
  19181. case "(($ac_try" in
  19182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19183. *) ac_try_echo=$ac_try;;
  19184. esac
  19185. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19186. (eval "$ac_link") 2>conftest.er1
  19187. ac_status=$?
  19188. grep -v '^ *+' conftest.er1 >conftest.err
  19189. rm -f conftest.er1
  19190. cat conftest.err >&5
  19191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19192. (exit $ac_status); } && {
  19193. test -z "$ac_c_werror_flag" ||
  19194. test ! -s conftest.err
  19195. } && test -s conftest$ac_exeext &&
  19196. $as_test_x conftest$ac_exeext; then
  19197. ac_cv_lib_unwind_backtrace=yes
  19198. else
  19199. echo "$as_me: failed program was:" >&5
  19200. sed 's/^/| /' conftest.$ac_ext >&5
  19201. ac_cv_lib_unwind_backtrace=no
  19202. fi
  19203. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19204. conftest$ac_exeext conftest.$ac_ext
  19205. LIBS=$ac_check_lib_save_LIBS
  19206. fi
  19207. { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
  19208. echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
  19209. if test $ac_cv_lib_unwind_backtrace = yes; then
  19210. cat >>confdefs.h <<\_ACEOF
  19211. #define GC_HAVE_BUILTIN_BACKTRACE 1
  19212. _ACEOF
  19213. UNWINDLIBS=-lunwind
  19214. { echo "$as_me:$LINENO: WARNING: \"Client code may need to link against libunwind.\"" >&5
  19215. echo "$as_me: WARNING: \"Client code may need to link against libunwind.\"" >&2;}
  19216. fi
  19217. ;;
  19218. x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
  19219. cat >>confdefs.h <<\_ACEOF
  19220. #define MAKE_BACK_GRAPH 1
  19221. _ACEOF
  19222. { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
  19223. echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
  19224. cat >>confdefs.h <<\_ACEOF
  19225. #define SAVE_CALL_COUNT 8
  19226. _ACEOF
  19227. ;;
  19228. i345686-*-dgux*)
  19229. cat >>confdefs.h <<\_ACEOF
  19230. #define MAKE_BACK_GRAPH 1
  19231. _ACEOF
  19232. ;;
  19233. esac
  19234. fi
  19235. fi
  19236. # Check whether --enable-gc-assertions was given.
  19237. if test "${enable_gc_assertions+set}" = set; then
  19238. enableval=$enable_gc_assertions;
  19239. fi
  19240. if test "${enable_gc_assertions}" = yes; then
  19241. cat >>confdefs.h <<\_ACEOF
  19242. #define GC_ASSERTIONS 1
  19243. _ACEOF
  19244. fi
  19245. # Check whether --enable-munmap was given.
  19246. if test "${enable_munmap+set}" = set; then
  19247. enableval=$enable_munmap; MUNMAP_THRESHOLD=$enableval;
  19248. case "$MMAP" in
  19249. no)
  19250. { { echo "$as_me:$LINENO: error: --enable-munmap requires --enable-mmap" >&5
  19251. echo "$as_me: error: --enable-munmap requires --enable-mmap" >&2;}
  19252. { (exit 1); exit 1; }; }
  19253. ;;
  19254. esac
  19255. fi
  19256. if test "${enable_munmap}" != ""; then
  19257. cat >>confdefs.h <<\_ACEOF
  19258. #define USE_MMAP 1
  19259. _ACEOF
  19260. cat >>confdefs.h <<\_ACEOF
  19261. #define USE_MUNMAP 1
  19262. _ACEOF
  19263. if test "${MUNMAP_THRESHOLD}" = "yes"; then
  19264. MUNMAP_THRESHOLD=6
  19265. fi
  19266. cat >>confdefs.h <<_ACEOF
  19267. #define MUNMAP_THRESHOLD ${MUNMAP_THRESHOLD}
  19268. _ACEOF
  19269. fi
  19270. if test -z "$with_cross_host"; then
  19271. USE_LIBDIR_TRUE=
  19272. USE_LIBDIR_FALSE='#'
  19273. else
  19274. USE_LIBDIR_TRUE='#'
  19275. USE_LIBDIR_FALSE=
  19276. fi
  19277. atomic_ops_libs=-latomic_ops
  19278. if test "${ac_cv_header_atomic_ops_h+set}" = set; then
  19279. { echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
  19280. echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; }
  19281. if test "${ac_cv_header_atomic_ops_h+set}" = set; then
  19282. echo $ECHO_N "(cached) $ECHO_C" >&6
  19283. fi
  19284. { echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
  19285. echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; }
  19286. else
  19287. # Is the header compilable?
  19288. { echo "$as_me:$LINENO: checking atomic_ops.h usability" >&5
  19289. echo $ECHO_N "checking atomic_ops.h usability... $ECHO_C" >&6; }
  19290. cat >conftest.$ac_ext <<_ACEOF
  19291. /* confdefs.h. */
  19292. _ACEOF
  19293. cat confdefs.h >>conftest.$ac_ext
  19294. cat >>conftest.$ac_ext <<_ACEOF
  19295. /* end confdefs.h. */
  19296. $ac_includes_default
  19297. #include <atomic_ops.h>
  19298. _ACEOF
  19299. rm -f conftest.$ac_objext
  19300. if { (ac_try="$ac_compile"
  19301. case "(($ac_try" in
  19302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19303. *) ac_try_echo=$ac_try;;
  19304. esac
  19305. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19306. (eval "$ac_compile") 2>conftest.er1
  19307. ac_status=$?
  19308. grep -v '^ *+' conftest.er1 >conftest.err
  19309. rm -f conftest.er1
  19310. cat conftest.err >&5
  19311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19312. (exit $ac_status); } && {
  19313. test -z "$ac_c_werror_flag" ||
  19314. test ! -s conftest.err
  19315. } && test -s conftest.$ac_objext; then
  19316. ac_header_compiler=yes
  19317. else
  19318. echo "$as_me: failed program was:" >&5
  19319. sed 's/^/| /' conftest.$ac_ext >&5
  19320. ac_header_compiler=no
  19321. fi
  19322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19323. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19324. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19325. # Is the header present?
  19326. { echo "$as_me:$LINENO: checking atomic_ops.h presence" >&5
  19327. echo $ECHO_N "checking atomic_ops.h presence... $ECHO_C" >&6; }
  19328. cat >conftest.$ac_ext <<_ACEOF
  19329. /* confdefs.h. */
  19330. _ACEOF
  19331. cat confdefs.h >>conftest.$ac_ext
  19332. cat >>conftest.$ac_ext <<_ACEOF
  19333. /* end confdefs.h. */
  19334. #include <atomic_ops.h>
  19335. _ACEOF
  19336. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19337. case "(($ac_try" in
  19338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19339. *) ac_try_echo=$ac_try;;
  19340. esac
  19341. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19342. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19343. ac_status=$?
  19344. grep -v '^ *+' conftest.er1 >conftest.err
  19345. rm -f conftest.er1
  19346. cat conftest.err >&5
  19347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19348. (exit $ac_status); } >/dev/null && {
  19349. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19350. test ! -s conftest.err
  19351. }; then
  19352. ac_header_preproc=yes
  19353. else
  19354. echo "$as_me: failed program was:" >&5
  19355. sed 's/^/| /' conftest.$ac_ext >&5
  19356. ac_header_preproc=no
  19357. fi
  19358. rm -f conftest.err conftest.$ac_ext
  19359. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19360. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19361. # So? What about this header?
  19362. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19363. yes:no: )
  19364. { echo "$as_me:$LINENO: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19365. echo "$as_me: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19366. { echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the compiler's result" >&5
  19367. echo "$as_me: WARNING: atomic_ops.h: proceeding with the compiler's result" >&2;}
  19368. ac_header_preproc=yes
  19369. ;;
  19370. no:yes:* )
  19371. { echo "$as_me:$LINENO: WARNING: atomic_ops.h: present but cannot be compiled" >&5
  19372. echo "$as_me: WARNING: atomic_ops.h: present but cannot be compiled" >&2;}
  19373. { echo "$as_me:$LINENO: WARNING: atomic_ops.h: check for missing prerequisite headers?" >&5
  19374. echo "$as_me: WARNING: atomic_ops.h: check for missing prerequisite headers?" >&2;}
  19375. { echo "$as_me:$LINENO: WARNING: atomic_ops.h: see the Autoconf documentation" >&5
  19376. echo "$as_me: WARNING: atomic_ops.h: see the Autoconf documentation" >&2;}
  19377. { echo "$as_me:$LINENO: WARNING: atomic_ops.h: section \"Present But Cannot Be Compiled\"" >&5
  19378. echo "$as_me: WARNING: atomic_ops.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19379. { echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&5
  19380. echo "$as_me: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&2;}
  19381. { echo "$as_me:$LINENO: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&5
  19382. echo "$as_me: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&2;}
  19383. ( cat <<\_ASBOX
  19384. ## -------------------------------- ##
  19385. ## Report this to Hans.Boehm@hp.com ##
  19386. ## -------------------------------- ##
  19387. _ASBOX
  19388. ) | sed "s/^/$as_me: WARNING: /" >&2
  19389. ;;
  19390. esac
  19391. { echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
  19392. echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; }
  19393. if test "${ac_cv_header_atomic_ops_h+set}" = set; then
  19394. echo $ECHO_N "(cached) $ECHO_C" >&6
  19395. else
  19396. ac_cv_header_atomic_ops_h=$ac_header_preproc
  19397. fi
  19398. { echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
  19399. echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; }
  19400. fi
  19401. if test $ac_cv_header_atomic_ops_h = yes; then
  19402. { echo "$as_me:$LINENO: Using pre-installed libatomic_ops" >&5
  19403. echo "$as_me: Using pre-installed libatomic_ops" >&6;}
  19404. else
  19405. ao_dir=
  19406. for candidate in ${srcdir}/libatomic_ops*; do
  19407. case $candidate in
  19408. *.tar.gz)
  19409. ;;
  19410. *install)
  19411. ;;
  19412. *)
  19413. if test -e "$candidate"; then
  19414. ao_dir="$candidate"
  19415. fi
  19416. ;;
  19417. esac
  19418. done
  19419. if test -z "$ao_dir"; then
  19420. { { echo "$as_me:$LINENO: error: Missig libatomic_ops." >&5
  19421. echo "$as_me: error: Missig libatomic_ops." >&2;}
  19422. { (exit 1); exit 1; }; }
  19423. fi
  19424. ao_version="${ao_dir#*libatomic_ops-}"
  19425. { echo "$as_me:$LINENO: Using internal version of libatomic_ops" >&5
  19426. echo "$as_me: Using internal version of libatomic_ops" >&6;}
  19427. test -e libatomic_ops \
  19428. || ln -s ${ao_dir} libatomic_ops
  19429. subdirs="$subdirs libatomic_ops"
  19430. test -e atomic_ops.c \
  19431. || ln -s libatomic_ops/src/atomic_ops.c \
  19432. atomic_ops.c
  19433. test -e atomic_ops_sysdeps.S \
  19434. || ln -s libatomic_ops/src/atomic_ops_sysdeps.S \
  19435. atomic_ops_sysdeps.S
  19436. GC_CFLAGS="${GC_CFLAGS} -I libatomic_ops/src"
  19437. maybe_libatomic_ops="libatomic_ops"
  19438. fi
  19439. if test -n "$maybe_libatomic_ops" -a "$THREADS" != "none"; then
  19440. USE_INTERNAL_LIBATOMIC_OPS_TRUE=
  19441. USE_INTERNAL_LIBATOMIC_OPS_FALSE='#'
  19442. else
  19443. USE_INTERNAL_LIBATOMIC_OPS_TRUE='#'
  19444. USE_INTERNAL_LIBATOMIC_OPS_FALSE=
  19445. fi
  19446. if test -n "$maybe_libatomic_ops" -a x$need_atomic_ops_asm = xtrue; then
  19447. NEED_ATOMIC_OPS_ASM_TRUE=
  19448. NEED_ATOMIC_OPS_ASM_FALSE='#'
  19449. else
  19450. NEED_ATOMIC_OPS_ASM_TRUE='#'
  19451. NEED_ATOMIC_OPS_ASM_FALSE=
  19452. fi
  19453. ac_config_files="$ac_config_files Makefile bdw-gc.pc"
  19454. ac_config_commands="$ac_config_commands default"
  19455. cat >confcache <<\_ACEOF
  19456. # This file is a shell script that caches the results of configure
  19457. # tests run on this system so they can be shared between configure
  19458. # scripts and configure runs, see configure's option --config-cache.
  19459. # It is not useful on other systems. If it contains results you don't
  19460. # want to keep, you may remove or edit it.
  19461. #
  19462. # config.status only pays attention to the cache file if you give it
  19463. # the --recheck option to rerun configure.
  19464. #
  19465. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19466. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19467. # following values.
  19468. _ACEOF
  19469. # The following way of writing the cache mishandles newlines in values,
  19470. # but we know of no workaround that is simple, portable, and efficient.
  19471. # So, we kill variables containing newlines.
  19472. # Ultrix sh set writes to stderr and can't be redirected directly,
  19473. # and sets the high bit in the cache file unless we assign to the vars.
  19474. (
  19475. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19476. eval ac_val=\$$ac_var
  19477. case $ac_val in #(
  19478. *${as_nl}*)
  19479. case $ac_var in #(
  19480. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  19481. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  19482. esac
  19483. case $ac_var in #(
  19484. _ | IFS | as_nl) ;; #(
  19485. *) $as_unset $ac_var ;;
  19486. esac ;;
  19487. esac
  19488. done
  19489. (set) 2>&1 |
  19490. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19491. *${as_nl}ac_space=\ *)
  19492. # `set' does not quote correctly, so add quotes (double-quote
  19493. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19494. sed -n \
  19495. "s/'/'\\\\''/g;
  19496. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19497. ;; #(
  19498. *)
  19499. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19500. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19501. ;;
  19502. esac |
  19503. sort
  19504. ) |
  19505. sed '
  19506. /^ac_cv_env_/b end
  19507. t clear
  19508. :clear
  19509. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19510. t end
  19511. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19512. :end' >>confcache
  19513. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19514. if test -w "$cache_file"; then
  19515. test "x$cache_file" != "x/dev/null" &&
  19516. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  19517. echo "$as_me: updating cache $cache_file" >&6;}
  19518. cat confcache >$cache_file
  19519. else
  19520. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  19521. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19522. fi
  19523. fi
  19524. rm -f confcache
  19525. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19526. # Let make expand exec_prefix.
  19527. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19528. # Transform confdefs.h into DEFS.
  19529. # Protect against shell expansion while executing Makefile rules.
  19530. # Protect against Makefile macro expansion.
  19531. #
  19532. # If the first sed substitution is executed (which looks for macros that
  19533. # take arguments), then branch to the quote section. Otherwise,
  19534. # look for a macro that doesn't take arguments.
  19535. ac_script='
  19536. t clear
  19537. :clear
  19538. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  19539. t quote
  19540. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  19541. t quote
  19542. b any
  19543. :quote
  19544. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  19545. s/\[/\\&/g
  19546. s/\]/\\&/g
  19547. s/\$/$$/g
  19548. H
  19549. :any
  19550. ${
  19551. g
  19552. s/^\n//
  19553. s/\n/ /g
  19554. p
  19555. }
  19556. '
  19557. DEFS=`sed -n "$ac_script" confdefs.h`
  19558. ac_libobjs=
  19559. ac_ltlibobjs=
  19560. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19561. # 1. Remove the extension, and $U if already installed.
  19562. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19563. ac_i=`echo "$ac_i" | sed "$ac_script"`
  19564. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19565. # will be set to the directory where LIBOBJS objects are built.
  19566. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19567. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  19568. done
  19569. LIBOBJS=$ac_libobjs
  19570. LTLIBOBJS=$ac_ltlibobjs
  19571. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  19572. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  19573. Usually this means the macro was only invoked conditionally." >&5
  19574. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  19575. Usually this means the macro was only invoked conditionally." >&2;}
  19576. { (exit 1); exit 1; }; }
  19577. fi
  19578. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19579. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19580. Usually this means the macro was only invoked conditionally." >&5
  19581. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19582. Usually this means the macro was only invoked conditionally." >&2;}
  19583. { (exit 1); exit 1; }; }
  19584. fi
  19585. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19586. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19587. Usually this means the macro was only invoked conditionally." >&5
  19588. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19589. Usually this means the macro was only invoked conditionally." >&2;}
  19590. { (exit 1); exit 1; }; }
  19591. fi
  19592. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19593. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19594. Usually this means the macro was only invoked conditionally." >&5
  19595. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19596. Usually this means the macro was only invoked conditionally." >&2;}
  19597. { (exit 1); exit 1; }; }
  19598. fi
  19599. if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
  19600. { { echo "$as_me:$LINENO: error: conditional \"THREADS\" was never defined.
  19601. Usually this means the macro was only invoked conditionally." >&5
  19602. echo "$as_me: error: conditional \"THREADS\" was never defined.
  19603. Usually this means the macro was only invoked conditionally." >&2;}
  19604. { (exit 1); exit 1; }; }
  19605. fi
  19606. if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
  19607. { { echo "$as_me:$LINENO: error: conditional \"PTHREADS\" was never defined.
  19608. Usually this means the macro was only invoked conditionally." >&5
  19609. echo "$as_me: error: conditional \"PTHREADS\" was never defined.
  19610. Usually this means the macro was only invoked conditionally." >&2;}
  19611. { (exit 1); exit 1; }; }
  19612. fi
  19613. if test -z "${DARWIN_THREADS_TRUE}" && test -z "${DARWIN_THREADS_FALSE}"; then
  19614. { { echo "$as_me:$LINENO: error: conditional \"DARWIN_THREADS\" was never defined.
  19615. Usually this means the macro was only invoked conditionally." >&5
  19616. echo "$as_me: error: conditional \"DARWIN_THREADS\" was never defined.
  19617. Usually this means the macro was only invoked conditionally." >&2;}
  19618. { (exit 1); exit 1; }; }
  19619. fi
  19620. if test -z "${WIN32_THREADS_TRUE}" && test -z "${WIN32_THREADS_FALSE}"; then
  19621. { { echo "$as_me:$LINENO: error: conditional \"WIN32_THREADS\" was never defined.
  19622. Usually this means the macro was only invoked conditionally." >&5
  19623. echo "$as_me: error: conditional \"WIN32_THREADS\" was never defined.
  19624. Usually this means the macro was only invoked conditionally." >&2;}
  19625. { (exit 1); exit 1; }; }
  19626. fi
  19627. if test -z "${COMPILER_XLC_TRUE}" && test -z "${COMPILER_XLC_FALSE}"; then
  19628. { { echo "$as_me:$LINENO: error: conditional \"COMPILER_XLC\" was never defined.
  19629. Usually this means the macro was only invoked conditionally." >&5
  19630. echo "$as_me: error: conditional \"COMPILER_XLC\" was never defined.
  19631. Usually this means the macro was only invoked conditionally." >&2;}
  19632. { (exit 1); exit 1; }; }
  19633. fi
  19634. if test -z "${AVOID_CPP_LIB_TRUE}" && test -z "${AVOID_CPP_LIB_FALSE}"; then
  19635. { { echo "$as_me:$LINENO: error: conditional \"AVOID_CPP_LIB\" was never defined.
  19636. Usually this means the macro was only invoked conditionally." >&5
  19637. echo "$as_me: error: conditional \"AVOID_CPP_LIB\" was never defined.
  19638. Usually this means the macro was only invoked conditionally." >&2;}
  19639. { (exit 1); exit 1; }; }
  19640. fi
  19641. if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
  19642. { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
  19643. Usually this means the macro was only invoked conditionally." >&5
  19644. echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
  19645. Usually this means the macro was only invoked conditionally." >&2;}
  19646. { (exit 1); exit 1; }; }
  19647. fi
  19648. if test -z "${ENABLE_GCJ_SUPPORT_TRUE}" && test -z "${ENABLE_GCJ_SUPPORT_FALSE}"; then
  19649. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
  19650. Usually this means the macro was only invoked conditionally." >&5
  19651. echo "$as_me: error: conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
  19652. Usually this means the macro was only invoked conditionally." >&2;}
  19653. { (exit 1); exit 1; }; }
  19654. fi
  19655. if test -z "${USE_LIBDIR_TRUE}" && test -z "${USE_LIBDIR_FALSE}"; then
  19656. { { echo "$as_me:$LINENO: error: conditional \"USE_LIBDIR\" was never defined.
  19657. Usually this means the macro was only invoked conditionally." >&5
  19658. echo "$as_me: error: conditional \"USE_LIBDIR\" was never defined.
  19659. Usually this means the macro was only invoked conditionally." >&2;}
  19660. { (exit 1); exit 1; }; }
  19661. fi
  19662. if test -z "${USE_INTERNAL_LIBATOMIC_OPS_TRUE}" && test -z "${USE_INTERNAL_LIBATOMIC_OPS_FALSE}"; then
  19663. { { echo "$as_me:$LINENO: error: conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
  19664. Usually this means the macro was only invoked conditionally." >&5
  19665. echo "$as_me: error: conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
  19666. Usually this means the macro was only invoked conditionally." >&2;}
  19667. { (exit 1); exit 1; }; }
  19668. fi
  19669. if test -z "${NEED_ATOMIC_OPS_ASM_TRUE}" && test -z "${NEED_ATOMIC_OPS_ASM_FALSE}"; then
  19670. { { echo "$as_me:$LINENO: error: conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
  19671. Usually this means the macro was only invoked conditionally." >&5
  19672. echo "$as_me: error: conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
  19673. Usually this means the macro was only invoked conditionally." >&2;}
  19674. { (exit 1); exit 1; }; }
  19675. fi
  19676. : ${CONFIG_STATUS=./config.status}
  19677. ac_clean_files_save=$ac_clean_files
  19678. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19679. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19680. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19681. cat >$CONFIG_STATUS <<_ACEOF
  19682. #! $SHELL
  19683. # Generated by $as_me.
  19684. # Run this file to recreate the current configuration.
  19685. # Compiler output produced by configure, useful for debugging
  19686. # configure, is in config.log if it exists.
  19687. debug=false
  19688. ac_cs_recheck=false
  19689. ac_cs_silent=false
  19690. SHELL=\${CONFIG_SHELL-$SHELL}
  19691. _ACEOF
  19692. cat >>$CONFIG_STATUS <<\_ACEOF
  19693. ## --------------------- ##
  19694. ## M4sh Initialization. ##
  19695. ## --------------------- ##
  19696. # Be more Bourne compatible
  19697. DUALCASE=1; export DUALCASE # for MKS sh
  19698. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19699. emulate sh
  19700. NULLCMD=:
  19701. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19702. # is contrary to our usage. Disable this feature.
  19703. alias -g '${1+"$@"}'='"$@"'
  19704. setopt NO_GLOB_SUBST
  19705. else
  19706. case `(set -o) 2>/dev/null` in
  19707. *posix*) set -o posix ;;
  19708. esac
  19709. fi
  19710. # PATH needs CR
  19711. # Avoid depending upon Character Ranges.
  19712. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19713. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19714. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19715. as_cr_digits='0123456789'
  19716. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19717. # The user is always right.
  19718. if test "${PATH_SEPARATOR+set}" != set; then
  19719. echo "#! /bin/sh" >conf$$.sh
  19720. echo "exit 0" >>conf$$.sh
  19721. chmod +x conf$$.sh
  19722. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19723. PATH_SEPARATOR=';'
  19724. else
  19725. PATH_SEPARATOR=:
  19726. fi
  19727. rm -f conf$$.sh
  19728. fi
  19729. # Support unset when possible.
  19730. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19731. as_unset=unset
  19732. else
  19733. as_unset=false
  19734. fi
  19735. # IFS
  19736. # We need space, tab and new line, in precisely that order. Quoting is
  19737. # there to prevent editors from complaining about space-tab.
  19738. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19739. # splitting by setting IFS to empty value.)
  19740. as_nl='
  19741. '
  19742. IFS=" "" $as_nl"
  19743. # Find who we are. Look in the path if we contain no directory separator.
  19744. case $0 in
  19745. *[\\/]* ) as_myself=$0 ;;
  19746. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19747. for as_dir in $PATH
  19748. do
  19749. IFS=$as_save_IFS
  19750. test -z "$as_dir" && as_dir=.
  19751. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19752. done
  19753. IFS=$as_save_IFS
  19754. ;;
  19755. esac
  19756. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19757. # in which case we are not to be found in the path.
  19758. if test "x$as_myself" = x; then
  19759. as_myself=$0
  19760. fi
  19761. if test ! -f "$as_myself"; then
  19762. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19763. { (exit 1); exit 1; }
  19764. fi
  19765. # Work around bugs in pre-3.0 UWIN ksh.
  19766. for as_var in ENV MAIL MAILPATH
  19767. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19768. done
  19769. PS1='$ '
  19770. PS2='> '
  19771. PS4='+ '
  19772. # NLS nuisances.
  19773. for as_var in \
  19774. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19775. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19776. LC_TELEPHONE LC_TIME
  19777. do
  19778. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19779. eval $as_var=C; export $as_var
  19780. else
  19781. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19782. fi
  19783. done
  19784. # Required to use basename.
  19785. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19786. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19787. as_expr=expr
  19788. else
  19789. as_expr=false
  19790. fi
  19791. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19792. as_basename=basename
  19793. else
  19794. as_basename=false
  19795. fi
  19796. # Name of the executable.
  19797. as_me=`$as_basename -- "$0" ||
  19798. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19799. X"$0" : 'X\(//\)$' \| \
  19800. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19801. echo X/"$0" |
  19802. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19803. s//\1/
  19804. q
  19805. }
  19806. /^X\/\(\/\/\)$/{
  19807. s//\1/
  19808. q
  19809. }
  19810. /^X\/\(\/\).*/{
  19811. s//\1/
  19812. q
  19813. }
  19814. s/.*/./; q'`
  19815. # CDPATH.
  19816. $as_unset CDPATH
  19817. as_lineno_1=$LINENO
  19818. as_lineno_2=$LINENO
  19819. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19820. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  19821. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19822. # uniformly replaced by the line number. The first 'sed' inserts a
  19823. # line-number line after each line using $LINENO; the second 'sed'
  19824. # does the real work. The second script uses 'N' to pair each
  19825. # line-number line with the line containing $LINENO, and appends
  19826. # trailing '-' during substitution so that $LINENO is not a special
  19827. # case at line end.
  19828. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19829. # scripts with optimization help from Paolo Bonzini. Blame Lee
  19830. # E. McMahon (1931-1989) for sed's syntax. :-)
  19831. sed -n '
  19832. p
  19833. /[$]LINENO/=
  19834. ' <$as_myself |
  19835. sed '
  19836. s/[$]LINENO.*/&-/
  19837. t lineno
  19838. b
  19839. :lineno
  19840. N
  19841. :loop
  19842. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  19843. t loop
  19844. s/-\n.*//
  19845. ' >$as_me.lineno &&
  19846. chmod +x "$as_me.lineno" ||
  19847. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  19848. { (exit 1); exit 1; }; }
  19849. # Don't try to exec as it changes $[0], causing all sort of problems
  19850. # (the dirname of $[0] is not the place where we might find the
  19851. # original and so on. Autoconf is especially sensitive to this).
  19852. . "./$as_me.lineno"
  19853. # Exit status is that of the last command.
  19854. exit
  19855. }
  19856. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19857. as_dirname=dirname
  19858. else
  19859. as_dirname=false
  19860. fi
  19861. ECHO_C= ECHO_N= ECHO_T=
  19862. case `echo -n x` in
  19863. -n*)
  19864. case `echo 'x\c'` in
  19865. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19866. *) ECHO_C='\c';;
  19867. esac;;
  19868. *)
  19869. ECHO_N='-n';;
  19870. esac
  19871. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19872. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19873. as_expr=expr
  19874. else
  19875. as_expr=false
  19876. fi
  19877. rm -f conf$$ conf$$.exe conf$$.file
  19878. if test -d conf$$.dir; then
  19879. rm -f conf$$.dir/conf$$.file
  19880. else
  19881. rm -f conf$$.dir
  19882. mkdir conf$$.dir
  19883. fi
  19884. echo >conf$$.file
  19885. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19886. as_ln_s='ln -s'
  19887. # ... but there are two gotchas:
  19888. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19889. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19890. # In both cases, we have to default to `cp -p'.
  19891. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19892. as_ln_s='cp -p'
  19893. elif ln conf$$.file conf$$ 2>/dev/null; then
  19894. as_ln_s=ln
  19895. else
  19896. as_ln_s='cp -p'
  19897. fi
  19898. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19899. rmdir conf$$.dir 2>/dev/null
  19900. if mkdir -p . 2>/dev/null; then
  19901. as_mkdir_p=:
  19902. else
  19903. test -d ./-p && rmdir ./-p
  19904. as_mkdir_p=false
  19905. fi
  19906. if test -x / >/dev/null 2>&1; then
  19907. as_test_x='test -x'
  19908. else
  19909. if ls -dL / >/dev/null 2>&1; then
  19910. as_ls_L_option=L
  19911. else
  19912. as_ls_L_option=
  19913. fi
  19914. as_test_x='
  19915. eval sh -c '\''
  19916. if test -d "$1"; then
  19917. test -d "$1/.";
  19918. else
  19919. case $1 in
  19920. -*)set "./$1";;
  19921. esac;
  19922. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  19923. ???[sx]*):;;*)false;;esac;fi
  19924. '\'' sh
  19925. '
  19926. fi
  19927. as_executable_p=$as_test_x
  19928. # Sed expression to map a string onto a valid CPP name.
  19929. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19930. # Sed expression to map a string onto a valid variable name.
  19931. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19932. exec 6>&1
  19933. # Save the log message, to keep $[0] and so on meaningful, and to
  19934. # report actual input values of CONFIG_FILES etc. instead of their
  19935. # values after options handling.
  19936. ac_log="
  19937. This file was extended by gc $as_me 7.1, which was
  19938. generated by GNU Autoconf 2.61. Invocation command line was
  19939. CONFIG_FILES = $CONFIG_FILES
  19940. CONFIG_HEADERS = $CONFIG_HEADERS
  19941. CONFIG_LINKS = $CONFIG_LINKS
  19942. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19943. $ $0 $@
  19944. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19945. "
  19946. _ACEOF
  19947. cat >>$CONFIG_STATUS <<_ACEOF
  19948. # Files that config.status was made for.
  19949. config_files="$ac_config_files"
  19950. config_commands="$ac_config_commands"
  19951. _ACEOF
  19952. cat >>$CONFIG_STATUS <<\_ACEOF
  19953. ac_cs_usage="\
  19954. \`$as_me' instantiates files from templates according to the
  19955. current configuration.
  19956. Usage: $0 [OPTIONS] [FILE]...
  19957. -h, --help print this help, then exit
  19958. -V, --version print version number and configuration settings, then exit
  19959. -q, --quiet do not print progress messages
  19960. -d, --debug don't remove temporary files
  19961. --recheck update $as_me by reconfiguring in the same conditions
  19962. --file=FILE[:TEMPLATE]
  19963. instantiate the configuration file FILE
  19964. Configuration files:
  19965. $config_files
  19966. Configuration commands:
  19967. $config_commands
  19968. Report bugs to <bug-autoconf@gnu.org>."
  19969. _ACEOF
  19970. cat >>$CONFIG_STATUS <<_ACEOF
  19971. ac_cs_version="\\
  19972. gc config.status 7.1
  19973. configured by $0, generated by GNU Autoconf 2.61,
  19974. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  19975. Copyright (C) 2006 Free Software Foundation, Inc.
  19976. This config.status script is free software; the Free Software Foundation
  19977. gives unlimited permission to copy, distribute and modify it."
  19978. ac_pwd='$ac_pwd'
  19979. srcdir='$srcdir'
  19980. INSTALL='$INSTALL'
  19981. _ACEOF
  19982. cat >>$CONFIG_STATUS <<\_ACEOF
  19983. # If no file are specified by the user, then we need to provide default
  19984. # value. By we need to know if files were specified by the user.
  19985. ac_need_defaults=:
  19986. while test $# != 0
  19987. do
  19988. case $1 in
  19989. --*=*)
  19990. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19991. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19992. ac_shift=:
  19993. ;;
  19994. *)
  19995. ac_option=$1
  19996. ac_optarg=$2
  19997. ac_shift=shift
  19998. ;;
  19999. esac
  20000. case $ac_option in
  20001. # Handling of the options.
  20002. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20003. ac_cs_recheck=: ;;
  20004. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20005. echo "$ac_cs_version"; exit ;;
  20006. --debug | --debu | --deb | --de | --d | -d )
  20007. debug=: ;;
  20008. --file | --fil | --fi | --f )
  20009. $ac_shift
  20010. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20011. ac_need_defaults=false;;
  20012. --he | --h | --help | --hel | -h )
  20013. echo "$ac_cs_usage"; exit ;;
  20014. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20015. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20016. ac_cs_silent=: ;;
  20017. # This is an error.
  20018. -*) { echo "$as_me: error: unrecognized option: $1
  20019. Try \`$0 --help' for more information." >&2
  20020. { (exit 1); exit 1; }; } ;;
  20021. *) ac_config_targets="$ac_config_targets $1"
  20022. ac_need_defaults=false ;;
  20023. esac
  20024. shift
  20025. done
  20026. ac_configure_extra_args=
  20027. if $ac_cs_silent; then
  20028. exec 6>/dev/null
  20029. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20030. fi
  20031. _ACEOF
  20032. cat >>$CONFIG_STATUS <<_ACEOF
  20033. if \$ac_cs_recheck; then
  20034. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20035. CONFIG_SHELL=$SHELL
  20036. export CONFIG_SHELL
  20037. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20038. fi
  20039. _ACEOF
  20040. cat >>$CONFIG_STATUS <<\_ACEOF
  20041. exec 5>>config.log
  20042. {
  20043. echo
  20044. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20045. ## Running $as_me. ##
  20046. _ASBOX
  20047. echo "$ac_log"
  20048. } >&5
  20049. _ACEOF
  20050. cat >>$CONFIG_STATUS <<_ACEOF
  20051. #
  20052. # INIT-COMMANDS
  20053. #
  20054. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20055. srcdir=${srcdir}
  20056. host=${host}
  20057. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  20058. CC="${CC}"
  20059. DEFS="$DEFS"
  20060. _ACEOF
  20061. cat >>$CONFIG_STATUS <<\_ACEOF
  20062. # Handling of arguments.
  20063. for ac_config_target in $ac_config_targets
  20064. do
  20065. case $ac_config_target in
  20066. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20067. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20068. "bdw-gc.pc") CONFIG_FILES="$CONFIG_FILES bdw-gc.pc" ;;
  20069. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  20070. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20071. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20072. { (exit 1); exit 1; }; };;
  20073. esac
  20074. done
  20075. # If the user did not use the arguments to specify the items to instantiate,
  20076. # then the envvar interface is used. Set only those that are not.
  20077. # We use the long form for the default assignment because of an extremely
  20078. # bizarre bug on SunOS 4.1.3.
  20079. if $ac_need_defaults; then
  20080. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20081. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20082. fi
  20083. # Have a temporary directory for convenience. Make it in the build tree
  20084. # simply because there is no reason against having it here, and in addition,
  20085. # creating and moving files from /tmp can sometimes cause problems.
  20086. # Hook for its removal unless debugging.
  20087. # Note that there is a small window in which the directory will not be cleaned:
  20088. # after its creation but before its name has been assigned to `$tmp'.
  20089. $debug ||
  20090. {
  20091. tmp=
  20092. trap 'exit_status=$?
  20093. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  20094. ' 0
  20095. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20096. }
  20097. # Create a (secure) tmp directory for tmp files.
  20098. {
  20099. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20100. test -n "$tmp" && test -d "$tmp"
  20101. } ||
  20102. {
  20103. tmp=./conf$$-$RANDOM
  20104. (umask 077 && mkdir "$tmp")
  20105. } ||
  20106. {
  20107. echo "$me: cannot create a temporary directory in ." >&2
  20108. { (exit 1); exit 1; }
  20109. }
  20110. #
  20111. # Set up the sed scripts for CONFIG_FILES section.
  20112. #
  20113. # No need to generate the scripts if there are no CONFIG_FILES.
  20114. # This happens for instance when ./config.status config.h
  20115. if test -n "$CONFIG_FILES"; then
  20116. _ACEOF
  20117. ac_delim='%!_!# '
  20118. for ac_last_try in false false false false false :; do
  20119. cat >conf$$subs.sed <<_ACEOF
  20120. SHELL!$SHELL$ac_delim
  20121. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  20122. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  20123. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  20124. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  20125. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  20126. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  20127. exec_prefix!$exec_prefix$ac_delim
  20128. prefix!$prefix$ac_delim
  20129. program_transform_name!$program_transform_name$ac_delim
  20130. bindir!$bindir$ac_delim
  20131. sbindir!$sbindir$ac_delim
  20132. libexecdir!$libexecdir$ac_delim
  20133. datarootdir!$datarootdir$ac_delim
  20134. datadir!$datadir$ac_delim
  20135. sysconfdir!$sysconfdir$ac_delim
  20136. sharedstatedir!$sharedstatedir$ac_delim
  20137. localstatedir!$localstatedir$ac_delim
  20138. includedir!$includedir$ac_delim
  20139. oldincludedir!$oldincludedir$ac_delim
  20140. docdir!$docdir$ac_delim
  20141. infodir!$infodir$ac_delim
  20142. htmldir!$htmldir$ac_delim
  20143. dvidir!$dvidir$ac_delim
  20144. pdfdir!$pdfdir$ac_delim
  20145. psdir!$psdir$ac_delim
  20146. libdir!$libdir$ac_delim
  20147. localedir!$localedir$ac_delim
  20148. mandir!$mandir$ac_delim
  20149. DEFS!$DEFS$ac_delim
  20150. ECHO_C!$ECHO_C$ac_delim
  20151. ECHO_N!$ECHO_N$ac_delim
  20152. ECHO_T!$ECHO_T$ac_delim
  20153. LIBS!$LIBS$ac_delim
  20154. build_alias!$build_alias$ac_delim
  20155. host_alias!$host_alias$ac_delim
  20156. target_alias!$target_alias$ac_delim
  20157. build!$build$ac_delim
  20158. build_cpu!$build_cpu$ac_delim
  20159. build_vendor!$build_vendor$ac_delim
  20160. build_os!$build_os$ac_delim
  20161. host!$host$ac_delim
  20162. host_cpu!$host_cpu$ac_delim
  20163. host_vendor!$host_vendor$ac_delim
  20164. host_os!$host_os$ac_delim
  20165. target!$target$ac_delim
  20166. target_cpu!$target_cpu$ac_delim
  20167. target_vendor!$target_vendor$ac_delim
  20168. target_os!$target_os$ac_delim
  20169. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  20170. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  20171. INSTALL_DATA!$INSTALL_DATA$ac_delim
  20172. CYGPATH_W!$CYGPATH_W$ac_delim
  20173. PACKAGE!$PACKAGE$ac_delim
  20174. VERSION!$VERSION$ac_delim
  20175. ACLOCAL!$ACLOCAL$ac_delim
  20176. AUTOCONF!$AUTOCONF$ac_delim
  20177. AUTOMAKE!$AUTOMAKE$ac_delim
  20178. AUTOHEADER!$AUTOHEADER$ac_delim
  20179. MAKEINFO!$MAKEINFO$ac_delim
  20180. install_sh!$install_sh$ac_delim
  20181. STRIP!$STRIP$ac_delim
  20182. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  20183. mkdir_p!$mkdir_p$ac_delim
  20184. AWK!$AWK$ac_delim
  20185. SET_MAKE!$SET_MAKE$ac_delim
  20186. am__leading_dot!$am__leading_dot$ac_delim
  20187. AMTAR!$AMTAR$ac_delim
  20188. am__tar!$am__tar$ac_delim
  20189. am__untar!$am__untar$ac_delim
  20190. MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  20191. MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  20192. MAINT!$MAINT$ac_delim
  20193. GC_VERSION!$GC_VERSION$ac_delim
  20194. CC!$CC$ac_delim
  20195. CFLAGS!$CFLAGS$ac_delim
  20196. LDFLAGS!$LDFLAGS$ac_delim
  20197. CPPFLAGS!$CPPFLAGS$ac_delim
  20198. ac_ct_CC!$ac_ct_CC$ac_delim
  20199. EXEEXT!$EXEEXT$ac_delim
  20200. OBJEXT!$OBJEXT$ac_delim
  20201. DEPDIR!$DEPDIR$ac_delim
  20202. am__include!$am__include$ac_delim
  20203. am__quote!$am__quote$ac_delim
  20204. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  20205. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  20206. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  20207. CCDEPMODE!$CCDEPMODE$ac_delim
  20208. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  20209. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  20210. CXX!$CXX$ac_delim
  20211. CXXFLAGS!$CXXFLAGS$ac_delim
  20212. ac_ct_CXX!$ac_ct_CXX$ac_delim
  20213. CXXDEPMODE!$CXXDEPMODE$ac_delim
  20214. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  20215. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  20216. CCAS!$CCAS$ac_delim
  20217. _ACEOF
  20218. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20219. break
  20220. elif $ac_last_try; then
  20221. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20222. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20223. { (exit 1); exit 1; }; }
  20224. else
  20225. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20226. fi
  20227. done
  20228. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20229. if test -n "$ac_eof"; then
  20230. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20231. ac_eof=`expr $ac_eof + 1`
  20232. fi
  20233. cat >>$CONFIG_STATUS <<_ACEOF
  20234. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  20235. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20236. _ACEOF
  20237. sed '
  20238. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20239. s/^/s,@/; s/!/@,|#_!!_#|/
  20240. :n
  20241. t n
  20242. s/'"$ac_delim"'$/,g/; t
  20243. s/$/\\/; p
  20244. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20245. ' >>$CONFIG_STATUS <conf$$subs.sed
  20246. rm -f conf$$subs.sed
  20247. cat >>$CONFIG_STATUS <<_ACEOF
  20248. CEOF$ac_eof
  20249. _ACEOF
  20250. ac_delim='%!_!# '
  20251. for ac_last_try in false false false false false :; do
  20252. cat >conf$$subs.sed <<_ACEOF
  20253. CCASFLAGS!$CCASFLAGS$ac_delim
  20254. AR!$AR$ac_delim
  20255. RANLIB!$RANLIB$ac_delim
  20256. GC_CFLAGS!$GC_CFLAGS$ac_delim
  20257. THREADDLLIBS!$THREADDLLIBS$ac_delim
  20258. THREADS_TRUE!$THREADS_TRUE$ac_delim
  20259. THREADS_FALSE!$THREADS_FALSE$ac_delim
  20260. PTHREADS_TRUE!$PTHREADS_TRUE$ac_delim
  20261. PTHREADS_FALSE!$PTHREADS_FALSE$ac_delim
  20262. DARWIN_THREADS_TRUE!$DARWIN_THREADS_TRUE$ac_delim
  20263. DARWIN_THREADS_FALSE!$DARWIN_THREADS_FALSE$ac_delim
  20264. WIN32_THREADS_TRUE!$WIN32_THREADS_TRUE$ac_delim
  20265. WIN32_THREADS_FALSE!$WIN32_THREADS_FALSE$ac_delim
  20266. COMPILER_XLC_TRUE!$COMPILER_XLC_TRUE$ac_delim
  20267. COMPILER_XLC_FALSE!$COMPILER_XLC_FALSE$ac_delim
  20268. AVOID_CPP_LIB_TRUE!$AVOID_CPP_LIB_TRUE$ac_delim
  20269. AVOID_CPP_LIB_FALSE!$AVOID_CPP_LIB_FALSE$ac_delim
  20270. extra_ldflags_libgc!$extra_ldflags_libgc$ac_delim
  20271. EXTRA_TEST_LIBS!$EXTRA_TEST_LIBS$ac_delim
  20272. target_all!$target_all$ac_delim
  20273. CPLUSPLUS_TRUE!$CPLUSPLUS_TRUE$ac_delim
  20274. CPLUSPLUS_FALSE!$CPLUSPLUS_FALSE$ac_delim
  20275. INCLUDES!$INCLUDES$ac_delim
  20276. CXXINCLUDES!$CXXINCLUDES$ac_delim
  20277. addobjs!$addobjs$ac_delim
  20278. addlibs!$addlibs$ac_delim
  20279. GREP!$GREP$ac_delim
  20280. EGREP!$EGREP$ac_delim
  20281. LN_S!$LN_S$ac_delim
  20282. ECHO!$ECHO$ac_delim
  20283. CPP!$CPP$ac_delim
  20284. CXXCPP!$CXXCPP$ac_delim
  20285. F77!$F77$ac_delim
  20286. FFLAGS!$FFLAGS$ac_delim
  20287. ac_ct_F77!$ac_ct_F77$ac_delim
  20288. LIBTOOL!$LIBTOOL$ac_delim
  20289. ENABLE_GCJ_SUPPORT_TRUE!$ENABLE_GCJ_SUPPORT_TRUE$ac_delim
  20290. ENABLE_GCJ_SUPPORT_FALSE!$ENABLE_GCJ_SUPPORT_FALSE$ac_delim
  20291. UNWINDLIBS!$UNWINDLIBS$ac_delim
  20292. USE_LIBDIR_TRUE!$USE_LIBDIR_TRUE$ac_delim
  20293. USE_LIBDIR_FALSE!$USE_LIBDIR_FALSE$ac_delim
  20294. subdirs!$subdirs$ac_delim
  20295. USE_INTERNAL_LIBATOMIC_OPS_TRUE!$USE_INTERNAL_LIBATOMIC_OPS_TRUE$ac_delim
  20296. USE_INTERNAL_LIBATOMIC_OPS_FALSE!$USE_INTERNAL_LIBATOMIC_OPS_FALSE$ac_delim
  20297. NEED_ATOMIC_OPS_ASM_TRUE!$NEED_ATOMIC_OPS_ASM_TRUE$ac_delim
  20298. NEED_ATOMIC_OPS_ASM_FALSE!$NEED_ATOMIC_OPS_ASM_FALSE$ac_delim
  20299. atomic_ops_libs!$atomic_ops_libs$ac_delim
  20300. LIBOBJS!$LIBOBJS$ac_delim
  20301. LTLIBOBJS!$LTLIBOBJS$ac_delim
  20302. _ACEOF
  20303. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
  20304. break
  20305. elif $ac_last_try; then
  20306. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20307. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20308. { (exit 1); exit 1; }; }
  20309. else
  20310. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20311. fi
  20312. done
  20313. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20314. if test -n "$ac_eof"; then
  20315. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20316. ac_eof=`expr $ac_eof + 1`
  20317. fi
  20318. cat >>$CONFIG_STATUS <<_ACEOF
  20319. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  20320. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  20321. _ACEOF
  20322. sed '
  20323. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20324. s/^/s,@/; s/!/@,|#_!!_#|/
  20325. :n
  20326. t n
  20327. s/'"$ac_delim"'$/,g/; t
  20328. s/$/\\/; p
  20329. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20330. ' >>$CONFIG_STATUS <conf$$subs.sed
  20331. rm -f conf$$subs.sed
  20332. cat >>$CONFIG_STATUS <<_ACEOF
  20333. :end
  20334. s/|#_!!_#|//g
  20335. CEOF$ac_eof
  20336. _ACEOF
  20337. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20338. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20339. # trailing colons and then remove the whole line if VPATH becomes empty
  20340. # (actually we leave an empty line to preserve line numbers).
  20341. if test "x$srcdir" = x.; then
  20342. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20343. s/:*\$(srcdir):*/:/
  20344. s/:*\${srcdir}:*/:/
  20345. s/:*@srcdir@:*/:/
  20346. s/^\([^=]*=[ ]*\):*/\1/
  20347. s/:*$//
  20348. s/^[^=]*=[ ]*$//
  20349. }'
  20350. fi
  20351. cat >>$CONFIG_STATUS <<\_ACEOF
  20352. fi # test -n "$CONFIG_FILES"
  20353. for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
  20354. do
  20355. case $ac_tag in
  20356. :[FHLC]) ac_mode=$ac_tag; continue;;
  20357. esac
  20358. case $ac_mode$ac_tag in
  20359. :[FHL]*:*);;
  20360. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20361. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20362. { (exit 1); exit 1; }; };;
  20363. :[FH]-) ac_tag=-:-;;
  20364. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20365. esac
  20366. ac_save_IFS=$IFS
  20367. IFS=:
  20368. set x $ac_tag
  20369. IFS=$ac_save_IFS
  20370. shift
  20371. ac_file=$1
  20372. shift
  20373. case $ac_mode in
  20374. :L) ac_source=$1;;
  20375. :[FH])
  20376. ac_file_inputs=
  20377. for ac_f
  20378. do
  20379. case $ac_f in
  20380. -) ac_f="$tmp/stdin";;
  20381. *) # Look for the file first in the build tree, then in the source tree
  20382. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20383. # because $ac_f cannot contain `:'.
  20384. test -f "$ac_f" ||
  20385. case $ac_f in
  20386. [\\/$]*) false;;
  20387. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20388. esac ||
  20389. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20390. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20391. { (exit 1); exit 1; }; };;
  20392. esac
  20393. ac_file_inputs="$ac_file_inputs $ac_f"
  20394. done
  20395. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20396. # use $as_me), people would be surprised to read:
  20397. # /* config.h. Generated by config.status. */
  20398. configure_input="Generated from "`IFS=:
  20399. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20400. if test x"$ac_file" != x-; then
  20401. configure_input="$ac_file. $configure_input"
  20402. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20403. echo "$as_me: creating $ac_file" >&6;}
  20404. fi
  20405. case $ac_tag in
  20406. *:-:* | *:-) cat >"$tmp/stdin";;
  20407. esac
  20408. ;;
  20409. esac
  20410. ac_dir=`$as_dirname -- "$ac_file" ||
  20411. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20412. X"$ac_file" : 'X\(//\)[^/]' \| \
  20413. X"$ac_file" : 'X\(//\)$' \| \
  20414. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20415. echo X"$ac_file" |
  20416. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20417. s//\1/
  20418. q
  20419. }
  20420. /^X\(\/\/\)[^/].*/{
  20421. s//\1/
  20422. q
  20423. }
  20424. /^X\(\/\/\)$/{
  20425. s//\1/
  20426. q
  20427. }
  20428. /^X\(\/\).*/{
  20429. s//\1/
  20430. q
  20431. }
  20432. s/.*/./; q'`
  20433. { as_dir="$ac_dir"
  20434. case $as_dir in #(
  20435. -*) as_dir=./$as_dir;;
  20436. esac
  20437. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20438. as_dirs=
  20439. while :; do
  20440. case $as_dir in #(
  20441. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20442. *) as_qdir=$as_dir;;
  20443. esac
  20444. as_dirs="'$as_qdir' $as_dirs"
  20445. as_dir=`$as_dirname -- "$as_dir" ||
  20446. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20447. X"$as_dir" : 'X\(//\)[^/]' \| \
  20448. X"$as_dir" : 'X\(//\)$' \| \
  20449. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20450. echo X"$as_dir" |
  20451. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20452. s//\1/
  20453. q
  20454. }
  20455. /^X\(\/\/\)[^/].*/{
  20456. s//\1/
  20457. q
  20458. }
  20459. /^X\(\/\/\)$/{
  20460. s//\1/
  20461. q
  20462. }
  20463. /^X\(\/\).*/{
  20464. s//\1/
  20465. q
  20466. }
  20467. s/.*/./; q'`
  20468. test -d "$as_dir" && break
  20469. done
  20470. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20471. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20472. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20473. { (exit 1); exit 1; }; }; }
  20474. ac_builddir=.
  20475. case "$ac_dir" in
  20476. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20477. *)
  20478. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20479. # A ".." for each directory in $ac_dir_suffix.
  20480. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20481. case $ac_top_builddir_sub in
  20482. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20483. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20484. esac ;;
  20485. esac
  20486. ac_abs_top_builddir=$ac_pwd
  20487. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20488. # for backward compatibility:
  20489. ac_top_builddir=$ac_top_build_prefix
  20490. case $srcdir in
  20491. .) # We are building in place.
  20492. ac_srcdir=.
  20493. ac_top_srcdir=$ac_top_builddir_sub
  20494. ac_abs_top_srcdir=$ac_pwd ;;
  20495. [\\/]* | ?:[\\/]* ) # Absolute name.
  20496. ac_srcdir=$srcdir$ac_dir_suffix;
  20497. ac_top_srcdir=$srcdir
  20498. ac_abs_top_srcdir=$srcdir ;;
  20499. *) # Relative name.
  20500. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20501. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20502. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20503. esac
  20504. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20505. case $ac_mode in
  20506. :F)
  20507. #
  20508. # CONFIG_FILE
  20509. #
  20510. case $INSTALL in
  20511. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20512. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20513. esac
  20514. _ACEOF
  20515. cat >>$CONFIG_STATUS <<\_ACEOF
  20516. # If the template does not know about datarootdir, expand it.
  20517. # FIXME: This hack should be removed a few years after 2.60.
  20518. ac_datarootdir_hack=; ac_datarootdir_seen=
  20519. case `sed -n '/datarootdir/ {
  20520. p
  20521. q
  20522. }
  20523. /@datadir@/p
  20524. /@docdir@/p
  20525. /@infodir@/p
  20526. /@localedir@/p
  20527. /@mandir@/p
  20528. ' $ac_file_inputs` in
  20529. *datarootdir*) ac_datarootdir_seen=yes;;
  20530. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20531. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20532. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20533. _ACEOF
  20534. cat >>$CONFIG_STATUS <<_ACEOF
  20535. ac_datarootdir_hack='
  20536. s&@datadir@&$datadir&g
  20537. s&@docdir@&$docdir&g
  20538. s&@infodir@&$infodir&g
  20539. s&@localedir@&$localedir&g
  20540. s&@mandir@&$mandir&g
  20541. s&\\\${datarootdir}&$datarootdir&g' ;;
  20542. esac
  20543. _ACEOF
  20544. # Neutralize VPATH when `$srcdir' = `.'.
  20545. # Shell code in configure.ac might set extrasub.
  20546. # FIXME: do we really want to maintain this feature?
  20547. cat >>$CONFIG_STATUS <<_ACEOF
  20548. sed "$ac_vpsub
  20549. $extrasub
  20550. _ACEOF
  20551. cat >>$CONFIG_STATUS <<\_ACEOF
  20552. :t
  20553. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20554. s&@configure_input@&$configure_input&;t t
  20555. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20556. s&@srcdir@&$ac_srcdir&;t t
  20557. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20558. s&@top_srcdir@&$ac_top_srcdir&;t t
  20559. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20560. s&@builddir@&$ac_builddir&;t t
  20561. s&@abs_builddir@&$ac_abs_builddir&;t t
  20562. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20563. s&@INSTALL@&$ac_INSTALL&;t t
  20564. $ac_datarootdir_hack
  20565. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  20566. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20567. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20568. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20569. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20570. which seems to be undefined. Please make sure it is defined." >&5
  20571. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20572. which seems to be undefined. Please make sure it is defined." >&2;}
  20573. rm -f "$tmp/stdin"
  20574. case $ac_file in
  20575. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20576. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20577. esac
  20578. ;;
  20579. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  20580. echo "$as_me: executing $ac_file commands" >&6;}
  20581. ;;
  20582. esac
  20583. case $ac_file$ac_mode in
  20584. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20585. # Strip MF so we end up with the name of the file.
  20586. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20587. # Check whether this is an Automake generated Makefile or not.
  20588. # We used to match only the files named `Makefile.in', but
  20589. # some people rename them; so instead we look at the file content.
  20590. # Grep'ing the first line is not enough: some people post-process
  20591. # each Makefile.in and add a new line on top of each file to say so.
  20592. # So let's grep whole file.
  20593. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  20594. dirpart=`$as_dirname -- "$mf" ||
  20595. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20596. X"$mf" : 'X\(//\)[^/]' \| \
  20597. X"$mf" : 'X\(//\)$' \| \
  20598. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20599. echo X"$mf" |
  20600. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20601. s//\1/
  20602. q
  20603. }
  20604. /^X\(\/\/\)[^/].*/{
  20605. s//\1/
  20606. q
  20607. }
  20608. /^X\(\/\/\)$/{
  20609. s//\1/
  20610. q
  20611. }
  20612. /^X\(\/\).*/{
  20613. s//\1/
  20614. q
  20615. }
  20616. s/.*/./; q'`
  20617. else
  20618. continue
  20619. fi
  20620. # Extract the definition of DEPDIR, am__include, and am__quote
  20621. # from the Makefile without running `make'.
  20622. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20623. test -z "$DEPDIR" && continue
  20624. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20625. test -z "am__include" && continue
  20626. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20627. # When using ansi2knr, U may be empty or an underscore; expand it
  20628. U=`sed -n 's/^U = //p' < "$mf"`
  20629. # Find all dependency output files, they are included files with
  20630. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20631. # simplest approach to changing $(DEPDIR) to its actual value in the
  20632. # expansion.
  20633. for file in `sed -n "
  20634. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20635. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20636. # Make sure the directory exists.
  20637. test -f "$dirpart/$file" && continue
  20638. fdir=`$as_dirname -- "$file" ||
  20639. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20640. X"$file" : 'X\(//\)[^/]' \| \
  20641. X"$file" : 'X\(//\)$' \| \
  20642. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20643. echo X"$file" |
  20644. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20645. s//\1/
  20646. q
  20647. }
  20648. /^X\(\/\/\)[^/].*/{
  20649. s//\1/
  20650. q
  20651. }
  20652. /^X\(\/\/\)$/{
  20653. s//\1/
  20654. q
  20655. }
  20656. /^X\(\/\).*/{
  20657. s//\1/
  20658. q
  20659. }
  20660. s/.*/./; q'`
  20661. { as_dir=$dirpart/$fdir
  20662. case $as_dir in #(
  20663. -*) as_dir=./$as_dir;;
  20664. esac
  20665. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20666. as_dirs=
  20667. while :; do
  20668. case $as_dir in #(
  20669. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20670. *) as_qdir=$as_dir;;
  20671. esac
  20672. as_dirs="'$as_qdir' $as_dirs"
  20673. as_dir=`$as_dirname -- "$as_dir" ||
  20674. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20675. X"$as_dir" : 'X\(//\)[^/]' \| \
  20676. X"$as_dir" : 'X\(//\)$' \| \
  20677. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20678. echo X"$as_dir" |
  20679. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20680. s//\1/
  20681. q
  20682. }
  20683. /^X\(\/\/\)[^/].*/{
  20684. s//\1/
  20685. q
  20686. }
  20687. /^X\(\/\/\)$/{
  20688. s//\1/
  20689. q
  20690. }
  20691. /^X\(\/\).*/{
  20692. s//\1/
  20693. q
  20694. }
  20695. s/.*/./; q'`
  20696. test -d "$as_dir" && break
  20697. done
  20698. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20699. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20700. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20701. { (exit 1); exit 1; }; }; }
  20702. # echo "creating $dirpart/$file"
  20703. echo '# dummy' > "$dirpart/$file"
  20704. done
  20705. done
  20706. ;;
  20707. esac
  20708. done # for ac_tag
  20709. { (exit 0); exit 0; }
  20710. _ACEOF
  20711. chmod +x $CONFIG_STATUS
  20712. ac_clean_files=$ac_clean_files_save
  20713. # configure is writing to config.log, and then calls config.status.
  20714. # config.status does its own redirection, appending to config.log.
  20715. # Unfortunately, on DOS this fails, as config.log is still kept open
  20716. # by configure, so config.status won't be able to write to it; its
  20717. # output is simply discarded. So we exec the FD to /dev/null,
  20718. # effectively closing config.log, so it can be properly (re)opened and
  20719. # appended to by config.status. When coming back to configure, we
  20720. # need to make the FD available again.
  20721. if test "$no_create" != yes; then
  20722. ac_cs_success=:
  20723. ac_config_status_args=
  20724. test "$silent" = yes &&
  20725. ac_config_status_args="$ac_config_status_args --quiet"
  20726. exec 5>/dev/null
  20727. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20728. exec 5>>config.log
  20729. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20730. # would make configure fail if this is the last instruction.
  20731. $ac_cs_success || { (exit 1); exit 1; }
  20732. fi
  20733. #
  20734. # CONFIG_SUBDIRS section.
  20735. #
  20736. if test "$no_recursion" != yes; then
  20737. # Remove --cache-file and --srcdir arguments so they do not pile up.
  20738. ac_sub_configure_args=
  20739. ac_prev=
  20740. eval "set x $ac_configure_args"
  20741. shift
  20742. for ac_arg
  20743. do
  20744. if test -n "$ac_prev"; then
  20745. ac_prev=
  20746. continue
  20747. fi
  20748. case $ac_arg in
  20749. -cache-file | --cache-file | --cache-fil | --cache-fi \
  20750. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  20751. ac_prev=cache_file ;;
  20752. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  20753. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  20754. | --c=*)
  20755. ;;
  20756. --config-cache | -C)
  20757. ;;
  20758. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  20759. ac_prev=srcdir ;;
  20760. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  20761. ;;
  20762. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  20763. ac_prev=prefix ;;
  20764. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  20765. ;;
  20766. *)
  20767. case $ac_arg in
  20768. *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20769. esac
  20770. ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
  20771. esac
  20772. done
  20773. # Always prepend --prefix to ensure using the same prefix
  20774. # in subdir configurations.
  20775. ac_arg="--prefix=$prefix"
  20776. case $ac_arg in
  20777. *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20778. esac
  20779. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  20780. # Pass --silent
  20781. if test "$silent" = yes; then
  20782. ac_sub_configure_args="--silent $ac_sub_configure_args"
  20783. fi
  20784. ac_popdir=`pwd`
  20785. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  20786. # Do not complain, so a configure script can configure whichever
  20787. # parts of a large source tree are present.
  20788. test -d "$srcdir/$ac_dir" || continue
  20789. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  20790. echo "$as_me:$LINENO: $ac_msg" >&5
  20791. echo "$ac_msg" >&6
  20792. { as_dir="$ac_dir"
  20793. case $as_dir in #(
  20794. -*) as_dir=./$as_dir;;
  20795. esac
  20796. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20797. as_dirs=
  20798. while :; do
  20799. case $as_dir in #(
  20800. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20801. *) as_qdir=$as_dir;;
  20802. esac
  20803. as_dirs="'$as_qdir' $as_dirs"
  20804. as_dir=`$as_dirname -- "$as_dir" ||
  20805. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20806. X"$as_dir" : 'X\(//\)[^/]' \| \
  20807. X"$as_dir" : 'X\(//\)$' \| \
  20808. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20809. echo X"$as_dir" |
  20810. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20811. s//\1/
  20812. q
  20813. }
  20814. /^X\(\/\/\)[^/].*/{
  20815. s//\1/
  20816. q
  20817. }
  20818. /^X\(\/\/\)$/{
  20819. s//\1/
  20820. q
  20821. }
  20822. /^X\(\/\).*/{
  20823. s//\1/
  20824. q
  20825. }
  20826. s/.*/./; q'`
  20827. test -d "$as_dir" && break
  20828. done
  20829. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20830. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20831. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20832. { (exit 1); exit 1; }; }; }
  20833. ac_builddir=.
  20834. case "$ac_dir" in
  20835. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20836. *)
  20837. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20838. # A ".." for each directory in $ac_dir_suffix.
  20839. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20840. case $ac_top_builddir_sub in
  20841. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20842. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20843. esac ;;
  20844. esac
  20845. ac_abs_top_builddir=$ac_pwd
  20846. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20847. # for backward compatibility:
  20848. ac_top_builddir=$ac_top_build_prefix
  20849. case $srcdir in
  20850. .) # We are building in place.
  20851. ac_srcdir=.
  20852. ac_top_srcdir=$ac_top_builddir_sub
  20853. ac_abs_top_srcdir=$ac_pwd ;;
  20854. [\\/]* | ?:[\\/]* ) # Absolute name.
  20855. ac_srcdir=$srcdir$ac_dir_suffix;
  20856. ac_top_srcdir=$srcdir
  20857. ac_abs_top_srcdir=$srcdir ;;
  20858. *) # Relative name.
  20859. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20860. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20861. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20862. esac
  20863. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20864. cd "$ac_dir"
  20865. # Check for guested configure; otherwise get Cygnus style configure.
  20866. if test -f "$ac_srcdir/configure.gnu"; then
  20867. ac_sub_configure=$ac_srcdir/configure.gnu
  20868. elif test -f "$ac_srcdir/configure"; then
  20869. ac_sub_configure=$ac_srcdir/configure
  20870. elif test -f "$ac_srcdir/configure.in"; then
  20871. # This should be Cygnus configure.
  20872. ac_sub_configure=$ac_aux_dir/configure
  20873. else
  20874. { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
  20875. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  20876. ac_sub_configure=
  20877. fi
  20878. # The recursion is here.
  20879. if test -n "$ac_sub_configure"; then
  20880. # Make the cache file name correct relative to the subdirectory.
  20881. case $cache_file in
  20882. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  20883. *) # Relative name.
  20884. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  20885. esac
  20886. { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  20887. echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  20888. # The eval makes quoting arguments work.
  20889. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  20890. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  20891. { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
  20892. echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
  20893. { (exit 1); exit 1; }; }
  20894. fi
  20895. cd "$ac_popdir"
  20896. done
  20897. fi