PageRenderTime 60ms CodeModel.GetById 4ms RepoModel.GetById 0ms app.codeStats 2ms

/lib/libmpeg2/configure

http://github.com/xbmc/xbmc
Shell | 15938 lines | 13458 code | 1118 blank | 1362 comment | 1054 complexity | 20583c37693bfec40f6b26caf2db0443 MD5 | raw file
Possible License(s): GPL-3.0, CC-BY-SA-3.0, LGPL-2.0, 0BSD, Unlicense, GPL-2.0, AGPL-1.0, BSD-3-Clause, LGPL-2.1, LGPL-3.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for libmpeg2 0.5.1.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. # Check that we are running under the correct shell.
  474. SHELL=${CONFIG_SHELL-/bin/sh}
  475. case X$ECHO in
  476. X*--fallback-echo)
  477. # Remove one level of quotation (which was required for Make).
  478. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  479. ;;
  480. esac
  481. echo=${ECHO-echo}
  482. if test "X$1" = X--no-reexec; then
  483. # Discard the --no-reexec flag, and continue.
  484. shift
  485. elif test "X$1" = X--fallback-echo; then
  486. # Avoid inline document here, it may be left over
  487. :
  488. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  489. # Yippee, $echo works!
  490. :
  491. else
  492. # Restart under the correct shell.
  493. exec $SHELL "$0" --no-reexec ${1+"$@"}
  494. fi
  495. if test "X$1" = X--fallback-echo; then
  496. # used as fallback echo
  497. shift
  498. cat <<EOF
  499. $*
  500. EOF
  501. exit 0
  502. fi
  503. # The HP-UX ksh and POSIX shell print the target directory to stdout
  504. # if CDPATH is set.
  505. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  506. if test -z "$ECHO"; then
  507. if test "X${echo_test_string+set}" != Xset; then
  508. # find a string as large as possible, as long as the shell can cope with it
  509. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  510. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  511. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  512. echo_test_string=`eval $cmd` &&
  513. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  514. then
  515. break
  516. fi
  517. done
  518. fi
  519. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  520. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  521. test "X$echo_testing_string" = "X$echo_test_string"; then
  522. :
  523. else
  524. # The Solaris, AIX, and Digital Unix default echo programs unquote
  525. # backslashes. This makes it impossible to quote backslashes using
  526. # echo "$something" | sed 's/\\/\\\\/g'
  527. #
  528. # So, first we look for a working echo in the user's PATH.
  529. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  530. for dir in $PATH /usr/ucb; do
  531. IFS="$lt_save_ifs"
  532. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  533. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  534. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  535. test "X$echo_testing_string" = "X$echo_test_string"; then
  536. echo="$dir/echo"
  537. break
  538. fi
  539. done
  540. IFS="$lt_save_ifs"
  541. if test "X$echo" = Xecho; then
  542. # We didn't find a better echo, so look for alternatives.
  543. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  544. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  545. test "X$echo_testing_string" = "X$echo_test_string"; then
  546. # This shell has a builtin print -r that does the trick.
  547. echo='print -r'
  548. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  549. test "X$CONFIG_SHELL" != X/bin/ksh; then
  550. # If we have ksh, try running configure again with it.
  551. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  552. export ORIGINAL_CONFIG_SHELL
  553. CONFIG_SHELL=/bin/ksh
  554. export CONFIG_SHELL
  555. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  556. else
  557. # Try using printf.
  558. echo='printf %s\n'
  559. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  560. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  561. test "X$echo_testing_string" = "X$echo_test_string"; then
  562. # Cool, printf works
  563. :
  564. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  565. test "X$echo_testing_string" = 'X\t' &&
  566. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  569. export CONFIG_SHELL
  570. SHELL="$CONFIG_SHELL"
  571. export SHELL
  572. echo="$CONFIG_SHELL $0 --fallback-echo"
  573. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  574. test "X$echo_testing_string" = 'X\t' &&
  575. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  576. test "X$echo_testing_string" = "X$echo_test_string"; then
  577. echo="$CONFIG_SHELL $0 --fallback-echo"
  578. else
  579. # maybe with a smaller string...
  580. prev=:
  581. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  582. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  583. then
  584. break
  585. fi
  586. prev="$cmd"
  587. done
  588. if test "$prev" != 'sed 50q "$0"'; then
  589. echo_test_string=`eval $prev`
  590. export echo_test_string
  591. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  592. else
  593. # Oops. We lost completely, so just stick with echo.
  594. echo=echo
  595. fi
  596. fi
  597. fi
  598. fi
  599. fi
  600. fi
  601. # Copy echo and quote the copy suitably for passing to libtool from
  602. # the Makefile, instead of quoting the original, which is used later.
  603. ECHO=$echo
  604. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  605. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  606. fi
  607. tagnames=${tagnames+${tagnames},}CXX
  608. tagnames=${tagnames+${tagnames},}F77
  609. exec 7<&0 </dev/null 6>&1
  610. # Name of the host.
  611. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  612. # so uname gets run too.
  613. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  614. #
  615. # Initializations.
  616. #
  617. ac_default_prefix=/usr/local
  618. ac_clean_files=
  619. ac_config_libobj_dir=.
  620. LIBOBJS=
  621. cross_compiling=no
  622. subdirs=
  623. MFLAGS=
  624. MAKEFLAGS=
  625. SHELL=${CONFIG_SHELL-/bin/sh}
  626. # Identity of this package.
  627. PACKAGE_NAME='libmpeg2'
  628. PACKAGE_TARNAME='libmpeg2'
  629. PACKAGE_VERSION='0.5.1'
  630. PACKAGE_STRING='libmpeg2 0.5.1'
  631. PACKAGE_BUGREPORT=''
  632. ac_unique_file="src/mpeg2dec.c"
  633. # Factoring default headers for most tests.
  634. ac_includes_default="\
  635. #include <stdio.h>
  636. #ifdef HAVE_SYS_TYPES_H
  637. # include <sys/types.h>
  638. #endif
  639. #ifdef HAVE_SYS_STAT_H
  640. # include <sys/stat.h>
  641. #endif
  642. #ifdef STDC_HEADERS
  643. # include <stdlib.h>
  644. # include <stddef.h>
  645. #else
  646. # ifdef HAVE_STDLIB_H
  647. # include <stdlib.h>
  648. # endif
  649. #endif
  650. #ifdef HAVE_STRING_H
  651. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  652. # include <memory.h>
  653. # endif
  654. # include <string.h>
  655. #endif
  656. #ifdef HAVE_STRINGS_H
  657. # include <strings.h>
  658. #endif
  659. #ifdef HAVE_INTTYPES_H
  660. # include <inttypes.h>
  661. #endif
  662. #ifdef HAVE_STDINT_H
  663. # include <stdint.h>
  664. #endif
  665. #ifdef HAVE_UNISTD_H
  666. # include <unistd.h>
  667. #endif"
  668. ac_subst_vars='SHELL
  669. PATH_SEPARATOR
  670. PACKAGE_NAME
  671. PACKAGE_TARNAME
  672. PACKAGE_VERSION
  673. PACKAGE_STRING
  674. PACKAGE_BUGREPORT
  675. exec_prefix
  676. prefix
  677. program_transform_name
  678. bindir
  679. sbindir
  680. libexecdir
  681. datarootdir
  682. datadir
  683. sysconfdir
  684. sharedstatedir
  685. localstatedir
  686. includedir
  687. oldincludedir
  688. docdir
  689. infodir
  690. htmldir
  691. dvidir
  692. pdfdir
  693. psdir
  694. libdir
  695. localedir
  696. mandir
  697. DEFS
  698. ECHO_C
  699. ECHO_N
  700. ECHO_T
  701. LIBS
  702. build_alias
  703. host_alias
  704. target_alias
  705. build
  706. build_cpu
  707. build_vendor
  708. build_os
  709. host
  710. host_cpu
  711. host_vendor
  712. host_os
  713. INSTALL_PROGRAM
  714. INSTALL_SCRIPT
  715. INSTALL_DATA
  716. am__isrc
  717. CYGPATH_W
  718. PACKAGE
  719. VERSION
  720. ACLOCAL
  721. AUTOCONF
  722. AUTOMAKE
  723. AUTOHEADER
  724. MAKEINFO
  725. install_sh
  726. STRIP
  727. INSTALL_STRIP_PROGRAM
  728. mkdir_p
  729. AWK
  730. SET_MAKE
  731. am__leading_dot
  732. AMTAR
  733. am__tar
  734. am__untar
  735. MAINTAINER_MODE_TRUE
  736. MAINTAINER_MODE_FALSE
  737. MAINT
  738. CC
  739. CFLAGS
  740. LDFLAGS
  741. CPPFLAGS
  742. ac_ct_CC
  743. EXEEXT
  744. OBJEXT
  745. DEPDIR
  746. am__include
  747. am__quote
  748. AMDEP_TRUE
  749. AMDEP_FALSE
  750. AMDEPBACKSLASH
  751. CCDEPMODE
  752. am__fastdepCC_TRUE
  753. am__fastdepCC_FALSE
  754. CPP
  755. GREP
  756. EGREP
  757. CCAS
  758. CCASFLAGS
  759. CCASDEPMODE
  760. am__fastdepCCAS_TRUE
  761. am__fastdepCCAS_FALSE
  762. OPT_CFLAGS
  763. ARCH_OPT_CFLAGS
  764. ARCH_ARM_TRUE
  765. ARCH_ARM_FALSE
  766. SED
  767. LN_S
  768. ECHO
  769. AR
  770. RANLIB
  771. DSYMUTIL
  772. NMEDIT
  773. DLLTOOL
  774. AS
  775. OBJDUMP
  776. CXX
  777. CXXFLAGS
  778. ac_ct_CXX
  779. CXXDEPMODE
  780. am__fastdepCXX_TRUE
  781. am__fastdepCXX_FALSE
  782. CXXCPP
  783. F77
  784. FFLAGS
  785. ac_ct_F77
  786. LIBTOOL
  787. AM_CPPFLAGS
  788. LIBMPEG2_CFLAGS
  789. XMKMF
  790. X_CFLAGS
  791. X_PRE_LIBS
  792. X_LIBS
  793. X_EXTRA_LIBS
  794. SDLCONFIG
  795. LIBVO_CFLAGS
  796. LIBVO_LIBS
  797. MPEG2DEC_CFLAGS
  798. LIBOBJS
  799. LTLIBOBJS'
  800. ac_subst_files=''
  801. ac_precious_vars='build_alias
  802. host_alias
  803. target_alias
  804. CC
  805. CFLAGS
  806. LDFLAGS
  807. LIBS
  808. CPPFLAGS
  809. CPP
  810. CCAS
  811. CCASFLAGS
  812. CXX
  813. CXXFLAGS
  814. CCC
  815. CXXCPP
  816. F77
  817. FFLAGS
  818. XMKMF'
  819. # Initialize some variables set by options.
  820. ac_init_help=
  821. ac_init_version=false
  822. # The variables have the same names as the options, with
  823. # dashes changed to underlines.
  824. cache_file=/dev/null
  825. exec_prefix=NONE
  826. no_create=
  827. no_recursion=
  828. prefix=NONE
  829. program_prefix=NONE
  830. program_suffix=NONE
  831. program_transform_name=s,x,x,
  832. silent=
  833. site=
  834. srcdir=
  835. verbose=
  836. x_includes=NONE
  837. x_libraries=NONE
  838. # Installation directory options.
  839. # These are left unexpanded so users can "make install exec_prefix=/foo"
  840. # and all the variables that are supposed to be based on exec_prefix
  841. # by default will actually change.
  842. # Use braces instead of parens because sh, perl, etc. also accept them.
  843. # (The list follows the same order as the GNU Coding Standards.)
  844. bindir='${exec_prefix}/bin'
  845. sbindir='${exec_prefix}/sbin'
  846. libexecdir='${exec_prefix}/libexec'
  847. datarootdir='${prefix}/share'
  848. datadir='${datarootdir}'
  849. sysconfdir='${prefix}/etc'
  850. sharedstatedir='${prefix}/com'
  851. localstatedir='${prefix}/var'
  852. includedir='${prefix}/include'
  853. oldincludedir='/usr/include'
  854. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  855. infodir='${datarootdir}/info'
  856. htmldir='${docdir}'
  857. dvidir='${docdir}'
  858. pdfdir='${docdir}'
  859. psdir='${docdir}'
  860. libdir='${exec_prefix}/lib'
  861. localedir='${datarootdir}/locale'
  862. mandir='${datarootdir}/man'
  863. ac_prev=
  864. ac_dashdash=
  865. for ac_option
  866. do
  867. # If the previous option needs an argument, assign it.
  868. if test -n "$ac_prev"; then
  869. eval $ac_prev=\$ac_option
  870. ac_prev=
  871. continue
  872. fi
  873. case $ac_option in
  874. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  875. *) ac_optarg=yes ;;
  876. esac
  877. # Accept the important Cygnus configure options, so we can diagnose typos.
  878. case $ac_dashdash$ac_option in
  879. --)
  880. ac_dashdash=yes ;;
  881. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  882. ac_prev=bindir ;;
  883. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  884. bindir=$ac_optarg ;;
  885. -build | --build | --buil | --bui | --bu)
  886. ac_prev=build_alias ;;
  887. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  888. build_alias=$ac_optarg ;;
  889. -cache-file | --cache-file | --cache-fil | --cache-fi \
  890. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  891. ac_prev=cache_file ;;
  892. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  893. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  894. cache_file=$ac_optarg ;;
  895. --config-cache | -C)
  896. cache_file=config.cache ;;
  897. -datadir | --datadir | --datadi | --datad)
  898. ac_prev=datadir ;;
  899. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  900. datadir=$ac_optarg ;;
  901. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  902. | --dataroo | --dataro | --datar)
  903. ac_prev=datarootdir ;;
  904. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  905. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  906. datarootdir=$ac_optarg ;;
  907. -disable-* | --disable-*)
  908. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  909. # Reject names that are not valid shell variable names.
  910. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  911. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  912. { (exit 1); exit 1; }; }
  913. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  914. eval enable_$ac_feature=no ;;
  915. -docdir | --docdir | --docdi | --doc | --do)
  916. ac_prev=docdir ;;
  917. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  918. docdir=$ac_optarg ;;
  919. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  920. ac_prev=dvidir ;;
  921. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  922. dvidir=$ac_optarg ;;
  923. -enable-* | --enable-*)
  924. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  925. # Reject names that are not valid shell variable names.
  926. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  927. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  928. { (exit 1); exit 1; }; }
  929. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  930. eval enable_$ac_feature=\$ac_optarg ;;
  931. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  932. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  933. | --exec | --exe | --ex)
  934. ac_prev=exec_prefix ;;
  935. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  936. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  937. | --exec=* | --exe=* | --ex=*)
  938. exec_prefix=$ac_optarg ;;
  939. -gas | --gas | --ga | --g)
  940. # Obsolete; use --with-gas.
  941. with_gas=yes ;;
  942. -help | --help | --hel | --he | -h)
  943. ac_init_help=long ;;
  944. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  945. ac_init_help=recursive ;;
  946. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  947. ac_init_help=short ;;
  948. -host | --host | --hos | --ho)
  949. ac_prev=host_alias ;;
  950. -host=* | --host=* | --hos=* | --ho=*)
  951. host_alias=$ac_optarg ;;
  952. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  953. ac_prev=htmldir ;;
  954. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  955. | --ht=*)
  956. htmldir=$ac_optarg ;;
  957. -includedir | --includedir | --includedi | --included | --include \
  958. | --includ | --inclu | --incl | --inc)
  959. ac_prev=includedir ;;
  960. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  961. | --includ=* | --inclu=* | --incl=* | --inc=*)
  962. includedir=$ac_optarg ;;
  963. -infodir | --infodir | --infodi | --infod | --info | --inf)
  964. ac_prev=infodir ;;
  965. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  966. infodir=$ac_optarg ;;
  967. -libdir | --libdir | --libdi | --libd)
  968. ac_prev=libdir ;;
  969. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  970. libdir=$ac_optarg ;;
  971. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  972. | --libexe | --libex | --libe)
  973. ac_prev=libexecdir ;;
  974. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  975. | --libexe=* | --libex=* | --libe=*)
  976. libexecdir=$ac_optarg ;;
  977. -localedir | --localedir | --localedi | --localed | --locale)
  978. ac_prev=localedir ;;
  979. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  980. localedir=$ac_optarg ;;
  981. -localstatedir | --localstatedir | --localstatedi | --localstated \
  982. | --localstate | --localstat | --localsta | --localst | --locals)
  983. ac_prev=localstatedir ;;
  984. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  985. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  986. localstatedir=$ac_optarg ;;
  987. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  988. ac_prev=mandir ;;
  989. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  990. mandir=$ac_optarg ;;
  991. -nfp | --nfp | --nf)
  992. # Obsolete; use --without-fp.
  993. with_fp=no ;;
  994. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  995. | --no-cr | --no-c | -n)
  996. no_create=yes ;;
  997. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  998. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  999. no_recursion=yes ;;
  1000. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1001. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1002. | --oldin | --oldi | --old | --ol | --o)
  1003. ac_prev=oldincludedir ;;
  1004. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1005. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1006. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1007. oldincludedir=$ac_optarg ;;
  1008. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1009. ac_prev=prefix ;;
  1010. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1011. prefix=$ac_optarg ;;
  1012. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1013. | --program-pre | --program-pr | --program-p)
  1014. ac_prev=program_prefix ;;
  1015. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1016. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1017. program_prefix=$ac_optarg ;;
  1018. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1019. | --program-suf | --program-su | --program-s)
  1020. ac_prev=program_suffix ;;
  1021. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1022. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1023. program_suffix=$ac_optarg ;;
  1024. -program-transform-name | --program-transform-name \
  1025. | --program-transform-nam | --program-transform-na \
  1026. | --program-transform-n | --program-transform- \
  1027. | --program-transform | --program-transfor \
  1028. | --program-transfo | --program-transf \
  1029. | --program-trans | --program-tran \
  1030. | --progr-tra | --program-tr | --program-t)
  1031. ac_prev=program_transform_name ;;
  1032. -program-transform-name=* | --program-transform-name=* \
  1033. | --program-transform-nam=* | --program-transform-na=* \
  1034. | --program-transform-n=* | --program-transform-=* \
  1035. | --program-transform=* | --program-transfor=* \
  1036. | --program-transfo=* | --program-transf=* \
  1037. | --program-trans=* | --program-tran=* \
  1038. | --progr-tra=* | --program-tr=* | --program-t=*)
  1039. program_transform_name=$ac_optarg ;;
  1040. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1041. ac_prev=pdfdir ;;
  1042. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1043. pdfdir=$ac_optarg ;;
  1044. -psdir | --psdir | --psdi | --psd | --ps)
  1045. ac_prev=psdir ;;
  1046. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1047. psdir=$ac_optarg ;;
  1048. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1049. | -silent | --silent | --silen | --sile | --sil)
  1050. silent=yes ;;
  1051. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1052. ac_prev=sbindir ;;
  1053. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1054. | --sbi=* | --sb=*)
  1055. sbindir=$ac_optarg ;;
  1056. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1057. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1058. | --sharedst | --shareds | --shared | --share | --shar \
  1059. | --sha | --sh)
  1060. ac_prev=sharedstatedir ;;
  1061. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1062. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1063. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1064. | --sha=* | --sh=*)
  1065. sharedstatedir=$ac_optarg ;;
  1066. -site | --site | --sit)
  1067. ac_prev=site ;;
  1068. -site=* | --site=* | --sit=*)
  1069. site=$ac_optarg ;;
  1070. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1071. ac_prev=srcdir ;;
  1072. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1073. srcdir=$ac_optarg ;;
  1074. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1075. | --syscon | --sysco | --sysc | --sys | --sy)
  1076. ac_prev=sysconfdir ;;
  1077. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1078. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1079. sysconfdir=$ac_optarg ;;
  1080. -target | --target | --targe | --targ | --tar | --ta | --t)
  1081. ac_prev=target_alias ;;
  1082. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1083. target_alias=$ac_optarg ;;
  1084. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1085. verbose=yes ;;
  1086. -version | --version | --versio | --versi | --vers | -V)
  1087. ac_init_version=: ;;
  1088. -with-* | --with-*)
  1089. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1090. # Reject names that are not valid shell variable names.
  1091. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1092. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1093. { (exit 1); exit 1; }; }
  1094. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1095. eval with_$ac_package=\$ac_optarg ;;
  1096. -without-* | --without-*)
  1097. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1098. # Reject names that are not valid shell variable names.
  1099. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1100. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1101. { (exit 1); exit 1; }; }
  1102. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1103. eval with_$ac_package=no ;;
  1104. --x)
  1105. # Obsolete; use --with-x.
  1106. with_x=yes ;;
  1107. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1108. | --x-incl | --x-inc | --x-in | --x-i)
  1109. ac_prev=x_includes ;;
  1110. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1111. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1112. x_includes=$ac_optarg ;;
  1113. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1114. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1115. ac_prev=x_libraries ;;
  1116. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1117. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1118. x_libraries=$ac_optarg ;;
  1119. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1120. Try \`$0 --help' for more information." >&2
  1121. { (exit 1); exit 1; }; }
  1122. ;;
  1123. *=*)
  1124. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1125. # Reject names that are not valid shell variable names.
  1126. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1127. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1128. { (exit 1); exit 1; }; }
  1129. eval $ac_envvar=\$ac_optarg
  1130. export $ac_envvar ;;
  1131. *)
  1132. # FIXME: should be removed in autoconf 3.0.
  1133. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1134. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1135. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1136. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1137. ;;
  1138. esac
  1139. done
  1140. if test -n "$ac_prev"; then
  1141. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1142. { echo "$as_me: error: missing argument to $ac_option" >&2
  1143. { (exit 1); exit 1; }; }
  1144. fi
  1145. # Be sure to have absolute directory names.
  1146. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1147. datadir sysconfdir sharedstatedir localstatedir includedir \
  1148. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1149. libdir localedir mandir
  1150. do
  1151. eval ac_val=\$$ac_var
  1152. case $ac_val in
  1153. [\\/$]* | ?:[\\/]* ) continue;;
  1154. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1155. esac
  1156. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1157. { (exit 1); exit 1; }; }
  1158. done
  1159. # There might be people who depend on the old broken behavior: `$host'
  1160. # used to hold the argument of --host etc.
  1161. # FIXME: To remove some day.
  1162. build=$build_alias
  1163. host=$host_alias
  1164. target=$target_alias
  1165. # FIXME: To remove some day.
  1166. if test "x$host_alias" != x; then
  1167. if test "x$build_alias" = x; then
  1168. cross_compiling=maybe
  1169. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1170. If a cross compiler is detected then cross compile mode will be used." >&2
  1171. elif test "x$build_alias" != "x$host_alias"; then
  1172. cross_compiling=yes
  1173. fi
  1174. fi
  1175. ac_tool_prefix=
  1176. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1177. test "$silent" = yes && exec 6>/dev/null
  1178. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1179. ac_ls_di=`ls -di .` &&
  1180. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1181. { echo "$as_me: error: Working directory cannot be determined" >&2
  1182. { (exit 1); exit 1; }; }
  1183. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1184. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1185. { (exit 1); exit 1; }; }
  1186. # Find the source files, if location was not specified.
  1187. if test -z "$srcdir"; then
  1188. ac_srcdir_defaulted=yes
  1189. # Try the directory containing this script, then the parent directory.
  1190. ac_confdir=`$as_dirname -- "$0" ||
  1191. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1192. X"$0" : 'X\(//\)[^/]' \| \
  1193. X"$0" : 'X\(//\)$' \| \
  1194. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1195. echo X"$0" |
  1196. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1197. s//\1/
  1198. q
  1199. }
  1200. /^X\(\/\/\)[^/].*/{
  1201. s//\1/
  1202. q
  1203. }
  1204. /^X\(\/\/\)$/{
  1205. s//\1/
  1206. q
  1207. }
  1208. /^X\(\/\).*/{
  1209. s//\1/
  1210. q
  1211. }
  1212. s/.*/./; q'`
  1213. srcdir=$ac_confdir
  1214. if test ! -r "$srcdir/$ac_unique_file"; then
  1215. srcdir=..
  1216. fi
  1217. else
  1218. ac_srcdir_defaulted=no
  1219. fi
  1220. if test ! -r "$srcdir/$ac_unique_file"; then
  1221. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1222. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1223. { (exit 1); exit 1; }; }
  1224. fi
  1225. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1226. ac_abs_confdir=`(
  1227. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1228. { (exit 1); exit 1; }; }
  1229. pwd)`
  1230. # When building in place, set srcdir=.
  1231. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1232. srcdir=.
  1233. fi
  1234. # Remove unnecessary trailing slashes from srcdir.
  1235. # Double slashes in file names in object file debugging info
  1236. # mess up M-x gdb in Emacs.
  1237. case $srcdir in
  1238. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1239. esac
  1240. for ac_var in $ac_precious_vars; do
  1241. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1242. eval ac_env_${ac_var}_value=\$${ac_var}
  1243. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1244. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1245. done
  1246. #
  1247. # Report the --help message.
  1248. #
  1249. if test "$ac_init_help" = "long"; then
  1250. # Omit some internal or obsolete options to make the list less imposing.
  1251. # This message is too long to be a string in the A/UX 3.1 sh.
  1252. cat <<_ACEOF
  1253. \`configure' configures libmpeg2 0.5.1 to adapt to many kinds of systems.
  1254. Usage: $0 [OPTION]... [VAR=VALUE]...
  1255. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1256. VAR=VALUE. See below for descriptions of some of the useful variables.
  1257. Defaults for the options are specified in brackets.
  1258. Configuration:
  1259. -h, --help display this help and exit
  1260. --help=short display options specific to this package
  1261. --help=recursive display the short help of all the included packages
  1262. -V, --version display version information and exit
  1263. -q, --quiet, --silent do not print \`checking...' messages
  1264. --cache-file=FILE cache test results in FILE [disabled]
  1265. -C, --config-cache alias for \`--cache-file=config.cache'
  1266. -n, --no-create do not create output files
  1267. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1268. Installation directories:
  1269. --prefix=PREFIX install architecture-independent files in PREFIX
  1270. [$ac_default_prefix]
  1271. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1272. [PREFIX]
  1273. By default, \`make install' will install all the files in
  1274. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1275. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1276. for instance \`--prefix=\$HOME'.
  1277. For better control, use the options below.
  1278. Fine tuning of the installation directories:
  1279. --bindir=DIR user executables [EPREFIX/bin]
  1280. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1281. --libexecdir=DIR program executables [EPREFIX/libexec]
  1282. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1283. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1284. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1285. --libdir=DIR object code libraries [EPREFIX/lib]
  1286. --includedir=DIR C header files [PREFIX/include]
  1287. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1288. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1289. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1290. --infodir=DIR info documentation [DATAROOTDIR/info]
  1291. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1292. --mandir=DIR man documentation [DATAROOTDIR/man]
  1293. --docdir=DIR documentation root [DATAROOTDIR/doc/libmpeg2]
  1294. --htmldir=DIR html documentation [DOCDIR]
  1295. --dvidir=DIR dvi documentation [DOCDIR]
  1296. --pdfdir=DIR pdf documentation [DOCDIR]
  1297. --psdir=DIR ps documentation [DOCDIR]
  1298. _ACEOF
  1299. cat <<\_ACEOF
  1300. Program names:
  1301. --program-prefix=PREFIX prepend PREFIX to installed program names
  1302. --program-suffix=SUFFIX append SUFFIX to installed program names
  1303. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1304. X features:
  1305. --x-includes=DIR X include files are in DIR
  1306. --x-libraries=DIR X library files are in DIR
  1307. System types:
  1308. --build=BUILD configure for building on BUILD [guessed]
  1309. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1310. _ACEOF
  1311. fi
  1312. if test -n "$ac_init_help"; then
  1313. case $ac_init_help in
  1314. short | recursive ) echo "Configuration of libmpeg2 0.5.1:";;
  1315. esac
  1316. cat <<\_ACEOF
  1317. Optional Features:
  1318. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1319. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1320. --enable-maintainer-mode enable make rules and dependencies not useful
  1321. (and sometimes confusing) to the casual installer
  1322. --disable-dependency-tracking speeds up one-time build
  1323. --enable-dependency-tracking do not reject slow dependency extractors
  1324. --enable-debug debug mode configuration
  1325. --enable-shared[=PKGS] build shared libraries [default=yes]
  1326. --enable-static[=PKGS] build static libraries [default=yes]
  1327. --enable-fast-install[=PKGS]
  1328. optimize for fast installation [default=yes]
  1329. --disable-libtool-lock avoid locking (might break parallel builds)
  1330. --disable-largefile omit support for large files
  1331. --disable-accel-detect make a version without accel detection code
  1332. --enable-directx=DIR use Win32 DirectX headers in DIR
  1333. --disable-sdl make a version not using SDL
  1334. --enable-warnings treat warnings as errors
  1335. --enable-gprof make a version using gprof
  1336. Optional Packages:
  1337. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1338. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1339. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1340. --with-pic try to use only PIC/non-PIC objects [default=use
  1341. both]
  1342. --with-tags[=TAGS] include additional configurations [automatic]
  1343. --with-x use the X Window System
  1344. Some influential environment variables:
  1345. CC C compiler command
  1346. CFLAGS C compiler flags
  1347. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1348. nonstandard directory <lib dir>
  1349. LIBS libraries to pass to the linker, e.g. -l<library>
  1350. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1351. you have headers in a nonstandard directory <include dir>
  1352. CPP C preprocessor
  1353. CCAS assembler compiler command (defaults to CC)
  1354. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1355. CXX C++ compiler command
  1356. CXXFLAGS C++ compiler flags
  1357. CXXCPP C++ preprocessor
  1358. F77 Fortran 77 compiler command
  1359. FFLAGS Fortran 77 compiler flags
  1360. XMKMF Path to xmkmf, Makefile generator for X Window System
  1361. Use these variables to override the choices made by `configure' or to help
  1362. it to find libraries and programs with nonstandard names/locations.
  1363. _ACEOF
  1364. ac_status=$?
  1365. fi
  1366. if test "$ac_init_help" = "recursive"; then
  1367. # If there are subdirs, report their specific --help.
  1368. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1369. test -d "$ac_dir" || continue
  1370. ac_builddir=.
  1371. case "$ac_dir" in
  1372. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1373. *)
  1374. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1375. # A ".." for each directory in $ac_dir_suffix.
  1376. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1377. case $ac_top_builddir_sub in
  1378. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1379. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1380. esac ;;
  1381. esac
  1382. ac_abs_top_builddir=$ac_pwd
  1383. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1384. # for backward compatibility:
  1385. ac_top_builddir=$ac_top_build_prefix
  1386. case $srcdir in
  1387. .) # We are building in place.
  1388. ac_srcdir=.
  1389. ac_top_srcdir=$ac_top_builddir_sub
  1390. ac_abs_top_srcdir=$ac_pwd ;;
  1391. [\\/]* | ?:[\\/]* ) # Absolute name.
  1392. ac_srcdir=$srcdir$ac_dir_suffix;
  1393. ac_top_srcdir=$srcdir
  1394. ac_abs_top_srcdir=$srcdir ;;
  1395. *) # Relative name.
  1396. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1397. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1398. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1399. esac
  1400. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1401. cd "$ac_dir" || { ac_status=$?; continue; }
  1402. # Check for guested configure.
  1403. if test -f "$ac_srcdir/configure.gnu"; then
  1404. echo &&
  1405. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1406. elif test -f "$ac_srcdir/configure"; then
  1407. echo &&
  1408. $SHELL "$ac_srcdir/configure" --help=recursive
  1409. else
  1410. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1411. fi || ac_status=$?
  1412. cd "$ac_pwd" || { ac_status=$?; break; }
  1413. done
  1414. fi
  1415. test -n "$ac_init_help" && exit $ac_status
  1416. if $ac_init_version; then
  1417. cat <<\_ACEOF
  1418. libmpeg2 configure 0.5.1
  1419. generated by GNU Autoconf 2.61
  1420. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1421. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1422. This configure script is free software; the Free Software Foundation
  1423. gives unlimited permission to copy, distribute and modify it.
  1424. _ACEOF
  1425. exit
  1426. fi
  1427. cat >config.log <<_ACEOF
  1428. This file contains any messages produced by compilers while
  1429. running configure, to aid debugging if configure makes a mistake.
  1430. It was created by libmpeg2 $as_me 0.5.1, which was
  1431. generated by GNU Autoconf 2.61. Invocation command line was
  1432. $ $0 $@
  1433. _ACEOF
  1434. exec 5>>config.log
  1435. {
  1436. cat <<_ASUNAME
  1437. ## --------- ##
  1438. ## Platform. ##
  1439. ## --------- ##
  1440. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1441. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1442. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1443. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1444. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1445. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1446. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1447. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1448. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1449. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1450. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1451. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1452. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1453. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1454. _ASUNAME
  1455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1456. for as_dir in $PATH
  1457. do
  1458. IFS=$as_save_IFS
  1459. test -z "$as_dir" && as_dir=.
  1460. echo "PATH: $as_dir"
  1461. done
  1462. IFS=$as_save_IFS
  1463. } >&5
  1464. cat >&5 <<_ACEOF
  1465. ## ----------- ##
  1466. ## Core tests. ##
  1467. ## ----------- ##
  1468. _ACEOF
  1469. # Keep a trace of the command line.
  1470. # Strip out --no-create and --no-recursion so they do not pile up.
  1471. # Strip out --silent because we don't want to record it for future runs.
  1472. # Also quote any args containing shell meta-characters.
  1473. # Make two passes to allow for proper duplicate-argument suppression.
  1474. ac_configure_args=
  1475. ac_configure_args0=
  1476. ac_configure_args1=
  1477. ac_must_keep_next=false
  1478. for ac_pass in 1 2
  1479. do
  1480. for ac_arg
  1481. do
  1482. case $ac_arg in
  1483. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1484. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1485. | -silent | --silent | --silen | --sile | --sil)
  1486. continue ;;
  1487. *\'*)
  1488. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1489. esac
  1490. case $ac_pass in
  1491. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1492. 2)
  1493. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1494. if test $ac_must_keep_next = true; then
  1495. ac_must_keep_next=false # Got value, back to normal.
  1496. else
  1497. case $ac_arg in
  1498. *=* | --config-cache | -C | -disable-* | --disable-* \
  1499. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1500. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1501. | -with-* | --with-* | -without-* | --without-* | --x)
  1502. case "$ac_configure_args0 " in
  1503. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1504. esac
  1505. ;;
  1506. -* ) ac_must_keep_next=true ;;
  1507. esac
  1508. fi
  1509. ac_configure_args="$ac_configure_args '$ac_arg'"
  1510. ;;
  1511. esac
  1512. done
  1513. done
  1514. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1515. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1516. # When interrupted or exit'd, cleanup temporary files, and complete
  1517. # config.log. We remove comments because anyway the quotes in there
  1518. # would cause problems or look ugly.
  1519. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1520. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1521. trap 'exit_status=$?
  1522. # Save into config.log some information that might help in debugging.
  1523. {
  1524. echo
  1525. cat <<\_ASBOX
  1526. ## ---------------- ##
  1527. ## Cache variables. ##
  1528. ## ---------------- ##
  1529. _ASBOX
  1530. echo
  1531. # The following way of writing the cache mishandles newlines in values,
  1532. (
  1533. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1534. eval ac_val=\$$ac_var
  1535. case $ac_val in #(
  1536. *${as_nl}*)
  1537. case $ac_var in #(
  1538. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1539. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1540. esac
  1541. case $ac_var in #(
  1542. _ | IFS | as_nl) ;; #(
  1543. *) $as_unset $ac_var ;;
  1544. esac ;;
  1545. esac
  1546. done
  1547. (set) 2>&1 |
  1548. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1549. *${as_nl}ac_space=\ *)
  1550. sed -n \
  1551. "s/'\''/'\''\\\\'\'''\''/g;
  1552. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1553. ;; #(
  1554. *)
  1555. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1556. ;;
  1557. esac |
  1558. sort
  1559. )
  1560. echo
  1561. cat <<\_ASBOX
  1562. ## ----------------- ##
  1563. ## Output variables. ##
  1564. ## ----------------- ##
  1565. _ASBOX
  1566. echo
  1567. for ac_var in $ac_subst_vars
  1568. do
  1569. eval ac_val=\$$ac_var
  1570. case $ac_val in
  1571. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1572. esac
  1573. echo "$ac_var='\''$ac_val'\''"
  1574. done | sort
  1575. echo
  1576. if test -n "$ac_subst_files"; then
  1577. cat <<\_ASBOX
  1578. ## ------------------- ##
  1579. ## File substitutions. ##
  1580. ## ------------------- ##
  1581. _ASBOX
  1582. echo
  1583. for ac_var in $ac_subst_files
  1584. do
  1585. eval ac_val=\$$ac_var
  1586. case $ac_val in
  1587. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1588. esac
  1589. echo "$ac_var='\''$ac_val'\''"
  1590. done | sort
  1591. echo
  1592. fi
  1593. if test -s confdefs.h; then
  1594. cat <<\_ASBOX
  1595. ## ----------- ##
  1596. ## confdefs.h. ##
  1597. ## ----------- ##
  1598. _ASBOX
  1599. echo
  1600. cat confdefs.h
  1601. echo
  1602. fi
  1603. test "$ac_signal" != 0 &&
  1604. echo "$as_me: caught signal $ac_signal"
  1605. echo "$as_me: exit $exit_status"
  1606. } >&5
  1607. rm -f core *.core core.conftest.* &&
  1608. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1609. exit $exit_status
  1610. ' 0
  1611. for ac_signal in 1 2 13 15; do
  1612. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1613. done
  1614. ac_signal=0
  1615. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1616. rm -f -r conftest* confdefs.h
  1617. # Predefined preprocessor variables.
  1618. cat >>confdefs.h <<_ACEOF
  1619. #define PACKAGE_NAME "$PACKAGE_NAME"
  1620. _ACEOF
  1621. cat >>confdefs.h <<_ACEOF
  1622. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1623. _ACEOF
  1624. cat >>confdefs.h <<_ACEOF
  1625. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1626. _ACEOF
  1627. cat >>confdefs.h <<_ACEOF
  1628. #define PACKAGE_STRING "$PACKAGE_STRING"
  1629. _ACEOF
  1630. cat >>confdefs.h <<_ACEOF
  1631. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1632. _ACEOF
  1633. # Let the site file select an alternate cache file if it wants to.
  1634. # Prefer explicitly selected file to automatically selected ones.
  1635. if test -n "$CONFIG_SITE"; then
  1636. set x "$CONFIG_SITE"
  1637. elif test "x$prefix" != xNONE; then
  1638. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1639. else
  1640. set x "$ac_default_prefix/share/config.site" \
  1641. "$ac_default_prefix/etc/config.site"
  1642. fi
  1643. shift
  1644. for ac_site_file
  1645. do
  1646. if test -r "$ac_site_file"; then
  1647. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1648. echo "$as_me: loading site script $ac_site_file" >&6;}
  1649. sed 's/^/| /' "$ac_site_file" >&5
  1650. . "$ac_site_file"
  1651. fi
  1652. done
  1653. if test -r "$cache_file"; then
  1654. # Some versions of bash will fail to source /dev/null (special
  1655. # files actually), so we avoid doing that.
  1656. if test -f "$cache_file"; then
  1657. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1658. echo "$as_me: loading cache $cache_file" >&6;}
  1659. case $cache_file in
  1660. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1661. *) . "./$cache_file";;
  1662. esac
  1663. fi
  1664. else
  1665. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1666. echo "$as_me: creating cache $cache_file" >&6;}
  1667. >$cache_file
  1668. fi
  1669. # Check that the precious variables saved in the cache have kept the same
  1670. # value.
  1671. ac_cache_corrupted=false
  1672. for ac_var in $ac_precious_vars; do
  1673. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1674. eval ac_new_set=\$ac_env_${ac_var}_set
  1675. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1676. eval ac_new_val=\$ac_env_${ac_var}_value
  1677. case $ac_old_set,$ac_new_set in
  1678. set,)
  1679. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1680. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1681. ac_cache_corrupted=: ;;
  1682. ,set)
  1683. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1684. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1685. ac_cache_corrupted=: ;;
  1686. ,);;
  1687. *)
  1688. if test "x$ac_old_val" != "x$ac_new_val"; then
  1689. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1690. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1691. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1692. echo "$as_me: former value: $ac_old_val" >&2;}
  1693. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1694. echo "$as_me: current value: $ac_new_val" >&2;}
  1695. ac_cache_corrupted=:
  1696. fi;;
  1697. esac
  1698. # Pass precious variables to config.status.
  1699. if test "$ac_new_set" = set; then
  1700. case $ac_new_val in
  1701. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1702. *) ac_arg=$ac_var=$ac_new_val ;;
  1703. esac
  1704. case " $ac_configure_args " in
  1705. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1706. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1707. esac
  1708. fi
  1709. done
  1710. if $ac_cache_corrupted; then
  1711. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1712. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1713. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1714. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1715. { (exit 1); exit 1; }; }
  1716. fi
  1717. ac_ext=c
  1718. ac_cpp='$CPP $CPPFLAGS'
  1719. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1720. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1721. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1722. ac_aux_dir=
  1723. for ac_dir in .auto "$srcdir"/.auto; do
  1724. if test -f "$ac_dir/install-sh"; then
  1725. ac_aux_dir=$ac_dir
  1726. ac_install_sh="$ac_aux_dir/install-sh -c"
  1727. break
  1728. elif test -f "$ac_dir/install.sh"; then
  1729. ac_aux_dir=$ac_dir
  1730. ac_install_sh="$ac_aux_dir/install.sh -c"
  1731. break
  1732. elif test -f "$ac_dir/shtool"; then
  1733. ac_aux_dir=$ac_dir
  1734. ac_install_sh="$ac_aux_dir/shtool install -c"
  1735. break
  1736. fi
  1737. done
  1738. if test -z "$ac_aux_dir"; then
  1739. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .auto \"$srcdir\"/.auto" >&5
  1740. echo "$as_me: error: cannot find install-sh or install.sh in .auto \"$srcdir\"/.auto" >&2;}
  1741. { (exit 1); exit 1; }; }
  1742. fi
  1743. # These three variables are undocumented and unsupported,
  1744. # and are intended to be withdrawn in a future Autoconf release.
  1745. # They can cause serious problems if a builder's source tree is in a directory
  1746. # whose full name contains unusual characters.
  1747. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1748. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1749. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1750. ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile doc/Makefile src/Makefile libmpeg2/Makefile libmpeg2/convert/Makefile libvo/Makefile vc++/Makefile libmpeg2/libmpeg2.pc libmpeg2/convert/libmpeg2convert.pc"
  1751. ac_config_headers="$ac_config_headers include/config.h"
  1752. # Make sure we can run config.sub.
  1753. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1754. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1755. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1756. { (exit 1); exit 1; }; }
  1757. { echo "$as_me:$LINENO: checking build system type" >&5
  1758. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1759. if test "${ac_cv_build+set}" = set; then
  1760. echo $ECHO_N "(cached) $ECHO_C" >&6
  1761. else
  1762. ac_build_alias=$build_alias
  1763. test "x$ac_build_alias" = x &&
  1764. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1765. test "x$ac_build_alias" = x &&
  1766. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1767. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1768. { (exit 1); exit 1; }; }
  1769. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1770. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1771. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1772. { (exit 1); exit 1; }; }
  1773. fi
  1774. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1775. echo "${ECHO_T}$ac_cv_build" >&6; }
  1776. case $ac_cv_build in
  1777. *-*-*) ;;
  1778. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1779. echo "$as_me: error: invalid value of canonical build" >&2;}
  1780. { (exit 1); exit 1; }; };;
  1781. esac
  1782. build=$ac_cv_build
  1783. ac_save_IFS=$IFS; IFS='-'
  1784. set x $ac_cv_build
  1785. shift
  1786. build_cpu=$1
  1787. build_vendor=$2
  1788. shift; shift
  1789. # Remember, the first character of IFS is used to create $*,
  1790. # except with old shells:
  1791. build_os=$*
  1792. IFS=$ac_save_IFS
  1793. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1794. { echo "$as_me:$LINENO: checking host system type" >&5
  1795. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1796. if test "${ac_cv_host+set}" = set; then
  1797. echo $ECHO_N "(cached) $ECHO_C" >&6
  1798. else
  1799. if test "x$host_alias" = x; then
  1800. ac_cv_host=$ac_cv_build
  1801. else
  1802. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1803. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1804. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1805. { (exit 1); exit 1; }; }
  1806. fi
  1807. fi
  1808. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1809. echo "${ECHO_T}$ac_cv_host" >&6; }
  1810. case $ac_cv_host in
  1811. *-*-*) ;;
  1812. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1813. echo "$as_me: error: invalid value of canonical host" >&2;}
  1814. { (exit 1); exit 1; }; };;
  1815. esac
  1816. host=$ac_cv_host
  1817. ac_save_IFS=$IFS; IFS='-'
  1818. set x $ac_cv_host
  1819. shift
  1820. host_cpu=$1
  1821. host_vendor=$2
  1822. shift; shift
  1823. # Remember, the first character of IFS is used to create $*,
  1824. # except with old shells:
  1825. host_os=$*
  1826. IFS=$ac_save_IFS
  1827. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1828. am__api_version='1.10'
  1829. # Find a good install program. We prefer a C program (faster),
  1830. # so one script is as good as another. But avoid the broken or
  1831. # incompatible versions:
  1832. # SysV /etc/install, /usr/sbin/install
  1833. # SunOS /usr/etc/install
  1834. # IRIX /sbin/install
  1835. # AIX /bin/install
  1836. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1837. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1838. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1839. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1840. # OS/2's system install, which has a completely different semantic
  1841. # ./install, which can be erroneously created by make from ./install.sh.
  1842. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1843. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1844. if test -z "$INSTALL"; then
  1845. if test "${ac_cv_path_install+set}" = set; then
  1846. echo $ECHO_N "(cached) $ECHO_C" >&6
  1847. else
  1848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1849. for as_dir in $PATH
  1850. do
  1851. IFS=$as_save_IFS
  1852. test -z "$as_dir" && as_dir=.
  1853. # Account for people who put trailing slashes in PATH elements.
  1854. case $as_dir/ in
  1855. ./ | .// | /cC/* | \
  1856. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1857. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1858. /usr/ucb/* ) ;;
  1859. *)
  1860. # OSF1 and SCO ODT 3.0 have their own names for install.
  1861. # Don't use installbsd from OSF since it installs stuff as root
  1862. # by default.
  1863. for ac_prog in ginstall scoinst install; do
  1864. for ac_exec_ext in '' $ac_executable_extensions; do
  1865. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1866. if test $ac_prog = install &&
  1867. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1868. # AIX install. It has an incompatible calling convention.
  1869. :
  1870. elif test $ac_prog = install &&
  1871. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1872. # program-specific install script used by HP pwplus--don't use.
  1873. :
  1874. else
  1875. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1876. break 3
  1877. fi
  1878. fi
  1879. done
  1880. done
  1881. ;;
  1882. esac
  1883. done
  1884. IFS=$as_save_IFS
  1885. fi
  1886. if test "${ac_cv_path_install+set}" = set; then
  1887. INSTALL=$ac_cv_path_install
  1888. else
  1889. # As a last resort, use the slow shell script. Don't cache a
  1890. # value for INSTALL within a source directory, because that will
  1891. # break other packages using the cache if that directory is
  1892. # removed, or if the value is a relative name.
  1893. INSTALL=$ac_install_sh
  1894. fi
  1895. fi
  1896. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1897. echo "${ECHO_T}$INSTALL" >&6; }
  1898. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1899. # It thinks the first close brace ends the variable substitution.
  1900. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1901. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1902. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1903. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1904. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1905. # Just in case
  1906. sleep 1
  1907. echo timestamp > conftest.file
  1908. # Do `set' in a subshell so we don't clobber the current shell's
  1909. # arguments. Must try -L first in case configure is actually a
  1910. # symlink; some systems play weird games with the mod time of symlinks
  1911. # (eg FreeBSD returns the mod time of the symlink's containing
  1912. # directory).
  1913. if (
  1914. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1915. if test "$*" = "X"; then
  1916. # -L didn't work.
  1917. set X `ls -t $srcdir/configure conftest.file`
  1918. fi
  1919. rm -f conftest.file
  1920. if test "$*" != "X $srcdir/configure conftest.file" \
  1921. && test "$*" != "X conftest.file $srcdir/configure"; then
  1922. # If neither matched, then we have a broken ls. This can happen
  1923. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1924. # broken ls alias from the environment. This has actually
  1925. # happened. Such a system could not be considered "sane".
  1926. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1927. alias in your environment" >&5
  1928. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1929. alias in your environment" >&2;}
  1930. { (exit 1); exit 1; }; }
  1931. fi
  1932. test "$2" = conftest.file
  1933. )
  1934. then
  1935. # Ok.
  1936. :
  1937. else
  1938. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1939. Check your system clock" >&5
  1940. echo "$as_me: error: newly created file is older than distributed files!
  1941. Check your system clock" >&2;}
  1942. { (exit 1); exit 1; }; }
  1943. fi
  1944. { echo "$as_me:$LINENO: result: yes" >&5
  1945. echo "${ECHO_T}yes" >&6; }
  1946. test "$program_prefix" != NONE &&
  1947. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1948. # Use a double $ so make ignores it.
  1949. test "$program_suffix" != NONE &&
  1950. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1951. # Double any \ or $. echo might interpret backslashes.
  1952. # By default was `s,x,x', remove it if useless.
  1953. cat <<\_ACEOF >conftest.sed
  1954. s/[\\$]/&&/g;s/;s,x,x,$//
  1955. _ACEOF
  1956. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1957. rm -f conftest.sed
  1958. # expand $ac_aux_dir to an absolute path
  1959. am_aux_dir=`cd $ac_aux_dir && pwd`
  1960. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1961. # Use eval to expand $SHELL
  1962. if eval "$MISSING --run true"; then
  1963. am_missing_run="$MISSING --run "
  1964. else
  1965. am_missing_run=
  1966. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1967. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1968. fi
  1969. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1970. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1971. if test -z "$MKDIR_P"; then
  1972. if test "${ac_cv_path_mkdir+set}" = set; then
  1973. echo $ECHO_N "(cached) $ECHO_C" >&6
  1974. else
  1975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1976. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1977. do
  1978. IFS=$as_save_IFS
  1979. test -z "$as_dir" && as_dir=.
  1980. for ac_prog in mkdir gmkdir; do
  1981. for ac_exec_ext in '' $ac_executable_extensions; do
  1982. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1983. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1984. 'mkdir (GNU coreutils) '* | \
  1985. 'mkdir (coreutils) '* | \
  1986. 'mkdir (fileutils) '4.1*)
  1987. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1988. break 3;;
  1989. esac
  1990. done
  1991. done
  1992. done
  1993. IFS=$as_save_IFS
  1994. fi
  1995. if test "${ac_cv_path_mkdir+set}" = set; then
  1996. MKDIR_P="$ac_cv_path_mkdir -p"
  1997. else
  1998. # As a last resort, use the slow shell script. Don't cache a
  1999. # value for MKDIR_P within a source directory, because that will
  2000. # break other packages using the cache if that directory is
  2001. # removed, or if the value is a relative name.
  2002. test -d ./--version && rmdir ./--version
  2003. MKDIR_P="$ac_install_sh -d"
  2004. fi
  2005. fi
  2006. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2007. echo "${ECHO_T}$MKDIR_P" >&6; }
  2008. mkdir_p="$MKDIR_P"
  2009. case $mkdir_p in
  2010. [\\/$]* | ?:[\\/]*) ;;
  2011. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2012. esac
  2013. for ac_prog in gawk mawk nawk awk
  2014. do
  2015. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2016. set dummy $ac_prog; ac_word=$2
  2017. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2018. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2019. if test "${ac_cv_prog_AWK+set}" = set; then
  2020. echo $ECHO_N "(cached) $ECHO_C" >&6
  2021. else
  2022. if test -n "$AWK"; then
  2023. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2024. else
  2025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2026. for as_dir in $PATH
  2027. do
  2028. IFS=$as_save_IFS
  2029. test -z "$as_dir" && as_dir=.
  2030. for ac_exec_ext in '' $ac_executable_extensions; do
  2031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2032. ac_cv_prog_AWK="$ac_prog"
  2033. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2034. break 2
  2035. fi
  2036. done
  2037. done
  2038. IFS=$as_save_IFS
  2039. fi
  2040. fi
  2041. AWK=$ac_cv_prog_AWK
  2042. if test -n "$AWK"; then
  2043. { echo "$as_me:$LINENO: result: $AWK" >&5
  2044. echo "${ECHO_T}$AWK" >&6; }
  2045. else
  2046. { echo "$as_me:$LINENO: result: no" >&5
  2047. echo "${ECHO_T}no" >&6; }
  2048. fi
  2049. test -n "$AWK" && break
  2050. done
  2051. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2052. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2053. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2054. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2055. echo $ECHO_N "(cached) $ECHO_C" >&6
  2056. else
  2057. cat >conftest.make <<\_ACEOF
  2058. SHELL = /bin/sh
  2059. all:
  2060. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2061. _ACEOF
  2062. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2063. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2064. *@@@%%%=?*=@@@%%%*)
  2065. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2066. *)
  2067. eval ac_cv_prog_make_${ac_make}_set=no;;
  2068. esac
  2069. rm -f conftest.make
  2070. fi
  2071. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2072. { echo "$as_me:$LINENO: result: yes" >&5
  2073. echo "${ECHO_T}yes" >&6; }
  2074. SET_MAKE=
  2075. else
  2076. { echo "$as_me:$LINENO: result: no" >&5
  2077. echo "${ECHO_T}no" >&6; }
  2078. SET_MAKE="MAKE=${MAKE-make}"
  2079. fi
  2080. rm -rf .tst 2>/dev/null
  2081. mkdir .tst 2>/dev/null
  2082. if test -d .tst; then
  2083. am__leading_dot=.
  2084. else
  2085. am__leading_dot=_
  2086. fi
  2087. rmdir .tst 2>/dev/null
  2088. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2089. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2090. # is not polluted with repeated "-I."
  2091. am__isrc=' -I$(srcdir)'
  2092. # test to see if srcdir already configured
  2093. if test -f $srcdir/config.status; then
  2094. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2095. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2096. { (exit 1); exit 1; }; }
  2097. fi
  2098. fi
  2099. # test whether we have cygpath
  2100. if test -z "$CYGPATH_W"; then
  2101. if (cygpath --version) >/dev/null 2>/dev/null; then
  2102. CYGPATH_W='cygpath -w'
  2103. else
  2104. CYGPATH_W=echo
  2105. fi
  2106. fi
  2107. # Define the identity of the package.
  2108. PACKAGE='libmpeg2'
  2109. VERSION='0.5.1'
  2110. cat >>confdefs.h <<_ACEOF
  2111. #define PACKAGE "$PACKAGE"
  2112. _ACEOF
  2113. cat >>confdefs.h <<_ACEOF
  2114. #define VERSION "$VERSION"
  2115. _ACEOF
  2116. # Some tools Automake needs.
  2117. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2118. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2119. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2120. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2121. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2122. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2123. # Installed binaries are usually stripped using `strip' when the user
  2124. # run `make install-strip'. However `strip' might not be the right
  2125. # tool to use in cross-compilation environments, therefore Automake
  2126. # will honor the `STRIP' environment variable to overrule this program.
  2127. if test "$cross_compiling" != no; then
  2128. if test -n "$ac_tool_prefix"; then
  2129. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2130. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2131. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2132. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2133. if test "${ac_cv_prog_STRIP+set}" = set; then
  2134. echo $ECHO_N "(cached) $ECHO_C" >&6
  2135. else
  2136. if test -n "$STRIP"; then
  2137. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2138. else
  2139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2140. for as_dir in $PATH
  2141. do
  2142. IFS=$as_save_IFS
  2143. test -z "$as_dir" && as_dir=.
  2144. for ac_exec_ext in '' $ac_executable_extensions; do
  2145. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2146. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2147. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2148. break 2
  2149. fi
  2150. done
  2151. done
  2152. IFS=$as_save_IFS
  2153. fi
  2154. fi
  2155. STRIP=$ac_cv_prog_STRIP
  2156. if test -n "$STRIP"; then
  2157. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2158. echo "${ECHO_T}$STRIP" >&6; }
  2159. else
  2160. { echo "$as_me:$LINENO: result: no" >&5
  2161. echo "${ECHO_T}no" >&6; }
  2162. fi
  2163. fi
  2164. if test -z "$ac_cv_prog_STRIP"; then
  2165. ac_ct_STRIP=$STRIP
  2166. # Extract the first word of "strip", so it can be a program name with args.
  2167. set dummy strip; ac_word=$2
  2168. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2169. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2170. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2171. echo $ECHO_N "(cached) $ECHO_C" >&6
  2172. else
  2173. if test -n "$ac_ct_STRIP"; then
  2174. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2175. else
  2176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2177. for as_dir in $PATH
  2178. do
  2179. IFS=$as_save_IFS
  2180. test -z "$as_dir" && as_dir=.
  2181. for ac_exec_ext in '' $ac_executable_extensions; do
  2182. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2183. ac_cv_prog_ac_ct_STRIP="strip"
  2184. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2185. break 2
  2186. fi
  2187. done
  2188. done
  2189. IFS=$as_save_IFS
  2190. fi
  2191. fi
  2192. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2193. if test -n "$ac_ct_STRIP"; then
  2194. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2195. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2196. else
  2197. { echo "$as_me:$LINENO: result: no" >&5
  2198. echo "${ECHO_T}no" >&6; }
  2199. fi
  2200. if test "x$ac_ct_STRIP" = x; then
  2201. STRIP=":"
  2202. else
  2203. case $cross_compiling:$ac_tool_warned in
  2204. yes:)
  2205. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2206. whose name does not start with the host triplet. If you think this
  2207. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2208. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2209. whose name does not start with the host triplet. If you think this
  2210. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2211. ac_tool_warned=yes ;;
  2212. esac
  2213. STRIP=$ac_ct_STRIP
  2214. fi
  2215. else
  2216. STRIP="$ac_cv_prog_STRIP"
  2217. fi
  2218. fi
  2219. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2220. # We need awk for the "check" target. The system "awk" is bad on
  2221. # some platforms.
  2222. # Always define AMTAR for backward compatibility.
  2223. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2224. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2225. { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2226. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2227. # Check whether --enable-maintainer-mode was given.
  2228. if test "${enable_maintainer_mode+set}" = set; then
  2229. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2230. else
  2231. USE_MAINTAINER_MODE=no
  2232. fi
  2233. { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2234. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2235. if test $USE_MAINTAINER_MODE = yes; then
  2236. MAINTAINER_MODE_TRUE=
  2237. MAINTAINER_MODE_FALSE='#'
  2238. else
  2239. MAINTAINER_MODE_TRUE='#'
  2240. MAINTAINER_MODE_FALSE=
  2241. fi
  2242. MAINT=$MAINTAINER_MODE_TRUE
  2243. ac_ext=c
  2244. ac_cpp='$CPP $CPPFLAGS'
  2245. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2246. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2247. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2248. if test -n "$ac_tool_prefix"; then
  2249. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2250. set dummy ${ac_tool_prefix}gcc; 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_CC+set}" = set; then
  2254. echo $ECHO_N "(cached) $ECHO_C" >&6
  2255. else
  2256. if test -n "$CC"; then
  2257. ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}gcc"
  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. CC=$ac_cv_prog_CC
  2276. if test -n "$CC"; then
  2277. { echo "$as_me:$LINENO: result: $CC" >&5
  2278. echo "${ECHO_T}$CC" >&6; }
  2279. else
  2280. { echo "$as_me:$LINENO: result: no" >&5
  2281. echo "${ECHO_T}no" >&6; }
  2282. fi
  2283. fi
  2284. if test -z "$ac_cv_prog_CC"; then
  2285. ac_ct_CC=$CC
  2286. # Extract the first word of "gcc", so it can be a program name with args.
  2287. set dummy gcc; ac_word=$2
  2288. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2289. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2290. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2291. echo $ECHO_N "(cached) $ECHO_C" >&6
  2292. else
  2293. if test -n "$ac_ct_CC"; then
  2294. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2295. else
  2296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2297. for as_dir in $PATH
  2298. do
  2299. IFS=$as_save_IFS
  2300. test -z "$as_dir" && as_dir=.
  2301. for ac_exec_ext in '' $ac_executable_extensions; do
  2302. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2303. ac_cv_prog_ac_ct_CC="gcc"
  2304. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2305. break 2
  2306. fi
  2307. done
  2308. done
  2309. IFS=$as_save_IFS
  2310. fi
  2311. fi
  2312. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2313. if test -n "$ac_ct_CC"; then
  2314. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2315. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2316. else
  2317. { echo "$as_me:$LINENO: result: no" >&5
  2318. echo "${ECHO_T}no" >&6; }
  2319. fi
  2320. if test "x$ac_ct_CC" = x; then
  2321. CC=""
  2322. else
  2323. case $cross_compiling:$ac_tool_warned in
  2324. yes:)
  2325. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2326. whose name does not start with the host triplet. If you think this
  2327. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2328. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2329. whose name does not start with the host triplet. If you think this
  2330. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2331. ac_tool_warned=yes ;;
  2332. esac
  2333. CC=$ac_ct_CC
  2334. fi
  2335. else
  2336. CC="$ac_cv_prog_CC"
  2337. fi
  2338. if test -z "$CC"; then
  2339. if test -n "$ac_tool_prefix"; then
  2340. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2341. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2342. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2343. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2344. if test "${ac_cv_prog_CC+set}" = set; then
  2345. echo $ECHO_N "(cached) $ECHO_C" >&6
  2346. else
  2347. if test -n "$CC"; then
  2348. ac_cv_prog_CC="$CC" # Let the user override the test.
  2349. else
  2350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2351. for as_dir in $PATH
  2352. do
  2353. IFS=$as_save_IFS
  2354. test -z "$as_dir" && as_dir=.
  2355. for ac_exec_ext in '' $ac_executable_extensions; do
  2356. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2357. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2358. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2359. break 2
  2360. fi
  2361. done
  2362. done
  2363. IFS=$as_save_IFS
  2364. fi
  2365. fi
  2366. CC=$ac_cv_prog_CC
  2367. if test -n "$CC"; then
  2368. { echo "$as_me:$LINENO: result: $CC" >&5
  2369. echo "${ECHO_T}$CC" >&6; }
  2370. else
  2371. { echo "$as_me:$LINENO: result: no" >&5
  2372. echo "${ECHO_T}no" >&6; }
  2373. fi
  2374. fi
  2375. fi
  2376. if test -z "$CC"; then
  2377. # Extract the first word of "cc", so it can be a program name with args.
  2378. set dummy cc; ac_word=$2
  2379. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2380. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2381. if test "${ac_cv_prog_CC+set}" = set; then
  2382. echo $ECHO_N "(cached) $ECHO_C" >&6
  2383. else
  2384. if test -n "$CC"; then
  2385. ac_cv_prog_CC="$CC" # Let the user override the test.
  2386. else
  2387. ac_prog_rejected=no
  2388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2389. for as_dir in $PATH
  2390. do
  2391. IFS=$as_save_IFS
  2392. test -z "$as_dir" && as_dir=.
  2393. for ac_exec_ext in '' $ac_executable_extensions; do
  2394. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2395. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2396. ac_prog_rejected=yes
  2397. continue
  2398. fi
  2399. ac_cv_prog_CC="cc"
  2400. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2401. break 2
  2402. fi
  2403. done
  2404. done
  2405. IFS=$as_save_IFS
  2406. if test $ac_prog_rejected = yes; then
  2407. # We found a bogon in the path, so make sure we never use it.
  2408. set dummy $ac_cv_prog_CC
  2409. shift
  2410. if test $# != 0; then
  2411. # We chose a different compiler from the bogus one.
  2412. # However, it has the same basename, so the bogon will be chosen
  2413. # first if we set CC to just the basename; use the full file name.
  2414. shift
  2415. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2416. fi
  2417. fi
  2418. fi
  2419. fi
  2420. CC=$ac_cv_prog_CC
  2421. if test -n "$CC"; then
  2422. { echo "$as_me:$LINENO: result: $CC" >&5
  2423. echo "${ECHO_T}$CC" >&6; }
  2424. else
  2425. { echo "$as_me:$LINENO: result: no" >&5
  2426. echo "${ECHO_T}no" >&6; }
  2427. fi
  2428. fi
  2429. if test -z "$CC"; then
  2430. if test -n "$ac_tool_prefix"; then
  2431. for ac_prog in cl.exe
  2432. do
  2433. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2434. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2435. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2436. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2437. if test "${ac_cv_prog_CC+set}" = set; then
  2438. echo $ECHO_N "(cached) $ECHO_C" >&6
  2439. else
  2440. if test -n "$CC"; then
  2441. ac_cv_prog_CC="$CC" # Let the user override the test.
  2442. else
  2443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2444. for as_dir in $PATH
  2445. do
  2446. IFS=$as_save_IFS
  2447. test -z "$as_dir" && as_dir=.
  2448. for ac_exec_ext in '' $ac_executable_extensions; do
  2449. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2450. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2451. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2452. break 2
  2453. fi
  2454. done
  2455. done
  2456. IFS=$as_save_IFS
  2457. fi
  2458. fi
  2459. CC=$ac_cv_prog_CC
  2460. if test -n "$CC"; then
  2461. { echo "$as_me:$LINENO: result: $CC" >&5
  2462. echo "${ECHO_T}$CC" >&6; }
  2463. else
  2464. { echo "$as_me:$LINENO: result: no" >&5
  2465. echo "${ECHO_T}no" >&6; }
  2466. fi
  2467. test -n "$CC" && break
  2468. done
  2469. fi
  2470. if test -z "$CC"; then
  2471. ac_ct_CC=$CC
  2472. for ac_prog in cl.exe
  2473. do
  2474. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2475. set dummy $ac_prog; ac_word=$2
  2476. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2477. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2478. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2479. echo $ECHO_N "(cached) $ECHO_C" >&6
  2480. else
  2481. if test -n "$ac_ct_CC"; then
  2482. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2483. else
  2484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2485. for as_dir in $PATH
  2486. do
  2487. IFS=$as_save_IFS
  2488. test -z "$as_dir" && as_dir=.
  2489. for ac_exec_ext in '' $ac_executable_extensions; do
  2490. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2491. ac_cv_prog_ac_ct_CC="$ac_prog"
  2492. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2493. break 2
  2494. fi
  2495. done
  2496. done
  2497. IFS=$as_save_IFS
  2498. fi
  2499. fi
  2500. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2501. if test -n "$ac_ct_CC"; then
  2502. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2503. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2504. else
  2505. { echo "$as_me:$LINENO: result: no" >&5
  2506. echo "${ECHO_T}no" >&6; }
  2507. fi
  2508. test -n "$ac_ct_CC" && break
  2509. done
  2510. if test "x$ac_ct_CC" = x; then
  2511. CC=""
  2512. else
  2513. case $cross_compiling:$ac_tool_warned in
  2514. yes:)
  2515. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2516. whose name does not start with the host triplet. If you think this
  2517. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2518. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2519. whose name does not start with the host triplet. If you think this
  2520. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2521. ac_tool_warned=yes ;;
  2522. esac
  2523. CC=$ac_ct_CC
  2524. fi
  2525. fi
  2526. fi
  2527. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2528. See \`config.log' for more details." >&5
  2529. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2530. See \`config.log' for more details." >&2;}
  2531. { (exit 1); exit 1; }; }
  2532. # Provide some information about the compiler.
  2533. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2534. ac_compiler=`set X $ac_compile; echo $2`
  2535. { (ac_try="$ac_compiler --version >&5"
  2536. case "(($ac_try" in
  2537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2538. *) ac_try_echo=$ac_try;;
  2539. esac
  2540. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2541. (eval "$ac_compiler --version >&5") 2>&5
  2542. ac_status=$?
  2543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2544. (exit $ac_status); }
  2545. { (ac_try="$ac_compiler -v >&5"
  2546. case "(($ac_try" in
  2547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2548. *) ac_try_echo=$ac_try;;
  2549. esac
  2550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2551. (eval "$ac_compiler -v >&5") 2>&5
  2552. ac_status=$?
  2553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2554. (exit $ac_status); }
  2555. { (ac_try="$ac_compiler -V >&5"
  2556. case "(($ac_try" in
  2557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2558. *) ac_try_echo=$ac_try;;
  2559. esac
  2560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2561. (eval "$ac_compiler -V >&5") 2>&5
  2562. ac_status=$?
  2563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2564. (exit $ac_status); }
  2565. cat >conftest.$ac_ext <<_ACEOF
  2566. /* confdefs.h. */
  2567. _ACEOF
  2568. cat confdefs.h >>conftest.$ac_ext
  2569. cat >>conftest.$ac_ext <<_ACEOF
  2570. /* end confdefs.h. */
  2571. int
  2572. main ()
  2573. {
  2574. ;
  2575. return 0;
  2576. }
  2577. _ACEOF
  2578. ac_clean_files_save=$ac_clean_files
  2579. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2580. # Try to create an executable without -o first, disregard a.out.
  2581. # It will help us diagnose broken compilers, and finding out an intuition
  2582. # of exeext.
  2583. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2584. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2585. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2586. #
  2587. # List of possible output files, starting from the most likely.
  2588. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2589. # only as a last resort. b.out is created by i960 compilers.
  2590. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2591. #
  2592. # The IRIX 6 linker writes into existing files which may not be
  2593. # executable, retaining their permissions. Remove them first so a
  2594. # subsequent execution test works.
  2595. ac_rmfiles=
  2596. for ac_file in $ac_files
  2597. do
  2598. case $ac_file in
  2599. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2600. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2601. esac
  2602. done
  2603. rm -f $ac_rmfiles
  2604. if { (ac_try="$ac_link_default"
  2605. case "(($ac_try" in
  2606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2607. *) ac_try_echo=$ac_try;;
  2608. esac
  2609. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2610. (eval "$ac_link_default") 2>&5
  2611. ac_status=$?
  2612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2613. (exit $ac_status); }; then
  2614. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2615. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2616. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2617. # so that the user can short-circuit this test for compilers unknown to
  2618. # Autoconf.
  2619. for ac_file in $ac_files ''
  2620. do
  2621. test -f "$ac_file" || continue
  2622. case $ac_file in
  2623. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2624. ;;
  2625. [ab].out )
  2626. # We found the default executable, but exeext='' is most
  2627. # certainly right.
  2628. break;;
  2629. *.* )
  2630. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2631. then :; else
  2632. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2633. fi
  2634. # We set ac_cv_exeext here because the later test for it is not
  2635. # safe: cross compilers may not add the suffix if given an `-o'
  2636. # argument, so we may need to know it at that point already.
  2637. # Even if this section looks crufty: it has the advantage of
  2638. # actually working.
  2639. break;;
  2640. * )
  2641. break;;
  2642. esac
  2643. done
  2644. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2645. else
  2646. ac_file=''
  2647. fi
  2648. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2649. echo "${ECHO_T}$ac_file" >&6; }
  2650. if test -z "$ac_file"; then
  2651. echo "$as_me: failed program was:" >&5
  2652. sed 's/^/| /' conftest.$ac_ext >&5
  2653. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2654. See \`config.log' for more details." >&5
  2655. echo "$as_me: error: C compiler cannot create executables
  2656. See \`config.log' for more details." >&2;}
  2657. { (exit 77); exit 77; }; }
  2658. fi
  2659. ac_exeext=$ac_cv_exeext
  2660. # Check that the compiler produces executables we can run. If not, either
  2661. # the compiler is broken, or we cross compile.
  2662. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2663. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2664. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2665. # If not cross compiling, check that we can run a simple program.
  2666. if test "$cross_compiling" != yes; then
  2667. if { ac_try='./$ac_file'
  2668. { (case "(($ac_try" in
  2669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2670. *) ac_try_echo=$ac_try;;
  2671. esac
  2672. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2673. (eval "$ac_try") 2>&5
  2674. ac_status=$?
  2675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2676. (exit $ac_status); }; }; then
  2677. cross_compiling=no
  2678. else
  2679. if test "$cross_compiling" = maybe; then
  2680. cross_compiling=yes
  2681. else
  2682. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2683. If you meant to cross compile, use \`--host'.
  2684. See \`config.log' for more details." >&5
  2685. echo "$as_me: error: cannot run C compiled programs.
  2686. If you meant to cross compile, use \`--host'.
  2687. See \`config.log' for more details." >&2;}
  2688. { (exit 1); exit 1; }; }
  2689. fi
  2690. fi
  2691. fi
  2692. { echo "$as_me:$LINENO: result: yes" >&5
  2693. echo "${ECHO_T}yes" >&6; }
  2694. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2695. ac_clean_files=$ac_clean_files_save
  2696. # Check that the compiler produces executables we can run. If not, either
  2697. # the compiler is broken, or we cross compile.
  2698. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2699. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2700. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2701. echo "${ECHO_T}$cross_compiling" >&6; }
  2702. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2703. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2704. if { (ac_try="$ac_link"
  2705. case "(($ac_try" in
  2706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2707. *) ac_try_echo=$ac_try;;
  2708. esac
  2709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2710. (eval "$ac_link") 2>&5
  2711. ac_status=$?
  2712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2713. (exit $ac_status); }; then
  2714. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2715. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2716. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2717. # `rm'.
  2718. for ac_file in conftest.exe conftest conftest.*; do
  2719. test -f "$ac_file" || continue
  2720. case $ac_file in
  2721. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2722. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2723. break;;
  2724. * ) break;;
  2725. esac
  2726. done
  2727. else
  2728. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2729. See \`config.log' for more details." >&5
  2730. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2731. See \`config.log' for more details." >&2;}
  2732. { (exit 1); exit 1; }; }
  2733. fi
  2734. rm -f conftest$ac_cv_exeext
  2735. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2736. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2737. rm -f conftest.$ac_ext
  2738. EXEEXT=$ac_cv_exeext
  2739. ac_exeext=$EXEEXT
  2740. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2741. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2742. if test "${ac_cv_objext+set}" = set; then
  2743. echo $ECHO_N "(cached) $ECHO_C" >&6
  2744. else
  2745. cat >conftest.$ac_ext <<_ACEOF
  2746. /* confdefs.h. */
  2747. _ACEOF
  2748. cat confdefs.h >>conftest.$ac_ext
  2749. cat >>conftest.$ac_ext <<_ACEOF
  2750. /* end confdefs.h. */
  2751. int
  2752. main ()
  2753. {
  2754. ;
  2755. return 0;
  2756. }
  2757. _ACEOF
  2758. rm -f conftest.o conftest.obj
  2759. if { (ac_try="$ac_compile"
  2760. case "(($ac_try" in
  2761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2762. *) ac_try_echo=$ac_try;;
  2763. esac
  2764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2765. (eval "$ac_compile") 2>&5
  2766. ac_status=$?
  2767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2768. (exit $ac_status); }; then
  2769. for ac_file in conftest.o conftest.obj conftest.*; do
  2770. test -f "$ac_file" || continue;
  2771. case $ac_file in
  2772. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2773. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2774. break;;
  2775. esac
  2776. done
  2777. else
  2778. echo "$as_me: failed program was:" >&5
  2779. sed 's/^/| /' conftest.$ac_ext >&5
  2780. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2781. See \`config.log' for more details." >&5
  2782. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2783. See \`config.log' for more details." >&2;}
  2784. { (exit 1); exit 1; }; }
  2785. fi
  2786. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2787. fi
  2788. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2789. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2790. OBJEXT=$ac_cv_objext
  2791. ac_objext=$OBJEXT
  2792. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2793. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2794. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2795. echo $ECHO_N "(cached) $ECHO_C" >&6
  2796. else
  2797. cat >conftest.$ac_ext <<_ACEOF
  2798. /* confdefs.h. */
  2799. _ACEOF
  2800. cat confdefs.h >>conftest.$ac_ext
  2801. cat >>conftest.$ac_ext <<_ACEOF
  2802. /* end confdefs.h. */
  2803. int
  2804. main ()
  2805. {
  2806. #ifndef __GNUC__
  2807. choke me
  2808. #endif
  2809. ;
  2810. return 0;
  2811. }
  2812. _ACEOF
  2813. rm -f conftest.$ac_objext
  2814. if { (ac_try="$ac_compile"
  2815. case "(($ac_try" in
  2816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2817. *) ac_try_echo=$ac_try;;
  2818. esac
  2819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2820. (eval "$ac_compile") 2>conftest.er1
  2821. ac_status=$?
  2822. grep -v '^ *+' conftest.er1 >conftest.err
  2823. rm -f conftest.er1
  2824. cat conftest.err >&5
  2825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2826. (exit $ac_status); } && {
  2827. test -z "$ac_c_werror_flag" ||
  2828. test ! -s conftest.err
  2829. } && test -s conftest.$ac_objext; then
  2830. ac_compiler_gnu=yes
  2831. else
  2832. echo "$as_me: failed program was:" >&5
  2833. sed 's/^/| /' conftest.$ac_ext >&5
  2834. ac_compiler_gnu=no
  2835. fi
  2836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2837. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2838. fi
  2839. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2840. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2841. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2842. ac_test_CFLAGS=${CFLAGS+set}
  2843. ac_save_CFLAGS=$CFLAGS
  2844. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2845. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2846. if test "${ac_cv_prog_cc_g+set}" = set; then
  2847. echo $ECHO_N "(cached) $ECHO_C" >&6
  2848. else
  2849. ac_save_c_werror_flag=$ac_c_werror_flag
  2850. ac_c_werror_flag=yes
  2851. ac_cv_prog_cc_g=no
  2852. CFLAGS="-g"
  2853. cat >conftest.$ac_ext <<_ACEOF
  2854. /* confdefs.h. */
  2855. _ACEOF
  2856. cat confdefs.h >>conftest.$ac_ext
  2857. cat >>conftest.$ac_ext <<_ACEOF
  2858. /* end confdefs.h. */
  2859. int
  2860. main ()
  2861. {
  2862. ;
  2863. return 0;
  2864. }
  2865. _ACEOF
  2866. rm -f conftest.$ac_objext
  2867. if { (ac_try="$ac_compile"
  2868. case "(($ac_try" in
  2869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2870. *) ac_try_echo=$ac_try;;
  2871. esac
  2872. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2873. (eval "$ac_compile") 2>conftest.er1
  2874. ac_status=$?
  2875. grep -v '^ *+' conftest.er1 >conftest.err
  2876. rm -f conftest.er1
  2877. cat conftest.err >&5
  2878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2879. (exit $ac_status); } && {
  2880. test -z "$ac_c_werror_flag" ||
  2881. test ! -s conftest.err
  2882. } && test -s conftest.$ac_objext; then
  2883. ac_cv_prog_cc_g=yes
  2884. else
  2885. echo "$as_me: failed program was:" >&5
  2886. sed 's/^/| /' conftest.$ac_ext >&5
  2887. CFLAGS=""
  2888. cat >conftest.$ac_ext <<_ACEOF
  2889. /* confdefs.h. */
  2890. _ACEOF
  2891. cat confdefs.h >>conftest.$ac_ext
  2892. cat >>conftest.$ac_ext <<_ACEOF
  2893. /* end confdefs.h. */
  2894. int
  2895. main ()
  2896. {
  2897. ;
  2898. return 0;
  2899. }
  2900. _ACEOF
  2901. rm -f conftest.$ac_objext
  2902. if { (ac_try="$ac_compile"
  2903. case "(($ac_try" in
  2904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2905. *) ac_try_echo=$ac_try;;
  2906. esac
  2907. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2908. (eval "$ac_compile") 2>conftest.er1
  2909. ac_status=$?
  2910. grep -v '^ *+' conftest.er1 >conftest.err
  2911. rm -f conftest.er1
  2912. cat conftest.err >&5
  2913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2914. (exit $ac_status); } && {
  2915. test -z "$ac_c_werror_flag" ||
  2916. test ! -s conftest.err
  2917. } && test -s conftest.$ac_objext; then
  2918. :
  2919. else
  2920. echo "$as_me: failed program was:" >&5
  2921. sed 's/^/| /' conftest.$ac_ext >&5
  2922. ac_c_werror_flag=$ac_save_c_werror_flag
  2923. CFLAGS="-g"
  2924. cat >conftest.$ac_ext <<_ACEOF
  2925. /* confdefs.h. */
  2926. _ACEOF
  2927. cat confdefs.h >>conftest.$ac_ext
  2928. cat >>conftest.$ac_ext <<_ACEOF
  2929. /* end confdefs.h. */
  2930. int
  2931. main ()
  2932. {
  2933. ;
  2934. return 0;
  2935. }
  2936. _ACEOF
  2937. rm -f conftest.$ac_objext
  2938. if { (ac_try="$ac_compile"
  2939. case "(($ac_try" in
  2940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2941. *) ac_try_echo=$ac_try;;
  2942. esac
  2943. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2944. (eval "$ac_compile") 2>conftest.er1
  2945. ac_status=$?
  2946. grep -v '^ *+' conftest.er1 >conftest.err
  2947. rm -f conftest.er1
  2948. cat conftest.err >&5
  2949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2950. (exit $ac_status); } && {
  2951. test -z "$ac_c_werror_flag" ||
  2952. test ! -s conftest.err
  2953. } && test -s conftest.$ac_objext; then
  2954. ac_cv_prog_cc_g=yes
  2955. else
  2956. echo "$as_me: failed program was:" >&5
  2957. sed 's/^/| /' conftest.$ac_ext >&5
  2958. fi
  2959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2960. fi
  2961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2962. fi
  2963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2964. ac_c_werror_flag=$ac_save_c_werror_flag
  2965. fi
  2966. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2967. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2968. if test "$ac_test_CFLAGS" = set; then
  2969. CFLAGS=$ac_save_CFLAGS
  2970. elif test $ac_cv_prog_cc_g = yes; then
  2971. if test "$GCC" = yes; then
  2972. CFLAGS="-g -O2"
  2973. else
  2974. CFLAGS="-g"
  2975. fi
  2976. else
  2977. if test "$GCC" = yes; then
  2978. CFLAGS="-O2"
  2979. else
  2980. CFLAGS=
  2981. fi
  2982. fi
  2983. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2984. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2985. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2986. echo $ECHO_N "(cached) $ECHO_C" >&6
  2987. else
  2988. ac_cv_prog_cc_c89=no
  2989. ac_save_CC=$CC
  2990. cat >conftest.$ac_ext <<_ACEOF
  2991. /* confdefs.h. */
  2992. _ACEOF
  2993. cat confdefs.h >>conftest.$ac_ext
  2994. cat >>conftest.$ac_ext <<_ACEOF
  2995. /* end confdefs.h. */
  2996. #include <stdarg.h>
  2997. #include <stdio.h>
  2998. #include <sys/types.h>
  2999. #include <sys/stat.h>
  3000. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3001. struct buf { int x; };
  3002. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3003. static char *e (p, i)
  3004. char **p;
  3005. int i;
  3006. {
  3007. return p[i];
  3008. }
  3009. static char *f (char * (*g) (char **, int), char **p, ...)
  3010. {
  3011. char *s;
  3012. va_list v;
  3013. va_start (v,p);
  3014. s = g (p, va_arg (v,int));
  3015. va_end (v);
  3016. return s;
  3017. }
  3018. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3019. function prototypes and stuff, but not '\xHH' hex character constants.
  3020. These don't provoke an error unfortunately, instead are silently treated
  3021. as 'x'. The following induces an error, until -std is added to get
  3022. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3023. array size at least. It's necessary to write '\x00'==0 to get something
  3024. that's true only with -std. */
  3025. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3026. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3027. inside strings and character constants. */
  3028. #define FOO(x) 'x'
  3029. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3030. int test (int i, double x);
  3031. struct s1 {int (*f) (int a);};
  3032. struct s2 {int (*f) (double a);};
  3033. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3034. int argc;
  3035. char **argv;
  3036. int
  3037. main ()
  3038. {
  3039. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3040. ;
  3041. return 0;
  3042. }
  3043. _ACEOF
  3044. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3045. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3046. do
  3047. CC="$ac_save_CC $ac_arg"
  3048. rm -f conftest.$ac_objext
  3049. if { (ac_try="$ac_compile"
  3050. case "(($ac_try" in
  3051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3052. *) ac_try_echo=$ac_try;;
  3053. esac
  3054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3055. (eval "$ac_compile") 2>conftest.er1
  3056. ac_status=$?
  3057. grep -v '^ *+' conftest.er1 >conftest.err
  3058. rm -f conftest.er1
  3059. cat conftest.err >&5
  3060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3061. (exit $ac_status); } && {
  3062. test -z "$ac_c_werror_flag" ||
  3063. test ! -s conftest.err
  3064. } && test -s conftest.$ac_objext; then
  3065. ac_cv_prog_cc_c89=$ac_arg
  3066. else
  3067. echo "$as_me: failed program was:" >&5
  3068. sed 's/^/| /' conftest.$ac_ext >&5
  3069. fi
  3070. rm -f core conftest.err conftest.$ac_objext
  3071. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3072. done
  3073. rm -f conftest.$ac_ext
  3074. CC=$ac_save_CC
  3075. fi
  3076. # AC_CACHE_VAL
  3077. case "x$ac_cv_prog_cc_c89" in
  3078. x)
  3079. { echo "$as_me:$LINENO: result: none needed" >&5
  3080. echo "${ECHO_T}none needed" >&6; } ;;
  3081. xno)
  3082. { echo "$as_me:$LINENO: result: unsupported" >&5
  3083. echo "${ECHO_T}unsupported" >&6; } ;;
  3084. *)
  3085. CC="$CC $ac_cv_prog_cc_c89"
  3086. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3087. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3088. esac
  3089. ac_ext=c
  3090. ac_cpp='$CPP $CPPFLAGS'
  3091. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3092. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3093. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3094. DEPDIR="${am__leading_dot}deps"
  3095. ac_config_commands="$ac_config_commands depfiles"
  3096. am_make=${MAKE-make}
  3097. cat > confinc << 'END'
  3098. am__doit:
  3099. @echo done
  3100. .PHONY: am__doit
  3101. END
  3102. # If we don't find an include directive, just comment out the code.
  3103. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3104. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3105. am__include="#"
  3106. am__quote=
  3107. _am_result=none
  3108. # First try GNU make style include.
  3109. echo "include confinc" > confmf
  3110. # We grep out `Entering directory' and `Leaving directory'
  3111. # messages which can occur if `w' ends up in MAKEFLAGS.
  3112. # In particular we don't look at `^make:' because GNU make might
  3113. # be invoked under some other name (usually "gmake"), in which
  3114. # case it prints its new name instead of `make'.
  3115. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3116. am__include=include
  3117. am__quote=
  3118. _am_result=GNU
  3119. fi
  3120. # Now try BSD make style include.
  3121. if test "$am__include" = "#"; then
  3122. echo '.include "confinc"' > confmf
  3123. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3124. am__include=.include
  3125. am__quote="\""
  3126. _am_result=BSD
  3127. fi
  3128. fi
  3129. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3130. echo "${ECHO_T}$_am_result" >&6; }
  3131. rm -f confinc confmf
  3132. # Check whether --enable-dependency-tracking was given.
  3133. if test "${enable_dependency_tracking+set}" = set; then
  3134. enableval=$enable_dependency_tracking;
  3135. fi
  3136. if test "x$enable_dependency_tracking" != xno; then
  3137. am_depcomp="$ac_aux_dir/depcomp"
  3138. AMDEPBACKSLASH='\'
  3139. fi
  3140. if test "x$enable_dependency_tracking" != xno; then
  3141. AMDEP_TRUE=
  3142. AMDEP_FALSE='#'
  3143. else
  3144. AMDEP_TRUE='#'
  3145. AMDEP_FALSE=
  3146. fi
  3147. depcc="$CC" am_compiler_list=
  3148. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3149. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3150. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3151. echo $ECHO_N "(cached) $ECHO_C" >&6
  3152. else
  3153. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3154. # We make a subdir and do the tests there. Otherwise we can end up
  3155. # making bogus files that we don't know about and never remove. For
  3156. # instance it was reported that on HP-UX the gcc test will end up
  3157. # making a dummy file named `D' -- because `-MD' means `put the output
  3158. # in D'.
  3159. mkdir conftest.dir
  3160. # Copy depcomp to subdir because otherwise we won't find it if we're
  3161. # using a relative directory.
  3162. cp "$am_depcomp" conftest.dir
  3163. cd conftest.dir
  3164. # We will build objects and dependencies in a subdirectory because
  3165. # it helps to detect inapplicable dependency modes. For instance
  3166. # both Tru64's cc and ICC support -MD to output dependencies as a
  3167. # side effect of compilation, but ICC will put the dependencies in
  3168. # the current directory while Tru64 will put them in the object
  3169. # directory.
  3170. mkdir sub
  3171. am_cv_CC_dependencies_compiler_type=none
  3172. if test "$am_compiler_list" = ""; then
  3173. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3174. fi
  3175. for depmode in $am_compiler_list; do
  3176. # Setup a source with many dependencies, because some compilers
  3177. # like to wrap large dependency lists on column 80 (with \), and
  3178. # we should not choose a depcomp mode which is confused by this.
  3179. #
  3180. # We need to recreate these files for each test, as the compiler may
  3181. # overwrite some of them when testing with obscure command lines.
  3182. # This happens at least with the AIX C compiler.
  3183. : > sub/conftest.c
  3184. for i in 1 2 3 4 5 6; do
  3185. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3186. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3187. # Solaris 8's {/usr,}/bin/sh.
  3188. touch sub/conftst$i.h
  3189. done
  3190. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3191. case $depmode in
  3192. nosideeffect)
  3193. # after this tag, mechanisms are not by side-effect, so they'll
  3194. # only be used when explicitly requested
  3195. if test "x$enable_dependency_tracking" = xyes; then
  3196. continue
  3197. else
  3198. break
  3199. fi
  3200. ;;
  3201. none) break ;;
  3202. esac
  3203. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3204. # mode. It turns out that the SunPro C++ compiler does not properly
  3205. # handle `-M -o', and we need to detect this.
  3206. if depmode=$depmode \
  3207. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3208. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3209. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3210. >/dev/null 2>conftest.err &&
  3211. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3212. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3213. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3214. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3215. # icc doesn't choke on unknown options, it will just issue warnings
  3216. # or remarks (even with -Werror). So we grep stderr for any message
  3217. # that says an option was ignored or not supported.
  3218. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3219. # icc: Command line warning: ignoring option '-M'; no argument required
  3220. # The diagnosis changed in icc 8.0:
  3221. # icc: Command line remark: option '-MP' not supported
  3222. if (grep 'ignoring option' conftest.err ||
  3223. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3224. am_cv_CC_dependencies_compiler_type=$depmode
  3225. break
  3226. fi
  3227. fi
  3228. done
  3229. cd ..
  3230. rm -rf conftest.dir
  3231. else
  3232. am_cv_CC_dependencies_compiler_type=none
  3233. fi
  3234. fi
  3235. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3236. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3237. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3238. if
  3239. test "x$enable_dependency_tracking" != xno \
  3240. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3241. am__fastdepCC_TRUE=
  3242. am__fastdepCC_FALSE='#'
  3243. else
  3244. am__fastdepCC_TRUE='#'
  3245. am__fastdepCC_FALSE=
  3246. fi
  3247. ac_ext=c
  3248. ac_cpp='$CPP $CPPFLAGS'
  3249. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3250. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3251. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3252. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3253. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  3254. # On Suns, sometimes $CPP names a directory.
  3255. if test -n "$CPP" && test -d "$CPP"; then
  3256. CPP=
  3257. fi
  3258. if test -z "$CPP"; then
  3259. if test "${ac_cv_prog_CPP+set}" = set; then
  3260. echo $ECHO_N "(cached) $ECHO_C" >&6
  3261. else
  3262. # Double quotes because CPP needs to be expanded
  3263. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3264. do
  3265. ac_preproc_ok=false
  3266. for ac_c_preproc_warn_flag in '' yes
  3267. do
  3268. # Use a header file that comes with gcc, so configuring glibc
  3269. # with a fresh cross-compiler works.
  3270. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3271. # <limits.h> exists even on freestanding compilers.
  3272. # On the NeXT, cc -E runs the code through the compiler's parser,
  3273. # not just through cpp. "Syntax error" is here to catch this case.
  3274. cat >conftest.$ac_ext <<_ACEOF
  3275. /* confdefs.h. */
  3276. _ACEOF
  3277. cat confdefs.h >>conftest.$ac_ext
  3278. cat >>conftest.$ac_ext <<_ACEOF
  3279. /* end confdefs.h. */
  3280. #ifdef __STDC__
  3281. # include <limits.h>
  3282. #else
  3283. # include <assert.h>
  3284. #endif
  3285. Syntax error
  3286. _ACEOF
  3287. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3288. case "(($ac_try" in
  3289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3290. *) ac_try_echo=$ac_try;;
  3291. esac
  3292. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3293. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3294. ac_status=$?
  3295. grep -v '^ *+' conftest.er1 >conftest.err
  3296. rm -f conftest.er1
  3297. cat conftest.err >&5
  3298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3299. (exit $ac_status); } >/dev/null && {
  3300. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3301. test ! -s conftest.err
  3302. }; then
  3303. :
  3304. else
  3305. echo "$as_me: failed program was:" >&5
  3306. sed 's/^/| /' conftest.$ac_ext >&5
  3307. # Broken: fails on valid input.
  3308. continue
  3309. fi
  3310. rm -f conftest.err conftest.$ac_ext
  3311. # OK, works on sane cases. Now check whether nonexistent headers
  3312. # can be detected and how.
  3313. cat >conftest.$ac_ext <<_ACEOF
  3314. /* confdefs.h. */
  3315. _ACEOF
  3316. cat confdefs.h >>conftest.$ac_ext
  3317. cat >>conftest.$ac_ext <<_ACEOF
  3318. /* end confdefs.h. */
  3319. #include <ac_nonexistent.h>
  3320. _ACEOF
  3321. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3322. case "(($ac_try" in
  3323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3324. *) ac_try_echo=$ac_try;;
  3325. esac
  3326. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3327. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3328. ac_status=$?
  3329. grep -v '^ *+' conftest.er1 >conftest.err
  3330. rm -f conftest.er1
  3331. cat conftest.err >&5
  3332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3333. (exit $ac_status); } >/dev/null && {
  3334. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3335. test ! -s conftest.err
  3336. }; then
  3337. # Broken: success on invalid input.
  3338. continue
  3339. else
  3340. echo "$as_me: failed program was:" >&5
  3341. sed 's/^/| /' conftest.$ac_ext >&5
  3342. # Passes both tests.
  3343. ac_preproc_ok=:
  3344. break
  3345. fi
  3346. rm -f conftest.err conftest.$ac_ext
  3347. done
  3348. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3349. rm -f conftest.err conftest.$ac_ext
  3350. if $ac_preproc_ok; then
  3351. break
  3352. fi
  3353. done
  3354. ac_cv_prog_CPP=$CPP
  3355. fi
  3356. CPP=$ac_cv_prog_CPP
  3357. else
  3358. ac_cv_prog_CPP=$CPP
  3359. fi
  3360. { echo "$as_me:$LINENO: result: $CPP" >&5
  3361. echo "${ECHO_T}$CPP" >&6; }
  3362. ac_preproc_ok=false
  3363. for ac_c_preproc_warn_flag in '' yes
  3364. do
  3365. # Use a header file that comes with gcc, so configuring glibc
  3366. # with a fresh cross-compiler works.
  3367. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3368. # <limits.h> exists even on freestanding compilers.
  3369. # On the NeXT, cc -E runs the code through the compiler's parser,
  3370. # not just through cpp. "Syntax error" is here to catch this case.
  3371. cat >conftest.$ac_ext <<_ACEOF
  3372. /* confdefs.h. */
  3373. _ACEOF
  3374. cat confdefs.h >>conftest.$ac_ext
  3375. cat >>conftest.$ac_ext <<_ACEOF
  3376. /* end confdefs.h. */
  3377. #ifdef __STDC__
  3378. # include <limits.h>
  3379. #else
  3380. # include <assert.h>
  3381. #endif
  3382. Syntax error
  3383. _ACEOF
  3384. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3385. case "(($ac_try" in
  3386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3387. *) ac_try_echo=$ac_try;;
  3388. esac
  3389. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3390. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3391. ac_status=$?
  3392. grep -v '^ *+' conftest.er1 >conftest.err
  3393. rm -f conftest.er1
  3394. cat conftest.err >&5
  3395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3396. (exit $ac_status); } >/dev/null && {
  3397. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3398. test ! -s conftest.err
  3399. }; then
  3400. :
  3401. else
  3402. echo "$as_me: failed program was:" >&5
  3403. sed 's/^/| /' conftest.$ac_ext >&5
  3404. # Broken: fails on valid input.
  3405. continue
  3406. fi
  3407. rm -f conftest.err conftest.$ac_ext
  3408. # OK, works on sane cases. Now check whether nonexistent headers
  3409. # can be detected and how.
  3410. cat >conftest.$ac_ext <<_ACEOF
  3411. /* confdefs.h. */
  3412. _ACEOF
  3413. cat confdefs.h >>conftest.$ac_ext
  3414. cat >>conftest.$ac_ext <<_ACEOF
  3415. /* end confdefs.h. */
  3416. #include <ac_nonexistent.h>
  3417. _ACEOF
  3418. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3419. case "(($ac_try" in
  3420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3421. *) ac_try_echo=$ac_try;;
  3422. esac
  3423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3424. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3425. ac_status=$?
  3426. grep -v '^ *+' conftest.er1 >conftest.err
  3427. rm -f conftest.er1
  3428. cat conftest.err >&5
  3429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3430. (exit $ac_status); } >/dev/null && {
  3431. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3432. test ! -s conftest.err
  3433. }; then
  3434. # Broken: success on invalid input.
  3435. continue
  3436. else
  3437. echo "$as_me: failed program was:" >&5
  3438. sed 's/^/| /' conftest.$ac_ext >&5
  3439. # Passes both tests.
  3440. ac_preproc_ok=:
  3441. break
  3442. fi
  3443. rm -f conftest.err conftest.$ac_ext
  3444. done
  3445. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3446. rm -f conftest.err conftest.$ac_ext
  3447. if $ac_preproc_ok; then
  3448. :
  3449. else
  3450. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3451. See \`config.log' for more details." >&5
  3452. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3453. See \`config.log' for more details." >&2;}
  3454. { (exit 1); exit 1; }; }
  3455. fi
  3456. ac_ext=c
  3457. ac_cpp='$CPP $CPPFLAGS'
  3458. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3459. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3460. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3461. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3462. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3463. if test "${ac_cv_path_GREP+set}" = set; then
  3464. echo $ECHO_N "(cached) $ECHO_C" >&6
  3465. else
  3466. # Extract the first word of "grep ggrep" to use in msg output
  3467. if test -z "$GREP"; then
  3468. set dummy grep ggrep; ac_prog_name=$2
  3469. if test "${ac_cv_path_GREP+set}" = set; then
  3470. echo $ECHO_N "(cached) $ECHO_C" >&6
  3471. else
  3472. ac_path_GREP_found=false
  3473. # Loop through the user's path and test for each of PROGNAME-LIST
  3474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3475. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3476. do
  3477. IFS=$as_save_IFS
  3478. test -z "$as_dir" && as_dir=.
  3479. for ac_prog in grep ggrep; do
  3480. for ac_exec_ext in '' $ac_executable_extensions; do
  3481. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3482. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3483. # Check for GNU ac_path_GREP and select it if it is found.
  3484. # Check for GNU $ac_path_GREP
  3485. case `"$ac_path_GREP" --version 2>&1` in
  3486. *GNU*)
  3487. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3488. *)
  3489. ac_count=0
  3490. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3491. while :
  3492. do
  3493. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3494. mv "conftest.tmp" "conftest.in"
  3495. cp "conftest.in" "conftest.nl"
  3496. echo 'GREP' >> "conftest.nl"
  3497. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3498. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3499. ac_count=`expr $ac_count + 1`
  3500. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3501. # Best one so far, save it but keep looking for a better one
  3502. ac_cv_path_GREP="$ac_path_GREP"
  3503. ac_path_GREP_max=$ac_count
  3504. fi
  3505. # 10*(2^10) chars as input seems more than enough
  3506. test $ac_count -gt 10 && break
  3507. done
  3508. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3509. esac
  3510. $ac_path_GREP_found && break 3
  3511. done
  3512. done
  3513. done
  3514. IFS=$as_save_IFS
  3515. fi
  3516. GREP="$ac_cv_path_GREP"
  3517. if test -z "$GREP"; then
  3518. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3519. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3520. { (exit 1); exit 1; }; }
  3521. fi
  3522. else
  3523. ac_cv_path_GREP=$GREP
  3524. fi
  3525. fi
  3526. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3527. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3528. GREP="$ac_cv_path_GREP"
  3529. { echo "$as_me:$LINENO: checking for egrep" >&5
  3530. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3531. if test "${ac_cv_path_EGREP+set}" = set; then
  3532. echo $ECHO_N "(cached) $ECHO_C" >&6
  3533. else
  3534. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3535. then ac_cv_path_EGREP="$GREP -E"
  3536. else
  3537. # Extract the first word of "egrep" to use in msg output
  3538. if test -z "$EGREP"; then
  3539. set dummy egrep; ac_prog_name=$2
  3540. if test "${ac_cv_path_EGREP+set}" = set; then
  3541. echo $ECHO_N "(cached) $ECHO_C" >&6
  3542. else
  3543. ac_path_EGREP_found=false
  3544. # Loop through the user's path and test for each of PROGNAME-LIST
  3545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3546. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3547. do
  3548. IFS=$as_save_IFS
  3549. test -z "$as_dir" && as_dir=.
  3550. for ac_prog in egrep; do
  3551. for ac_exec_ext in '' $ac_executable_extensions; do
  3552. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3553. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3554. # Check for GNU ac_path_EGREP and select it if it is found.
  3555. # Check for GNU $ac_path_EGREP
  3556. case `"$ac_path_EGREP" --version 2>&1` in
  3557. *GNU*)
  3558. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3559. *)
  3560. ac_count=0
  3561. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3562. while :
  3563. do
  3564. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3565. mv "conftest.tmp" "conftest.in"
  3566. cp "conftest.in" "conftest.nl"
  3567. echo 'EGREP' >> "conftest.nl"
  3568. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3569. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3570. ac_count=`expr $ac_count + 1`
  3571. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3572. # Best one so far, save it but keep looking for a better one
  3573. ac_cv_path_EGREP="$ac_path_EGREP"
  3574. ac_path_EGREP_max=$ac_count
  3575. fi
  3576. # 10*(2^10) chars as input seems more than enough
  3577. test $ac_count -gt 10 && break
  3578. done
  3579. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3580. esac
  3581. $ac_path_EGREP_found && break 3
  3582. done
  3583. done
  3584. done
  3585. IFS=$as_save_IFS
  3586. fi
  3587. EGREP="$ac_cv_path_EGREP"
  3588. if test -z "$EGREP"; then
  3589. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3590. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3591. { (exit 1); exit 1; }; }
  3592. fi
  3593. else
  3594. ac_cv_path_EGREP=$EGREP
  3595. fi
  3596. fi
  3597. fi
  3598. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3599. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3600. EGREP="$ac_cv_path_EGREP"
  3601. if test $ac_cv_c_compiler_gnu = yes; then
  3602. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  3603. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  3604. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  3605. echo $ECHO_N "(cached) $ECHO_C" >&6
  3606. else
  3607. ac_pattern="Autoconf.*'x'"
  3608. cat >conftest.$ac_ext <<_ACEOF
  3609. /* confdefs.h. */
  3610. _ACEOF
  3611. cat confdefs.h >>conftest.$ac_ext
  3612. cat >>conftest.$ac_ext <<_ACEOF
  3613. /* end confdefs.h. */
  3614. #include <sgtty.h>
  3615. Autoconf TIOCGETP
  3616. _ACEOF
  3617. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3618. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  3619. ac_cv_prog_gcc_traditional=yes
  3620. else
  3621. ac_cv_prog_gcc_traditional=no
  3622. fi
  3623. rm -f conftest*
  3624. if test $ac_cv_prog_gcc_traditional = no; then
  3625. cat >conftest.$ac_ext <<_ACEOF
  3626. /* confdefs.h. */
  3627. _ACEOF
  3628. cat confdefs.h >>conftest.$ac_ext
  3629. cat >>conftest.$ac_ext <<_ACEOF
  3630. /* end confdefs.h. */
  3631. #include <termio.h>
  3632. Autoconf TCGETA
  3633. _ACEOF
  3634. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3635. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  3636. ac_cv_prog_gcc_traditional=yes
  3637. fi
  3638. rm -f conftest*
  3639. fi
  3640. fi
  3641. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  3642. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  3643. if test $ac_cv_prog_gcc_traditional = yes; then
  3644. CC="$CC -traditional"
  3645. fi
  3646. fi
  3647. # By default we simply use the C compiler to build assembly code.
  3648. test "${CCAS+set}" = set || CCAS=$CC
  3649. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3650. depcc="$CCAS" am_compiler_list=
  3651. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3652. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3653. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
  3654. echo $ECHO_N "(cached) $ECHO_C" >&6
  3655. else
  3656. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3657. # We make a subdir and do the tests there. Otherwise we can end up
  3658. # making bogus files that we don't know about and never remove. For
  3659. # instance it was reported that on HP-UX the gcc test will end up
  3660. # making a dummy file named `D' -- because `-MD' means `put the output
  3661. # in D'.
  3662. mkdir conftest.dir
  3663. # Copy depcomp to subdir because otherwise we won't find it if we're
  3664. # using a relative directory.
  3665. cp "$am_depcomp" conftest.dir
  3666. cd conftest.dir
  3667. # We will build objects and dependencies in a subdirectory because
  3668. # it helps to detect inapplicable dependency modes. For instance
  3669. # both Tru64's cc and ICC support -MD to output dependencies as a
  3670. # side effect of compilation, but ICC will put the dependencies in
  3671. # the current directory while Tru64 will put them in the object
  3672. # directory.
  3673. mkdir sub
  3674. am_cv_CCAS_dependencies_compiler_type=none
  3675. if test "$am_compiler_list" = ""; then
  3676. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3677. fi
  3678. for depmode in $am_compiler_list; do
  3679. # Setup a source with many dependencies, because some compilers
  3680. # like to wrap large dependency lists on column 80 (with \), and
  3681. # we should not choose a depcomp mode which is confused by this.
  3682. #
  3683. # We need to recreate these files for each test, as the compiler may
  3684. # overwrite some of them when testing with obscure command lines.
  3685. # This happens at least with the AIX C compiler.
  3686. : > sub/conftest.c
  3687. for i in 1 2 3 4 5 6; do
  3688. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3689. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3690. # Solaris 8's {/usr,}/bin/sh.
  3691. touch sub/conftst$i.h
  3692. done
  3693. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3694. case $depmode in
  3695. nosideeffect)
  3696. # after this tag, mechanisms are not by side-effect, so they'll
  3697. # only be used when explicitly requested
  3698. if test "x$enable_dependency_tracking" = xyes; then
  3699. continue
  3700. else
  3701. break
  3702. fi
  3703. ;;
  3704. none) break ;;
  3705. esac
  3706. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3707. # mode. It turns out that the SunPro C++ compiler does not properly
  3708. # handle `-M -o', and we need to detect this.
  3709. if depmode=$depmode \
  3710. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3711. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3712. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3713. >/dev/null 2>conftest.err &&
  3714. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3715. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3716. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3717. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3718. # icc doesn't choke on unknown options, it will just issue warnings
  3719. # or remarks (even with -Werror). So we grep stderr for any message
  3720. # that says an option was ignored or not supported.
  3721. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3722. # icc: Command line warning: ignoring option '-M'; no argument required
  3723. # The diagnosis changed in icc 8.0:
  3724. # icc: Command line remark: option '-MP' not supported
  3725. if (grep 'ignoring option' conftest.err ||
  3726. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3727. am_cv_CCAS_dependencies_compiler_type=$depmode
  3728. break
  3729. fi
  3730. fi
  3731. done
  3732. cd ..
  3733. rm -rf conftest.dir
  3734. else
  3735. am_cv_CCAS_dependencies_compiler_type=none
  3736. fi
  3737. fi
  3738. { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  3739. echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
  3740. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  3741. if
  3742. test "x$enable_dependency_tracking" != xno \
  3743. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  3744. am__fastdepCCAS_TRUE=
  3745. am__fastdepCCAS_FALSE='#'
  3746. else
  3747. am__fastdepCCAS_TRUE='#'
  3748. am__fastdepCCAS_FALSE=
  3749. fi
  3750. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3751. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  3752. if test "${ac_cv_header_stdc+set}" = set; then
  3753. echo $ECHO_N "(cached) $ECHO_C" >&6
  3754. else
  3755. cat >conftest.$ac_ext <<_ACEOF
  3756. /* confdefs.h. */
  3757. _ACEOF
  3758. cat confdefs.h >>conftest.$ac_ext
  3759. cat >>conftest.$ac_ext <<_ACEOF
  3760. /* end confdefs.h. */
  3761. #include <stdlib.h>
  3762. #include <stdarg.h>
  3763. #include <string.h>
  3764. #include <float.h>
  3765. int
  3766. main ()
  3767. {
  3768. ;
  3769. return 0;
  3770. }
  3771. _ACEOF
  3772. rm -f conftest.$ac_objext
  3773. if { (ac_try="$ac_compile"
  3774. case "(($ac_try" in
  3775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3776. *) ac_try_echo=$ac_try;;
  3777. esac
  3778. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3779. (eval "$ac_compile") 2>conftest.er1
  3780. ac_status=$?
  3781. grep -v '^ *+' conftest.er1 >conftest.err
  3782. rm -f conftest.er1
  3783. cat conftest.err >&5
  3784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3785. (exit $ac_status); } && {
  3786. test -z "$ac_c_werror_flag" ||
  3787. test ! -s conftest.err
  3788. } && test -s conftest.$ac_objext; then
  3789. ac_cv_header_stdc=yes
  3790. else
  3791. echo "$as_me: failed program was:" >&5
  3792. sed 's/^/| /' conftest.$ac_ext >&5
  3793. ac_cv_header_stdc=no
  3794. fi
  3795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3796. if test $ac_cv_header_stdc = yes; then
  3797. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3798. cat >conftest.$ac_ext <<_ACEOF
  3799. /* confdefs.h. */
  3800. _ACEOF
  3801. cat confdefs.h >>conftest.$ac_ext
  3802. cat >>conftest.$ac_ext <<_ACEOF
  3803. /* end confdefs.h. */
  3804. #include <string.h>
  3805. _ACEOF
  3806. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3807. $EGREP "memchr" >/dev/null 2>&1; then
  3808. :
  3809. else
  3810. ac_cv_header_stdc=no
  3811. fi
  3812. rm -f conftest*
  3813. fi
  3814. if test $ac_cv_header_stdc = yes; then
  3815. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3816. cat >conftest.$ac_ext <<_ACEOF
  3817. /* confdefs.h. */
  3818. _ACEOF
  3819. cat confdefs.h >>conftest.$ac_ext
  3820. cat >>conftest.$ac_ext <<_ACEOF
  3821. /* end confdefs.h. */
  3822. #include <stdlib.h>
  3823. _ACEOF
  3824. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3825. $EGREP "free" >/dev/null 2>&1; then
  3826. :
  3827. else
  3828. ac_cv_header_stdc=no
  3829. fi
  3830. rm -f conftest*
  3831. fi
  3832. if test $ac_cv_header_stdc = yes; then
  3833. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3834. if test "$cross_compiling" = yes; then
  3835. :
  3836. else
  3837. cat >conftest.$ac_ext <<_ACEOF
  3838. /* confdefs.h. */
  3839. _ACEOF
  3840. cat confdefs.h >>conftest.$ac_ext
  3841. cat >>conftest.$ac_ext <<_ACEOF
  3842. /* end confdefs.h. */
  3843. #include <ctype.h>
  3844. #include <stdlib.h>
  3845. #if ((' ' & 0x0FF) == 0x020)
  3846. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3847. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3848. #else
  3849. # define ISLOWER(c) \
  3850. (('a' <= (c) && (c) <= 'i') \
  3851. || ('j' <= (c) && (c) <= 'r') \
  3852. || ('s' <= (c) && (c) <= 'z'))
  3853. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3854. #endif
  3855. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3856. int
  3857. main ()
  3858. {
  3859. int i;
  3860. for (i = 0; i < 256; i++)
  3861. if (XOR (islower (i), ISLOWER (i))
  3862. || toupper (i) != TOUPPER (i))
  3863. return 2;
  3864. return 0;
  3865. }
  3866. _ACEOF
  3867. rm -f conftest$ac_exeext
  3868. if { (ac_try="$ac_link"
  3869. case "(($ac_try" in
  3870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3871. *) ac_try_echo=$ac_try;;
  3872. esac
  3873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3874. (eval "$ac_link") 2>&5
  3875. ac_status=$?
  3876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3877. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3878. { (case "(($ac_try" in
  3879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3880. *) ac_try_echo=$ac_try;;
  3881. esac
  3882. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3883. (eval "$ac_try") 2>&5
  3884. ac_status=$?
  3885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3886. (exit $ac_status); }; }; then
  3887. :
  3888. else
  3889. echo "$as_me: program exited with status $ac_status" >&5
  3890. echo "$as_me: failed program was:" >&5
  3891. sed 's/^/| /' conftest.$ac_ext >&5
  3892. ( exit $ac_status )
  3893. ac_cv_header_stdc=no
  3894. fi
  3895. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3896. fi
  3897. fi
  3898. fi
  3899. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3900. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  3901. if test $ac_cv_header_stdc = yes; then
  3902. cat >>confdefs.h <<\_ACEOF
  3903. #define STDC_HEADERS 1
  3904. _ACEOF
  3905. fi
  3906. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3907. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3908. inttypes.h stdint.h unistd.h
  3909. do
  3910. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3911. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3912. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3913. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3914. echo $ECHO_N "(cached) $ECHO_C" >&6
  3915. else
  3916. cat >conftest.$ac_ext <<_ACEOF
  3917. /* confdefs.h. */
  3918. _ACEOF
  3919. cat confdefs.h >>conftest.$ac_ext
  3920. cat >>conftest.$ac_ext <<_ACEOF
  3921. /* end confdefs.h. */
  3922. $ac_includes_default
  3923. #include <$ac_header>
  3924. _ACEOF
  3925. rm -f conftest.$ac_objext
  3926. if { (ac_try="$ac_compile"
  3927. case "(($ac_try" in
  3928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3929. *) ac_try_echo=$ac_try;;
  3930. esac
  3931. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3932. (eval "$ac_compile") 2>conftest.er1
  3933. ac_status=$?
  3934. grep -v '^ *+' conftest.er1 >conftest.err
  3935. rm -f conftest.er1
  3936. cat conftest.err >&5
  3937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3938. (exit $ac_status); } && {
  3939. test -z "$ac_c_werror_flag" ||
  3940. test ! -s conftest.err
  3941. } && test -s conftest.$ac_objext; then
  3942. eval "$as_ac_Header=yes"
  3943. else
  3944. echo "$as_me: failed program was:" >&5
  3945. sed 's/^/| /' conftest.$ac_ext >&5
  3946. eval "$as_ac_Header=no"
  3947. fi
  3948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3949. fi
  3950. ac_res=`eval echo '${'$as_ac_Header'}'`
  3951. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3952. echo "${ECHO_T}$ac_res" >&6; }
  3953. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3954. cat >>confdefs.h <<_ACEOF
  3955. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3956. _ACEOF
  3957. fi
  3958. done
  3959. for ac_header in sys/time.h time.h sys/timeb.h io.h
  3960. do
  3961. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3962. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3963. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3964. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3965. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3966. echo $ECHO_N "(cached) $ECHO_C" >&6
  3967. fi
  3968. ac_res=`eval echo '${'$as_ac_Header'}'`
  3969. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3970. echo "${ECHO_T}$ac_res" >&6; }
  3971. else
  3972. # Is the header compilable?
  3973. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3974. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  3975. cat >conftest.$ac_ext <<_ACEOF
  3976. /* confdefs.h. */
  3977. _ACEOF
  3978. cat confdefs.h >>conftest.$ac_ext
  3979. cat >>conftest.$ac_ext <<_ACEOF
  3980. /* end confdefs.h. */
  3981. $ac_includes_default
  3982. #include <$ac_header>
  3983. _ACEOF
  3984. rm -f conftest.$ac_objext
  3985. if { (ac_try="$ac_compile"
  3986. case "(($ac_try" in
  3987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3988. *) ac_try_echo=$ac_try;;
  3989. esac
  3990. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3991. (eval "$ac_compile") 2>conftest.er1
  3992. ac_status=$?
  3993. grep -v '^ *+' conftest.er1 >conftest.err
  3994. rm -f conftest.er1
  3995. cat conftest.err >&5
  3996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3997. (exit $ac_status); } && {
  3998. test -z "$ac_c_werror_flag" ||
  3999. test ! -s conftest.err
  4000. } && test -s conftest.$ac_objext; then
  4001. ac_header_compiler=yes
  4002. else
  4003. echo "$as_me: failed program was:" >&5
  4004. sed 's/^/| /' conftest.$ac_ext >&5
  4005. ac_header_compiler=no
  4006. fi
  4007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4008. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4009. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4010. # Is the header present?
  4011. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4012. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4013. cat >conftest.$ac_ext <<_ACEOF
  4014. /* confdefs.h. */
  4015. _ACEOF
  4016. cat confdefs.h >>conftest.$ac_ext
  4017. cat >>conftest.$ac_ext <<_ACEOF
  4018. /* end confdefs.h. */
  4019. #include <$ac_header>
  4020. _ACEOF
  4021. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4022. case "(($ac_try" in
  4023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4024. *) ac_try_echo=$ac_try;;
  4025. esac
  4026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4027. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4028. ac_status=$?
  4029. grep -v '^ *+' conftest.er1 >conftest.err
  4030. rm -f conftest.er1
  4031. cat conftest.err >&5
  4032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4033. (exit $ac_status); } >/dev/null && {
  4034. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4035. test ! -s conftest.err
  4036. }; then
  4037. ac_header_preproc=yes
  4038. else
  4039. echo "$as_me: failed program was:" >&5
  4040. sed 's/^/| /' conftest.$ac_ext >&5
  4041. ac_header_preproc=no
  4042. fi
  4043. rm -f conftest.err conftest.$ac_ext
  4044. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4045. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4046. # So? What about this header?
  4047. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4048. yes:no: )
  4049. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4050. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4051. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4052. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4053. ac_header_preproc=yes
  4054. ;;
  4055. no:yes:* )
  4056. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4057. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4058. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4059. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4060. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4061. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4062. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4063. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4064. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4065. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4066. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4067. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4068. ;;
  4069. esac
  4070. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4071. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4072. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4073. echo $ECHO_N "(cached) $ECHO_C" >&6
  4074. else
  4075. eval "$as_ac_Header=\$ac_header_preproc"
  4076. fi
  4077. ac_res=`eval echo '${'$as_ac_Header'}'`
  4078. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4079. echo "${ECHO_T}$ac_res" >&6; }
  4080. fi
  4081. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4082. cat >>confdefs.h <<_ACEOF
  4083. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4084. _ACEOF
  4085. fi
  4086. done
  4087. if test x"$CC" = x"checkergcc"; then
  4088. enable_sdl=no
  4089. elif test x"$GCC" = x"yes"; then
  4090. TRY_CFLAGS="$OPT_CFLAGS -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
  4091. { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
  4092. echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; }
  4093. SAVE_CFLAGS="$CFLAGS"
  4094. CFLAGS="$TRY_CFLAGS $CFLAGS"
  4095. cat >conftest.$ac_ext <<_ACEOF
  4096. /* confdefs.h. */
  4097. _ACEOF
  4098. cat confdefs.h >>conftest.$ac_ext
  4099. cat >>conftest.$ac_ext <<_ACEOF
  4100. /* end confdefs.h. */
  4101. int
  4102. main ()
  4103. {
  4104. ;
  4105. return 0;
  4106. }
  4107. _ACEOF
  4108. rm -f conftest.$ac_objext
  4109. if { (ac_try="$ac_compile"
  4110. case "(($ac_try" in
  4111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4112. *) ac_try_echo=$ac_try;;
  4113. esac
  4114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4115. (eval "$ac_compile") 2>conftest.er1
  4116. ac_status=$?
  4117. grep -v '^ *+' conftest.er1 >conftest.err
  4118. rm -f conftest.er1
  4119. cat conftest.err >&5
  4120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4121. (exit $ac_status); } && {
  4122. test -z "$ac_c_werror_flag" ||
  4123. test ! -s conftest.err
  4124. } && test -s conftest.$ac_objext; then
  4125. ac_cv_try_cflags_ok=yes
  4126. else
  4127. echo "$as_me: failed program was:" >&5
  4128. sed 's/^/| /' conftest.$ac_ext >&5
  4129. ac_cv_try_cflags_ok=no
  4130. fi
  4131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4132. CFLAGS="$SAVE_CFLAGS"
  4133. { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
  4134. echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; }
  4135. if test x"$ac_cv_try_cflags_ok" = x"yes"; then
  4136. OPT_CFLAGS="$TRY_CFLAGS"
  4137. else
  4138. :
  4139. fi
  4140. TRY_CFLAGS=`echo "$OPT_CFLAGS $CFLAGS"|sed "s/-O[0-9]*//g"`
  4141. TRY_CFLAGS="$TRY_CFLAGS -O3"
  4142. { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS flags" >&5
  4143. echo $ECHO_N "checking if $CC supports $TRY_CFLAGS flags... $ECHO_C" >&6; }
  4144. SAVE_CFLAGS="$CFLAGS"
  4145. CFLAGS="$TRY_CFLAGS"
  4146. cat >conftest.$ac_ext <<_ACEOF
  4147. /* confdefs.h. */
  4148. _ACEOF
  4149. cat confdefs.h >>conftest.$ac_ext
  4150. cat >>conftest.$ac_ext <<_ACEOF
  4151. /* end confdefs.h. */
  4152. int
  4153. main ()
  4154. {
  4155. ;
  4156. return 0;
  4157. }
  4158. _ACEOF
  4159. rm -f conftest.$ac_objext
  4160. if { (ac_try="$ac_compile"
  4161. case "(($ac_try" in
  4162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4163. *) ac_try_echo=$ac_try;;
  4164. esac
  4165. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4166. (eval "$ac_compile") 2>conftest.er1
  4167. ac_status=$?
  4168. grep -v '^ *+' conftest.er1 >conftest.err
  4169. rm -f conftest.er1
  4170. cat conftest.err >&5
  4171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4172. (exit $ac_status); } && {
  4173. test -z "$ac_c_werror_flag" ||
  4174. test ! -s conftest.err
  4175. } && test -s conftest.$ac_objext; then
  4176. ac_cv_try_cflags_ok=yes
  4177. else
  4178. echo "$as_me: failed program was:" >&5
  4179. sed 's/^/| /' conftest.$ac_ext >&5
  4180. ac_cv_try_cflags_ok=no
  4181. fi
  4182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4183. CFLAGS="$SAVE_CFLAGS"
  4184. { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
  4185. echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; }
  4186. if test x"$ac_cv_try_cflags_ok" = x"yes"; then
  4187. OPT_CFLAGS="$TRY_CFLAGS"
  4188. else
  4189. :
  4190. fi
  4191. # Check whether --enable-debug was given.
  4192. if test "${enable_debug+set}" = set; then
  4193. enableval=$enable_debug;
  4194. fi
  4195. if test x"$enable_debug" = x"yes"; then
  4196. cat >>confdefs.h <<\_ACEOF
  4197. #define DEBUG
  4198. _ACEOF
  4199. else
  4200. TRY_CFLAGS="$OPT_CFLAGS -fomit-frame-pointer"
  4201. { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
  4202. echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; }
  4203. SAVE_CFLAGS="$CFLAGS"
  4204. CFLAGS="$TRY_CFLAGS $CFLAGS"
  4205. cat >conftest.$ac_ext <<_ACEOF
  4206. /* confdefs.h. */
  4207. _ACEOF
  4208. cat confdefs.h >>conftest.$ac_ext
  4209. cat >>conftest.$ac_ext <<_ACEOF
  4210. /* end confdefs.h. */
  4211. int
  4212. main ()
  4213. {
  4214. ;
  4215. return 0;
  4216. }
  4217. _ACEOF
  4218. rm -f conftest.$ac_objext
  4219. if { (ac_try="$ac_compile"
  4220. case "(($ac_try" in
  4221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4222. *) ac_try_echo=$ac_try;;
  4223. esac
  4224. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4225. (eval "$ac_compile") 2>conftest.er1
  4226. ac_status=$?
  4227. grep -v '^ *+' conftest.er1 >conftest.err
  4228. rm -f conftest.er1
  4229. cat conftest.err >&5
  4230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4231. (exit $ac_status); } && {
  4232. test -z "$ac_c_werror_flag" ||
  4233. test ! -s conftest.err
  4234. } && test -s conftest.$ac_objext; then
  4235. ac_cv_try_cflags_ok=yes
  4236. else
  4237. echo "$as_me: failed program was:" >&5
  4238. sed 's/^/| /' conftest.$ac_ext >&5
  4239. ac_cv_try_cflags_ok=no
  4240. fi
  4241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4242. CFLAGS="$SAVE_CFLAGS"
  4243. { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
  4244. echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; }
  4245. if test x"$ac_cv_try_cflags_ok" = x"yes"; then
  4246. OPT_CFLAGS="$TRY_CFLAGS"
  4247. else
  4248. :
  4249. fi
  4250. fi
  4251. TRY_CFLAGS="$OPT_CFLAGS -fno-common"
  4252. { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
  4253. echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; }
  4254. SAVE_CFLAGS="$CFLAGS"
  4255. CFLAGS="$TRY_CFLAGS $CFLAGS"
  4256. cat >conftest.$ac_ext <<_ACEOF
  4257. /* confdefs.h. */
  4258. _ACEOF
  4259. cat confdefs.h >>conftest.$ac_ext
  4260. cat >>conftest.$ac_ext <<_ACEOF
  4261. /* end confdefs.h. */
  4262. int
  4263. main ()
  4264. {
  4265. ;
  4266. return 0;
  4267. }
  4268. _ACEOF
  4269. rm -f conftest.$ac_objext
  4270. if { (ac_try="$ac_compile"
  4271. case "(($ac_try" in
  4272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4273. *) ac_try_echo=$ac_try;;
  4274. esac
  4275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4276. (eval "$ac_compile") 2>conftest.er1
  4277. ac_status=$?
  4278. grep -v '^ *+' conftest.er1 >conftest.err
  4279. rm -f conftest.er1
  4280. cat conftest.err >&5
  4281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4282. (exit $ac_status); } && {
  4283. test -z "$ac_c_werror_flag" ||
  4284. test ! -s conftest.err
  4285. } && test -s conftest.$ac_objext; then
  4286. ac_cv_try_cflags_ok=yes
  4287. else
  4288. echo "$as_me: failed program was:" >&5
  4289. sed 's/^/| /' conftest.$ac_ext >&5
  4290. ac_cv_try_cflags_ok=no
  4291. fi
  4292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4293. CFLAGS="$SAVE_CFLAGS"
  4294. { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
  4295. echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; }
  4296. if test x"$ac_cv_try_cflags_ok" = x"yes"; then
  4297. OPT_CFLAGS="$TRY_CFLAGS"
  4298. else
  4299. :
  4300. fi
  4301. arm_conditional=false
  4302. case "$host" in
  4303. i?86-* | k?-* | x86_64-* | amd64-*)
  4304. cat >>confdefs.h <<\_ACEOF
  4305. #define ARCH_X86
  4306. _ACEOF
  4307. case "$host" in
  4308. i386-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i386";;
  4309. i486-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i486";;
  4310. i586-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentium";;
  4311. i686-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentiumpro";;
  4312. k6-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=k6";;
  4313. esac
  4314. { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
  4315. echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; }
  4316. SAVE_CFLAGS="$CFLAGS"
  4317. CFLAGS="$TRY_CFLAGS $CFLAGS"
  4318. cat >conftest.$ac_ext <<_ACEOF
  4319. /* confdefs.h. */
  4320. _ACEOF
  4321. cat confdefs.h >>conftest.$ac_ext
  4322. cat >>conftest.$ac_ext <<_ACEOF
  4323. /* end confdefs.h. */
  4324. int
  4325. main ()
  4326. {
  4327. ;
  4328. return 0;
  4329. }
  4330. _ACEOF
  4331. rm -f conftest.$ac_objext
  4332. if { (ac_try="$ac_compile"
  4333. case "(($ac_try" in
  4334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4335. *) ac_try_echo=$ac_try;;
  4336. esac
  4337. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4338. (eval "$ac_compile") 2>conftest.er1
  4339. ac_status=$?
  4340. grep -v '^ *+' conftest.er1 >conftest.err
  4341. rm -f conftest.er1
  4342. cat conftest.err >&5
  4343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4344. (exit $ac_status); } && {
  4345. test -z "$ac_c_werror_flag" ||
  4346. test ! -s conftest.err
  4347. } && test -s conftest.$ac_objext; then
  4348. ac_cv_try_cflags_ok=yes
  4349. else
  4350. echo "$as_me: failed program was:" >&5
  4351. sed 's/^/| /' conftest.$ac_ext >&5
  4352. ac_cv_try_cflags_ok=no
  4353. fi
  4354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4355. CFLAGS="$SAVE_CFLAGS"
  4356. { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
  4357. echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; }
  4358. if test x"$ac_cv_try_cflags_ok" = x"yes"; then
  4359. OPT_CFLAGS="$TRY_CFLAGS"
  4360. else
  4361. :
  4362. fi;;
  4363. ppc-* | powerpc-*)
  4364. have_altivec=no
  4365. for TRY_CFLAGS in "-mpim-altivec -force_cpusubtype_ALL" -faltivec -maltivec -fvec; do
  4366. { echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS $TRY_CFLAGS $CFLAGS flags" >&5
  4367. echo $ECHO_N "checking if $CC supports $OPT_CFLAGS $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; }
  4368. SAVE_CFLAGS="$CFLAGS"
  4369. CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS"
  4370. cat >conftest.$ac_ext <<_ACEOF
  4371. /* confdefs.h. */
  4372. _ACEOF
  4373. cat confdefs.h >>conftest.$ac_ext
  4374. cat >>conftest.$ac_ext <<_ACEOF
  4375. /* end confdefs.h. */
  4376. int
  4377. main ()
  4378. {
  4379. ;
  4380. return 0;
  4381. }
  4382. _ACEOF
  4383. rm -f conftest.$ac_objext
  4384. if { (ac_try="$ac_compile"
  4385. case "(($ac_try" in
  4386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4387. *) ac_try_echo=$ac_try;;
  4388. esac
  4389. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4390. (eval "$ac_compile") 2>conftest.er1
  4391. ac_status=$?
  4392. grep -v '^ *+' conftest.er1 >conftest.err
  4393. rm -f conftest.er1
  4394. cat conftest.err >&5
  4395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4396. (exit $ac_status); } && {
  4397. test -z "$ac_c_werror_flag" ||
  4398. test ! -s conftest.err
  4399. } && test -s conftest.$ac_objext; then
  4400. ac_cv_try_cflags_ok=yes
  4401. else
  4402. echo "$as_me: failed program was:" >&5
  4403. sed 's/^/| /' conftest.$ac_ext >&5
  4404. ac_cv_try_cflags_ok=no
  4405. fi
  4406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4407. CFLAGS="$SAVE_CFLAGS"
  4408. { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
  4409. echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; }
  4410. if test x"$ac_cv_try_cflags_ok" = x"yes"; then
  4411. save_CFLAGS="$CFLAGS"
  4412. CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS"
  4413. { echo "$as_me:$LINENO: checking if <altivec.h> is needed" >&5
  4414. echo $ECHO_N "checking if <altivec.h> is needed... $ECHO_C" >&6; }
  4415. cat >conftest.$ac_ext <<_ACEOF
  4416. /* confdefs.h. */
  4417. _ACEOF
  4418. cat confdefs.h >>conftest.$ac_ext
  4419. cat >>conftest.$ac_ext <<_ACEOF
  4420. /* end confdefs.h. */
  4421. int
  4422. main ()
  4423. {
  4424. typedef vector int t;
  4425. vec_ld(0, (unsigned char *)0);
  4426. ;
  4427. return 0;
  4428. }
  4429. _ACEOF
  4430. rm -f conftest.$ac_objext
  4431. if { (ac_try="$ac_compile"
  4432. case "(($ac_try" in
  4433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4434. *) ac_try_echo=$ac_try;;
  4435. esac
  4436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4437. (eval "$ac_compile") 2>conftest.er1
  4438. ac_status=$?
  4439. grep -v '^ *+' conftest.er1 >conftest.err
  4440. rm -f conftest.er1
  4441. cat conftest.err >&5
  4442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4443. (exit $ac_status); } && {
  4444. test -z "$ac_c_werror_flag" ||
  4445. test ! -s conftest.err
  4446. } && test -s conftest.$ac_objext; then
  4447. have_altivec=yes; { echo "$as_me:$LINENO: result: no" >&5
  4448. echo "${ECHO_T}no" >&6; }
  4449. else
  4450. echo "$as_me: failed program was:" >&5
  4451. sed 's/^/| /' conftest.$ac_ext >&5
  4452. cat >conftest.$ac_ext <<_ACEOF
  4453. /* confdefs.h. */
  4454. _ACEOF
  4455. cat confdefs.h >>conftest.$ac_ext
  4456. cat >>conftest.$ac_ext <<_ACEOF
  4457. /* end confdefs.h. */
  4458. #include <altivec.h>
  4459. int
  4460. main ()
  4461. {
  4462. typedef vector int t; vec_ld(0, (unsigned char *)0);
  4463. ;
  4464. return 0;
  4465. }
  4466. _ACEOF
  4467. rm -f conftest.$ac_objext
  4468. if { (ac_try="$ac_compile"
  4469. case "(($ac_try" in
  4470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4471. *) ac_try_echo=$ac_try;;
  4472. esac
  4473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4474. (eval "$ac_compile") 2>conftest.er1
  4475. ac_status=$?
  4476. grep -v '^ *+' conftest.er1 >conftest.err
  4477. rm -f conftest.er1
  4478. cat conftest.err >&5
  4479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4480. (exit $ac_status); } && {
  4481. test -z "$ac_c_werror_flag" ||
  4482. test ! -s conftest.err
  4483. } && test -s conftest.$ac_objext; then
  4484. cat >>confdefs.h <<\_ACEOF
  4485. #define HAVE_ALTIVEC_H
  4486. _ACEOF
  4487. have_altivec=yes; { echo "$as_me:$LINENO: result: yes" >&5
  4488. echo "${ECHO_T}yes" >&6; }
  4489. else
  4490. echo "$as_me: failed program was:" >&5
  4491. sed 's/^/| /' conftest.$ac_ext >&5
  4492. { echo "$as_me:$LINENO: result: unsupported" >&5
  4493. echo "${ECHO_T}unsupported" >&6; }
  4494. fi
  4495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4496. fi
  4497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4498. CFLAGS="$save_CFLAGS"
  4499. else
  4500. :
  4501. fi
  4502. if test "$have_altivec" = "yes"; then
  4503. ARCH_OPT_CFLAGS="$TRY_CFLAGS"
  4504. cat >>confdefs.h <<\_ACEOF
  4505. #define ARCH_PPC
  4506. _ACEOF
  4507. break
  4508. fi
  4509. done;;
  4510. sparc-* | sparc64-*)
  4511. cat >>confdefs.h <<\_ACEOF
  4512. #define ARCH_SPARC
  4513. _ACEOF
  4514. TRY_CFLAGS="$OPT_CFLAGS -mcpu=ultrasparc -mvis"
  4515. { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
  4516. echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; }
  4517. SAVE_CFLAGS="$CFLAGS"
  4518. CFLAGS="$TRY_CFLAGS $CFLAGS"
  4519. cat >conftest.$ac_ext <<_ACEOF
  4520. /* confdefs.h. */
  4521. _ACEOF
  4522. cat confdefs.h >>conftest.$ac_ext
  4523. cat >>conftest.$ac_ext <<_ACEOF
  4524. /* end confdefs.h. */
  4525. int
  4526. main ()
  4527. {
  4528. ;
  4529. return 0;
  4530. }
  4531. _ACEOF
  4532. rm -f conftest.$ac_objext
  4533. if { (ac_try="$ac_compile"
  4534. case "(($ac_try" in
  4535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4536. *) ac_try_echo=$ac_try;;
  4537. esac
  4538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4539. (eval "$ac_compile") 2>conftest.er1
  4540. ac_status=$?
  4541. grep -v '^ *+' conftest.er1 >conftest.err
  4542. rm -f conftest.er1
  4543. cat conftest.err >&5
  4544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4545. (exit $ac_status); } && {
  4546. test -z "$ac_c_werror_flag" ||
  4547. test ! -s conftest.err
  4548. } && test -s conftest.$ac_objext; then
  4549. ac_cv_try_cflags_ok=yes
  4550. else
  4551. echo "$as_me: failed program was:" >&5
  4552. sed 's/^/| /' conftest.$ac_ext >&5
  4553. ac_cv_try_cflags_ok=no
  4554. fi
  4555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4556. CFLAGS="$SAVE_CFLAGS"
  4557. { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
  4558. echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; }
  4559. if test x"$ac_cv_try_cflags_ok" = x"yes"; then
  4560. OPT_CFLAGS="$TRY_CFLAGS"
  4561. else
  4562. :
  4563. fi;;
  4564. alpha*)
  4565. cat >>confdefs.h <<\_ACEOF
  4566. #define ARCH_ALPHA
  4567. _ACEOF
  4568. ;;
  4569. arm*)
  4570. arm_conditional=:
  4571. cat >>confdefs.h <<\_ACEOF
  4572. #define ARCH_ARM
  4573. _ACEOF
  4574. ;;
  4575. esac
  4576. elif test x"$CC" = x"tendracc"; then
  4577. TENDRA=yes
  4578. OPT_CFLAGS="-Xp -Yansi -f`pwd`/include/tendra.h -DELIDE_CODE"
  4579. no_x=yes
  4580. enable_sdl=no
  4581. elif test x"$CC" = x"icc" -a x"`$CC -V 2>&1 | grep Intel`" != x""; then
  4582. OPT_CFLAGS="-g -O3 -unroll -ip"
  4583. else
  4584. case "$host" in
  4585. sparc-sun-solaris*)
  4586. TRY_CFLAGS="$OPT_CFLAGS -xCC -fast -xO5"
  4587. { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
  4588. echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; }
  4589. SAVE_CFLAGS="$CFLAGS"
  4590. CFLAGS="$TRY_CFLAGS $CFLAGS"
  4591. cat >conftest.$ac_ext <<_ACEOF
  4592. /* confdefs.h. */
  4593. _ACEOF
  4594. cat confdefs.h >>conftest.$ac_ext
  4595. cat >>conftest.$ac_ext <<_ACEOF
  4596. /* end confdefs.h. */
  4597. int
  4598. main ()
  4599. {
  4600. ;
  4601. return 0;
  4602. }
  4603. _ACEOF
  4604. rm -f conftest.$ac_objext
  4605. if { (ac_try="$ac_compile"
  4606. case "(($ac_try" in
  4607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4608. *) ac_try_echo=$ac_try;;
  4609. esac
  4610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4611. (eval "$ac_compile") 2>conftest.er1
  4612. ac_status=$?
  4613. grep -v '^ *+' conftest.er1 >conftest.err
  4614. rm -f conftest.er1
  4615. cat conftest.err >&5
  4616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4617. (exit $ac_status); } && {
  4618. test -z "$ac_c_werror_flag" ||
  4619. test ! -s conftest.err
  4620. } && test -s conftest.$ac_objext; then
  4621. ac_cv_try_cflags_ok=yes
  4622. else
  4623. echo "$as_me: failed program was:" >&5
  4624. sed 's/^/| /' conftest.$ac_ext >&5
  4625. ac_cv_try_cflags_ok=no
  4626. fi
  4627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4628. CFLAGS="$SAVE_CFLAGS"
  4629. { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
  4630. echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; }
  4631. if test x"$ac_cv_try_cflags_ok" = x"yes"; then
  4632. OPT_CFLAGS="$TRY_CFLAGS"
  4633. else
  4634. :
  4635. fi;;
  4636. esac
  4637. fi
  4638. if ${arm_conditional}; then
  4639. ARCH_ARM_TRUE=
  4640. ARCH_ARM_FALSE='#'
  4641. else
  4642. ARCH_ARM_TRUE='#'
  4643. ARCH_ARM_FALSE=
  4644. fi
  4645. # Check whether --enable-shared was given.
  4646. if test "${enable_shared+set}" = set; then
  4647. enableval=$enable_shared; p=${PACKAGE-default}
  4648. case $enableval in
  4649. yes) enable_shared=yes ;;
  4650. no) enable_shared=no ;;
  4651. *)
  4652. enable_shared=no
  4653. # Look at the argument we got. We use all the common list separators.
  4654. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4655. for pkg in $enableval; do
  4656. IFS="$lt_save_ifs"
  4657. if test "X$pkg" = "X$p"; then
  4658. enable_shared=yes
  4659. fi
  4660. done
  4661. IFS="$lt_save_ifs"
  4662. ;;
  4663. esac
  4664. else
  4665. enable_shared=yes
  4666. fi
  4667. # Check whether --enable-static was given.
  4668. if test "${enable_static+set}" = set; then
  4669. enableval=$enable_static; p=${PACKAGE-default}
  4670. case $enableval in
  4671. yes) enable_static=yes ;;
  4672. no) enable_static=no ;;
  4673. *)
  4674. enable_static=no
  4675. # Look at the argument we got. We use all the common list separators.
  4676. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4677. for pkg in $enableval; do
  4678. IFS="$lt_save_ifs"
  4679. if test "X$pkg" = "X$p"; then
  4680. enable_static=yes
  4681. fi
  4682. done
  4683. IFS="$lt_save_ifs"
  4684. ;;
  4685. esac
  4686. else
  4687. enable_static=yes
  4688. fi
  4689. # Check whether --enable-fast-install was given.
  4690. if test "${enable_fast_install+set}" = set; then
  4691. enableval=$enable_fast_install; p=${PACKAGE-default}
  4692. case $enableval in
  4693. yes) enable_fast_install=yes ;;
  4694. no) enable_fast_install=no ;;
  4695. *)
  4696. enable_fast_install=no
  4697. # Look at the argument we got. We use all the common list separators.
  4698. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4699. for pkg in $enableval; do
  4700. IFS="$lt_save_ifs"
  4701. if test "X$pkg" = "X$p"; then
  4702. enable_fast_install=yes
  4703. fi
  4704. done
  4705. IFS="$lt_save_ifs"
  4706. ;;
  4707. esac
  4708. else
  4709. enable_fast_install=yes
  4710. fi
  4711. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4712. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  4713. if test "${lt_cv_path_SED+set}" = set; then
  4714. echo $ECHO_N "(cached) $ECHO_C" >&6
  4715. else
  4716. # Loop through the user's path and test for sed and gsed.
  4717. # Then use that list of sed's as ones to test for truncation.
  4718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4719. for as_dir in $PATH
  4720. do
  4721. IFS=$as_save_IFS
  4722. test -z "$as_dir" && as_dir=.
  4723. for lt_ac_prog in sed gsed; do
  4724. for ac_exec_ext in '' $ac_executable_extensions; do
  4725. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  4726. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  4727. fi
  4728. done
  4729. done
  4730. done
  4731. IFS=$as_save_IFS
  4732. lt_ac_max=0
  4733. lt_ac_count=0
  4734. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  4735. # along with /bin/sed that truncates output.
  4736. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  4737. test ! -f $lt_ac_sed && continue
  4738. cat /dev/null > conftest.in
  4739. lt_ac_count=0
  4740. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  4741. # Check for GNU sed and select it if it is found.
  4742. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  4743. lt_cv_path_SED=$lt_ac_sed
  4744. break
  4745. fi
  4746. while true; do
  4747. cat conftest.in conftest.in >conftest.tmp
  4748. mv conftest.tmp conftest.in
  4749. cp conftest.in conftest.nl
  4750. echo >>conftest.nl
  4751. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  4752. cmp -s conftest.out conftest.nl || break
  4753. # 10000 chars as input seems more than enough
  4754. test $lt_ac_count -gt 10 && break
  4755. lt_ac_count=`expr $lt_ac_count + 1`
  4756. if test $lt_ac_count -gt $lt_ac_max; then
  4757. lt_ac_max=$lt_ac_count
  4758. lt_cv_path_SED=$lt_ac_sed
  4759. fi
  4760. done
  4761. done
  4762. fi
  4763. SED=$lt_cv_path_SED
  4764. { echo "$as_me:$LINENO: result: $SED" >&5
  4765. echo "${ECHO_T}$SED" >&6; }
  4766. # Check whether --with-gnu-ld was given.
  4767. if test "${with_gnu_ld+set}" = set; then
  4768. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4769. else
  4770. with_gnu_ld=no
  4771. fi
  4772. ac_prog=ld
  4773. if test "$GCC" = yes; then
  4774. # Check if gcc -print-prog-name=ld gives a path.
  4775. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4776. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  4777. case $host in
  4778. *-*-mingw*)
  4779. # gcc leaves a trailing carriage return which upsets mingw
  4780. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4781. *)
  4782. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4783. esac
  4784. case $ac_prog in
  4785. # Accept absolute paths.
  4786. [\\/]* | ?:[\\/]*)
  4787. re_direlt='/[^/][^/]*/\.\./'
  4788. # Canonicalize the pathname of ld
  4789. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  4790. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4791. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  4792. done
  4793. test -z "$LD" && LD="$ac_prog"
  4794. ;;
  4795. "")
  4796. # If it fails, then pretend we aren't using GCC.
  4797. ac_prog=ld
  4798. ;;
  4799. *)
  4800. # If it is relative, then search for the first ld in PATH.
  4801. with_gnu_ld=unknown
  4802. ;;
  4803. esac
  4804. elif test "$with_gnu_ld" = yes; then
  4805. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  4806. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  4807. else
  4808. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4809. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  4810. fi
  4811. if test "${lt_cv_path_LD+set}" = set; then
  4812. echo $ECHO_N "(cached) $ECHO_C" >&6
  4813. else
  4814. if test -z "$LD"; then
  4815. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4816. for ac_dir in $PATH; do
  4817. IFS="$lt_save_ifs"
  4818. test -z "$ac_dir" && ac_dir=.
  4819. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4820. lt_cv_path_LD="$ac_dir/$ac_prog"
  4821. # Check to see if the program is GNU ld. I'd rather use --version,
  4822. # but apparently some variants of GNU ld only accept -v.
  4823. # Break only if it was the GNU/non-GNU ld that we prefer.
  4824. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4825. *GNU* | *'with BFD'*)
  4826. test "$with_gnu_ld" != no && break
  4827. ;;
  4828. *)
  4829. test "$with_gnu_ld" != yes && break
  4830. ;;
  4831. esac
  4832. fi
  4833. done
  4834. IFS="$lt_save_ifs"
  4835. else
  4836. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4837. fi
  4838. fi
  4839. LD="$lt_cv_path_LD"
  4840. if test -n "$LD"; then
  4841. { echo "$as_me:$LINENO: result: $LD" >&5
  4842. echo "${ECHO_T}$LD" >&6; }
  4843. else
  4844. { echo "$as_me:$LINENO: result: no" >&5
  4845. echo "${ECHO_T}no" >&6; }
  4846. fi
  4847. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4848. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4849. { (exit 1); exit 1; }; }
  4850. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4851. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  4852. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4853. echo $ECHO_N "(cached) $ECHO_C" >&6
  4854. else
  4855. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4856. case `$LD -v 2>&1 </dev/null` in
  4857. *GNU* | *'with BFD'*)
  4858. lt_cv_prog_gnu_ld=yes
  4859. ;;
  4860. *)
  4861. lt_cv_prog_gnu_ld=no
  4862. ;;
  4863. esac
  4864. fi
  4865. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4866. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  4867. with_gnu_ld=$lt_cv_prog_gnu_ld
  4868. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4869. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  4870. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4871. echo $ECHO_N "(cached) $ECHO_C" >&6
  4872. else
  4873. lt_cv_ld_reload_flag='-r'
  4874. fi
  4875. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4876. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  4877. reload_flag=$lt_cv_ld_reload_flag
  4878. case $reload_flag in
  4879. "" | " "*) ;;
  4880. *) reload_flag=" $reload_flag" ;;
  4881. esac
  4882. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4883. case $host_os in
  4884. darwin*)
  4885. if test "$GCC" = yes; then
  4886. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4887. else
  4888. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4889. fi
  4890. ;;
  4891. esac
  4892. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  4893. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  4894. if test "${lt_cv_path_NM+set}" = set; then
  4895. echo $ECHO_N "(cached) $ECHO_C" >&6
  4896. else
  4897. if test -n "$NM"; then
  4898. # Let the user override the test.
  4899. lt_cv_path_NM="$NM"
  4900. else
  4901. lt_nm_to_check="${ac_tool_prefix}nm"
  4902. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4903. lt_nm_to_check="$lt_nm_to_check nm"
  4904. fi
  4905. for lt_tmp_nm in $lt_nm_to_check; do
  4906. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4907. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4908. IFS="$lt_save_ifs"
  4909. test -z "$ac_dir" && ac_dir=.
  4910. tmp_nm="$ac_dir/$lt_tmp_nm"
  4911. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4912. # Check to see if the nm accepts a BSD-compat flag.
  4913. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4914. # nm: unknown option "B" ignored
  4915. # Tru64's nm complains that /dev/null is an invalid object file
  4916. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4917. */dev/null* | *'Invalid file or object type'*)
  4918. lt_cv_path_NM="$tmp_nm -B"
  4919. break
  4920. ;;
  4921. *)
  4922. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4923. */dev/null*)
  4924. lt_cv_path_NM="$tmp_nm -p"
  4925. break
  4926. ;;
  4927. *)
  4928. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4929. continue # so that we can try to find one that supports BSD flags
  4930. ;;
  4931. esac
  4932. ;;
  4933. esac
  4934. fi
  4935. done
  4936. IFS="$lt_save_ifs"
  4937. done
  4938. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4939. fi
  4940. fi
  4941. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4942. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  4943. NM="$lt_cv_path_NM"
  4944. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4945. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  4946. LN_S=$as_ln_s
  4947. if test "$LN_S" = "ln -s"; then
  4948. { echo "$as_me:$LINENO: result: yes" >&5
  4949. echo "${ECHO_T}yes" >&6; }
  4950. else
  4951. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4952. echo "${ECHO_T}no, using $LN_S" >&6; }
  4953. fi
  4954. { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4955. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  4956. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4957. echo $ECHO_N "(cached) $ECHO_C" >&6
  4958. else
  4959. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4960. lt_cv_file_magic_test_file=
  4961. lt_cv_deplibs_check_method='unknown'
  4962. # Need to set the preceding variable on all platforms that support
  4963. # interlibrary dependencies.
  4964. # 'none' -- dependencies not supported.
  4965. # `unknown' -- same as none, but documents that we really don't know.
  4966. # 'pass_all' -- all dependencies passed with no checks.
  4967. # 'test_compile' -- check by making test program.
  4968. # 'file_magic [[regex]]' -- check by looking for files in library path
  4969. # which responds to the $file_magic_cmd with a given extended regex.
  4970. # If you have `file' or equivalent on your system and you're not sure
  4971. # whether `pass_all' will *always* work, you probably want this one.
  4972. case $host_os in
  4973. aix[4-9]*)
  4974. lt_cv_deplibs_check_method=pass_all
  4975. ;;
  4976. beos*)
  4977. lt_cv_deplibs_check_method=pass_all
  4978. ;;
  4979. bsdi[45]*)
  4980. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4981. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4982. lt_cv_file_magic_test_file=/shlib/libc.so
  4983. ;;
  4984. cygwin*)
  4985. # func_win32_libid is a shell function defined in ltmain.sh
  4986. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4987. lt_cv_file_magic_cmd='func_win32_libid'
  4988. ;;
  4989. mingw* | pw32*)
  4990. # Base MSYS/MinGW do not provide the 'file' command needed by
  4991. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4992. # unless we find 'file', for example because we are cross-compiling.
  4993. if ( file / ) >/dev/null 2>&1; then
  4994. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4995. lt_cv_file_magic_cmd='func_win32_libid'
  4996. else
  4997. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4998. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4999. fi
  5000. ;;
  5001. darwin* | rhapsody*)
  5002. lt_cv_deplibs_check_method=pass_all
  5003. ;;
  5004. freebsd* | dragonfly*)
  5005. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  5006. case $host_cpu in
  5007. i*86 )
  5008. # Not sure whether the presence of OpenBSD here was a mistake.
  5009. # Let's accept both of them until this is cleared up.
  5010. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5011. lt_cv_file_magic_cmd=/usr/bin/file
  5012. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5013. ;;
  5014. esac
  5015. else
  5016. lt_cv_deplibs_check_method=pass_all
  5017. fi
  5018. ;;
  5019. gnu*)
  5020. lt_cv_deplibs_check_method=pass_all
  5021. ;;
  5022. hpux10.20* | hpux11*)
  5023. lt_cv_file_magic_cmd=/usr/bin/file
  5024. case $host_cpu in
  5025. ia64*)
  5026. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5027. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5028. ;;
  5029. hppa*64*)
  5030. 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]'
  5031. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5032. ;;
  5033. *)
  5034. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5035. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5036. ;;
  5037. esac
  5038. ;;
  5039. interix[3-9]*)
  5040. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5041. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5042. ;;
  5043. irix5* | irix6* | nonstopux*)
  5044. case $LD in
  5045. *-32|*"-32 ") libmagic=32-bit;;
  5046. *-n32|*"-n32 ") libmagic=N32;;
  5047. *-64|*"-64 ") libmagic=64-bit;;
  5048. *) libmagic=never-match;;
  5049. esac
  5050. lt_cv_deplibs_check_method=pass_all
  5051. ;;
  5052. # This must be Linux ELF.
  5053. linux* | k*bsd*-gnu)
  5054. lt_cv_deplibs_check_method=pass_all
  5055. ;;
  5056. netbsd* | netbsdelf*-gnu)
  5057. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  5058. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5059. else
  5060. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5061. fi
  5062. ;;
  5063. newos6*)
  5064. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5065. lt_cv_file_magic_cmd=/usr/bin/file
  5066. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5067. ;;
  5068. nto-qnx*)
  5069. lt_cv_deplibs_check_method=unknown
  5070. ;;
  5071. openbsd*)
  5072. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5073. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5074. else
  5075. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5076. fi
  5077. ;;
  5078. osf3* | osf4* | osf5*)
  5079. lt_cv_deplibs_check_method=pass_all
  5080. ;;
  5081. rdos*)
  5082. lt_cv_deplibs_check_method=pass_all
  5083. ;;
  5084. solaris*)
  5085. lt_cv_deplibs_check_method=pass_all
  5086. ;;
  5087. sysv4 | sysv4.3*)
  5088. case $host_vendor in
  5089. motorola)
  5090. 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]'
  5091. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5092. ;;
  5093. ncr)
  5094. lt_cv_deplibs_check_method=pass_all
  5095. ;;
  5096. sequent)
  5097. lt_cv_file_magic_cmd='/bin/file'
  5098. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5099. ;;
  5100. sni)
  5101. lt_cv_file_magic_cmd='/bin/file'
  5102. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5103. lt_cv_file_magic_test_file=/lib/libc.so
  5104. ;;
  5105. siemens)
  5106. lt_cv_deplibs_check_method=pass_all
  5107. ;;
  5108. pc)
  5109. lt_cv_deplibs_check_method=pass_all
  5110. ;;
  5111. esac
  5112. ;;
  5113. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5114. lt_cv_deplibs_check_method=pass_all
  5115. ;;
  5116. esac
  5117. fi
  5118. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  5119. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  5120. file_magic_cmd=$lt_cv_file_magic_cmd
  5121. deplibs_check_method=$lt_cv_deplibs_check_method
  5122. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5123. # If no C compiler was specified, use CC.
  5124. LTCC=${LTCC-"$CC"}
  5125. # If no C compiler flags were specified, use CFLAGS.
  5126. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5127. # Allow CC to be a program name with arguments.
  5128. compiler=$CC
  5129. # Check whether --enable-libtool-lock was given.
  5130. if test "${enable_libtool_lock+set}" = set; then
  5131. enableval=$enable_libtool_lock;
  5132. fi
  5133. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5134. # Some flags need to be propagated to the compiler or linker for good
  5135. # libtool support.
  5136. case $host in
  5137. ia64-*-hpux*)
  5138. # Find out which ABI we are using.
  5139. echo 'int i;' > conftest.$ac_ext
  5140. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5141. (eval $ac_compile) 2>&5
  5142. ac_status=$?
  5143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5144. (exit $ac_status); }; then
  5145. case `/usr/bin/file conftest.$ac_objext` in
  5146. *ELF-32*)
  5147. HPUX_IA64_MODE="32"
  5148. ;;
  5149. *ELF-64*)
  5150. HPUX_IA64_MODE="64"
  5151. ;;
  5152. esac
  5153. fi
  5154. rm -rf conftest*
  5155. ;;
  5156. *-*-irix6*)
  5157. # Find out which ABI we are using.
  5158. echo '#line 5795 "configure"' > conftest.$ac_ext
  5159. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5160. (eval $ac_compile) 2>&5
  5161. ac_status=$?
  5162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5163. (exit $ac_status); }; then
  5164. if test "$lt_cv_prog_gnu_ld" = yes; then
  5165. case `/usr/bin/file conftest.$ac_objext` in
  5166. *32-bit*)
  5167. LD="${LD-ld} -melf32bsmip"
  5168. ;;
  5169. *N32*)
  5170. LD="${LD-ld} -melf32bmipn32"
  5171. ;;
  5172. *64-bit*)
  5173. LD="${LD-ld} -melf64bmip"
  5174. ;;
  5175. esac
  5176. else
  5177. case `/usr/bin/file conftest.$ac_objext` in
  5178. *32-bit*)
  5179. LD="${LD-ld} -32"
  5180. ;;
  5181. *N32*)
  5182. LD="${LD-ld} -n32"
  5183. ;;
  5184. *64-bit*)
  5185. LD="${LD-ld} -64"
  5186. ;;
  5187. esac
  5188. fi
  5189. fi
  5190. rm -rf conftest*
  5191. ;;
  5192. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5193. s390*-*linux*|sparc*-*linux*)
  5194. # Find out which ABI we are using.
  5195. echo 'int i;' > conftest.$ac_ext
  5196. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5197. (eval $ac_compile) 2>&5
  5198. ac_status=$?
  5199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5200. (exit $ac_status); }; then
  5201. case `/usr/bin/file conftest.o` in
  5202. *32-bit*)
  5203. case $host in
  5204. x86_64-*kfreebsd*-gnu)
  5205. LD="${LD-ld} -m elf_i386_fbsd"
  5206. ;;
  5207. x86_64-*linux*)
  5208. LD="${LD-ld} -m elf_i386"
  5209. ;;
  5210. ppc64-*linux*|powerpc64-*linux*)
  5211. LD="${LD-ld} -m elf32ppclinux"
  5212. ;;
  5213. s390x-*linux*)
  5214. LD="${LD-ld} -m elf_s390"
  5215. ;;
  5216. sparc64-*linux*)
  5217. LD="${LD-ld} -m elf32_sparc"
  5218. ;;
  5219. esac
  5220. ;;
  5221. *64-bit*)
  5222. case $host in
  5223. x86_64-*kfreebsd*-gnu)
  5224. LD="${LD-ld} -m elf_x86_64_fbsd"
  5225. ;;
  5226. x86_64-*linux*)
  5227. LD="${LD-ld} -m elf_x86_64"
  5228. ;;
  5229. ppc*-*linux*|powerpc*-*linux*)
  5230. LD="${LD-ld} -m elf64ppc"
  5231. ;;
  5232. s390*-*linux*)
  5233. LD="${LD-ld} -m elf64_s390"
  5234. ;;
  5235. sparc*-*linux*)
  5236. LD="${LD-ld} -m elf64_sparc"
  5237. ;;
  5238. esac
  5239. ;;
  5240. esac
  5241. fi
  5242. rm -rf conftest*
  5243. ;;
  5244. *-*-sco3.2v5*)
  5245. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5246. SAVE_CFLAGS="$CFLAGS"
  5247. CFLAGS="$CFLAGS -belf"
  5248. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5249. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  5250. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5251. echo $ECHO_N "(cached) $ECHO_C" >&6
  5252. else
  5253. ac_ext=c
  5254. ac_cpp='$CPP $CPPFLAGS'
  5255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5258. cat >conftest.$ac_ext <<_ACEOF
  5259. /* confdefs.h. */
  5260. _ACEOF
  5261. cat confdefs.h >>conftest.$ac_ext
  5262. cat >>conftest.$ac_ext <<_ACEOF
  5263. /* end confdefs.h. */
  5264. int
  5265. main ()
  5266. {
  5267. ;
  5268. return 0;
  5269. }
  5270. _ACEOF
  5271. rm -f conftest.$ac_objext conftest$ac_exeext
  5272. if { (ac_try="$ac_link"
  5273. case "(($ac_try" in
  5274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5275. *) ac_try_echo=$ac_try;;
  5276. esac
  5277. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5278. (eval "$ac_link") 2>conftest.er1
  5279. ac_status=$?
  5280. grep -v '^ *+' conftest.er1 >conftest.err
  5281. rm -f conftest.er1
  5282. cat conftest.err >&5
  5283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5284. (exit $ac_status); } && {
  5285. test -z "$ac_c_werror_flag" ||
  5286. test ! -s conftest.err
  5287. } && test -s conftest$ac_exeext &&
  5288. $as_test_x conftest$ac_exeext; then
  5289. lt_cv_cc_needs_belf=yes
  5290. else
  5291. echo "$as_me: failed program was:" >&5
  5292. sed 's/^/| /' conftest.$ac_ext >&5
  5293. lt_cv_cc_needs_belf=no
  5294. fi
  5295. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5296. conftest$ac_exeext conftest.$ac_ext
  5297. ac_ext=c
  5298. ac_cpp='$CPP $CPPFLAGS'
  5299. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5300. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5301. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5302. fi
  5303. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5304. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  5305. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5306. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5307. CFLAGS="$SAVE_CFLAGS"
  5308. fi
  5309. ;;
  5310. sparc*-*solaris*)
  5311. # Find out which ABI we are using.
  5312. echo 'int i;' > conftest.$ac_ext
  5313. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5314. (eval $ac_compile) 2>&5
  5315. ac_status=$?
  5316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5317. (exit $ac_status); }; then
  5318. case `/usr/bin/file conftest.o` in
  5319. *64-bit*)
  5320. case $lt_cv_prog_gnu_ld in
  5321. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5322. *)
  5323. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5324. LD="${LD-ld} -64"
  5325. fi
  5326. ;;
  5327. esac
  5328. ;;
  5329. esac
  5330. fi
  5331. rm -rf conftest*
  5332. ;;
  5333. *-*-cygwin* | *-*-mingw* | *-*-pw32*)
  5334. if test -n "$ac_tool_prefix"; then
  5335. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5336. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5337. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5338. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5339. if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  5340. echo $ECHO_N "(cached) $ECHO_C" >&6
  5341. else
  5342. if test -n "$DLLTOOL"; then
  5343. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5344. else
  5345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5346. for as_dir in $PATH
  5347. do
  5348. IFS=$as_save_IFS
  5349. test -z "$as_dir" && as_dir=.
  5350. for ac_exec_ext in '' $ac_executable_extensions; do
  5351. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5352. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5353. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5354. break 2
  5355. fi
  5356. done
  5357. done
  5358. IFS=$as_save_IFS
  5359. fi
  5360. fi
  5361. DLLTOOL=$ac_cv_prog_DLLTOOL
  5362. if test -n "$DLLTOOL"; then
  5363. { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  5364. echo "${ECHO_T}$DLLTOOL" >&6; }
  5365. else
  5366. { echo "$as_me:$LINENO: result: no" >&5
  5367. echo "${ECHO_T}no" >&6; }
  5368. fi
  5369. fi
  5370. if test -z "$ac_cv_prog_DLLTOOL"; then
  5371. ac_ct_DLLTOOL=$DLLTOOL
  5372. # Extract the first word of "dlltool", so it can be a program name with args.
  5373. set dummy dlltool; ac_word=$2
  5374. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5375. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5376. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  5377. echo $ECHO_N "(cached) $ECHO_C" >&6
  5378. else
  5379. if test -n "$ac_ct_DLLTOOL"; then
  5380. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5381. else
  5382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5383. for as_dir in $PATH
  5384. do
  5385. IFS=$as_save_IFS
  5386. test -z "$as_dir" && as_dir=.
  5387. for ac_exec_ext in '' $ac_executable_extensions; do
  5388. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5389. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5390. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5391. break 2
  5392. fi
  5393. done
  5394. done
  5395. IFS=$as_save_IFS
  5396. fi
  5397. fi
  5398. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5399. if test -n "$ac_ct_DLLTOOL"; then
  5400. { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  5401. echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
  5402. else
  5403. { echo "$as_me:$LINENO: result: no" >&5
  5404. echo "${ECHO_T}no" >&6; }
  5405. fi
  5406. if test "x$ac_ct_DLLTOOL" = x; then
  5407. DLLTOOL="false"
  5408. else
  5409. case $cross_compiling:$ac_tool_warned in
  5410. yes:)
  5411. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5412. whose name does not start with the host triplet. If you think this
  5413. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5414. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5415. whose name does not start with the host triplet. If you think this
  5416. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5417. ac_tool_warned=yes ;;
  5418. esac
  5419. DLLTOOL=$ac_ct_DLLTOOL
  5420. fi
  5421. else
  5422. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5423. fi
  5424. if test -n "$ac_tool_prefix"; then
  5425. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  5426. set dummy ${ac_tool_prefix}as; ac_word=$2
  5427. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5428. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5429. if test "${ac_cv_prog_AS+set}" = set; then
  5430. echo $ECHO_N "(cached) $ECHO_C" >&6
  5431. else
  5432. if test -n "$AS"; then
  5433. ac_cv_prog_AS="$AS" # Let the user override the test.
  5434. else
  5435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5436. for as_dir in $PATH
  5437. do
  5438. IFS=$as_save_IFS
  5439. test -z "$as_dir" && as_dir=.
  5440. for ac_exec_ext in '' $ac_executable_extensions; do
  5441. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5442. ac_cv_prog_AS="${ac_tool_prefix}as"
  5443. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5444. break 2
  5445. fi
  5446. done
  5447. done
  5448. IFS=$as_save_IFS
  5449. fi
  5450. fi
  5451. AS=$ac_cv_prog_AS
  5452. if test -n "$AS"; then
  5453. { echo "$as_me:$LINENO: result: $AS" >&5
  5454. echo "${ECHO_T}$AS" >&6; }
  5455. else
  5456. { echo "$as_me:$LINENO: result: no" >&5
  5457. echo "${ECHO_T}no" >&6; }
  5458. fi
  5459. fi
  5460. if test -z "$ac_cv_prog_AS"; then
  5461. ac_ct_AS=$AS
  5462. # Extract the first word of "as", so it can be a program name with args.
  5463. set dummy as; ac_word=$2
  5464. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5465. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5466. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  5467. echo $ECHO_N "(cached) $ECHO_C" >&6
  5468. else
  5469. if test -n "$ac_ct_AS"; then
  5470. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  5471. else
  5472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5473. for as_dir in $PATH
  5474. do
  5475. IFS=$as_save_IFS
  5476. test -z "$as_dir" && as_dir=.
  5477. for ac_exec_ext in '' $ac_executable_extensions; do
  5478. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5479. ac_cv_prog_ac_ct_AS="as"
  5480. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5481. break 2
  5482. fi
  5483. done
  5484. done
  5485. IFS=$as_save_IFS
  5486. fi
  5487. fi
  5488. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  5489. if test -n "$ac_ct_AS"; then
  5490. { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  5491. echo "${ECHO_T}$ac_ct_AS" >&6; }
  5492. else
  5493. { echo "$as_me:$LINENO: result: no" >&5
  5494. echo "${ECHO_T}no" >&6; }
  5495. fi
  5496. if test "x$ac_ct_AS" = x; then
  5497. AS="false"
  5498. else
  5499. case $cross_compiling:$ac_tool_warned in
  5500. yes:)
  5501. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5502. whose name does not start with the host triplet. If you think this
  5503. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5504. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5505. whose name does not start with the host triplet. If you think this
  5506. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5507. ac_tool_warned=yes ;;
  5508. esac
  5509. AS=$ac_ct_AS
  5510. fi
  5511. else
  5512. AS="$ac_cv_prog_AS"
  5513. fi
  5514. if test -n "$ac_tool_prefix"; then
  5515. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5516. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5517. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5518. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5519. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  5520. echo $ECHO_N "(cached) $ECHO_C" >&6
  5521. else
  5522. if test -n "$OBJDUMP"; then
  5523. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5524. else
  5525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5526. for as_dir in $PATH
  5527. do
  5528. IFS=$as_save_IFS
  5529. test -z "$as_dir" && as_dir=.
  5530. for ac_exec_ext in '' $ac_executable_extensions; do
  5531. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5532. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5533. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5534. break 2
  5535. fi
  5536. done
  5537. done
  5538. IFS=$as_save_IFS
  5539. fi
  5540. fi
  5541. OBJDUMP=$ac_cv_prog_OBJDUMP
  5542. if test -n "$OBJDUMP"; then
  5543. { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  5544. echo "${ECHO_T}$OBJDUMP" >&6; }
  5545. else
  5546. { echo "$as_me:$LINENO: result: no" >&5
  5547. echo "${ECHO_T}no" >&6; }
  5548. fi
  5549. fi
  5550. if test -z "$ac_cv_prog_OBJDUMP"; then
  5551. ac_ct_OBJDUMP=$OBJDUMP
  5552. # Extract the first word of "objdump", so it can be a program name with args.
  5553. set dummy objdump; ac_word=$2
  5554. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5555. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5556. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  5557. echo $ECHO_N "(cached) $ECHO_C" >&6
  5558. else
  5559. if test -n "$ac_ct_OBJDUMP"; then
  5560. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5561. else
  5562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5563. for as_dir in $PATH
  5564. do
  5565. IFS=$as_save_IFS
  5566. test -z "$as_dir" && as_dir=.
  5567. for ac_exec_ext in '' $ac_executable_extensions; do
  5568. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5569. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5570. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5571. break 2
  5572. fi
  5573. done
  5574. done
  5575. IFS=$as_save_IFS
  5576. fi
  5577. fi
  5578. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5579. if test -n "$ac_ct_OBJDUMP"; then
  5580. { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  5581. echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
  5582. else
  5583. { echo "$as_me:$LINENO: result: no" >&5
  5584. echo "${ECHO_T}no" >&6; }
  5585. fi
  5586. if test "x$ac_ct_OBJDUMP" = x; then
  5587. OBJDUMP="false"
  5588. else
  5589. case $cross_compiling:$ac_tool_warned in
  5590. yes:)
  5591. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5592. whose name does not start with the host triplet. If you think this
  5593. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5594. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5595. whose name does not start with the host triplet. If you think this
  5596. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5597. ac_tool_warned=yes ;;
  5598. esac
  5599. OBJDUMP=$ac_ct_OBJDUMP
  5600. fi
  5601. else
  5602. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5603. fi
  5604. ;;
  5605. esac
  5606. need_locks="$enable_libtool_lock"
  5607. for ac_header in dlfcn.h
  5608. do
  5609. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5610. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5611. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5612. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5613. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5614. echo $ECHO_N "(cached) $ECHO_C" >&6
  5615. fi
  5616. ac_res=`eval echo '${'$as_ac_Header'}'`
  5617. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5618. echo "${ECHO_T}$ac_res" >&6; }
  5619. else
  5620. # Is the header compilable?
  5621. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5622. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5623. cat >conftest.$ac_ext <<_ACEOF
  5624. /* confdefs.h. */
  5625. _ACEOF
  5626. cat confdefs.h >>conftest.$ac_ext
  5627. cat >>conftest.$ac_ext <<_ACEOF
  5628. /* end confdefs.h. */
  5629. $ac_includes_default
  5630. #include <$ac_header>
  5631. _ACEOF
  5632. rm -f conftest.$ac_objext
  5633. if { (ac_try="$ac_compile"
  5634. case "(($ac_try" in
  5635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5636. *) ac_try_echo=$ac_try;;
  5637. esac
  5638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5639. (eval "$ac_compile") 2>conftest.er1
  5640. ac_status=$?
  5641. grep -v '^ *+' conftest.er1 >conftest.err
  5642. rm -f conftest.er1
  5643. cat conftest.err >&5
  5644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5645. (exit $ac_status); } && {
  5646. test -z "$ac_c_werror_flag" ||
  5647. test ! -s conftest.err
  5648. } && test -s conftest.$ac_objext; then
  5649. ac_header_compiler=yes
  5650. else
  5651. echo "$as_me: failed program was:" >&5
  5652. sed 's/^/| /' conftest.$ac_ext >&5
  5653. ac_header_compiler=no
  5654. fi
  5655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5656. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5657. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5658. # Is the header present?
  5659. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5660. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5661. cat >conftest.$ac_ext <<_ACEOF
  5662. /* confdefs.h. */
  5663. _ACEOF
  5664. cat confdefs.h >>conftest.$ac_ext
  5665. cat >>conftest.$ac_ext <<_ACEOF
  5666. /* end confdefs.h. */
  5667. #include <$ac_header>
  5668. _ACEOF
  5669. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5670. case "(($ac_try" in
  5671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5672. *) ac_try_echo=$ac_try;;
  5673. esac
  5674. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5675. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5676. ac_status=$?
  5677. grep -v '^ *+' conftest.er1 >conftest.err
  5678. rm -f conftest.er1
  5679. cat conftest.err >&5
  5680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5681. (exit $ac_status); } >/dev/null && {
  5682. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5683. test ! -s conftest.err
  5684. }; then
  5685. ac_header_preproc=yes
  5686. else
  5687. echo "$as_me: failed program was:" >&5
  5688. sed 's/^/| /' conftest.$ac_ext >&5
  5689. ac_header_preproc=no
  5690. fi
  5691. rm -f conftest.err conftest.$ac_ext
  5692. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5693. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5694. # So? What about this header?
  5695. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5696. yes:no: )
  5697. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5698. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5699. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5700. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5701. ac_header_preproc=yes
  5702. ;;
  5703. no:yes:* )
  5704. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5705. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5706. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5707. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5708. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5709. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5710. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5711. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5712. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5713. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5714. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5715. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5716. ;;
  5717. esac
  5718. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5719. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5720. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5721. echo $ECHO_N "(cached) $ECHO_C" >&6
  5722. else
  5723. eval "$as_ac_Header=\$ac_header_preproc"
  5724. fi
  5725. ac_res=`eval echo '${'$as_ac_Header'}'`
  5726. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5727. echo "${ECHO_T}$ac_res" >&6; }
  5728. fi
  5729. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5730. cat >>confdefs.h <<_ACEOF
  5731. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5732. _ACEOF
  5733. fi
  5734. done
  5735. ac_ext=cpp
  5736. ac_cpp='$CXXCPP $CPPFLAGS'
  5737. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5738. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5739. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5740. if test -z "$CXX"; then
  5741. if test -n "$CCC"; then
  5742. CXX=$CCC
  5743. else
  5744. if test -n "$ac_tool_prefix"; then
  5745. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5746. do
  5747. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5748. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5749. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5750. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5751. if test "${ac_cv_prog_CXX+set}" = set; then
  5752. echo $ECHO_N "(cached) $ECHO_C" >&6
  5753. else
  5754. if test -n "$CXX"; then
  5755. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5756. else
  5757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5758. for as_dir in $PATH
  5759. do
  5760. IFS=$as_save_IFS
  5761. test -z "$as_dir" && as_dir=.
  5762. for ac_exec_ext in '' $ac_executable_extensions; do
  5763. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5764. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5765. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5766. break 2
  5767. fi
  5768. done
  5769. done
  5770. IFS=$as_save_IFS
  5771. fi
  5772. fi
  5773. CXX=$ac_cv_prog_CXX
  5774. if test -n "$CXX"; then
  5775. { echo "$as_me:$LINENO: result: $CXX" >&5
  5776. echo "${ECHO_T}$CXX" >&6; }
  5777. else
  5778. { echo "$as_me:$LINENO: result: no" >&5
  5779. echo "${ECHO_T}no" >&6; }
  5780. fi
  5781. test -n "$CXX" && break
  5782. done
  5783. fi
  5784. if test -z "$CXX"; then
  5785. ac_ct_CXX=$CXX
  5786. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5787. do
  5788. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5789. set dummy $ac_prog; ac_word=$2
  5790. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5791. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5792. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  5793. echo $ECHO_N "(cached) $ECHO_C" >&6
  5794. else
  5795. if test -n "$ac_ct_CXX"; then
  5796. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5797. else
  5798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5799. for as_dir in $PATH
  5800. do
  5801. IFS=$as_save_IFS
  5802. test -z "$as_dir" && as_dir=.
  5803. for ac_exec_ext in '' $ac_executable_extensions; do
  5804. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5805. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5806. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5807. break 2
  5808. fi
  5809. done
  5810. done
  5811. IFS=$as_save_IFS
  5812. fi
  5813. fi
  5814. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5815. if test -n "$ac_ct_CXX"; then
  5816. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  5817. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  5818. else
  5819. { echo "$as_me:$LINENO: result: no" >&5
  5820. echo "${ECHO_T}no" >&6; }
  5821. fi
  5822. test -n "$ac_ct_CXX" && break
  5823. done
  5824. if test "x$ac_ct_CXX" = x; then
  5825. CXX="g++"
  5826. else
  5827. case $cross_compiling:$ac_tool_warned in
  5828. yes:)
  5829. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5830. whose name does not start with the host triplet. If you think this
  5831. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5832. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5833. whose name does not start with the host triplet. If you think this
  5834. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5835. ac_tool_warned=yes ;;
  5836. esac
  5837. CXX=$ac_ct_CXX
  5838. fi
  5839. fi
  5840. fi
  5841. fi
  5842. # Provide some information about the compiler.
  5843. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  5844. ac_compiler=`set X $ac_compile; echo $2`
  5845. { (ac_try="$ac_compiler --version >&5"
  5846. case "(($ac_try" in
  5847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5848. *) ac_try_echo=$ac_try;;
  5849. esac
  5850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5851. (eval "$ac_compiler --version >&5") 2>&5
  5852. ac_status=$?
  5853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5854. (exit $ac_status); }
  5855. { (ac_try="$ac_compiler -v >&5"
  5856. case "(($ac_try" in
  5857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5858. *) ac_try_echo=$ac_try;;
  5859. esac
  5860. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5861. (eval "$ac_compiler -v >&5") 2>&5
  5862. ac_status=$?
  5863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5864. (exit $ac_status); }
  5865. { (ac_try="$ac_compiler -V >&5"
  5866. case "(($ac_try" in
  5867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5868. *) ac_try_echo=$ac_try;;
  5869. esac
  5870. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5871. (eval "$ac_compiler -V >&5") 2>&5
  5872. ac_status=$?
  5873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5874. (exit $ac_status); }
  5875. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  5876. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  5877. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  5878. echo $ECHO_N "(cached) $ECHO_C" >&6
  5879. else
  5880. cat >conftest.$ac_ext <<_ACEOF
  5881. /* confdefs.h. */
  5882. _ACEOF
  5883. cat confdefs.h >>conftest.$ac_ext
  5884. cat >>conftest.$ac_ext <<_ACEOF
  5885. /* end confdefs.h. */
  5886. int
  5887. main ()
  5888. {
  5889. #ifndef __GNUC__
  5890. choke me
  5891. #endif
  5892. ;
  5893. return 0;
  5894. }
  5895. _ACEOF
  5896. rm -f conftest.$ac_objext
  5897. if { (ac_try="$ac_compile"
  5898. case "(($ac_try" in
  5899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5900. *) ac_try_echo=$ac_try;;
  5901. esac
  5902. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5903. (eval "$ac_compile") 2>conftest.er1
  5904. ac_status=$?
  5905. grep -v '^ *+' conftest.er1 >conftest.err
  5906. rm -f conftest.er1
  5907. cat conftest.err >&5
  5908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5909. (exit $ac_status); } && {
  5910. test -z "$ac_cxx_werror_flag" ||
  5911. test ! -s conftest.err
  5912. } && test -s conftest.$ac_objext; then
  5913. ac_compiler_gnu=yes
  5914. else
  5915. echo "$as_me: failed program was:" >&5
  5916. sed 's/^/| /' conftest.$ac_ext >&5
  5917. ac_compiler_gnu=no
  5918. fi
  5919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5920. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5921. fi
  5922. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  5923. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  5924. GXX=`test $ac_compiler_gnu = yes && echo yes`
  5925. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5926. ac_save_CXXFLAGS=$CXXFLAGS
  5927. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  5928. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  5929. if test "${ac_cv_prog_cxx_g+set}" = set; then
  5930. echo $ECHO_N "(cached) $ECHO_C" >&6
  5931. else
  5932. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5933. ac_cxx_werror_flag=yes
  5934. ac_cv_prog_cxx_g=no
  5935. CXXFLAGS="-g"
  5936. cat >conftest.$ac_ext <<_ACEOF
  5937. /* confdefs.h. */
  5938. _ACEOF
  5939. cat confdefs.h >>conftest.$ac_ext
  5940. cat >>conftest.$ac_ext <<_ACEOF
  5941. /* end confdefs.h. */
  5942. int
  5943. main ()
  5944. {
  5945. ;
  5946. return 0;
  5947. }
  5948. _ACEOF
  5949. rm -f conftest.$ac_objext
  5950. if { (ac_try="$ac_compile"
  5951. case "(($ac_try" in
  5952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5953. *) ac_try_echo=$ac_try;;
  5954. esac
  5955. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5956. (eval "$ac_compile") 2>conftest.er1
  5957. ac_status=$?
  5958. grep -v '^ *+' conftest.er1 >conftest.err
  5959. rm -f conftest.er1
  5960. cat conftest.err >&5
  5961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5962. (exit $ac_status); } && {
  5963. test -z "$ac_cxx_werror_flag" ||
  5964. test ! -s conftest.err
  5965. } && test -s conftest.$ac_objext; then
  5966. ac_cv_prog_cxx_g=yes
  5967. else
  5968. echo "$as_me: failed program was:" >&5
  5969. sed 's/^/| /' conftest.$ac_ext >&5
  5970. CXXFLAGS=""
  5971. cat >conftest.$ac_ext <<_ACEOF
  5972. /* confdefs.h. */
  5973. _ACEOF
  5974. cat confdefs.h >>conftest.$ac_ext
  5975. cat >>conftest.$ac_ext <<_ACEOF
  5976. /* end confdefs.h. */
  5977. int
  5978. main ()
  5979. {
  5980. ;
  5981. return 0;
  5982. }
  5983. _ACEOF
  5984. rm -f conftest.$ac_objext
  5985. if { (ac_try="$ac_compile"
  5986. case "(($ac_try" in
  5987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5988. *) ac_try_echo=$ac_try;;
  5989. esac
  5990. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5991. (eval "$ac_compile") 2>conftest.er1
  5992. ac_status=$?
  5993. grep -v '^ *+' conftest.er1 >conftest.err
  5994. rm -f conftest.er1
  5995. cat conftest.err >&5
  5996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5997. (exit $ac_status); } && {
  5998. test -z "$ac_cxx_werror_flag" ||
  5999. test ! -s conftest.err
  6000. } && test -s conftest.$ac_objext; then
  6001. :
  6002. else
  6003. echo "$as_me: failed program was:" >&5
  6004. sed 's/^/| /' conftest.$ac_ext >&5
  6005. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6006. CXXFLAGS="-g"
  6007. cat >conftest.$ac_ext <<_ACEOF
  6008. /* confdefs.h. */
  6009. _ACEOF
  6010. cat confdefs.h >>conftest.$ac_ext
  6011. cat >>conftest.$ac_ext <<_ACEOF
  6012. /* end confdefs.h. */
  6013. int
  6014. main ()
  6015. {
  6016. ;
  6017. return 0;
  6018. }
  6019. _ACEOF
  6020. rm -f conftest.$ac_objext
  6021. if { (ac_try="$ac_compile"
  6022. case "(($ac_try" in
  6023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6024. *) ac_try_echo=$ac_try;;
  6025. esac
  6026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6027. (eval "$ac_compile") 2>conftest.er1
  6028. ac_status=$?
  6029. grep -v '^ *+' conftest.er1 >conftest.err
  6030. rm -f conftest.er1
  6031. cat conftest.err >&5
  6032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6033. (exit $ac_status); } && {
  6034. test -z "$ac_cxx_werror_flag" ||
  6035. test ! -s conftest.err
  6036. } && test -s conftest.$ac_objext; then
  6037. ac_cv_prog_cxx_g=yes
  6038. else
  6039. echo "$as_me: failed program was:" >&5
  6040. sed 's/^/| /' conftest.$ac_ext >&5
  6041. fi
  6042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6043. fi
  6044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6045. fi
  6046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6047. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6048. fi
  6049. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  6050. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  6051. if test "$ac_test_CXXFLAGS" = set; then
  6052. CXXFLAGS=$ac_save_CXXFLAGS
  6053. elif test $ac_cv_prog_cxx_g = yes; then
  6054. if test "$GXX" = yes; then
  6055. CXXFLAGS="-g -O2"
  6056. else
  6057. CXXFLAGS="-g"
  6058. fi
  6059. else
  6060. if test "$GXX" = yes; then
  6061. CXXFLAGS="-O2"
  6062. else
  6063. CXXFLAGS=
  6064. fi
  6065. fi
  6066. ac_ext=cpp
  6067. ac_cpp='$CXXCPP $CPPFLAGS'
  6068. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6069. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6070. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6071. depcc="$CXX" am_compiler_list=
  6072. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6073. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  6074. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  6075. echo $ECHO_N "(cached) $ECHO_C" >&6
  6076. else
  6077. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6078. # We make a subdir and do the tests there. Otherwise we can end up
  6079. # making bogus files that we don't know about and never remove. For
  6080. # instance it was reported that on HP-UX the gcc test will end up
  6081. # making a dummy file named `D' -- because `-MD' means `put the output
  6082. # in D'.
  6083. mkdir conftest.dir
  6084. # Copy depcomp to subdir because otherwise we won't find it if we're
  6085. # using a relative directory.
  6086. cp "$am_depcomp" conftest.dir
  6087. cd conftest.dir
  6088. # We will build objects and dependencies in a subdirectory because
  6089. # it helps to detect inapplicable dependency modes. For instance
  6090. # both Tru64's cc and ICC support -MD to output dependencies as a
  6091. # side effect of compilation, but ICC will put the dependencies in
  6092. # the current directory while Tru64 will put them in the object
  6093. # directory.
  6094. mkdir sub
  6095. am_cv_CXX_dependencies_compiler_type=none
  6096. if test "$am_compiler_list" = ""; then
  6097. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6098. fi
  6099. for depmode in $am_compiler_list; do
  6100. # Setup a source with many dependencies, because some compilers
  6101. # like to wrap large dependency lists on column 80 (with \), and
  6102. # we should not choose a depcomp mode which is confused by this.
  6103. #
  6104. # We need to recreate these files for each test, as the compiler may
  6105. # overwrite some of them when testing with obscure command lines.
  6106. # This happens at least with the AIX C compiler.
  6107. : > sub/conftest.c
  6108. for i in 1 2 3 4 5 6; do
  6109. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6110. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6111. # Solaris 8's {/usr,}/bin/sh.
  6112. touch sub/conftst$i.h
  6113. done
  6114. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6115. case $depmode in
  6116. nosideeffect)
  6117. # after this tag, mechanisms are not by side-effect, so they'll
  6118. # only be used when explicitly requested
  6119. if test "x$enable_dependency_tracking" = xyes; then
  6120. continue
  6121. else
  6122. break
  6123. fi
  6124. ;;
  6125. none) break ;;
  6126. esac
  6127. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6128. # mode. It turns out that the SunPro C++ compiler does not properly
  6129. # handle `-M -o', and we need to detect this.
  6130. if depmode=$depmode \
  6131. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6132. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6133. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6134. >/dev/null 2>conftest.err &&
  6135. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6136. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6137. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6138. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6139. # icc doesn't choke on unknown options, it will just issue warnings
  6140. # or remarks (even with -Werror). So we grep stderr for any message
  6141. # that says an option was ignored or not supported.
  6142. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6143. # icc: Command line warning: ignoring option '-M'; no argument required
  6144. # The diagnosis changed in icc 8.0:
  6145. # icc: Command line remark: option '-MP' not supported
  6146. if (grep 'ignoring option' conftest.err ||
  6147. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6148. am_cv_CXX_dependencies_compiler_type=$depmode
  6149. break
  6150. fi
  6151. fi
  6152. done
  6153. cd ..
  6154. rm -rf conftest.dir
  6155. else
  6156. am_cv_CXX_dependencies_compiler_type=none
  6157. fi
  6158. fi
  6159. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6160. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  6161. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6162. if
  6163. test "x$enable_dependency_tracking" != xno \
  6164. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6165. am__fastdepCXX_TRUE=
  6166. am__fastdepCXX_FALSE='#'
  6167. else
  6168. am__fastdepCXX_TRUE='#'
  6169. am__fastdepCXX_FALSE=
  6170. fi
  6171. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6172. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6173. (test "X$CXX" != "Xg++"))) ; then
  6174. ac_ext=cpp
  6175. ac_cpp='$CXXCPP $CPPFLAGS'
  6176. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6177. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6178. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6179. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  6180. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  6181. if test -z "$CXXCPP"; then
  6182. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  6183. echo $ECHO_N "(cached) $ECHO_C" >&6
  6184. else
  6185. # Double quotes because CXXCPP needs to be expanded
  6186. for CXXCPP in "$CXX -E" "/lib/cpp"
  6187. do
  6188. ac_preproc_ok=false
  6189. for ac_cxx_preproc_warn_flag in '' yes
  6190. do
  6191. # Use a header file that comes with gcc, so configuring glibc
  6192. # with a fresh cross-compiler works.
  6193. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6194. # <limits.h> exists even on freestanding compilers.
  6195. # On the NeXT, cc -E runs the code through the compiler's parser,
  6196. # not just through cpp. "Syntax error" is here to catch this case.
  6197. cat >conftest.$ac_ext <<_ACEOF
  6198. /* confdefs.h. */
  6199. _ACEOF
  6200. cat confdefs.h >>conftest.$ac_ext
  6201. cat >>conftest.$ac_ext <<_ACEOF
  6202. /* end confdefs.h. */
  6203. #ifdef __STDC__
  6204. # include <limits.h>
  6205. #else
  6206. # include <assert.h>
  6207. #endif
  6208. Syntax error
  6209. _ACEOF
  6210. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6211. case "(($ac_try" in
  6212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6213. *) ac_try_echo=$ac_try;;
  6214. esac
  6215. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6216. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6217. ac_status=$?
  6218. grep -v '^ *+' conftest.er1 >conftest.err
  6219. rm -f conftest.er1
  6220. cat conftest.err >&5
  6221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6222. (exit $ac_status); } >/dev/null && {
  6223. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6224. test ! -s conftest.err
  6225. }; then
  6226. :
  6227. else
  6228. echo "$as_me: failed program was:" >&5
  6229. sed 's/^/| /' conftest.$ac_ext >&5
  6230. # Broken: fails on valid input.
  6231. continue
  6232. fi
  6233. rm -f conftest.err conftest.$ac_ext
  6234. # OK, works on sane cases. Now check whether nonexistent headers
  6235. # can be detected and how.
  6236. cat >conftest.$ac_ext <<_ACEOF
  6237. /* confdefs.h. */
  6238. _ACEOF
  6239. cat confdefs.h >>conftest.$ac_ext
  6240. cat >>conftest.$ac_ext <<_ACEOF
  6241. /* end confdefs.h. */
  6242. #include <ac_nonexistent.h>
  6243. _ACEOF
  6244. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6245. case "(($ac_try" in
  6246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6247. *) ac_try_echo=$ac_try;;
  6248. esac
  6249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6250. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6251. ac_status=$?
  6252. grep -v '^ *+' conftest.er1 >conftest.err
  6253. rm -f conftest.er1
  6254. cat conftest.err >&5
  6255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6256. (exit $ac_status); } >/dev/null && {
  6257. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6258. test ! -s conftest.err
  6259. }; then
  6260. # Broken: success on invalid input.
  6261. continue
  6262. else
  6263. echo "$as_me: failed program was:" >&5
  6264. sed 's/^/| /' conftest.$ac_ext >&5
  6265. # Passes both tests.
  6266. ac_preproc_ok=:
  6267. break
  6268. fi
  6269. rm -f conftest.err conftest.$ac_ext
  6270. done
  6271. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6272. rm -f conftest.err conftest.$ac_ext
  6273. if $ac_preproc_ok; then
  6274. break
  6275. fi
  6276. done
  6277. ac_cv_prog_CXXCPP=$CXXCPP
  6278. fi
  6279. CXXCPP=$ac_cv_prog_CXXCPP
  6280. else
  6281. ac_cv_prog_CXXCPP=$CXXCPP
  6282. fi
  6283. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  6284. echo "${ECHO_T}$CXXCPP" >&6; }
  6285. ac_preproc_ok=false
  6286. for ac_cxx_preproc_warn_flag in '' yes
  6287. do
  6288. # Use a header file that comes with gcc, so configuring glibc
  6289. # with a fresh cross-compiler works.
  6290. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6291. # <limits.h> exists even on freestanding compilers.
  6292. # On the NeXT, cc -E runs the code through the compiler's parser,
  6293. # not just through cpp. "Syntax error" is here to catch this case.
  6294. cat >conftest.$ac_ext <<_ACEOF
  6295. /* confdefs.h. */
  6296. _ACEOF
  6297. cat confdefs.h >>conftest.$ac_ext
  6298. cat >>conftest.$ac_ext <<_ACEOF
  6299. /* end confdefs.h. */
  6300. #ifdef __STDC__
  6301. # include <limits.h>
  6302. #else
  6303. # include <assert.h>
  6304. #endif
  6305. Syntax error
  6306. _ACEOF
  6307. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6308. case "(($ac_try" in
  6309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6310. *) ac_try_echo=$ac_try;;
  6311. esac
  6312. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6313. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6314. ac_status=$?
  6315. grep -v '^ *+' conftest.er1 >conftest.err
  6316. rm -f conftest.er1
  6317. cat conftest.err >&5
  6318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6319. (exit $ac_status); } >/dev/null && {
  6320. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6321. test ! -s conftest.err
  6322. }; then
  6323. :
  6324. else
  6325. echo "$as_me: failed program was:" >&5
  6326. sed 's/^/| /' conftest.$ac_ext >&5
  6327. # Broken: fails on valid input.
  6328. continue
  6329. fi
  6330. rm -f conftest.err conftest.$ac_ext
  6331. # OK, works on sane cases. Now check whether nonexistent headers
  6332. # can be detected and how.
  6333. cat >conftest.$ac_ext <<_ACEOF
  6334. /* confdefs.h. */
  6335. _ACEOF
  6336. cat confdefs.h >>conftest.$ac_ext
  6337. cat >>conftest.$ac_ext <<_ACEOF
  6338. /* end confdefs.h. */
  6339. #include <ac_nonexistent.h>
  6340. _ACEOF
  6341. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6342. case "(($ac_try" in
  6343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6344. *) ac_try_echo=$ac_try;;
  6345. esac
  6346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6347. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6348. ac_status=$?
  6349. grep -v '^ *+' conftest.er1 >conftest.err
  6350. rm -f conftest.er1
  6351. cat conftest.err >&5
  6352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6353. (exit $ac_status); } >/dev/null && {
  6354. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6355. test ! -s conftest.err
  6356. }; then
  6357. # Broken: success on invalid input.
  6358. continue
  6359. else
  6360. echo "$as_me: failed program was:" >&5
  6361. sed 's/^/| /' conftest.$ac_ext >&5
  6362. # Passes both tests.
  6363. ac_preproc_ok=:
  6364. break
  6365. fi
  6366. rm -f conftest.err conftest.$ac_ext
  6367. done
  6368. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6369. rm -f conftest.err conftest.$ac_ext
  6370. if $ac_preproc_ok; then
  6371. :
  6372. else
  6373. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  6374. See \`config.log' for more details." >&5
  6375. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  6376. See \`config.log' for more details." >&2;}
  6377. { (exit 1); exit 1; }; }
  6378. fi
  6379. ac_ext=cpp
  6380. ac_cpp='$CXXCPP $CPPFLAGS'
  6381. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6382. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6383. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6384. fi
  6385. ac_ext=f
  6386. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  6387. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6388. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  6389. if test -n "$ac_tool_prefix"; then
  6390. 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
  6391. do
  6392. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6393. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6394. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6395. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6396. if test "${ac_cv_prog_F77+set}" = set; then
  6397. echo $ECHO_N "(cached) $ECHO_C" >&6
  6398. else
  6399. if test -n "$F77"; then
  6400. ac_cv_prog_F77="$F77" # Let the user override the test.
  6401. else
  6402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6403. for as_dir in $PATH
  6404. do
  6405. IFS=$as_save_IFS
  6406. test -z "$as_dir" && as_dir=.
  6407. for ac_exec_ext in '' $ac_executable_extensions; do
  6408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6409. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  6410. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6411. break 2
  6412. fi
  6413. done
  6414. done
  6415. IFS=$as_save_IFS
  6416. fi
  6417. fi
  6418. F77=$ac_cv_prog_F77
  6419. if test -n "$F77"; then
  6420. { echo "$as_me:$LINENO: result: $F77" >&5
  6421. echo "${ECHO_T}$F77" >&6; }
  6422. else
  6423. { echo "$as_me:$LINENO: result: no" >&5
  6424. echo "${ECHO_T}no" >&6; }
  6425. fi
  6426. test -n "$F77" && break
  6427. done
  6428. fi
  6429. if test -z "$F77"; then
  6430. ac_ct_F77=$F77
  6431. 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
  6432. do
  6433. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6434. set dummy $ac_prog; ac_word=$2
  6435. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6436. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6437. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  6438. echo $ECHO_N "(cached) $ECHO_C" >&6
  6439. else
  6440. if test -n "$ac_ct_F77"; then
  6441. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  6442. else
  6443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6444. for as_dir in $PATH
  6445. do
  6446. IFS=$as_save_IFS
  6447. test -z "$as_dir" && as_dir=.
  6448. for ac_exec_ext in '' $ac_executable_extensions; do
  6449. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6450. ac_cv_prog_ac_ct_F77="$ac_prog"
  6451. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6452. break 2
  6453. fi
  6454. done
  6455. done
  6456. IFS=$as_save_IFS
  6457. fi
  6458. fi
  6459. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  6460. if test -n "$ac_ct_F77"; then
  6461. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  6462. echo "${ECHO_T}$ac_ct_F77" >&6; }
  6463. else
  6464. { echo "$as_me:$LINENO: result: no" >&5
  6465. echo "${ECHO_T}no" >&6; }
  6466. fi
  6467. test -n "$ac_ct_F77" && break
  6468. done
  6469. if test "x$ac_ct_F77" = x; then
  6470. F77=""
  6471. else
  6472. case $cross_compiling:$ac_tool_warned in
  6473. yes:)
  6474. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6475. whose name does not start with the host triplet. If you think this
  6476. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6477. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6478. whose name does not start with the host triplet. If you think this
  6479. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6480. ac_tool_warned=yes ;;
  6481. esac
  6482. F77=$ac_ct_F77
  6483. fi
  6484. fi
  6485. # Provide some information about the compiler.
  6486. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  6487. ac_compiler=`set X $ac_compile; echo $2`
  6488. { (ac_try="$ac_compiler --version >&5"
  6489. case "(($ac_try" in
  6490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6491. *) ac_try_echo=$ac_try;;
  6492. esac
  6493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6494. (eval "$ac_compiler --version >&5") 2>&5
  6495. ac_status=$?
  6496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6497. (exit $ac_status); }
  6498. { (ac_try="$ac_compiler -v >&5"
  6499. case "(($ac_try" in
  6500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6501. *) ac_try_echo=$ac_try;;
  6502. esac
  6503. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6504. (eval "$ac_compiler -v >&5") 2>&5
  6505. ac_status=$?
  6506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6507. (exit $ac_status); }
  6508. { (ac_try="$ac_compiler -V >&5"
  6509. case "(($ac_try" in
  6510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6511. *) ac_try_echo=$ac_try;;
  6512. esac
  6513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6514. (eval "$ac_compiler -V >&5") 2>&5
  6515. ac_status=$?
  6516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6517. (exit $ac_status); }
  6518. rm -f a.out
  6519. # If we don't use `.F' as extension, the preprocessor is not run on the
  6520. # input file. (Note that this only needs to work for GNU compilers.)
  6521. ac_save_ext=$ac_ext
  6522. ac_ext=F
  6523. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  6524. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  6525. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  6526. echo $ECHO_N "(cached) $ECHO_C" >&6
  6527. else
  6528. cat >conftest.$ac_ext <<_ACEOF
  6529. program main
  6530. #ifndef __GNUC__
  6531. choke me
  6532. #endif
  6533. end
  6534. _ACEOF
  6535. rm -f conftest.$ac_objext
  6536. if { (ac_try="$ac_compile"
  6537. case "(($ac_try" in
  6538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6539. *) ac_try_echo=$ac_try;;
  6540. esac
  6541. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6542. (eval "$ac_compile") 2>conftest.er1
  6543. ac_status=$?
  6544. grep -v '^ *+' conftest.er1 >conftest.err
  6545. rm -f conftest.er1
  6546. cat conftest.err >&5
  6547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6548. (exit $ac_status); } && {
  6549. test -z "$ac_f77_werror_flag" ||
  6550. test ! -s conftest.err
  6551. } && test -s conftest.$ac_objext; then
  6552. ac_compiler_gnu=yes
  6553. else
  6554. echo "$as_me: failed program was:" >&5
  6555. sed 's/^/| /' conftest.$ac_ext >&5
  6556. ac_compiler_gnu=no
  6557. fi
  6558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6559. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  6560. fi
  6561. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  6562. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  6563. ac_ext=$ac_save_ext
  6564. ac_test_FFLAGS=${FFLAGS+set}
  6565. ac_save_FFLAGS=$FFLAGS
  6566. FFLAGS=
  6567. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  6568. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  6569. if test "${ac_cv_prog_f77_g+set}" = set; then
  6570. echo $ECHO_N "(cached) $ECHO_C" >&6
  6571. else
  6572. FFLAGS=-g
  6573. cat >conftest.$ac_ext <<_ACEOF
  6574. program main
  6575. end
  6576. _ACEOF
  6577. rm -f conftest.$ac_objext
  6578. if { (ac_try="$ac_compile"
  6579. case "(($ac_try" in
  6580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6581. *) ac_try_echo=$ac_try;;
  6582. esac
  6583. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6584. (eval "$ac_compile") 2>conftest.er1
  6585. ac_status=$?
  6586. grep -v '^ *+' conftest.er1 >conftest.err
  6587. rm -f conftest.er1
  6588. cat conftest.err >&5
  6589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6590. (exit $ac_status); } && {
  6591. test -z "$ac_f77_werror_flag" ||
  6592. test ! -s conftest.err
  6593. } && test -s conftest.$ac_objext; then
  6594. ac_cv_prog_f77_g=yes
  6595. else
  6596. echo "$as_me: failed program was:" >&5
  6597. sed 's/^/| /' conftest.$ac_ext >&5
  6598. ac_cv_prog_f77_g=no
  6599. fi
  6600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6601. fi
  6602. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  6603. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  6604. if test "$ac_test_FFLAGS" = set; then
  6605. FFLAGS=$ac_save_FFLAGS
  6606. elif test $ac_cv_prog_f77_g = yes; then
  6607. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  6608. FFLAGS="-g -O2"
  6609. else
  6610. FFLAGS="-g"
  6611. fi
  6612. else
  6613. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  6614. FFLAGS="-O2"
  6615. else
  6616. FFLAGS=
  6617. fi
  6618. fi
  6619. G77=`test $ac_compiler_gnu = yes && echo yes`
  6620. ac_ext=c
  6621. ac_cpp='$CPP $CPPFLAGS'
  6622. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6623. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6624. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6625. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  6626. # find the maximum length of command line arguments
  6627. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  6628. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  6629. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  6630. echo $ECHO_N "(cached) $ECHO_C" >&6
  6631. else
  6632. i=0
  6633. teststring="ABCD"
  6634. case $build_os in
  6635. msdosdjgpp*)
  6636. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6637. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6638. # during glob expansion). Even if it were fixed, the result of this
  6639. # check would be larger than it should be.
  6640. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6641. ;;
  6642. gnu*)
  6643. # Under GNU Hurd, this test is not required because there is
  6644. # no limit to the length of command line arguments.
  6645. # Libtool will interpret -1 as no limit whatsoever
  6646. lt_cv_sys_max_cmd_len=-1;
  6647. ;;
  6648. cygwin* | mingw*)
  6649. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6650. # about 5 minutes as the teststring grows exponentially.
  6651. # Worse, since 9x/ME are not pre-emptively multitasking,
  6652. # you end up with a "frozen" computer, even though with patience
  6653. # the test eventually succeeds (with a max line length of 256k).
  6654. # Instead, let's just punt: use the minimum linelength reported by
  6655. # all of the supported platforms: 8192 (on NT/2K/XP).
  6656. lt_cv_sys_max_cmd_len=8192;
  6657. ;;
  6658. amigaos*)
  6659. # On AmigaOS with pdksh, this test takes hours, literally.
  6660. # So we just punt and use a minimum line length of 8192.
  6661. lt_cv_sys_max_cmd_len=8192;
  6662. ;;
  6663. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  6664. # This has been around since 386BSD, at least. Likely further.
  6665. if test -x /sbin/sysctl; then
  6666. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6667. elif test -x /usr/sbin/sysctl; then
  6668. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6669. else
  6670. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6671. fi
  6672. # And add a safety zone
  6673. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6674. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6675. ;;
  6676. interix*)
  6677. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6678. lt_cv_sys_max_cmd_len=196608
  6679. ;;
  6680. osf*)
  6681. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6682. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6683. # nice to cause kernel panics so lets avoid the loop below.
  6684. # First set a reasonable default.
  6685. lt_cv_sys_max_cmd_len=16384
  6686. #
  6687. if test -x /sbin/sysconfig; then
  6688. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6689. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6690. esac
  6691. fi
  6692. ;;
  6693. sco3.2v5*)
  6694. lt_cv_sys_max_cmd_len=102400
  6695. ;;
  6696. sysv5* | sco5v6* | sysv4.2uw2*)
  6697. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6698. if test -n "$kargmax"; then
  6699. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6700. else
  6701. lt_cv_sys_max_cmd_len=32768
  6702. fi
  6703. ;;
  6704. *)
  6705. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6706. if test -n "$lt_cv_sys_max_cmd_len"; then
  6707. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6708. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6709. else
  6710. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6711. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  6712. = "XX$teststring") >/dev/null 2>&1 &&
  6713. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  6714. lt_cv_sys_max_cmd_len=$new_result &&
  6715. test $i != 17 # 1/2 MB should be enough
  6716. do
  6717. i=`expr $i + 1`
  6718. teststring=$teststring$teststring
  6719. done
  6720. teststring=
  6721. # Add a significant safety factor because C++ compilers can tack on massive
  6722. # amounts of additional arguments before passing them to the linker.
  6723. # It appears as though 1/2 is a usable value.
  6724. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6725. fi
  6726. ;;
  6727. esac
  6728. fi
  6729. if test -n $lt_cv_sys_max_cmd_len ; then
  6730. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  6731. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  6732. else
  6733. { echo "$as_me:$LINENO: result: none" >&5
  6734. echo "${ECHO_T}none" >&6; }
  6735. fi
  6736. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6737. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  6738. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  6739. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  6740. echo $ECHO_N "(cached) $ECHO_C" >&6
  6741. else
  6742. # These are sane defaults that work on at least a few old systems.
  6743. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6744. # Character class describing NM global symbol codes.
  6745. symcode='[BCDEGRST]'
  6746. # Regexp to match symbols that can be accessed directly from C.
  6747. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6748. # Transform an extracted symbol line into a proper C declaration
  6749. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  6750. # Transform an extracted symbol line into symbol name and symbol address
  6751. 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'"
  6752. # Define system-specific variables.
  6753. case $host_os in
  6754. aix*)
  6755. symcode='[BCDT]'
  6756. ;;
  6757. cygwin* | mingw* | pw32*)
  6758. symcode='[ABCDGISTW]'
  6759. ;;
  6760. hpux*) # Its linker distinguishes data from code symbols
  6761. if test "$host_cpu" = ia64; then
  6762. symcode='[ABCDEGRST]'
  6763. fi
  6764. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6765. 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'"
  6766. ;;
  6767. linux* | k*bsd*-gnu)
  6768. if test "$host_cpu" = ia64; then
  6769. symcode='[ABCDGIRSTW]'
  6770. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6771. 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'"
  6772. fi
  6773. ;;
  6774. irix* | nonstopux*)
  6775. symcode='[BCDEGRST]'
  6776. ;;
  6777. osf*)
  6778. symcode='[BCDEGQRST]'
  6779. ;;
  6780. solaris*)
  6781. symcode='[BDRT]'
  6782. ;;
  6783. sco3.2v5*)
  6784. symcode='[DT]'
  6785. ;;
  6786. sysv4.2uw2*)
  6787. symcode='[DT]'
  6788. ;;
  6789. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6790. symcode='[ABDT]'
  6791. ;;
  6792. sysv4)
  6793. symcode='[DFNSTU]'
  6794. ;;
  6795. esac
  6796. # Handle CRLF in mingw tool chain
  6797. opt_cr=
  6798. case $build_os in
  6799. mingw*)
  6800. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6801. ;;
  6802. esac
  6803. # If we're using GNU nm, then use its standard symbol codes.
  6804. case `$NM -V 2>&1` in
  6805. *GNU* | *'with BFD'*)
  6806. symcode='[ABCDGIRSTW]' ;;
  6807. esac
  6808. # Try without a prefix undercore, then with it.
  6809. for ac_symprfx in "" "_"; do
  6810. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6811. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6812. # Write the raw and C identifiers.
  6813. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6814. # Check to see that the pipe works correctly.
  6815. pipe_works=no
  6816. rm -f conftest*
  6817. cat > conftest.$ac_ext <<EOF
  6818. #ifdef __cplusplus
  6819. extern "C" {
  6820. #endif
  6821. char nm_test_var;
  6822. void nm_test_func(){}
  6823. #ifdef __cplusplus
  6824. }
  6825. #endif
  6826. int main(){nm_test_var='a';nm_test_func();return(0);}
  6827. EOF
  6828. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6829. (eval $ac_compile) 2>&5
  6830. ac_status=$?
  6831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6832. (exit $ac_status); }; then
  6833. # Now try to grab the symbols.
  6834. nlist=conftest.nm
  6835. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6836. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6837. ac_status=$?
  6838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6839. (exit $ac_status); } && test -s "$nlist"; then
  6840. # Try sorting and uniquifying the output.
  6841. if sort "$nlist" | uniq > "$nlist"T; then
  6842. mv -f "$nlist"T "$nlist"
  6843. else
  6844. rm -f "$nlist"T
  6845. fi
  6846. # Make sure that we snagged all the symbols we need.
  6847. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6848. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6849. cat <<EOF > conftest.$ac_ext
  6850. #ifdef __cplusplus
  6851. extern "C" {
  6852. #endif
  6853. EOF
  6854. # Now generate the symbol file.
  6855. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6856. cat <<EOF >> conftest.$ac_ext
  6857. #if defined (__STDC__) && __STDC__
  6858. # define lt_ptr_t void *
  6859. #else
  6860. # define lt_ptr_t char *
  6861. # define const
  6862. #endif
  6863. /* The mapping between symbol names and symbols. */
  6864. const struct {
  6865. const char *name;
  6866. lt_ptr_t address;
  6867. }
  6868. lt_preloaded_symbols[] =
  6869. {
  6870. EOF
  6871. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6872. cat <<\EOF >> conftest.$ac_ext
  6873. {0, (lt_ptr_t) 0}
  6874. };
  6875. #ifdef __cplusplus
  6876. }
  6877. #endif
  6878. EOF
  6879. # Now try linking the two files.
  6880. mv conftest.$ac_objext conftstm.$ac_objext
  6881. lt_save_LIBS="$LIBS"
  6882. lt_save_CFLAGS="$CFLAGS"
  6883. LIBS="conftstm.$ac_objext"
  6884. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6885. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6886. (eval $ac_link) 2>&5
  6887. ac_status=$?
  6888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6889. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6890. pipe_works=yes
  6891. fi
  6892. LIBS="$lt_save_LIBS"
  6893. CFLAGS="$lt_save_CFLAGS"
  6894. else
  6895. echo "cannot find nm_test_func in $nlist" >&5
  6896. fi
  6897. else
  6898. echo "cannot find nm_test_var in $nlist" >&5
  6899. fi
  6900. else
  6901. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6902. fi
  6903. else
  6904. echo "$progname: failed program was:" >&5
  6905. cat conftest.$ac_ext >&5
  6906. fi
  6907. rm -rf conftest* conftst*
  6908. # Do not use the global_symbol_pipe unless it works.
  6909. if test "$pipe_works" = yes; then
  6910. break
  6911. else
  6912. lt_cv_sys_global_symbol_pipe=
  6913. fi
  6914. done
  6915. fi
  6916. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6917. lt_cv_sys_global_symbol_to_cdecl=
  6918. fi
  6919. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6920. { echo "$as_me:$LINENO: result: failed" >&5
  6921. echo "${ECHO_T}failed" >&6; }
  6922. else
  6923. { echo "$as_me:$LINENO: result: ok" >&5
  6924. echo "${ECHO_T}ok" >&6; }
  6925. fi
  6926. { echo "$as_me:$LINENO: checking for objdir" >&5
  6927. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  6928. if test "${lt_cv_objdir+set}" = set; then
  6929. echo $ECHO_N "(cached) $ECHO_C" >&6
  6930. else
  6931. rm -f .libs 2>/dev/null
  6932. mkdir .libs 2>/dev/null
  6933. if test -d .libs; then
  6934. lt_cv_objdir=.libs
  6935. else
  6936. # MS-DOS does not allow filenames that begin with a dot.
  6937. lt_cv_objdir=_libs
  6938. fi
  6939. rmdir .libs 2>/dev/null
  6940. fi
  6941. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6942. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  6943. objdir=$lt_cv_objdir
  6944. case $host_os in
  6945. aix3*)
  6946. # AIX sometimes has problems with the GCC collect2 program. For some
  6947. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6948. # vanish in a puff of smoke.
  6949. if test "X${COLLECT_NAMES+set}" != Xset; then
  6950. COLLECT_NAMES=
  6951. export COLLECT_NAMES
  6952. fi
  6953. ;;
  6954. esac
  6955. # Sed substitution that helps us do robust quoting. It backslashifies
  6956. # metacharacters that are still active within double-quoted strings.
  6957. Xsed='sed -e 1s/^X//'
  6958. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6959. # Same as above, but do not quote variable references.
  6960. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6961. # Sed substitution to delay expansion of an escaped shell variable in a
  6962. # double_quote_subst'ed string.
  6963. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6964. # Sed substitution to avoid accidental globbing in evaled expressions
  6965. no_glob_subst='s/\*/\\\*/g'
  6966. # Constants:
  6967. rm="rm -f"
  6968. # Global variables:
  6969. default_ofile=libtool
  6970. can_build_shared=yes
  6971. # All known linkers require a `.a' archive for static linking (except MSVC,
  6972. # which needs '.lib').
  6973. libext=a
  6974. ltmain="$ac_aux_dir/ltmain.sh"
  6975. ofile="$default_ofile"
  6976. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6977. if test -n "$ac_tool_prefix"; then
  6978. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6979. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6980. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6981. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6982. if test "${ac_cv_prog_AR+set}" = set; then
  6983. echo $ECHO_N "(cached) $ECHO_C" >&6
  6984. else
  6985. if test -n "$AR"; then
  6986. ac_cv_prog_AR="$AR" # Let the user override the test.
  6987. else
  6988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6989. for as_dir in $PATH
  6990. do
  6991. IFS=$as_save_IFS
  6992. test -z "$as_dir" && as_dir=.
  6993. for ac_exec_ext in '' $ac_executable_extensions; do
  6994. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6995. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6996. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6997. break 2
  6998. fi
  6999. done
  7000. done
  7001. IFS=$as_save_IFS
  7002. fi
  7003. fi
  7004. AR=$ac_cv_prog_AR
  7005. if test -n "$AR"; then
  7006. { echo "$as_me:$LINENO: result: $AR" >&5
  7007. echo "${ECHO_T}$AR" >&6; }
  7008. else
  7009. { echo "$as_me:$LINENO: result: no" >&5
  7010. echo "${ECHO_T}no" >&6; }
  7011. fi
  7012. fi
  7013. if test -z "$ac_cv_prog_AR"; then
  7014. ac_ct_AR=$AR
  7015. # Extract the first word of "ar", so it can be a program name with args.
  7016. set dummy ar; ac_word=$2
  7017. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7018. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7019. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  7020. echo $ECHO_N "(cached) $ECHO_C" >&6
  7021. else
  7022. if test -n "$ac_ct_AR"; then
  7023. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7024. else
  7025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7026. for as_dir in $PATH
  7027. do
  7028. IFS=$as_save_IFS
  7029. test -z "$as_dir" && as_dir=.
  7030. for ac_exec_ext in '' $ac_executable_extensions; do
  7031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7032. ac_cv_prog_ac_ct_AR="ar"
  7033. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7034. break 2
  7035. fi
  7036. done
  7037. done
  7038. IFS=$as_save_IFS
  7039. fi
  7040. fi
  7041. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7042. if test -n "$ac_ct_AR"; then
  7043. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  7044. echo "${ECHO_T}$ac_ct_AR" >&6; }
  7045. else
  7046. { echo "$as_me:$LINENO: result: no" >&5
  7047. echo "${ECHO_T}no" >&6; }
  7048. fi
  7049. if test "x$ac_ct_AR" = x; then
  7050. AR="false"
  7051. else
  7052. case $cross_compiling:$ac_tool_warned in
  7053. yes:)
  7054. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7055. whose name does not start with the host triplet. If you think this
  7056. configuration is useful to you, please write to autoconf@gnu.org." >&5
  7057. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7058. whose name does not start with the host triplet. If you think this
  7059. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7060. ac_tool_warned=yes ;;
  7061. esac
  7062. AR=$ac_ct_AR
  7063. fi
  7064. else
  7065. AR="$ac_cv_prog_AR"
  7066. fi
  7067. if test -n "$ac_tool_prefix"; then
  7068. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7069. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7070. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7071. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7072. if test "${ac_cv_prog_RANLIB+set}" = set; then
  7073. echo $ECHO_N "(cached) $ECHO_C" >&6
  7074. else
  7075. if test -n "$RANLIB"; then
  7076. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7077. else
  7078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7079. for as_dir in $PATH
  7080. do
  7081. IFS=$as_save_IFS
  7082. test -z "$as_dir" && as_dir=.
  7083. for ac_exec_ext in '' $ac_executable_extensions; do
  7084. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7085. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7086. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7087. break 2
  7088. fi
  7089. done
  7090. done
  7091. IFS=$as_save_IFS
  7092. fi
  7093. fi
  7094. RANLIB=$ac_cv_prog_RANLIB
  7095. if test -n "$RANLIB"; then
  7096. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  7097. echo "${ECHO_T}$RANLIB" >&6; }
  7098. else
  7099. { echo "$as_me:$LINENO: result: no" >&5
  7100. echo "${ECHO_T}no" >&6; }
  7101. fi
  7102. fi
  7103. if test -z "$ac_cv_prog_RANLIB"; then
  7104. ac_ct_RANLIB=$RANLIB
  7105. # Extract the first word of "ranlib", so it can be a program name with args.
  7106. set dummy ranlib; ac_word=$2
  7107. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7108. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7109. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  7110. echo $ECHO_N "(cached) $ECHO_C" >&6
  7111. else
  7112. if test -n "$ac_ct_RANLIB"; then
  7113. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7114. else
  7115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7116. for as_dir in $PATH
  7117. do
  7118. IFS=$as_save_IFS
  7119. test -z "$as_dir" && as_dir=.
  7120. for ac_exec_ext in '' $ac_executable_extensions; do
  7121. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7122. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7123. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7124. break 2
  7125. fi
  7126. done
  7127. done
  7128. IFS=$as_save_IFS
  7129. fi
  7130. fi
  7131. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7132. if test -n "$ac_ct_RANLIB"; then
  7133. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  7134. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  7135. else
  7136. { echo "$as_me:$LINENO: result: no" >&5
  7137. echo "${ECHO_T}no" >&6; }
  7138. fi
  7139. if test "x$ac_ct_RANLIB" = x; then
  7140. RANLIB=":"
  7141. else
  7142. case $cross_compiling:$ac_tool_warned in
  7143. yes:)
  7144. { echo "$as_me:$LINENO: 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." >&5
  7147. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7148. whose name does not start with the host triplet. If you think this
  7149. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7150. ac_tool_warned=yes ;;
  7151. esac
  7152. RANLIB=$ac_ct_RANLIB
  7153. fi
  7154. else
  7155. RANLIB="$ac_cv_prog_RANLIB"
  7156. fi
  7157. if test -n "$ac_tool_prefix"; then
  7158. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7159. set dummy ${ac_tool_prefix}strip; ac_word=$2
  7160. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7161. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7162. if test "${ac_cv_prog_STRIP+set}" = set; then
  7163. echo $ECHO_N "(cached) $ECHO_C" >&6
  7164. else
  7165. if test -n "$STRIP"; then
  7166. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7167. else
  7168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7169. for as_dir in $PATH
  7170. do
  7171. IFS=$as_save_IFS
  7172. test -z "$as_dir" && as_dir=.
  7173. for ac_exec_ext in '' $ac_executable_extensions; do
  7174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7175. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7176. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7177. break 2
  7178. fi
  7179. done
  7180. done
  7181. IFS=$as_save_IFS
  7182. fi
  7183. fi
  7184. STRIP=$ac_cv_prog_STRIP
  7185. if test -n "$STRIP"; then
  7186. { echo "$as_me:$LINENO: result: $STRIP" >&5
  7187. echo "${ECHO_T}$STRIP" >&6; }
  7188. else
  7189. { echo "$as_me:$LINENO: result: no" >&5
  7190. echo "${ECHO_T}no" >&6; }
  7191. fi
  7192. fi
  7193. if test -z "$ac_cv_prog_STRIP"; then
  7194. ac_ct_STRIP=$STRIP
  7195. # Extract the first word of "strip", so it can be a program name with args.
  7196. set dummy strip; ac_word=$2
  7197. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7198. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7199. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  7200. echo $ECHO_N "(cached) $ECHO_C" >&6
  7201. else
  7202. if test -n "$ac_ct_STRIP"; then
  7203. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7204. else
  7205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7206. for as_dir in $PATH
  7207. do
  7208. IFS=$as_save_IFS
  7209. test -z "$as_dir" && as_dir=.
  7210. for ac_exec_ext in '' $ac_executable_extensions; do
  7211. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7212. ac_cv_prog_ac_ct_STRIP="strip"
  7213. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7214. break 2
  7215. fi
  7216. done
  7217. done
  7218. IFS=$as_save_IFS
  7219. fi
  7220. fi
  7221. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7222. if test -n "$ac_ct_STRIP"; then
  7223. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  7224. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  7225. else
  7226. { echo "$as_me:$LINENO: result: no" >&5
  7227. echo "${ECHO_T}no" >&6; }
  7228. fi
  7229. if test "x$ac_ct_STRIP" = x; then
  7230. STRIP=":"
  7231. else
  7232. case $cross_compiling:$ac_tool_warned in
  7233. yes:)
  7234. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7235. whose name does not start with the host triplet. If you think this
  7236. configuration is useful to you, please write to autoconf@gnu.org." >&5
  7237. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7238. whose name does not start with the host triplet. If you think this
  7239. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7240. ac_tool_warned=yes ;;
  7241. esac
  7242. STRIP=$ac_ct_STRIP
  7243. fi
  7244. else
  7245. STRIP="$ac_cv_prog_STRIP"
  7246. fi
  7247. old_CC="$CC"
  7248. old_CFLAGS="$CFLAGS"
  7249. # Set sane defaults for various variables
  7250. test -z "$AR" && AR=ar
  7251. test -z "$AR_FLAGS" && AR_FLAGS=cru
  7252. test -z "$AS" && AS=as
  7253. test -z "$CC" && CC=cc
  7254. test -z "$LTCC" && LTCC=$CC
  7255. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7256. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7257. test -z "$LD" && LD=ld
  7258. test -z "$LN_S" && LN_S="ln -s"
  7259. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7260. test -z "$NM" && NM=nm
  7261. test -z "$SED" && SED=sed
  7262. test -z "$OBJDUMP" && OBJDUMP=objdump
  7263. test -z "$RANLIB" && RANLIB=:
  7264. test -z "$STRIP" && STRIP=:
  7265. test -z "$ac_objext" && ac_objext=o
  7266. # Determine commands to create old-style static archives.
  7267. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7268. old_postinstall_cmds='chmod 644 $oldlib'
  7269. old_postuninstall_cmds=
  7270. if test -n "$RANLIB"; then
  7271. case $host_os in
  7272. openbsd*)
  7273. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  7274. ;;
  7275. *)
  7276. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  7277. ;;
  7278. esac
  7279. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  7280. fi
  7281. for cc_temp in $compiler""; do
  7282. case $cc_temp in
  7283. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7284. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7285. \-*) ;;
  7286. *) break;;
  7287. esac
  7288. done
  7289. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7290. # Only perform the check for file, if the check method requires it
  7291. case $deplibs_check_method in
  7292. file_magic*)
  7293. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7294. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7295. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  7296. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7297. echo $ECHO_N "(cached) $ECHO_C" >&6
  7298. else
  7299. case $MAGIC_CMD in
  7300. [\\/*] | ?:[\\/]*)
  7301. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7302. ;;
  7303. *)
  7304. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7305. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7306. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7307. for ac_dir in $ac_dummy; do
  7308. IFS="$lt_save_ifs"
  7309. test -z "$ac_dir" && ac_dir=.
  7310. if test -f $ac_dir/${ac_tool_prefix}file; then
  7311. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7312. if test -n "$file_magic_test_file"; then
  7313. case $deplibs_check_method in
  7314. "file_magic "*)
  7315. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7316. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7317. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7318. $EGREP "$file_magic_regex" > /dev/null; then
  7319. :
  7320. else
  7321. cat <<EOF 1>&2
  7322. *** Warning: the command libtool uses to detect shared libraries,
  7323. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7324. *** The result is that libtool may fail to recognize shared libraries
  7325. *** as such. This will affect the creation of libtool libraries that
  7326. *** depend on shared libraries, but programs linked with such libtool
  7327. *** libraries will work regardless of this problem. Nevertheless, you
  7328. *** may want to report the problem to your system manager and/or to
  7329. *** bug-libtool@gnu.org
  7330. EOF
  7331. fi ;;
  7332. esac
  7333. fi
  7334. break
  7335. fi
  7336. done
  7337. IFS="$lt_save_ifs"
  7338. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7339. ;;
  7340. esac
  7341. fi
  7342. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7343. if test -n "$MAGIC_CMD"; then
  7344. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7345. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  7346. else
  7347. { echo "$as_me:$LINENO: result: no" >&5
  7348. echo "${ECHO_T}no" >&6; }
  7349. fi
  7350. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7351. if test -n "$ac_tool_prefix"; then
  7352. { echo "$as_me:$LINENO: checking for file" >&5
  7353. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  7354. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7355. echo $ECHO_N "(cached) $ECHO_C" >&6
  7356. else
  7357. case $MAGIC_CMD in
  7358. [\\/*] | ?:[\\/]*)
  7359. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7360. ;;
  7361. *)
  7362. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7363. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7364. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7365. for ac_dir in $ac_dummy; do
  7366. IFS="$lt_save_ifs"
  7367. test -z "$ac_dir" && ac_dir=.
  7368. if test -f $ac_dir/file; then
  7369. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7370. if test -n "$file_magic_test_file"; then
  7371. case $deplibs_check_method in
  7372. "file_magic "*)
  7373. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7374. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7375. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7376. $EGREP "$file_magic_regex" > /dev/null; then
  7377. :
  7378. else
  7379. cat <<EOF 1>&2
  7380. *** Warning: the command libtool uses to detect shared libraries,
  7381. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7382. *** The result is that libtool may fail to recognize shared libraries
  7383. *** as such. This will affect the creation of libtool libraries that
  7384. *** depend on shared libraries, but programs linked with such libtool
  7385. *** libraries will work regardless of this problem. Nevertheless, you
  7386. *** may want to report the problem to your system manager and/or to
  7387. *** bug-libtool@gnu.org
  7388. EOF
  7389. fi ;;
  7390. esac
  7391. fi
  7392. break
  7393. fi
  7394. done
  7395. IFS="$lt_save_ifs"
  7396. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7397. ;;
  7398. esac
  7399. fi
  7400. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7401. if test -n "$MAGIC_CMD"; then
  7402. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7403. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  7404. else
  7405. { echo "$as_me:$LINENO: result: no" >&5
  7406. echo "${ECHO_T}no" >&6; }
  7407. fi
  7408. else
  7409. MAGIC_CMD=:
  7410. fi
  7411. fi
  7412. fi
  7413. ;;
  7414. esac
  7415. case $host_os in
  7416. rhapsody* | darwin*)
  7417. if test -n "$ac_tool_prefix"; then
  7418. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7419. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7420. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7421. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7422. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  7423. echo $ECHO_N "(cached) $ECHO_C" >&6
  7424. else
  7425. if test -n "$DSYMUTIL"; then
  7426. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7427. else
  7428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7429. for as_dir in $PATH
  7430. do
  7431. IFS=$as_save_IFS
  7432. test -z "$as_dir" && as_dir=.
  7433. for ac_exec_ext in '' $ac_executable_extensions; do
  7434. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7435. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7436. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7437. break 2
  7438. fi
  7439. done
  7440. done
  7441. IFS=$as_save_IFS
  7442. fi
  7443. fi
  7444. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7445. if test -n "$DSYMUTIL"; then
  7446. { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  7447. echo "${ECHO_T}$DSYMUTIL" >&6; }
  7448. else
  7449. { echo "$as_me:$LINENO: result: no" >&5
  7450. echo "${ECHO_T}no" >&6; }
  7451. fi
  7452. fi
  7453. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7454. ac_ct_DSYMUTIL=$DSYMUTIL
  7455. # Extract the first word of "dsymutil", so it can be a program name with args.
  7456. set dummy dsymutil; ac_word=$2
  7457. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7458. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7459. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  7460. echo $ECHO_N "(cached) $ECHO_C" >&6
  7461. else
  7462. if test -n "$ac_ct_DSYMUTIL"; then
  7463. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7464. else
  7465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7466. for as_dir in $PATH
  7467. do
  7468. IFS=$as_save_IFS
  7469. test -z "$as_dir" && as_dir=.
  7470. for ac_exec_ext in '' $ac_executable_extensions; do
  7471. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7472. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7473. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7474. break 2
  7475. fi
  7476. done
  7477. done
  7478. IFS=$as_save_IFS
  7479. fi
  7480. fi
  7481. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7482. if test -n "$ac_ct_DSYMUTIL"; then
  7483. { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  7484. echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
  7485. else
  7486. { echo "$as_me:$LINENO: result: no" >&5
  7487. echo "${ECHO_T}no" >&6; }
  7488. fi
  7489. if test "x$ac_ct_DSYMUTIL" = x; then
  7490. DSYMUTIL=":"
  7491. else
  7492. case $cross_compiling:$ac_tool_warned in
  7493. yes:)
  7494. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7495. whose name does not start with the host triplet. If you think this
  7496. configuration is useful to you, please write to autoconf@gnu.org." >&5
  7497. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7498. whose name does not start with the host triplet. If you think this
  7499. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7500. ac_tool_warned=yes ;;
  7501. esac
  7502. DSYMUTIL=$ac_ct_DSYMUTIL
  7503. fi
  7504. else
  7505. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7506. fi
  7507. if test -n "$ac_tool_prefix"; then
  7508. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7509. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7510. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7511. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7512. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  7513. echo $ECHO_N "(cached) $ECHO_C" >&6
  7514. else
  7515. if test -n "$NMEDIT"; then
  7516. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7517. else
  7518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7519. for as_dir in $PATH
  7520. do
  7521. IFS=$as_save_IFS
  7522. test -z "$as_dir" && as_dir=.
  7523. for ac_exec_ext in '' $ac_executable_extensions; do
  7524. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7525. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7526. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7527. break 2
  7528. fi
  7529. done
  7530. done
  7531. IFS=$as_save_IFS
  7532. fi
  7533. fi
  7534. NMEDIT=$ac_cv_prog_NMEDIT
  7535. if test -n "$NMEDIT"; then
  7536. { echo "$as_me:$LINENO: result: $NMEDIT" >&5
  7537. echo "${ECHO_T}$NMEDIT" >&6; }
  7538. else
  7539. { echo "$as_me:$LINENO: result: no" >&5
  7540. echo "${ECHO_T}no" >&6; }
  7541. fi
  7542. fi
  7543. if test -z "$ac_cv_prog_NMEDIT"; then
  7544. ac_ct_NMEDIT=$NMEDIT
  7545. # Extract the first word of "nmedit", so it can be a program name with args.
  7546. set dummy nmedit; ac_word=$2
  7547. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7548. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7549. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  7550. echo $ECHO_N "(cached) $ECHO_C" >&6
  7551. else
  7552. if test -n "$ac_ct_NMEDIT"; then
  7553. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7554. else
  7555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7556. for as_dir in $PATH
  7557. do
  7558. IFS=$as_save_IFS
  7559. test -z "$as_dir" && as_dir=.
  7560. for ac_exec_ext in '' $ac_executable_extensions; do
  7561. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7562. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7563. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7564. break 2
  7565. fi
  7566. done
  7567. done
  7568. IFS=$as_save_IFS
  7569. fi
  7570. fi
  7571. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7572. if test -n "$ac_ct_NMEDIT"; then
  7573. { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  7574. echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
  7575. else
  7576. { echo "$as_me:$LINENO: result: no" >&5
  7577. echo "${ECHO_T}no" >&6; }
  7578. fi
  7579. if test "x$ac_ct_NMEDIT" = x; then
  7580. NMEDIT=":"
  7581. else
  7582. case $cross_compiling:$ac_tool_warned in
  7583. yes:)
  7584. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7585. whose name does not start with the host triplet. If you think this
  7586. configuration is useful to you, please write to autoconf@gnu.org." >&5
  7587. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7588. whose name does not start with the host triplet. If you think this
  7589. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7590. ac_tool_warned=yes ;;
  7591. esac
  7592. NMEDIT=$ac_ct_NMEDIT
  7593. fi
  7594. else
  7595. NMEDIT="$ac_cv_prog_NMEDIT"
  7596. fi
  7597. { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  7598. echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
  7599. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  7600. echo $ECHO_N "(cached) $ECHO_C" >&6
  7601. else
  7602. lt_cv_apple_cc_single_mod=no
  7603. if test -z "${LT_MULTI_MODULE}"; then
  7604. # By default we will add the -single_module flag. You can override
  7605. # by either setting the environment variable LT_MULTI_MODULE
  7606. # non-empty at configure time, or by adding -multi_module to the
  7607. # link flags.
  7608. echo "int foo(void){return 1;}" > conftest.c
  7609. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7610. -dynamiclib ${wl}-single_module conftest.c
  7611. if test -f libconftest.dylib; then
  7612. lt_cv_apple_cc_single_mod=yes
  7613. rm -rf libconftest.dylib*
  7614. fi
  7615. rm conftest.c
  7616. fi
  7617. fi
  7618. { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  7619. echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
  7620. { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  7621. echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
  7622. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  7623. echo $ECHO_N "(cached) $ECHO_C" >&6
  7624. else
  7625. lt_cv_ld_exported_symbols_list=no
  7626. save_LDFLAGS=$LDFLAGS
  7627. echo "_main" > conftest.sym
  7628. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7629. cat >conftest.$ac_ext <<_ACEOF
  7630. /* confdefs.h. */
  7631. _ACEOF
  7632. cat confdefs.h >>conftest.$ac_ext
  7633. cat >>conftest.$ac_ext <<_ACEOF
  7634. /* end confdefs.h. */
  7635. int
  7636. main ()
  7637. {
  7638. ;
  7639. return 0;
  7640. }
  7641. _ACEOF
  7642. rm -f conftest.$ac_objext conftest$ac_exeext
  7643. if { (ac_try="$ac_link"
  7644. case "(($ac_try" in
  7645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7646. *) ac_try_echo=$ac_try;;
  7647. esac
  7648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7649. (eval "$ac_link") 2>conftest.er1
  7650. ac_status=$?
  7651. grep -v '^ *+' conftest.er1 >conftest.err
  7652. rm -f conftest.er1
  7653. cat conftest.err >&5
  7654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7655. (exit $ac_status); } && {
  7656. test -z "$ac_c_werror_flag" ||
  7657. test ! -s conftest.err
  7658. } && test -s conftest$ac_exeext &&
  7659. $as_test_x conftest$ac_exeext; then
  7660. lt_cv_ld_exported_symbols_list=yes
  7661. else
  7662. echo "$as_me: failed program was:" >&5
  7663. sed 's/^/| /' conftest.$ac_ext >&5
  7664. lt_cv_ld_exported_symbols_list=no
  7665. fi
  7666. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7667. conftest$ac_exeext conftest.$ac_ext
  7668. LDFLAGS="$save_LDFLAGS"
  7669. fi
  7670. { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  7671. echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
  7672. case $host_os in
  7673. rhapsody* | darwin1.[0123])
  7674. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7675. darwin1.*)
  7676. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7677. darwin*)
  7678. # if running on 10.5 or later, the deployment target defaults
  7679. # to the OS version, if on x86, and 10.4, the deployment
  7680. # target defaults to 10.4. Don't you love it?
  7681. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7682. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7683. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7684. 10.[012]*)
  7685. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7686. 10.*)
  7687. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7688. esac
  7689. ;;
  7690. esac
  7691. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7692. _lt_dar_single_mod='$single_module'
  7693. fi
  7694. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7695. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7696. else
  7697. _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  7698. fi
  7699. if test "$DSYMUTIL" != ":"; then
  7700. _lt_dsymutil="~$DSYMUTIL \$lib || :"
  7701. else
  7702. _lt_dsymutil=
  7703. fi
  7704. ;;
  7705. esac
  7706. enable_dlopen=no
  7707. enable_win32_dll=yes
  7708. # Check whether --enable-libtool-lock was given.
  7709. if test "${enable_libtool_lock+set}" = set; then
  7710. enableval=$enable_libtool_lock;
  7711. fi
  7712. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7713. # Check whether --with-pic was given.
  7714. if test "${with_pic+set}" = set; then
  7715. withval=$with_pic; pic_mode="$withval"
  7716. else
  7717. pic_mode=default
  7718. fi
  7719. test -z "$pic_mode" && pic_mode=default
  7720. # Use C for the default configuration in the libtool script
  7721. tagname=
  7722. lt_save_CC="$CC"
  7723. ac_ext=c
  7724. ac_cpp='$CPP $CPPFLAGS'
  7725. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7726. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7727. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7728. # Source file extension for C test sources.
  7729. ac_ext=c
  7730. # Object file extension for compiled C test sources.
  7731. objext=o
  7732. objext=$objext
  7733. # Code to be used in simple compile tests
  7734. lt_simple_compile_test_code="int some_variable = 0;"
  7735. # Code to be used in simple link tests
  7736. lt_simple_link_test_code='int main(){return(0);}'
  7737. # If no C compiler was specified, use CC.
  7738. LTCC=${LTCC-"$CC"}
  7739. # If no C compiler flags were specified, use CFLAGS.
  7740. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7741. # Allow CC to be a program name with arguments.
  7742. compiler=$CC
  7743. # save warnings/boilerplate of simple test code
  7744. ac_outfile=conftest.$ac_objext
  7745. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7746. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7747. _lt_compiler_boilerplate=`cat conftest.err`
  7748. $rm conftest*
  7749. ac_outfile=conftest.$ac_objext
  7750. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7751. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7752. _lt_linker_boilerplate=`cat conftest.err`
  7753. $rm -r conftest*
  7754. lt_prog_compiler_no_builtin_flag=
  7755. if test "$GCC" = yes; then
  7756. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7757. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7758. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  7759. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  7760. echo $ECHO_N "(cached) $ECHO_C" >&6
  7761. else
  7762. lt_cv_prog_compiler_rtti_exceptions=no
  7763. ac_outfile=conftest.$ac_objext
  7764. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7765. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7766. # Insert the option either (1) after the last *FLAGS variable, or
  7767. # (2) before a word containing "conftest.", or (3) at the end.
  7768. # Note that $ac_compile itself does not contain backslashes and begins
  7769. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7770. # The option is referenced via a variable to avoid confusing sed.
  7771. lt_compile=`echo "$ac_compile" | $SED \
  7772. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7773. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7774. -e 's:$: $lt_compiler_flag:'`
  7775. (eval echo "\"\$as_me:8663: $lt_compile\"" >&5)
  7776. (eval "$lt_compile" 2>conftest.err)
  7777. ac_status=$?
  7778. cat conftest.err >&5
  7779. echo "$as_me:8667: \$? = $ac_status" >&5
  7780. if (exit $ac_status) && test -s "$ac_outfile"; then
  7781. # The compiler can only warn and ignore the option if not recognized
  7782. # So say no if there are warnings other than the usual output.
  7783. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7784. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7785. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7786. lt_cv_prog_compiler_rtti_exceptions=yes
  7787. fi
  7788. fi
  7789. $rm conftest*
  7790. fi
  7791. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7792. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7793. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7794. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7795. else
  7796. :
  7797. fi
  7798. fi
  7799. lt_prog_compiler_wl=
  7800. lt_prog_compiler_pic=
  7801. lt_prog_compiler_static=
  7802. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  7803. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  7804. if test "$GCC" = yes; then
  7805. lt_prog_compiler_wl='-Wl,'
  7806. lt_prog_compiler_static='-static'
  7807. case $host_os in
  7808. aix*)
  7809. # All AIX code is PIC.
  7810. if test "$host_cpu" = ia64; then
  7811. # AIX 5 now supports IA64 processor
  7812. lt_prog_compiler_static='-Bstatic'
  7813. fi
  7814. ;;
  7815. amigaos*)
  7816. # FIXME: we need at least 68020 code to build shared libraries, but
  7817. # adding the `-m68020' flag to GCC prevents building anything better,
  7818. # like `-m68040'.
  7819. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7820. ;;
  7821. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7822. # PIC is the default for these OSes.
  7823. ;;
  7824. mingw* | cygwin* | pw32* | os2*)
  7825. # This hack is so that the source file can tell whether it is being
  7826. # built for inclusion in a dll (and should export symbols for example).
  7827. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7828. # (--disable-auto-import) libraries
  7829. lt_prog_compiler_pic='-DDLL_EXPORT'
  7830. ;;
  7831. darwin* | rhapsody*)
  7832. # PIC is the default on this platform
  7833. # Common symbols not allowed in MH_DYLIB files
  7834. lt_prog_compiler_pic='-fno-common'
  7835. ;;
  7836. interix[3-9]*)
  7837. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7838. # Instead, we relocate shared libraries at runtime.
  7839. ;;
  7840. msdosdjgpp*)
  7841. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7842. # on systems that don't support them.
  7843. lt_prog_compiler_can_build_shared=no
  7844. enable_shared=no
  7845. ;;
  7846. sysv4*MP*)
  7847. if test -d /usr/nec; then
  7848. lt_prog_compiler_pic=-Kconform_pic
  7849. fi
  7850. ;;
  7851. hpux*)
  7852. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7853. # not for PA HP-UX.
  7854. case $host_cpu in
  7855. hppa*64*|ia64*)
  7856. # +Z the default
  7857. ;;
  7858. *)
  7859. lt_prog_compiler_pic='-fPIC'
  7860. ;;
  7861. esac
  7862. ;;
  7863. *)
  7864. lt_prog_compiler_pic='-fPIC'
  7865. ;;
  7866. esac
  7867. else
  7868. # PORTME Check for flag to pass linker flags through the system compiler.
  7869. case $host_os in
  7870. aix*)
  7871. lt_prog_compiler_wl='-Wl,'
  7872. if test "$host_cpu" = ia64; then
  7873. # AIX 5 now supports IA64 processor
  7874. lt_prog_compiler_static='-Bstatic'
  7875. else
  7876. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7877. fi
  7878. ;;
  7879. darwin*)
  7880. # PIC is the default on this platform
  7881. # Common symbols not allowed in MH_DYLIB files
  7882. case $cc_basename in
  7883. xlc*)
  7884. lt_prog_compiler_pic='-qnocommon'
  7885. lt_prog_compiler_wl='-Wl,'
  7886. ;;
  7887. esac
  7888. ;;
  7889. mingw* | cygwin* | pw32* | os2*)
  7890. # This hack is so that the source file can tell whether it is being
  7891. # built for inclusion in a dll (and should export symbols for example).
  7892. lt_prog_compiler_pic='-DDLL_EXPORT'
  7893. ;;
  7894. hpux9* | hpux10* | hpux11*)
  7895. lt_prog_compiler_wl='-Wl,'
  7896. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7897. # not for PA HP-UX.
  7898. case $host_cpu in
  7899. hppa*64*|ia64*)
  7900. # +Z the default
  7901. ;;
  7902. *)
  7903. lt_prog_compiler_pic='+Z'
  7904. ;;
  7905. esac
  7906. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7907. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7908. ;;
  7909. irix5* | irix6* | nonstopux*)
  7910. lt_prog_compiler_wl='-Wl,'
  7911. # PIC (with -KPIC) is the default.
  7912. lt_prog_compiler_static='-non_shared'
  7913. ;;
  7914. newsos6)
  7915. lt_prog_compiler_pic='-KPIC'
  7916. lt_prog_compiler_static='-Bstatic'
  7917. ;;
  7918. linux* | k*bsd*-gnu)
  7919. case $cc_basename in
  7920. icc* | ecc*)
  7921. lt_prog_compiler_wl='-Wl,'
  7922. lt_prog_compiler_pic='-KPIC'
  7923. lt_prog_compiler_static='-static'
  7924. ;;
  7925. pgcc* | pgf77* | pgf90* | pgf95*)
  7926. # Portland Group compilers (*not* the Pentium gcc compiler,
  7927. # which looks to be a dead project)
  7928. lt_prog_compiler_wl='-Wl,'
  7929. lt_prog_compiler_pic='-fpic'
  7930. lt_prog_compiler_static='-Bstatic'
  7931. ;;
  7932. ccc*)
  7933. lt_prog_compiler_wl='-Wl,'
  7934. # All Alpha code is PIC.
  7935. lt_prog_compiler_static='-non_shared'
  7936. ;;
  7937. *)
  7938. case `$CC -V 2>&1 | sed 5q` in
  7939. *Sun\ C*)
  7940. # Sun C 5.9
  7941. lt_prog_compiler_pic='-KPIC'
  7942. lt_prog_compiler_static='-Bstatic'
  7943. lt_prog_compiler_wl='-Wl,'
  7944. ;;
  7945. *Sun\ F*)
  7946. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7947. lt_prog_compiler_pic='-KPIC'
  7948. lt_prog_compiler_static='-Bstatic'
  7949. lt_prog_compiler_wl=''
  7950. ;;
  7951. esac
  7952. ;;
  7953. esac
  7954. ;;
  7955. osf3* | osf4* | osf5*)
  7956. lt_prog_compiler_wl='-Wl,'
  7957. # All OSF/1 code is PIC.
  7958. lt_prog_compiler_static='-non_shared'
  7959. ;;
  7960. rdos*)
  7961. lt_prog_compiler_static='-non_shared'
  7962. ;;
  7963. solaris*)
  7964. lt_prog_compiler_pic='-KPIC'
  7965. lt_prog_compiler_static='-Bstatic'
  7966. case $cc_basename in
  7967. f77* | f90* | f95*)
  7968. lt_prog_compiler_wl='-Qoption ld ';;
  7969. *)
  7970. lt_prog_compiler_wl='-Wl,';;
  7971. esac
  7972. ;;
  7973. sunos4*)
  7974. lt_prog_compiler_wl='-Qoption ld '
  7975. lt_prog_compiler_pic='-PIC'
  7976. lt_prog_compiler_static='-Bstatic'
  7977. ;;
  7978. sysv4 | sysv4.2uw2* | sysv4.3*)
  7979. lt_prog_compiler_wl='-Wl,'
  7980. lt_prog_compiler_pic='-KPIC'
  7981. lt_prog_compiler_static='-Bstatic'
  7982. ;;
  7983. sysv4*MP*)
  7984. if test -d /usr/nec ;then
  7985. lt_prog_compiler_pic='-Kconform_pic'
  7986. lt_prog_compiler_static='-Bstatic'
  7987. fi
  7988. ;;
  7989. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7990. lt_prog_compiler_wl='-Wl,'
  7991. lt_prog_compiler_pic='-KPIC'
  7992. lt_prog_compiler_static='-Bstatic'
  7993. ;;
  7994. unicos*)
  7995. lt_prog_compiler_wl='-Wl,'
  7996. lt_prog_compiler_can_build_shared=no
  7997. ;;
  7998. uts4*)
  7999. lt_prog_compiler_pic='-pic'
  8000. lt_prog_compiler_static='-Bstatic'
  8001. ;;
  8002. *)
  8003. lt_prog_compiler_can_build_shared=no
  8004. ;;
  8005. esac
  8006. fi
  8007. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  8008. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  8009. #
  8010. # Check to make sure the PIC flag actually works.
  8011. #
  8012. if test -n "$lt_prog_compiler_pic"; then
  8013. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8014. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  8015. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  8016. echo $ECHO_N "(cached) $ECHO_C" >&6
  8017. else
  8018. lt_cv_prog_compiler_pic_works=no
  8019. ac_outfile=conftest.$ac_objext
  8020. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8021. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8022. # Insert the option either (1) after the last *FLAGS variable, or
  8023. # (2) before a word containing "conftest.", or (3) at the end.
  8024. # Note that $ac_compile itself does not contain backslashes and begins
  8025. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8026. # The option is referenced via a variable to avoid confusing sed.
  8027. lt_compile=`echo "$ac_compile" | $SED \
  8028. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8029. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8030. -e 's:$: $lt_compiler_flag:'`
  8031. (eval echo "\"\$as_me:8953: $lt_compile\"" >&5)
  8032. (eval "$lt_compile" 2>conftest.err)
  8033. ac_status=$?
  8034. cat conftest.err >&5
  8035. echo "$as_me:8957: \$? = $ac_status" >&5
  8036. if (exit $ac_status) && test -s "$ac_outfile"; then
  8037. # The compiler can only warn and ignore the option if not recognized
  8038. # So say no if there are warnings other than the usual output.
  8039. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8040. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8041. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8042. lt_cv_prog_compiler_pic_works=yes
  8043. fi
  8044. fi
  8045. $rm conftest*
  8046. fi
  8047. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  8048. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
  8049. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8050. case $lt_prog_compiler_pic in
  8051. "" | " "*) ;;
  8052. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8053. esac
  8054. else
  8055. lt_prog_compiler_pic=
  8056. lt_prog_compiler_can_build_shared=no
  8057. fi
  8058. fi
  8059. case $host_os in
  8060. # For platforms which do not support PIC, -DPIC is meaningless:
  8061. *djgpp*)
  8062. lt_prog_compiler_pic=
  8063. ;;
  8064. *)
  8065. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8066. ;;
  8067. esac
  8068. #
  8069. # Check to make sure the static flag actually works.
  8070. #
  8071. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8072. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8073. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  8074. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  8075. echo $ECHO_N "(cached) $ECHO_C" >&6
  8076. else
  8077. lt_cv_prog_compiler_static_works=no
  8078. save_LDFLAGS="$LDFLAGS"
  8079. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8080. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8081. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8082. # The linker can only warn and ignore the option if not recognized
  8083. # So say no if there are warnings
  8084. if test -s conftest.err; then
  8085. # Append any errors to the config.log.
  8086. cat conftest.err 1>&5
  8087. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  8088. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8089. if diff conftest.exp conftest.er2 >/dev/null; then
  8090. lt_cv_prog_compiler_static_works=yes
  8091. fi
  8092. else
  8093. lt_cv_prog_compiler_static_works=yes
  8094. fi
  8095. fi
  8096. $rm -r conftest*
  8097. LDFLAGS="$save_LDFLAGS"
  8098. fi
  8099. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  8100. echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
  8101. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8102. :
  8103. else
  8104. lt_prog_compiler_static=
  8105. fi
  8106. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8107. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  8108. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8109. echo $ECHO_N "(cached) $ECHO_C" >&6
  8110. else
  8111. lt_cv_prog_compiler_c_o=no
  8112. $rm -r conftest 2>/dev/null
  8113. mkdir conftest
  8114. cd conftest
  8115. mkdir out
  8116. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8117. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8118. # Insert the option either (1) after the last *FLAGS variable, or
  8119. # (2) before a word containing "conftest.", or (3) at the end.
  8120. # Note that $ac_compile itself does not contain backslashes and begins
  8121. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8122. lt_compile=`echo "$ac_compile" | $SED \
  8123. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8124. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8125. -e 's:$: $lt_compiler_flag:'`
  8126. (eval echo "\"\$as_me:9057: $lt_compile\"" >&5)
  8127. (eval "$lt_compile" 2>out/conftest.err)
  8128. ac_status=$?
  8129. cat out/conftest.err >&5
  8130. echo "$as_me:9061: \$? = $ac_status" >&5
  8131. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8132. then
  8133. # The compiler can only warn and ignore the option if not recognized
  8134. # So say no if there are warnings
  8135. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8136. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8137. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8138. lt_cv_prog_compiler_c_o=yes
  8139. fi
  8140. fi
  8141. chmod u+w . 2>&5
  8142. $rm conftest*
  8143. # SGI C++ compiler will create directory out/ii_files/ for
  8144. # template instantiation
  8145. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  8146. $rm out/* && rmdir out
  8147. cd ..
  8148. rmdir conftest
  8149. $rm conftest*
  8150. fi
  8151. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8152. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  8153. hard_links="nottested"
  8154. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8155. # do not overwrite the value of need_locks provided by the user
  8156. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  8157. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  8158. hard_links=yes
  8159. $rm conftest*
  8160. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8161. touch conftest.a
  8162. ln conftest.a conftest.b 2>&5 || hard_links=no
  8163. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8164. { echo "$as_me:$LINENO: result: $hard_links" >&5
  8165. echo "${ECHO_T}$hard_links" >&6; }
  8166. if test "$hard_links" = no; then
  8167. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8168. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8169. need_locks=warn
  8170. fi
  8171. else
  8172. need_locks=no
  8173. fi
  8174. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8175. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  8176. runpath_var=
  8177. allow_undefined_flag=
  8178. enable_shared_with_static_runtimes=no
  8179. archive_cmds=
  8180. archive_expsym_cmds=
  8181. old_archive_From_new_cmds=
  8182. old_archive_from_expsyms_cmds=
  8183. export_dynamic_flag_spec=
  8184. whole_archive_flag_spec=
  8185. thread_safe_flag_spec=
  8186. hardcode_libdir_flag_spec=
  8187. hardcode_libdir_flag_spec_ld=
  8188. hardcode_libdir_separator=
  8189. hardcode_direct=no
  8190. hardcode_minus_L=no
  8191. hardcode_shlibpath_var=unsupported
  8192. link_all_deplibs=unknown
  8193. hardcode_automatic=no
  8194. module_cmds=
  8195. module_expsym_cmds=
  8196. always_export_symbols=no
  8197. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8198. # include_expsyms should be a list of space-separated symbols to be *always*
  8199. # included in the symbol list
  8200. include_expsyms=
  8201. # exclude_expsyms can be an extended regexp of symbols to exclude
  8202. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8203. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8204. # as well as any symbol that contains `d'.
  8205. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8206. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8207. # platforms (ab)use it in PIC code, but their linkers get confused if
  8208. # the symbol is explicitly referenced. Since portable code cannot
  8209. # rely on this symbol name, it's probably fine to never include it in
  8210. # preloaded symbol tables.
  8211. # Exclude shared library initialization/finalization symbols.
  8212. extract_expsyms_cmds=
  8213. # Just being paranoid about ensuring that cc_basename is set.
  8214. for cc_temp in $compiler""; do
  8215. case $cc_temp in
  8216. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8217. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8218. \-*) ;;
  8219. *) break;;
  8220. esac
  8221. done
  8222. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8223. case $host_os in
  8224. cygwin* | mingw* | pw32*)
  8225. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8226. # When not using gcc, we currently assume that we are using
  8227. # Microsoft Visual C++.
  8228. if test "$GCC" != yes; then
  8229. with_gnu_ld=no
  8230. fi
  8231. ;;
  8232. interix*)
  8233. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8234. with_gnu_ld=yes
  8235. ;;
  8236. openbsd*)
  8237. with_gnu_ld=no
  8238. ;;
  8239. esac
  8240. ld_shlibs=yes
  8241. if test "$with_gnu_ld" = yes; then
  8242. # If archive_cmds runs LD, not CC, wlarc should be empty
  8243. wlarc='${wl}'
  8244. # Set some defaults for GNU ld with shared library support. These
  8245. # are reset later if shared libraries are not supported. Putting them
  8246. # here allows them to be overridden if necessary.
  8247. runpath_var=LD_RUN_PATH
  8248. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  8249. export_dynamic_flag_spec='${wl}--export-dynamic'
  8250. # ancient GNU ld didn't support --whole-archive et. al.
  8251. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  8252. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8253. else
  8254. whole_archive_flag_spec=
  8255. fi
  8256. supports_anon_versioning=no
  8257. case `$LD -v 2>/dev/null` in
  8258. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8259. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8260. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8261. *\ 2.11.*) ;; # other 2.11 versions
  8262. *) supports_anon_versioning=yes ;;
  8263. esac
  8264. # See if GNU ld supports shared libraries.
  8265. case $host_os in
  8266. aix[3-9]*)
  8267. # On AIX/PPC, the GNU linker is very broken
  8268. if test "$host_cpu" != ia64; then
  8269. ld_shlibs=no
  8270. cat <<EOF 1>&2
  8271. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8272. *** to be unable to reliably create shared libraries on AIX.
  8273. *** Therefore, libtool is disabling shared libraries support. If you
  8274. *** really care for shared libraries, you may want to modify your PATH
  8275. *** so that a non-GNU linker is found, and then restart.
  8276. EOF
  8277. fi
  8278. ;;
  8279. amigaos*)
  8280. 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)'
  8281. hardcode_libdir_flag_spec='-L$libdir'
  8282. hardcode_minus_L=yes
  8283. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  8284. # that the semantics of dynamic libraries on AmigaOS, at least up
  8285. # to version 4, is to share data among multiple programs linked
  8286. # with the same dynamic library. Since this doesn't match the
  8287. # behavior of shared libraries on other platforms, we can't use
  8288. # them.
  8289. ld_shlibs=no
  8290. ;;
  8291. beos*)
  8292. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8293. allow_undefined_flag=unsupported
  8294. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8295. # support --undefined. This deserves some investigation. FIXME
  8296. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8297. else
  8298. ld_shlibs=no
  8299. fi
  8300. ;;
  8301. cygwin* | mingw* | pw32*)
  8302. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8303. # as there is no search path for DLLs.
  8304. hardcode_libdir_flag_spec='-L$libdir'
  8305. allow_undefined_flag=unsupported
  8306. always_export_symbols=no
  8307. enable_shared_with_static_runtimes=yes
  8308. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8309. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  8310. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8311. # If the export-symbols file already is a .def file (1st line
  8312. # is EXPORTS), use it as is; otherwise, prepend...
  8313. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8314. cp $export_symbols $output_objdir/$soname.def;
  8315. else
  8316. echo EXPORTS > $output_objdir/$soname.def;
  8317. cat $export_symbols >> $output_objdir/$soname.def;
  8318. fi~
  8319. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8320. else
  8321. ld_shlibs=no
  8322. fi
  8323. ;;
  8324. interix[3-9]*)
  8325. hardcode_direct=no
  8326. hardcode_shlibpath_var=no
  8327. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8328. export_dynamic_flag_spec='${wl}-E'
  8329. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8330. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8331. # default) and relocated if they conflict, which is a slow very memory
  8332. # consuming and fragmenting process. To avoid this, we pick a random,
  8333. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8334. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8335. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8336. 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'
  8337. ;;
  8338. gnu* | linux* | k*bsd*-gnu)
  8339. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8340. tmp_addflag=
  8341. case $cc_basename,$host_cpu in
  8342. pgcc*) # Portland Group C compiler
  8343. 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'
  8344. tmp_addflag=' $pic_flag'
  8345. ;;
  8346. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8347. 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'
  8348. tmp_addflag=' $pic_flag -Mnomain' ;;
  8349. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8350. tmp_addflag=' -i_dynamic' ;;
  8351. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8352. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8353. ifc* | ifort*) # Intel Fortran compiler
  8354. tmp_addflag=' -nofor_main' ;;
  8355. esac
  8356. case `$CC -V 2>&1 | sed 5q` in
  8357. *Sun\ C*) # Sun C 5.9
  8358. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  8359. tmp_sharedflag='-G' ;;
  8360. *Sun\ F*) # Sun Fortran 8.3
  8361. tmp_sharedflag='-G' ;;
  8362. *)
  8363. tmp_sharedflag='-shared' ;;
  8364. esac
  8365. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8366. if test $supports_anon_versioning = yes; then
  8367. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  8368. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8369. $echo "local: *; };" >> $output_objdir/$libname.ver~
  8370. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8371. fi
  8372. link_all_deplibs=no
  8373. else
  8374. ld_shlibs=no
  8375. fi
  8376. ;;
  8377. netbsd* | netbsdelf*-gnu)
  8378. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8379. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8380. wlarc=
  8381. else
  8382. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8383. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8384. fi
  8385. ;;
  8386. solaris*)
  8387. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  8388. ld_shlibs=no
  8389. cat <<EOF 1>&2
  8390. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8391. *** create shared libraries on Solaris systems. Therefore, libtool
  8392. *** is disabling shared libraries support. We urge you to upgrade GNU
  8393. *** binutils to release 2.9.1 or newer. Another option is to modify
  8394. *** your PATH or compiler configuration so that the native linker is
  8395. *** used, and then restart.
  8396. EOF
  8397. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8398. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8399. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8400. else
  8401. ld_shlibs=no
  8402. fi
  8403. ;;
  8404. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8405. case `$LD -v 2>&1` in
  8406. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8407. ld_shlibs=no
  8408. cat <<_LT_EOF 1>&2
  8409. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8410. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8411. *** is disabling shared libraries support. We urge you to upgrade GNU
  8412. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8413. *** your PATH or compiler configuration so that the native linker is
  8414. *** used, and then restart.
  8415. _LT_EOF
  8416. ;;
  8417. *)
  8418. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8419. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  8420. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  8421. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  8422. else
  8423. ld_shlibs=no
  8424. fi
  8425. ;;
  8426. esac
  8427. ;;
  8428. sunos4*)
  8429. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8430. wlarc=
  8431. hardcode_direct=yes
  8432. hardcode_shlibpath_var=no
  8433. ;;
  8434. *)
  8435. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8436. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8437. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8438. else
  8439. ld_shlibs=no
  8440. fi
  8441. ;;
  8442. esac
  8443. if test "$ld_shlibs" = no; then
  8444. runpath_var=
  8445. hardcode_libdir_flag_spec=
  8446. export_dynamic_flag_spec=
  8447. whole_archive_flag_spec=
  8448. fi
  8449. else
  8450. # PORTME fill in a description of your system's linker (not GNU ld)
  8451. case $host_os in
  8452. aix3*)
  8453. allow_undefined_flag=unsupported
  8454. always_export_symbols=yes
  8455. 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'
  8456. # Note: this linker hardcodes the directories in LIBPATH if there
  8457. # are no directories specified by -L.
  8458. hardcode_minus_L=yes
  8459. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8460. # Neither direct hardcoding nor static linking is supported with a
  8461. # broken collect2.
  8462. hardcode_direct=unsupported
  8463. fi
  8464. ;;
  8465. aix[4-9]*)
  8466. if test "$host_cpu" = ia64; then
  8467. # On IA64, the linker does run time linking by default, so we don't
  8468. # have to do anything special.
  8469. aix_use_runtimelinking=no
  8470. exp_sym_flag='-Bexport'
  8471. no_entry_flag=""
  8472. else
  8473. # If we're using GNU nm, then we don't want the "-C" option.
  8474. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8475. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  8476. 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'
  8477. else
  8478. 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'
  8479. fi
  8480. aix_use_runtimelinking=no
  8481. # Test if we are trying to use run time linking or normal
  8482. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8483. # need to do runtime linking.
  8484. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8485. for ld_flag in $LDFLAGS; do
  8486. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8487. aix_use_runtimelinking=yes
  8488. break
  8489. fi
  8490. done
  8491. ;;
  8492. esac
  8493. exp_sym_flag='-bexport'
  8494. no_entry_flag='-bnoentry'
  8495. fi
  8496. # When large executables or shared objects are built, AIX ld can
  8497. # have problems creating the table of contents. If linking a library
  8498. # or program results in "error TOC overflow" add -mminimal-toc to
  8499. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8500. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8501. archive_cmds=''
  8502. hardcode_direct=yes
  8503. hardcode_libdir_separator=':'
  8504. link_all_deplibs=yes
  8505. if test "$GCC" = yes; then
  8506. case $host_os in aix4.[012]|aix4.[012].*)
  8507. # We only want to do this on AIX 4.2 and lower, the check
  8508. # below for broken collect2 doesn't work under 4.3+
  8509. collect2name=`${CC} -print-prog-name=collect2`
  8510. if test -f "$collect2name" && \
  8511. strings "$collect2name" | grep resolve_lib_name >/dev/null
  8512. then
  8513. # We have reworked collect2
  8514. :
  8515. else
  8516. # We have old collect2
  8517. hardcode_direct=unsupported
  8518. # It fails to find uninstalled libraries when the uninstalled
  8519. # path is not listed in the libpath. Setting hardcode_minus_L
  8520. # to unsupported forces relinking
  8521. hardcode_minus_L=yes
  8522. hardcode_libdir_flag_spec='-L$libdir'
  8523. hardcode_libdir_separator=
  8524. fi
  8525. ;;
  8526. esac
  8527. shared_flag='-shared'
  8528. if test "$aix_use_runtimelinking" = yes; then
  8529. shared_flag="$shared_flag "'${wl}-G'
  8530. fi
  8531. else
  8532. # not using gcc
  8533. if test "$host_cpu" = ia64; then
  8534. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8535. # chokes on -Wl,-G. The following line is correct:
  8536. shared_flag='-G'
  8537. else
  8538. if test "$aix_use_runtimelinking" = yes; then
  8539. shared_flag='${wl}-G'
  8540. else
  8541. shared_flag='${wl}-bM:SRE'
  8542. fi
  8543. fi
  8544. fi
  8545. # It seems that -bexpall does not export symbols beginning with
  8546. # underscore (_), so it is better to generate a list of symbols to export.
  8547. always_export_symbols=yes
  8548. if test "$aix_use_runtimelinking" = yes; then
  8549. # Warning - without using the other runtime loading flags (-brtl),
  8550. # -berok will link without error, but may produce a broken library.
  8551. allow_undefined_flag='-berok'
  8552. # Determine the default libpath from the value encoded in an empty executable.
  8553. cat >conftest.$ac_ext <<_ACEOF
  8554. /* confdefs.h. */
  8555. _ACEOF
  8556. cat confdefs.h >>conftest.$ac_ext
  8557. cat >>conftest.$ac_ext <<_ACEOF
  8558. /* end confdefs.h. */
  8559. int
  8560. main ()
  8561. {
  8562. ;
  8563. return 0;
  8564. }
  8565. _ACEOF
  8566. rm -f conftest.$ac_objext conftest$ac_exeext
  8567. if { (ac_try="$ac_link"
  8568. case "(($ac_try" in
  8569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8570. *) ac_try_echo=$ac_try;;
  8571. esac
  8572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8573. (eval "$ac_link") 2>conftest.er1
  8574. ac_status=$?
  8575. grep -v '^ *+' conftest.er1 >conftest.err
  8576. rm -f conftest.er1
  8577. cat conftest.err >&5
  8578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8579. (exit $ac_status); } && {
  8580. test -z "$ac_c_werror_flag" ||
  8581. test ! -s conftest.err
  8582. } && test -s conftest$ac_exeext &&
  8583. $as_test_x conftest$ac_exeext; then
  8584. lt_aix_libpath_sed='
  8585. /Import File Strings/,/^$/ {
  8586. /^0/ {
  8587. s/^0 *\(.*\)$/\1/
  8588. p
  8589. }
  8590. }'
  8591. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8592. # Check for a 64-bit object if we didn't find anything.
  8593. if test -z "$aix_libpath"; then
  8594. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8595. fi
  8596. else
  8597. echo "$as_me: failed program was:" >&5
  8598. sed 's/^/| /' conftest.$ac_ext >&5
  8599. fi
  8600. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8601. conftest$ac_exeext conftest.$ac_ext
  8602. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8603. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8604. 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"
  8605. else
  8606. if test "$host_cpu" = ia64; then
  8607. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8608. allow_undefined_flag="-z nodefs"
  8609. 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"
  8610. else
  8611. # Determine the default libpath from the value encoded in an empty executable.
  8612. cat >conftest.$ac_ext <<_ACEOF
  8613. /* confdefs.h. */
  8614. _ACEOF
  8615. cat confdefs.h >>conftest.$ac_ext
  8616. cat >>conftest.$ac_ext <<_ACEOF
  8617. /* end confdefs.h. */
  8618. int
  8619. main ()
  8620. {
  8621. ;
  8622. return 0;
  8623. }
  8624. _ACEOF
  8625. rm -f conftest.$ac_objext conftest$ac_exeext
  8626. if { (ac_try="$ac_link"
  8627. case "(($ac_try" in
  8628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8629. *) ac_try_echo=$ac_try;;
  8630. esac
  8631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8632. (eval "$ac_link") 2>conftest.er1
  8633. ac_status=$?
  8634. grep -v '^ *+' conftest.er1 >conftest.err
  8635. rm -f conftest.er1
  8636. cat conftest.err >&5
  8637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8638. (exit $ac_status); } && {
  8639. test -z "$ac_c_werror_flag" ||
  8640. test ! -s conftest.err
  8641. } && test -s conftest$ac_exeext &&
  8642. $as_test_x conftest$ac_exeext; then
  8643. lt_aix_libpath_sed='
  8644. /Import File Strings/,/^$/ {
  8645. /^0/ {
  8646. s/^0 *\(.*\)$/\1/
  8647. p
  8648. }
  8649. }'
  8650. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8651. # Check for a 64-bit object if we didn't find anything.
  8652. if test -z "$aix_libpath"; then
  8653. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8654. fi
  8655. else
  8656. echo "$as_me: failed program was:" >&5
  8657. sed 's/^/| /' conftest.$ac_ext >&5
  8658. fi
  8659. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8660. conftest$ac_exeext conftest.$ac_ext
  8661. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8662. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8663. # Warning - without using the other run time loading flags,
  8664. # -berok will link without error, but may produce a broken library.
  8665. no_undefined_flag=' ${wl}-bernotok'
  8666. allow_undefined_flag=' ${wl}-berok'
  8667. # Exported symbols can be pulled into shared objects from archives
  8668. whole_archive_flag_spec='$convenience'
  8669. archive_cmds_need_lc=yes
  8670. # This is similar to how AIX traditionally builds its shared libraries.
  8671. 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'
  8672. fi
  8673. fi
  8674. ;;
  8675. amigaos*)
  8676. 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)'
  8677. hardcode_libdir_flag_spec='-L$libdir'
  8678. hardcode_minus_L=yes
  8679. # see comment about different semantics on the GNU ld section
  8680. ld_shlibs=no
  8681. ;;
  8682. bsdi[45]*)
  8683. export_dynamic_flag_spec=-rdynamic
  8684. ;;
  8685. cygwin* | mingw* | pw32*)
  8686. # When not using gcc, we currently assume that we are using
  8687. # Microsoft Visual C++.
  8688. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8689. # no search path for DLLs.
  8690. hardcode_libdir_flag_spec=' '
  8691. allow_undefined_flag=unsupported
  8692. # Tell ltmain to make .lib files, not .a files.
  8693. libext=lib
  8694. # Tell ltmain to make .dll files, not .so files.
  8695. shrext_cmds=".dll"
  8696. # FIXME: Setting linknames here is a bad hack.
  8697. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8698. # The linker will automatically build a .lib file if we build a DLL.
  8699. old_archive_From_new_cmds='true'
  8700. # FIXME: Should let the user specify the lib program.
  8701. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8702. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8703. enable_shared_with_static_runtimes=yes
  8704. ;;
  8705. darwin* | rhapsody*)
  8706. case $host_os in
  8707. rhapsody* | darwin1.[012])
  8708. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  8709. ;;
  8710. *) # Darwin 1.3 on
  8711. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  8712. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  8713. else
  8714. case ${MACOSX_DEPLOYMENT_TARGET} in
  8715. 10.[012])
  8716. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  8717. ;;
  8718. 10.*)
  8719. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  8720. ;;
  8721. esac
  8722. fi
  8723. ;;
  8724. esac
  8725. archive_cmds_need_lc=no
  8726. hardcode_direct=no
  8727. hardcode_automatic=yes
  8728. hardcode_shlibpath_var=unsupported
  8729. whole_archive_flag_spec=''
  8730. link_all_deplibs=yes
  8731. if test "$GCC" = yes ; then
  8732. output_verbose_link_cmd='echo'
  8733. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8734. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8735. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  8736. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  8737. else
  8738. case $cc_basename in
  8739. xlc*)
  8740. output_verbose_link_cmd='echo'
  8741. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  8742. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8743. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  8744. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8745. 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}'
  8746. ;;
  8747. *)
  8748. ld_shlibs=no
  8749. ;;
  8750. esac
  8751. fi
  8752. ;;
  8753. dgux*)
  8754. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8755. hardcode_libdir_flag_spec='-L$libdir'
  8756. hardcode_shlibpath_var=no
  8757. ;;
  8758. freebsd1*)
  8759. ld_shlibs=no
  8760. ;;
  8761. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8762. # support. Future versions do this automatically, but an explicit c++rt0.o
  8763. # does not break anything, and helps significantly (at the cost of a little
  8764. # extra space).
  8765. freebsd2.2*)
  8766. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8767. hardcode_libdir_flag_spec='-R$libdir'
  8768. hardcode_direct=yes
  8769. hardcode_shlibpath_var=no
  8770. ;;
  8771. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8772. freebsd2*)
  8773. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8774. hardcode_direct=yes
  8775. hardcode_minus_L=yes
  8776. hardcode_shlibpath_var=no
  8777. ;;
  8778. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8779. freebsd* | dragonfly*)
  8780. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8781. hardcode_libdir_flag_spec='-R$libdir'
  8782. hardcode_direct=yes
  8783. hardcode_shlibpath_var=no
  8784. ;;
  8785. hpux9*)
  8786. if test "$GCC" = yes; then
  8787. 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'
  8788. else
  8789. 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'
  8790. fi
  8791. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8792. hardcode_libdir_separator=:
  8793. hardcode_direct=yes
  8794. # hardcode_minus_L: Not really in the search PATH,
  8795. # but as the default location of the library.
  8796. hardcode_minus_L=yes
  8797. export_dynamic_flag_spec='${wl}-E'
  8798. ;;
  8799. hpux10*)
  8800. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8801. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8802. else
  8803. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8804. fi
  8805. if test "$with_gnu_ld" = no; then
  8806. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8807. hardcode_libdir_separator=:
  8808. hardcode_direct=yes
  8809. export_dynamic_flag_spec='${wl}-E'
  8810. # hardcode_minus_L: Not really in the search PATH,
  8811. # but as the default location of the library.
  8812. hardcode_minus_L=yes
  8813. fi
  8814. ;;
  8815. hpux11*)
  8816. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8817. case $host_cpu in
  8818. hppa*64*)
  8819. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8820. ;;
  8821. ia64*)
  8822. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8823. ;;
  8824. *)
  8825. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8826. ;;
  8827. esac
  8828. else
  8829. case $host_cpu in
  8830. hppa*64*)
  8831. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8832. ;;
  8833. ia64*)
  8834. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8835. ;;
  8836. *)
  8837. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8838. ;;
  8839. esac
  8840. fi
  8841. if test "$with_gnu_ld" = no; then
  8842. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8843. hardcode_libdir_separator=:
  8844. case $host_cpu in
  8845. hppa*64*|ia64*)
  8846. hardcode_libdir_flag_spec_ld='+b $libdir'
  8847. hardcode_direct=no
  8848. hardcode_shlibpath_var=no
  8849. ;;
  8850. *)
  8851. hardcode_direct=yes
  8852. export_dynamic_flag_spec='${wl}-E'
  8853. # hardcode_minus_L: Not really in the search PATH,
  8854. # but as the default location of the library.
  8855. hardcode_minus_L=yes
  8856. ;;
  8857. esac
  8858. fi
  8859. ;;
  8860. irix5* | irix6* | nonstopux*)
  8861. if test "$GCC" = yes; then
  8862. 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'
  8863. else
  8864. 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'
  8865. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8866. fi
  8867. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8868. hardcode_libdir_separator=:
  8869. link_all_deplibs=yes
  8870. ;;
  8871. netbsd* | netbsdelf*-gnu)
  8872. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8873. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8874. else
  8875. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8876. fi
  8877. hardcode_libdir_flag_spec='-R$libdir'
  8878. hardcode_direct=yes
  8879. hardcode_shlibpath_var=no
  8880. ;;
  8881. newsos6)
  8882. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8883. hardcode_direct=yes
  8884. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8885. hardcode_libdir_separator=:
  8886. hardcode_shlibpath_var=no
  8887. ;;
  8888. openbsd*)
  8889. if test -f /usr/libexec/ld.so; then
  8890. hardcode_direct=yes
  8891. hardcode_shlibpath_var=no
  8892. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8893. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8894. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8895. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8896. export_dynamic_flag_spec='${wl}-E'
  8897. else
  8898. case $host_os in
  8899. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8900. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8901. hardcode_libdir_flag_spec='-R$libdir'
  8902. ;;
  8903. *)
  8904. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8905. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8906. ;;
  8907. esac
  8908. fi
  8909. else
  8910. ld_shlibs=no
  8911. fi
  8912. ;;
  8913. os2*)
  8914. hardcode_libdir_flag_spec='-L$libdir'
  8915. hardcode_minus_L=yes
  8916. allow_undefined_flag=unsupported
  8917. 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'
  8918. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8919. ;;
  8920. osf3*)
  8921. if test "$GCC" = yes; then
  8922. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8923. 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'
  8924. else
  8925. allow_undefined_flag=' -expect_unresolved \*'
  8926. 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'
  8927. fi
  8928. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8929. hardcode_libdir_separator=:
  8930. ;;
  8931. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8932. if test "$GCC" = yes; then
  8933. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8934. 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'
  8935. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8936. else
  8937. allow_undefined_flag=' -expect_unresolved \*'
  8938. 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'
  8939. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  8940. $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'
  8941. # Both c and cxx compiler support -rpath directly
  8942. hardcode_libdir_flag_spec='-rpath $libdir'
  8943. fi
  8944. hardcode_libdir_separator=:
  8945. ;;
  8946. solaris*)
  8947. no_undefined_flag=' -z text'
  8948. if test "$GCC" = yes; then
  8949. wlarc='${wl}'
  8950. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8951. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8952. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  8953. else
  8954. wlarc=''
  8955. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8956. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8957. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8958. fi
  8959. hardcode_libdir_flag_spec='-R$libdir'
  8960. hardcode_shlibpath_var=no
  8961. case $host_os in
  8962. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8963. *)
  8964. # The compiler driver will combine and reorder linker options,
  8965. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8966. # but is careful enough not to reorder.
  8967. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8968. if test "$GCC" = yes; then
  8969. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8970. else
  8971. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8972. fi
  8973. ;;
  8974. esac
  8975. link_all_deplibs=yes
  8976. ;;
  8977. sunos4*)
  8978. if test "x$host_vendor" = xsequent; then
  8979. # Use $CC to link under sequent, because it throws in some extra .o
  8980. # files that make .init and .fini sections work.
  8981. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8982. else
  8983. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8984. fi
  8985. hardcode_libdir_flag_spec='-L$libdir'
  8986. hardcode_direct=yes
  8987. hardcode_minus_L=yes
  8988. hardcode_shlibpath_var=no
  8989. ;;
  8990. sysv4)
  8991. case $host_vendor in
  8992. sni)
  8993. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8994. hardcode_direct=yes # is this really true???
  8995. ;;
  8996. siemens)
  8997. ## LD is ld it makes a PLAMLIB
  8998. ## CC just makes a GrossModule.
  8999. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9000. reload_cmds='$CC -r -o $output$reload_objs'
  9001. hardcode_direct=no
  9002. ;;
  9003. motorola)
  9004. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9005. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9006. ;;
  9007. esac
  9008. runpath_var='LD_RUN_PATH'
  9009. hardcode_shlibpath_var=no
  9010. ;;
  9011. sysv4.3*)
  9012. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9013. hardcode_shlibpath_var=no
  9014. export_dynamic_flag_spec='-Bexport'
  9015. ;;
  9016. sysv4*MP*)
  9017. if test -d /usr/nec; then
  9018. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9019. hardcode_shlibpath_var=no
  9020. runpath_var=LD_RUN_PATH
  9021. hardcode_runpath_var=yes
  9022. ld_shlibs=yes
  9023. fi
  9024. ;;
  9025. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9026. no_undefined_flag='${wl}-z,text'
  9027. archive_cmds_need_lc=no
  9028. hardcode_shlibpath_var=no
  9029. runpath_var='LD_RUN_PATH'
  9030. if test "$GCC" = yes; then
  9031. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9032. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9033. else
  9034. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9035. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9036. fi
  9037. ;;
  9038. sysv5* | sco3.2v5* | sco5v6*)
  9039. # Note: We can NOT use -z defs as we might desire, because we do not
  9040. # link with -lc, and that would cause any symbols used from libc to
  9041. # always be unresolved, which means just about no library would
  9042. # ever link correctly. If we're not using GNU ld we use -z text
  9043. # though, which does catch some bad symbols but isn't as heavy-handed
  9044. # as -z defs.
  9045. no_undefined_flag='${wl}-z,text'
  9046. allow_undefined_flag='${wl}-z,nodefs'
  9047. archive_cmds_need_lc=no
  9048. hardcode_shlibpath_var=no
  9049. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  9050. hardcode_libdir_separator=':'
  9051. link_all_deplibs=yes
  9052. export_dynamic_flag_spec='${wl}-Bexport'
  9053. runpath_var='LD_RUN_PATH'
  9054. if test "$GCC" = yes; then
  9055. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9056. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9057. else
  9058. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9059. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9060. fi
  9061. ;;
  9062. uts4*)
  9063. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9064. hardcode_libdir_flag_spec='-L$libdir'
  9065. hardcode_shlibpath_var=no
  9066. ;;
  9067. *)
  9068. ld_shlibs=no
  9069. ;;
  9070. esac
  9071. fi
  9072. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  9073. echo "${ECHO_T}$ld_shlibs" >&6; }
  9074. test "$ld_shlibs" = no && can_build_shared=no
  9075. #
  9076. # Do we need to explicitly link libc?
  9077. #
  9078. case "x$archive_cmds_need_lc" in
  9079. x|xyes)
  9080. # Assume -lc should be added
  9081. archive_cmds_need_lc=yes
  9082. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9083. case $archive_cmds in
  9084. *'~'*)
  9085. # FIXME: we may have to deal with multi-command sequences.
  9086. ;;
  9087. '$CC '*)
  9088. # Test whether the compiler implicitly links with -lc since on some
  9089. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9090. # to ld, don't add -lc before -lgcc.
  9091. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9092. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  9093. $rm conftest*
  9094. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9095. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9096. (eval $ac_compile) 2>&5
  9097. ac_status=$?
  9098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9099. (exit $ac_status); } 2>conftest.err; then
  9100. soname=conftest
  9101. lib=conftest
  9102. libobjs=conftest.$ac_objext
  9103. deplibs=
  9104. wl=$lt_prog_compiler_wl
  9105. pic_flag=$lt_prog_compiler_pic
  9106. compiler_flags=-v
  9107. linker_flags=-v
  9108. verstring=
  9109. output_objdir=.
  9110. libname=conftest
  9111. lt_save_allow_undefined_flag=$allow_undefined_flag
  9112. allow_undefined_flag=
  9113. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9114. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9115. ac_status=$?
  9116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9117. (exit $ac_status); }
  9118. then
  9119. archive_cmds_need_lc=no
  9120. else
  9121. archive_cmds_need_lc=yes
  9122. fi
  9123. allow_undefined_flag=$lt_save_allow_undefined_flag
  9124. else
  9125. cat conftest.err 1>&5
  9126. fi
  9127. $rm conftest*
  9128. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  9129. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  9130. ;;
  9131. esac
  9132. fi
  9133. ;;
  9134. esac
  9135. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9136. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  9137. library_names_spec=
  9138. libname_spec='lib$name'
  9139. soname_spec=
  9140. shrext_cmds=".so"
  9141. postinstall_cmds=
  9142. postuninstall_cmds=
  9143. finish_cmds=
  9144. finish_eval=
  9145. shlibpath_var=
  9146. shlibpath_overrides_runpath=unknown
  9147. version_type=none
  9148. dynamic_linker="$host_os ld.so"
  9149. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9150. if test "$GCC" = yes; then
  9151. case $host_os in
  9152. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9153. *) lt_awk_arg="/^libraries:/" ;;
  9154. esac
  9155. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9156. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  9157. # if the path contains ";" then we assume it to be the separator
  9158. # otherwise default to the standard path separator (i.e. ":") - it is
  9159. # assumed that no part of a normal pathname contains ";" but that should
  9160. # okay in the real world where ";" in dirpaths is itself problematic.
  9161. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9162. else
  9163. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9164. fi
  9165. # Ok, now we have the path, separated by spaces, we can step through it
  9166. # and add multilib dir if necessary.
  9167. lt_tmp_lt_search_path_spec=
  9168. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9169. for lt_sys_path in $lt_search_path_spec; do
  9170. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9171. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9172. else
  9173. test -d "$lt_sys_path" && \
  9174. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9175. fi
  9176. done
  9177. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  9178. BEGIN {RS=" "; FS="/|\n";} {
  9179. lt_foo="";
  9180. lt_count=0;
  9181. for (lt_i = NF; lt_i > 0; lt_i--) {
  9182. if ($lt_i != "" && $lt_i != ".") {
  9183. if ($lt_i == "..") {
  9184. lt_count++;
  9185. } else {
  9186. if (lt_count == 0) {
  9187. lt_foo="/" $lt_i lt_foo;
  9188. } else {
  9189. lt_count--;
  9190. }
  9191. }
  9192. }
  9193. }
  9194. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9195. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9196. }'`
  9197. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  9198. else
  9199. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9200. fi
  9201. need_lib_prefix=unknown
  9202. hardcode_into_libs=no
  9203. # when you set need_version to no, make sure it does not cause -set_version
  9204. # flags to be left without arguments
  9205. need_version=unknown
  9206. case $host_os in
  9207. aix3*)
  9208. version_type=linux
  9209. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9210. shlibpath_var=LIBPATH
  9211. # AIX 3 has no versioning support, so we append a major version to the name.
  9212. soname_spec='${libname}${release}${shared_ext}$major'
  9213. ;;
  9214. aix[4-9]*)
  9215. version_type=linux
  9216. need_lib_prefix=no
  9217. need_version=no
  9218. hardcode_into_libs=yes
  9219. if test "$host_cpu" = ia64; then
  9220. # AIX 5 supports IA64
  9221. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9222. shlibpath_var=LD_LIBRARY_PATH
  9223. else
  9224. # With GCC up to 2.95.x, collect2 would create an import file
  9225. # for dependence libraries. The import file would start with
  9226. # the line `#! .'. This would cause the generated library to
  9227. # depend on `.', always an invalid library. This was fixed in
  9228. # development snapshots of GCC prior to 3.0.
  9229. case $host_os in
  9230. aix4 | aix4.[01] | aix4.[01].*)
  9231. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9232. echo ' yes '
  9233. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  9234. :
  9235. else
  9236. can_build_shared=no
  9237. fi
  9238. ;;
  9239. esac
  9240. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9241. # soname into executable. Probably we can add versioning support to
  9242. # collect2, so additional links can be useful in future.
  9243. if test "$aix_use_runtimelinking" = yes; then
  9244. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9245. # instead of lib<name>.a to let people know that these are not
  9246. # typical AIX shared libraries.
  9247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9248. else
  9249. # We preserve .a as extension for shared libraries through AIX4.2
  9250. # and later when we are not doing run time linking.
  9251. library_names_spec='${libname}${release}.a $libname.a'
  9252. soname_spec='${libname}${release}${shared_ext}$major'
  9253. fi
  9254. shlibpath_var=LIBPATH
  9255. fi
  9256. ;;
  9257. amigaos*)
  9258. library_names_spec='$libname.ixlibrary $libname.a'
  9259. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9260. 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'
  9261. ;;
  9262. beos*)
  9263. library_names_spec='${libname}${shared_ext}'
  9264. dynamic_linker="$host_os ld.so"
  9265. shlibpath_var=LIBRARY_PATH
  9266. ;;
  9267. bsdi[45]*)
  9268. version_type=linux
  9269. need_version=no
  9270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9271. soname_spec='${libname}${release}${shared_ext}$major'
  9272. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9273. shlibpath_var=LD_LIBRARY_PATH
  9274. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9275. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9276. # the default ld.so.conf also contains /usr/contrib/lib and
  9277. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9278. # libtool to hard-code these into programs
  9279. ;;
  9280. cygwin* | mingw* | pw32*)
  9281. version_type=windows
  9282. shrext_cmds=".dll"
  9283. need_version=no
  9284. need_lib_prefix=no
  9285. case $GCC,$host_os in
  9286. yes,cygwin* | yes,mingw* | yes,pw32*)
  9287. library_names_spec='$libname.dll.a'
  9288. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9289. postinstall_cmds='base_file=`basename \${file}`~
  9290. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  9291. dldir=$destdir/`dirname \$dlpath`~
  9292. test -d \$dldir || mkdir -p \$dldir~
  9293. $install_prog $dir/$dlname \$dldir/$dlname~
  9294. chmod a+x \$dldir/$dlname'
  9295. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9296. dlpath=$dir/\$dldll~
  9297. $rm \$dlpath'
  9298. shlibpath_overrides_runpath=yes
  9299. case $host_os in
  9300. cygwin*)
  9301. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9302. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9303. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9304. ;;
  9305. mingw*)
  9306. # MinGW DLLs use traditional 'lib' prefix
  9307. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9308. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9309. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  9310. # It is most probably a Windows format PATH printed by
  9311. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9312. # path with ; separators, and with drive letters. We can handle the
  9313. # drive letters (cygwin fileutils understands them), so leave them,
  9314. # especially as we might pass files found there to a mingw objdump,
  9315. # which wouldn't understand a cygwinified path. Ahh.
  9316. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9317. else
  9318. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9319. fi
  9320. ;;
  9321. pw32*)
  9322. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9323. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9324. ;;
  9325. esac
  9326. ;;
  9327. *)
  9328. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9329. ;;
  9330. esac
  9331. dynamic_linker='Win32 ld.exe'
  9332. # FIXME: first we should search . and the directory the executable is in
  9333. shlibpath_var=PATH
  9334. ;;
  9335. darwin* | rhapsody*)
  9336. dynamic_linker="$host_os dyld"
  9337. version_type=darwin
  9338. need_lib_prefix=no
  9339. need_version=no
  9340. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9341. soname_spec='${libname}${release}${major}$shared_ext'
  9342. shlibpath_overrides_runpath=yes
  9343. shlibpath_var=DYLD_LIBRARY_PATH
  9344. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9345. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9346. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9347. ;;
  9348. dgux*)
  9349. version_type=linux
  9350. need_lib_prefix=no
  9351. need_version=no
  9352. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9353. soname_spec='${libname}${release}${shared_ext}$major'
  9354. shlibpath_var=LD_LIBRARY_PATH
  9355. ;;
  9356. freebsd1*)
  9357. dynamic_linker=no
  9358. ;;
  9359. freebsd* | dragonfly*)
  9360. # DragonFly does not have aout. When/if they implement a new
  9361. # versioning mechanism, adjust this.
  9362. if test -x /usr/bin/objformat; then
  9363. objformat=`/usr/bin/objformat`
  9364. else
  9365. case $host_os in
  9366. freebsd[123]*) objformat=aout ;;
  9367. *) objformat=elf ;;
  9368. esac
  9369. fi
  9370. version_type=freebsd-$objformat
  9371. case $version_type in
  9372. freebsd-elf*)
  9373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9374. need_version=no
  9375. need_lib_prefix=no
  9376. ;;
  9377. freebsd-*)
  9378. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9379. need_version=yes
  9380. ;;
  9381. esac
  9382. shlibpath_var=LD_LIBRARY_PATH
  9383. case $host_os in
  9384. freebsd2*)
  9385. shlibpath_overrides_runpath=yes
  9386. ;;
  9387. freebsd3.[01]* | freebsdelf3.[01]*)
  9388. shlibpath_overrides_runpath=yes
  9389. hardcode_into_libs=yes
  9390. ;;
  9391. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9392. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9393. shlibpath_overrides_runpath=no
  9394. hardcode_into_libs=yes
  9395. ;;
  9396. *) # from 4.6 on, and DragonFly
  9397. shlibpath_overrides_runpath=yes
  9398. hardcode_into_libs=yes
  9399. ;;
  9400. esac
  9401. ;;
  9402. gnu*)
  9403. version_type=linux
  9404. need_lib_prefix=no
  9405. need_version=no
  9406. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9407. soname_spec='${libname}${release}${shared_ext}$major'
  9408. shlibpath_var=LD_LIBRARY_PATH
  9409. hardcode_into_libs=yes
  9410. ;;
  9411. hpux9* | hpux10* | hpux11*)
  9412. # Give a soname corresponding to the major version so that dld.sl refuses to
  9413. # link against other versions.
  9414. version_type=sunos
  9415. need_lib_prefix=no
  9416. need_version=no
  9417. case $host_cpu in
  9418. ia64*)
  9419. shrext_cmds='.so'
  9420. hardcode_into_libs=yes
  9421. dynamic_linker="$host_os dld.so"
  9422. shlibpath_var=LD_LIBRARY_PATH
  9423. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9424. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9425. soname_spec='${libname}${release}${shared_ext}$major'
  9426. if test "X$HPUX_IA64_MODE" = X32; then
  9427. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9428. else
  9429. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9430. fi
  9431. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9432. ;;
  9433. hppa*64*)
  9434. shrext_cmds='.sl'
  9435. hardcode_into_libs=yes
  9436. dynamic_linker="$host_os dld.sl"
  9437. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9438. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9439. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9440. soname_spec='${libname}${release}${shared_ext}$major'
  9441. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9442. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9443. ;;
  9444. *)
  9445. shrext_cmds='.sl'
  9446. dynamic_linker="$host_os dld.sl"
  9447. shlibpath_var=SHLIB_PATH
  9448. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9449. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9450. soname_spec='${libname}${release}${shared_ext}$major'
  9451. ;;
  9452. esac
  9453. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9454. postinstall_cmds='chmod 555 $lib'
  9455. ;;
  9456. interix[3-9]*)
  9457. version_type=linux
  9458. need_lib_prefix=no
  9459. need_version=no
  9460. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9461. soname_spec='${libname}${release}${shared_ext}$major'
  9462. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9463. shlibpath_var=LD_LIBRARY_PATH
  9464. shlibpath_overrides_runpath=no
  9465. hardcode_into_libs=yes
  9466. ;;
  9467. irix5* | irix6* | nonstopux*)
  9468. case $host_os in
  9469. nonstopux*) version_type=nonstopux ;;
  9470. *)
  9471. if test "$lt_cv_prog_gnu_ld" = yes; then
  9472. version_type=linux
  9473. else
  9474. version_type=irix
  9475. fi ;;
  9476. esac
  9477. need_lib_prefix=no
  9478. need_version=no
  9479. soname_spec='${libname}${release}${shared_ext}$major'
  9480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9481. case $host_os in
  9482. irix5* | nonstopux*)
  9483. libsuff= shlibsuff=
  9484. ;;
  9485. *)
  9486. case $LD in # libtool.m4 will add one of these switches to LD
  9487. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9488. libsuff= shlibsuff= libmagic=32-bit;;
  9489. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9490. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9491. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9492. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9493. *) libsuff= shlibsuff= libmagic=never-match;;
  9494. esac
  9495. ;;
  9496. esac
  9497. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9498. shlibpath_overrides_runpath=no
  9499. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9500. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9501. hardcode_into_libs=yes
  9502. ;;
  9503. # No shared lib support for Linux oldld, aout, or coff.
  9504. linux*oldld* | linux*aout* | linux*coff*)
  9505. dynamic_linker=no
  9506. ;;
  9507. # This must be Linux ELF.
  9508. linux* | k*bsd*-gnu)
  9509. version_type=linux
  9510. need_lib_prefix=no
  9511. need_version=no
  9512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9513. soname_spec='${libname}${release}${shared_ext}$major'
  9514. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9515. shlibpath_var=LD_LIBRARY_PATH
  9516. shlibpath_overrides_runpath=no
  9517. # This implies no fast_install, which is unacceptable.
  9518. # Some rework will be needed to allow for fast_install
  9519. # before this can be enabled.
  9520. hardcode_into_libs=yes
  9521. # Append ld.so.conf contents to the search path
  9522. if test -f /etc/ld.so.conf; then
  9523. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  9524. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9525. fi
  9526. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9527. # powerpc, because MkLinux only supported shared libraries with the
  9528. # GNU dynamic linker. Since this was broken with cross compilers,
  9529. # most powerpc-linux boxes support dynamic linking these days and
  9530. # people can always --disable-shared, the test was removed, and we
  9531. # assume the GNU/Linux dynamic linker is in use.
  9532. dynamic_linker='GNU/Linux ld.so'
  9533. ;;
  9534. netbsdelf*-gnu)
  9535. version_type=linux
  9536. need_lib_prefix=no
  9537. need_version=no
  9538. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9539. soname_spec='${libname}${release}${shared_ext}$major'
  9540. shlibpath_var=LD_LIBRARY_PATH
  9541. shlibpath_overrides_runpath=no
  9542. hardcode_into_libs=yes
  9543. dynamic_linker='NetBSD ld.elf_so'
  9544. ;;
  9545. netbsd*)
  9546. version_type=sunos
  9547. need_lib_prefix=no
  9548. need_version=no
  9549. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9550. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9551. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9552. dynamic_linker='NetBSD (a.out) ld.so'
  9553. else
  9554. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9555. soname_spec='${libname}${release}${shared_ext}$major'
  9556. dynamic_linker='NetBSD ld.elf_so'
  9557. fi
  9558. shlibpath_var=LD_LIBRARY_PATH
  9559. shlibpath_overrides_runpath=yes
  9560. hardcode_into_libs=yes
  9561. ;;
  9562. newsos6)
  9563. version_type=linux
  9564. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9565. shlibpath_var=LD_LIBRARY_PATH
  9566. shlibpath_overrides_runpath=yes
  9567. ;;
  9568. nto-qnx*)
  9569. version_type=linux
  9570. need_lib_prefix=no
  9571. need_version=no
  9572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9573. soname_spec='${libname}${release}${shared_ext}$major'
  9574. shlibpath_var=LD_LIBRARY_PATH
  9575. shlibpath_overrides_runpath=yes
  9576. ;;
  9577. openbsd*)
  9578. version_type=sunos
  9579. sys_lib_dlsearch_path_spec="/usr/lib"
  9580. need_lib_prefix=no
  9581. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9582. case $host_os in
  9583. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9584. *) need_version=no ;;
  9585. esac
  9586. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9587. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9588. shlibpath_var=LD_LIBRARY_PATH
  9589. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9590. case $host_os in
  9591. openbsd2.[89] | openbsd2.[89].*)
  9592. shlibpath_overrides_runpath=no
  9593. ;;
  9594. *)
  9595. shlibpath_overrides_runpath=yes
  9596. ;;
  9597. esac
  9598. else
  9599. shlibpath_overrides_runpath=yes
  9600. fi
  9601. ;;
  9602. os2*)
  9603. libname_spec='$name'
  9604. shrext_cmds=".dll"
  9605. need_lib_prefix=no
  9606. library_names_spec='$libname${shared_ext} $libname.a'
  9607. dynamic_linker='OS/2 ld.exe'
  9608. shlibpath_var=LIBPATH
  9609. ;;
  9610. osf3* | osf4* | osf5*)
  9611. version_type=osf
  9612. need_lib_prefix=no
  9613. need_version=no
  9614. soname_spec='${libname}${release}${shared_ext}$major'
  9615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9616. shlibpath_var=LD_LIBRARY_PATH
  9617. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9618. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9619. ;;
  9620. rdos*)
  9621. dynamic_linker=no
  9622. ;;
  9623. solaris*)
  9624. version_type=linux
  9625. need_lib_prefix=no
  9626. need_version=no
  9627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9628. soname_spec='${libname}${release}${shared_ext}$major'
  9629. shlibpath_var=LD_LIBRARY_PATH
  9630. shlibpath_overrides_runpath=yes
  9631. hardcode_into_libs=yes
  9632. # ldd complains unless libraries are executable
  9633. postinstall_cmds='chmod +x $lib'
  9634. ;;
  9635. sunos4*)
  9636. version_type=sunos
  9637. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9638. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9639. shlibpath_var=LD_LIBRARY_PATH
  9640. shlibpath_overrides_runpath=yes
  9641. if test "$with_gnu_ld" = yes; then
  9642. need_lib_prefix=no
  9643. fi
  9644. need_version=yes
  9645. ;;
  9646. sysv4 | sysv4.3*)
  9647. version_type=linux
  9648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9649. soname_spec='${libname}${release}${shared_ext}$major'
  9650. shlibpath_var=LD_LIBRARY_PATH
  9651. case $host_vendor in
  9652. sni)
  9653. shlibpath_overrides_runpath=no
  9654. need_lib_prefix=no
  9655. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9656. runpath_var=LD_RUN_PATH
  9657. ;;
  9658. siemens)
  9659. need_lib_prefix=no
  9660. ;;
  9661. motorola)
  9662. need_lib_prefix=no
  9663. need_version=no
  9664. shlibpath_overrides_runpath=no
  9665. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9666. ;;
  9667. esac
  9668. ;;
  9669. sysv4*MP*)
  9670. if test -d /usr/nec ;then
  9671. version_type=linux
  9672. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9673. soname_spec='$libname${shared_ext}.$major'
  9674. shlibpath_var=LD_LIBRARY_PATH
  9675. fi
  9676. ;;
  9677. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9678. version_type=freebsd-elf
  9679. need_lib_prefix=no
  9680. need_version=no
  9681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9682. soname_spec='${libname}${release}${shared_ext}$major'
  9683. shlibpath_var=LD_LIBRARY_PATH
  9684. hardcode_into_libs=yes
  9685. if test "$with_gnu_ld" = yes; then
  9686. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9687. shlibpath_overrides_runpath=no
  9688. else
  9689. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9690. shlibpath_overrides_runpath=yes
  9691. case $host_os in
  9692. sco3.2v5*)
  9693. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9694. ;;
  9695. esac
  9696. fi
  9697. sys_lib_dlsearch_path_spec='/usr/lib'
  9698. ;;
  9699. uts4*)
  9700. version_type=linux
  9701. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9702. soname_spec='${libname}${release}${shared_ext}$major'
  9703. shlibpath_var=LD_LIBRARY_PATH
  9704. ;;
  9705. *)
  9706. dynamic_linker=no
  9707. ;;
  9708. esac
  9709. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  9710. echo "${ECHO_T}$dynamic_linker" >&6; }
  9711. test "$dynamic_linker" = no && can_build_shared=no
  9712. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9713. echo $ECHO_N "(cached) $ECHO_C" >&6
  9714. else
  9715. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  9716. fi
  9717. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9718. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9719. echo $ECHO_N "(cached) $ECHO_C" >&6
  9720. else
  9721. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  9722. fi
  9723. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9724. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9725. if test "$GCC" = yes; then
  9726. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9727. fi
  9728. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  9729. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  9730. hardcode_action=
  9731. if test -n "$hardcode_libdir_flag_spec" || \
  9732. test -n "$runpath_var" || \
  9733. test "X$hardcode_automatic" = "Xyes" ; then
  9734. # We can hardcode non-existant directories.
  9735. if test "$hardcode_direct" != no &&
  9736. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9737. # have to relink, otherwise we might link with an installed library
  9738. # when we should be linking with a yet-to-be-installed one
  9739. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9740. test "$hardcode_minus_L" != no; then
  9741. # Linking always hardcodes the temporary library directory.
  9742. hardcode_action=relink
  9743. else
  9744. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9745. hardcode_action=immediate
  9746. fi
  9747. else
  9748. # We cannot hardcode anything, or else we can only hardcode existing
  9749. # directories.
  9750. hardcode_action=unsupported
  9751. fi
  9752. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  9753. echo "${ECHO_T}$hardcode_action" >&6; }
  9754. if test "$hardcode_action" = relink; then
  9755. # Fast installation is not supported
  9756. enable_fast_install=no
  9757. elif test "$shlibpath_overrides_runpath" = yes ||
  9758. test "$enable_shared" = no; then
  9759. # Fast installation is not necessary
  9760. enable_fast_install=needless
  9761. fi
  9762. striplib=
  9763. old_striplib=
  9764. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9765. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  9766. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  9767. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9768. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9769. { echo "$as_me:$LINENO: result: yes" >&5
  9770. echo "${ECHO_T}yes" >&6; }
  9771. else
  9772. # FIXME - insert some real tests, host_os isn't really good enough
  9773. case $host_os in
  9774. darwin*)
  9775. if test -n "$STRIP" ; then
  9776. striplib="$STRIP -x"
  9777. old_striplib="$STRIP -S"
  9778. { echo "$as_me:$LINENO: result: yes" >&5
  9779. echo "${ECHO_T}yes" >&6; }
  9780. else
  9781. { echo "$as_me:$LINENO: result: no" >&5
  9782. echo "${ECHO_T}no" >&6; }
  9783. fi
  9784. ;;
  9785. *)
  9786. { echo "$as_me:$LINENO: result: no" >&5
  9787. echo "${ECHO_T}no" >&6; }
  9788. ;;
  9789. esac
  9790. fi
  9791. if test "x$enable_dlopen" != xyes; then
  9792. enable_dlopen=unknown
  9793. enable_dlopen_self=unknown
  9794. enable_dlopen_self_static=unknown
  9795. else
  9796. lt_cv_dlopen=no
  9797. lt_cv_dlopen_libs=
  9798. case $host_os in
  9799. beos*)
  9800. lt_cv_dlopen="load_add_on"
  9801. lt_cv_dlopen_libs=
  9802. lt_cv_dlopen_self=yes
  9803. ;;
  9804. mingw* | pw32*)
  9805. lt_cv_dlopen="LoadLibrary"
  9806. lt_cv_dlopen_libs=
  9807. ;;
  9808. cygwin*)
  9809. lt_cv_dlopen="dlopen"
  9810. lt_cv_dlopen_libs=
  9811. ;;
  9812. darwin*)
  9813. # if libdl is installed we need to link against it
  9814. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9815. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  9816. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9817. echo $ECHO_N "(cached) $ECHO_C" >&6
  9818. else
  9819. ac_check_lib_save_LIBS=$LIBS
  9820. LIBS="-ldl $LIBS"
  9821. cat >conftest.$ac_ext <<_ACEOF
  9822. /* confdefs.h. */
  9823. _ACEOF
  9824. cat confdefs.h >>conftest.$ac_ext
  9825. cat >>conftest.$ac_ext <<_ACEOF
  9826. /* end confdefs.h. */
  9827. /* Override any GCC internal prototype to avoid an error.
  9828. Use char because int might match the return type of a GCC
  9829. builtin and then its argument prototype would still apply. */
  9830. #ifdef __cplusplus
  9831. extern "C"
  9832. #endif
  9833. char dlopen ();
  9834. int
  9835. main ()
  9836. {
  9837. return dlopen ();
  9838. ;
  9839. return 0;
  9840. }
  9841. _ACEOF
  9842. rm -f conftest.$ac_objext conftest$ac_exeext
  9843. if { (ac_try="$ac_link"
  9844. case "(($ac_try" in
  9845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9846. *) ac_try_echo=$ac_try;;
  9847. esac
  9848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9849. (eval "$ac_link") 2>conftest.er1
  9850. ac_status=$?
  9851. grep -v '^ *+' conftest.er1 >conftest.err
  9852. rm -f conftest.er1
  9853. cat conftest.err >&5
  9854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9855. (exit $ac_status); } && {
  9856. test -z "$ac_c_werror_flag" ||
  9857. test ! -s conftest.err
  9858. } && test -s conftest$ac_exeext &&
  9859. $as_test_x conftest$ac_exeext; then
  9860. ac_cv_lib_dl_dlopen=yes
  9861. else
  9862. echo "$as_me: failed program was:" >&5
  9863. sed 's/^/| /' conftest.$ac_ext >&5
  9864. ac_cv_lib_dl_dlopen=no
  9865. fi
  9866. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9867. conftest$ac_exeext conftest.$ac_ext
  9868. LIBS=$ac_check_lib_save_LIBS
  9869. fi
  9870. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9871. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  9872. if test $ac_cv_lib_dl_dlopen = yes; then
  9873. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9874. else
  9875. lt_cv_dlopen="dyld"
  9876. lt_cv_dlopen_libs=
  9877. lt_cv_dlopen_self=yes
  9878. fi
  9879. ;;
  9880. *)
  9881. { echo "$as_me:$LINENO: checking for shl_load" >&5
  9882. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  9883. if test "${ac_cv_func_shl_load+set}" = set; then
  9884. echo $ECHO_N "(cached) $ECHO_C" >&6
  9885. else
  9886. cat >conftest.$ac_ext <<_ACEOF
  9887. /* confdefs.h. */
  9888. _ACEOF
  9889. cat confdefs.h >>conftest.$ac_ext
  9890. cat >>conftest.$ac_ext <<_ACEOF
  9891. /* end confdefs.h. */
  9892. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9893. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9894. #define shl_load innocuous_shl_load
  9895. /* System header to define __stub macros and hopefully few prototypes,
  9896. which can conflict with char shl_load (); below.
  9897. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9898. <limits.h> exists even on freestanding compilers. */
  9899. #ifdef __STDC__
  9900. # include <limits.h>
  9901. #else
  9902. # include <assert.h>
  9903. #endif
  9904. #undef shl_load
  9905. /* Override any GCC internal prototype to avoid an error.
  9906. Use char because int might match the return type of a GCC
  9907. builtin and then its argument prototype would still apply. */
  9908. #ifdef __cplusplus
  9909. extern "C"
  9910. #endif
  9911. char shl_load ();
  9912. /* The GNU C library defines this for functions which it implements
  9913. to always fail with ENOSYS. Some functions are actually named
  9914. something starting with __ and the normal name is an alias. */
  9915. #if defined __stub_shl_load || defined __stub___shl_load
  9916. choke me
  9917. #endif
  9918. int
  9919. main ()
  9920. {
  9921. return shl_load ();
  9922. ;
  9923. return 0;
  9924. }
  9925. _ACEOF
  9926. rm -f conftest.$ac_objext conftest$ac_exeext
  9927. if { (ac_try="$ac_link"
  9928. case "(($ac_try" in
  9929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9930. *) ac_try_echo=$ac_try;;
  9931. esac
  9932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9933. (eval "$ac_link") 2>conftest.er1
  9934. ac_status=$?
  9935. grep -v '^ *+' conftest.er1 >conftest.err
  9936. rm -f conftest.er1
  9937. cat conftest.err >&5
  9938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9939. (exit $ac_status); } && {
  9940. test -z "$ac_c_werror_flag" ||
  9941. test ! -s conftest.err
  9942. } && test -s conftest$ac_exeext &&
  9943. $as_test_x conftest$ac_exeext; then
  9944. ac_cv_func_shl_load=yes
  9945. else
  9946. echo "$as_me: failed program was:" >&5
  9947. sed 's/^/| /' conftest.$ac_ext >&5
  9948. ac_cv_func_shl_load=no
  9949. fi
  9950. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9951. conftest$ac_exeext conftest.$ac_ext
  9952. fi
  9953. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9954. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  9955. if test $ac_cv_func_shl_load = yes; then
  9956. lt_cv_dlopen="shl_load"
  9957. else
  9958. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9959. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  9960. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9961. echo $ECHO_N "(cached) $ECHO_C" >&6
  9962. else
  9963. ac_check_lib_save_LIBS=$LIBS
  9964. LIBS="-ldld $LIBS"
  9965. cat >conftest.$ac_ext <<_ACEOF
  9966. /* confdefs.h. */
  9967. _ACEOF
  9968. cat confdefs.h >>conftest.$ac_ext
  9969. cat >>conftest.$ac_ext <<_ACEOF
  9970. /* end confdefs.h. */
  9971. /* Override any GCC internal prototype to avoid an error.
  9972. Use char because int might match the return type of a GCC
  9973. builtin and then its argument prototype would still apply. */
  9974. #ifdef __cplusplus
  9975. extern "C"
  9976. #endif
  9977. char shl_load ();
  9978. int
  9979. main ()
  9980. {
  9981. return shl_load ();
  9982. ;
  9983. return 0;
  9984. }
  9985. _ACEOF
  9986. rm -f conftest.$ac_objext conftest$ac_exeext
  9987. if { (ac_try="$ac_link"
  9988. case "(($ac_try" in
  9989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9990. *) ac_try_echo=$ac_try;;
  9991. esac
  9992. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9993. (eval "$ac_link") 2>conftest.er1
  9994. ac_status=$?
  9995. grep -v '^ *+' conftest.er1 >conftest.err
  9996. rm -f conftest.er1
  9997. cat conftest.err >&5
  9998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9999. (exit $ac_status); } && {
  10000. test -z "$ac_c_werror_flag" ||
  10001. test ! -s conftest.err
  10002. } && test -s conftest$ac_exeext &&
  10003. $as_test_x conftest$ac_exeext; then
  10004. ac_cv_lib_dld_shl_load=yes
  10005. else
  10006. echo "$as_me: failed program was:" >&5
  10007. sed 's/^/| /' conftest.$ac_ext >&5
  10008. ac_cv_lib_dld_shl_load=no
  10009. fi
  10010. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10011. conftest$ac_exeext conftest.$ac_ext
  10012. LIBS=$ac_check_lib_save_LIBS
  10013. fi
  10014. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  10015. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  10016. if test $ac_cv_lib_dld_shl_load = yes; then
  10017. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10018. else
  10019. { echo "$as_me:$LINENO: checking for dlopen" >&5
  10020. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  10021. if test "${ac_cv_func_dlopen+set}" = set; then
  10022. echo $ECHO_N "(cached) $ECHO_C" >&6
  10023. else
  10024. cat >conftest.$ac_ext <<_ACEOF
  10025. /* confdefs.h. */
  10026. _ACEOF
  10027. cat confdefs.h >>conftest.$ac_ext
  10028. cat >>conftest.$ac_ext <<_ACEOF
  10029. /* end confdefs.h. */
  10030. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10031. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10032. #define dlopen innocuous_dlopen
  10033. /* System header to define __stub macros and hopefully few prototypes,
  10034. which can conflict with char dlopen (); below.
  10035. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10036. <limits.h> exists even on freestanding compilers. */
  10037. #ifdef __STDC__
  10038. # include <limits.h>
  10039. #else
  10040. # include <assert.h>
  10041. #endif
  10042. #undef dlopen
  10043. /* Override any GCC internal prototype to avoid an error.
  10044. Use char because int might match the return type of a GCC
  10045. builtin and then its argument prototype would still apply. */
  10046. #ifdef __cplusplus
  10047. extern "C"
  10048. #endif
  10049. char dlopen ();
  10050. /* The GNU C library defines this for functions which it implements
  10051. to always fail with ENOSYS. Some functions are actually named
  10052. something starting with __ and the normal name is an alias. */
  10053. #if defined __stub_dlopen || defined __stub___dlopen
  10054. choke me
  10055. #endif
  10056. int
  10057. main ()
  10058. {
  10059. return dlopen ();
  10060. ;
  10061. return 0;
  10062. }
  10063. _ACEOF
  10064. rm -f conftest.$ac_objext conftest$ac_exeext
  10065. if { (ac_try="$ac_link"
  10066. case "(($ac_try" in
  10067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10068. *) ac_try_echo=$ac_try;;
  10069. esac
  10070. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10071. (eval "$ac_link") 2>conftest.er1
  10072. ac_status=$?
  10073. grep -v '^ *+' conftest.er1 >conftest.err
  10074. rm -f conftest.er1
  10075. cat conftest.err >&5
  10076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10077. (exit $ac_status); } && {
  10078. test -z "$ac_c_werror_flag" ||
  10079. test ! -s conftest.err
  10080. } && test -s conftest$ac_exeext &&
  10081. $as_test_x conftest$ac_exeext; then
  10082. ac_cv_func_dlopen=yes
  10083. else
  10084. echo "$as_me: failed program was:" >&5
  10085. sed 's/^/| /' conftest.$ac_ext >&5
  10086. ac_cv_func_dlopen=no
  10087. fi
  10088. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10089. conftest$ac_exeext conftest.$ac_ext
  10090. fi
  10091. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10092. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  10093. if test $ac_cv_func_dlopen = yes; then
  10094. lt_cv_dlopen="dlopen"
  10095. else
  10096. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10097. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  10098. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10099. echo $ECHO_N "(cached) $ECHO_C" >&6
  10100. else
  10101. ac_check_lib_save_LIBS=$LIBS
  10102. LIBS="-ldl $LIBS"
  10103. cat >conftest.$ac_ext <<_ACEOF
  10104. /* confdefs.h. */
  10105. _ACEOF
  10106. cat confdefs.h >>conftest.$ac_ext
  10107. cat >>conftest.$ac_ext <<_ACEOF
  10108. /* end confdefs.h. */
  10109. /* Override any GCC internal prototype to avoid an error.
  10110. Use char because int might match the return type of a GCC
  10111. builtin and then its argument prototype would still apply. */
  10112. #ifdef __cplusplus
  10113. extern "C"
  10114. #endif
  10115. char dlopen ();
  10116. int
  10117. main ()
  10118. {
  10119. return dlopen ();
  10120. ;
  10121. return 0;
  10122. }
  10123. _ACEOF
  10124. rm -f conftest.$ac_objext conftest$ac_exeext
  10125. if { (ac_try="$ac_link"
  10126. case "(($ac_try" in
  10127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10128. *) ac_try_echo=$ac_try;;
  10129. esac
  10130. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10131. (eval "$ac_link") 2>conftest.er1
  10132. ac_status=$?
  10133. grep -v '^ *+' conftest.er1 >conftest.err
  10134. rm -f conftest.er1
  10135. cat conftest.err >&5
  10136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10137. (exit $ac_status); } && {
  10138. test -z "$ac_c_werror_flag" ||
  10139. test ! -s conftest.err
  10140. } && test -s conftest$ac_exeext &&
  10141. $as_test_x conftest$ac_exeext; then
  10142. ac_cv_lib_dl_dlopen=yes
  10143. else
  10144. echo "$as_me: failed program was:" >&5
  10145. sed 's/^/| /' conftest.$ac_ext >&5
  10146. ac_cv_lib_dl_dlopen=no
  10147. fi
  10148. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10149. conftest$ac_exeext conftest.$ac_ext
  10150. LIBS=$ac_check_lib_save_LIBS
  10151. fi
  10152. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10153. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  10154. if test $ac_cv_lib_dl_dlopen = yes; then
  10155. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10156. else
  10157. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10158. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  10159. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10160. echo $ECHO_N "(cached) $ECHO_C" >&6
  10161. else
  10162. ac_check_lib_save_LIBS=$LIBS
  10163. LIBS="-lsvld $LIBS"
  10164. cat >conftest.$ac_ext <<_ACEOF
  10165. /* confdefs.h. */
  10166. _ACEOF
  10167. cat confdefs.h >>conftest.$ac_ext
  10168. cat >>conftest.$ac_ext <<_ACEOF
  10169. /* end confdefs.h. */
  10170. /* Override any GCC internal prototype to avoid an error.
  10171. Use char because int might match the return type of a GCC
  10172. builtin and then its argument prototype would still apply. */
  10173. #ifdef __cplusplus
  10174. extern "C"
  10175. #endif
  10176. char dlopen ();
  10177. int
  10178. main ()
  10179. {
  10180. return dlopen ();
  10181. ;
  10182. return 0;
  10183. }
  10184. _ACEOF
  10185. rm -f conftest.$ac_objext conftest$ac_exeext
  10186. if { (ac_try="$ac_link"
  10187. case "(($ac_try" in
  10188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10189. *) ac_try_echo=$ac_try;;
  10190. esac
  10191. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10192. (eval "$ac_link") 2>conftest.er1
  10193. ac_status=$?
  10194. grep -v '^ *+' conftest.er1 >conftest.err
  10195. rm -f conftest.er1
  10196. cat conftest.err >&5
  10197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10198. (exit $ac_status); } && {
  10199. test -z "$ac_c_werror_flag" ||
  10200. test ! -s conftest.err
  10201. } && test -s conftest$ac_exeext &&
  10202. $as_test_x conftest$ac_exeext; then
  10203. ac_cv_lib_svld_dlopen=yes
  10204. else
  10205. echo "$as_me: failed program was:" >&5
  10206. sed 's/^/| /' conftest.$ac_ext >&5
  10207. ac_cv_lib_svld_dlopen=no
  10208. fi
  10209. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10210. conftest$ac_exeext conftest.$ac_ext
  10211. LIBS=$ac_check_lib_save_LIBS
  10212. fi
  10213. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10214. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  10215. if test $ac_cv_lib_svld_dlopen = yes; then
  10216. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10217. else
  10218. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10219. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  10220. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10221. echo $ECHO_N "(cached) $ECHO_C" >&6
  10222. else
  10223. ac_check_lib_save_LIBS=$LIBS
  10224. LIBS="-ldld $LIBS"
  10225. cat >conftest.$ac_ext <<_ACEOF
  10226. /* confdefs.h. */
  10227. _ACEOF
  10228. cat confdefs.h >>conftest.$ac_ext
  10229. cat >>conftest.$ac_ext <<_ACEOF
  10230. /* end confdefs.h. */
  10231. /* Override any GCC internal prototype to avoid an error.
  10232. Use char because int might match the return type of a GCC
  10233. builtin and then its argument prototype would still apply. */
  10234. #ifdef __cplusplus
  10235. extern "C"
  10236. #endif
  10237. char dld_link ();
  10238. int
  10239. main ()
  10240. {
  10241. return dld_link ();
  10242. ;
  10243. return 0;
  10244. }
  10245. _ACEOF
  10246. rm -f conftest.$ac_objext conftest$ac_exeext
  10247. if { (ac_try="$ac_link"
  10248. case "(($ac_try" in
  10249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10250. *) ac_try_echo=$ac_try;;
  10251. esac
  10252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10253. (eval "$ac_link") 2>conftest.er1
  10254. ac_status=$?
  10255. grep -v '^ *+' conftest.er1 >conftest.err
  10256. rm -f conftest.er1
  10257. cat conftest.err >&5
  10258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10259. (exit $ac_status); } && {
  10260. test -z "$ac_c_werror_flag" ||
  10261. test ! -s conftest.err
  10262. } && test -s conftest$ac_exeext &&
  10263. $as_test_x conftest$ac_exeext; then
  10264. ac_cv_lib_dld_dld_link=yes
  10265. else
  10266. echo "$as_me: failed program was:" >&5
  10267. sed 's/^/| /' conftest.$ac_ext >&5
  10268. ac_cv_lib_dld_dld_link=no
  10269. fi
  10270. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10271. conftest$ac_exeext conftest.$ac_ext
  10272. LIBS=$ac_check_lib_save_LIBS
  10273. fi
  10274. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10275. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  10276. if test $ac_cv_lib_dld_dld_link = yes; then
  10277. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10278. fi
  10279. fi
  10280. fi
  10281. fi
  10282. fi
  10283. fi
  10284. ;;
  10285. esac
  10286. if test "x$lt_cv_dlopen" != xno; then
  10287. enable_dlopen=yes
  10288. else
  10289. enable_dlopen=no
  10290. fi
  10291. case $lt_cv_dlopen in
  10292. dlopen)
  10293. save_CPPFLAGS="$CPPFLAGS"
  10294. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10295. save_LDFLAGS="$LDFLAGS"
  10296. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10297. save_LIBS="$LIBS"
  10298. LIBS="$lt_cv_dlopen_libs $LIBS"
  10299. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10300. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  10301. if test "${lt_cv_dlopen_self+set}" = set; then
  10302. echo $ECHO_N "(cached) $ECHO_C" >&6
  10303. else
  10304. if test "$cross_compiling" = yes; then :
  10305. lt_cv_dlopen_self=cross
  10306. else
  10307. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10308. lt_status=$lt_dlunknown
  10309. cat > conftest.$ac_ext <<EOF
  10310. #line 11434 "configure"
  10311. #include "confdefs.h"
  10312. #if HAVE_DLFCN_H
  10313. #include <dlfcn.h>
  10314. #endif
  10315. #include <stdio.h>
  10316. #ifdef RTLD_GLOBAL
  10317. # define LT_DLGLOBAL RTLD_GLOBAL
  10318. #else
  10319. # ifdef DL_GLOBAL
  10320. # define LT_DLGLOBAL DL_GLOBAL
  10321. # else
  10322. # define LT_DLGLOBAL 0
  10323. # endif
  10324. #endif
  10325. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10326. find out it does not work in some platform. */
  10327. #ifndef LT_DLLAZY_OR_NOW
  10328. # ifdef RTLD_LAZY
  10329. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10330. # else
  10331. # ifdef DL_LAZY
  10332. # define LT_DLLAZY_OR_NOW DL_LAZY
  10333. # else
  10334. # ifdef RTLD_NOW
  10335. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10336. # else
  10337. # ifdef DL_NOW
  10338. # define LT_DLLAZY_OR_NOW DL_NOW
  10339. # else
  10340. # define LT_DLLAZY_OR_NOW 0
  10341. # endif
  10342. # endif
  10343. # endif
  10344. # endif
  10345. #endif
  10346. #ifdef __cplusplus
  10347. extern "C" void exit (int);
  10348. #endif
  10349. void fnord() { int i=42;}
  10350. int main ()
  10351. {
  10352. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10353. int status = $lt_dlunknown;
  10354. if (self)
  10355. {
  10356. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10357. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10358. /* dlclose (self); */
  10359. }
  10360. else
  10361. puts (dlerror ());
  10362. exit (status);
  10363. }
  10364. EOF
  10365. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10366. (eval $ac_link) 2>&5
  10367. ac_status=$?
  10368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10369. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10370. (./conftest; exit; ) >&5 2>/dev/null
  10371. lt_status=$?
  10372. case x$lt_status in
  10373. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10374. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10375. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10376. esac
  10377. else :
  10378. # compilation failed
  10379. lt_cv_dlopen_self=no
  10380. fi
  10381. fi
  10382. rm -fr conftest*
  10383. fi
  10384. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10385. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  10386. if test "x$lt_cv_dlopen_self" = xyes; then
  10387. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10388. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10389. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  10390. if test "${lt_cv_dlopen_self_static+set}" = set; then
  10391. echo $ECHO_N "(cached) $ECHO_C" >&6
  10392. else
  10393. if test "$cross_compiling" = yes; then :
  10394. lt_cv_dlopen_self_static=cross
  10395. else
  10396. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10397. lt_status=$lt_dlunknown
  10398. cat > conftest.$ac_ext <<EOF
  10399. #line 11534 "configure"
  10400. #include "confdefs.h"
  10401. #if HAVE_DLFCN_H
  10402. #include <dlfcn.h>
  10403. #endif
  10404. #include <stdio.h>
  10405. #ifdef RTLD_GLOBAL
  10406. # define LT_DLGLOBAL RTLD_GLOBAL
  10407. #else
  10408. # ifdef DL_GLOBAL
  10409. # define LT_DLGLOBAL DL_GLOBAL
  10410. # else
  10411. # define LT_DLGLOBAL 0
  10412. # endif
  10413. #endif
  10414. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10415. find out it does not work in some platform. */
  10416. #ifndef LT_DLLAZY_OR_NOW
  10417. # ifdef RTLD_LAZY
  10418. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10419. # else
  10420. # ifdef DL_LAZY
  10421. # define LT_DLLAZY_OR_NOW DL_LAZY
  10422. # else
  10423. # ifdef RTLD_NOW
  10424. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10425. # else
  10426. # ifdef DL_NOW
  10427. # define LT_DLLAZY_OR_NOW DL_NOW
  10428. # else
  10429. # define LT_DLLAZY_OR_NOW 0
  10430. # endif
  10431. # endif
  10432. # endif
  10433. # endif
  10434. #endif
  10435. #ifdef __cplusplus
  10436. extern "C" void exit (int);
  10437. #endif
  10438. void fnord() { int i=42;}
  10439. int main ()
  10440. {
  10441. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10442. int status = $lt_dlunknown;
  10443. if (self)
  10444. {
  10445. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10446. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10447. /* dlclose (self); */
  10448. }
  10449. else
  10450. puts (dlerror ());
  10451. exit (status);
  10452. }
  10453. EOF
  10454. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10455. (eval $ac_link) 2>&5
  10456. ac_status=$?
  10457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10458. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10459. (./conftest; exit; ) >&5 2>/dev/null
  10460. lt_status=$?
  10461. case x$lt_status in
  10462. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10463. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10464. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10465. esac
  10466. else :
  10467. # compilation failed
  10468. lt_cv_dlopen_self_static=no
  10469. fi
  10470. fi
  10471. rm -fr conftest*
  10472. fi
  10473. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  10474. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  10475. fi
  10476. CPPFLAGS="$save_CPPFLAGS"
  10477. LDFLAGS="$save_LDFLAGS"
  10478. LIBS="$save_LIBS"
  10479. ;;
  10480. esac
  10481. case $lt_cv_dlopen_self in
  10482. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10483. *) enable_dlopen_self=unknown ;;
  10484. esac
  10485. case $lt_cv_dlopen_self_static in
  10486. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10487. *) enable_dlopen_self_static=unknown ;;
  10488. esac
  10489. fi
  10490. # Report which library types will actually be built
  10491. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  10492. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  10493. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  10494. echo "${ECHO_T}$can_build_shared" >&6; }
  10495. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  10496. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  10497. test "$can_build_shared" = "no" && enable_shared=no
  10498. # On AIX, shared libraries and static libraries use the same namespace, and
  10499. # are all built from PIC.
  10500. case $host_os in
  10501. aix3*)
  10502. test "$enable_shared" = yes && enable_static=no
  10503. if test -n "$RANLIB"; then
  10504. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10505. postinstall_cmds='$RANLIB $lib'
  10506. fi
  10507. ;;
  10508. aix[4-9]*)
  10509. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10510. test "$enable_shared" = yes && enable_static=no
  10511. fi
  10512. ;;
  10513. esac
  10514. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  10515. echo "${ECHO_T}$enable_shared" >&6; }
  10516. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  10517. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  10518. # Make sure either enable_shared or enable_static is yes.
  10519. test "$enable_shared" = yes || enable_static=yes
  10520. { echo "$as_me:$LINENO: result: $enable_static" >&5
  10521. echo "${ECHO_T}$enable_static" >&6; }
  10522. # The else clause should only fire when bootstrapping the
  10523. # libtool distribution, otherwise you forgot to ship ltmain.sh
  10524. # with your package, and you will get complaints that there are
  10525. # no rules to generate ltmain.sh.
  10526. if test -f "$ltmain"; then
  10527. # See if we are running on zsh, and set the options which allow our commands through
  10528. # without removal of \ escapes.
  10529. if test -n "${ZSH_VERSION+set}" ; then
  10530. setopt NO_GLOB_SUBST
  10531. fi
  10532. # Now quote all the things that may contain metacharacters while being
  10533. # careful not to overquote the AC_SUBSTed values. We take copies of the
  10534. # variables and quote the copies for generation of the libtool script.
  10535. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  10536. SED SHELL STRIP \
  10537. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  10538. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  10539. deplibs_check_method reload_flag reload_cmds need_locks \
  10540. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  10541. lt_cv_sys_global_symbol_to_c_name_address \
  10542. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  10543. old_postinstall_cmds old_postuninstall_cmds \
  10544. compiler \
  10545. CC \
  10546. LD \
  10547. lt_prog_compiler_wl \
  10548. lt_prog_compiler_pic \
  10549. lt_prog_compiler_static \
  10550. lt_prog_compiler_no_builtin_flag \
  10551. export_dynamic_flag_spec \
  10552. thread_safe_flag_spec \
  10553. whole_archive_flag_spec \
  10554. enable_shared_with_static_runtimes \
  10555. old_archive_cmds \
  10556. old_archive_from_new_cmds \
  10557. predep_objects \
  10558. postdep_objects \
  10559. predeps \
  10560. postdeps \
  10561. compiler_lib_search_path \
  10562. compiler_lib_search_dirs \
  10563. archive_cmds \
  10564. archive_expsym_cmds \
  10565. postinstall_cmds \
  10566. postuninstall_cmds \
  10567. old_archive_from_expsyms_cmds \
  10568. allow_undefined_flag \
  10569. no_undefined_flag \
  10570. export_symbols_cmds \
  10571. hardcode_libdir_flag_spec \
  10572. hardcode_libdir_flag_spec_ld \
  10573. hardcode_libdir_separator \
  10574. hardcode_automatic \
  10575. module_cmds \
  10576. module_expsym_cmds \
  10577. lt_cv_prog_compiler_c_o \
  10578. fix_srcfile_path \
  10579. exclude_expsyms \
  10580. include_expsyms; do
  10581. case $var in
  10582. old_archive_cmds | \
  10583. old_archive_from_new_cmds | \
  10584. archive_cmds | \
  10585. archive_expsym_cmds | \
  10586. module_cmds | \
  10587. module_expsym_cmds | \
  10588. old_archive_from_expsyms_cmds | \
  10589. export_symbols_cmds | \
  10590. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  10591. postinstall_cmds | postuninstall_cmds | \
  10592. old_postinstall_cmds | old_postuninstall_cmds | \
  10593. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  10594. # Double-quote double-evaled strings.
  10595. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  10596. ;;
  10597. *)
  10598. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  10599. ;;
  10600. esac
  10601. done
  10602. case $lt_echo in
  10603. *'\$0 --fallback-echo"')
  10604. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  10605. ;;
  10606. esac
  10607. cfgfile="${ofile}T"
  10608. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  10609. $rm -f "$cfgfile"
  10610. { echo "$as_me:$LINENO: creating $ofile" >&5
  10611. echo "$as_me: creating $ofile" >&6;}
  10612. cat <<__EOF__ >> "$cfgfile"
  10613. #! $SHELL
  10614. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  10615. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  10616. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  10617. #
  10618. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  10619. # Free Software Foundation, Inc.
  10620. #
  10621. # This file is part of GNU Libtool:
  10622. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  10623. #
  10624. # This program is free software; you can redistribute it and/or modify
  10625. # it under the terms of the GNU General Public License as published by
  10626. # the Free Software Foundation; either version 2 of the License, or
  10627. # (at your option) any later version.
  10628. #
  10629. # This program is distributed in the hope that it will be useful, but
  10630. # WITHOUT ANY WARRANTY; without even the implied warranty of
  10631. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10632. # General Public License for more details.
  10633. #
  10634. # You should have received a copy of the GNU General Public License
  10635. # along with this program; if not, write to the Free Software
  10636. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  10637. #
  10638. # As a special exception to the GNU General Public License, if you
  10639. # distribute this file as part of a program that contains a
  10640. # configuration script generated by Autoconf, you may include it under
  10641. # the same distribution terms that you use for the rest of that program.
  10642. # A sed program that does not truncate output.
  10643. SED=$lt_SED
  10644. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  10645. Xsed="$SED -e 1s/^X//"
  10646. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10647. # if CDPATH is set.
  10648. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10649. # The names of the tagged configurations supported by this script.
  10650. available_tags=
  10651. # ### BEGIN LIBTOOL CONFIG
  10652. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10653. # Shell to use when invoking shell scripts.
  10654. SHELL=$lt_SHELL
  10655. # Whether or not to build shared libraries.
  10656. build_libtool_libs=$enable_shared
  10657. # Whether or not to build static libraries.
  10658. build_old_libs=$enable_static
  10659. # Whether or not to add -lc for building shared libraries.
  10660. build_libtool_need_lc=$archive_cmds_need_lc
  10661. # Whether or not to disallow shared libs when runtime libs are static
  10662. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  10663. # Whether or not to optimize for fast installation.
  10664. fast_install=$enable_fast_install
  10665. # The host system.
  10666. host_alias=$host_alias
  10667. host=$host
  10668. host_os=$host_os
  10669. # The build system.
  10670. build_alias=$build_alias
  10671. build=$build
  10672. build_os=$build_os
  10673. # An echo program that does not interpret backslashes.
  10674. echo=$lt_echo
  10675. # The archiver.
  10676. AR=$lt_AR
  10677. AR_FLAGS=$lt_AR_FLAGS
  10678. # A C compiler.
  10679. LTCC=$lt_LTCC
  10680. # LTCC compiler flags.
  10681. LTCFLAGS=$lt_LTCFLAGS
  10682. # A language-specific compiler.
  10683. CC=$lt_compiler
  10684. # Is the compiler the GNU C compiler?
  10685. with_gcc=$GCC
  10686. # An ERE matcher.
  10687. EGREP=$lt_EGREP
  10688. # The linker used to build libraries.
  10689. LD=$lt_LD
  10690. # Whether we need hard or soft links.
  10691. LN_S=$lt_LN_S
  10692. # A BSD-compatible nm program.
  10693. NM=$lt_NM
  10694. # A symbol stripping program
  10695. STRIP=$lt_STRIP
  10696. # Used to examine libraries when file_magic_cmd begins "file"
  10697. MAGIC_CMD=$MAGIC_CMD
  10698. # Used on cygwin: DLL creation program.
  10699. DLLTOOL="$DLLTOOL"
  10700. # Used on cygwin: object dumper.
  10701. OBJDUMP="$OBJDUMP"
  10702. # Used on cygwin: assembler.
  10703. AS="$AS"
  10704. # The name of the directory that contains temporary libtool files.
  10705. objdir=$objdir
  10706. # How to create reloadable object files.
  10707. reload_flag=$lt_reload_flag
  10708. reload_cmds=$lt_reload_cmds
  10709. # How to pass a linker flag through the compiler.
  10710. wl=$lt_lt_prog_compiler_wl
  10711. # Object file suffix (normally "o").
  10712. objext="$ac_objext"
  10713. # Old archive suffix (normally "a").
  10714. libext="$libext"
  10715. # Shared library suffix (normally ".so").
  10716. shrext_cmds='$shrext_cmds'
  10717. # Executable file suffix (normally "").
  10718. exeext="$exeext"
  10719. # Additional compiler flags for building library objects.
  10720. pic_flag=$lt_lt_prog_compiler_pic
  10721. pic_mode=$pic_mode
  10722. # What is the maximum length of a command?
  10723. max_cmd_len=$lt_cv_sys_max_cmd_len
  10724. # Does compiler simultaneously support -c and -o options?
  10725. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  10726. # Must we lock files when doing compilation?
  10727. need_locks=$lt_need_locks
  10728. # Do we need the lib prefix for modules?
  10729. need_lib_prefix=$need_lib_prefix
  10730. # Do we need a version for libraries?
  10731. need_version=$need_version
  10732. # Whether dlopen is supported.
  10733. dlopen_support=$enable_dlopen
  10734. # Whether dlopen of programs is supported.
  10735. dlopen_self=$enable_dlopen_self
  10736. # Whether dlopen of statically linked programs is supported.
  10737. dlopen_self_static=$enable_dlopen_self_static
  10738. # Compiler flag to prevent dynamic linking.
  10739. link_static_flag=$lt_lt_prog_compiler_static
  10740. # Compiler flag to turn off builtin functions.
  10741. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  10742. # Compiler flag to allow reflexive dlopens.
  10743. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  10744. # Compiler flag to generate shared objects directly from archives.
  10745. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  10746. # Compiler flag to generate thread-safe objects.
  10747. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  10748. # Library versioning type.
  10749. version_type=$version_type
  10750. # Format of library name prefix.
  10751. libname_spec=$lt_libname_spec
  10752. # List of archive names. First name is the real one, the rest are links.
  10753. # The last name is the one that the linker finds with -lNAME.
  10754. library_names_spec=$lt_library_names_spec
  10755. # The coded name of the library, if different from the real name.
  10756. soname_spec=$lt_soname_spec
  10757. # Commands used to build and install an old-style archive.
  10758. RANLIB=$lt_RANLIB
  10759. old_archive_cmds=$lt_old_archive_cmds
  10760. old_postinstall_cmds=$lt_old_postinstall_cmds
  10761. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  10762. # Create an old-style archive from a shared archive.
  10763. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  10764. # Create a temporary old-style archive to link instead of a shared archive.
  10765. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  10766. # Commands used to build and install a shared archive.
  10767. archive_cmds=$lt_archive_cmds
  10768. archive_expsym_cmds=$lt_archive_expsym_cmds
  10769. postinstall_cmds=$lt_postinstall_cmds
  10770. postuninstall_cmds=$lt_postuninstall_cmds
  10771. # Commands used to build a loadable module (assumed same as above if empty)
  10772. module_cmds=$lt_module_cmds
  10773. module_expsym_cmds=$lt_module_expsym_cmds
  10774. # Commands to strip libraries.
  10775. old_striplib=$lt_old_striplib
  10776. striplib=$lt_striplib
  10777. # Dependencies to place before the objects being linked to create a
  10778. # shared library.
  10779. predep_objects=$lt_predep_objects
  10780. # Dependencies to place after the objects being linked to create a
  10781. # shared library.
  10782. postdep_objects=$lt_postdep_objects
  10783. # Dependencies to place before the objects being linked to create a
  10784. # shared library.
  10785. predeps=$lt_predeps
  10786. # Dependencies to place after the objects being linked to create a
  10787. # shared library.
  10788. postdeps=$lt_postdeps
  10789. # The directories searched by this compiler when creating a shared
  10790. # library
  10791. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  10792. # The library search path used internally by the compiler when linking
  10793. # a shared library.
  10794. compiler_lib_search_path=$lt_compiler_lib_search_path
  10795. # Method to check whether dependent libraries are shared objects.
  10796. deplibs_check_method=$lt_deplibs_check_method
  10797. # Command to use when deplibs_check_method == file_magic.
  10798. file_magic_cmd=$lt_file_magic_cmd
  10799. # Flag that allows shared libraries with undefined symbols to be built.
  10800. allow_undefined_flag=$lt_allow_undefined_flag
  10801. # Flag that forces no undefined symbols.
  10802. no_undefined_flag=$lt_no_undefined_flag
  10803. # Commands used to finish a libtool library installation in a directory.
  10804. finish_cmds=$lt_finish_cmds
  10805. # Same as above, but a single script fragment to be evaled but not shown.
  10806. finish_eval=$lt_finish_eval
  10807. # Take the output of nm and produce a listing of raw symbols and C names.
  10808. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  10809. # Transform the output of nm in a proper C declaration
  10810. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  10811. # Transform the output of nm in a C name address pair
  10812. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  10813. # This is the shared library runtime path variable.
  10814. runpath_var=$runpath_var
  10815. # This is the shared library path variable.
  10816. shlibpath_var=$shlibpath_var
  10817. # Is shlibpath searched before the hard-coded library search path?
  10818. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  10819. # How to hardcode a shared library path into an executable.
  10820. hardcode_action=$hardcode_action
  10821. # Whether we should hardcode library paths into libraries.
  10822. hardcode_into_libs=$hardcode_into_libs
  10823. # Flag to hardcode \$libdir into a binary during linking.
  10824. # This must work even if \$libdir does not exist.
  10825. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  10826. # If ld is used when linking, flag to hardcode \$libdir into
  10827. # a binary during linking. This must work even if \$libdir does
  10828. # not exist.
  10829. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  10830. # Whether we need a single -rpath flag with a separated argument.
  10831. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  10832. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  10833. # resulting binary.
  10834. hardcode_direct=$hardcode_direct
  10835. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  10836. # resulting binary.
  10837. hardcode_minus_L=$hardcode_minus_L
  10838. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  10839. # the resulting binary.
  10840. hardcode_shlibpath_var=$hardcode_shlibpath_var
  10841. # Set to yes if building a shared library automatically hardcodes DIR into the library
  10842. # and all subsequent libraries and executables linked against it.
  10843. hardcode_automatic=$hardcode_automatic
  10844. # Variables whose values should be saved in libtool wrapper scripts and
  10845. # restored at relink time.
  10846. variables_saved_for_relink="$variables_saved_for_relink"
  10847. # Whether libtool must link a program against all its dependency libraries.
  10848. link_all_deplibs=$link_all_deplibs
  10849. # Compile-time system search path for libraries
  10850. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  10851. # Run-time system search path for libraries
  10852. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  10853. # Fix the shell variable \$srcfile for the compiler.
  10854. fix_srcfile_path=$lt_fix_srcfile_path
  10855. # Set to yes if exported symbols are required.
  10856. always_export_symbols=$always_export_symbols
  10857. # The commands to list exported symbols.
  10858. export_symbols_cmds=$lt_export_symbols_cmds
  10859. # The commands to extract the exported symbol list from a shared archive.
  10860. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  10861. # Symbols that should not be listed in the preloaded symbols.
  10862. exclude_expsyms=$lt_exclude_expsyms
  10863. # Symbols that must always be exported.
  10864. include_expsyms=$lt_include_expsyms
  10865. # ### END LIBTOOL CONFIG
  10866. __EOF__
  10867. case $host_os in
  10868. aix3*)
  10869. cat <<\EOF >> "$cfgfile"
  10870. # AIX sometimes has problems with the GCC collect2 program. For some
  10871. # reason, if we set the COLLECT_NAMES environment variable, the problems
  10872. # vanish in a puff of smoke.
  10873. if test "X${COLLECT_NAMES+set}" != Xset; then
  10874. COLLECT_NAMES=
  10875. export COLLECT_NAMES
  10876. fi
  10877. EOF
  10878. ;;
  10879. esac
  10880. # We use sed instead of cat because bash on DJGPP gets confused if
  10881. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  10882. # text mode, it properly converts lines to CR/LF. This bash problem
  10883. # is reportedly fixed, but why not run on old versions too?
  10884. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  10885. mv -f "$cfgfile" "$ofile" || \
  10886. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  10887. chmod +x "$ofile"
  10888. else
  10889. # If there is no Makefile yet, we rely on a make rule to execute
  10890. # `config.status --recheck' to rerun these tests and create the
  10891. # libtool script then.
  10892. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  10893. if test -f "$ltmain_in"; then
  10894. test -f Makefile && make "$ltmain"
  10895. fi
  10896. fi
  10897. ac_ext=c
  10898. ac_cpp='$CPP $CPPFLAGS'
  10899. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10900. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10901. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10902. CC="$lt_save_CC"
  10903. # Check whether --with-tags was given.
  10904. if test "${with_tags+set}" = set; then
  10905. withval=$with_tags; tagnames="$withval"
  10906. fi
  10907. if test -f "$ltmain" && test -n "$tagnames"; then
  10908. if test ! -f "${ofile}"; then
  10909. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  10910. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  10911. fi
  10912. if test -z "$LTCC"; then
  10913. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  10914. if test -z "$LTCC"; then
  10915. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  10916. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  10917. else
  10918. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  10919. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  10920. fi
  10921. fi
  10922. if test -z "$LTCFLAGS"; then
  10923. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  10924. fi
  10925. # Extract list of available tagged configurations in $ofile.
  10926. # Note that this assumes the entire list is on one line.
  10927. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  10928. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10929. for tagname in $tagnames; do
  10930. IFS="$lt_save_ifs"
  10931. # Check whether tagname contains only valid characters
  10932. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  10933. "") ;;
  10934. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  10935. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  10936. { (exit 1); exit 1; }; }
  10937. ;;
  10938. esac
  10939. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  10940. then
  10941. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  10942. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  10943. { (exit 1); exit 1; }; }
  10944. fi
  10945. # Update the list of available tags.
  10946. if test -n "$tagname"; then
  10947. echo appending configuration tag \"$tagname\" to $ofile
  10948. case $tagname in
  10949. CXX)
  10950. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10951. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10952. (test "X$CXX" != "Xg++"))) ; then
  10953. ac_ext=cpp
  10954. ac_cpp='$CXXCPP $CPPFLAGS'
  10955. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10956. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10957. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10958. archive_cmds_need_lc_CXX=no
  10959. allow_undefined_flag_CXX=
  10960. always_export_symbols_CXX=no
  10961. archive_expsym_cmds_CXX=
  10962. export_dynamic_flag_spec_CXX=
  10963. hardcode_direct_CXX=no
  10964. hardcode_libdir_flag_spec_CXX=
  10965. hardcode_libdir_flag_spec_ld_CXX=
  10966. hardcode_libdir_separator_CXX=
  10967. hardcode_minus_L_CXX=no
  10968. hardcode_shlibpath_var_CXX=unsupported
  10969. hardcode_automatic_CXX=no
  10970. module_cmds_CXX=
  10971. module_expsym_cmds_CXX=
  10972. link_all_deplibs_CXX=unknown
  10973. old_archive_cmds_CXX=$old_archive_cmds
  10974. no_undefined_flag_CXX=
  10975. whole_archive_flag_spec_CXX=
  10976. enable_shared_with_static_runtimes_CXX=no
  10977. # Dependencies to place before and after the object being linked:
  10978. predep_objects_CXX=
  10979. postdep_objects_CXX=
  10980. predeps_CXX=
  10981. postdeps_CXX=
  10982. compiler_lib_search_path_CXX=
  10983. compiler_lib_search_dirs_CXX=
  10984. # Source file extension for C++ test sources.
  10985. ac_ext=cpp
  10986. # Object file extension for compiled C++ test sources.
  10987. objext=o
  10988. objext_CXX=$objext
  10989. # Code to be used in simple compile tests
  10990. lt_simple_compile_test_code="int some_variable = 0;"
  10991. # Code to be used in simple link tests
  10992. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10993. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10994. # If no C compiler was specified, use CC.
  10995. LTCC=${LTCC-"$CC"}
  10996. # If no C compiler flags were specified, use CFLAGS.
  10997. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10998. # Allow CC to be a program name with arguments.
  10999. compiler=$CC
  11000. # save warnings/boilerplate of simple test code
  11001. ac_outfile=conftest.$ac_objext
  11002. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11003. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11004. _lt_compiler_boilerplate=`cat conftest.err`
  11005. $rm conftest*
  11006. ac_outfile=conftest.$ac_objext
  11007. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11008. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11009. _lt_linker_boilerplate=`cat conftest.err`
  11010. $rm -r conftest*
  11011. # Allow CC to be a program name with arguments.
  11012. lt_save_CC=$CC
  11013. lt_save_LD=$LD
  11014. lt_save_GCC=$GCC
  11015. GCC=$GXX
  11016. lt_save_with_gnu_ld=$with_gnu_ld
  11017. lt_save_path_LD=$lt_cv_path_LD
  11018. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11019. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11020. else
  11021. $as_unset lt_cv_prog_gnu_ld
  11022. fi
  11023. if test -n "${lt_cv_path_LDCXX+set}"; then
  11024. lt_cv_path_LD=$lt_cv_path_LDCXX
  11025. else
  11026. $as_unset lt_cv_path_LD
  11027. fi
  11028. test -z "${LDCXX+set}" || LD=$LDCXX
  11029. CC=${CXX-"c++"}
  11030. compiler=$CC
  11031. compiler_CXX=$CC
  11032. for cc_temp in $compiler""; do
  11033. case $cc_temp in
  11034. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11035. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11036. \-*) ;;
  11037. *) break;;
  11038. esac
  11039. done
  11040. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11041. # We don't want -fno-exception wen compiling C++ code, so set the
  11042. # no_builtin_flag separately
  11043. if test "$GXX" = yes; then
  11044. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11045. else
  11046. lt_prog_compiler_no_builtin_flag_CXX=
  11047. fi
  11048. if test "$GXX" = yes; then
  11049. # Set up default GNU C++ configuration
  11050. # Check whether --with-gnu-ld was given.
  11051. if test "${with_gnu_ld+set}" = set; then
  11052. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11053. else
  11054. with_gnu_ld=no
  11055. fi
  11056. ac_prog=ld
  11057. if test "$GCC" = yes; then
  11058. # Check if gcc -print-prog-name=ld gives a path.
  11059. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  11060. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  11061. case $host in
  11062. *-*-mingw*)
  11063. # gcc leaves a trailing carriage return which upsets mingw
  11064. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11065. *)
  11066. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11067. esac
  11068. case $ac_prog in
  11069. # Accept absolute paths.
  11070. [\\/]* | ?:[\\/]*)
  11071. re_direlt='/[^/][^/]*/\.\./'
  11072. # Canonicalize the pathname of ld
  11073. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  11074. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11075. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  11076. done
  11077. test -z "$LD" && LD="$ac_prog"
  11078. ;;
  11079. "")
  11080. # If it fails, then pretend we aren't using GCC.
  11081. ac_prog=ld
  11082. ;;
  11083. *)
  11084. # If it is relative, then search for the first ld in PATH.
  11085. with_gnu_ld=unknown
  11086. ;;
  11087. esac
  11088. elif test "$with_gnu_ld" = yes; then
  11089. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  11090. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  11091. else
  11092. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11093. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  11094. fi
  11095. if test "${lt_cv_path_LD+set}" = set; then
  11096. echo $ECHO_N "(cached) $ECHO_C" >&6
  11097. else
  11098. if test -z "$LD"; then
  11099. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11100. for ac_dir in $PATH; do
  11101. IFS="$lt_save_ifs"
  11102. test -z "$ac_dir" && ac_dir=.
  11103. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11104. lt_cv_path_LD="$ac_dir/$ac_prog"
  11105. # Check to see if the program is GNU ld. I'd rather use --version,
  11106. # but apparently some variants of GNU ld only accept -v.
  11107. # Break only if it was the GNU/non-GNU ld that we prefer.
  11108. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11109. *GNU* | *'with BFD'*)
  11110. test "$with_gnu_ld" != no && break
  11111. ;;
  11112. *)
  11113. test "$with_gnu_ld" != yes && break
  11114. ;;
  11115. esac
  11116. fi
  11117. done
  11118. IFS="$lt_save_ifs"
  11119. else
  11120. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11121. fi
  11122. fi
  11123. LD="$lt_cv_path_LD"
  11124. if test -n "$LD"; then
  11125. { echo "$as_me:$LINENO: result: $LD" >&5
  11126. echo "${ECHO_T}$LD" >&6; }
  11127. else
  11128. { echo "$as_me:$LINENO: result: no" >&5
  11129. echo "${ECHO_T}no" >&6; }
  11130. fi
  11131. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11132. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11133. { (exit 1); exit 1; }; }
  11134. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11135. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  11136. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  11137. echo $ECHO_N "(cached) $ECHO_C" >&6
  11138. else
  11139. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11140. case `$LD -v 2>&1 </dev/null` in
  11141. *GNU* | *'with BFD'*)
  11142. lt_cv_prog_gnu_ld=yes
  11143. ;;
  11144. *)
  11145. lt_cv_prog_gnu_ld=no
  11146. ;;
  11147. esac
  11148. fi
  11149. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  11150. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  11151. with_gnu_ld=$lt_cv_prog_gnu_ld
  11152. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11153. # archiving commands below assume that GNU ld is being used.
  11154. if test "$with_gnu_ld" = yes; then
  11155. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11156. 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'
  11157. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11158. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11159. # If archive_cmds runs LD, not CC, wlarc should be empty
  11160. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11161. # investigate it a little bit more. (MM)
  11162. wlarc='${wl}'
  11163. # ancient GNU ld didn't support --whole-archive et. al.
  11164. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  11165. grep 'no-whole-archive' > /dev/null; then
  11166. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11167. else
  11168. whole_archive_flag_spec_CXX=
  11169. fi
  11170. else
  11171. with_gnu_ld=no
  11172. wlarc=
  11173. # A generic and very simple default shared library creation
  11174. # command for GNU C++ for the case where it uses the native
  11175. # linker, instead of GNU ld. If possible, this setting should
  11176. # overridden to take advantage of the native linker features on
  11177. # the platform it is being used on.
  11178. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11179. fi
  11180. # Commands to make compiler produce verbose output that lists
  11181. # what "hidden" libraries, object files and flags are used when
  11182. # linking a shared library.
  11183. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  11184. else
  11185. GXX=no
  11186. with_gnu_ld=no
  11187. wlarc=
  11188. fi
  11189. # PORTME: fill in a description of your system's C++ link characteristics
  11190. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11191. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11192. ld_shlibs_CXX=yes
  11193. case $host_os in
  11194. aix3*)
  11195. # FIXME: insert proper C++ library support
  11196. ld_shlibs_CXX=no
  11197. ;;
  11198. aix[4-9]*)
  11199. if test "$host_cpu" = ia64; then
  11200. # On IA64, the linker does run time linking by default, so we don't
  11201. # have to do anything special.
  11202. aix_use_runtimelinking=no
  11203. exp_sym_flag='-Bexport'
  11204. no_entry_flag=""
  11205. else
  11206. aix_use_runtimelinking=no
  11207. # Test if we are trying to use run time linking or normal
  11208. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11209. # need to do runtime linking.
  11210. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11211. for ld_flag in $LDFLAGS; do
  11212. case $ld_flag in
  11213. *-brtl*)
  11214. aix_use_runtimelinking=yes
  11215. break
  11216. ;;
  11217. esac
  11218. done
  11219. ;;
  11220. esac
  11221. exp_sym_flag='-bexport'
  11222. no_entry_flag='-bnoentry'
  11223. fi
  11224. # When large executables or shared objects are built, AIX ld can
  11225. # have problems creating the table of contents. If linking a library
  11226. # or program results in "error TOC overflow" add -mminimal-toc to
  11227. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11228. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11229. archive_cmds_CXX=''
  11230. hardcode_direct_CXX=yes
  11231. hardcode_libdir_separator_CXX=':'
  11232. link_all_deplibs_CXX=yes
  11233. if test "$GXX" = yes; then
  11234. case $host_os in aix4.[012]|aix4.[012].*)
  11235. # We only want to do this on AIX 4.2 and lower, the check
  11236. # below for broken collect2 doesn't work under 4.3+
  11237. collect2name=`${CC} -print-prog-name=collect2`
  11238. if test -f "$collect2name" && \
  11239. strings "$collect2name" | grep resolve_lib_name >/dev/null
  11240. then
  11241. # We have reworked collect2
  11242. :
  11243. else
  11244. # We have old collect2
  11245. hardcode_direct_CXX=unsupported
  11246. # It fails to find uninstalled libraries when the uninstalled
  11247. # path is not listed in the libpath. Setting hardcode_minus_L
  11248. # to unsupported forces relinking
  11249. hardcode_minus_L_CXX=yes
  11250. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11251. hardcode_libdir_separator_CXX=
  11252. fi
  11253. ;;
  11254. esac
  11255. shared_flag='-shared'
  11256. if test "$aix_use_runtimelinking" = yes; then
  11257. shared_flag="$shared_flag "'${wl}-G'
  11258. fi
  11259. else
  11260. # not using gcc
  11261. if test "$host_cpu" = ia64; then
  11262. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11263. # chokes on -Wl,-G. The following line is correct:
  11264. shared_flag='-G'
  11265. else
  11266. if test "$aix_use_runtimelinking" = yes; then
  11267. shared_flag='${wl}-G'
  11268. else
  11269. shared_flag='${wl}-bM:SRE'
  11270. fi
  11271. fi
  11272. fi
  11273. # It seems that -bexpall does not export symbols beginning with
  11274. # underscore (_), so it is better to generate a list of symbols to export.
  11275. always_export_symbols_CXX=yes
  11276. if test "$aix_use_runtimelinking" = yes; then
  11277. # Warning - without using the other runtime loading flags (-brtl),
  11278. # -berok will link without error, but may produce a broken library.
  11279. allow_undefined_flag_CXX='-berok'
  11280. # Determine the default libpath from the value encoded in an empty executable.
  11281. cat >conftest.$ac_ext <<_ACEOF
  11282. /* confdefs.h. */
  11283. _ACEOF
  11284. cat confdefs.h >>conftest.$ac_ext
  11285. cat >>conftest.$ac_ext <<_ACEOF
  11286. /* end confdefs.h. */
  11287. int
  11288. main ()
  11289. {
  11290. ;
  11291. return 0;
  11292. }
  11293. _ACEOF
  11294. rm -f conftest.$ac_objext conftest$ac_exeext
  11295. if { (ac_try="$ac_link"
  11296. case "(($ac_try" in
  11297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11298. *) ac_try_echo=$ac_try;;
  11299. esac
  11300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11301. (eval "$ac_link") 2>conftest.er1
  11302. ac_status=$?
  11303. grep -v '^ *+' conftest.er1 >conftest.err
  11304. rm -f conftest.er1
  11305. cat conftest.err >&5
  11306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11307. (exit $ac_status); } && {
  11308. test -z "$ac_cxx_werror_flag" ||
  11309. test ! -s conftest.err
  11310. } && test -s conftest$ac_exeext &&
  11311. $as_test_x conftest$ac_exeext; then
  11312. lt_aix_libpath_sed='
  11313. /Import File Strings/,/^$/ {
  11314. /^0/ {
  11315. s/^0 *\(.*\)$/\1/
  11316. p
  11317. }
  11318. }'
  11319. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11320. # Check for a 64-bit object if we didn't find anything.
  11321. if test -z "$aix_libpath"; then
  11322. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11323. fi
  11324. else
  11325. echo "$as_me: failed program was:" >&5
  11326. sed 's/^/| /' conftest.$ac_ext >&5
  11327. fi
  11328. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11329. conftest$ac_exeext conftest.$ac_ext
  11330. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11331. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11332. 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"
  11333. else
  11334. if test "$host_cpu" = ia64; then
  11335. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11336. allow_undefined_flag_CXX="-z nodefs"
  11337. 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"
  11338. else
  11339. # Determine the default libpath from the value encoded in an empty executable.
  11340. cat >conftest.$ac_ext <<_ACEOF
  11341. /* confdefs.h. */
  11342. _ACEOF
  11343. cat confdefs.h >>conftest.$ac_ext
  11344. cat >>conftest.$ac_ext <<_ACEOF
  11345. /* end confdefs.h. */
  11346. int
  11347. main ()
  11348. {
  11349. ;
  11350. return 0;
  11351. }
  11352. _ACEOF
  11353. rm -f conftest.$ac_objext conftest$ac_exeext
  11354. if { (ac_try="$ac_link"
  11355. case "(($ac_try" in
  11356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11357. *) ac_try_echo=$ac_try;;
  11358. esac
  11359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11360. (eval "$ac_link") 2>conftest.er1
  11361. ac_status=$?
  11362. grep -v '^ *+' conftest.er1 >conftest.err
  11363. rm -f conftest.er1
  11364. cat conftest.err >&5
  11365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11366. (exit $ac_status); } && {
  11367. test -z "$ac_cxx_werror_flag" ||
  11368. test ! -s conftest.err
  11369. } && test -s conftest$ac_exeext &&
  11370. $as_test_x conftest$ac_exeext; then
  11371. lt_aix_libpath_sed='
  11372. /Import File Strings/,/^$/ {
  11373. /^0/ {
  11374. s/^0 *\(.*\)$/\1/
  11375. p
  11376. }
  11377. }'
  11378. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11379. # Check for a 64-bit object if we didn't find anything.
  11380. if test -z "$aix_libpath"; then
  11381. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11382. fi
  11383. else
  11384. echo "$as_me: failed program was:" >&5
  11385. sed 's/^/| /' conftest.$ac_ext >&5
  11386. fi
  11387. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11388. conftest$ac_exeext conftest.$ac_ext
  11389. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11390. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11391. # Warning - without using the other run time loading flags,
  11392. # -berok will link without error, but may produce a broken library.
  11393. no_undefined_flag_CXX=' ${wl}-bernotok'
  11394. allow_undefined_flag_CXX=' ${wl}-berok'
  11395. # Exported symbols can be pulled into shared objects from archives
  11396. whole_archive_flag_spec_CXX='$convenience'
  11397. archive_cmds_need_lc_CXX=yes
  11398. # This is similar to how AIX traditionally builds its shared libraries.
  11399. 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'
  11400. fi
  11401. fi
  11402. ;;
  11403. beos*)
  11404. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11405. allow_undefined_flag_CXX=unsupported
  11406. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11407. # support --undefined. This deserves some investigation. FIXME
  11408. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11409. else
  11410. ld_shlibs_CXX=no
  11411. fi
  11412. ;;
  11413. chorus*)
  11414. case $cc_basename in
  11415. *)
  11416. # FIXME: insert proper C++ library support
  11417. ld_shlibs_CXX=no
  11418. ;;
  11419. esac
  11420. ;;
  11421. cygwin* | mingw* | pw32*)
  11422. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11423. # as there is no search path for DLLs.
  11424. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11425. allow_undefined_flag_CXX=unsupported
  11426. always_export_symbols_CXX=no
  11427. enable_shared_with_static_runtimes_CXX=yes
  11428. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11429. 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'
  11430. # If the export-symbols file already is a .def file (1st line
  11431. # is EXPORTS), use it as is; otherwise, prepend...
  11432. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11433. cp $export_symbols $output_objdir/$soname.def;
  11434. else
  11435. echo EXPORTS > $output_objdir/$soname.def;
  11436. cat $export_symbols >> $output_objdir/$soname.def;
  11437. fi~
  11438. $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'
  11439. else
  11440. ld_shlibs_CXX=no
  11441. fi
  11442. ;;
  11443. darwin* | rhapsody*)
  11444. archive_cmds_need_lc_CXX=no
  11445. hardcode_direct_CXX=no
  11446. hardcode_automatic_CXX=yes
  11447. hardcode_shlibpath_var_CXX=unsupported
  11448. whole_archive_flag_spec_CXX=''
  11449. link_all_deplibs_CXX=yes
  11450. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11451. if test "$GXX" = yes ; then
  11452. output_verbose_link_cmd='echo'
  11453. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11454. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11455. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  11456. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  11457. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11458. 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${_lt_dsymutil}"
  11459. archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
  11460. fi
  11461. else
  11462. case $cc_basename in
  11463. xlc*)
  11464. output_verbose_link_cmd='echo'
  11465. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  11466. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11467. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  11468. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11469. 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}'
  11470. ;;
  11471. *)
  11472. ld_shlibs_CXX=no
  11473. ;;
  11474. esac
  11475. fi
  11476. ;;
  11477. dgux*)
  11478. case $cc_basename in
  11479. ec++*)
  11480. # FIXME: insert proper C++ library support
  11481. ld_shlibs_CXX=no
  11482. ;;
  11483. ghcx*)
  11484. # Green Hills C++ Compiler
  11485. # FIXME: insert proper C++ library support
  11486. ld_shlibs_CXX=no
  11487. ;;
  11488. *)
  11489. # FIXME: insert proper C++ library support
  11490. ld_shlibs_CXX=no
  11491. ;;
  11492. esac
  11493. ;;
  11494. freebsd[12]*)
  11495. # C++ shared libraries reported to be fairly broken before switch to ELF
  11496. ld_shlibs_CXX=no
  11497. ;;
  11498. freebsd-elf*)
  11499. archive_cmds_need_lc_CXX=no
  11500. ;;
  11501. freebsd* | dragonfly*)
  11502. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11503. # conventions
  11504. ld_shlibs_CXX=yes
  11505. ;;
  11506. gnu*)
  11507. ;;
  11508. hpux9*)
  11509. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11510. hardcode_libdir_separator_CXX=:
  11511. export_dynamic_flag_spec_CXX='${wl}-E'
  11512. hardcode_direct_CXX=yes
  11513. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11514. # but as the default
  11515. # location of the library.
  11516. case $cc_basename in
  11517. CC*)
  11518. # FIXME: insert proper C++ library support
  11519. ld_shlibs_CXX=no
  11520. ;;
  11521. aCC*)
  11522. 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'
  11523. # Commands to make compiler produce verbose output that lists
  11524. # what "hidden" libraries, object files and flags are used when
  11525. # linking a shared library.
  11526. #
  11527. # There doesn't appear to be a way to prevent this compiler from
  11528. # explicitly linking system object files so we need to strip them
  11529. # from the output so that they don't get included in the library
  11530. # dependencies.
  11531. 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'
  11532. ;;
  11533. *)
  11534. if test "$GXX" = yes; then
  11535. 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'
  11536. else
  11537. # FIXME: insert proper C++ library support
  11538. ld_shlibs_CXX=no
  11539. fi
  11540. ;;
  11541. esac
  11542. ;;
  11543. hpux10*|hpux11*)
  11544. if test $with_gnu_ld = no; then
  11545. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11546. hardcode_libdir_separator_CXX=:
  11547. case $host_cpu in
  11548. hppa*64*|ia64*) ;;
  11549. *)
  11550. export_dynamic_flag_spec_CXX='${wl}-E'
  11551. ;;
  11552. esac
  11553. fi
  11554. case $host_cpu in
  11555. hppa*64*|ia64*)
  11556. hardcode_direct_CXX=no
  11557. hardcode_shlibpath_var_CXX=no
  11558. ;;
  11559. *)
  11560. hardcode_direct_CXX=yes
  11561. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11562. # but as the default
  11563. # location of the library.
  11564. ;;
  11565. esac
  11566. case $cc_basename in
  11567. CC*)
  11568. # FIXME: insert proper C++ library support
  11569. ld_shlibs_CXX=no
  11570. ;;
  11571. aCC*)
  11572. case $host_cpu in
  11573. hppa*64*)
  11574. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11575. ;;
  11576. ia64*)
  11577. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11578. ;;
  11579. *)
  11580. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11581. ;;
  11582. esac
  11583. # Commands to make compiler produce verbose output that lists
  11584. # what "hidden" libraries, object files and flags are used when
  11585. # linking a shared library.
  11586. #
  11587. # There doesn't appear to be a way to prevent this compiler from
  11588. # explicitly linking system object files so we need to strip them
  11589. # from the output so that they don't get included in the library
  11590. # dependencies.
  11591. 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'
  11592. ;;
  11593. *)
  11594. if test "$GXX" = yes; then
  11595. if test $with_gnu_ld = no; then
  11596. case $host_cpu in
  11597. hppa*64*)
  11598. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11599. ;;
  11600. ia64*)
  11601. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11602. ;;
  11603. *)
  11604. 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'
  11605. ;;
  11606. esac
  11607. fi
  11608. else
  11609. # FIXME: insert proper C++ library support
  11610. ld_shlibs_CXX=no
  11611. fi
  11612. ;;
  11613. esac
  11614. ;;
  11615. interix[3-9]*)
  11616. hardcode_direct_CXX=no
  11617. hardcode_shlibpath_var_CXX=no
  11618. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11619. export_dynamic_flag_spec_CXX='${wl}-E'
  11620. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11621. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11622. # default) and relocated if they conflict, which is a slow very memory
  11623. # consuming and fragmenting process. To avoid this, we pick a random,
  11624. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11625. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11626. 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'
  11627. 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'
  11628. ;;
  11629. irix5* | irix6*)
  11630. case $cc_basename in
  11631. CC*)
  11632. # SGI C++
  11633. 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'
  11634. # Archives containing C++ object files must be created using
  11635. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11636. # necessary to make sure instantiated templates are included
  11637. # in the archive.
  11638. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11639. ;;
  11640. *)
  11641. if test "$GXX" = yes; then
  11642. if test "$with_gnu_ld" = no; then
  11643. 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'
  11644. else
  11645. 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'
  11646. fi
  11647. fi
  11648. link_all_deplibs_CXX=yes
  11649. ;;
  11650. esac
  11651. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11652. hardcode_libdir_separator_CXX=:
  11653. ;;
  11654. linux* | k*bsd*-gnu)
  11655. case $cc_basename in
  11656. KCC*)
  11657. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11658. # KCC will only create a shared library if the output file
  11659. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11660. # to its proper name (with version) after linking.
  11661. 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'
  11662. 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'
  11663. # Commands to make compiler produce verbose output that lists
  11664. # what "hidden" libraries, object files and flags are used when
  11665. # linking a shared library.
  11666. #
  11667. # There doesn't appear to be a way to prevent this compiler from
  11668. # explicitly linking system object files so we need to strip them
  11669. # from the output so that they don't get included in the library
  11670. # dependencies.
  11671. 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'
  11672. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  11673. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11674. # Archives containing C++ object files must be created using
  11675. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11676. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11677. ;;
  11678. icpc*)
  11679. # Intel C++
  11680. with_gnu_ld=yes
  11681. # version 8.0 and above of icpc choke on multiply defined symbols
  11682. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11683. # earlier do not add the objects themselves.
  11684. case `$CC -V 2>&1` in
  11685. *"Version 7."*)
  11686. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11687. 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'
  11688. ;;
  11689. *) # Version 8.0 or newer
  11690. tmp_idyn=
  11691. case $host_cpu in
  11692. ia64*) tmp_idyn=' -i_dynamic';;
  11693. esac
  11694. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11695. 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'
  11696. ;;
  11697. esac
  11698. archive_cmds_need_lc_CXX=no
  11699. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11700. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11701. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11702. ;;
  11703. pgCC* | pgcpp*)
  11704. # Portland Group C++ compiler
  11705. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11706. 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'
  11707. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11708. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11709. 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'
  11710. ;;
  11711. cxx*)
  11712. # Compaq C++
  11713. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11714. 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'
  11715. runpath_var=LD_RUN_PATH
  11716. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11717. hardcode_libdir_separator_CXX=:
  11718. # Commands to make compiler produce verbose output that lists
  11719. # what "hidden" libraries, object files and flags are used when
  11720. # linking a shared library.
  11721. #
  11722. # There doesn't appear to be a way to prevent this compiler from
  11723. # explicitly linking system object files so we need to strip them
  11724. # from the output so that they don't get included in the library
  11725. # dependencies.
  11726. 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'
  11727. ;;
  11728. *)
  11729. case `$CC -V 2>&1 | sed 5q` in
  11730. *Sun\ C*)
  11731. # Sun C++ 5.9
  11732. no_undefined_flag_CXX=' -zdefs'
  11733. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11734. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11735. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11736. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  11737. # Not sure whether something based on
  11738. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11739. # would be better.
  11740. output_verbose_link_cmd='echo'
  11741. # Archives containing C++ object files must be created using
  11742. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11743. # necessary to make sure instantiated templates are included
  11744. # in the archive.
  11745. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11746. ;;
  11747. esac
  11748. ;;
  11749. esac
  11750. ;;
  11751. lynxos*)
  11752. # FIXME: insert proper C++ library support
  11753. ld_shlibs_CXX=no
  11754. ;;
  11755. m88k*)
  11756. # FIXME: insert proper C++ library support
  11757. ld_shlibs_CXX=no
  11758. ;;
  11759. mvs*)
  11760. case $cc_basename in
  11761. cxx*)
  11762. # FIXME: insert proper C++ library support
  11763. ld_shlibs_CXX=no
  11764. ;;
  11765. *)
  11766. # FIXME: insert proper C++ library support
  11767. ld_shlibs_CXX=no
  11768. ;;
  11769. esac
  11770. ;;
  11771. netbsd* | netbsdelf*-gnu)
  11772. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11773. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11774. wlarc=
  11775. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11776. hardcode_direct_CXX=yes
  11777. hardcode_shlibpath_var_CXX=no
  11778. fi
  11779. # Workaround some broken pre-1.5 toolchains
  11780. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11781. ;;
  11782. openbsd2*)
  11783. # C++ shared libraries are fairly broken
  11784. ld_shlibs_CXX=no
  11785. ;;
  11786. openbsd*)
  11787. if test -f /usr/libexec/ld.so; then
  11788. hardcode_direct_CXX=yes
  11789. hardcode_shlibpath_var_CXX=no
  11790. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11791. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11792. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11793. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11794. export_dynamic_flag_spec_CXX='${wl}-E'
  11795. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11796. fi
  11797. output_verbose_link_cmd='echo'
  11798. else
  11799. ld_shlibs_CXX=no
  11800. fi
  11801. ;;
  11802. osf3*)
  11803. case $cc_basename in
  11804. KCC*)
  11805. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11806. # KCC will only create a shared library if the output file
  11807. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11808. # to its proper name (with version) after linking.
  11809. 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'
  11810. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11811. hardcode_libdir_separator_CXX=:
  11812. # Archives containing C++ object files must be created using
  11813. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11814. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11815. ;;
  11816. RCC*)
  11817. # Rational C++ 2.4.1
  11818. # FIXME: insert proper C++ library support
  11819. ld_shlibs_CXX=no
  11820. ;;
  11821. cxx*)
  11822. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11823. 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'
  11824. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11825. hardcode_libdir_separator_CXX=:
  11826. # Commands to make compiler produce verbose output that lists
  11827. # what "hidden" libraries, object files and flags are used when
  11828. # linking a shared library.
  11829. #
  11830. # There doesn't appear to be a way to prevent this compiler from
  11831. # explicitly linking system object files so we need to strip them
  11832. # from the output so that they don't get included in the library
  11833. # dependencies.
  11834. 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'
  11835. ;;
  11836. *)
  11837. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11838. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11839. 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'
  11840. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11841. hardcode_libdir_separator_CXX=:
  11842. # Commands to make compiler produce verbose output that lists
  11843. # what "hidden" libraries, object files and flags are used when
  11844. # linking a shared library.
  11845. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  11846. else
  11847. # FIXME: insert proper C++ library support
  11848. ld_shlibs_CXX=no
  11849. fi
  11850. ;;
  11851. esac
  11852. ;;
  11853. osf4* | osf5*)
  11854. case $cc_basename in
  11855. KCC*)
  11856. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11857. # KCC will only create a shared library if the output file
  11858. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11859. # to its proper name (with version) after linking.
  11860. 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'
  11861. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11862. hardcode_libdir_separator_CXX=:
  11863. # Archives containing C++ object files must be created using
  11864. # the KAI C++ compiler.
  11865. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  11866. ;;
  11867. RCC*)
  11868. # Rational C++ 2.4.1
  11869. # FIXME: insert proper C++ library support
  11870. ld_shlibs_CXX=no
  11871. ;;
  11872. cxx*)
  11873. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11874. 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'
  11875. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11876. echo "-hidden">> $lib.exp~
  11877. $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~
  11878. $rm $lib.exp'
  11879. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11880. hardcode_libdir_separator_CXX=:
  11881. # Commands to make compiler produce verbose output that lists
  11882. # what "hidden" libraries, object files and flags are used when
  11883. # linking a shared library.
  11884. #
  11885. # There doesn't appear to be a way to prevent this compiler from
  11886. # explicitly linking system object files so we need to strip them
  11887. # from the output so that they don't get included in the library
  11888. # dependencies.
  11889. 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'
  11890. ;;
  11891. *)
  11892. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11893. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11894. 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'
  11895. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11896. hardcode_libdir_separator_CXX=:
  11897. # Commands to make compiler produce verbose output that lists
  11898. # what "hidden" libraries, object files and flags are used when
  11899. # linking a shared library.
  11900. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  11901. else
  11902. # FIXME: insert proper C++ library support
  11903. ld_shlibs_CXX=no
  11904. fi
  11905. ;;
  11906. esac
  11907. ;;
  11908. psos*)
  11909. # FIXME: insert proper C++ library support
  11910. ld_shlibs_CXX=no
  11911. ;;
  11912. sunos4*)
  11913. case $cc_basename in
  11914. CC*)
  11915. # Sun C++ 4.x
  11916. # FIXME: insert proper C++ library support
  11917. ld_shlibs_CXX=no
  11918. ;;
  11919. lcc*)
  11920. # Lucid
  11921. # FIXME: insert proper C++ library support
  11922. ld_shlibs_CXX=no
  11923. ;;
  11924. *)
  11925. # FIXME: insert proper C++ library support
  11926. ld_shlibs_CXX=no
  11927. ;;
  11928. esac
  11929. ;;
  11930. solaris*)
  11931. case $cc_basename in
  11932. CC*)
  11933. # Sun C++ 4.2, 5.x and Centerline C++
  11934. archive_cmds_need_lc_CXX=yes
  11935. no_undefined_flag_CXX=' -zdefs'
  11936. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11937. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11938. $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'
  11939. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11940. hardcode_shlibpath_var_CXX=no
  11941. case $host_os in
  11942. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11943. *)
  11944. # The compiler driver will combine and reorder linker options,
  11945. # but understands `-z linker_flag'.
  11946. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11947. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11948. ;;
  11949. esac
  11950. link_all_deplibs_CXX=yes
  11951. output_verbose_link_cmd='echo'
  11952. # Archives containing C++ object files must be created using
  11953. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11954. # necessary to make sure instantiated templates are included
  11955. # in the archive.
  11956. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11957. ;;
  11958. gcx*)
  11959. # Green Hills C++ Compiler
  11960. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11961. # The C++ compiler must be used to create the archive.
  11962. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11963. ;;
  11964. *)
  11965. # GNU C++ compiler with Solaris linker
  11966. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11967. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11968. if $CC --version | grep -v '^2\.7' > /dev/null; then
  11969. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11970. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11971. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11972. # Commands to make compiler produce verbose output that lists
  11973. # what "hidden" libraries, object files and flags are used when
  11974. # linking a shared library.
  11975. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  11976. else
  11977. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11978. # platform.
  11979. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11980. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11981. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11982. # Commands to make compiler produce verbose output that lists
  11983. # what "hidden" libraries, object files and flags are used when
  11984. # linking a shared library.
  11985. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  11986. fi
  11987. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11988. case $host_os in
  11989. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11990. *)
  11991. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11992. ;;
  11993. esac
  11994. fi
  11995. ;;
  11996. esac
  11997. ;;
  11998. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11999. no_undefined_flag_CXX='${wl}-z,text'
  12000. archive_cmds_need_lc_CXX=no
  12001. hardcode_shlibpath_var_CXX=no
  12002. runpath_var='LD_RUN_PATH'
  12003. case $cc_basename in
  12004. CC*)
  12005. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12006. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12007. ;;
  12008. *)
  12009. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12010. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12011. ;;
  12012. esac
  12013. ;;
  12014. sysv5* | sco3.2v5* | sco5v6*)
  12015. # Note: We can NOT use -z defs as we might desire, because we do not
  12016. # link with -lc, and that would cause any symbols used from libc to
  12017. # always be unresolved, which means just about no library would
  12018. # ever link correctly. If we're not using GNU ld we use -z text
  12019. # though, which does catch some bad symbols but isn't as heavy-handed
  12020. # as -z defs.
  12021. # For security reasons, it is highly recommended that you always
  12022. # use absolute paths for naming shared libraries, and exclude the
  12023. # DT_RUNPATH tag from executables and libraries. But doing so
  12024. # requires that you compile everything twice, which is a pain.
  12025. # So that behaviour is only enabled if SCOABSPATH is set to a
  12026. # non-empty value in the environment. Most likely only useful for
  12027. # creating official distributions of packages.
  12028. # This is a hack until libtool officially supports absolute path
  12029. # names for shared libraries.
  12030. no_undefined_flag_CXX='${wl}-z,text'
  12031. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12032. archive_cmds_need_lc_CXX=no
  12033. hardcode_shlibpath_var_CXX=no
  12034. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12035. hardcode_libdir_separator_CXX=':'
  12036. link_all_deplibs_CXX=yes
  12037. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12038. runpath_var='LD_RUN_PATH'
  12039. case $cc_basename in
  12040. CC*)
  12041. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12042. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12043. ;;
  12044. *)
  12045. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12046. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12047. ;;
  12048. esac
  12049. ;;
  12050. tandem*)
  12051. case $cc_basename in
  12052. NCC*)
  12053. # NonStop-UX NCC 3.20
  12054. # FIXME: insert proper C++ library support
  12055. ld_shlibs_CXX=no
  12056. ;;
  12057. *)
  12058. # FIXME: insert proper C++ library support
  12059. ld_shlibs_CXX=no
  12060. ;;
  12061. esac
  12062. ;;
  12063. vxworks*)
  12064. # FIXME: insert proper C++ library support
  12065. ld_shlibs_CXX=no
  12066. ;;
  12067. *)
  12068. # FIXME: insert proper C++ library support
  12069. ld_shlibs_CXX=no
  12070. ;;
  12071. esac
  12072. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12073. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  12074. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12075. GCC_CXX="$GXX"
  12076. LD_CXX="$LD"
  12077. cat > conftest.$ac_ext <<EOF
  12078. class Foo
  12079. {
  12080. public:
  12081. Foo (void) { a = 0; }
  12082. private:
  12083. int a;
  12084. };
  12085. EOF
  12086. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12087. (eval $ac_compile) 2>&5
  12088. ac_status=$?
  12089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12090. (exit $ac_status); }; then
  12091. # Parse the compiler output and extract the necessary
  12092. # objects, libraries and library flags.
  12093. # Sentinel used to keep track of whether or not we are before
  12094. # the conftest object file.
  12095. pre_test_object_deps_done=no
  12096. # The `*' in the case matches for architectures that use `case' in
  12097. # $output_verbose_cmd can trigger glob expansion during the loop
  12098. # eval without this substitution.
  12099. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  12100. for p in `eval $output_verbose_link_cmd`; do
  12101. case $p in
  12102. -L* | -R* | -l*)
  12103. # Some compilers place space between "-{L,R}" and the path.
  12104. # Remove the space.
  12105. if test $p = "-L" \
  12106. || test $p = "-R"; then
  12107. prev=$p
  12108. continue
  12109. else
  12110. prev=
  12111. fi
  12112. if test "$pre_test_object_deps_done" = no; then
  12113. case $p in
  12114. -L* | -R*)
  12115. # Internal compiler library paths should come after those
  12116. # provided the user. The postdeps already come after the
  12117. # user supplied libs so there is no need to process them.
  12118. if test -z "$compiler_lib_search_path_CXX"; then
  12119. compiler_lib_search_path_CXX="${prev}${p}"
  12120. else
  12121. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12122. fi
  12123. ;;
  12124. # The "-l" case would never come before the object being
  12125. # linked, so don't bother handling this case.
  12126. esac
  12127. else
  12128. if test -z "$postdeps_CXX"; then
  12129. postdeps_CXX="${prev}${p}"
  12130. else
  12131. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12132. fi
  12133. fi
  12134. ;;
  12135. *.$objext)
  12136. # This assumes that the test object file only shows up
  12137. # once in the compiler output.
  12138. if test "$p" = "conftest.$objext"; then
  12139. pre_test_object_deps_done=yes
  12140. continue
  12141. fi
  12142. if test "$pre_test_object_deps_done" = no; then
  12143. if test -z "$predep_objects_CXX"; then
  12144. predep_objects_CXX="$p"
  12145. else
  12146. predep_objects_CXX="$predep_objects_CXX $p"
  12147. fi
  12148. else
  12149. if test -z "$postdep_objects_CXX"; then
  12150. postdep_objects_CXX="$p"
  12151. else
  12152. postdep_objects_CXX="$postdep_objects_CXX $p"
  12153. fi
  12154. fi
  12155. ;;
  12156. *) ;; # Ignore the rest.
  12157. esac
  12158. done
  12159. # Clean up.
  12160. rm -f a.out a.exe
  12161. else
  12162. echo "libtool.m4: error: problem compiling CXX test program"
  12163. fi
  12164. $rm -f confest.$objext
  12165. compiler_lib_search_dirs_CXX=
  12166. if test -n "$compiler_lib_search_path_CXX"; then
  12167. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12168. fi
  12169. # PORTME: override above test on systems where it is broken
  12170. case $host_os in
  12171. interix[3-9]*)
  12172. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12173. # hack all around it, let's just trust "g++" to DTRT.
  12174. predep_objects_CXX=
  12175. postdep_objects_CXX=
  12176. postdeps_CXX=
  12177. ;;
  12178. linux*)
  12179. case `$CC -V 2>&1 | sed 5q` in
  12180. *Sun\ C*)
  12181. # Sun C++ 5.9
  12182. #
  12183. # The more standards-conforming stlport4 library is
  12184. # incompatible with the Cstd library. Avoid specifying
  12185. # it if it's in CXXFLAGS. Ignore libCrun as
  12186. # -library=stlport4 depends on it.
  12187. case " $CXX $CXXFLAGS " in
  12188. *" -library=stlport4 "*)
  12189. solaris_use_stlport4=yes
  12190. ;;
  12191. esac
  12192. if test "$solaris_use_stlport4" != yes; then
  12193. postdeps_CXX='-library=Cstd -library=Crun'
  12194. fi
  12195. ;;
  12196. esac
  12197. ;;
  12198. solaris*)
  12199. case $cc_basename in
  12200. CC*)
  12201. # The more standards-conforming stlport4 library is
  12202. # incompatible with the Cstd library. Avoid specifying
  12203. # it if it's in CXXFLAGS. Ignore libCrun as
  12204. # -library=stlport4 depends on it.
  12205. case " $CXX $CXXFLAGS " in
  12206. *" -library=stlport4 "*)
  12207. solaris_use_stlport4=yes
  12208. ;;
  12209. esac
  12210. # Adding this requires a known-good setup of shared libraries for
  12211. # Sun compiler versions before 5.6, else PIC objects from an old
  12212. # archive will be linked into the output, leading to subtle bugs.
  12213. if test "$solaris_use_stlport4" != yes; then
  12214. postdeps_CXX='-library=Cstd -library=Crun'
  12215. fi
  12216. ;;
  12217. esac
  12218. ;;
  12219. esac
  12220. case " $postdeps_CXX " in
  12221. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12222. esac
  12223. lt_prog_compiler_wl_CXX=
  12224. lt_prog_compiler_pic_CXX=
  12225. lt_prog_compiler_static_CXX=
  12226. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12227. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12228. # C++ specific cases for pic, static, wl, etc.
  12229. if test "$GXX" = yes; then
  12230. lt_prog_compiler_wl_CXX='-Wl,'
  12231. lt_prog_compiler_static_CXX='-static'
  12232. case $host_os in
  12233. aix*)
  12234. # All AIX code is PIC.
  12235. if test "$host_cpu" = ia64; then
  12236. # AIX 5 now supports IA64 processor
  12237. lt_prog_compiler_static_CXX='-Bstatic'
  12238. fi
  12239. ;;
  12240. amigaos*)
  12241. # FIXME: we need at least 68020 code to build shared libraries, but
  12242. # adding the `-m68020' flag to GCC prevents building anything better,
  12243. # like `-m68040'.
  12244. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12245. ;;
  12246. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12247. # PIC is the default for these OSes.
  12248. ;;
  12249. mingw* | cygwin* | os2* | pw32*)
  12250. # This hack is so that the source file can tell whether it is being
  12251. # built for inclusion in a dll (and should export symbols for example).
  12252. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12253. # (--disable-auto-import) libraries
  12254. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12255. ;;
  12256. darwin* | rhapsody*)
  12257. # PIC is the default on this platform
  12258. # Common symbols not allowed in MH_DYLIB files
  12259. lt_prog_compiler_pic_CXX='-fno-common'
  12260. ;;
  12261. *djgpp*)
  12262. # DJGPP does not support shared libraries at all
  12263. lt_prog_compiler_pic_CXX=
  12264. ;;
  12265. interix[3-9]*)
  12266. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12267. # Instead, we relocate shared libraries at runtime.
  12268. ;;
  12269. sysv4*MP*)
  12270. if test -d /usr/nec; then
  12271. lt_prog_compiler_pic_CXX=-Kconform_pic
  12272. fi
  12273. ;;
  12274. hpux*)
  12275. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12276. # not for PA HP-UX.
  12277. case $host_cpu in
  12278. hppa*64*|ia64*)
  12279. ;;
  12280. *)
  12281. lt_prog_compiler_pic_CXX='-fPIC'
  12282. ;;
  12283. esac
  12284. ;;
  12285. *)
  12286. lt_prog_compiler_pic_CXX='-fPIC'
  12287. ;;
  12288. esac
  12289. else
  12290. case $host_os in
  12291. aix[4-9]*)
  12292. # All AIX code is PIC.
  12293. if test "$host_cpu" = ia64; then
  12294. # AIX 5 now supports IA64 processor
  12295. lt_prog_compiler_static_CXX='-Bstatic'
  12296. else
  12297. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12298. fi
  12299. ;;
  12300. chorus*)
  12301. case $cc_basename in
  12302. cxch68*)
  12303. # Green Hills C++ Compiler
  12304. # _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"
  12305. ;;
  12306. esac
  12307. ;;
  12308. darwin*)
  12309. # PIC is the default on this platform
  12310. # Common symbols not allowed in MH_DYLIB files
  12311. case $cc_basename in
  12312. xlc*)
  12313. lt_prog_compiler_pic_CXX='-qnocommon'
  12314. lt_prog_compiler_wl_CXX='-Wl,'
  12315. ;;
  12316. esac
  12317. ;;
  12318. dgux*)
  12319. case $cc_basename in
  12320. ec++*)
  12321. lt_prog_compiler_pic_CXX='-KPIC'
  12322. ;;
  12323. ghcx*)
  12324. # Green Hills C++ Compiler
  12325. lt_prog_compiler_pic_CXX='-pic'
  12326. ;;
  12327. *)
  12328. ;;
  12329. esac
  12330. ;;
  12331. freebsd* | dragonfly*)
  12332. # FreeBSD uses GNU C++
  12333. ;;
  12334. hpux9* | hpux10* | hpux11*)
  12335. case $cc_basename in
  12336. CC*)
  12337. lt_prog_compiler_wl_CXX='-Wl,'
  12338. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12339. if test "$host_cpu" != ia64; then
  12340. lt_prog_compiler_pic_CXX='+Z'
  12341. fi
  12342. ;;
  12343. aCC*)
  12344. lt_prog_compiler_wl_CXX='-Wl,'
  12345. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12346. case $host_cpu in
  12347. hppa*64*|ia64*)
  12348. # +Z the default
  12349. ;;
  12350. *)
  12351. lt_prog_compiler_pic_CXX='+Z'
  12352. ;;
  12353. esac
  12354. ;;
  12355. *)
  12356. ;;
  12357. esac
  12358. ;;
  12359. interix*)
  12360. # This is c89, which is MS Visual C++ (no shared libs)
  12361. # Anyone wants to do a port?
  12362. ;;
  12363. irix5* | irix6* | nonstopux*)
  12364. case $cc_basename in
  12365. CC*)
  12366. lt_prog_compiler_wl_CXX='-Wl,'
  12367. lt_prog_compiler_static_CXX='-non_shared'
  12368. # CC pic flag -KPIC is the default.
  12369. ;;
  12370. *)
  12371. ;;
  12372. esac
  12373. ;;
  12374. linux* | k*bsd*-gnu)
  12375. case $cc_basename in
  12376. KCC*)
  12377. # KAI C++ Compiler
  12378. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12379. lt_prog_compiler_pic_CXX='-fPIC'
  12380. ;;
  12381. icpc* | ecpc*)
  12382. # Intel C++
  12383. lt_prog_compiler_wl_CXX='-Wl,'
  12384. lt_prog_compiler_pic_CXX='-KPIC'
  12385. lt_prog_compiler_static_CXX='-static'
  12386. ;;
  12387. pgCC* | pgcpp*)
  12388. # Portland Group C++ compiler.
  12389. lt_prog_compiler_wl_CXX='-Wl,'
  12390. lt_prog_compiler_pic_CXX='-fpic'
  12391. lt_prog_compiler_static_CXX='-Bstatic'
  12392. ;;
  12393. cxx*)
  12394. # Compaq C++
  12395. # Make sure the PIC flag is empty. It appears that all Alpha
  12396. # Linux and Compaq Tru64 Unix objects are PIC.
  12397. lt_prog_compiler_pic_CXX=
  12398. lt_prog_compiler_static_CXX='-non_shared'
  12399. ;;
  12400. *)
  12401. case `$CC -V 2>&1 | sed 5q` in
  12402. *Sun\ C*)
  12403. # Sun C++ 5.9
  12404. lt_prog_compiler_pic_CXX='-KPIC'
  12405. lt_prog_compiler_static_CXX='-Bstatic'
  12406. lt_prog_compiler_wl_CXX='-Qoption ld '
  12407. ;;
  12408. esac
  12409. ;;
  12410. esac
  12411. ;;
  12412. lynxos*)
  12413. ;;
  12414. m88k*)
  12415. ;;
  12416. mvs*)
  12417. case $cc_basename in
  12418. cxx*)
  12419. lt_prog_compiler_pic_CXX='-W c,exportall'
  12420. ;;
  12421. *)
  12422. ;;
  12423. esac
  12424. ;;
  12425. netbsd* | netbsdelf*-gnu)
  12426. ;;
  12427. osf3* | osf4* | osf5*)
  12428. case $cc_basename in
  12429. KCC*)
  12430. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12431. ;;
  12432. RCC*)
  12433. # Rational C++ 2.4.1
  12434. lt_prog_compiler_pic_CXX='-pic'
  12435. ;;
  12436. cxx*)
  12437. # Digital/Compaq C++
  12438. lt_prog_compiler_wl_CXX='-Wl,'
  12439. # Make sure the PIC flag is empty. It appears that all Alpha
  12440. # Linux and Compaq Tru64 Unix objects are PIC.
  12441. lt_prog_compiler_pic_CXX=
  12442. lt_prog_compiler_static_CXX='-non_shared'
  12443. ;;
  12444. *)
  12445. ;;
  12446. esac
  12447. ;;
  12448. psos*)
  12449. ;;
  12450. solaris*)
  12451. case $cc_basename in
  12452. CC*)
  12453. # Sun C++ 4.2, 5.x and Centerline C++
  12454. lt_prog_compiler_pic_CXX='-KPIC'
  12455. lt_prog_compiler_static_CXX='-Bstatic'
  12456. lt_prog_compiler_wl_CXX='-Qoption ld '
  12457. ;;
  12458. gcx*)
  12459. # Green Hills C++ Compiler
  12460. lt_prog_compiler_pic_CXX='-PIC'
  12461. ;;
  12462. *)
  12463. ;;
  12464. esac
  12465. ;;
  12466. sunos4*)
  12467. case $cc_basename in
  12468. CC*)
  12469. # Sun C++ 4.x
  12470. lt_prog_compiler_pic_CXX='-pic'
  12471. lt_prog_compiler_static_CXX='-Bstatic'
  12472. ;;
  12473. lcc*)
  12474. # Lucid
  12475. lt_prog_compiler_pic_CXX='-pic'
  12476. ;;
  12477. *)
  12478. ;;
  12479. esac
  12480. ;;
  12481. tandem*)
  12482. case $cc_basename in
  12483. NCC*)
  12484. # NonStop-UX NCC 3.20
  12485. lt_prog_compiler_pic_CXX='-KPIC'
  12486. ;;
  12487. *)
  12488. ;;
  12489. esac
  12490. ;;
  12491. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12492. case $cc_basename in
  12493. CC*)
  12494. lt_prog_compiler_wl_CXX='-Wl,'
  12495. lt_prog_compiler_pic_CXX='-KPIC'
  12496. lt_prog_compiler_static_CXX='-Bstatic'
  12497. ;;
  12498. esac
  12499. ;;
  12500. vxworks*)
  12501. ;;
  12502. *)
  12503. lt_prog_compiler_can_build_shared_CXX=no
  12504. ;;
  12505. esac
  12506. fi
  12507. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12508. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  12509. #
  12510. # Check to make sure the PIC flag actually works.
  12511. #
  12512. if test -n "$lt_prog_compiler_pic_CXX"; then
  12513. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12514. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  12515. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  12516. echo $ECHO_N "(cached) $ECHO_C" >&6
  12517. else
  12518. lt_cv_prog_compiler_pic_works_CXX=no
  12519. ac_outfile=conftest.$ac_objext
  12520. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12521. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12522. # Insert the option either (1) after the last *FLAGS variable, or
  12523. # (2) before a word containing "conftest.", or (3) at the end.
  12524. # Note that $ac_compile itself does not contain backslashes and begins
  12525. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12526. # The option is referenced via a variable to avoid confusing sed.
  12527. lt_compile=`echo "$ac_compile" | $SED \
  12528. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12529. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12530. -e 's:$: $lt_compiler_flag:'`
  12531. (eval echo "\"\$as_me:13935: $lt_compile\"" >&5)
  12532. (eval "$lt_compile" 2>conftest.err)
  12533. ac_status=$?
  12534. cat conftest.err >&5
  12535. echo "$as_me:13939: \$? = $ac_status" >&5
  12536. if (exit $ac_status) && test -s "$ac_outfile"; then
  12537. # The compiler can only warn and ignore the option if not recognized
  12538. # So say no if there are warnings other than the usual output.
  12539. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12540. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12541. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12542. lt_cv_prog_compiler_pic_works_CXX=yes
  12543. fi
  12544. fi
  12545. $rm conftest*
  12546. fi
  12547. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12548. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12549. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12550. case $lt_prog_compiler_pic_CXX in
  12551. "" | " "*) ;;
  12552. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12553. esac
  12554. else
  12555. lt_prog_compiler_pic_CXX=
  12556. lt_prog_compiler_can_build_shared_CXX=no
  12557. fi
  12558. fi
  12559. case $host_os in
  12560. # For platforms which do not support PIC, -DPIC is meaningless:
  12561. *djgpp*)
  12562. lt_prog_compiler_pic_CXX=
  12563. ;;
  12564. *)
  12565. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12566. ;;
  12567. esac
  12568. #
  12569. # Check to make sure the static flag actually works.
  12570. #
  12571. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12572. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12573. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12574. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  12575. echo $ECHO_N "(cached) $ECHO_C" >&6
  12576. else
  12577. lt_cv_prog_compiler_static_works_CXX=no
  12578. save_LDFLAGS="$LDFLAGS"
  12579. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12580. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12581. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12582. # The linker can only warn and ignore the option if not recognized
  12583. # So say no if there are warnings
  12584. if test -s conftest.err; then
  12585. # Append any errors to the config.log.
  12586. cat conftest.err 1>&5
  12587. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12588. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12589. if diff conftest.exp conftest.er2 >/dev/null; then
  12590. lt_cv_prog_compiler_static_works_CXX=yes
  12591. fi
  12592. else
  12593. lt_cv_prog_compiler_static_works_CXX=yes
  12594. fi
  12595. fi
  12596. $rm -r conftest*
  12597. LDFLAGS="$save_LDFLAGS"
  12598. fi
  12599. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12600. echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12601. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12602. :
  12603. else
  12604. lt_prog_compiler_static_CXX=
  12605. fi
  12606. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12607. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12608. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12609. echo $ECHO_N "(cached) $ECHO_C" >&6
  12610. else
  12611. lt_cv_prog_compiler_c_o_CXX=no
  12612. $rm -r conftest 2>/dev/null
  12613. mkdir conftest
  12614. cd conftest
  12615. mkdir out
  12616. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12617. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12618. # Insert the option either (1) after the last *FLAGS variable, or
  12619. # (2) before a word containing "conftest.", or (3) at the end.
  12620. # Note that $ac_compile itself does not contain backslashes and begins
  12621. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12622. lt_compile=`echo "$ac_compile" | $SED \
  12623. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12624. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12625. -e 's:$: $lt_compiler_flag:'`
  12626. (eval echo "\"\$as_me:14039: $lt_compile\"" >&5)
  12627. (eval "$lt_compile" 2>out/conftest.err)
  12628. ac_status=$?
  12629. cat out/conftest.err >&5
  12630. echo "$as_me:14043: \$? = $ac_status" >&5
  12631. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12632. then
  12633. # The compiler can only warn and ignore the option if not recognized
  12634. # So say no if there are warnings
  12635. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12636. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12637. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12638. lt_cv_prog_compiler_c_o_CXX=yes
  12639. fi
  12640. fi
  12641. chmod u+w . 2>&5
  12642. $rm conftest*
  12643. # SGI C++ compiler will create directory out/ii_files/ for
  12644. # template instantiation
  12645. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12646. $rm out/* && rmdir out
  12647. cd ..
  12648. rmdir conftest
  12649. $rm conftest*
  12650. fi
  12651. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12652. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12653. hard_links="nottested"
  12654. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12655. # do not overwrite the value of need_locks provided by the user
  12656. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12657. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  12658. hard_links=yes
  12659. $rm conftest*
  12660. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12661. touch conftest.a
  12662. ln conftest.a conftest.b 2>&5 || hard_links=no
  12663. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12664. { echo "$as_me:$LINENO: result: $hard_links" >&5
  12665. echo "${ECHO_T}$hard_links" >&6; }
  12666. if test "$hard_links" = no; then
  12667. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12668. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12669. need_locks=warn
  12670. fi
  12671. else
  12672. need_locks=no
  12673. fi
  12674. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12675. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  12676. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12677. case $host_os in
  12678. aix[4-9]*)
  12679. # If we're using GNU nm, then we don't want the "-C" option.
  12680. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12681. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12682. 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'
  12683. else
  12684. 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'
  12685. fi
  12686. ;;
  12687. pw32*)
  12688. export_symbols_cmds_CXX="$ltdll_cmds"
  12689. ;;
  12690. cygwin* | mingw*)
  12691. 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'
  12692. ;;
  12693. linux* | k*bsd*-gnu)
  12694. link_all_deplibs_CXX=no
  12695. ;;
  12696. *)
  12697. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12698. ;;
  12699. esac
  12700. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12701. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12702. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  12703. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12704. #
  12705. # Do we need to explicitly link libc?
  12706. #
  12707. case "x$archive_cmds_need_lc_CXX" in
  12708. x|xyes)
  12709. # Assume -lc should be added
  12710. archive_cmds_need_lc_CXX=yes
  12711. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12712. case $archive_cmds_CXX in
  12713. *'~'*)
  12714. # FIXME: we may have to deal with multi-command sequences.
  12715. ;;
  12716. '$CC '*)
  12717. # Test whether the compiler implicitly links with -lc since on some
  12718. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12719. # to ld, don't add -lc before -lgcc.
  12720. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12721. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  12722. $rm conftest*
  12723. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12724. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12725. (eval $ac_compile) 2>&5
  12726. ac_status=$?
  12727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12728. (exit $ac_status); } 2>conftest.err; then
  12729. soname=conftest
  12730. lib=conftest
  12731. libobjs=conftest.$ac_objext
  12732. deplibs=
  12733. wl=$lt_prog_compiler_wl_CXX
  12734. pic_flag=$lt_prog_compiler_pic_CXX
  12735. compiler_flags=-v
  12736. linker_flags=-v
  12737. verstring=
  12738. output_objdir=.
  12739. libname=conftest
  12740. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12741. allow_undefined_flag_CXX=
  12742. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12743. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12744. ac_status=$?
  12745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12746. (exit $ac_status); }
  12747. then
  12748. archive_cmds_need_lc_CXX=no
  12749. else
  12750. archive_cmds_need_lc_CXX=yes
  12751. fi
  12752. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12753. else
  12754. cat conftest.err 1>&5
  12755. fi
  12756. $rm conftest*
  12757. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  12758. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  12759. ;;
  12760. esac
  12761. fi
  12762. ;;
  12763. esac
  12764. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12765. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  12766. library_names_spec=
  12767. libname_spec='lib$name'
  12768. soname_spec=
  12769. shrext_cmds=".so"
  12770. postinstall_cmds=
  12771. postuninstall_cmds=
  12772. finish_cmds=
  12773. finish_eval=
  12774. shlibpath_var=
  12775. shlibpath_overrides_runpath=unknown
  12776. version_type=none
  12777. dynamic_linker="$host_os ld.so"
  12778. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12779. need_lib_prefix=unknown
  12780. hardcode_into_libs=no
  12781. # when you set need_version to no, make sure it does not cause -set_version
  12782. # flags to be left without arguments
  12783. need_version=unknown
  12784. case $host_os in
  12785. aix3*)
  12786. version_type=linux
  12787. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12788. shlibpath_var=LIBPATH
  12789. # AIX 3 has no versioning support, so we append a major version to the name.
  12790. soname_spec='${libname}${release}${shared_ext}$major'
  12791. ;;
  12792. aix[4-9]*)
  12793. version_type=linux
  12794. need_lib_prefix=no
  12795. need_version=no
  12796. hardcode_into_libs=yes
  12797. if test "$host_cpu" = ia64; then
  12798. # AIX 5 supports IA64
  12799. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12800. shlibpath_var=LD_LIBRARY_PATH
  12801. else
  12802. # With GCC up to 2.95.x, collect2 would create an import file
  12803. # for dependence libraries. The import file would start with
  12804. # the line `#! .'. This would cause the generated library to
  12805. # depend on `.', always an invalid library. This was fixed in
  12806. # development snapshots of GCC prior to 3.0.
  12807. case $host_os in
  12808. aix4 | aix4.[01] | aix4.[01].*)
  12809. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12810. echo ' yes '
  12811. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  12812. :
  12813. else
  12814. can_build_shared=no
  12815. fi
  12816. ;;
  12817. esac
  12818. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12819. # soname into executable. Probably we can add versioning support to
  12820. # collect2, so additional links can be useful in future.
  12821. if test "$aix_use_runtimelinking" = yes; then
  12822. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12823. # instead of lib<name>.a to let people know that these are not
  12824. # typical AIX shared libraries.
  12825. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12826. else
  12827. # We preserve .a as extension for shared libraries through AIX4.2
  12828. # and later when we are not doing run time linking.
  12829. library_names_spec='${libname}${release}.a $libname.a'
  12830. soname_spec='${libname}${release}${shared_ext}$major'
  12831. fi
  12832. shlibpath_var=LIBPATH
  12833. fi
  12834. ;;
  12835. amigaos*)
  12836. library_names_spec='$libname.ixlibrary $libname.a'
  12837. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12838. 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'
  12839. ;;
  12840. beos*)
  12841. library_names_spec='${libname}${shared_ext}'
  12842. dynamic_linker="$host_os ld.so"
  12843. shlibpath_var=LIBRARY_PATH
  12844. ;;
  12845. bsdi[45]*)
  12846. version_type=linux
  12847. need_version=no
  12848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12849. soname_spec='${libname}${release}${shared_ext}$major'
  12850. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12851. shlibpath_var=LD_LIBRARY_PATH
  12852. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12853. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12854. # the default ld.so.conf also contains /usr/contrib/lib and
  12855. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12856. # libtool to hard-code these into programs
  12857. ;;
  12858. cygwin* | mingw* | pw32*)
  12859. version_type=windows
  12860. shrext_cmds=".dll"
  12861. need_version=no
  12862. need_lib_prefix=no
  12863. case $GCC,$host_os in
  12864. yes,cygwin* | yes,mingw* | yes,pw32*)
  12865. library_names_spec='$libname.dll.a'
  12866. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12867. postinstall_cmds='base_file=`basename \${file}`~
  12868. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  12869. dldir=$destdir/`dirname \$dlpath`~
  12870. test -d \$dldir || mkdir -p \$dldir~
  12871. $install_prog $dir/$dlname \$dldir/$dlname~
  12872. chmod a+x \$dldir/$dlname'
  12873. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12874. dlpath=$dir/\$dldll~
  12875. $rm \$dlpath'
  12876. shlibpath_overrides_runpath=yes
  12877. case $host_os in
  12878. cygwin*)
  12879. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12880. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12881. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12882. ;;
  12883. mingw*)
  12884. # MinGW DLLs use traditional 'lib' prefix
  12885. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12886. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12887. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  12888. # It is most probably a Windows format PATH printed by
  12889. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12890. # path with ; separators, and with drive letters. We can handle the
  12891. # drive letters (cygwin fileutils understands them), so leave them,
  12892. # especially as we might pass files found there to a mingw objdump,
  12893. # which wouldn't understand a cygwinified path. Ahh.
  12894. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12895. else
  12896. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12897. fi
  12898. ;;
  12899. pw32*)
  12900. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12901. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12902. ;;
  12903. esac
  12904. ;;
  12905. *)
  12906. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12907. ;;
  12908. esac
  12909. dynamic_linker='Win32 ld.exe'
  12910. # FIXME: first we should search . and the directory the executable is in
  12911. shlibpath_var=PATH
  12912. ;;
  12913. darwin* | rhapsody*)
  12914. dynamic_linker="$host_os dyld"
  12915. version_type=darwin
  12916. need_lib_prefix=no
  12917. need_version=no
  12918. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12919. soname_spec='${libname}${release}${major}$shared_ext'
  12920. shlibpath_overrides_runpath=yes
  12921. shlibpath_var=DYLD_LIBRARY_PATH
  12922. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12923. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12924. ;;
  12925. dgux*)
  12926. version_type=linux
  12927. need_lib_prefix=no
  12928. need_version=no
  12929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12930. soname_spec='${libname}${release}${shared_ext}$major'
  12931. shlibpath_var=LD_LIBRARY_PATH
  12932. ;;
  12933. freebsd1*)
  12934. dynamic_linker=no
  12935. ;;
  12936. freebsd* | dragonfly*)
  12937. # DragonFly does not have aout. When/if they implement a new
  12938. # versioning mechanism, adjust this.
  12939. if test -x /usr/bin/objformat; then
  12940. objformat=`/usr/bin/objformat`
  12941. else
  12942. case $host_os in
  12943. freebsd[123]*) objformat=aout ;;
  12944. *) objformat=elf ;;
  12945. esac
  12946. fi
  12947. version_type=freebsd-$objformat
  12948. case $version_type in
  12949. freebsd-elf*)
  12950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12951. need_version=no
  12952. need_lib_prefix=no
  12953. ;;
  12954. freebsd-*)
  12955. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12956. need_version=yes
  12957. ;;
  12958. esac
  12959. shlibpath_var=LD_LIBRARY_PATH
  12960. case $host_os in
  12961. freebsd2*)
  12962. shlibpath_overrides_runpath=yes
  12963. ;;
  12964. freebsd3.[01]* | freebsdelf3.[01]*)
  12965. shlibpath_overrides_runpath=yes
  12966. hardcode_into_libs=yes
  12967. ;;
  12968. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12969. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12970. shlibpath_overrides_runpath=no
  12971. hardcode_into_libs=yes
  12972. ;;
  12973. *) # from 4.6 on, and DragonFly
  12974. shlibpath_overrides_runpath=yes
  12975. hardcode_into_libs=yes
  12976. ;;
  12977. esac
  12978. ;;
  12979. gnu*)
  12980. version_type=linux
  12981. need_lib_prefix=no
  12982. need_version=no
  12983. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12984. soname_spec='${libname}${release}${shared_ext}$major'
  12985. shlibpath_var=LD_LIBRARY_PATH
  12986. hardcode_into_libs=yes
  12987. ;;
  12988. hpux9* | hpux10* | hpux11*)
  12989. # Give a soname corresponding to the major version so that dld.sl refuses to
  12990. # link against other versions.
  12991. version_type=sunos
  12992. need_lib_prefix=no
  12993. need_version=no
  12994. case $host_cpu in
  12995. ia64*)
  12996. shrext_cmds='.so'
  12997. hardcode_into_libs=yes
  12998. dynamic_linker="$host_os dld.so"
  12999. shlibpath_var=LD_LIBRARY_PATH
  13000. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13001. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13002. soname_spec='${libname}${release}${shared_ext}$major'
  13003. if test "X$HPUX_IA64_MODE" = X32; then
  13004. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13005. else
  13006. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13007. fi
  13008. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13009. ;;
  13010. hppa*64*)
  13011. shrext_cmds='.sl'
  13012. hardcode_into_libs=yes
  13013. dynamic_linker="$host_os dld.sl"
  13014. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13015. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13017. soname_spec='${libname}${release}${shared_ext}$major'
  13018. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13019. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13020. ;;
  13021. *)
  13022. shrext_cmds='.sl'
  13023. dynamic_linker="$host_os dld.sl"
  13024. shlibpath_var=SHLIB_PATH
  13025. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13027. soname_spec='${libname}${release}${shared_ext}$major'
  13028. ;;
  13029. esac
  13030. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13031. postinstall_cmds='chmod 555 $lib'
  13032. ;;
  13033. interix[3-9]*)
  13034. version_type=linux
  13035. need_lib_prefix=no
  13036. need_version=no
  13037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13038. soname_spec='${libname}${release}${shared_ext}$major'
  13039. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13040. shlibpath_var=LD_LIBRARY_PATH
  13041. shlibpath_overrides_runpath=no
  13042. hardcode_into_libs=yes
  13043. ;;
  13044. irix5* | irix6* | nonstopux*)
  13045. case $host_os in
  13046. nonstopux*) version_type=nonstopux ;;
  13047. *)
  13048. if test "$lt_cv_prog_gnu_ld" = yes; then
  13049. version_type=linux
  13050. else
  13051. version_type=irix
  13052. fi ;;
  13053. esac
  13054. need_lib_prefix=no
  13055. need_version=no
  13056. soname_spec='${libname}${release}${shared_ext}$major'
  13057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13058. case $host_os in
  13059. irix5* | nonstopux*)
  13060. libsuff= shlibsuff=
  13061. ;;
  13062. *)
  13063. case $LD in # libtool.m4 will add one of these switches to LD
  13064. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13065. libsuff= shlibsuff= libmagic=32-bit;;
  13066. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13067. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13068. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13069. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13070. *) libsuff= shlibsuff= libmagic=never-match;;
  13071. esac
  13072. ;;
  13073. esac
  13074. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13075. shlibpath_overrides_runpath=no
  13076. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13077. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13078. hardcode_into_libs=yes
  13079. ;;
  13080. # No shared lib support for Linux oldld, aout, or coff.
  13081. linux*oldld* | linux*aout* | linux*coff*)
  13082. dynamic_linker=no
  13083. ;;
  13084. # This must be Linux ELF.
  13085. linux* | k*bsd*-gnu)
  13086. version_type=linux
  13087. need_lib_prefix=no
  13088. need_version=no
  13089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13090. soname_spec='${libname}${release}${shared_ext}$major'
  13091. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13092. shlibpath_var=LD_LIBRARY_PATH
  13093. shlibpath_overrides_runpath=no
  13094. # This implies no fast_install, which is unacceptable.
  13095. # Some rework will be needed to allow for fast_install
  13096. # before this can be enabled.
  13097. hardcode_into_libs=yes
  13098. # Append ld.so.conf contents to the search path
  13099. if test -f /etc/ld.so.conf; then
  13100. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13101. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13102. fi
  13103. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13104. # powerpc, because MkLinux only supported shared libraries with the
  13105. # GNU dynamic linker. Since this was broken with cross compilers,
  13106. # most powerpc-linux boxes support dynamic linking these days and
  13107. # people can always --disable-shared, the test was removed, and we
  13108. # assume the GNU/Linux dynamic linker is in use.
  13109. dynamic_linker='GNU/Linux ld.so'
  13110. ;;
  13111. netbsdelf*-gnu)
  13112. version_type=linux
  13113. need_lib_prefix=no
  13114. need_version=no
  13115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13116. soname_spec='${libname}${release}${shared_ext}$major'
  13117. shlibpath_var=LD_LIBRARY_PATH
  13118. shlibpath_overrides_runpath=no
  13119. hardcode_into_libs=yes
  13120. dynamic_linker='NetBSD ld.elf_so'
  13121. ;;
  13122. netbsd*)
  13123. version_type=sunos
  13124. need_lib_prefix=no
  13125. need_version=no
  13126. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13128. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13129. dynamic_linker='NetBSD (a.out) ld.so'
  13130. else
  13131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13132. soname_spec='${libname}${release}${shared_ext}$major'
  13133. dynamic_linker='NetBSD ld.elf_so'
  13134. fi
  13135. shlibpath_var=LD_LIBRARY_PATH
  13136. shlibpath_overrides_runpath=yes
  13137. hardcode_into_libs=yes
  13138. ;;
  13139. newsos6)
  13140. version_type=linux
  13141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13142. shlibpath_var=LD_LIBRARY_PATH
  13143. shlibpath_overrides_runpath=yes
  13144. ;;
  13145. nto-qnx*)
  13146. version_type=linux
  13147. need_lib_prefix=no
  13148. need_version=no
  13149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13150. soname_spec='${libname}${release}${shared_ext}$major'
  13151. shlibpath_var=LD_LIBRARY_PATH
  13152. shlibpath_overrides_runpath=yes
  13153. ;;
  13154. openbsd*)
  13155. version_type=sunos
  13156. sys_lib_dlsearch_path_spec="/usr/lib"
  13157. need_lib_prefix=no
  13158. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13159. case $host_os in
  13160. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13161. *) need_version=no ;;
  13162. esac
  13163. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13164. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13165. shlibpath_var=LD_LIBRARY_PATH
  13166. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13167. case $host_os in
  13168. openbsd2.[89] | openbsd2.[89].*)
  13169. shlibpath_overrides_runpath=no
  13170. ;;
  13171. *)
  13172. shlibpath_overrides_runpath=yes
  13173. ;;
  13174. esac
  13175. else
  13176. shlibpath_overrides_runpath=yes
  13177. fi
  13178. ;;
  13179. os2*)
  13180. libname_spec='$name'
  13181. shrext_cmds=".dll"
  13182. need_lib_prefix=no
  13183. library_names_spec='$libname${shared_ext} $libname.a'
  13184. dynamic_linker='OS/2 ld.exe'
  13185. shlibpath_var=LIBPATH
  13186. ;;
  13187. osf3* | osf4* | osf5*)
  13188. version_type=osf
  13189. need_lib_prefix=no
  13190. need_version=no
  13191. soname_spec='${libname}${release}${shared_ext}$major'
  13192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13193. shlibpath_var=LD_LIBRARY_PATH
  13194. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13195. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13196. ;;
  13197. rdos*)
  13198. dynamic_linker=no
  13199. ;;
  13200. solaris*)
  13201. version_type=linux
  13202. need_lib_prefix=no
  13203. need_version=no
  13204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13205. soname_spec='${libname}${release}${shared_ext}$major'
  13206. shlibpath_var=LD_LIBRARY_PATH
  13207. shlibpath_overrides_runpath=yes
  13208. hardcode_into_libs=yes
  13209. # ldd complains unless libraries are executable
  13210. postinstall_cmds='chmod +x $lib'
  13211. ;;
  13212. sunos4*)
  13213. version_type=sunos
  13214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13215. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13216. shlibpath_var=LD_LIBRARY_PATH
  13217. shlibpath_overrides_runpath=yes
  13218. if test "$with_gnu_ld" = yes; then
  13219. need_lib_prefix=no
  13220. fi
  13221. need_version=yes
  13222. ;;
  13223. sysv4 | sysv4.3*)
  13224. version_type=linux
  13225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13226. soname_spec='${libname}${release}${shared_ext}$major'
  13227. shlibpath_var=LD_LIBRARY_PATH
  13228. case $host_vendor in
  13229. sni)
  13230. shlibpath_overrides_runpath=no
  13231. need_lib_prefix=no
  13232. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13233. runpath_var=LD_RUN_PATH
  13234. ;;
  13235. siemens)
  13236. need_lib_prefix=no
  13237. ;;
  13238. motorola)
  13239. need_lib_prefix=no
  13240. need_version=no
  13241. shlibpath_overrides_runpath=no
  13242. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13243. ;;
  13244. esac
  13245. ;;
  13246. sysv4*MP*)
  13247. if test -d /usr/nec ;then
  13248. version_type=linux
  13249. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13250. soname_spec='$libname${shared_ext}.$major'
  13251. shlibpath_var=LD_LIBRARY_PATH
  13252. fi
  13253. ;;
  13254. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13255. version_type=freebsd-elf
  13256. need_lib_prefix=no
  13257. need_version=no
  13258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13259. soname_spec='${libname}${release}${shared_ext}$major'
  13260. shlibpath_var=LD_LIBRARY_PATH
  13261. hardcode_into_libs=yes
  13262. if test "$with_gnu_ld" = yes; then
  13263. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13264. shlibpath_overrides_runpath=no
  13265. else
  13266. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13267. shlibpath_overrides_runpath=yes
  13268. case $host_os in
  13269. sco3.2v5*)
  13270. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13271. ;;
  13272. esac
  13273. fi
  13274. sys_lib_dlsearch_path_spec='/usr/lib'
  13275. ;;
  13276. uts4*)
  13277. version_type=linux
  13278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13279. soname_spec='${libname}${release}${shared_ext}$major'
  13280. shlibpath_var=LD_LIBRARY_PATH
  13281. ;;
  13282. *)
  13283. dynamic_linker=no
  13284. ;;
  13285. esac
  13286. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13287. echo "${ECHO_T}$dynamic_linker" >&6; }
  13288. test "$dynamic_linker" = no && can_build_shared=no
  13289. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13290. echo $ECHO_N "(cached) $ECHO_C" >&6
  13291. else
  13292. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  13293. fi
  13294. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13295. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13296. echo $ECHO_N "(cached) $ECHO_C" >&6
  13297. else
  13298. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  13299. fi
  13300. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13301. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13302. if test "$GCC" = yes; then
  13303. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13304. fi
  13305. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13306. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  13307. hardcode_action_CXX=
  13308. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  13309. test -n "$runpath_var_CXX" || \
  13310. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13311. # We can hardcode non-existant directories.
  13312. if test "$hardcode_direct_CXX" != no &&
  13313. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13314. # have to relink, otherwise we might link with an installed library
  13315. # when we should be linking with a yet-to-be-installed one
  13316. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13317. test "$hardcode_minus_L_CXX" != no; then
  13318. # Linking always hardcodes the temporary library directory.
  13319. hardcode_action_CXX=relink
  13320. else
  13321. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13322. hardcode_action_CXX=immediate
  13323. fi
  13324. else
  13325. # We cannot hardcode anything, or else we can only hardcode existing
  13326. # directories.
  13327. hardcode_action_CXX=unsupported
  13328. fi
  13329. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  13330. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  13331. if test "$hardcode_action_CXX" = relink; then
  13332. # Fast installation is not supported
  13333. enable_fast_install=no
  13334. elif test "$shlibpath_overrides_runpath" = yes ||
  13335. test "$enable_shared" = no; then
  13336. # Fast installation is not necessary
  13337. enable_fast_install=needless
  13338. fi
  13339. # The else clause should only fire when bootstrapping the
  13340. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13341. # with your package, and you will get complaints that there are
  13342. # no rules to generate ltmain.sh.
  13343. if test -f "$ltmain"; then
  13344. # See if we are running on zsh, and set the options which allow our commands through
  13345. # without removal of \ escapes.
  13346. if test -n "${ZSH_VERSION+set}" ; then
  13347. setopt NO_GLOB_SUBST
  13348. fi
  13349. # Now quote all the things that may contain metacharacters while being
  13350. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13351. # variables and quote the copies for generation of the libtool script.
  13352. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13353. SED SHELL STRIP \
  13354. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13355. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13356. deplibs_check_method reload_flag reload_cmds need_locks \
  13357. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13358. lt_cv_sys_global_symbol_to_c_name_address \
  13359. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13360. old_postinstall_cmds old_postuninstall_cmds \
  13361. compiler_CXX \
  13362. CC_CXX \
  13363. LD_CXX \
  13364. lt_prog_compiler_wl_CXX \
  13365. lt_prog_compiler_pic_CXX \
  13366. lt_prog_compiler_static_CXX \
  13367. lt_prog_compiler_no_builtin_flag_CXX \
  13368. export_dynamic_flag_spec_CXX \
  13369. thread_safe_flag_spec_CXX \
  13370. whole_archive_flag_spec_CXX \
  13371. enable_shared_with_static_runtimes_CXX \
  13372. old_archive_cmds_CXX \
  13373. old_archive_from_new_cmds_CXX \
  13374. predep_objects_CXX \
  13375. postdep_objects_CXX \
  13376. predeps_CXX \
  13377. postdeps_CXX \
  13378. compiler_lib_search_path_CXX \
  13379. compiler_lib_search_dirs_CXX \
  13380. archive_cmds_CXX \
  13381. archive_expsym_cmds_CXX \
  13382. postinstall_cmds_CXX \
  13383. postuninstall_cmds_CXX \
  13384. old_archive_from_expsyms_cmds_CXX \
  13385. allow_undefined_flag_CXX \
  13386. no_undefined_flag_CXX \
  13387. export_symbols_cmds_CXX \
  13388. hardcode_libdir_flag_spec_CXX \
  13389. hardcode_libdir_flag_spec_ld_CXX \
  13390. hardcode_libdir_separator_CXX \
  13391. hardcode_automatic_CXX \
  13392. module_cmds_CXX \
  13393. module_expsym_cmds_CXX \
  13394. lt_cv_prog_compiler_c_o_CXX \
  13395. fix_srcfile_path_CXX \
  13396. exclude_expsyms_CXX \
  13397. include_expsyms_CXX; do
  13398. case $var in
  13399. old_archive_cmds_CXX | \
  13400. old_archive_from_new_cmds_CXX | \
  13401. archive_cmds_CXX | \
  13402. archive_expsym_cmds_CXX | \
  13403. module_cmds_CXX | \
  13404. module_expsym_cmds_CXX | \
  13405. old_archive_from_expsyms_cmds_CXX | \
  13406. export_symbols_cmds_CXX | \
  13407. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13408. postinstall_cmds | postuninstall_cmds | \
  13409. old_postinstall_cmds | old_postuninstall_cmds | \
  13410. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13411. # Double-quote double-evaled strings.
  13412. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13413. ;;
  13414. *)
  13415. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13416. ;;
  13417. esac
  13418. done
  13419. case $lt_echo in
  13420. *'\$0 --fallback-echo"')
  13421. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13422. ;;
  13423. esac
  13424. cfgfile="$ofile"
  13425. cat <<__EOF__ >> "$cfgfile"
  13426. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13427. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13428. # Shell to use when invoking shell scripts.
  13429. SHELL=$lt_SHELL
  13430. # Whether or not to build shared libraries.
  13431. build_libtool_libs=$enable_shared
  13432. # Whether or not to build static libraries.
  13433. build_old_libs=$enable_static
  13434. # Whether or not to add -lc for building shared libraries.
  13435. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  13436. # Whether or not to disallow shared libs when runtime libs are static
  13437. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  13438. # Whether or not to optimize for fast installation.
  13439. fast_install=$enable_fast_install
  13440. # The host system.
  13441. host_alias=$host_alias
  13442. host=$host
  13443. host_os=$host_os
  13444. # The build system.
  13445. build_alias=$build_alias
  13446. build=$build
  13447. build_os=$build_os
  13448. # An echo program that does not interpret backslashes.
  13449. echo=$lt_echo
  13450. # The archiver.
  13451. AR=$lt_AR
  13452. AR_FLAGS=$lt_AR_FLAGS
  13453. # A C compiler.
  13454. LTCC=$lt_LTCC
  13455. # LTCC compiler flags.
  13456. LTCFLAGS=$lt_LTCFLAGS
  13457. # A language-specific compiler.
  13458. CC=$lt_compiler_CXX
  13459. # Is the compiler the GNU C compiler?
  13460. with_gcc=$GCC_CXX
  13461. # An ERE matcher.
  13462. EGREP=$lt_EGREP
  13463. # The linker used to build libraries.
  13464. LD=$lt_LD_CXX
  13465. # Whether we need hard or soft links.
  13466. LN_S=$lt_LN_S
  13467. # A BSD-compatible nm program.
  13468. NM=$lt_NM
  13469. # A symbol stripping program
  13470. STRIP=$lt_STRIP
  13471. # Used to examine libraries when file_magic_cmd begins "file"
  13472. MAGIC_CMD=$MAGIC_CMD
  13473. # Used on cygwin: DLL creation program.
  13474. DLLTOOL="$DLLTOOL"
  13475. # Used on cygwin: object dumper.
  13476. OBJDUMP="$OBJDUMP"
  13477. # Used on cygwin: assembler.
  13478. AS="$AS"
  13479. # The name of the directory that contains temporary libtool files.
  13480. objdir=$objdir
  13481. # How to create reloadable object files.
  13482. reload_flag=$lt_reload_flag
  13483. reload_cmds=$lt_reload_cmds
  13484. # How to pass a linker flag through the compiler.
  13485. wl=$lt_lt_prog_compiler_wl_CXX
  13486. # Object file suffix (normally "o").
  13487. objext="$ac_objext"
  13488. # Old archive suffix (normally "a").
  13489. libext="$libext"
  13490. # Shared library suffix (normally ".so").
  13491. shrext_cmds='$shrext_cmds'
  13492. # Executable file suffix (normally "").
  13493. exeext="$exeext"
  13494. # Additional compiler flags for building library objects.
  13495. pic_flag=$lt_lt_prog_compiler_pic_CXX
  13496. pic_mode=$pic_mode
  13497. # What is the maximum length of a command?
  13498. max_cmd_len=$lt_cv_sys_max_cmd_len
  13499. # Does compiler simultaneously support -c and -o options?
  13500. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  13501. # Must we lock files when doing compilation?
  13502. need_locks=$lt_need_locks
  13503. # Do we need the lib prefix for modules?
  13504. need_lib_prefix=$need_lib_prefix
  13505. # Do we need a version for libraries?
  13506. need_version=$need_version
  13507. # Whether dlopen is supported.
  13508. dlopen_support=$enable_dlopen
  13509. # Whether dlopen of programs is supported.
  13510. dlopen_self=$enable_dlopen_self
  13511. # Whether dlopen of statically linked programs is supported.
  13512. dlopen_self_static=$enable_dlopen_self_static
  13513. # Compiler flag to prevent dynamic linking.
  13514. link_static_flag=$lt_lt_prog_compiler_static_CXX
  13515. # Compiler flag to turn off builtin functions.
  13516. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  13517. # Compiler flag to allow reflexive dlopens.
  13518. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  13519. # Compiler flag to generate shared objects directly from archives.
  13520. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  13521. # Compiler flag to generate thread-safe objects.
  13522. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  13523. # Library versioning type.
  13524. version_type=$version_type
  13525. # Format of library name prefix.
  13526. libname_spec=$lt_libname_spec
  13527. # List of archive names. First name is the real one, the rest are links.
  13528. # The last name is the one that the linker finds with -lNAME.
  13529. library_names_spec=$lt_library_names_spec
  13530. # The coded name of the library, if different from the real name.
  13531. soname_spec=$lt_soname_spec
  13532. # Commands used to build and install an old-style archive.
  13533. RANLIB=$lt_RANLIB
  13534. old_archive_cmds=$lt_old_archive_cmds_CXX
  13535. old_postinstall_cmds=$lt_old_postinstall_cmds
  13536. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13537. # Create an old-style archive from a shared archive.
  13538. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  13539. # Create a temporary old-style archive to link instead of a shared archive.
  13540. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  13541. # Commands used to build and install a shared archive.
  13542. archive_cmds=$lt_archive_cmds_CXX
  13543. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  13544. postinstall_cmds=$lt_postinstall_cmds
  13545. postuninstall_cmds=$lt_postuninstall_cmds
  13546. # Commands used to build a loadable module (assumed same as above if empty)
  13547. module_cmds=$lt_module_cmds_CXX
  13548. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  13549. # Commands to strip libraries.
  13550. old_striplib=$lt_old_striplib
  13551. striplib=$lt_striplib
  13552. # Dependencies to place before the objects being linked to create a
  13553. # shared library.
  13554. predep_objects=$lt_predep_objects_CXX
  13555. # Dependencies to place after the objects being linked to create a
  13556. # shared library.
  13557. postdep_objects=$lt_postdep_objects_CXX
  13558. # Dependencies to place before the objects being linked to create a
  13559. # shared library.
  13560. predeps=$lt_predeps_CXX
  13561. # Dependencies to place after the objects being linked to create a
  13562. # shared library.
  13563. postdeps=$lt_postdeps_CXX
  13564. # The directories searched by this compiler when creating a shared
  13565. # library
  13566. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  13567. # The library search path used internally by the compiler when linking
  13568. # a shared library.
  13569. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  13570. # Method to check whether dependent libraries are shared objects.
  13571. deplibs_check_method=$lt_deplibs_check_method
  13572. # Command to use when deplibs_check_method == file_magic.
  13573. file_magic_cmd=$lt_file_magic_cmd
  13574. # Flag that allows shared libraries with undefined symbols to be built.
  13575. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  13576. # Flag that forces no undefined symbols.
  13577. no_undefined_flag=$lt_no_undefined_flag_CXX
  13578. # Commands used to finish a libtool library installation in a directory.
  13579. finish_cmds=$lt_finish_cmds
  13580. # Same as above, but a single script fragment to be evaled but not shown.
  13581. finish_eval=$lt_finish_eval
  13582. # Take the output of nm and produce a listing of raw symbols and C names.
  13583. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13584. # Transform the output of nm in a proper C declaration
  13585. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13586. # Transform the output of nm in a C name address pair
  13587. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13588. # This is the shared library runtime path variable.
  13589. runpath_var=$runpath_var
  13590. # This is the shared library path variable.
  13591. shlibpath_var=$shlibpath_var
  13592. # Is shlibpath searched before the hard-coded library search path?
  13593. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13594. # How to hardcode a shared library path into an executable.
  13595. hardcode_action=$hardcode_action_CXX
  13596. # Whether we should hardcode library paths into libraries.
  13597. hardcode_into_libs=$hardcode_into_libs
  13598. # Flag to hardcode \$libdir into a binary during linking.
  13599. # This must work even if \$libdir does not exist.
  13600. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  13601. # If ld is used when linking, flag to hardcode \$libdir into
  13602. # a binary during linking. This must work even if \$libdir does
  13603. # not exist.
  13604. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  13605. # Whether we need a single -rpath flag with a separated argument.
  13606. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  13607. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13608. # resulting binary.
  13609. hardcode_direct=$hardcode_direct_CXX
  13610. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13611. # resulting binary.
  13612. hardcode_minus_L=$hardcode_minus_L_CXX
  13613. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13614. # the resulting binary.
  13615. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  13616. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13617. # and all subsequent libraries and executables linked against it.
  13618. hardcode_automatic=$hardcode_automatic_CXX
  13619. # Variables whose values should be saved in libtool wrapper scripts and
  13620. # restored at relink time.
  13621. variables_saved_for_relink="$variables_saved_for_relink"
  13622. # Whether libtool must link a program against all its dependency libraries.
  13623. link_all_deplibs=$link_all_deplibs_CXX
  13624. # Compile-time system search path for libraries
  13625. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13626. # Run-time system search path for libraries
  13627. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13628. # Fix the shell variable \$srcfile for the compiler.
  13629. fix_srcfile_path=$lt_fix_srcfile_path
  13630. # Set to yes if exported symbols are required.
  13631. always_export_symbols=$always_export_symbols_CXX
  13632. # The commands to list exported symbols.
  13633. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  13634. # The commands to extract the exported symbol list from a shared archive.
  13635. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13636. # Symbols that should not be listed in the preloaded symbols.
  13637. exclude_expsyms=$lt_exclude_expsyms_CXX
  13638. # Symbols that must always be exported.
  13639. include_expsyms=$lt_include_expsyms_CXX
  13640. # ### END LIBTOOL TAG CONFIG: $tagname
  13641. __EOF__
  13642. else
  13643. # If there is no Makefile yet, we rely on a make rule to execute
  13644. # `config.status --recheck' to rerun these tests and create the
  13645. # libtool script then.
  13646. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13647. if test -f "$ltmain_in"; then
  13648. test -f Makefile && make "$ltmain"
  13649. fi
  13650. fi
  13651. ac_ext=c
  13652. ac_cpp='$CPP $CPPFLAGS'
  13653. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13654. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13655. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13656. CC=$lt_save_CC
  13657. LDCXX=$LD
  13658. LD=$lt_save_LD
  13659. GCC=$lt_save_GCC
  13660. with_gnu_ldcxx=$with_gnu_ld
  13661. with_gnu_ld=$lt_save_with_gnu_ld
  13662. lt_cv_path_LDCXX=$lt_cv_path_LD
  13663. lt_cv_path_LD=$lt_save_path_LD
  13664. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13665. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13666. else
  13667. tagname=""
  13668. fi
  13669. ;;
  13670. F77)
  13671. if test -n "$F77" && test "X$F77" != "Xno"; then
  13672. ac_ext=f
  13673. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  13674. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13675. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  13676. archive_cmds_need_lc_F77=no
  13677. allow_undefined_flag_F77=
  13678. always_export_symbols_F77=no
  13679. archive_expsym_cmds_F77=
  13680. export_dynamic_flag_spec_F77=
  13681. hardcode_direct_F77=no
  13682. hardcode_libdir_flag_spec_F77=
  13683. hardcode_libdir_flag_spec_ld_F77=
  13684. hardcode_libdir_separator_F77=
  13685. hardcode_minus_L_F77=no
  13686. hardcode_automatic_F77=no
  13687. module_cmds_F77=
  13688. module_expsym_cmds_F77=
  13689. link_all_deplibs_F77=unknown
  13690. old_archive_cmds_F77=$old_archive_cmds
  13691. no_undefined_flag_F77=
  13692. whole_archive_flag_spec_F77=
  13693. enable_shared_with_static_runtimes_F77=no
  13694. # Source file extension for f77 test sources.
  13695. ac_ext=f
  13696. # Object file extension for compiled f77 test sources.
  13697. objext=o
  13698. objext_F77=$objext
  13699. # Code to be used in simple compile tests
  13700. lt_simple_compile_test_code="\
  13701. subroutine t
  13702. return
  13703. end
  13704. "
  13705. # Code to be used in simple link tests
  13706. lt_simple_link_test_code="\
  13707. program t
  13708. end
  13709. "
  13710. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13711. # If no C compiler was specified, use CC.
  13712. LTCC=${LTCC-"$CC"}
  13713. # If no C compiler flags were specified, use CFLAGS.
  13714. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13715. # Allow CC to be a program name with arguments.
  13716. compiler=$CC
  13717. # save warnings/boilerplate of simple test code
  13718. ac_outfile=conftest.$ac_objext
  13719. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  13720. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13721. _lt_compiler_boilerplate=`cat conftest.err`
  13722. $rm conftest*
  13723. ac_outfile=conftest.$ac_objext
  13724. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  13725. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13726. _lt_linker_boilerplate=`cat conftest.err`
  13727. $rm -r conftest*
  13728. # Allow CC to be a program name with arguments.
  13729. lt_save_CC="$CC"
  13730. CC=${F77-"f77"}
  13731. compiler=$CC
  13732. compiler_F77=$CC
  13733. for cc_temp in $compiler""; do
  13734. case $cc_temp in
  13735. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13736. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13737. \-*) ;;
  13738. *) break;;
  13739. esac
  13740. done
  13741. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13742. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  13743. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  13744. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  13745. echo "${ECHO_T}$can_build_shared" >&6; }
  13746. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  13747. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  13748. test "$can_build_shared" = "no" && enable_shared=no
  13749. # On AIX, shared libraries and static libraries use the same namespace, and
  13750. # are all built from PIC.
  13751. case $host_os in
  13752. aix3*)
  13753. test "$enable_shared" = yes && enable_static=no
  13754. if test -n "$RANLIB"; then
  13755. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13756. postinstall_cmds='$RANLIB $lib'
  13757. fi
  13758. ;;
  13759. aix[4-9]*)
  13760. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  13761. test "$enable_shared" = yes && enable_static=no
  13762. fi
  13763. ;;
  13764. esac
  13765. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  13766. echo "${ECHO_T}$enable_shared" >&6; }
  13767. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  13768. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  13769. # Make sure either enable_shared or enable_static is yes.
  13770. test "$enable_shared" = yes || enable_static=yes
  13771. { echo "$as_me:$LINENO: result: $enable_static" >&5
  13772. echo "${ECHO_T}$enable_static" >&6; }
  13773. GCC_F77="$G77"
  13774. LD_F77="$LD"
  13775. lt_prog_compiler_wl_F77=
  13776. lt_prog_compiler_pic_F77=
  13777. lt_prog_compiler_static_F77=
  13778. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13779. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  13780. if test "$GCC" = yes; then
  13781. lt_prog_compiler_wl_F77='-Wl,'
  13782. lt_prog_compiler_static_F77='-static'
  13783. case $host_os in
  13784. aix*)
  13785. # All AIX code is PIC.
  13786. if test "$host_cpu" = ia64; then
  13787. # AIX 5 now supports IA64 processor
  13788. lt_prog_compiler_static_F77='-Bstatic'
  13789. fi
  13790. ;;
  13791. amigaos*)
  13792. # FIXME: we need at least 68020 code to build shared libraries, but
  13793. # adding the `-m68020' flag to GCC prevents building anything better,
  13794. # like `-m68040'.
  13795. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  13796. ;;
  13797. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13798. # PIC is the default for these OSes.
  13799. ;;
  13800. mingw* | cygwin* | pw32* | os2*)
  13801. # This hack is so that the source file can tell whether it is being
  13802. # built for inclusion in a dll (and should export symbols for example).
  13803. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13804. # (--disable-auto-import) libraries
  13805. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  13806. ;;
  13807. darwin* | rhapsody*)
  13808. # PIC is the default on this platform
  13809. # Common symbols not allowed in MH_DYLIB files
  13810. lt_prog_compiler_pic_F77='-fno-common'
  13811. ;;
  13812. interix[3-9]*)
  13813. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13814. # Instead, we relocate shared libraries at runtime.
  13815. ;;
  13816. msdosdjgpp*)
  13817. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13818. # on systems that don't support them.
  13819. lt_prog_compiler_can_build_shared_F77=no
  13820. enable_shared=no
  13821. ;;
  13822. sysv4*MP*)
  13823. if test -d /usr/nec; then
  13824. lt_prog_compiler_pic_F77=-Kconform_pic
  13825. fi
  13826. ;;
  13827. hpux*)
  13828. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13829. # not for PA HP-UX.
  13830. case $host_cpu in
  13831. hppa*64*|ia64*)
  13832. # +Z the default
  13833. ;;
  13834. *)
  13835. lt_prog_compiler_pic_F77='-fPIC'
  13836. ;;
  13837. esac
  13838. ;;
  13839. *)
  13840. lt_prog_compiler_pic_F77='-fPIC'
  13841. ;;
  13842. esac
  13843. else
  13844. # PORTME Check for flag to pass linker flags through the system compiler.
  13845. case $host_os in
  13846. aix*)
  13847. lt_prog_compiler_wl_F77='-Wl,'
  13848. if test "$host_cpu" = ia64; then
  13849. # AIX 5 now supports IA64 processor
  13850. lt_prog_compiler_static_F77='-Bstatic'
  13851. else
  13852. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  13853. fi
  13854. ;;
  13855. darwin*)
  13856. # PIC is the default on this platform
  13857. # Common symbols not allowed in MH_DYLIB files
  13858. case $cc_basename in
  13859. xlc*)
  13860. lt_prog_compiler_pic_F77='-qnocommon'
  13861. lt_prog_compiler_wl_F77='-Wl,'
  13862. ;;
  13863. esac
  13864. ;;
  13865. mingw* | cygwin* | pw32* | os2*)
  13866. # This hack is so that the source file can tell whether it is being
  13867. # built for inclusion in a dll (and should export symbols for example).
  13868. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  13869. ;;
  13870. hpux9* | hpux10* | hpux11*)
  13871. lt_prog_compiler_wl_F77='-Wl,'
  13872. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13873. # not for PA HP-UX.
  13874. case $host_cpu in
  13875. hppa*64*|ia64*)
  13876. # +Z the default
  13877. ;;
  13878. *)
  13879. lt_prog_compiler_pic_F77='+Z'
  13880. ;;
  13881. esac
  13882. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13883. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  13884. ;;
  13885. irix5* | irix6* | nonstopux*)
  13886. lt_prog_compiler_wl_F77='-Wl,'
  13887. # PIC (with -KPIC) is the default.
  13888. lt_prog_compiler_static_F77='-non_shared'
  13889. ;;
  13890. newsos6)
  13891. lt_prog_compiler_pic_F77='-KPIC'
  13892. lt_prog_compiler_static_F77='-Bstatic'
  13893. ;;
  13894. linux* | k*bsd*-gnu)
  13895. case $cc_basename in
  13896. icc* | ecc*)
  13897. lt_prog_compiler_wl_F77='-Wl,'
  13898. lt_prog_compiler_pic_F77='-KPIC'
  13899. lt_prog_compiler_static_F77='-static'
  13900. ;;
  13901. pgcc* | pgf77* | pgf90* | pgf95*)
  13902. # Portland Group compilers (*not* the Pentium gcc compiler,
  13903. # which looks to be a dead project)
  13904. lt_prog_compiler_wl_F77='-Wl,'
  13905. lt_prog_compiler_pic_F77='-fpic'
  13906. lt_prog_compiler_static_F77='-Bstatic'
  13907. ;;
  13908. ccc*)
  13909. lt_prog_compiler_wl_F77='-Wl,'
  13910. # All Alpha code is PIC.
  13911. lt_prog_compiler_static_F77='-non_shared'
  13912. ;;
  13913. *)
  13914. case `$CC -V 2>&1 | sed 5q` in
  13915. *Sun\ C*)
  13916. # Sun C 5.9
  13917. lt_prog_compiler_pic_F77='-KPIC'
  13918. lt_prog_compiler_static_F77='-Bstatic'
  13919. lt_prog_compiler_wl_F77='-Wl,'
  13920. ;;
  13921. *Sun\ F*)
  13922. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  13923. lt_prog_compiler_pic_F77='-KPIC'
  13924. lt_prog_compiler_static_F77='-Bstatic'
  13925. lt_prog_compiler_wl_F77=''
  13926. ;;
  13927. esac
  13928. ;;
  13929. esac
  13930. ;;
  13931. osf3* | osf4* | osf5*)
  13932. lt_prog_compiler_wl_F77='-Wl,'
  13933. # All OSF/1 code is PIC.
  13934. lt_prog_compiler_static_F77='-non_shared'
  13935. ;;
  13936. rdos*)
  13937. lt_prog_compiler_static_F77='-non_shared'
  13938. ;;
  13939. solaris*)
  13940. lt_prog_compiler_pic_F77='-KPIC'
  13941. lt_prog_compiler_static_F77='-Bstatic'
  13942. case $cc_basename in
  13943. f77* | f90* | f95*)
  13944. lt_prog_compiler_wl_F77='-Qoption ld ';;
  13945. *)
  13946. lt_prog_compiler_wl_F77='-Wl,';;
  13947. esac
  13948. ;;
  13949. sunos4*)
  13950. lt_prog_compiler_wl_F77='-Qoption ld '
  13951. lt_prog_compiler_pic_F77='-PIC'
  13952. lt_prog_compiler_static_F77='-Bstatic'
  13953. ;;
  13954. sysv4 | sysv4.2uw2* | sysv4.3*)
  13955. lt_prog_compiler_wl_F77='-Wl,'
  13956. lt_prog_compiler_pic_F77='-KPIC'
  13957. lt_prog_compiler_static_F77='-Bstatic'
  13958. ;;
  13959. sysv4*MP*)
  13960. if test -d /usr/nec ;then
  13961. lt_prog_compiler_pic_F77='-Kconform_pic'
  13962. lt_prog_compiler_static_F77='-Bstatic'
  13963. fi
  13964. ;;
  13965. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13966. lt_prog_compiler_wl_F77='-Wl,'
  13967. lt_prog_compiler_pic_F77='-KPIC'
  13968. lt_prog_compiler_static_F77='-Bstatic'
  13969. ;;
  13970. unicos*)
  13971. lt_prog_compiler_wl_F77='-Wl,'
  13972. lt_prog_compiler_can_build_shared_F77=no
  13973. ;;
  13974. uts4*)
  13975. lt_prog_compiler_pic_F77='-pic'
  13976. lt_prog_compiler_static_F77='-Bstatic'
  13977. ;;
  13978. *)
  13979. lt_prog_compiler_can_build_shared_F77=no
  13980. ;;
  13981. esac
  13982. fi
  13983. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  13984. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  13985. #
  13986. # Check to make sure the PIC flag actually works.
  13987. #
  13988. if test -n "$lt_prog_compiler_pic_F77"; then
  13989. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  13990. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  13991. if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  13992. echo $ECHO_N "(cached) $ECHO_C" >&6
  13993. else
  13994. lt_cv_prog_compiler_pic_works_F77=no
  13995. ac_outfile=conftest.$ac_objext
  13996. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13997. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  13998. # Insert the option either (1) after the last *FLAGS variable, or
  13999. # (2) before a word containing "conftest.", or (3) at the end.
  14000. # Note that $ac_compile itself does not contain backslashes and begins
  14001. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14002. # The option is referenced via a variable to avoid confusing sed.
  14003. lt_compile=`echo "$ac_compile" | $SED \
  14004. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14005. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14006. -e 's:$: $lt_compiler_flag:'`
  14007. (eval echo "\"\$as_me:15637: $lt_compile\"" >&5)
  14008. (eval "$lt_compile" 2>conftest.err)
  14009. ac_status=$?
  14010. cat conftest.err >&5
  14011. echo "$as_me:15641: \$? = $ac_status" >&5
  14012. if (exit $ac_status) && test -s "$ac_outfile"; then
  14013. # The compiler can only warn and ignore the option if not recognized
  14014. # So say no if there are warnings other than the usual output.
  14015. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14016. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14017. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14018. lt_cv_prog_compiler_pic_works_F77=yes
  14019. fi
  14020. fi
  14021. $rm conftest*
  14022. fi
  14023. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  14024. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
  14025. if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  14026. case $lt_prog_compiler_pic_F77 in
  14027. "" | " "*) ;;
  14028. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  14029. esac
  14030. else
  14031. lt_prog_compiler_pic_F77=
  14032. lt_prog_compiler_can_build_shared_F77=no
  14033. fi
  14034. fi
  14035. case $host_os in
  14036. # For platforms which do not support PIC, -DPIC is meaningless:
  14037. *djgpp*)
  14038. lt_prog_compiler_pic_F77=
  14039. ;;
  14040. *)
  14041. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  14042. ;;
  14043. esac
  14044. #
  14045. # Check to make sure the static flag actually works.
  14046. #
  14047. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  14048. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14049. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  14050. if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  14051. echo $ECHO_N "(cached) $ECHO_C" >&6
  14052. else
  14053. lt_cv_prog_compiler_static_works_F77=no
  14054. save_LDFLAGS="$LDFLAGS"
  14055. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14056. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14057. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14058. # The linker can only warn and ignore the option if not recognized
  14059. # So say no if there are warnings
  14060. if test -s conftest.err; then
  14061. # Append any errors to the config.log.
  14062. cat conftest.err 1>&5
  14063. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14064. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14065. if diff conftest.exp conftest.er2 >/dev/null; then
  14066. lt_cv_prog_compiler_static_works_F77=yes
  14067. fi
  14068. else
  14069. lt_cv_prog_compiler_static_works_F77=yes
  14070. fi
  14071. fi
  14072. $rm -r conftest*
  14073. LDFLAGS="$save_LDFLAGS"
  14074. fi
  14075. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
  14076. echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
  14077. if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  14078. :
  14079. else
  14080. lt_prog_compiler_static_F77=
  14081. fi
  14082. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14083. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  14084. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  14085. echo $ECHO_N "(cached) $ECHO_C" >&6
  14086. else
  14087. lt_cv_prog_compiler_c_o_F77=no
  14088. $rm -r conftest 2>/dev/null
  14089. mkdir conftest
  14090. cd conftest
  14091. mkdir out
  14092. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14093. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14094. # Insert the option either (1) after the last *FLAGS variable, or
  14095. # (2) before a word containing "conftest.", or (3) at the end.
  14096. # Note that $ac_compile itself does not contain backslashes and begins
  14097. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14098. lt_compile=`echo "$ac_compile" | $SED \
  14099. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14100. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14101. -e 's:$: $lt_compiler_flag:'`
  14102. (eval echo "\"\$as_me:15741: $lt_compile\"" >&5)
  14103. (eval "$lt_compile" 2>out/conftest.err)
  14104. ac_status=$?
  14105. cat out/conftest.err >&5
  14106. echo "$as_me:15745: \$? = $ac_status" >&5
  14107. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14108. then
  14109. # The compiler can only warn and ignore the option if not recognized
  14110. # So say no if there are warnings
  14111. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14112. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14113. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14114. lt_cv_prog_compiler_c_o_F77=yes
  14115. fi
  14116. fi
  14117. chmod u+w . 2>&5
  14118. $rm conftest*
  14119. # SGI C++ compiler will create directory out/ii_files/ for
  14120. # template instantiation
  14121. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14122. $rm out/* && rmdir out
  14123. cd ..
  14124. rmdir conftest
  14125. $rm conftest*
  14126. fi
  14127. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  14128. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  14129. hard_links="nottested"
  14130. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  14131. # do not overwrite the value of need_locks provided by the user
  14132. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14133. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  14134. hard_links=yes
  14135. $rm conftest*
  14136. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14137. touch conftest.a
  14138. ln conftest.a conftest.b 2>&5 || hard_links=no
  14139. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14140. { echo "$as_me:$LINENO: result: $hard_links" >&5
  14141. echo "${ECHO_T}$hard_links" >&6; }
  14142. if test "$hard_links" = no; then
  14143. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14144. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14145. need_locks=warn
  14146. fi
  14147. else
  14148. need_locks=no
  14149. fi
  14150. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14151. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  14152. runpath_var=
  14153. allow_undefined_flag_F77=
  14154. enable_shared_with_static_runtimes_F77=no
  14155. archive_cmds_F77=
  14156. archive_expsym_cmds_F77=
  14157. old_archive_From_new_cmds_F77=
  14158. old_archive_from_expsyms_cmds_F77=
  14159. export_dynamic_flag_spec_F77=
  14160. whole_archive_flag_spec_F77=
  14161. thread_safe_flag_spec_F77=
  14162. hardcode_libdir_flag_spec_F77=
  14163. hardcode_libdir_flag_spec_ld_F77=
  14164. hardcode_libdir_separator_F77=
  14165. hardcode_direct_F77=no
  14166. hardcode_minus_L_F77=no
  14167. hardcode_shlibpath_var_F77=unsupported
  14168. link_all_deplibs_F77=unknown
  14169. hardcode_automatic_F77=no
  14170. module_cmds_F77=
  14171. module_expsym_cmds_F77=
  14172. always_export_symbols_F77=no
  14173. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14174. # include_expsyms should be a list of space-separated symbols to be *always*
  14175. # included in the symbol list
  14176. include_expsyms_F77=
  14177. # exclude_expsyms can be an extended regexp of symbols to exclude
  14178. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14179. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14180. # as well as any symbol that contains `d'.
  14181. exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14182. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14183. # platforms (ab)use it in PIC code, but their linkers get confused if
  14184. # the symbol is explicitly referenced. Since portable code cannot
  14185. # rely on this symbol name, it's probably fine to never include it in
  14186. # preloaded symbol tables.
  14187. # Exclude shared library initialization/finalization symbols.
  14188. extract_expsyms_cmds=
  14189. # Just being paranoid about ensuring that cc_basename is set.
  14190. for cc_temp in $compiler""; do
  14191. case $cc_temp in
  14192. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14193. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14194. \-*) ;;
  14195. *) break;;
  14196. esac
  14197. done
  14198. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14199. case $host_os in
  14200. cygwin* | mingw* | pw32*)
  14201. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14202. # When not using gcc, we currently assume that we are using
  14203. # Microsoft Visual C++.
  14204. if test "$GCC" != yes; then
  14205. with_gnu_ld=no
  14206. fi
  14207. ;;
  14208. interix*)
  14209. # we just hope/assume this is gcc and not c89 (= MSVC++)
  14210. with_gnu_ld=yes
  14211. ;;
  14212. openbsd*)
  14213. with_gnu_ld=no
  14214. ;;
  14215. esac
  14216. ld_shlibs_F77=yes
  14217. if test "$with_gnu_ld" = yes; then
  14218. # If archive_cmds runs LD, not CC, wlarc should be empty
  14219. wlarc='${wl}'
  14220. # Set some defaults for GNU ld with shared library support. These
  14221. # are reset later if shared libraries are not supported. Putting them
  14222. # here allows them to be overridden if necessary.
  14223. runpath_var=LD_RUN_PATH
  14224. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  14225. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  14226. # ancient GNU ld didn't support --whole-archive et. al.
  14227. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14228. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14229. else
  14230. whole_archive_flag_spec_F77=
  14231. fi
  14232. supports_anon_versioning=no
  14233. case `$LD -v 2>/dev/null` in
  14234. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14235. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14236. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14237. *\ 2.11.*) ;; # other 2.11 versions
  14238. *) supports_anon_versioning=yes ;;
  14239. esac
  14240. # See if GNU ld supports shared libraries.
  14241. case $host_os in
  14242. aix[3-9]*)
  14243. # On AIX/PPC, the GNU linker is very broken
  14244. if test "$host_cpu" != ia64; then
  14245. ld_shlibs_F77=no
  14246. cat <<EOF 1>&2
  14247. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14248. *** to be unable to reliably create shared libraries on AIX.
  14249. *** Therefore, libtool is disabling shared libraries support. If you
  14250. *** really care for shared libraries, you may want to modify your PATH
  14251. *** so that a non-GNU linker is found, and then restart.
  14252. EOF
  14253. fi
  14254. ;;
  14255. amigaos*)
  14256. 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)'
  14257. hardcode_libdir_flag_spec_F77='-L$libdir'
  14258. hardcode_minus_L_F77=yes
  14259. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  14260. # that the semantics of dynamic libraries on AmigaOS, at least up
  14261. # to version 4, is to share data among multiple programs linked
  14262. # with the same dynamic library. Since this doesn't match the
  14263. # behavior of shared libraries on other platforms, we can't use
  14264. # them.
  14265. ld_shlibs_F77=no
  14266. ;;
  14267. beos*)
  14268. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14269. allow_undefined_flag_F77=unsupported
  14270. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  14271. # support --undefined. This deserves some investigation. FIXME
  14272. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14273. else
  14274. ld_shlibs_F77=no
  14275. fi
  14276. ;;
  14277. cygwin* | mingw* | pw32*)
  14278. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  14279. # as there is no search path for DLLs.
  14280. hardcode_libdir_flag_spec_F77='-L$libdir'
  14281. allow_undefined_flag_F77=unsupported
  14282. always_export_symbols_F77=no
  14283. enable_shared_with_static_runtimes_F77=yes
  14284. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | so