/lib/libmpeg2/configure

http://github.com/xbmc/xbmc · Shell · 29026 lines · 24671 code · 2017 blank · 2338 comment · 1619 complexity · 20583c37693bfec40f6b26caf2db0443 MD5 · raw file

  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/.*[ ]//'\'' | sort | uniq > $export_symbols'
  14285. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14286. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14287. # If the export-symbols file already is a .def file (1st line
  14288. # is EXPORTS), use it as is; otherwise, prepend...
  14289. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14290. cp $export_symbols $output_objdir/$soname.def;
  14291. else
  14292. echo EXPORTS > $output_objdir/$soname.def;
  14293. cat $export_symbols >> $output_objdir/$soname.def;
  14294. fi~
  14295. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14296. else
  14297. ld_shlibs_F77=no
  14298. fi
  14299. ;;
  14300. interix[3-9]*)
  14301. hardcode_direct_F77=no
  14302. hardcode_shlibpath_var_F77=no
  14303. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14304. export_dynamic_flag_spec_F77='${wl}-E'
  14305. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14306. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14307. # default) and relocated if they conflict, which is a slow very memory
  14308. # consuming and fragmenting process. To avoid this, we pick a random,
  14309. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14310. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14311. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  14312. archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  14313. ;;
  14314. gnu* | linux* | k*bsd*-gnu)
  14315. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14316. tmp_addflag=
  14317. case $cc_basename,$host_cpu in
  14318. pgcc*) # Portland Group C compiler
  14319. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  14320. tmp_addflag=' $pic_flag'
  14321. ;;
  14322. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14323. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  14324. tmp_addflag=' $pic_flag -Mnomain' ;;
  14325. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14326. tmp_addflag=' -i_dynamic' ;;
  14327. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14328. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14329. ifc* | ifort*) # Intel Fortran compiler
  14330. tmp_addflag=' -nofor_main' ;;
  14331. esac
  14332. case `$CC -V 2>&1 | sed 5q` in
  14333. *Sun\ C*) # Sun C 5.9
  14334. whole_archive_flag_spec_F77='${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'
  14335. tmp_sharedflag='-G' ;;
  14336. *Sun\ F*) # Sun Fortran 8.3
  14337. tmp_sharedflag='-G' ;;
  14338. *)
  14339. tmp_sharedflag='-shared' ;;
  14340. esac
  14341. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14342. if test $supports_anon_versioning = yes; then
  14343. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  14344. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14345. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14346. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14347. fi
  14348. link_all_deplibs_F77=no
  14349. else
  14350. ld_shlibs_F77=no
  14351. fi
  14352. ;;
  14353. netbsd* | netbsdelf*-gnu)
  14354. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14355. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14356. wlarc=
  14357. else
  14358. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14359. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14360. fi
  14361. ;;
  14362. solaris*)
  14363. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14364. ld_shlibs_F77=no
  14365. cat <<EOF 1>&2
  14366. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14367. *** create shared libraries on Solaris systems. Therefore, libtool
  14368. *** is disabling shared libraries support. We urge you to upgrade GNU
  14369. *** binutils to release 2.9.1 or newer. Another option is to modify
  14370. *** your PATH or compiler configuration so that the native linker is
  14371. *** used, and then restart.
  14372. EOF
  14373. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14374. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14375. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14376. else
  14377. ld_shlibs_F77=no
  14378. fi
  14379. ;;
  14380. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14381. case `$LD -v 2>&1` in
  14382. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  14383. ld_shlibs_F77=no
  14384. cat <<_LT_EOF 1>&2
  14385. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14386. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14387. *** is disabling shared libraries support. We urge you to upgrade GNU
  14388. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14389. *** your PATH or compiler configuration so that the native linker is
  14390. *** used, and then restart.
  14391. _LT_EOF
  14392. ;;
  14393. *)
  14394. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14395. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14396. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14397. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14398. else
  14399. ld_shlibs_F77=no
  14400. fi
  14401. ;;
  14402. esac
  14403. ;;
  14404. sunos4*)
  14405. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14406. wlarc=
  14407. hardcode_direct_F77=yes
  14408. hardcode_shlibpath_var_F77=no
  14409. ;;
  14410. *)
  14411. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14412. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14413. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14414. else
  14415. ld_shlibs_F77=no
  14416. fi
  14417. ;;
  14418. esac
  14419. if test "$ld_shlibs_F77" = no; then
  14420. runpath_var=
  14421. hardcode_libdir_flag_spec_F77=
  14422. export_dynamic_flag_spec_F77=
  14423. whole_archive_flag_spec_F77=
  14424. fi
  14425. else
  14426. # PORTME fill in a description of your system's linker (not GNU ld)
  14427. case $host_os in
  14428. aix3*)
  14429. allow_undefined_flag_F77=unsupported
  14430. always_export_symbols_F77=yes
  14431. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  14432. # Note: this linker hardcodes the directories in LIBPATH if there
  14433. # are no directories specified by -L.
  14434. hardcode_minus_L_F77=yes
  14435. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14436. # Neither direct hardcoding nor static linking is supported with a
  14437. # broken collect2.
  14438. hardcode_direct_F77=unsupported
  14439. fi
  14440. ;;
  14441. aix[4-9]*)
  14442. if test "$host_cpu" = ia64; then
  14443. # On IA64, the linker does run time linking by default, so we don't
  14444. # have to do anything special.
  14445. aix_use_runtimelinking=no
  14446. exp_sym_flag='-Bexport'
  14447. no_entry_flag=""
  14448. else
  14449. # If we're using GNU nm, then we don't want the "-C" option.
  14450. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14451. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14452. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14453. else
  14454. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14455. fi
  14456. aix_use_runtimelinking=no
  14457. # Test if we are trying to use run time linking or normal
  14458. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14459. # need to do runtime linking.
  14460. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  14461. for ld_flag in $LDFLAGS; do
  14462. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14463. aix_use_runtimelinking=yes
  14464. break
  14465. fi
  14466. done
  14467. ;;
  14468. esac
  14469. exp_sym_flag='-bexport'
  14470. no_entry_flag='-bnoentry'
  14471. fi
  14472. # When large executables or shared objects are built, AIX ld can
  14473. # have problems creating the table of contents. If linking a library
  14474. # or program results in "error TOC overflow" add -mminimal-toc to
  14475. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14476. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14477. archive_cmds_F77=''
  14478. hardcode_direct_F77=yes
  14479. hardcode_libdir_separator_F77=':'
  14480. link_all_deplibs_F77=yes
  14481. if test "$GCC" = yes; then
  14482. case $host_os in aix4.[012]|aix4.[012].*)
  14483. # We only want to do this on AIX 4.2 and lower, the check
  14484. # below for broken collect2 doesn't work under 4.3+
  14485. collect2name=`${CC} -print-prog-name=collect2`
  14486. if test -f "$collect2name" && \
  14487. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14488. then
  14489. # We have reworked collect2
  14490. :
  14491. else
  14492. # We have old collect2
  14493. hardcode_direct_F77=unsupported
  14494. # It fails to find uninstalled libraries when the uninstalled
  14495. # path is not listed in the libpath. Setting hardcode_minus_L
  14496. # to unsupported forces relinking
  14497. hardcode_minus_L_F77=yes
  14498. hardcode_libdir_flag_spec_F77='-L$libdir'
  14499. hardcode_libdir_separator_F77=
  14500. fi
  14501. ;;
  14502. esac
  14503. shared_flag='-shared'
  14504. if test "$aix_use_runtimelinking" = yes; then
  14505. shared_flag="$shared_flag "'${wl}-G'
  14506. fi
  14507. else
  14508. # not using gcc
  14509. if test "$host_cpu" = ia64; then
  14510. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14511. # chokes on -Wl,-G. The following line is correct:
  14512. shared_flag='-G'
  14513. else
  14514. if test "$aix_use_runtimelinking" = yes; then
  14515. shared_flag='${wl}-G'
  14516. else
  14517. shared_flag='${wl}-bM:SRE'
  14518. fi
  14519. fi
  14520. fi
  14521. # It seems that -bexpall does not export symbols beginning with
  14522. # underscore (_), so it is better to generate a list of symbols to export.
  14523. always_export_symbols_F77=yes
  14524. if test "$aix_use_runtimelinking" = yes; then
  14525. # Warning - without using the other runtime loading flags (-brtl),
  14526. # -berok will link without error, but may produce a broken library.
  14527. allow_undefined_flag_F77='-berok'
  14528. # Determine the default libpath from the value encoded in an empty executable.
  14529. cat >conftest.$ac_ext <<_ACEOF
  14530. program main
  14531. end
  14532. _ACEOF
  14533. rm -f conftest.$ac_objext conftest$ac_exeext
  14534. if { (ac_try="$ac_link"
  14535. case "(($ac_try" in
  14536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14537. *) ac_try_echo=$ac_try;;
  14538. esac
  14539. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14540. (eval "$ac_link") 2>conftest.er1
  14541. ac_status=$?
  14542. grep -v '^ *+' conftest.er1 >conftest.err
  14543. rm -f conftest.er1
  14544. cat conftest.err >&5
  14545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14546. (exit $ac_status); } && {
  14547. test -z "$ac_f77_werror_flag" ||
  14548. test ! -s conftest.err
  14549. } && test -s conftest$ac_exeext &&
  14550. $as_test_x conftest$ac_exeext; then
  14551. lt_aix_libpath_sed='
  14552. /Import File Strings/,/^$/ {
  14553. /^0/ {
  14554. s/^0 *\(.*\)$/\1/
  14555. p
  14556. }
  14557. }'
  14558. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14559. # Check for a 64-bit object if we didn't find anything.
  14560. if test -z "$aix_libpath"; then
  14561. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14562. fi
  14563. else
  14564. echo "$as_me: failed program was:" >&5
  14565. sed 's/^/| /' conftest.$ac_ext >&5
  14566. fi
  14567. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14568. conftest$ac_exeext conftest.$ac_ext
  14569. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14570. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  14571. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  14572. else
  14573. if test "$host_cpu" = ia64; then
  14574. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  14575. allow_undefined_flag_F77="-z nodefs"
  14576. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  14577. else
  14578. # Determine the default libpath from the value encoded in an empty executable.
  14579. cat >conftest.$ac_ext <<_ACEOF
  14580. program main
  14581. end
  14582. _ACEOF
  14583. rm -f conftest.$ac_objext conftest$ac_exeext
  14584. if { (ac_try="$ac_link"
  14585. case "(($ac_try" in
  14586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14587. *) ac_try_echo=$ac_try;;
  14588. esac
  14589. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14590. (eval "$ac_link") 2>conftest.er1
  14591. ac_status=$?
  14592. grep -v '^ *+' conftest.er1 >conftest.err
  14593. rm -f conftest.er1
  14594. cat conftest.err >&5
  14595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14596. (exit $ac_status); } && {
  14597. test -z "$ac_f77_werror_flag" ||
  14598. test ! -s conftest.err
  14599. } && test -s conftest$ac_exeext &&
  14600. $as_test_x conftest$ac_exeext; then
  14601. lt_aix_libpath_sed='
  14602. /Import File Strings/,/^$/ {
  14603. /^0/ {
  14604. s/^0 *\(.*\)$/\1/
  14605. p
  14606. }
  14607. }'
  14608. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14609. # Check for a 64-bit object if we didn't find anything.
  14610. if test -z "$aix_libpath"; then
  14611. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14612. fi
  14613. else
  14614. echo "$as_me: failed program was:" >&5
  14615. sed 's/^/| /' conftest.$ac_ext >&5
  14616. fi
  14617. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14618. conftest$ac_exeext conftest.$ac_ext
  14619. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14620. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  14621. # Warning - without using the other run time loading flags,
  14622. # -berok will link without error, but may produce a broken library.
  14623. no_undefined_flag_F77=' ${wl}-bernotok'
  14624. allow_undefined_flag_F77=' ${wl}-berok'
  14625. # Exported symbols can be pulled into shared objects from archives
  14626. whole_archive_flag_spec_F77='$convenience'
  14627. archive_cmds_need_lc_F77=yes
  14628. # This is similar to how AIX traditionally builds its shared libraries.
  14629. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  14630. fi
  14631. fi
  14632. ;;
  14633. amigaos*)
  14634. 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)'
  14635. hardcode_libdir_flag_spec_F77='-L$libdir'
  14636. hardcode_minus_L_F77=yes
  14637. # see comment about different semantics on the GNU ld section
  14638. ld_shlibs_F77=no
  14639. ;;
  14640. bsdi[45]*)
  14641. export_dynamic_flag_spec_F77=-rdynamic
  14642. ;;
  14643. cygwin* | mingw* | pw32*)
  14644. # When not using gcc, we currently assume that we are using
  14645. # Microsoft Visual C++.
  14646. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14647. # no search path for DLLs.
  14648. hardcode_libdir_flag_spec_F77=' '
  14649. allow_undefined_flag_F77=unsupported
  14650. # Tell ltmain to make .lib files, not .a files.
  14651. libext=lib
  14652. # Tell ltmain to make .dll files, not .so files.
  14653. shrext_cmds=".dll"
  14654. # FIXME: Setting linknames here is a bad hack.
  14655. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14656. # The linker will automatically build a .lib file if we build a DLL.
  14657. old_archive_From_new_cmds_F77='true'
  14658. # FIXME: Should let the user specify the lib program.
  14659. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  14660. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  14661. enable_shared_with_static_runtimes_F77=yes
  14662. ;;
  14663. darwin* | rhapsody*)
  14664. case $host_os in
  14665. rhapsody* | darwin1.[012])
  14666. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  14667. ;;
  14668. *) # Darwin 1.3 on
  14669. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14670. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14671. else
  14672. case ${MACOSX_DEPLOYMENT_TARGET} in
  14673. 10.[012])
  14674. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14675. ;;
  14676. 10.*)
  14677. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  14678. ;;
  14679. esac
  14680. fi
  14681. ;;
  14682. esac
  14683. archive_cmds_need_lc_F77=no
  14684. hardcode_direct_F77=no
  14685. hardcode_automatic_F77=yes
  14686. hardcode_shlibpath_var_F77=unsupported
  14687. whole_archive_flag_spec_F77=''
  14688. link_all_deplibs_F77=yes
  14689. if test "$GCC" = yes ; then
  14690. output_verbose_link_cmd='echo'
  14691. archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  14692. module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  14693. archive_expsym_cmds_F77="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}"
  14694. module_expsym_cmds_F77="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}"
  14695. else
  14696. case $cc_basename in
  14697. xlc*)
  14698. output_verbose_link_cmd='echo'
  14699. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  14700. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14701. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14702. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14703. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14704. ;;
  14705. *)
  14706. ld_shlibs_F77=no
  14707. ;;
  14708. esac
  14709. fi
  14710. ;;
  14711. dgux*)
  14712. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14713. hardcode_libdir_flag_spec_F77='-L$libdir'
  14714. hardcode_shlibpath_var_F77=no
  14715. ;;
  14716. freebsd1*)
  14717. ld_shlibs_F77=no
  14718. ;;
  14719. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14720. # support. Future versions do this automatically, but an explicit c++rt0.o
  14721. # does not break anything, and helps significantly (at the cost of a little
  14722. # extra space).
  14723. freebsd2.2*)
  14724. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14725. hardcode_libdir_flag_spec_F77='-R$libdir'
  14726. hardcode_direct_F77=yes
  14727. hardcode_shlibpath_var_F77=no
  14728. ;;
  14729. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14730. freebsd2*)
  14731. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14732. hardcode_direct_F77=yes
  14733. hardcode_minus_L_F77=yes
  14734. hardcode_shlibpath_var_F77=no
  14735. ;;
  14736. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14737. freebsd* | dragonfly*)
  14738. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14739. hardcode_libdir_flag_spec_F77='-R$libdir'
  14740. hardcode_direct_F77=yes
  14741. hardcode_shlibpath_var_F77=no
  14742. ;;
  14743. hpux9*)
  14744. if test "$GCC" = yes; then
  14745. archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  14746. else
  14747. archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  14748. fi
  14749. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  14750. hardcode_libdir_separator_F77=:
  14751. hardcode_direct_F77=yes
  14752. # hardcode_minus_L: Not really in the search PATH,
  14753. # but as the default location of the library.
  14754. hardcode_minus_L_F77=yes
  14755. export_dynamic_flag_spec_F77='${wl}-E'
  14756. ;;
  14757. hpux10*)
  14758. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14759. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14760. else
  14761. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14762. fi
  14763. if test "$with_gnu_ld" = no; then
  14764. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  14765. hardcode_libdir_separator_F77=:
  14766. hardcode_direct_F77=yes
  14767. export_dynamic_flag_spec_F77='${wl}-E'
  14768. # hardcode_minus_L: Not really in the search PATH,
  14769. # but as the default location of the library.
  14770. hardcode_minus_L_F77=yes
  14771. fi
  14772. ;;
  14773. hpux11*)
  14774. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14775. case $host_cpu in
  14776. hppa*64*)
  14777. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14778. ;;
  14779. ia64*)
  14780. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14781. ;;
  14782. *)
  14783. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14784. ;;
  14785. esac
  14786. else
  14787. case $host_cpu in
  14788. hppa*64*)
  14789. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14790. ;;
  14791. ia64*)
  14792. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14793. ;;
  14794. *)
  14795. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14796. ;;
  14797. esac
  14798. fi
  14799. if test "$with_gnu_ld" = no; then
  14800. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  14801. hardcode_libdir_separator_F77=:
  14802. case $host_cpu in
  14803. hppa*64*|ia64*)
  14804. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  14805. hardcode_direct_F77=no
  14806. hardcode_shlibpath_var_F77=no
  14807. ;;
  14808. *)
  14809. hardcode_direct_F77=yes
  14810. export_dynamic_flag_spec_F77='${wl}-E'
  14811. # hardcode_minus_L: Not really in the search PATH,
  14812. # but as the default location of the library.
  14813. hardcode_minus_L_F77=yes
  14814. ;;
  14815. esac
  14816. fi
  14817. ;;
  14818. irix5* | irix6* | nonstopux*)
  14819. if test "$GCC" = yes; then
  14820. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14821. else
  14822. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14823. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  14824. fi
  14825. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14826. hardcode_libdir_separator_F77=:
  14827. link_all_deplibs_F77=yes
  14828. ;;
  14829. netbsd* | netbsdelf*-gnu)
  14830. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14831. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14832. else
  14833. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14834. fi
  14835. hardcode_libdir_flag_spec_F77='-R$libdir'
  14836. hardcode_direct_F77=yes
  14837. hardcode_shlibpath_var_F77=no
  14838. ;;
  14839. newsos6)
  14840. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14841. hardcode_direct_F77=yes
  14842. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14843. hardcode_libdir_separator_F77=:
  14844. hardcode_shlibpath_var_F77=no
  14845. ;;
  14846. openbsd*)
  14847. if test -f /usr/libexec/ld.so; then
  14848. hardcode_direct_F77=yes
  14849. hardcode_shlibpath_var_F77=no
  14850. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14851. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14852. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14853. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14854. export_dynamic_flag_spec_F77='${wl}-E'
  14855. else
  14856. case $host_os in
  14857. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14858. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14859. hardcode_libdir_flag_spec_F77='-R$libdir'
  14860. ;;
  14861. *)
  14862. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14863. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14864. ;;
  14865. esac
  14866. fi
  14867. else
  14868. ld_shlibs_F77=no
  14869. fi
  14870. ;;
  14871. os2*)
  14872. hardcode_libdir_flag_spec_F77='-L$libdir'
  14873. hardcode_minus_L_F77=yes
  14874. allow_undefined_flag_F77=unsupported
  14875. archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  14876. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14877. ;;
  14878. osf3*)
  14879. if test "$GCC" = yes; then
  14880. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  14881. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14882. else
  14883. allow_undefined_flag_F77=' -expect_unresolved \*'
  14884. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14885. fi
  14886. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14887. hardcode_libdir_separator_F77=:
  14888. ;;
  14889. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14890. if test "$GCC" = yes; then
  14891. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  14892. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14893. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14894. else
  14895. allow_undefined_flag_F77=' -expect_unresolved \*'
  14896. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14897. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  14898. $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'
  14899. # Both c and cxx compiler support -rpath directly
  14900. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  14901. fi
  14902. hardcode_libdir_separator_F77=:
  14903. ;;
  14904. solaris*)
  14905. no_undefined_flag_F77=' -z text'
  14906. if test "$GCC" = yes; then
  14907. wlarc='${wl}'
  14908. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14909. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14910. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14911. else
  14912. wlarc=''
  14913. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14914. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14915. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14916. fi
  14917. hardcode_libdir_flag_spec_F77='-R$libdir'
  14918. hardcode_shlibpath_var_F77=no
  14919. case $host_os in
  14920. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14921. *)
  14922. # The compiler driver will combine and reorder linker options,
  14923. # but understands `-z linker_flag'. GCC discards it without `$wl',
  14924. # but is careful enough not to reorder.
  14925. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14926. if test "$GCC" = yes; then
  14927. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  14928. else
  14929. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  14930. fi
  14931. ;;
  14932. esac
  14933. link_all_deplibs_F77=yes
  14934. ;;
  14935. sunos4*)
  14936. if test "x$host_vendor" = xsequent; then
  14937. # Use $CC to link under sequent, because it throws in some extra .o
  14938. # files that make .init and .fini sections work.
  14939. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14940. else
  14941. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14942. fi
  14943. hardcode_libdir_flag_spec_F77='-L$libdir'
  14944. hardcode_direct_F77=yes
  14945. hardcode_minus_L_F77=yes
  14946. hardcode_shlibpath_var_F77=no
  14947. ;;
  14948. sysv4)
  14949. case $host_vendor in
  14950. sni)
  14951. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14952. hardcode_direct_F77=yes # is this really true???
  14953. ;;
  14954. siemens)
  14955. ## LD is ld it makes a PLAMLIB
  14956. ## CC just makes a GrossModule.
  14957. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14958. reload_cmds_F77='$CC -r -o $output$reload_objs'
  14959. hardcode_direct_F77=no
  14960. ;;
  14961. motorola)
  14962. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14963. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  14964. ;;
  14965. esac
  14966. runpath_var='LD_RUN_PATH'
  14967. hardcode_shlibpath_var_F77=no
  14968. ;;
  14969. sysv4.3*)
  14970. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14971. hardcode_shlibpath_var_F77=no
  14972. export_dynamic_flag_spec_F77='-Bexport'
  14973. ;;
  14974. sysv4*MP*)
  14975. if test -d /usr/nec; then
  14976. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14977. hardcode_shlibpath_var_F77=no
  14978. runpath_var=LD_RUN_PATH
  14979. hardcode_runpath_var=yes
  14980. ld_shlibs_F77=yes
  14981. fi
  14982. ;;
  14983. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14984. no_undefined_flag_F77='${wl}-z,text'
  14985. archive_cmds_need_lc_F77=no
  14986. hardcode_shlibpath_var_F77=no
  14987. runpath_var='LD_RUN_PATH'
  14988. if test "$GCC" = yes; then
  14989. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14990. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14991. else
  14992. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14993. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14994. fi
  14995. ;;
  14996. sysv5* | sco3.2v5* | sco5v6*)
  14997. # Note: We can NOT use -z defs as we might desire, because we do not
  14998. # link with -lc, and that would cause any symbols used from libc to
  14999. # always be unresolved, which means just about no library would
  15000. # ever link correctly. If we're not using GNU ld we use -z text
  15001. # though, which does catch some bad symbols but isn't as heavy-handed
  15002. # as -z defs.
  15003. no_undefined_flag_F77='${wl}-z,text'
  15004. allow_undefined_flag_F77='${wl}-z,nodefs'
  15005. archive_cmds_need_lc_F77=no
  15006. hardcode_shlibpath_var_F77=no
  15007. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15008. hardcode_libdir_separator_F77=':'
  15009. link_all_deplibs_F77=yes
  15010. export_dynamic_flag_spec_F77='${wl}-Bexport'
  15011. runpath_var='LD_RUN_PATH'
  15012. if test "$GCC" = yes; then
  15013. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15014. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15015. else
  15016. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15017. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15018. fi
  15019. ;;
  15020. uts4*)
  15021. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15022. hardcode_libdir_flag_spec_F77='-L$libdir'
  15023. hardcode_shlibpath_var_F77=no
  15024. ;;
  15025. *)
  15026. ld_shlibs_F77=no
  15027. ;;
  15028. esac
  15029. fi
  15030. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  15031. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  15032. test "$ld_shlibs_F77" = no && can_build_shared=no
  15033. #
  15034. # Do we need to explicitly link libc?
  15035. #
  15036. case "x$archive_cmds_need_lc_F77" in
  15037. x|xyes)
  15038. # Assume -lc should be added
  15039. archive_cmds_need_lc_F77=yes
  15040. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15041. case $archive_cmds_F77 in
  15042. *'~'*)
  15043. # FIXME: we may have to deal with multi-command sequences.
  15044. ;;
  15045. '$CC '*)
  15046. # Test whether the compiler implicitly links with -lc since on some
  15047. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15048. # to ld, don't add -lc before -lgcc.
  15049. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15050. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  15051. $rm conftest*
  15052. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15053. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15054. (eval $ac_compile) 2>&5
  15055. ac_status=$?
  15056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15057. (exit $ac_status); } 2>conftest.err; then
  15058. soname=conftest
  15059. lib=conftest
  15060. libobjs=conftest.$ac_objext
  15061. deplibs=
  15062. wl=$lt_prog_compiler_wl_F77
  15063. pic_flag=$lt_prog_compiler_pic_F77
  15064. compiler_flags=-v
  15065. linker_flags=-v
  15066. verstring=
  15067. output_objdir=.
  15068. libname=conftest
  15069. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  15070. allow_undefined_flag_F77=
  15071. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15072. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15073. ac_status=$?
  15074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15075. (exit $ac_status); }
  15076. then
  15077. archive_cmds_need_lc_F77=no
  15078. else
  15079. archive_cmds_need_lc_F77=yes
  15080. fi
  15081. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  15082. else
  15083. cat conftest.err 1>&5
  15084. fi
  15085. $rm conftest*
  15086. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  15087. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  15088. ;;
  15089. esac
  15090. fi
  15091. ;;
  15092. esac
  15093. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15094. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  15095. library_names_spec=
  15096. libname_spec='lib$name'
  15097. soname_spec=
  15098. shrext_cmds=".so"
  15099. postinstall_cmds=
  15100. postuninstall_cmds=
  15101. finish_cmds=
  15102. finish_eval=
  15103. shlibpath_var=
  15104. shlibpath_overrides_runpath=unknown
  15105. version_type=none
  15106. dynamic_linker="$host_os ld.so"
  15107. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15108. need_lib_prefix=unknown
  15109. hardcode_into_libs=no
  15110. # when you set need_version to no, make sure it does not cause -set_version
  15111. # flags to be left without arguments
  15112. need_version=unknown
  15113. case $host_os in
  15114. aix3*)
  15115. version_type=linux
  15116. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15117. shlibpath_var=LIBPATH
  15118. # AIX 3 has no versioning support, so we append a major version to the name.
  15119. soname_spec='${libname}${release}${shared_ext}$major'
  15120. ;;
  15121. aix[4-9]*)
  15122. version_type=linux
  15123. need_lib_prefix=no
  15124. need_version=no
  15125. hardcode_into_libs=yes
  15126. if test "$host_cpu" = ia64; then
  15127. # AIX 5 supports IA64
  15128. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15129. shlibpath_var=LD_LIBRARY_PATH
  15130. else
  15131. # With GCC up to 2.95.x, collect2 would create an import file
  15132. # for dependence libraries. The import file would start with
  15133. # the line `#! .'. This would cause the generated library to
  15134. # depend on `.', always an invalid library. This was fixed in
  15135. # development snapshots of GCC prior to 3.0.
  15136. case $host_os in
  15137. aix4 | aix4.[01] | aix4.[01].*)
  15138. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15139. echo ' yes '
  15140. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15141. :
  15142. else
  15143. can_build_shared=no
  15144. fi
  15145. ;;
  15146. esac
  15147. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15148. # soname into executable. Probably we can add versioning support to
  15149. # collect2, so additional links can be useful in future.
  15150. if test "$aix_use_runtimelinking" = yes; then
  15151. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15152. # instead of lib<name>.a to let people know that these are not
  15153. # typical AIX shared libraries.
  15154. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15155. else
  15156. # We preserve .a as extension for shared libraries through AIX4.2
  15157. # and later when we are not doing run time linking.
  15158. library_names_spec='${libname}${release}.a $libname.a'
  15159. soname_spec='${libname}${release}${shared_ext}$major'
  15160. fi
  15161. shlibpath_var=LIBPATH
  15162. fi
  15163. ;;
  15164. amigaos*)
  15165. library_names_spec='$libname.ixlibrary $libname.a'
  15166. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15167. 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'
  15168. ;;
  15169. beos*)
  15170. library_names_spec='${libname}${shared_ext}'
  15171. dynamic_linker="$host_os ld.so"
  15172. shlibpath_var=LIBRARY_PATH
  15173. ;;
  15174. bsdi[45]*)
  15175. version_type=linux
  15176. need_version=no
  15177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15178. soname_spec='${libname}${release}${shared_ext}$major'
  15179. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15180. shlibpath_var=LD_LIBRARY_PATH
  15181. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15182. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15183. # the default ld.so.conf also contains /usr/contrib/lib and
  15184. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15185. # libtool to hard-code these into programs
  15186. ;;
  15187. cygwin* | mingw* | pw32*)
  15188. version_type=windows
  15189. shrext_cmds=".dll"
  15190. need_version=no
  15191. need_lib_prefix=no
  15192. case $GCC,$host_os in
  15193. yes,cygwin* | yes,mingw* | yes,pw32*)
  15194. library_names_spec='$libname.dll.a'
  15195. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15196. postinstall_cmds='base_file=`basename \${file}`~
  15197. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15198. dldir=$destdir/`dirname \$dlpath`~
  15199. test -d \$dldir || mkdir -p \$dldir~
  15200. $install_prog $dir/$dlname \$dldir/$dlname~
  15201. chmod a+x \$dldir/$dlname'
  15202. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15203. dlpath=$dir/\$dldll~
  15204. $rm \$dlpath'
  15205. shlibpath_overrides_runpath=yes
  15206. case $host_os in
  15207. cygwin*)
  15208. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15209. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15210. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15211. ;;
  15212. mingw*)
  15213. # MinGW DLLs use traditional 'lib' prefix
  15214. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15215. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15216. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15217. # It is most probably a Windows format PATH printed by
  15218. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15219. # path with ; separators, and with drive letters. We can handle the
  15220. # drive letters (cygwin fileutils understands them), so leave them,
  15221. # especially as we might pass files found there to a mingw objdump,
  15222. # which wouldn't understand a cygwinified path. Ahh.
  15223. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15224. else
  15225. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15226. fi
  15227. ;;
  15228. pw32*)
  15229. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15230. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15231. ;;
  15232. esac
  15233. ;;
  15234. *)
  15235. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15236. ;;
  15237. esac
  15238. dynamic_linker='Win32 ld.exe'
  15239. # FIXME: first we should search . and the directory the executable is in
  15240. shlibpath_var=PATH
  15241. ;;
  15242. darwin* | rhapsody*)
  15243. dynamic_linker="$host_os dyld"
  15244. version_type=darwin
  15245. need_lib_prefix=no
  15246. need_version=no
  15247. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15248. soname_spec='${libname}${release}${major}$shared_ext'
  15249. shlibpath_overrides_runpath=yes
  15250. shlibpath_var=DYLD_LIBRARY_PATH
  15251. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15252. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15253. ;;
  15254. dgux*)
  15255. version_type=linux
  15256. need_lib_prefix=no
  15257. need_version=no
  15258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15259. soname_spec='${libname}${release}${shared_ext}$major'
  15260. shlibpath_var=LD_LIBRARY_PATH
  15261. ;;
  15262. freebsd1*)
  15263. dynamic_linker=no
  15264. ;;
  15265. freebsd* | dragonfly*)
  15266. # DragonFly does not have aout. When/if they implement a new
  15267. # versioning mechanism, adjust this.
  15268. if test -x /usr/bin/objformat; then
  15269. objformat=`/usr/bin/objformat`
  15270. else
  15271. case $host_os in
  15272. freebsd[123]*) objformat=aout ;;
  15273. *) objformat=elf ;;
  15274. esac
  15275. fi
  15276. version_type=freebsd-$objformat
  15277. case $version_type in
  15278. freebsd-elf*)
  15279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15280. need_version=no
  15281. need_lib_prefix=no
  15282. ;;
  15283. freebsd-*)
  15284. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15285. need_version=yes
  15286. ;;
  15287. esac
  15288. shlibpath_var=LD_LIBRARY_PATH
  15289. case $host_os in
  15290. freebsd2*)
  15291. shlibpath_overrides_runpath=yes
  15292. ;;
  15293. freebsd3.[01]* | freebsdelf3.[01]*)
  15294. shlibpath_overrides_runpath=yes
  15295. hardcode_into_libs=yes
  15296. ;;
  15297. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15298. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15299. shlibpath_overrides_runpath=no
  15300. hardcode_into_libs=yes
  15301. ;;
  15302. *) # from 4.6 on, and DragonFly
  15303. shlibpath_overrides_runpath=yes
  15304. hardcode_into_libs=yes
  15305. ;;
  15306. esac
  15307. ;;
  15308. gnu*)
  15309. version_type=linux
  15310. need_lib_prefix=no
  15311. need_version=no
  15312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15313. soname_spec='${libname}${release}${shared_ext}$major'
  15314. shlibpath_var=LD_LIBRARY_PATH
  15315. hardcode_into_libs=yes
  15316. ;;
  15317. hpux9* | hpux10* | hpux11*)
  15318. # Give a soname corresponding to the major version so that dld.sl refuses to
  15319. # link against other versions.
  15320. version_type=sunos
  15321. need_lib_prefix=no
  15322. need_version=no
  15323. case $host_cpu in
  15324. ia64*)
  15325. shrext_cmds='.so'
  15326. hardcode_into_libs=yes
  15327. dynamic_linker="$host_os dld.so"
  15328. shlibpath_var=LD_LIBRARY_PATH
  15329. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15331. soname_spec='${libname}${release}${shared_ext}$major'
  15332. if test "X$HPUX_IA64_MODE" = X32; then
  15333. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15334. else
  15335. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15336. fi
  15337. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15338. ;;
  15339. hppa*64*)
  15340. shrext_cmds='.sl'
  15341. hardcode_into_libs=yes
  15342. dynamic_linker="$host_os dld.sl"
  15343. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15344. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15346. soname_spec='${libname}${release}${shared_ext}$major'
  15347. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15348. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15349. ;;
  15350. *)
  15351. shrext_cmds='.sl'
  15352. dynamic_linker="$host_os dld.sl"
  15353. shlibpath_var=SHLIB_PATH
  15354. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15356. soname_spec='${libname}${release}${shared_ext}$major'
  15357. ;;
  15358. esac
  15359. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15360. postinstall_cmds='chmod 555 $lib'
  15361. ;;
  15362. interix[3-9]*)
  15363. version_type=linux
  15364. need_lib_prefix=no
  15365. need_version=no
  15366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15367. soname_spec='${libname}${release}${shared_ext}$major'
  15368. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15369. shlibpath_var=LD_LIBRARY_PATH
  15370. shlibpath_overrides_runpath=no
  15371. hardcode_into_libs=yes
  15372. ;;
  15373. irix5* | irix6* | nonstopux*)
  15374. case $host_os in
  15375. nonstopux*) version_type=nonstopux ;;
  15376. *)
  15377. if test "$lt_cv_prog_gnu_ld" = yes; then
  15378. version_type=linux
  15379. else
  15380. version_type=irix
  15381. fi ;;
  15382. esac
  15383. need_lib_prefix=no
  15384. need_version=no
  15385. soname_spec='${libname}${release}${shared_ext}$major'
  15386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15387. case $host_os in
  15388. irix5* | nonstopux*)
  15389. libsuff= shlibsuff=
  15390. ;;
  15391. *)
  15392. case $LD in # libtool.m4 will add one of these switches to LD
  15393. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15394. libsuff= shlibsuff= libmagic=32-bit;;
  15395. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15396. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15397. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15398. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15399. *) libsuff= shlibsuff= libmagic=never-match;;
  15400. esac
  15401. ;;
  15402. esac
  15403. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15404. shlibpath_overrides_runpath=no
  15405. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15406. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15407. hardcode_into_libs=yes
  15408. ;;
  15409. # No shared lib support for Linux oldld, aout, or coff.
  15410. linux*oldld* | linux*aout* | linux*coff*)
  15411. dynamic_linker=no
  15412. ;;
  15413. # This must be Linux ELF.
  15414. linux* | k*bsd*-gnu)
  15415. version_type=linux
  15416. need_lib_prefix=no
  15417. need_version=no
  15418. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15419. soname_spec='${libname}${release}${shared_ext}$major'
  15420. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15421. shlibpath_var=LD_LIBRARY_PATH
  15422. shlibpath_overrides_runpath=no
  15423. # This implies no fast_install, which is unacceptable.
  15424. # Some rework will be needed to allow for fast_install
  15425. # before this can be enabled.
  15426. hardcode_into_libs=yes
  15427. # Append ld.so.conf contents to the search path
  15428. if test -f /etc/ld.so.conf; then
  15429. 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' ' '`
  15430. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15431. fi
  15432. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15433. # powerpc, because MkLinux only supported shared libraries with the
  15434. # GNU dynamic linker. Since this was broken with cross compilers,
  15435. # most powerpc-linux boxes support dynamic linking these days and
  15436. # people can always --disable-shared, the test was removed, and we
  15437. # assume the GNU/Linux dynamic linker is in use.
  15438. dynamic_linker='GNU/Linux ld.so'
  15439. ;;
  15440. netbsdelf*-gnu)
  15441. version_type=linux
  15442. need_lib_prefix=no
  15443. need_version=no
  15444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15445. soname_spec='${libname}${release}${shared_ext}$major'
  15446. shlibpath_var=LD_LIBRARY_PATH
  15447. shlibpath_overrides_runpath=no
  15448. hardcode_into_libs=yes
  15449. dynamic_linker='NetBSD ld.elf_so'
  15450. ;;
  15451. netbsd*)
  15452. version_type=sunos
  15453. need_lib_prefix=no
  15454. need_version=no
  15455. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15457. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15458. dynamic_linker='NetBSD (a.out) ld.so'
  15459. else
  15460. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15461. soname_spec='${libname}${release}${shared_ext}$major'
  15462. dynamic_linker='NetBSD ld.elf_so'
  15463. fi
  15464. shlibpath_var=LD_LIBRARY_PATH
  15465. shlibpath_overrides_runpath=yes
  15466. hardcode_into_libs=yes
  15467. ;;
  15468. newsos6)
  15469. version_type=linux
  15470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15471. shlibpath_var=LD_LIBRARY_PATH
  15472. shlibpath_overrides_runpath=yes
  15473. ;;
  15474. nto-qnx*)
  15475. version_type=linux
  15476. need_lib_prefix=no
  15477. need_version=no
  15478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15479. soname_spec='${libname}${release}${shared_ext}$major'
  15480. shlibpath_var=LD_LIBRARY_PATH
  15481. shlibpath_overrides_runpath=yes
  15482. ;;
  15483. openbsd*)
  15484. version_type=sunos
  15485. sys_lib_dlsearch_path_spec="/usr/lib"
  15486. need_lib_prefix=no
  15487. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15488. case $host_os in
  15489. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15490. *) need_version=no ;;
  15491. esac
  15492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15493. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15494. shlibpath_var=LD_LIBRARY_PATH
  15495. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15496. case $host_os in
  15497. openbsd2.[89] | openbsd2.[89].*)
  15498. shlibpath_overrides_runpath=no
  15499. ;;
  15500. *)
  15501. shlibpath_overrides_runpath=yes
  15502. ;;
  15503. esac
  15504. else
  15505. shlibpath_overrides_runpath=yes
  15506. fi
  15507. ;;
  15508. os2*)
  15509. libname_spec='$name'
  15510. shrext_cmds=".dll"
  15511. need_lib_prefix=no
  15512. library_names_spec='$libname${shared_ext} $libname.a'
  15513. dynamic_linker='OS/2 ld.exe'
  15514. shlibpath_var=LIBPATH
  15515. ;;
  15516. osf3* | osf4* | osf5*)
  15517. version_type=osf
  15518. need_lib_prefix=no
  15519. need_version=no
  15520. soname_spec='${libname}${release}${shared_ext}$major'
  15521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15522. shlibpath_var=LD_LIBRARY_PATH
  15523. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15524. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15525. ;;
  15526. rdos*)
  15527. dynamic_linker=no
  15528. ;;
  15529. solaris*)
  15530. version_type=linux
  15531. need_lib_prefix=no
  15532. need_version=no
  15533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15534. soname_spec='${libname}${release}${shared_ext}$major'
  15535. shlibpath_var=LD_LIBRARY_PATH
  15536. shlibpath_overrides_runpath=yes
  15537. hardcode_into_libs=yes
  15538. # ldd complains unless libraries are executable
  15539. postinstall_cmds='chmod +x $lib'
  15540. ;;
  15541. sunos4*)
  15542. version_type=sunos
  15543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15544. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15545. shlibpath_var=LD_LIBRARY_PATH
  15546. shlibpath_overrides_runpath=yes
  15547. if test "$with_gnu_ld" = yes; then
  15548. need_lib_prefix=no
  15549. fi
  15550. need_version=yes
  15551. ;;
  15552. sysv4 | sysv4.3*)
  15553. version_type=linux
  15554. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15555. soname_spec='${libname}${release}${shared_ext}$major'
  15556. shlibpath_var=LD_LIBRARY_PATH
  15557. case $host_vendor in
  15558. sni)
  15559. shlibpath_overrides_runpath=no
  15560. need_lib_prefix=no
  15561. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15562. runpath_var=LD_RUN_PATH
  15563. ;;
  15564. siemens)
  15565. need_lib_prefix=no
  15566. ;;
  15567. motorola)
  15568. need_lib_prefix=no
  15569. need_version=no
  15570. shlibpath_overrides_runpath=no
  15571. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15572. ;;
  15573. esac
  15574. ;;
  15575. sysv4*MP*)
  15576. if test -d /usr/nec ;then
  15577. version_type=linux
  15578. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15579. soname_spec='$libname${shared_ext}.$major'
  15580. shlibpath_var=LD_LIBRARY_PATH
  15581. fi
  15582. ;;
  15583. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15584. version_type=freebsd-elf
  15585. need_lib_prefix=no
  15586. need_version=no
  15587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15588. soname_spec='${libname}${release}${shared_ext}$major'
  15589. shlibpath_var=LD_LIBRARY_PATH
  15590. hardcode_into_libs=yes
  15591. if test "$with_gnu_ld" = yes; then
  15592. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15593. shlibpath_overrides_runpath=no
  15594. else
  15595. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15596. shlibpath_overrides_runpath=yes
  15597. case $host_os in
  15598. sco3.2v5*)
  15599. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15600. ;;
  15601. esac
  15602. fi
  15603. sys_lib_dlsearch_path_spec='/usr/lib'
  15604. ;;
  15605. uts4*)
  15606. version_type=linux
  15607. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15608. soname_spec='${libname}${release}${shared_ext}$major'
  15609. shlibpath_var=LD_LIBRARY_PATH
  15610. ;;
  15611. *)
  15612. dynamic_linker=no
  15613. ;;
  15614. esac
  15615. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15616. echo "${ECHO_T}$dynamic_linker" >&6; }
  15617. test "$dynamic_linker" = no && can_build_shared=no
  15618. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  15619. echo $ECHO_N "(cached) $ECHO_C" >&6
  15620. else
  15621. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  15622. fi
  15623. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  15624. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  15625. echo $ECHO_N "(cached) $ECHO_C" >&6
  15626. else
  15627. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  15628. fi
  15629. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  15630. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15631. if test "$GCC" = yes; then
  15632. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15633. fi
  15634. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15635. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  15636. hardcode_action_F77=
  15637. if test -n "$hardcode_libdir_flag_spec_F77" || \
  15638. test -n "$runpath_var_F77" || \
  15639. test "X$hardcode_automatic_F77" = "Xyes" ; then
  15640. # We can hardcode non-existant directories.
  15641. if test "$hardcode_direct_F77" != no &&
  15642. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15643. # have to relink, otherwise we might link with an installed library
  15644. # when we should be linking with a yet-to-be-installed one
  15645. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  15646. test "$hardcode_minus_L_F77" != no; then
  15647. # Linking always hardcodes the temporary library directory.
  15648. hardcode_action_F77=relink
  15649. else
  15650. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15651. hardcode_action_F77=immediate
  15652. fi
  15653. else
  15654. # We cannot hardcode anything, or else we can only hardcode existing
  15655. # directories.
  15656. hardcode_action_F77=unsupported
  15657. fi
  15658. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  15659. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  15660. if test "$hardcode_action_F77" = relink; then
  15661. # Fast installation is not supported
  15662. enable_fast_install=no
  15663. elif test "$shlibpath_overrides_runpath" = yes ||
  15664. test "$enable_shared" = no; then
  15665. # Fast installation is not necessary
  15666. enable_fast_install=needless
  15667. fi
  15668. # The else clause should only fire when bootstrapping the
  15669. # libtool distribution, otherwise you forgot to ship ltmain.sh
  15670. # with your package, and you will get complaints that there are
  15671. # no rules to generate ltmain.sh.
  15672. if test -f "$ltmain"; then
  15673. # See if we are running on zsh, and set the options which allow our commands through
  15674. # without removal of \ escapes.
  15675. if test -n "${ZSH_VERSION+set}" ; then
  15676. setopt NO_GLOB_SUBST
  15677. fi
  15678. # Now quote all the things that may contain metacharacters while being
  15679. # careful not to overquote the AC_SUBSTed values. We take copies of the
  15680. # variables and quote the copies for generation of the libtool script.
  15681. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  15682. SED SHELL STRIP \
  15683. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15684. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15685. deplibs_check_method reload_flag reload_cmds need_locks \
  15686. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15687. lt_cv_sys_global_symbol_to_c_name_address \
  15688. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15689. old_postinstall_cmds old_postuninstall_cmds \
  15690. compiler_F77 \
  15691. CC_F77 \
  15692. LD_F77 \
  15693. lt_prog_compiler_wl_F77 \
  15694. lt_prog_compiler_pic_F77 \
  15695. lt_prog_compiler_static_F77 \
  15696. lt_prog_compiler_no_builtin_flag_F77 \
  15697. export_dynamic_flag_spec_F77 \
  15698. thread_safe_flag_spec_F77 \
  15699. whole_archive_flag_spec_F77 \
  15700. enable_shared_with_static_runtimes_F77 \
  15701. old_archive_cmds_F77 \
  15702. old_archive_from_new_cmds_F77 \
  15703. predep_objects_F77 \
  15704. postdep_objects_F77 \
  15705. predeps_F77 \
  15706. postdeps_F77 \
  15707. compiler_lib_search_path_F77 \
  15708. compiler_lib_search_dirs_F77 \
  15709. archive_cmds_F77 \
  15710. archive_expsym_cmds_F77 \
  15711. postinstall_cmds_F77 \
  15712. postuninstall_cmds_F77 \
  15713. old_archive_from_expsyms_cmds_F77 \
  15714. allow_undefined_flag_F77 \
  15715. no_undefined_flag_F77 \
  15716. export_symbols_cmds_F77 \
  15717. hardcode_libdir_flag_spec_F77 \
  15718. hardcode_libdir_flag_spec_ld_F77 \
  15719. hardcode_libdir_separator_F77 \
  15720. hardcode_automatic_F77 \
  15721. module_cmds_F77 \
  15722. module_expsym_cmds_F77 \
  15723. lt_cv_prog_compiler_c_o_F77 \
  15724. fix_srcfile_path_F77 \
  15725. exclude_expsyms_F77 \
  15726. include_expsyms_F77; do
  15727. case $var in
  15728. old_archive_cmds_F77 | \
  15729. old_archive_from_new_cmds_F77 | \
  15730. archive_cmds_F77 | \
  15731. archive_expsym_cmds_F77 | \
  15732. module_cmds_F77 | \
  15733. module_expsym_cmds_F77 | \
  15734. old_archive_from_expsyms_cmds_F77 | \
  15735. export_symbols_cmds_F77 | \
  15736. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  15737. postinstall_cmds | postuninstall_cmds | \
  15738. old_postinstall_cmds | old_postuninstall_cmds | \
  15739. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  15740. # Double-quote double-evaled strings.
  15741. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  15742. ;;
  15743. *)
  15744. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  15745. ;;
  15746. esac
  15747. done
  15748. case $lt_echo in
  15749. *'\$0 --fallback-echo"')
  15750. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  15751. ;;
  15752. esac
  15753. cfgfile="$ofile"
  15754. cat <<__EOF__ >> "$cfgfile"
  15755. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  15756. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15757. # Shell to use when invoking shell scripts.
  15758. SHELL=$lt_SHELL
  15759. # Whether or not to build shared libraries.
  15760. build_libtool_libs=$enable_shared
  15761. # Whether or not to build static libraries.
  15762. build_old_libs=$enable_static
  15763. # Whether or not to add -lc for building shared libraries.
  15764. build_libtool_need_lc=$archive_cmds_need_lc_F77
  15765. # Whether or not to disallow shared libs when runtime libs are static
  15766. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  15767. # Whether or not to optimize for fast installation.
  15768. fast_install=$enable_fast_install
  15769. # The host system.
  15770. host_alias=$host_alias
  15771. host=$host
  15772. host_os=$host_os
  15773. # The build system.
  15774. build_alias=$build_alias
  15775. build=$build
  15776. build_os=$build_os
  15777. # An echo program that does not interpret backslashes.
  15778. echo=$lt_echo
  15779. # The archiver.
  15780. AR=$lt_AR
  15781. AR_FLAGS=$lt_AR_FLAGS
  15782. # A C compiler.
  15783. LTCC=$lt_LTCC
  15784. # LTCC compiler flags.
  15785. LTCFLAGS=$lt_LTCFLAGS
  15786. # A language-specific compiler.
  15787. CC=$lt_compiler_F77
  15788. # Is the compiler the GNU C compiler?
  15789. with_gcc=$GCC_F77
  15790. # An ERE matcher.
  15791. EGREP=$lt_EGREP
  15792. # The linker used to build libraries.
  15793. LD=$lt_LD_F77
  15794. # Whether we need hard or soft links.
  15795. LN_S=$lt_LN_S
  15796. # A BSD-compatible nm program.
  15797. NM=$lt_NM
  15798. # A symbol stripping program
  15799. STRIP=$lt_STRIP
  15800. # Used to examine libraries when file_magic_cmd begins "file"
  15801. MAGIC_CMD=$MAGIC_CMD
  15802. # Used on cygwin: DLL creation program.
  15803. DLLTOOL="$DLLTOOL"
  15804. # Used on cygwin: object dumper.
  15805. OBJDUMP="$OBJDUMP"
  15806. # Used on cygwin: assembler.
  15807. AS="$AS"
  15808. # The name of the directory that contains temporary libtool files.
  15809. objdir=$objdir
  15810. # How to create reloadable object files.
  15811. reload_flag=$lt_reload_flag
  15812. reload_cmds=$lt_reload_cmds
  15813. # How to pass a linker flag through the compiler.
  15814. wl=$lt_lt_prog_compiler_wl_F77
  15815. # Object file suffix (normally "o").
  15816. objext="$ac_objext"
  15817. # Old archive suffix (normally "a").
  15818. libext="$libext"
  15819. # Shared library suffix (normally ".so").
  15820. shrext_cmds='$shrext_cmds'
  15821. # Executable file suffix (normally "").
  15822. exeext="$exeext"
  15823. # Additional compiler flags for building library objects.
  15824. pic_flag=$lt_lt_prog_compiler_pic_F77
  15825. pic_mode=$pic_mode
  15826. # What is the maximum length of a command?
  15827. max_cmd_len=$lt_cv_sys_max_cmd_len
  15828. # Does compiler simultaneously support -c and -o options?
  15829. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  15830. # Must we lock files when doing compilation?
  15831. need_locks=$lt_need_locks
  15832. # Do we need the lib prefix for modules?
  15833. need_lib_prefix=$need_lib_prefix
  15834. # Do we need a version for libraries?
  15835. need_version=$need_version
  15836. # Whether dlopen is supported.
  15837. dlopen_support=$enable_dlopen
  15838. # Whether dlopen of programs is supported.
  15839. dlopen_self=$enable_dlopen_self
  15840. # Whether dlopen of statically linked programs is supported.
  15841. dlopen_self_static=$enable_dlopen_self_static
  15842. # Compiler flag to prevent dynamic linking.
  15843. link_static_flag=$lt_lt_prog_compiler_static_F77
  15844. # Compiler flag to turn off builtin functions.
  15845. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  15846. # Compiler flag to allow reflexive dlopens.
  15847. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  15848. # Compiler flag to generate shared objects directly from archives.
  15849. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  15850. # Compiler flag to generate thread-safe objects.
  15851. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  15852. # Library versioning type.
  15853. version_type=$version_type
  15854. # Format of library name prefix.
  15855. libname_spec=$lt_libname_spec
  15856. # List of archive names. First name is the real one, the rest are links.
  15857. # The last name is the one that the linker finds with -lNAME.
  15858. library_names_spec=$lt_library_names_spec
  15859. # The coded name of the library, if different from the real name.
  15860. soname_spec=$lt_soname_spec
  15861. # Commands used to build and install an old-style archive.
  15862. RANLIB=$lt_RANLIB
  15863. old_archive_cmds=$lt_old_archive_cmds_F77
  15864. old_postinstall_cmds=$lt_old_postinstall_cmds
  15865. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15866. # Create an old-style archive from a shared archive.
  15867. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  15868. # Create a temporary old-style archive to link instead of a shared archive.
  15869. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  15870. # Commands used to build and install a shared archive.
  15871. archive_cmds=$lt_archive_cmds_F77
  15872. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  15873. postinstall_cmds=$lt_postinstall_cmds
  15874. postuninstall_cmds=$lt_postuninstall_cmds
  15875. # Commands used to build a loadable module (assumed same as above if empty)
  15876. module_cmds=$lt_module_cmds_F77
  15877. module_expsym_cmds=$lt_module_expsym_cmds_F77
  15878. # Commands to strip libraries.
  15879. old_striplib=$lt_old_striplib
  15880. striplib=$lt_striplib
  15881. # Dependencies to place before the objects being linked to create a
  15882. # shared library.
  15883. predep_objects=$lt_predep_objects_F77
  15884. # Dependencies to place after the objects being linked to create a
  15885. # shared library.
  15886. postdep_objects=$lt_postdep_objects_F77
  15887. # Dependencies to place before the objects being linked to create a
  15888. # shared library.
  15889. predeps=$lt_predeps_F77
  15890. # Dependencies to place after the objects being linked to create a
  15891. # shared library.
  15892. postdeps=$lt_postdeps_F77
  15893. # The directories searched by this compiler when creating a shared
  15894. # library
  15895. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
  15896. # The library search path used internally by the compiler when linking
  15897. # a shared library.
  15898. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  15899. # Method to check whether dependent libraries are shared objects.
  15900. deplibs_check_method=$lt_deplibs_check_method
  15901. # Command to use when deplibs_check_method == file_magic.
  15902. file_magic_cmd=$lt_file_magic_cmd
  15903. # Flag that allows shared libraries with undefined symbols to be built.
  15904. allow_undefined_flag=$lt_allow_undefined_flag_F77
  15905. # Flag that forces no undefined symbols.
  15906. no_undefined_flag=$lt_no_undefined_flag_F77
  15907. # Commands used to finish a libtool library installation in a directory.
  15908. finish_cmds=$lt_finish_cmds
  15909. # Same as above, but a single script fragment to be evaled but not shown.
  15910. finish_eval=$lt_finish_eval
  15911. # Take the output of nm and produce a listing of raw symbols and C names.
  15912. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15913. # Transform the output of nm in a proper C declaration
  15914. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15915. # Transform the output of nm in a C name address pair
  15916. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15917. # This is the shared library runtime path variable.
  15918. runpath_var=$runpath_var
  15919. # This is the shared library path variable.
  15920. shlibpath_var=$shlibpath_var
  15921. # Is shlibpath searched before the hard-coded library search path?
  15922. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15923. # How to hardcode a shared library path into an executable.
  15924. hardcode_action=$hardcode_action_F77
  15925. # Whether we should hardcode library paths into libraries.
  15926. hardcode_into_libs=$hardcode_into_libs
  15927. # Flag to hardcode \$libdir into a binary during linking.
  15928. # This must work even if \$libdir does not exist.
  15929. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  15930. # If ld is used when linking, flag to hardcode \$libdir into
  15931. # a binary during linking. This must work even if \$libdir does
  15932. # not exist.
  15933. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  15934. # Whether we need a single -rpath flag with a separated argument.
  15935. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  15936. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  15937. # resulting binary.
  15938. hardcode_direct=$hardcode_direct_F77
  15939. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15940. # resulting binary.
  15941. hardcode_minus_L=$hardcode_minus_L_F77
  15942. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15943. # the resulting binary.
  15944. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  15945. # Set to yes if building a shared library automatically hardcodes DIR into the library
  15946. # and all subsequent libraries and executables linked against it.
  15947. hardcode_automatic=$hardcode_automatic_F77
  15948. # Variables whose values should be saved in libtool wrapper scripts and
  15949. # restored at relink time.
  15950. variables_saved_for_relink="$variables_saved_for_relink"
  15951. # Whether libtool must link a program against all its dependency libraries.
  15952. link_all_deplibs=$link_all_deplibs_F77
  15953. # Compile-time system search path for libraries
  15954. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15955. # Run-time system search path for libraries
  15956. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15957. # Fix the shell variable \$srcfile for the compiler.
  15958. fix_srcfile_path=$lt_fix_srcfile_path
  15959. # Set to yes if exported symbols are required.
  15960. always_export_symbols=$always_export_symbols_F77
  15961. # The commands to list exported symbols.
  15962. export_symbols_cmds=$lt_export_symbols_cmds_F77
  15963. # The commands to extract the exported symbol list from a shared archive.
  15964. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15965. # Symbols that should not be listed in the preloaded symbols.
  15966. exclude_expsyms=$lt_exclude_expsyms_F77
  15967. # Symbols that must always be exported.
  15968. include_expsyms=$lt_include_expsyms_F77
  15969. # ### END LIBTOOL TAG CONFIG: $tagname
  15970. __EOF__
  15971. else
  15972. # If there is no Makefile yet, we rely on a make rule to execute
  15973. # `config.status --recheck' to rerun these tests and create the
  15974. # libtool script then.
  15975. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  15976. if test -f "$ltmain_in"; then
  15977. test -f Makefile && make "$ltmain"
  15978. fi
  15979. fi
  15980. ac_ext=c
  15981. ac_cpp='$CPP $CPPFLAGS'
  15982. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15983. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15984. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15985. CC="$lt_save_CC"
  15986. else
  15987. tagname=""
  15988. fi
  15989. ;;
  15990. GCJ)
  15991. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  15992. # Source file extension for Java test sources.
  15993. ac_ext=java
  15994. # Object file extension for compiled Java test sources.
  15995. objext=o
  15996. objext_GCJ=$objext
  15997. # Code to be used in simple compile tests
  15998. lt_simple_compile_test_code="class foo {}"
  15999. # Code to be used in simple link tests
  16000. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  16001. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16002. # If no C compiler was specified, use CC.
  16003. LTCC=${LTCC-"$CC"}
  16004. # If no C compiler flags were specified, use CFLAGS.
  16005. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16006. # Allow CC to be a program name with arguments.
  16007. compiler=$CC
  16008. # save warnings/boilerplate of simple test code
  16009. ac_outfile=conftest.$ac_objext
  16010. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  16011. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16012. _lt_compiler_boilerplate=`cat conftest.err`
  16013. $rm conftest*
  16014. ac_outfile=conftest.$ac_objext
  16015. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  16016. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16017. _lt_linker_boilerplate=`cat conftest.err`
  16018. $rm -r conftest*
  16019. # Allow CC to be a program name with arguments.
  16020. lt_save_CC="$CC"
  16021. CC=${GCJ-"gcj"}
  16022. compiler=$CC
  16023. compiler_GCJ=$CC
  16024. for cc_temp in $compiler""; do
  16025. case $cc_temp in
  16026. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16027. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16028. \-*) ;;
  16029. *) break;;
  16030. esac
  16031. done
  16032. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16033. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  16034. archive_cmds_need_lc_GCJ=no
  16035. old_archive_cmds_GCJ=$old_archive_cmds
  16036. lt_prog_compiler_no_builtin_flag_GCJ=
  16037. if test "$GCC" = yes; then
  16038. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  16039. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  16040. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  16041. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  16042. echo $ECHO_N "(cached) $ECHO_C" >&6
  16043. else
  16044. lt_cv_prog_compiler_rtti_exceptions=no
  16045. ac_outfile=conftest.$ac_objext
  16046. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16047. lt_compiler_flag="-fno-rtti -fno-exceptions"
  16048. # Insert the option either (1) after the last *FLAGS variable, or
  16049. # (2) before a word containing "conftest.", or (3) at the end.
  16050. # Note that $ac_compile itself does not contain backslashes and begins
  16051. # with a dollar sign (not a hyphen), so the echo should work correctly.
  16052. # The option is referenced via a variable to avoid confusing sed.
  16053. lt_compile=`echo "$ac_compile" | $SED \
  16054. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  16055. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16056. -e 's:$: $lt_compiler_flag:'`
  16057. (eval echo "\"\$as_me:17961: $lt_compile\"" >&5)
  16058. (eval "$lt_compile" 2>conftest.err)
  16059. ac_status=$?
  16060. cat conftest.err >&5
  16061. echo "$as_me:17965: \$? = $ac_status" >&5
  16062. if (exit $ac_status) && test -s "$ac_outfile"; then
  16063. # The compiler can only warn and ignore the option if not recognized
  16064. # So say no if there are warnings other than the usual output.
  16065. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  16066. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  16067. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  16068. lt_cv_prog_compiler_rtti_exceptions=yes
  16069. fi
  16070. fi
  16071. $rm conftest*
  16072. fi
  16073. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  16074. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  16075. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  16076. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  16077. else
  16078. :
  16079. fi
  16080. fi
  16081. lt_prog_compiler_wl_GCJ=
  16082. lt_prog_compiler_pic_GCJ=
  16083. lt_prog_compiler_static_GCJ=
  16084. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  16085. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  16086. if test "$GCC" = yes; then
  16087. lt_prog_compiler_wl_GCJ='-Wl,'
  16088. lt_prog_compiler_static_GCJ='-static'
  16089. case $host_os in
  16090. aix*)
  16091. # All AIX code is PIC.
  16092. if test "$host_cpu" = ia64; then
  16093. # AIX 5 now supports IA64 processor
  16094. lt_prog_compiler_static_GCJ='-Bstatic'
  16095. fi
  16096. ;;
  16097. amigaos*)
  16098. # FIXME: we need at least 68020 code to build shared libraries, but
  16099. # adding the `-m68020' flag to GCC prevents building anything better,
  16100. # like `-m68040'.
  16101. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  16102. ;;
  16103. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  16104. # PIC is the default for these OSes.
  16105. ;;
  16106. mingw* | cygwin* | pw32* | os2*)
  16107. # This hack is so that the source file can tell whether it is being
  16108. # built for inclusion in a dll (and should export symbols for example).
  16109. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  16110. # (--disable-auto-import) libraries
  16111. ;;
  16112. darwin* | rhapsody*)
  16113. # PIC is the default on this platform
  16114. # Common symbols not allowed in MH_DYLIB files
  16115. lt_prog_compiler_pic_GCJ='-fno-common'
  16116. ;;
  16117. interix[3-9]*)
  16118. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  16119. # Instead, we relocate shared libraries at runtime.
  16120. ;;
  16121. msdosdjgpp*)
  16122. # Just because we use GCC doesn't mean we suddenly get shared libraries
  16123. # on systems that don't support them.
  16124. lt_prog_compiler_can_build_shared_GCJ=no
  16125. enable_shared=no
  16126. ;;
  16127. sysv4*MP*)
  16128. if test -d /usr/nec; then
  16129. lt_prog_compiler_pic_GCJ=-Kconform_pic
  16130. fi
  16131. ;;
  16132. hpux*)
  16133. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  16134. # not for PA HP-UX.
  16135. case $host_cpu in
  16136. hppa*64*|ia64*)
  16137. # +Z the default
  16138. ;;
  16139. *)
  16140. lt_prog_compiler_pic_GCJ='-fPIC'
  16141. ;;
  16142. esac
  16143. ;;
  16144. *)
  16145. lt_prog_compiler_pic_GCJ='-fPIC'
  16146. ;;
  16147. esac
  16148. else
  16149. # PORTME Check for flag to pass linker flags through the system compiler.
  16150. case $host_os in
  16151. aix*)
  16152. lt_prog_compiler_wl_GCJ='-Wl,'
  16153. if test "$host_cpu" = ia64; then
  16154. # AIX 5 now supports IA64 processor
  16155. lt_prog_compiler_static_GCJ='-Bstatic'
  16156. else
  16157. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  16158. fi
  16159. ;;
  16160. darwin*)
  16161. # PIC is the default on this platform
  16162. # Common symbols not allowed in MH_DYLIB files
  16163. case $cc_basename in
  16164. xlc*)
  16165. lt_prog_compiler_pic_GCJ='-qnocommon'
  16166. lt_prog_compiler_wl_GCJ='-Wl,'
  16167. ;;
  16168. esac
  16169. ;;
  16170. mingw* | cygwin* | pw32* | os2*)
  16171. # This hack is so that the source file can tell whether it is being
  16172. # built for inclusion in a dll (and should export symbols for example).
  16173. ;;
  16174. hpux9* | hpux10* | hpux11*)
  16175. lt_prog_compiler_wl_GCJ='-Wl,'
  16176. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  16177. # not for PA HP-UX.
  16178. case $host_cpu in
  16179. hppa*64*|ia64*)
  16180. # +Z the default
  16181. ;;
  16182. *)
  16183. lt_prog_compiler_pic_GCJ='+Z'
  16184. ;;
  16185. esac
  16186. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  16187. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  16188. ;;
  16189. irix5* | irix6* | nonstopux*)
  16190. lt_prog_compiler_wl_GCJ='-Wl,'
  16191. # PIC (with -KPIC) is the default.
  16192. lt_prog_compiler_static_GCJ='-non_shared'
  16193. ;;
  16194. newsos6)
  16195. lt_prog_compiler_pic_GCJ='-KPIC'
  16196. lt_prog_compiler_static_GCJ='-Bstatic'
  16197. ;;
  16198. linux* | k*bsd*-gnu)
  16199. case $cc_basename in
  16200. icc* | ecc*)
  16201. lt_prog_compiler_wl_GCJ='-Wl,'
  16202. lt_prog_compiler_pic_GCJ='-KPIC'
  16203. lt_prog_compiler_static_GCJ='-static'
  16204. ;;
  16205. pgcc* | pgf77* | pgf90* | pgf95*)
  16206. # Portland Group compilers (*not* the Pentium gcc compiler,
  16207. # which looks to be a dead project)
  16208. lt_prog_compiler_wl_GCJ='-Wl,'
  16209. lt_prog_compiler_pic_GCJ='-fpic'
  16210. lt_prog_compiler_static_GCJ='-Bstatic'
  16211. ;;
  16212. ccc*)
  16213. lt_prog_compiler_wl_GCJ='-Wl,'
  16214. # All Alpha code is PIC.
  16215. lt_prog_compiler_static_GCJ='-non_shared'
  16216. ;;
  16217. *)
  16218. case `$CC -V 2>&1 | sed 5q` in
  16219. *Sun\ C*)
  16220. # Sun C 5.9
  16221. lt_prog_compiler_pic_GCJ='-KPIC'
  16222. lt_prog_compiler_static_GCJ='-Bstatic'
  16223. lt_prog_compiler_wl_GCJ='-Wl,'
  16224. ;;
  16225. *Sun\ F*)
  16226. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  16227. lt_prog_compiler_pic_GCJ='-KPIC'
  16228. lt_prog_compiler_static_GCJ='-Bstatic'
  16229. lt_prog_compiler_wl_GCJ=''
  16230. ;;
  16231. esac
  16232. ;;
  16233. esac
  16234. ;;
  16235. osf3* | osf4* | osf5*)
  16236. lt_prog_compiler_wl_GCJ='-Wl,'
  16237. # All OSF/1 code is PIC.
  16238. lt_prog_compiler_static_GCJ='-non_shared'
  16239. ;;
  16240. rdos*)
  16241. lt_prog_compiler_static_GCJ='-non_shared'
  16242. ;;
  16243. solaris*)
  16244. lt_prog_compiler_pic_GCJ='-KPIC'
  16245. lt_prog_compiler_static_GCJ='-Bstatic'
  16246. case $cc_basename in
  16247. f77* | f90* | f95*)
  16248. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  16249. *)
  16250. lt_prog_compiler_wl_GCJ='-Wl,';;
  16251. esac
  16252. ;;
  16253. sunos4*)
  16254. lt_prog_compiler_wl_GCJ='-Qoption ld '
  16255. lt_prog_compiler_pic_GCJ='-PIC'
  16256. lt_prog_compiler_static_GCJ='-Bstatic'
  16257. ;;
  16258. sysv4 | sysv4.2uw2* | sysv4.3*)
  16259. lt_prog_compiler_wl_GCJ='-Wl,'
  16260. lt_prog_compiler_pic_GCJ='-KPIC'
  16261. lt_prog_compiler_static_GCJ='-Bstatic'
  16262. ;;
  16263. sysv4*MP*)
  16264. if test -d /usr/nec ;then
  16265. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  16266. lt_prog_compiler_static_GCJ='-Bstatic'
  16267. fi
  16268. ;;
  16269. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  16270. lt_prog_compiler_wl_GCJ='-Wl,'
  16271. lt_prog_compiler_pic_GCJ='-KPIC'
  16272. lt_prog_compiler_static_GCJ='-Bstatic'
  16273. ;;
  16274. unicos*)
  16275. lt_prog_compiler_wl_GCJ='-Wl,'
  16276. lt_prog_compiler_can_build_shared_GCJ=no
  16277. ;;
  16278. uts4*)
  16279. lt_prog_compiler_pic_GCJ='-pic'
  16280. lt_prog_compiler_static_GCJ='-Bstatic'
  16281. ;;
  16282. *)
  16283. lt_prog_compiler_can_build_shared_GCJ=no
  16284. ;;
  16285. esac
  16286. fi
  16287. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  16288. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  16289. #
  16290. # Check to make sure the PIC flag actually works.
  16291. #
  16292. if test -n "$lt_prog_compiler_pic_GCJ"; then
  16293. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  16294. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  16295. if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
  16296. echo $ECHO_N "(cached) $ECHO_C" >&6
  16297. else
  16298. lt_cv_prog_compiler_pic_works_GCJ=no
  16299. ac_outfile=conftest.$ac_objext
  16300. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16301. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  16302. # Insert the option either (1) after the last *FLAGS variable, or
  16303. # (2) before a word containing "conftest.", or (3) at the end.
  16304. # Note that $ac_compile itself does not contain backslashes and begins
  16305. # with a dollar sign (not a hyphen), so the echo should work correctly.
  16306. # The option is referenced via a variable to avoid confusing sed.
  16307. lt_compile=`echo "$ac_compile" | $SED \
  16308. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  16309. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16310. -e 's:$: $lt_compiler_flag:'`
  16311. (eval echo "\"\$as_me:18251: $lt_compile\"" >&5)
  16312. (eval "$lt_compile" 2>conftest.err)
  16313. ac_status=$?
  16314. cat conftest.err >&5
  16315. echo "$as_me:18255: \$? = $ac_status" >&5
  16316. if (exit $ac_status) && test -s "$ac_outfile"; then
  16317. # The compiler can only warn and ignore the option if not recognized
  16318. # So say no if there are warnings other than the usual output.
  16319. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  16320. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  16321. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  16322. lt_cv_prog_compiler_pic_works_GCJ=yes
  16323. fi
  16324. fi
  16325. $rm conftest*
  16326. fi
  16327. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
  16328. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
  16329. if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
  16330. case $lt_prog_compiler_pic_GCJ in
  16331. "" | " "*) ;;
  16332. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  16333. esac
  16334. else
  16335. lt_prog_compiler_pic_GCJ=
  16336. lt_prog_compiler_can_build_shared_GCJ=no
  16337. fi
  16338. fi
  16339. case $host_os in
  16340. # For platforms which do not support PIC, -DPIC is meaningless:
  16341. *djgpp*)
  16342. lt_prog_compiler_pic_GCJ=
  16343. ;;
  16344. *)
  16345. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  16346. ;;
  16347. esac
  16348. #
  16349. # Check to make sure the static flag actually works.
  16350. #
  16351. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  16352. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  16353. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  16354. if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
  16355. echo $ECHO_N "(cached) $ECHO_C" >&6
  16356. else
  16357. lt_cv_prog_compiler_static_works_GCJ=no
  16358. save_LDFLAGS="$LDFLAGS"
  16359. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  16360. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  16361. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  16362. # The linker can only warn and ignore the option if not recognized
  16363. # So say no if there are warnings
  16364. if test -s conftest.err; then
  16365. # Append any errors to the config.log.
  16366. cat conftest.err 1>&5
  16367. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  16368. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  16369. if diff conftest.exp conftest.er2 >/dev/null; then
  16370. lt_cv_prog_compiler_static_works_GCJ=yes
  16371. fi
  16372. else
  16373. lt_cv_prog_compiler_static_works_GCJ=yes
  16374. fi
  16375. fi
  16376. $rm -r conftest*
  16377. LDFLAGS="$save_LDFLAGS"
  16378. fi
  16379. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
  16380. echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
  16381. if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
  16382. :
  16383. else
  16384. lt_prog_compiler_static_GCJ=
  16385. fi
  16386. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  16387. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  16388. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  16389. echo $ECHO_N "(cached) $ECHO_C" >&6
  16390. else
  16391. lt_cv_prog_compiler_c_o_GCJ=no
  16392. $rm -r conftest 2>/dev/null
  16393. mkdir conftest
  16394. cd conftest
  16395. mkdir out
  16396. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16397. lt_compiler_flag="-o out/conftest2.$ac_objext"
  16398. # Insert the option either (1) after the last *FLAGS variable, or
  16399. # (2) before a word containing "conftest.", or (3) at the end.
  16400. # Note that $ac_compile itself does not contain backslashes and begins
  16401. # with a dollar sign (not a hyphen), so the echo should work correctly.
  16402. lt_compile=`echo "$ac_compile" | $SED \
  16403. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  16404. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16405. -e 's:$: $lt_compiler_flag:'`
  16406. (eval echo "\"\$as_me:18355: $lt_compile\"" >&5)
  16407. (eval "$lt_compile" 2>out/conftest.err)
  16408. ac_status=$?
  16409. cat out/conftest.err >&5
  16410. echo "$as_me:18359: \$? = $ac_status" >&5
  16411. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  16412. then
  16413. # The compiler can only warn and ignore the option if not recognized
  16414. # So say no if there are warnings
  16415. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  16416. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  16417. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  16418. lt_cv_prog_compiler_c_o_GCJ=yes
  16419. fi
  16420. fi
  16421. chmod u+w . 2>&5
  16422. $rm conftest*
  16423. # SGI C++ compiler will create directory out/ii_files/ for
  16424. # template instantiation
  16425. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  16426. $rm out/* && rmdir out
  16427. cd ..
  16428. rmdir conftest
  16429. $rm conftest*
  16430. fi
  16431. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  16432. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  16433. hard_links="nottested"
  16434. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  16435. # do not overwrite the value of need_locks provided by the user
  16436. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  16437. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  16438. hard_links=yes
  16439. $rm conftest*
  16440. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16441. touch conftest.a
  16442. ln conftest.a conftest.b 2>&5 || hard_links=no
  16443. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16444. { echo "$as_me:$LINENO: result: $hard_links" >&5
  16445. echo "${ECHO_T}$hard_links" >&6; }
  16446. if test "$hard_links" = no; then
  16447. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  16448. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  16449. need_locks=warn
  16450. fi
  16451. else
  16452. need_locks=no
  16453. fi
  16454. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  16455. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  16456. runpath_var=
  16457. allow_undefined_flag_GCJ=
  16458. enable_shared_with_static_runtimes_GCJ=no
  16459. archive_cmds_GCJ=
  16460. archive_expsym_cmds_GCJ=
  16461. old_archive_From_new_cmds_GCJ=
  16462. old_archive_from_expsyms_cmds_GCJ=
  16463. export_dynamic_flag_spec_GCJ=
  16464. whole_archive_flag_spec_GCJ=
  16465. thread_safe_flag_spec_GCJ=
  16466. hardcode_libdir_flag_spec_GCJ=
  16467. hardcode_libdir_flag_spec_ld_GCJ=
  16468. hardcode_libdir_separator_GCJ=
  16469. hardcode_direct_GCJ=no
  16470. hardcode_minus_L_GCJ=no
  16471. hardcode_shlibpath_var_GCJ=unsupported
  16472. link_all_deplibs_GCJ=unknown
  16473. hardcode_automatic_GCJ=no
  16474. module_cmds_GCJ=
  16475. module_expsym_cmds_GCJ=
  16476. always_export_symbols_GCJ=no
  16477. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  16478. # include_expsyms should be a list of space-separated symbols to be *always*
  16479. # included in the symbol list
  16480. include_expsyms_GCJ=
  16481. # exclude_expsyms can be an extended regexp of symbols to exclude
  16482. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  16483. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  16484. # as well as any symbol that contains `d'.
  16485. exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  16486. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  16487. # platforms (ab)use it in PIC code, but their linkers get confused if
  16488. # the symbol is explicitly referenced. Since portable code cannot
  16489. # rely on this symbol name, it's probably fine to never include it in
  16490. # preloaded symbol tables.
  16491. # Exclude shared library initialization/finalization symbols.
  16492. extract_expsyms_cmds=
  16493. # Just being paranoid about ensuring that cc_basename is set.
  16494. for cc_temp in $compiler""; do
  16495. case $cc_temp in
  16496. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16497. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16498. \-*) ;;
  16499. *) break;;
  16500. esac
  16501. done
  16502. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16503. case $host_os in
  16504. cygwin* | mingw* | pw32*)
  16505. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  16506. # When not using gcc, we currently assume that we are using
  16507. # Microsoft Visual C++.
  16508. if test "$GCC" != yes; then
  16509. with_gnu_ld=no
  16510. fi
  16511. ;;
  16512. interix*)
  16513. # we just hope/assume this is gcc and not c89 (= MSVC++)
  16514. with_gnu_ld=yes
  16515. ;;
  16516. openbsd*)
  16517. with_gnu_ld=no
  16518. ;;
  16519. esac
  16520. ld_shlibs_GCJ=yes
  16521. if test "$with_gnu_ld" = yes; then
  16522. # If archive_cmds runs LD, not CC, wlarc should be empty
  16523. wlarc='${wl}'
  16524. # Set some defaults for GNU ld with shared library support. These
  16525. # are reset later if shared libraries are not supported. Putting them
  16526. # here allows them to be overridden if necessary.
  16527. runpath_var=LD_RUN_PATH
  16528. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  16529. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  16530. # ancient GNU ld didn't support --whole-archive et. al.
  16531. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  16532. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  16533. else
  16534. whole_archive_flag_spec_GCJ=
  16535. fi
  16536. supports_anon_versioning=no
  16537. case `$LD -v 2>/dev/null` in
  16538. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  16539. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  16540. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  16541. *\ 2.11.*) ;; # other 2.11 versions
  16542. *) supports_anon_versioning=yes ;;
  16543. esac
  16544. # See if GNU ld supports shared libraries.
  16545. case $host_os in
  16546. aix[3-9]*)
  16547. # On AIX/PPC, the GNU linker is very broken
  16548. if test "$host_cpu" != ia64; then
  16549. ld_shlibs_GCJ=no
  16550. cat <<EOF 1>&2
  16551. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  16552. *** to be unable to reliably create shared libraries on AIX.
  16553. *** Therefore, libtool is disabling shared libraries support. If you
  16554. *** really care for shared libraries, you may want to modify your PATH
  16555. *** so that a non-GNU linker is found, and then restart.
  16556. EOF
  16557. fi
  16558. ;;
  16559. amigaos*)
  16560. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  16561. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16562. hardcode_minus_L_GCJ=yes
  16563. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  16564. # that the semantics of dynamic libraries on AmigaOS, at least up
  16565. # to version 4, is to share data among multiple programs linked
  16566. # with the same dynamic library. Since this doesn't match the
  16567. # behavior of shared libraries on other platforms, we can't use
  16568. # them.
  16569. ld_shlibs_GCJ=no
  16570. ;;
  16571. beos*)
  16572. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16573. allow_undefined_flag_GCJ=unsupported
  16574. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  16575. # support --undefined. This deserves some investigation. FIXME
  16576. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16577. else
  16578. ld_shlibs_GCJ=no
  16579. fi
  16580. ;;
  16581. cygwin* | mingw* | pw32*)
  16582. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  16583. # as there is no search path for DLLs.
  16584. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16585. allow_undefined_flag_GCJ=unsupported
  16586. always_export_symbols_GCJ=no
  16587. enable_shared_with_static_runtimes_GCJ=yes
  16588. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  16589. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  16590. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  16591. # If the export-symbols file already is a .def file (1st line
  16592. # is EXPORTS), use it as is; otherwise, prepend...
  16593. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  16594. cp $export_symbols $output_objdir/$soname.def;
  16595. else
  16596. echo EXPORTS > $output_objdir/$soname.def;
  16597. cat $export_symbols >> $output_objdir/$soname.def;
  16598. fi~
  16599. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  16600. else
  16601. ld_shlibs_GCJ=no
  16602. fi
  16603. ;;
  16604. interix[3-9]*)
  16605. hardcode_direct_GCJ=no
  16606. hardcode_shlibpath_var_GCJ=no
  16607. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16608. export_dynamic_flag_spec_GCJ='${wl}-E'
  16609. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  16610. # Instead, shared libraries are loaded at an image base (0x10000000 by
  16611. # default) and relocated if they conflict, which is a slow very memory
  16612. # consuming and fragmenting process. To avoid this, we pick a random,
  16613. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  16614. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  16615. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  16616. archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  16617. ;;
  16618. gnu* | linux* | k*bsd*-gnu)
  16619. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16620. tmp_addflag=
  16621. case $cc_basename,$host_cpu in
  16622. pgcc*) # Portland Group C compiler
  16623. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  16624. tmp_addflag=' $pic_flag'
  16625. ;;
  16626. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  16627. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  16628. tmp_addflag=' $pic_flag -Mnomain' ;;
  16629. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  16630. tmp_addflag=' -i_dynamic' ;;
  16631. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  16632. tmp_addflag=' -i_dynamic -nofor_main' ;;
  16633. ifc* | ifort*) # Intel Fortran compiler
  16634. tmp_addflag=' -nofor_main' ;;
  16635. esac
  16636. case `$CC -V 2>&1 | sed 5q` in
  16637. *Sun\ C*) # Sun C 5.9
  16638. whole_archive_flag_spec_GCJ='${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'
  16639. tmp_sharedflag='-G' ;;
  16640. *Sun\ F*) # Sun Fortran 8.3
  16641. tmp_sharedflag='-G' ;;
  16642. *)
  16643. tmp_sharedflag='-shared' ;;
  16644. esac
  16645. archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16646. if test $supports_anon_versioning = yes; then
  16647. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  16648. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  16649. $echo "local: *; };" >> $output_objdir/$libname.ver~
  16650. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  16651. fi
  16652. link_all_deplibs_GCJ=no
  16653. else
  16654. ld_shlibs_GCJ=no
  16655. fi
  16656. ;;
  16657. netbsd* | netbsdelf*-gnu)
  16658. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16659. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  16660. wlarc=
  16661. else
  16662. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16663. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16664. fi
  16665. ;;
  16666. solaris*)
  16667. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  16668. ld_shlibs_GCJ=no
  16669. cat <<EOF 1>&2
  16670. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  16671. *** create shared libraries on Solaris systems. Therefore, libtool
  16672. *** is disabling shared libraries support. We urge you to upgrade GNU
  16673. *** binutils to release 2.9.1 or newer. Another option is to modify
  16674. *** your PATH or compiler configuration so that the native linker is
  16675. *** used, and then restart.
  16676. EOF
  16677. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16678. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16679. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16680. else
  16681. ld_shlibs_GCJ=no
  16682. fi
  16683. ;;
  16684. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  16685. case `$LD -v 2>&1` in
  16686. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  16687. ld_shlibs_GCJ=no
  16688. cat <<_LT_EOF 1>&2
  16689. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  16690. *** reliably create shared libraries on SCO systems. Therefore, libtool
  16691. *** is disabling shared libraries support. We urge you to upgrade GNU
  16692. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  16693. *** your PATH or compiler configuration so that the native linker is
  16694. *** used, and then restart.
  16695. _LT_EOF
  16696. ;;
  16697. *)
  16698. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16699. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  16700. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  16701. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  16702. else
  16703. ld_shlibs_GCJ=no
  16704. fi
  16705. ;;
  16706. esac
  16707. ;;
  16708. sunos4*)
  16709. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16710. wlarc=
  16711. hardcode_direct_GCJ=yes
  16712. hardcode_shlibpath_var_GCJ=no
  16713. ;;
  16714. *)
  16715. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16716. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16717. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16718. else
  16719. ld_shlibs_GCJ=no
  16720. fi
  16721. ;;
  16722. esac
  16723. if test "$ld_shlibs_GCJ" = no; then
  16724. runpath_var=
  16725. hardcode_libdir_flag_spec_GCJ=
  16726. export_dynamic_flag_spec_GCJ=
  16727. whole_archive_flag_spec_GCJ=
  16728. fi
  16729. else
  16730. # PORTME fill in a description of your system's linker (not GNU ld)
  16731. case $host_os in
  16732. aix3*)
  16733. allow_undefined_flag_GCJ=unsupported
  16734. always_export_symbols_GCJ=yes
  16735. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  16736. # Note: this linker hardcodes the directories in LIBPATH if there
  16737. # are no directories specified by -L.
  16738. hardcode_minus_L_GCJ=yes
  16739. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  16740. # Neither direct hardcoding nor static linking is supported with a
  16741. # broken collect2.
  16742. hardcode_direct_GCJ=unsupported
  16743. fi
  16744. ;;
  16745. aix[4-9]*)
  16746. if test "$host_cpu" = ia64; then
  16747. # On IA64, the linker does run time linking by default, so we don't
  16748. # have to do anything special.
  16749. aix_use_runtimelinking=no
  16750. exp_sym_flag='-Bexport'
  16751. no_entry_flag=""
  16752. else
  16753. # If we're using GNU nm, then we don't want the "-C" option.
  16754. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  16755. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  16756. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  16757. else
  16758. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  16759. fi
  16760. aix_use_runtimelinking=no
  16761. # Test if we are trying to use run time linking or normal
  16762. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  16763. # need to do runtime linking.
  16764. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  16765. for ld_flag in $LDFLAGS; do
  16766. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  16767. aix_use_runtimelinking=yes
  16768. break
  16769. fi
  16770. done
  16771. ;;
  16772. esac
  16773. exp_sym_flag='-bexport'
  16774. no_entry_flag='-bnoentry'
  16775. fi
  16776. # When large executables or shared objects are built, AIX ld can
  16777. # have problems creating the table of contents. If linking a library
  16778. # or program results in "error TOC overflow" add -mminimal-toc to
  16779. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  16780. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  16781. archive_cmds_GCJ=''
  16782. hardcode_direct_GCJ=yes
  16783. hardcode_libdir_separator_GCJ=':'
  16784. link_all_deplibs_GCJ=yes
  16785. if test "$GCC" = yes; then
  16786. case $host_os in aix4.[012]|aix4.[012].*)
  16787. # We only want to do this on AIX 4.2 and lower, the check
  16788. # below for broken collect2 doesn't work under 4.3+
  16789. collect2name=`${CC} -print-prog-name=collect2`
  16790. if test -f "$collect2name" && \
  16791. strings "$collect2name" | grep resolve_lib_name >/dev/null
  16792. then
  16793. # We have reworked collect2
  16794. :
  16795. else
  16796. # We have old collect2
  16797. hardcode_direct_GCJ=unsupported
  16798. # It fails to find uninstalled libraries when the uninstalled
  16799. # path is not listed in the libpath. Setting hardcode_minus_L
  16800. # to unsupported forces relinking
  16801. hardcode_minus_L_GCJ=yes
  16802. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16803. hardcode_libdir_separator_GCJ=
  16804. fi
  16805. ;;
  16806. esac
  16807. shared_flag='-shared'
  16808. if test "$aix_use_runtimelinking" = yes; then
  16809. shared_flag="$shared_flag "'${wl}-G'
  16810. fi
  16811. else
  16812. # not using gcc
  16813. if test "$host_cpu" = ia64; then
  16814. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  16815. # chokes on -Wl,-G. The following line is correct:
  16816. shared_flag='-G'
  16817. else
  16818. if test "$aix_use_runtimelinking" = yes; then
  16819. shared_flag='${wl}-G'
  16820. else
  16821. shared_flag='${wl}-bM:SRE'
  16822. fi
  16823. fi
  16824. fi
  16825. # It seems that -bexpall does not export symbols beginning with
  16826. # underscore (_), so it is better to generate a list of symbols to export.
  16827. always_export_symbols_GCJ=yes
  16828. if test "$aix_use_runtimelinking" = yes; then
  16829. # Warning - without using the other runtime loading flags (-brtl),
  16830. # -berok will link without error, but may produce a broken library.
  16831. allow_undefined_flag_GCJ='-berok'
  16832. # Determine the default libpath from the value encoded in an empty executable.
  16833. cat >conftest.$ac_ext <<_ACEOF
  16834. /* confdefs.h. */
  16835. _ACEOF
  16836. cat confdefs.h >>conftest.$ac_ext
  16837. cat >>conftest.$ac_ext <<_ACEOF
  16838. /* end confdefs.h. */
  16839. int
  16840. main ()
  16841. {
  16842. ;
  16843. return 0;
  16844. }
  16845. _ACEOF
  16846. rm -f conftest.$ac_objext conftest$ac_exeext
  16847. if { (ac_try="$ac_link"
  16848. case "(($ac_try" in
  16849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16850. *) ac_try_echo=$ac_try;;
  16851. esac
  16852. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16853. (eval "$ac_link") 2>conftest.er1
  16854. ac_status=$?
  16855. grep -v '^ *+' conftest.er1 >conftest.err
  16856. rm -f conftest.er1
  16857. cat conftest.err >&5
  16858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16859. (exit $ac_status); } && {
  16860. test -z "$ac_c_werror_flag" ||
  16861. test ! -s conftest.err
  16862. } && test -s conftest$ac_exeext &&
  16863. $as_test_x conftest$ac_exeext; then
  16864. lt_aix_libpath_sed='
  16865. /Import File Strings/,/^$/ {
  16866. /^0/ {
  16867. s/^0 *\(.*\)$/\1/
  16868. p
  16869. }
  16870. }'
  16871. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16872. # Check for a 64-bit object if we didn't find anything.
  16873. if test -z "$aix_libpath"; then
  16874. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16875. fi
  16876. else
  16877. echo "$as_me: failed program was:" >&5
  16878. sed 's/^/| /' conftest.$ac_ext >&5
  16879. fi
  16880. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16881. conftest$ac_exeext conftest.$ac_ext
  16882. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16883. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  16884. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  16885. else
  16886. if test "$host_cpu" = ia64; then
  16887. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  16888. allow_undefined_flag_GCJ="-z nodefs"
  16889. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  16890. else
  16891. # Determine the default libpath from the value encoded in an empty executable.
  16892. cat >conftest.$ac_ext <<_ACEOF
  16893. /* confdefs.h. */
  16894. _ACEOF
  16895. cat confdefs.h >>conftest.$ac_ext
  16896. cat >>conftest.$ac_ext <<_ACEOF
  16897. /* end confdefs.h. */
  16898. int
  16899. main ()
  16900. {
  16901. ;
  16902. return 0;
  16903. }
  16904. _ACEOF
  16905. rm -f conftest.$ac_objext conftest$ac_exeext
  16906. if { (ac_try="$ac_link"
  16907. case "(($ac_try" in
  16908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16909. *) ac_try_echo=$ac_try;;
  16910. esac
  16911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16912. (eval "$ac_link") 2>conftest.er1
  16913. ac_status=$?
  16914. grep -v '^ *+' conftest.er1 >conftest.err
  16915. rm -f conftest.er1
  16916. cat conftest.err >&5
  16917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16918. (exit $ac_status); } && {
  16919. test -z "$ac_c_werror_flag" ||
  16920. test ! -s conftest.err
  16921. } && test -s conftest$ac_exeext &&
  16922. $as_test_x conftest$ac_exeext; then
  16923. lt_aix_libpath_sed='
  16924. /Import File Strings/,/^$/ {
  16925. /^0/ {
  16926. s/^0 *\(.*\)$/\1/
  16927. p
  16928. }
  16929. }'
  16930. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16931. # Check for a 64-bit object if we didn't find anything.
  16932. if test -z "$aix_libpath"; then
  16933. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16934. fi
  16935. else
  16936. echo "$as_me: failed program was:" >&5
  16937. sed 's/^/| /' conftest.$ac_ext >&5
  16938. fi
  16939. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16940. conftest$ac_exeext conftest.$ac_ext
  16941. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16942. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  16943. # Warning - without using the other run time loading flags,
  16944. # -berok will link without error, but may produce a broken library.
  16945. no_undefined_flag_GCJ=' ${wl}-bernotok'
  16946. allow_undefined_flag_GCJ=' ${wl}-berok'
  16947. # Exported symbols can be pulled into shared objects from archives
  16948. whole_archive_flag_spec_GCJ='$convenience'
  16949. archive_cmds_need_lc_GCJ=yes
  16950. # This is similar to how AIX traditionally builds its shared libraries.
  16951. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  16952. fi
  16953. fi
  16954. ;;
  16955. amigaos*)
  16956. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  16957. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16958. hardcode_minus_L_GCJ=yes
  16959. # see comment about different semantics on the GNU ld section
  16960. ld_shlibs_GCJ=no
  16961. ;;
  16962. bsdi[45]*)
  16963. export_dynamic_flag_spec_GCJ=-rdynamic
  16964. ;;
  16965. cygwin* | mingw* | pw32*)
  16966. # When not using gcc, we currently assume that we are using
  16967. # Microsoft Visual C++.
  16968. # hardcode_libdir_flag_spec is actually meaningless, as there is
  16969. # no search path for DLLs.
  16970. hardcode_libdir_flag_spec_GCJ=' '
  16971. allow_undefined_flag_GCJ=unsupported
  16972. # Tell ltmain to make .lib files, not .a files.
  16973. libext=lib
  16974. # Tell ltmain to make .dll files, not .so files.
  16975. shrext_cmds=".dll"
  16976. # FIXME: Setting linknames here is a bad hack.
  16977. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  16978. # The linker will automatically build a .lib file if we build a DLL.
  16979. old_archive_From_new_cmds_GCJ='true'
  16980. # FIXME: Should let the user specify the lib program.
  16981. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  16982. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  16983. enable_shared_with_static_runtimes_GCJ=yes
  16984. ;;
  16985. darwin* | rhapsody*)
  16986. case $host_os in
  16987. rhapsody* | darwin1.[012])
  16988. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  16989. ;;
  16990. *) # Darwin 1.3 on
  16991. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  16992. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  16993. else
  16994. case ${MACOSX_DEPLOYMENT_TARGET} in
  16995. 10.[012])
  16996. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  16997. ;;
  16998. 10.*)
  16999. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  17000. ;;
  17001. esac
  17002. fi
  17003. ;;
  17004. esac
  17005. archive_cmds_need_lc_GCJ=no
  17006. hardcode_direct_GCJ=no
  17007. hardcode_automatic_GCJ=yes
  17008. hardcode_shlibpath_var_GCJ=unsupported
  17009. whole_archive_flag_spec_GCJ=''
  17010. link_all_deplibs_GCJ=yes
  17011. if test "$GCC" = yes ; then
  17012. output_verbose_link_cmd='echo'
  17013. archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  17014. module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  17015. archive_expsym_cmds_GCJ="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}"
  17016. module_expsym_cmds_GCJ="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}"
  17017. else
  17018. case $cc_basename in
  17019. xlc*)
  17020. output_verbose_link_cmd='echo'
  17021. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  17022. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  17023. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  17024. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17025. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17026. ;;
  17027. *)
  17028. ld_shlibs_GCJ=no
  17029. ;;
  17030. esac
  17031. fi
  17032. ;;
  17033. dgux*)
  17034. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17035. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17036. hardcode_shlibpath_var_GCJ=no
  17037. ;;
  17038. freebsd1*)
  17039. ld_shlibs_GCJ=no
  17040. ;;
  17041. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  17042. # support. Future versions do this automatically, but an explicit c++rt0.o
  17043. # does not break anything, and helps significantly (at the cost of a little
  17044. # extra space).
  17045. freebsd2.2*)
  17046. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  17047. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  17048. hardcode_direct_GCJ=yes
  17049. hardcode_shlibpath_var_GCJ=no
  17050. ;;
  17051. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  17052. freebsd2*)
  17053. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  17054. hardcode_direct_GCJ=yes
  17055. hardcode_minus_L_GCJ=yes
  17056. hardcode_shlibpath_var_GCJ=no
  17057. ;;
  17058. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  17059. freebsd* | dragonfly*)
  17060. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  17061. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  17062. hardcode_direct_GCJ=yes
  17063. hardcode_shlibpath_var_GCJ=no
  17064. ;;
  17065. hpux9*)
  17066. if test "$GCC" = yes; then
  17067. archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  17068. else
  17069. archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  17070. fi
  17071. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  17072. hardcode_libdir_separator_GCJ=:
  17073. hardcode_direct_GCJ=yes
  17074. # hardcode_minus_L: Not really in the search PATH,
  17075. # but as the default location of the library.
  17076. hardcode_minus_L_GCJ=yes
  17077. export_dynamic_flag_spec_GCJ='${wl}-E'
  17078. ;;
  17079. hpux10*)
  17080. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  17081. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  17082. else
  17083. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  17084. fi
  17085. if test "$with_gnu_ld" = no; then
  17086. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  17087. hardcode_libdir_separator_GCJ=:
  17088. hardcode_direct_GCJ=yes
  17089. export_dynamic_flag_spec_GCJ='${wl}-E'
  17090. # hardcode_minus_L: Not really in the search PATH,
  17091. # but as the default location of the library.
  17092. hardcode_minus_L_GCJ=yes
  17093. fi
  17094. ;;
  17095. hpux11*)
  17096. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  17097. case $host_cpu in
  17098. hppa*64*)
  17099. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17100. ;;
  17101. ia64*)
  17102. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  17103. ;;
  17104. *)
  17105. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  17106. ;;
  17107. esac
  17108. else
  17109. case $host_cpu in
  17110. hppa*64*)
  17111. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17112. ;;
  17113. ia64*)
  17114. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  17115. ;;
  17116. *)
  17117. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  17118. ;;
  17119. esac
  17120. fi
  17121. if test "$with_gnu_ld" = no; then
  17122. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  17123. hardcode_libdir_separator_GCJ=:
  17124. case $host_cpu in
  17125. hppa*64*|ia64*)
  17126. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  17127. hardcode_direct_GCJ=no
  17128. hardcode_shlibpath_var_GCJ=no
  17129. ;;
  17130. *)
  17131. hardcode_direct_GCJ=yes
  17132. export_dynamic_flag_spec_GCJ='${wl}-E'
  17133. # hardcode_minus_L: Not really in the search PATH,
  17134. # but as the default location of the library.
  17135. hardcode_minus_L_GCJ=yes
  17136. ;;
  17137. esac
  17138. fi
  17139. ;;
  17140. irix5* | irix6* | nonstopux*)
  17141. if test "$GCC" = yes; then
  17142. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  17143. else
  17144. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  17145. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  17146. fi
  17147. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  17148. hardcode_libdir_separator_GCJ=:
  17149. link_all_deplibs_GCJ=yes
  17150. ;;
  17151. netbsd* | netbsdelf*-gnu)
  17152. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  17153. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  17154. else
  17155. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  17156. fi
  17157. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  17158. hardcode_direct_GCJ=yes
  17159. hardcode_shlibpath_var_GCJ=no
  17160. ;;
  17161. newsos6)
  17162. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17163. hardcode_direct_GCJ=yes
  17164. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  17165. hardcode_libdir_separator_GCJ=:
  17166. hardcode_shlibpath_var_GCJ=no
  17167. ;;
  17168. openbsd*)
  17169. if test -f /usr/libexec/ld.so; then
  17170. hardcode_direct_GCJ=yes
  17171. hardcode_shlibpath_var_GCJ=no
  17172. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  17173. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  17174. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  17175. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  17176. export_dynamic_flag_spec_GCJ='${wl}-E'
  17177. else
  17178. case $host_os in
  17179. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  17180. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  17181. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  17182. ;;
  17183. *)
  17184. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  17185. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  17186. ;;
  17187. esac
  17188. fi
  17189. else
  17190. ld_shlibs_GCJ=no
  17191. fi
  17192. ;;
  17193. os2*)
  17194. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17195. hardcode_minus_L_GCJ=yes
  17196. allow_undefined_flag_GCJ=unsupported
  17197. archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  17198. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  17199. ;;
  17200. osf3*)
  17201. if test "$GCC" = yes; then
  17202. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  17203. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  17204. else
  17205. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  17206. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  17207. fi
  17208. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  17209. hardcode_libdir_separator_GCJ=:
  17210. ;;
  17211. osf4* | osf5*) # as osf3* with the addition of -msym flag
  17212. if test "$GCC" = yes; then
  17213. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  17214. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  17215. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  17216. else
  17217. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  17218. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  17219. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  17220. $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'
  17221. # Both c and cxx compiler support -rpath directly
  17222. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  17223. fi
  17224. hardcode_libdir_separator_GCJ=:
  17225. ;;
  17226. solaris*)
  17227. no_undefined_flag_GCJ=' -z text'
  17228. if test "$GCC" = yes; then
  17229. wlarc='${wl}'
  17230. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17231. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  17232. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  17233. else
  17234. wlarc=''
  17235. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17236. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  17237. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  17238. fi
  17239. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  17240. hardcode_shlibpath_var_GCJ=no
  17241. case $host_os in
  17242. solaris2.[0-5] | solaris2.[0-5].*) ;;
  17243. *)
  17244. # The compiler driver will combine and reorder linker options,
  17245. # but understands `-z linker_flag'. GCC discards it without `$wl',
  17246. # but is careful enough not to reorder.
  17247. # Supported since Solaris 2.6 (maybe 2.5.1?)
  17248. if test "$GCC" = yes; then
  17249. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  17250. else
  17251. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  17252. fi
  17253. ;;
  17254. esac
  17255. link_all_deplibs_GCJ=yes
  17256. ;;
  17257. sunos4*)
  17258. if test "x$host_vendor" = xsequent; then
  17259. # Use $CC to link under sequent, because it throws in some extra .o
  17260. # files that make .init and .fini sections work.
  17261. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  17262. else
  17263. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  17264. fi
  17265. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17266. hardcode_direct_GCJ=yes
  17267. hardcode_minus_L_GCJ=yes
  17268. hardcode_shlibpath_var_GCJ=no
  17269. ;;
  17270. sysv4)
  17271. case $host_vendor in
  17272. sni)
  17273. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17274. hardcode_direct_GCJ=yes # is this really true???
  17275. ;;
  17276. siemens)
  17277. ## LD is ld it makes a PLAMLIB
  17278. ## CC just makes a GrossModule.
  17279. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  17280. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  17281. hardcode_direct_GCJ=no
  17282. ;;
  17283. motorola)
  17284. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17285. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  17286. ;;
  17287. esac
  17288. runpath_var='LD_RUN_PATH'
  17289. hardcode_shlibpath_var_GCJ=no
  17290. ;;
  17291. sysv4.3*)
  17292. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17293. hardcode_shlibpath_var_GCJ=no
  17294. export_dynamic_flag_spec_GCJ='-Bexport'
  17295. ;;
  17296. sysv4*MP*)
  17297. if test -d /usr/nec; then
  17298. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17299. hardcode_shlibpath_var_GCJ=no
  17300. runpath_var=LD_RUN_PATH
  17301. hardcode_runpath_var=yes
  17302. ld_shlibs_GCJ=yes
  17303. fi
  17304. ;;
  17305. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  17306. no_undefined_flag_GCJ='${wl}-z,text'
  17307. archive_cmds_need_lc_GCJ=no
  17308. hardcode_shlibpath_var_GCJ=no
  17309. runpath_var='LD_RUN_PATH'
  17310. if test "$GCC" = yes; then
  17311. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17312. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17313. else
  17314. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17315. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17316. fi
  17317. ;;
  17318. sysv5* | sco3.2v5* | sco5v6*)
  17319. # Note: We can NOT use -z defs as we might desire, because we do not
  17320. # link with -lc, and that would cause any symbols used from libc to
  17321. # always be unresolved, which means just about no library would
  17322. # ever link correctly. If we're not using GNU ld we use -z text
  17323. # though, which does catch some bad symbols but isn't as heavy-handed
  17324. # as -z defs.
  17325. no_undefined_flag_GCJ='${wl}-z,text'
  17326. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  17327. archive_cmds_need_lc_GCJ=no
  17328. hardcode_shlibpath_var_GCJ=no
  17329. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  17330. hardcode_libdir_separator_GCJ=':'
  17331. link_all_deplibs_GCJ=yes
  17332. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  17333. runpath_var='LD_RUN_PATH'
  17334. if test "$GCC" = yes; then
  17335. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17336. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17337. else
  17338. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17339. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17340. fi
  17341. ;;
  17342. uts4*)
  17343. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17344. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17345. hardcode_shlibpath_var_GCJ=no
  17346. ;;
  17347. *)
  17348. ld_shlibs_GCJ=no
  17349. ;;
  17350. esac
  17351. fi
  17352. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  17353. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  17354. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  17355. #
  17356. # Do we need to explicitly link libc?
  17357. #
  17358. case "x$archive_cmds_need_lc_GCJ" in
  17359. x|xyes)
  17360. # Assume -lc should be added
  17361. archive_cmds_need_lc_GCJ=yes
  17362. if test "$enable_shared" = yes && test "$GCC" = yes; then
  17363. case $archive_cmds_GCJ in
  17364. *'~'*)
  17365. # FIXME: we may have to deal with multi-command sequences.
  17366. ;;
  17367. '$CC '*)
  17368. # Test whether the compiler implicitly links with -lc since on some
  17369. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  17370. # to ld, don't add -lc before -lgcc.
  17371. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  17372. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  17373. $rm conftest*
  17374. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17375. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17376. (eval $ac_compile) 2>&5
  17377. ac_status=$?
  17378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17379. (exit $ac_status); } 2>conftest.err; then
  17380. soname=conftest
  17381. lib=conftest
  17382. libobjs=conftest.$ac_objext
  17383. deplibs=
  17384. wl=$lt_prog_compiler_wl_GCJ
  17385. pic_flag=$lt_prog_compiler_pic_GCJ
  17386. compiler_flags=-v
  17387. linker_flags=-v
  17388. verstring=
  17389. output_objdir=.
  17390. libname=conftest
  17391. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  17392. allow_undefined_flag_GCJ=
  17393. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  17394. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  17395. ac_status=$?
  17396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17397. (exit $ac_status); }
  17398. then
  17399. archive_cmds_need_lc_GCJ=no
  17400. else
  17401. archive_cmds_need_lc_GCJ=yes
  17402. fi
  17403. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  17404. else
  17405. cat conftest.err 1>&5
  17406. fi
  17407. $rm conftest*
  17408. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  17409. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  17410. ;;
  17411. esac
  17412. fi
  17413. ;;
  17414. esac
  17415. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  17416. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  17417. library_names_spec=
  17418. libname_spec='lib$name'
  17419. soname_spec=
  17420. shrext_cmds=".so"
  17421. postinstall_cmds=
  17422. postuninstall_cmds=
  17423. finish_cmds=
  17424. finish_eval=
  17425. shlibpath_var=
  17426. shlibpath_overrides_runpath=unknown
  17427. version_type=none
  17428. dynamic_linker="$host_os ld.so"
  17429. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  17430. need_lib_prefix=unknown
  17431. hardcode_into_libs=no
  17432. # when you set need_version to no, make sure it does not cause -set_version
  17433. # flags to be left without arguments
  17434. need_version=unknown
  17435. case $host_os in
  17436. aix3*)
  17437. version_type=linux
  17438. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  17439. shlibpath_var=LIBPATH
  17440. # AIX 3 has no versioning support, so we append a major version to the name.
  17441. soname_spec='${libname}${release}${shared_ext}$major'
  17442. ;;
  17443. aix[4-9]*)
  17444. version_type=linux
  17445. need_lib_prefix=no
  17446. need_version=no
  17447. hardcode_into_libs=yes
  17448. if test "$host_cpu" = ia64; then
  17449. # AIX 5 supports IA64
  17450. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  17451. shlibpath_var=LD_LIBRARY_PATH
  17452. else
  17453. # With GCC up to 2.95.x, collect2 would create an import file
  17454. # for dependence libraries. The import file would start with
  17455. # the line `#! .'. This would cause the generated library to
  17456. # depend on `.', always an invalid library. This was fixed in
  17457. # development snapshots of GCC prior to 3.0.
  17458. case $host_os in
  17459. aix4 | aix4.[01] | aix4.[01].*)
  17460. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  17461. echo ' yes '
  17462. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  17463. :
  17464. else
  17465. can_build_shared=no
  17466. fi
  17467. ;;
  17468. esac
  17469. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  17470. # soname into executable. Probably we can add versioning support to
  17471. # collect2, so additional links can be useful in future.
  17472. if test "$aix_use_runtimelinking" = yes; then
  17473. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  17474. # instead of lib<name>.a to let people know that these are not
  17475. # typical AIX shared libraries.
  17476. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17477. else
  17478. # We preserve .a as extension for shared libraries through AIX4.2
  17479. # and later when we are not doing run time linking.
  17480. library_names_spec='${libname}${release}.a $libname.a'
  17481. soname_spec='${libname}${release}${shared_ext}$major'
  17482. fi
  17483. shlibpath_var=LIBPATH
  17484. fi
  17485. ;;
  17486. amigaos*)
  17487. library_names_spec='$libname.ixlibrary $libname.a'
  17488. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  17489. 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'
  17490. ;;
  17491. beos*)
  17492. library_names_spec='${libname}${shared_ext}'
  17493. dynamic_linker="$host_os ld.so"
  17494. shlibpath_var=LIBRARY_PATH
  17495. ;;
  17496. bsdi[45]*)
  17497. version_type=linux
  17498. need_version=no
  17499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17500. soname_spec='${libname}${release}${shared_ext}$major'
  17501. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  17502. shlibpath_var=LD_LIBRARY_PATH
  17503. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  17504. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  17505. # the default ld.so.conf also contains /usr/contrib/lib and
  17506. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  17507. # libtool to hard-code these into programs
  17508. ;;
  17509. cygwin* | mingw* | pw32*)
  17510. version_type=windows
  17511. shrext_cmds=".dll"
  17512. need_version=no
  17513. need_lib_prefix=no
  17514. case $GCC,$host_os in
  17515. yes,cygwin* | yes,mingw* | yes,pw32*)
  17516. library_names_spec='$libname.dll.a'
  17517. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  17518. postinstall_cmds='base_file=`basename \${file}`~
  17519. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  17520. dldir=$destdir/`dirname \$dlpath`~
  17521. test -d \$dldir || mkdir -p \$dldir~
  17522. $install_prog $dir/$dlname \$dldir/$dlname~
  17523. chmod a+x \$dldir/$dlname'
  17524. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  17525. dlpath=$dir/\$dldll~
  17526. $rm \$dlpath'
  17527. shlibpath_overrides_runpath=yes
  17528. case $host_os in
  17529. cygwin*)
  17530. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  17531. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17532. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  17533. ;;
  17534. mingw*)
  17535. # MinGW DLLs use traditional 'lib' prefix
  17536. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17537. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  17538. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  17539. # It is most probably a Windows format PATH printed by
  17540. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  17541. # path with ; separators, and with drive letters. We can handle the
  17542. # drive letters (cygwin fileutils understands them), so leave them,
  17543. # especially as we might pass files found there to a mingw objdump,
  17544. # which wouldn't understand a cygwinified path. Ahh.
  17545. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  17546. else
  17547. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  17548. fi
  17549. ;;
  17550. pw32*)
  17551. # pw32 DLLs use 'pw' prefix rather than 'lib'
  17552. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17553. ;;
  17554. esac
  17555. ;;
  17556. *)
  17557. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  17558. ;;
  17559. esac
  17560. dynamic_linker='Win32 ld.exe'
  17561. # FIXME: first we should search . and the directory the executable is in
  17562. shlibpath_var=PATH
  17563. ;;
  17564. darwin* | rhapsody*)
  17565. dynamic_linker="$host_os dyld"
  17566. version_type=darwin
  17567. need_lib_prefix=no
  17568. need_version=no
  17569. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  17570. soname_spec='${libname}${release}${major}$shared_ext'
  17571. shlibpath_overrides_runpath=yes
  17572. shlibpath_var=DYLD_LIBRARY_PATH
  17573. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  17574. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  17575. ;;
  17576. dgux*)
  17577. version_type=linux
  17578. need_lib_prefix=no
  17579. need_version=no
  17580. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  17581. soname_spec='${libname}${release}${shared_ext}$major'
  17582. shlibpath_var=LD_LIBRARY_PATH
  17583. ;;
  17584. freebsd1*)
  17585. dynamic_linker=no
  17586. ;;
  17587. freebsd* | dragonfly*)
  17588. # DragonFly does not have aout. When/if they implement a new
  17589. # versioning mechanism, adjust this.
  17590. if test -x /usr/bin/objformat; then
  17591. objformat=`/usr/bin/objformat`
  17592. else
  17593. case $host_os in
  17594. freebsd[123]*) objformat=aout ;;
  17595. *) objformat=elf ;;
  17596. esac
  17597. fi
  17598. version_type=freebsd-$objformat
  17599. case $version_type in
  17600. freebsd-elf*)
  17601. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  17602. need_version=no
  17603. need_lib_prefix=no
  17604. ;;
  17605. freebsd-*)
  17606. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  17607. need_version=yes
  17608. ;;
  17609. esac
  17610. shlibpath_var=LD_LIBRARY_PATH
  17611. case $host_os in
  17612. freebsd2*)
  17613. shlibpath_overrides_runpath=yes
  17614. ;;
  17615. freebsd3.[01]* | freebsdelf3.[01]*)
  17616. shlibpath_overrides_runpath=yes
  17617. hardcode_into_libs=yes
  17618. ;;
  17619. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  17620. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  17621. shlibpath_overrides_runpath=no
  17622. hardcode_into_libs=yes
  17623. ;;
  17624. *) # from 4.6 on, and DragonFly
  17625. shlibpath_overrides_runpath=yes
  17626. hardcode_into_libs=yes
  17627. ;;
  17628. esac
  17629. ;;
  17630. gnu*)
  17631. version_type=linux
  17632. need_lib_prefix=no
  17633. need_version=no
  17634. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  17635. soname_spec='${libname}${release}${shared_ext}$major'
  17636. shlibpath_var=LD_LIBRARY_PATH
  17637. hardcode_into_libs=yes
  17638. ;;
  17639. hpux9* | hpux10* | hpux11*)
  17640. # Give a soname corresponding to the major version so that dld.sl refuses to
  17641. # link against other versions.
  17642. version_type=sunos
  17643. need_lib_prefix=no
  17644. need_version=no
  17645. case $host_cpu in
  17646. ia64*)
  17647. shrext_cmds='.so'
  17648. hardcode_into_libs=yes
  17649. dynamic_linker="$host_os dld.so"
  17650. shlibpath_var=LD_LIBRARY_PATH
  17651. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17652. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17653. soname_spec='${libname}${release}${shared_ext}$major'
  17654. if test "X$HPUX_IA64_MODE" = X32; then
  17655. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  17656. else
  17657. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  17658. fi
  17659. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17660. ;;
  17661. hppa*64*)
  17662. shrext_cmds='.sl'
  17663. hardcode_into_libs=yes
  17664. dynamic_linker="$host_os dld.sl"
  17665. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  17666. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17667. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17668. soname_spec='${libname}${release}${shared_ext}$major'
  17669. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  17670. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17671. ;;
  17672. *)
  17673. shrext_cmds='.sl'
  17674. dynamic_linker="$host_os dld.sl"
  17675. shlibpath_var=SHLIB_PATH
  17676. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  17677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17678. soname_spec='${libname}${release}${shared_ext}$major'
  17679. ;;
  17680. esac
  17681. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  17682. postinstall_cmds='chmod 555 $lib'
  17683. ;;
  17684. interix[3-9]*)
  17685. version_type=linux
  17686. need_lib_prefix=no
  17687. need_version=no
  17688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17689. soname_spec='${libname}${release}${shared_ext}$major'
  17690. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  17691. shlibpath_var=LD_LIBRARY_PATH
  17692. shlibpath_overrides_runpath=no
  17693. hardcode_into_libs=yes
  17694. ;;
  17695. irix5* | irix6* | nonstopux*)
  17696. case $host_os in
  17697. nonstopux*) version_type=nonstopux ;;
  17698. *)
  17699. if test "$lt_cv_prog_gnu_ld" = yes; then
  17700. version_type=linux
  17701. else
  17702. version_type=irix
  17703. fi ;;
  17704. esac
  17705. need_lib_prefix=no
  17706. need_version=no
  17707. soname_spec='${libname}${release}${shared_ext}$major'
  17708. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  17709. case $host_os in
  17710. irix5* | nonstopux*)
  17711. libsuff= shlibsuff=
  17712. ;;
  17713. *)
  17714. case $LD in # libtool.m4 will add one of these switches to LD
  17715. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  17716. libsuff= shlibsuff= libmagic=32-bit;;
  17717. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  17718. libsuff=32 shlibsuff=N32 libmagic=N32;;
  17719. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  17720. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  17721. *) libsuff= shlibsuff= libmagic=never-match;;
  17722. esac
  17723. ;;
  17724. esac
  17725. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  17726. shlibpath_overrides_runpath=no
  17727. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  17728. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  17729. hardcode_into_libs=yes
  17730. ;;
  17731. # No shared lib support for Linux oldld, aout, or coff.
  17732. linux*oldld* | linux*aout* | linux*coff*)
  17733. dynamic_linker=no
  17734. ;;
  17735. # This must be Linux ELF.
  17736. linux* | k*bsd*-gnu)
  17737. version_type=linux
  17738. need_lib_prefix=no
  17739. need_version=no
  17740. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17741. soname_spec='${libname}${release}${shared_ext}$major'
  17742. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  17743. shlibpath_var=LD_LIBRARY_PATH
  17744. shlibpath_overrides_runpath=no
  17745. # This implies no fast_install, which is unacceptable.
  17746. # Some rework will be needed to allow for fast_install
  17747. # before this can be enabled.
  17748. hardcode_into_libs=yes
  17749. # Append ld.so.conf contents to the search path
  17750. if test -f /etc/ld.so.conf; then
  17751. 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' ' '`
  17752. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  17753. fi
  17754. # We used to test for /lib/ld.so.1 and disable shared libraries on
  17755. # powerpc, because MkLinux only supported shared libraries with the
  17756. # GNU dynamic linker. Since this was broken with cross compilers,
  17757. # most powerpc-linux boxes support dynamic linking these days and
  17758. # people can always --disable-shared, the test was removed, and we
  17759. # assume the GNU/Linux dynamic linker is in use.
  17760. dynamic_linker='GNU/Linux ld.so'
  17761. ;;
  17762. netbsdelf*-gnu)
  17763. version_type=linux
  17764. need_lib_prefix=no
  17765. need_version=no
  17766. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17767. soname_spec='${libname}${release}${shared_ext}$major'
  17768. shlibpath_var=LD_LIBRARY_PATH
  17769. shlibpath_overrides_runpath=no
  17770. hardcode_into_libs=yes
  17771. dynamic_linker='NetBSD ld.elf_so'
  17772. ;;
  17773. netbsd*)
  17774. version_type=sunos
  17775. need_lib_prefix=no
  17776. need_version=no
  17777. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  17778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17779. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17780. dynamic_linker='NetBSD (a.out) ld.so'
  17781. else
  17782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17783. soname_spec='${libname}${release}${shared_ext}$major'
  17784. dynamic_linker='NetBSD ld.elf_so'
  17785. fi
  17786. shlibpath_var=LD_LIBRARY_PATH
  17787. shlibpath_overrides_runpath=yes
  17788. hardcode_into_libs=yes
  17789. ;;
  17790. newsos6)
  17791. version_type=linux
  17792. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17793. shlibpath_var=LD_LIBRARY_PATH
  17794. shlibpath_overrides_runpath=yes
  17795. ;;
  17796. nto-qnx*)
  17797. version_type=linux
  17798. need_lib_prefix=no
  17799. need_version=no
  17800. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17801. soname_spec='${libname}${release}${shared_ext}$major'
  17802. shlibpath_var=LD_LIBRARY_PATH
  17803. shlibpath_overrides_runpath=yes
  17804. ;;
  17805. openbsd*)
  17806. version_type=sunos
  17807. sys_lib_dlsearch_path_spec="/usr/lib"
  17808. need_lib_prefix=no
  17809. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  17810. case $host_os in
  17811. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  17812. *) need_version=no ;;
  17813. esac
  17814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17815. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17816. shlibpath_var=LD_LIBRARY_PATH
  17817. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  17818. case $host_os in
  17819. openbsd2.[89] | openbsd2.[89].*)
  17820. shlibpath_overrides_runpath=no
  17821. ;;
  17822. *)
  17823. shlibpath_overrides_runpath=yes
  17824. ;;
  17825. esac
  17826. else
  17827. shlibpath_overrides_runpath=yes
  17828. fi
  17829. ;;
  17830. os2*)
  17831. libname_spec='$name'
  17832. shrext_cmds=".dll"
  17833. need_lib_prefix=no
  17834. library_names_spec='$libname${shared_ext} $libname.a'
  17835. dynamic_linker='OS/2 ld.exe'
  17836. shlibpath_var=LIBPATH
  17837. ;;
  17838. osf3* | osf4* | osf5*)
  17839. version_type=osf
  17840. need_lib_prefix=no
  17841. need_version=no
  17842. soname_spec='${libname}${release}${shared_ext}$major'
  17843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17844. shlibpath_var=LD_LIBRARY_PATH
  17845. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  17846. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  17847. ;;
  17848. rdos*)
  17849. dynamic_linker=no
  17850. ;;
  17851. solaris*)
  17852. version_type=linux
  17853. need_lib_prefix=no
  17854. need_version=no
  17855. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17856. soname_spec='${libname}${release}${shared_ext}$major'
  17857. shlibpath_var=LD_LIBRARY_PATH
  17858. shlibpath_overrides_runpath=yes
  17859. hardcode_into_libs=yes
  17860. # ldd complains unless libraries are executable
  17861. postinstall_cmds='chmod +x $lib'
  17862. ;;
  17863. sunos4*)
  17864. version_type=sunos
  17865. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17866. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  17867. shlibpath_var=LD_LIBRARY_PATH
  17868. shlibpath_overrides_runpath=yes
  17869. if test "$with_gnu_ld" = yes; then
  17870. need_lib_prefix=no
  17871. fi
  17872. need_version=yes
  17873. ;;
  17874. sysv4 | sysv4.3*)
  17875. version_type=linux
  17876. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17877. soname_spec='${libname}${release}${shared_ext}$major'
  17878. shlibpath_var=LD_LIBRARY_PATH
  17879. case $host_vendor in
  17880. sni)
  17881. shlibpath_overrides_runpath=no
  17882. need_lib_prefix=no
  17883. export_dynamic_flag_spec='${wl}-Blargedynsym'
  17884. runpath_var=LD_RUN_PATH
  17885. ;;
  17886. siemens)
  17887. need_lib_prefix=no
  17888. ;;
  17889. motorola)
  17890. need_lib_prefix=no
  17891. need_version=no
  17892. shlibpath_overrides_runpath=no
  17893. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  17894. ;;
  17895. esac
  17896. ;;
  17897. sysv4*MP*)
  17898. if test -d /usr/nec ;then
  17899. version_type=linux
  17900. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  17901. soname_spec='$libname${shared_ext}.$major'
  17902. shlibpath_var=LD_LIBRARY_PATH
  17903. fi
  17904. ;;
  17905. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  17906. version_type=freebsd-elf
  17907. need_lib_prefix=no
  17908. need_version=no
  17909. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  17910. soname_spec='${libname}${release}${shared_ext}$major'
  17911. shlibpath_var=LD_LIBRARY_PATH
  17912. hardcode_into_libs=yes
  17913. if test "$with_gnu_ld" = yes; then
  17914. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  17915. shlibpath_overrides_runpath=no
  17916. else
  17917. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  17918. shlibpath_overrides_runpath=yes
  17919. case $host_os in
  17920. sco3.2v5*)
  17921. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  17922. ;;
  17923. esac
  17924. fi
  17925. sys_lib_dlsearch_path_spec='/usr/lib'
  17926. ;;
  17927. uts4*)
  17928. version_type=linux
  17929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17930. soname_spec='${libname}${release}${shared_ext}$major'
  17931. shlibpath_var=LD_LIBRARY_PATH
  17932. ;;
  17933. *)
  17934. dynamic_linker=no
  17935. ;;
  17936. esac
  17937. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  17938. echo "${ECHO_T}$dynamic_linker" >&6; }
  17939. test "$dynamic_linker" = no && can_build_shared=no
  17940. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  17941. echo $ECHO_N "(cached) $ECHO_C" >&6
  17942. else
  17943. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  17944. fi
  17945. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  17946. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  17947. echo $ECHO_N "(cached) $ECHO_C" >&6
  17948. else
  17949. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  17950. fi
  17951. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  17952. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  17953. if test "$GCC" = yes; then
  17954. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  17955. fi
  17956. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  17957. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  17958. hardcode_action_GCJ=
  17959. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  17960. test -n "$runpath_var_GCJ" || \
  17961. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  17962. # We can hardcode non-existant directories.
  17963. if test "$hardcode_direct_GCJ" != no &&
  17964. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  17965. # have to relink, otherwise we might link with an installed library
  17966. # when we should be linking with a yet-to-be-installed one
  17967. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  17968. test "$hardcode_minus_L_GCJ" != no; then
  17969. # Linking always hardcodes the temporary library directory.
  17970. hardcode_action_GCJ=relink
  17971. else
  17972. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  17973. hardcode_action_GCJ=immediate
  17974. fi
  17975. else
  17976. # We cannot hardcode anything, or else we can only hardcode existing
  17977. # directories.
  17978. hardcode_action_GCJ=unsupported
  17979. fi
  17980. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  17981. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  17982. if test "$hardcode_action_GCJ" = relink; then
  17983. # Fast installation is not supported
  17984. enable_fast_install=no
  17985. elif test "$shlibpath_overrides_runpath" = yes ||
  17986. test "$enable_shared" = no; then
  17987. # Fast installation is not necessary
  17988. enable_fast_install=needless
  17989. fi
  17990. # The else clause should only fire when bootstrapping the
  17991. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17992. # with your package, and you will get complaints that there are
  17993. # no rules to generate ltmain.sh.
  17994. if test -f "$ltmain"; then
  17995. # See if we are running on zsh, and set the options which allow our commands through
  17996. # without removal of \ escapes.
  17997. if test -n "${ZSH_VERSION+set}" ; then
  17998. setopt NO_GLOB_SUBST
  17999. fi
  18000. # Now quote all the things that may contain metacharacters while being
  18001. # careful not to overquote the AC_SUBSTed values. We take copies of the
  18002. # variables and quote the copies for generation of the libtool script.
  18003. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  18004. SED SHELL STRIP \
  18005. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  18006. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  18007. deplibs_check_method reload_flag reload_cmds need_locks \
  18008. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  18009. lt_cv_sys_global_symbol_to_c_name_address \
  18010. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  18011. old_postinstall_cmds old_postuninstall_cmds \
  18012. compiler_GCJ \
  18013. CC_GCJ \
  18014. LD_GCJ \
  18015. lt_prog_compiler_wl_GCJ \
  18016. lt_prog_compiler_pic_GCJ \
  18017. lt_prog_compiler_static_GCJ \
  18018. lt_prog_compiler_no_builtin_flag_GCJ \
  18019. export_dynamic_flag_spec_GCJ \
  18020. thread_safe_flag_spec_GCJ \
  18021. whole_archive_flag_spec_GCJ \
  18022. enable_shared_with_static_runtimes_GCJ \
  18023. old_archive_cmds_GCJ \
  18024. old_archive_from_new_cmds_GCJ \
  18025. predep_objects_GCJ \
  18026. postdep_objects_GCJ \
  18027. predeps_GCJ \
  18028. postdeps_GCJ \
  18029. compiler_lib_search_path_GCJ \
  18030. compiler_lib_search_dirs_GCJ \
  18031. archive_cmds_GCJ \
  18032. archive_expsym_cmds_GCJ \
  18033. postinstall_cmds_GCJ \
  18034. postuninstall_cmds_GCJ \
  18035. old_archive_from_expsyms_cmds_GCJ \
  18036. allow_undefined_flag_GCJ \
  18037. no_undefined_flag_GCJ \
  18038. export_symbols_cmds_GCJ \
  18039. hardcode_libdir_flag_spec_GCJ \
  18040. hardcode_libdir_flag_spec_ld_GCJ \
  18041. hardcode_libdir_separator_GCJ \
  18042. hardcode_automatic_GCJ \
  18043. module_cmds_GCJ \
  18044. module_expsym_cmds_GCJ \
  18045. lt_cv_prog_compiler_c_o_GCJ \
  18046. fix_srcfile_path_GCJ \
  18047. exclude_expsyms_GCJ \
  18048. include_expsyms_GCJ; do
  18049. case $var in
  18050. old_archive_cmds_GCJ | \
  18051. old_archive_from_new_cmds_GCJ | \
  18052. archive_cmds_GCJ | \
  18053. archive_expsym_cmds_GCJ | \
  18054. module_cmds_GCJ | \
  18055. module_expsym_cmds_GCJ | \
  18056. old_archive_from_expsyms_cmds_GCJ | \
  18057. export_symbols_cmds_GCJ | \
  18058. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  18059. postinstall_cmds | postuninstall_cmds | \
  18060. old_postinstall_cmds | old_postuninstall_cmds | \
  18061. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  18062. # Double-quote double-evaled strings.
  18063. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  18064. ;;
  18065. *)
  18066. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  18067. ;;
  18068. esac
  18069. done
  18070. case $lt_echo in
  18071. *'\$0 --fallback-echo"')
  18072. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  18073. ;;
  18074. esac
  18075. cfgfile="$ofile"
  18076. cat <<__EOF__ >> "$cfgfile"
  18077. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  18078. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  18079. # Shell to use when invoking shell scripts.
  18080. SHELL=$lt_SHELL
  18081. # Whether or not to build shared libraries.
  18082. build_libtool_libs=$enable_shared
  18083. # Whether or not to build static libraries.
  18084. build_old_libs=$enable_static
  18085. # Whether or not to add -lc for building shared libraries.
  18086. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  18087. # Whether or not to disallow shared libs when runtime libs are static
  18088. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  18089. # Whether or not to optimize for fast installation.
  18090. fast_install=$enable_fast_install
  18091. # The host system.
  18092. host_alias=$host_alias
  18093. host=$host
  18094. host_os=$host_os
  18095. # The build system.
  18096. build_alias=$build_alias
  18097. build=$build
  18098. build_os=$build_os
  18099. # An echo program that does not interpret backslashes.
  18100. echo=$lt_echo
  18101. # The archiver.
  18102. AR=$lt_AR
  18103. AR_FLAGS=$lt_AR_FLAGS
  18104. # A C compiler.
  18105. LTCC=$lt_LTCC
  18106. # LTCC compiler flags.
  18107. LTCFLAGS=$lt_LTCFLAGS
  18108. # A language-specific compiler.
  18109. CC=$lt_compiler_GCJ
  18110. # Is the compiler the GNU C compiler?
  18111. with_gcc=$GCC_GCJ
  18112. # An ERE matcher.
  18113. EGREP=$lt_EGREP
  18114. # The linker used to build libraries.
  18115. LD=$lt_LD_GCJ
  18116. # Whether we need hard or soft links.
  18117. LN_S=$lt_LN_S
  18118. # A BSD-compatible nm program.
  18119. NM=$lt_NM
  18120. # A symbol stripping program
  18121. STRIP=$lt_STRIP
  18122. # Used to examine libraries when file_magic_cmd begins "file"
  18123. MAGIC_CMD=$MAGIC_CMD
  18124. # Used on cygwin: DLL creation program.
  18125. DLLTOOL="$DLLTOOL"
  18126. # Used on cygwin: object dumper.
  18127. OBJDUMP="$OBJDUMP"
  18128. # Used on cygwin: assembler.
  18129. AS="$AS"
  18130. # The name of the directory that contains temporary libtool files.
  18131. objdir=$objdir
  18132. # How to create reloadable object files.
  18133. reload_flag=$lt_reload_flag
  18134. reload_cmds=$lt_reload_cmds
  18135. # How to pass a linker flag through the compiler.
  18136. wl=$lt_lt_prog_compiler_wl_GCJ
  18137. # Object file suffix (normally "o").
  18138. objext="$ac_objext"
  18139. # Old archive suffix (normally "a").
  18140. libext="$libext"
  18141. # Shared library suffix (normally ".so").
  18142. shrext_cmds='$shrext_cmds'
  18143. # Executable file suffix (normally "").
  18144. exeext="$exeext"
  18145. # Additional compiler flags for building library objects.
  18146. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  18147. pic_mode=$pic_mode
  18148. # What is the maximum length of a command?
  18149. max_cmd_len=$lt_cv_sys_max_cmd_len
  18150. # Does compiler simultaneously support -c and -o options?
  18151. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  18152. # Must we lock files when doing compilation?
  18153. need_locks=$lt_need_locks
  18154. # Do we need the lib prefix for modules?
  18155. need_lib_prefix=$need_lib_prefix
  18156. # Do we need a version for libraries?
  18157. need_version=$need_version
  18158. # Whether dlopen is supported.
  18159. dlopen_support=$enable_dlopen
  18160. # Whether dlopen of programs is supported.
  18161. dlopen_self=$enable_dlopen_self
  18162. # Whether dlopen of statically linked programs is supported.
  18163. dlopen_self_static=$enable_dlopen_self_static
  18164. # Compiler flag to prevent dynamic linking.
  18165. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  18166. # Compiler flag to turn off builtin functions.
  18167. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  18168. # Compiler flag to allow reflexive dlopens.
  18169. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  18170. # Compiler flag to generate shared objects directly from archives.
  18171. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  18172. # Compiler flag to generate thread-safe objects.
  18173. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  18174. # Library versioning type.
  18175. version_type=$version_type
  18176. # Format of library name prefix.
  18177. libname_spec=$lt_libname_spec
  18178. # List of archive names. First name is the real one, the rest are links.
  18179. # The last name is the one that the linker finds with -lNAME.
  18180. library_names_spec=$lt_library_names_spec
  18181. # The coded name of the library, if different from the real name.
  18182. soname_spec=$lt_soname_spec
  18183. # Commands used to build and install an old-style archive.
  18184. RANLIB=$lt_RANLIB
  18185. old_archive_cmds=$lt_old_archive_cmds_GCJ
  18186. old_postinstall_cmds=$lt_old_postinstall_cmds
  18187. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18188. # Create an old-style archive from a shared archive.
  18189. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  18190. # Create a temporary old-style archive to link instead of a shared archive.
  18191. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  18192. # Commands used to build and install a shared archive.
  18193. archive_cmds=$lt_archive_cmds_GCJ
  18194. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  18195. postinstall_cmds=$lt_postinstall_cmds
  18196. postuninstall_cmds=$lt_postuninstall_cmds
  18197. # Commands used to build a loadable module (assumed same as above if empty)
  18198. module_cmds=$lt_module_cmds_GCJ
  18199. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  18200. # Commands to strip libraries.
  18201. old_striplib=$lt_old_striplib
  18202. striplib=$lt_striplib
  18203. # Dependencies to place before the objects being linked to create a
  18204. # shared library.
  18205. predep_objects=$lt_predep_objects_GCJ
  18206. # Dependencies to place after the objects being linked to create a
  18207. # shared library.
  18208. postdep_objects=$lt_postdep_objects_GCJ
  18209. # Dependencies to place before the objects being linked to create a
  18210. # shared library.
  18211. predeps=$lt_predeps_GCJ
  18212. # Dependencies to place after the objects being linked to create a
  18213. # shared library.
  18214. postdeps=$lt_postdeps_GCJ
  18215. # The directories searched by this compiler when creating a shared
  18216. # library
  18217. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
  18218. # The library search path used internally by the compiler when linking
  18219. # a shared library.
  18220. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  18221. # Method to check whether dependent libraries are shared objects.
  18222. deplibs_check_method=$lt_deplibs_check_method
  18223. # Command to use when deplibs_check_method == file_magic.
  18224. file_magic_cmd=$lt_file_magic_cmd
  18225. # Flag that allows shared libraries with undefined symbols to be built.
  18226. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  18227. # Flag that forces no undefined symbols.
  18228. no_undefined_flag=$lt_no_undefined_flag_GCJ
  18229. # Commands used to finish a libtool library installation in a directory.
  18230. finish_cmds=$lt_finish_cmds
  18231. # Same as above, but a single script fragment to be evaled but not shown.
  18232. finish_eval=$lt_finish_eval
  18233. # Take the output of nm and produce a listing of raw symbols and C names.
  18234. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18235. # Transform the output of nm in a proper C declaration
  18236. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18237. # Transform the output of nm in a C name address pair
  18238. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18239. # This is the shared library runtime path variable.
  18240. runpath_var=$runpath_var
  18241. # This is the shared library path variable.
  18242. shlibpath_var=$shlibpath_var
  18243. # Is shlibpath searched before the hard-coded library search path?
  18244. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18245. # How to hardcode a shared library path into an executable.
  18246. hardcode_action=$hardcode_action_GCJ
  18247. # Whether we should hardcode library paths into libraries.
  18248. hardcode_into_libs=$hardcode_into_libs
  18249. # Flag to hardcode \$libdir into a binary during linking.
  18250. # This must work even if \$libdir does not exist.
  18251. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  18252. # If ld is used when linking, flag to hardcode \$libdir into
  18253. # a binary during linking. This must work even if \$libdir does
  18254. # not exist.
  18255. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  18256. # Whether we need a single -rpath flag with a separated argument.
  18257. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  18258. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  18259. # resulting binary.
  18260. hardcode_direct=$hardcode_direct_GCJ
  18261. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  18262. # resulting binary.
  18263. hardcode_minus_L=$hardcode_minus_L_GCJ
  18264. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  18265. # the resulting binary.
  18266. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  18267. # Set to yes if building a shared library automatically hardcodes DIR into the library
  18268. # and all subsequent libraries and executables linked against it.
  18269. hardcode_automatic=$hardcode_automatic_GCJ
  18270. # Variables whose values should be saved in libtool wrapper scripts and
  18271. # restored at relink time.
  18272. variables_saved_for_relink="$variables_saved_for_relink"
  18273. # Whether libtool must link a program against all its dependency libraries.
  18274. link_all_deplibs=$link_all_deplibs_GCJ
  18275. # Compile-time system search path for libraries
  18276. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18277. # Run-time system search path for libraries
  18278. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  18279. # Fix the shell variable \$srcfile for the compiler.
  18280. fix_srcfile_path=$lt_fix_srcfile_path
  18281. # Set to yes if exported symbols are required.
  18282. always_export_symbols=$always_export_symbols_GCJ
  18283. # The commands to list exported symbols.
  18284. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  18285. # The commands to extract the exported symbol list from a shared archive.
  18286. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18287. # Symbols that should not be listed in the preloaded symbols.
  18288. exclude_expsyms=$lt_exclude_expsyms_GCJ
  18289. # Symbols that must always be exported.
  18290. include_expsyms=$lt_include_expsyms_GCJ
  18291. # ### END LIBTOOL TAG CONFIG: $tagname
  18292. __EOF__
  18293. else
  18294. # If there is no Makefile yet, we rely on a make rule to execute
  18295. # `config.status --recheck' to rerun these tests and create the
  18296. # libtool script then.
  18297. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  18298. if test -f "$ltmain_in"; then
  18299. test -f Makefile && make "$ltmain"
  18300. fi
  18301. fi
  18302. ac_ext=c
  18303. ac_cpp='$CPP $CPPFLAGS'
  18304. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18305. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18306. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18307. CC="$lt_save_CC"
  18308. else
  18309. tagname=""
  18310. fi
  18311. ;;
  18312. RC)
  18313. # Source file extension for RC test sources.
  18314. ac_ext=rc
  18315. # Object file extension for compiled RC test sources.
  18316. objext=o
  18317. objext_RC=$objext
  18318. # Code to be used in simple compile tests
  18319. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  18320. # Code to be used in simple link tests
  18321. lt_simple_link_test_code="$lt_simple_compile_test_code"
  18322. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  18323. # If no C compiler was specified, use CC.
  18324. LTCC=${LTCC-"$CC"}
  18325. # If no C compiler flags were specified, use CFLAGS.
  18326. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  18327. # Allow CC to be a program name with arguments.
  18328. compiler=$CC
  18329. # save warnings/boilerplate of simple test code
  18330. ac_outfile=conftest.$ac_objext
  18331. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  18332. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  18333. _lt_compiler_boilerplate=`cat conftest.err`
  18334. $rm conftest*
  18335. ac_outfile=conftest.$ac_objext
  18336. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  18337. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  18338. _lt_linker_boilerplate=`cat conftest.err`
  18339. $rm -r conftest*
  18340. # Allow CC to be a program name with arguments.
  18341. lt_save_CC="$CC"
  18342. CC=${RC-"windres"}
  18343. compiler=$CC
  18344. compiler_RC=$CC
  18345. for cc_temp in $compiler""; do
  18346. case $cc_temp in
  18347. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  18348. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  18349. \-*) ;;
  18350. *) break;;
  18351. esac
  18352. done
  18353. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  18354. lt_cv_prog_compiler_c_o_RC=yes
  18355. # The else clause should only fire when bootstrapping the
  18356. # libtool distribution, otherwise you forgot to ship ltmain.sh
  18357. # with your package, and you will get complaints that there are
  18358. # no rules to generate ltmain.sh.
  18359. if test -f "$ltmain"; then
  18360. # See if we are running on zsh, and set the options which allow our commands through
  18361. # without removal of \ escapes.
  18362. if test -n "${ZSH_VERSION+set}" ; then
  18363. setopt NO_GLOB_SUBST
  18364. fi
  18365. # Now quote all the things that may contain metacharacters while being
  18366. # careful not to overquote the AC_SUBSTed values. We take copies of the
  18367. # variables and quote the copies for generation of the libtool script.
  18368. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  18369. SED SHELL STRIP \
  18370. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  18371. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  18372. deplibs_check_method reload_flag reload_cmds need_locks \
  18373. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  18374. lt_cv_sys_global_symbol_to_c_name_address \
  18375. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  18376. old_postinstall_cmds old_postuninstall_cmds \
  18377. compiler_RC \
  18378. CC_RC \
  18379. LD_RC \
  18380. lt_prog_compiler_wl_RC \
  18381. lt_prog_compiler_pic_RC \
  18382. lt_prog_compiler_static_RC \
  18383. lt_prog_compiler_no_builtin_flag_RC \
  18384. export_dynamic_flag_spec_RC \
  18385. thread_safe_flag_spec_RC \
  18386. whole_archive_flag_spec_RC \
  18387. enable_shared_with_static_runtimes_RC \
  18388. old_archive_cmds_RC \
  18389. old_archive_from_new_cmds_RC \
  18390. predep_objects_RC \
  18391. postdep_objects_RC \
  18392. predeps_RC \
  18393. postdeps_RC \
  18394. compiler_lib_search_path_RC \
  18395. compiler_lib_search_dirs_RC \
  18396. archive_cmds_RC \
  18397. archive_expsym_cmds_RC \
  18398. postinstall_cmds_RC \
  18399. postuninstall_cmds_RC \
  18400. old_archive_from_expsyms_cmds_RC \
  18401. allow_undefined_flag_RC \
  18402. no_undefined_flag_RC \
  18403. export_symbols_cmds_RC \
  18404. hardcode_libdir_flag_spec_RC \
  18405. hardcode_libdir_flag_spec_ld_RC \
  18406. hardcode_libdir_separator_RC \
  18407. hardcode_automatic_RC \
  18408. module_cmds_RC \
  18409. module_expsym_cmds_RC \
  18410. lt_cv_prog_compiler_c_o_RC \
  18411. fix_srcfile_path_RC \
  18412. exclude_expsyms_RC \
  18413. include_expsyms_RC; do
  18414. case $var in
  18415. old_archive_cmds_RC | \
  18416. old_archive_from_new_cmds_RC | \
  18417. archive_cmds_RC | \
  18418. archive_expsym_cmds_RC | \
  18419. module_cmds_RC | \
  18420. module_expsym_cmds_RC | \
  18421. old_archive_from_expsyms_cmds_RC | \
  18422. export_symbols_cmds_RC | \
  18423. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  18424. postinstall_cmds | postuninstall_cmds | \
  18425. old_postinstall_cmds | old_postuninstall_cmds | \
  18426. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  18427. # Double-quote double-evaled strings.
  18428. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  18429. ;;
  18430. *)
  18431. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  18432. ;;
  18433. esac
  18434. done
  18435. case $lt_echo in
  18436. *'\$0 --fallback-echo"')
  18437. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  18438. ;;
  18439. esac
  18440. cfgfile="$ofile"
  18441. cat <<__EOF__ >> "$cfgfile"
  18442. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  18443. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  18444. # Shell to use when invoking shell scripts.
  18445. SHELL=$lt_SHELL
  18446. # Whether or not to build shared libraries.
  18447. build_libtool_libs=$enable_shared
  18448. # Whether or not to build static libraries.
  18449. build_old_libs=$enable_static
  18450. # Whether or not to add -lc for building shared libraries.
  18451. build_libtool_need_lc=$archive_cmds_need_lc_RC
  18452. # Whether or not to disallow shared libs when runtime libs are static
  18453. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  18454. # Whether or not to optimize for fast installation.
  18455. fast_install=$enable_fast_install
  18456. # The host system.
  18457. host_alias=$host_alias
  18458. host=$host
  18459. host_os=$host_os
  18460. # The build system.
  18461. build_alias=$build_alias
  18462. build=$build
  18463. build_os=$build_os
  18464. # An echo program that does not interpret backslashes.
  18465. echo=$lt_echo
  18466. # The archiver.
  18467. AR=$lt_AR
  18468. AR_FLAGS=$lt_AR_FLAGS
  18469. # A C compiler.
  18470. LTCC=$lt_LTCC
  18471. # LTCC compiler flags.
  18472. LTCFLAGS=$lt_LTCFLAGS
  18473. # A language-specific compiler.
  18474. CC=$lt_compiler_RC
  18475. # Is the compiler the GNU C compiler?
  18476. with_gcc=$GCC_RC
  18477. # An ERE matcher.
  18478. EGREP=$lt_EGREP
  18479. # The linker used to build libraries.
  18480. LD=$lt_LD_RC
  18481. # Whether we need hard or soft links.
  18482. LN_S=$lt_LN_S
  18483. # A BSD-compatible nm program.
  18484. NM=$lt_NM
  18485. # A symbol stripping program
  18486. STRIP=$lt_STRIP
  18487. # Used to examine libraries when file_magic_cmd begins "file"
  18488. MAGIC_CMD=$MAGIC_CMD
  18489. # Used on cygwin: DLL creation program.
  18490. DLLTOOL="$DLLTOOL"
  18491. # Used on cygwin: object dumper.
  18492. OBJDUMP="$OBJDUMP"
  18493. # Used on cygwin: assembler.
  18494. AS="$AS"
  18495. # The name of the directory that contains temporary libtool files.
  18496. objdir=$objdir
  18497. # How to create reloadable object files.
  18498. reload_flag=$lt_reload_flag
  18499. reload_cmds=$lt_reload_cmds
  18500. # How to pass a linker flag through the compiler.
  18501. wl=$lt_lt_prog_compiler_wl_RC
  18502. # Object file suffix (normally "o").
  18503. objext="$ac_objext"
  18504. # Old archive suffix (normally "a").
  18505. libext="$libext"
  18506. # Shared library suffix (normally ".so").
  18507. shrext_cmds='$shrext_cmds'
  18508. # Executable file suffix (normally "").
  18509. exeext="$exeext"
  18510. # Additional compiler flags for building library objects.
  18511. pic_flag=$lt_lt_prog_compiler_pic_RC
  18512. pic_mode=$pic_mode
  18513. # What is the maximum length of a command?
  18514. max_cmd_len=$lt_cv_sys_max_cmd_len
  18515. # Does compiler simultaneously support -c and -o options?
  18516. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  18517. # Must we lock files when doing compilation?
  18518. need_locks=$lt_need_locks
  18519. # Do we need the lib prefix for modules?
  18520. need_lib_prefix=$need_lib_prefix
  18521. # Do we need a version for libraries?
  18522. need_version=$need_version
  18523. # Whether dlopen is supported.
  18524. dlopen_support=$enable_dlopen
  18525. # Whether dlopen of programs is supported.
  18526. dlopen_self=$enable_dlopen_self
  18527. # Whether dlopen of statically linked programs is supported.
  18528. dlopen_self_static=$enable_dlopen_self_static
  18529. # Compiler flag to prevent dynamic linking.
  18530. link_static_flag=$lt_lt_prog_compiler_static_RC
  18531. # Compiler flag to turn off builtin functions.
  18532. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  18533. # Compiler flag to allow reflexive dlopens.
  18534. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  18535. # Compiler flag to generate shared objects directly from archives.
  18536. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  18537. # Compiler flag to generate thread-safe objects.
  18538. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  18539. # Library versioning type.
  18540. version_type=$version_type
  18541. # Format of library name prefix.
  18542. libname_spec=$lt_libname_spec
  18543. # List of archive names. First name is the real one, the rest are links.
  18544. # The last name is the one that the linker finds with -lNAME.
  18545. library_names_spec=$lt_library_names_spec
  18546. # The coded name of the library, if different from the real name.
  18547. soname_spec=$lt_soname_spec
  18548. # Commands used to build and install an old-style archive.
  18549. RANLIB=$lt_RANLIB
  18550. old_archive_cmds=$lt_old_archive_cmds_RC
  18551. old_postinstall_cmds=$lt_old_postinstall_cmds
  18552. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18553. # Create an old-style archive from a shared archive.
  18554. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  18555. # Create a temporary old-style archive to link instead of a shared archive.
  18556. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  18557. # Commands used to build and install a shared archive.
  18558. archive_cmds=$lt_archive_cmds_RC
  18559. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  18560. postinstall_cmds=$lt_postinstall_cmds
  18561. postuninstall_cmds=$lt_postuninstall_cmds
  18562. # Commands used to build a loadable module (assumed same as above if empty)
  18563. module_cmds=$lt_module_cmds_RC
  18564. module_expsym_cmds=$lt_module_expsym_cmds_RC
  18565. # Commands to strip libraries.
  18566. old_striplib=$lt_old_striplib
  18567. striplib=$lt_striplib
  18568. # Dependencies to place before the objects being linked to create a
  18569. # shared library.
  18570. predep_objects=$lt_predep_objects_RC
  18571. # Dependencies to place after the objects being linked to create a
  18572. # shared library.
  18573. postdep_objects=$lt_postdep_objects_RC
  18574. # Dependencies to place before the objects being linked to create a
  18575. # shared library.
  18576. predeps=$lt_predeps_RC
  18577. # Dependencies to place after the objects being linked to create a
  18578. # shared library.
  18579. postdeps=$lt_postdeps_RC
  18580. # The directories searched by this compiler when creating a shared
  18581. # library
  18582. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  18583. # The library search path used internally by the compiler when linking
  18584. # a shared library.
  18585. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  18586. # Method to check whether dependent libraries are shared objects.
  18587. deplibs_check_method=$lt_deplibs_check_method
  18588. # Command to use when deplibs_check_method == file_magic.
  18589. file_magic_cmd=$lt_file_magic_cmd
  18590. # Flag that allows shared libraries with undefined symbols to be built.
  18591. allow_undefined_flag=$lt_allow_undefined_flag_RC
  18592. # Flag that forces no undefined symbols.
  18593. no_undefined_flag=$lt_no_undefined_flag_RC
  18594. # Commands used to finish a libtool library installation in a directory.
  18595. finish_cmds=$lt_finish_cmds
  18596. # Same as above, but a single script fragment to be evaled but not shown.
  18597. finish_eval=$lt_finish_eval
  18598. # Take the output of nm and produce a listing of raw symbols and C names.
  18599. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18600. # Transform the output of nm in a proper C declaration
  18601. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18602. # Transform the output of nm in a C name address pair
  18603. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18604. # This is the shared library runtime path variable.
  18605. runpath_var=$runpath_var
  18606. # This is the shared library path variable.
  18607. shlibpath_var=$shlibpath_var
  18608. # Is shlibpath searched before the hard-coded library search path?
  18609. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18610. # How to hardcode a shared library path into an executable.
  18611. hardcode_action=$hardcode_action_RC
  18612. # Whether we should hardcode library paths into libraries.
  18613. hardcode_into_libs=$hardcode_into_libs
  18614. # Flag to hardcode \$libdir into a binary during linking.
  18615. # This must work even if \$libdir does not exist.
  18616. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  18617. # If ld is used when linking, flag to hardcode \$libdir into
  18618. # a binary during linking. This must work even if \$libdir does
  18619. # not exist.
  18620. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  18621. # Whether we need a single -rpath flag with a separated argument.
  18622. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  18623. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  18624. # resulting binary.
  18625. hardcode_direct=$hardcode_direct_RC
  18626. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  18627. # resulting binary.
  18628. hardcode_minus_L=$hardcode_minus_L_RC
  18629. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  18630. # the resulting binary.
  18631. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  18632. # Set to yes if building a shared library automatically hardcodes DIR into the library
  18633. # and all subsequent libraries and executables linked against it.
  18634. hardcode_automatic=$hardcode_automatic_RC
  18635. # Variables whose values should be saved in libtool wrapper scripts and
  18636. # restored at relink time.
  18637. variables_saved_for_relink="$variables_saved_for_relink"
  18638. # Whether libtool must link a program against all its dependency libraries.
  18639. link_all_deplibs=$link_all_deplibs_RC
  18640. # Compile-time system search path for libraries
  18641. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18642. # Run-time system search path for libraries
  18643. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  18644. # Fix the shell variable \$srcfile for the compiler.
  18645. fix_srcfile_path=$lt_fix_srcfile_path
  18646. # Set to yes if exported symbols are required.
  18647. always_export_symbols=$always_export_symbols_RC
  18648. # The commands to list exported symbols.
  18649. export_symbols_cmds=$lt_export_symbols_cmds_RC
  18650. # The commands to extract the exported symbol list from a shared archive.
  18651. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18652. # Symbols that should not be listed in the preloaded symbols.
  18653. exclude_expsyms=$lt_exclude_expsyms_RC
  18654. # Symbols that must always be exported.
  18655. include_expsyms=$lt_include_expsyms_RC
  18656. # ### END LIBTOOL TAG CONFIG: $tagname
  18657. __EOF__
  18658. else
  18659. # If there is no Makefile yet, we rely on a make rule to execute
  18660. # `config.status --recheck' to rerun these tests and create the
  18661. # libtool script then.
  18662. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  18663. if test -f "$ltmain_in"; then
  18664. test -f Makefile && make "$ltmain"
  18665. fi
  18666. fi
  18667. ac_ext=c
  18668. ac_cpp='$CPP $CPPFLAGS'
  18669. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18670. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18671. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18672. CC="$lt_save_CC"
  18673. ;;
  18674. *)
  18675. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  18676. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  18677. { (exit 1); exit 1; }; }
  18678. ;;
  18679. esac
  18680. # Append the new tag name to the list of available tags.
  18681. if test -n "$tagname" ; then
  18682. available_tags="$available_tags $tagname"
  18683. fi
  18684. fi
  18685. done
  18686. IFS="$lt_save_ifs"
  18687. # Now substitute the updated list of available tags.
  18688. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  18689. mv "${ofile}T" "$ofile"
  18690. chmod +x "$ofile"
  18691. else
  18692. rm -f "${ofile}T"
  18693. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  18694. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  18695. { (exit 1); exit 1; }; }
  18696. fi
  18697. fi
  18698. # This can be used to rebuild libtool when needed
  18699. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  18700. # Always use our own libtool.
  18701. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  18702. # Prevent multiple expansion
  18703. AM_CPPFLAGS='-I$(top_srcdir)/include -I$(top_builddir)/include'
  18704. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  18705. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  18706. if test "${ac_cv_header_time+set}" = set; then
  18707. echo $ECHO_N "(cached) $ECHO_C" >&6
  18708. else
  18709. cat >conftest.$ac_ext <<_ACEOF
  18710. /* confdefs.h. */
  18711. _ACEOF
  18712. cat confdefs.h >>conftest.$ac_ext
  18713. cat >>conftest.$ac_ext <<_ACEOF
  18714. /* end confdefs.h. */
  18715. #include <sys/types.h>
  18716. #include <sys/time.h>
  18717. #include <time.h>
  18718. int
  18719. main ()
  18720. {
  18721. if ((struct tm *) 0)
  18722. return 0;
  18723. ;
  18724. return 0;
  18725. }
  18726. _ACEOF
  18727. rm -f conftest.$ac_objext
  18728. if { (ac_try="$ac_compile"
  18729. case "(($ac_try" in
  18730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18731. *) ac_try_echo=$ac_try;;
  18732. esac
  18733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18734. (eval "$ac_compile") 2>conftest.er1
  18735. ac_status=$?
  18736. grep -v '^ *+' conftest.er1 >conftest.err
  18737. rm -f conftest.er1
  18738. cat conftest.err >&5
  18739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18740. (exit $ac_status); } && {
  18741. test -z "$ac_c_werror_flag" ||
  18742. test ! -s conftest.err
  18743. } && test -s conftest.$ac_objext; then
  18744. ac_cv_header_time=yes
  18745. else
  18746. echo "$as_me: failed program was:" >&5
  18747. sed 's/^/| /' conftest.$ac_ext >&5
  18748. ac_cv_header_time=no
  18749. fi
  18750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18751. fi
  18752. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  18753. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  18754. if test $ac_cv_header_time = yes; then
  18755. cat >>confdefs.h <<\_ACEOF
  18756. #define TIME_WITH_SYS_TIME 1
  18757. _ACEOF
  18758. fi
  18759. { echo "$as_me:$LINENO: checking for struct timeval" >&5
  18760. echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
  18761. if test "${ac_cv_type_struct_timeval+set}" = set; then
  18762. echo $ECHO_N "(cached) $ECHO_C" >&6
  18763. else
  18764. cat >conftest.$ac_ext <<_ACEOF
  18765. /* confdefs.h. */
  18766. _ACEOF
  18767. cat confdefs.h >>conftest.$ac_ext
  18768. cat >>conftest.$ac_ext <<_ACEOF
  18769. /* end confdefs.h. */
  18770. #include <sys/time.h>
  18771. #include <time.h>
  18772. typedef struct timeval ac__type_new_;
  18773. int
  18774. main ()
  18775. {
  18776. if ((ac__type_new_ *) 0)
  18777. return 0;
  18778. if (sizeof (ac__type_new_))
  18779. return 0;
  18780. ;
  18781. return 0;
  18782. }
  18783. _ACEOF
  18784. rm -f conftest.$ac_objext
  18785. if { (ac_try="$ac_compile"
  18786. case "(($ac_try" in
  18787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18788. *) ac_try_echo=$ac_try;;
  18789. esac
  18790. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18791. (eval "$ac_compile") 2>conftest.er1
  18792. ac_status=$?
  18793. grep -v '^ *+' conftest.er1 >conftest.err
  18794. rm -f conftest.er1
  18795. cat conftest.err >&5
  18796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18797. (exit $ac_status); } && {
  18798. test -z "$ac_c_werror_flag" ||
  18799. test ! -s conftest.err
  18800. } && test -s conftest.$ac_objext; then
  18801. ac_cv_type_struct_timeval=yes
  18802. else
  18803. echo "$as_me: failed program was:" >&5
  18804. sed 's/^/| /' conftest.$ac_ext >&5
  18805. ac_cv_type_struct_timeval=no
  18806. fi
  18807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18808. fi
  18809. { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timeval" >&5
  18810. echo "${ECHO_T}$ac_cv_type_struct_timeval" >&6; }
  18811. if test $ac_cv_type_struct_timeval = yes; then
  18812. cat >>confdefs.h <<_ACEOF
  18813. #define HAVE_STRUCT_TIMEVAL 1
  18814. _ACEOF
  18815. fi
  18816. rm -f include/inttypes.h
  18817. if test "${ac_cv_header_inttypes_h+set}" = set; then
  18818. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  18819. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  18820. if test "${ac_cv_header_inttypes_h+set}" = set; then
  18821. echo $ECHO_N "(cached) $ECHO_C" >&6
  18822. fi
  18823. { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
  18824. echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
  18825. else
  18826. # Is the header compilable?
  18827. { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
  18828. echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
  18829. cat >conftest.$ac_ext <<_ACEOF
  18830. /* confdefs.h. */
  18831. _ACEOF
  18832. cat confdefs.h >>conftest.$ac_ext
  18833. cat >>conftest.$ac_ext <<_ACEOF
  18834. /* end confdefs.h. */
  18835. $ac_includes_default
  18836. #include <inttypes.h>
  18837. _ACEOF
  18838. rm -f conftest.$ac_objext
  18839. if { (ac_try="$ac_compile"
  18840. case "(($ac_try" in
  18841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18842. *) ac_try_echo=$ac_try;;
  18843. esac
  18844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18845. (eval "$ac_compile") 2>conftest.er1
  18846. ac_status=$?
  18847. grep -v '^ *+' conftest.er1 >conftest.err
  18848. rm -f conftest.er1
  18849. cat conftest.err >&5
  18850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18851. (exit $ac_status); } && {
  18852. test -z "$ac_c_werror_flag" ||
  18853. test ! -s conftest.err
  18854. } && test -s conftest.$ac_objext; then
  18855. ac_header_compiler=yes
  18856. else
  18857. echo "$as_me: failed program was:" >&5
  18858. sed 's/^/| /' conftest.$ac_ext >&5
  18859. ac_header_compiler=no
  18860. fi
  18861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18862. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18863. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18864. # Is the header present?
  18865. { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
  18866. echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
  18867. cat >conftest.$ac_ext <<_ACEOF
  18868. /* confdefs.h. */
  18869. _ACEOF
  18870. cat confdefs.h >>conftest.$ac_ext
  18871. cat >>conftest.$ac_ext <<_ACEOF
  18872. /* end confdefs.h. */
  18873. #include <inttypes.h>
  18874. _ACEOF
  18875. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18876. case "(($ac_try" in
  18877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18878. *) ac_try_echo=$ac_try;;
  18879. esac
  18880. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18881. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18882. ac_status=$?
  18883. grep -v '^ *+' conftest.er1 >conftest.err
  18884. rm -f conftest.er1
  18885. cat conftest.err >&5
  18886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18887. (exit $ac_status); } >/dev/null && {
  18888. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18889. test ! -s conftest.err
  18890. }; then
  18891. ac_header_preproc=yes
  18892. else
  18893. echo "$as_me: failed program was:" >&5
  18894. sed 's/^/| /' conftest.$ac_ext >&5
  18895. ac_header_preproc=no
  18896. fi
  18897. rm -f conftest.err conftest.$ac_ext
  18898. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18899. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18900. # So? What about this header?
  18901. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18902. yes:no: )
  18903. { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18904. echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18905. { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
  18906. echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
  18907. ac_header_preproc=yes
  18908. ;;
  18909. no:yes:* )
  18910. { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
  18911. echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
  18912. { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
  18913. echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
  18914. { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
  18915. echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
  18916. { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
  18917. echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18918. { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
  18919. echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
  18920. { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
  18921. echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
  18922. ;;
  18923. esac
  18924. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  18925. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  18926. if test "${ac_cv_header_inttypes_h+set}" = set; then
  18927. echo $ECHO_N "(cached) $ECHO_C" >&6
  18928. else
  18929. ac_cv_header_inttypes_h=$ac_header_preproc
  18930. fi
  18931. { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
  18932. echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
  18933. fi
  18934. if test $ac_cv_header_inttypes_h = yes; then
  18935. :
  18936. else
  18937. # ------ AX CREATE STDINT H -------------------------------------
  18938. { echo "$as_me:$LINENO: checking for stdint types" >&5
  18939. echo $ECHO_N "checking for stdint types... $ECHO_C" >&6; }
  18940. ac_stdint_h=`echo include/inttypes.h`
  18941. # try to shortcircuit - if the default include path of the compiler
  18942. # can find a "stdint.h" header then we assume that all compilers can.
  18943. if test "${ac_cv_header_stdint_t+set}" = set; then
  18944. echo $ECHO_N "(cached) $ECHO_C" >&6
  18945. else
  18946. old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
  18947. old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
  18948. old_CFLAGS="$CFLAGS" ; CFLAGS=""
  18949. cat >conftest.$ac_ext <<_ACEOF
  18950. /* confdefs.h. */
  18951. _ACEOF
  18952. cat confdefs.h >>conftest.$ac_ext
  18953. cat >>conftest.$ac_ext <<_ACEOF
  18954. /* end confdefs.h. */
  18955. #include <stdint.h>
  18956. int
  18957. main ()
  18958. {
  18959. int_least32_t v = 0;
  18960. ;
  18961. return 0;
  18962. }
  18963. _ACEOF
  18964. rm -f conftest.$ac_objext
  18965. if { (ac_try="$ac_compile"
  18966. case "(($ac_try" in
  18967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18968. *) ac_try_echo=$ac_try;;
  18969. esac
  18970. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18971. (eval "$ac_compile") 2>conftest.er1
  18972. ac_status=$?
  18973. grep -v '^ *+' conftest.er1 >conftest.err
  18974. rm -f conftest.er1
  18975. cat conftest.err >&5
  18976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18977. (exit $ac_status); } && {
  18978. test -z "$ac_c_werror_flag" ||
  18979. test ! -s conftest.err
  18980. } && test -s conftest.$ac_objext; then
  18981. ac_cv_stdint_result="(assuming C99 compatible system)"
  18982. ac_cv_header_stdint_t="stdint.h";
  18983. else
  18984. echo "$as_me: failed program was:" >&5
  18985. sed 's/^/| /' conftest.$ac_ext >&5
  18986. ac_cv_header_stdint_t=""
  18987. fi
  18988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18989. CXXFLAGS="$old_CXXFLAGS"
  18990. CPPFLAGS="$old_CPPFLAGS"
  18991. CFLAGS="$old_CFLAGS"
  18992. fi
  18993. v="... $ac_cv_header_stdint_h"
  18994. if test "$ac_stdint_h" = "stdint.h" ; then
  18995. { echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
  18996. echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6; }
  18997. elif test "$ac_stdint_h" = "inttypes.h" ; then
  18998. { echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
  18999. echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6; }
  19000. elif test "_$ac_cv_header_stdint_t" = "_" ; then
  19001. { echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
  19002. echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6; }
  19003. else
  19004. ac_cv_header_stdint="$ac_cv_header_stdint_t"
  19005. { echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
  19006. echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6; }
  19007. fi
  19008. if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
  19009. inttype_headers=`echo | sed -e 's/,/ /g'`
  19010. ac_cv_stdint_result="(no helpful system typedefs seen)"
  19011. { echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
  19012. echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6; }
  19013. if test "${ac_cv_header_stdint_x+set}" = set; then
  19014. echo $ECHO_N "(cached) $ECHO_C" >&6
  19015. else
  19016. ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
  19017. { echo "$as_me:$LINENO: result: (..)" >&5
  19018. echo "${ECHO_T}(..)" >&6; }
  19019. for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
  19020. unset ac_cv_type_uintptr_t
  19021. unset ac_cv_type_uint64_t
  19022. { echo "$as_me:$LINENO: checking for uintptr_t" >&5
  19023. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
  19024. if test "${ac_cv_type_uintptr_t+set}" = set; then
  19025. echo $ECHO_N "(cached) $ECHO_C" >&6
  19026. else
  19027. cat >conftest.$ac_ext <<_ACEOF
  19028. /* confdefs.h. */
  19029. _ACEOF
  19030. cat confdefs.h >>conftest.$ac_ext
  19031. cat >>conftest.$ac_ext <<_ACEOF
  19032. /* end confdefs.h. */
  19033. #include <$i>
  19034. typedef uintptr_t ac__type_new_;
  19035. int
  19036. main ()
  19037. {
  19038. if ((ac__type_new_ *) 0)
  19039. return 0;
  19040. if (sizeof (ac__type_new_))
  19041. return 0;
  19042. ;
  19043. return 0;
  19044. }
  19045. _ACEOF
  19046. rm -f conftest.$ac_objext
  19047. if { (ac_try="$ac_compile"
  19048. case "(($ac_try" in
  19049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19050. *) ac_try_echo=$ac_try;;
  19051. esac
  19052. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19053. (eval "$ac_compile") 2>conftest.er1
  19054. ac_status=$?
  19055. grep -v '^ *+' conftest.er1 >conftest.err
  19056. rm -f conftest.er1
  19057. cat conftest.err >&5
  19058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19059. (exit $ac_status); } && {
  19060. test -z "$ac_c_werror_flag" ||
  19061. test ! -s conftest.err
  19062. } && test -s conftest.$ac_objext; then
  19063. ac_cv_type_uintptr_t=yes
  19064. else
  19065. echo "$as_me: failed program was:" >&5
  19066. sed 's/^/| /' conftest.$ac_ext >&5
  19067. ac_cv_type_uintptr_t=no
  19068. fi
  19069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19070. fi
  19071. { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  19072. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
  19073. if test $ac_cv_type_uintptr_t = yes; then
  19074. ac_cv_header_stdint_x=$i
  19075. else
  19076. continue
  19077. fi
  19078. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  19079. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  19080. if test "${ac_cv_type_uint64_t+set}" = set; then
  19081. echo $ECHO_N "(cached) $ECHO_C" >&6
  19082. else
  19083. cat >conftest.$ac_ext <<_ACEOF
  19084. /* confdefs.h. */
  19085. _ACEOF
  19086. cat confdefs.h >>conftest.$ac_ext
  19087. cat >>conftest.$ac_ext <<_ACEOF
  19088. /* end confdefs.h. */
  19089. #include<$i>
  19090. typedef uint64_t ac__type_new_;
  19091. int
  19092. main ()
  19093. {
  19094. if ((ac__type_new_ *) 0)
  19095. return 0;
  19096. if (sizeof (ac__type_new_))
  19097. return 0;
  19098. ;
  19099. return 0;
  19100. }
  19101. _ACEOF
  19102. rm -f conftest.$ac_objext
  19103. if { (ac_try="$ac_compile"
  19104. case "(($ac_try" in
  19105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19106. *) ac_try_echo=$ac_try;;
  19107. esac
  19108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19109. (eval "$ac_compile") 2>conftest.er1
  19110. ac_status=$?
  19111. grep -v '^ *+' conftest.er1 >conftest.err
  19112. rm -f conftest.er1
  19113. cat conftest.err >&5
  19114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19115. (exit $ac_status); } && {
  19116. test -z "$ac_c_werror_flag" ||
  19117. test ! -s conftest.err
  19118. } && test -s conftest.$ac_objext; then
  19119. ac_cv_type_uint64_t=yes
  19120. else
  19121. echo "$as_me: failed program was:" >&5
  19122. sed 's/^/| /' conftest.$ac_ext >&5
  19123. ac_cv_type_uint64_t=no
  19124. fi
  19125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19126. fi
  19127. { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  19128. echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
  19129. if test $ac_cv_type_uint64_t = yes; then
  19130. and64="/uint64_t"
  19131. else
  19132. and64=""
  19133. fi
  19134. ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
  19135. break;
  19136. done
  19137. { echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
  19138. echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6; }
  19139. fi
  19140. { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
  19141. echo "${ECHO_T}$ac_cv_header_stdint_x" >&6; }
  19142. if test "_$ac_cv_header_stdint_x" = "_" ; then
  19143. { echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
  19144. echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6; }
  19145. if test "${ac_cv_header_stdint_o+set}" = set; then
  19146. echo $ECHO_N "(cached) $ECHO_C" >&6
  19147. else
  19148. ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
  19149. { echo "$as_me:$LINENO: result: (..)" >&5
  19150. echo "${ECHO_T}(..)" >&6; }
  19151. for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
  19152. unset ac_cv_type_uint32_t
  19153. unset ac_cv_type_uint64_t
  19154. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  19155. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  19156. if test "${ac_cv_type_uint32_t+set}" = set; then
  19157. echo $ECHO_N "(cached) $ECHO_C" >&6
  19158. else
  19159. cat >conftest.$ac_ext <<_ACEOF
  19160. /* confdefs.h. */
  19161. _ACEOF
  19162. cat confdefs.h >>conftest.$ac_ext
  19163. cat >>conftest.$ac_ext <<_ACEOF
  19164. /* end confdefs.h. */
  19165. #include <$i>
  19166. typedef uint32_t ac__type_new_;
  19167. int
  19168. main ()
  19169. {
  19170. if ((ac__type_new_ *) 0)
  19171. return 0;
  19172. if (sizeof (ac__type_new_))
  19173. return 0;
  19174. ;
  19175. return 0;
  19176. }
  19177. _ACEOF
  19178. rm -f conftest.$ac_objext
  19179. if { (ac_try="$ac_compile"
  19180. case "(($ac_try" in
  19181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19182. *) ac_try_echo=$ac_try;;
  19183. esac
  19184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19185. (eval "$ac_compile") 2>conftest.er1
  19186. ac_status=$?
  19187. grep -v '^ *+' conftest.er1 >conftest.err
  19188. rm -f conftest.er1
  19189. cat conftest.err >&5
  19190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19191. (exit $ac_status); } && {
  19192. test -z "$ac_c_werror_flag" ||
  19193. test ! -s conftest.err
  19194. } && test -s conftest.$ac_objext; then
  19195. ac_cv_type_uint32_t=yes
  19196. else
  19197. echo "$as_me: failed program was:" >&5
  19198. sed 's/^/| /' conftest.$ac_ext >&5
  19199. ac_cv_type_uint32_t=no
  19200. fi
  19201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19202. fi
  19203. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  19204. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  19205. if test $ac_cv_type_uint32_t = yes; then
  19206. ac_cv_header_stdint_o=$i
  19207. else
  19208. continue
  19209. fi
  19210. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  19211. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  19212. if test "${ac_cv_type_uint64_t+set}" = set; then
  19213. echo $ECHO_N "(cached) $ECHO_C" >&6
  19214. else
  19215. cat >conftest.$ac_ext <<_ACEOF
  19216. /* confdefs.h. */
  19217. _ACEOF
  19218. cat confdefs.h >>conftest.$ac_ext
  19219. cat >>conftest.$ac_ext <<_ACEOF
  19220. /* end confdefs.h. */
  19221. #include<$i>
  19222. typedef uint64_t ac__type_new_;
  19223. int
  19224. main ()
  19225. {
  19226. if ((ac__type_new_ *) 0)
  19227. return 0;
  19228. if (sizeof (ac__type_new_))
  19229. return 0;
  19230. ;
  19231. return 0;
  19232. }
  19233. _ACEOF
  19234. rm -f conftest.$ac_objext
  19235. if { (ac_try="$ac_compile"
  19236. case "(($ac_try" in
  19237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19238. *) ac_try_echo=$ac_try;;
  19239. esac
  19240. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19241. (eval "$ac_compile") 2>conftest.er1
  19242. ac_status=$?
  19243. grep -v '^ *+' conftest.er1 >conftest.err
  19244. rm -f conftest.er1
  19245. cat conftest.err >&5
  19246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19247. (exit $ac_status); } && {
  19248. test -z "$ac_c_werror_flag" ||
  19249. test ! -s conftest.err
  19250. } && test -s conftest.$ac_objext; then
  19251. ac_cv_type_uint64_t=yes
  19252. else
  19253. echo "$as_me: failed program was:" >&5
  19254. sed 's/^/| /' conftest.$ac_ext >&5
  19255. ac_cv_type_uint64_t=no
  19256. fi
  19257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19258. fi
  19259. { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  19260. echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
  19261. if test $ac_cv_type_uint64_t = yes; then
  19262. and64="/uint64_t"
  19263. else
  19264. and64=""
  19265. fi
  19266. ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
  19267. break;
  19268. done
  19269. { echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
  19270. echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6; }
  19271. fi
  19272. { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
  19273. echo "${ECHO_T}$ac_cv_header_stdint_o" >&6; }
  19274. fi
  19275. if test "_$ac_cv_header_stdint_x" = "_" ; then
  19276. if test "_$ac_cv_header_stdint_o" = "_" ; then
  19277. { echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
  19278. echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6; }
  19279. if test "${ac_cv_header_stdint_u+set}" = set; then
  19280. echo $ECHO_N "(cached) $ECHO_C" >&6
  19281. else
  19282. ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
  19283. { echo "$as_me:$LINENO: result: (..)" >&5
  19284. echo "${ECHO_T}(..)" >&6; }
  19285. for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
  19286. unset ac_cv_type_u_int32_t
  19287. unset ac_cv_type_u_int64_t
  19288. { echo "$as_me:$LINENO: checking for u_int32_t" >&5
  19289. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
  19290. if test "${ac_cv_type_u_int32_t+set}" = set; then
  19291. echo $ECHO_N "(cached) $ECHO_C" >&6
  19292. else
  19293. cat >conftest.$ac_ext <<_ACEOF
  19294. /* confdefs.h. */
  19295. _ACEOF
  19296. cat confdefs.h >>conftest.$ac_ext
  19297. cat >>conftest.$ac_ext <<_ACEOF
  19298. /* end confdefs.h. */
  19299. #include <$i>
  19300. typedef u_int32_t ac__type_new_;
  19301. int
  19302. main ()
  19303. {
  19304. if ((ac__type_new_ *) 0)
  19305. return 0;
  19306. if (sizeof (ac__type_new_))
  19307. return 0;
  19308. ;
  19309. return 0;
  19310. }
  19311. _ACEOF
  19312. rm -f conftest.$ac_objext
  19313. if { (ac_try="$ac_compile"
  19314. case "(($ac_try" in
  19315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19316. *) ac_try_echo=$ac_try;;
  19317. esac
  19318. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19319. (eval "$ac_compile") 2>conftest.er1
  19320. ac_status=$?
  19321. grep -v '^ *+' conftest.er1 >conftest.err
  19322. rm -f conftest.er1
  19323. cat conftest.err >&5
  19324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19325. (exit $ac_status); } && {
  19326. test -z "$ac_c_werror_flag" ||
  19327. test ! -s conftest.err
  19328. } && test -s conftest.$ac_objext; then
  19329. ac_cv_type_u_int32_t=yes
  19330. else
  19331. echo "$as_me: failed program was:" >&5
  19332. sed 's/^/| /' conftest.$ac_ext >&5
  19333. ac_cv_type_u_int32_t=no
  19334. fi
  19335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19336. fi
  19337. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  19338. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
  19339. if test $ac_cv_type_u_int32_t = yes; then
  19340. ac_cv_header_stdint_u=$i
  19341. else
  19342. continue
  19343. fi
  19344. { echo "$as_me:$LINENO: checking for u_int64_t" >&5
  19345. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
  19346. if test "${ac_cv_type_u_int64_t+set}" = set; then
  19347. echo $ECHO_N "(cached) $ECHO_C" >&6
  19348. else
  19349. cat >conftest.$ac_ext <<_ACEOF
  19350. /* confdefs.h. */
  19351. _ACEOF
  19352. cat confdefs.h >>conftest.$ac_ext
  19353. cat >>conftest.$ac_ext <<_ACEOF
  19354. /* end confdefs.h. */
  19355. #include<$i>
  19356. typedef u_int64_t ac__type_new_;
  19357. int
  19358. main ()
  19359. {
  19360. if ((ac__type_new_ *) 0)
  19361. return 0;
  19362. if (sizeof (ac__type_new_))
  19363. return 0;
  19364. ;
  19365. return 0;
  19366. }
  19367. _ACEOF
  19368. rm -f conftest.$ac_objext
  19369. if { (ac_try="$ac_compile"
  19370. case "(($ac_try" in
  19371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19372. *) ac_try_echo=$ac_try;;
  19373. esac
  19374. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19375. (eval "$ac_compile") 2>conftest.er1
  19376. ac_status=$?
  19377. grep -v '^ *+' conftest.er1 >conftest.err
  19378. rm -f conftest.er1
  19379. cat conftest.err >&5
  19380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19381. (exit $ac_status); } && {
  19382. test -z "$ac_c_werror_flag" ||
  19383. test ! -s conftest.err
  19384. } && test -s conftest.$ac_objext; then
  19385. ac_cv_type_u_int64_t=yes
  19386. else
  19387. echo "$as_me: failed program was:" >&5
  19388. sed 's/^/| /' conftest.$ac_ext >&5
  19389. ac_cv_type_u_int64_t=no
  19390. fi
  19391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19392. fi
  19393. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  19394. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
  19395. if test $ac_cv_type_u_int64_t = yes; then
  19396. and64="/u_int64_t"
  19397. else
  19398. and64=""
  19399. fi
  19400. ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
  19401. break;
  19402. done
  19403. { echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
  19404. echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6; }
  19405. fi
  19406. { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
  19407. echo "${ECHO_T}$ac_cv_header_stdint_u" >&6; }
  19408. fi fi
  19409. if test "_$ac_cv_header_stdint_x" = "_" ; then
  19410. { echo "$as_me:$LINENO: checking for stdint datatype model" >&5
  19411. echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6; }
  19412. { echo "$as_me:$LINENO: result: (..)" >&5
  19413. echo "${ECHO_T}(..)" >&6; }
  19414. { echo "$as_me:$LINENO: checking for char" >&5
  19415. echo $ECHO_N "checking for char... $ECHO_C" >&6; }
  19416. if test "${ac_cv_type_char+set}" = set; then
  19417. echo $ECHO_N "(cached) $ECHO_C" >&6
  19418. else
  19419. cat >conftest.$ac_ext <<_ACEOF
  19420. /* confdefs.h. */
  19421. _ACEOF
  19422. cat confdefs.h >>conftest.$ac_ext
  19423. cat >>conftest.$ac_ext <<_ACEOF
  19424. /* end confdefs.h. */
  19425. $ac_includes_default
  19426. typedef char ac__type_new_;
  19427. int
  19428. main ()
  19429. {
  19430. if ((ac__type_new_ *) 0)
  19431. return 0;
  19432. if (sizeof (ac__type_new_))
  19433. return 0;
  19434. ;
  19435. return 0;
  19436. }
  19437. _ACEOF
  19438. rm -f conftest.$ac_objext
  19439. if { (ac_try="$ac_compile"
  19440. case "(($ac_try" in
  19441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19442. *) ac_try_echo=$ac_try;;
  19443. esac
  19444. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19445. (eval "$ac_compile") 2>conftest.er1
  19446. ac_status=$?
  19447. grep -v '^ *+' conftest.er1 >conftest.err
  19448. rm -f conftest.er1
  19449. cat conftest.err >&5
  19450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19451. (exit $ac_status); } && {
  19452. test -z "$ac_c_werror_flag" ||
  19453. test ! -s conftest.err
  19454. } && test -s conftest.$ac_objext; then
  19455. ac_cv_type_char=yes
  19456. else
  19457. echo "$as_me: failed program was:" >&5
  19458. sed 's/^/| /' conftest.$ac_ext >&5
  19459. ac_cv_type_char=no
  19460. fi
  19461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19462. fi
  19463. { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
  19464. echo "${ECHO_T}$ac_cv_type_char" >&6; }
  19465. # The cast to long int works around a bug in the HP C Compiler
  19466. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19467. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19468. # This bug is HP SR number 8606223364.
  19469. { echo "$as_me:$LINENO: checking size of char" >&5
  19470. echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
  19471. if test "${ac_cv_sizeof_char+set}" = set; then
  19472. echo $ECHO_N "(cached) $ECHO_C" >&6
  19473. else
  19474. if test "$cross_compiling" = yes; then
  19475. # Depending upon the size, compute the lo and hi bounds.
  19476. cat >conftest.$ac_ext <<_ACEOF
  19477. /* confdefs.h. */
  19478. _ACEOF
  19479. cat confdefs.h >>conftest.$ac_ext
  19480. cat >>conftest.$ac_ext <<_ACEOF
  19481. /* end confdefs.h. */
  19482. $ac_includes_default
  19483. typedef char ac__type_sizeof_;
  19484. int
  19485. main ()
  19486. {
  19487. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  19488. test_array [0] = 0
  19489. ;
  19490. return 0;
  19491. }
  19492. _ACEOF
  19493. rm -f conftest.$ac_objext
  19494. if { (ac_try="$ac_compile"
  19495. case "(($ac_try" in
  19496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19497. *) ac_try_echo=$ac_try;;
  19498. esac
  19499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19500. (eval "$ac_compile") 2>conftest.er1
  19501. ac_status=$?
  19502. grep -v '^ *+' conftest.er1 >conftest.err
  19503. rm -f conftest.er1
  19504. cat conftest.err >&5
  19505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19506. (exit $ac_status); } && {
  19507. test -z "$ac_c_werror_flag" ||
  19508. test ! -s conftest.err
  19509. } && test -s conftest.$ac_objext; then
  19510. ac_lo=0 ac_mid=0
  19511. while :; do
  19512. cat >conftest.$ac_ext <<_ACEOF
  19513. /* confdefs.h. */
  19514. _ACEOF
  19515. cat confdefs.h >>conftest.$ac_ext
  19516. cat >>conftest.$ac_ext <<_ACEOF
  19517. /* end confdefs.h. */
  19518. $ac_includes_default
  19519. typedef char ac__type_sizeof_;
  19520. int
  19521. main ()
  19522. {
  19523. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  19524. test_array [0] = 0
  19525. ;
  19526. return 0;
  19527. }
  19528. _ACEOF
  19529. rm -f conftest.$ac_objext
  19530. if { (ac_try="$ac_compile"
  19531. case "(($ac_try" in
  19532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19533. *) ac_try_echo=$ac_try;;
  19534. esac
  19535. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19536. (eval "$ac_compile") 2>conftest.er1
  19537. ac_status=$?
  19538. grep -v '^ *+' conftest.er1 >conftest.err
  19539. rm -f conftest.er1
  19540. cat conftest.err >&5
  19541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19542. (exit $ac_status); } && {
  19543. test -z "$ac_c_werror_flag" ||
  19544. test ! -s conftest.err
  19545. } && test -s conftest.$ac_objext; then
  19546. ac_hi=$ac_mid; break
  19547. else
  19548. echo "$as_me: failed program was:" >&5
  19549. sed 's/^/| /' conftest.$ac_ext >&5
  19550. ac_lo=`expr $ac_mid + 1`
  19551. if test $ac_lo -le $ac_mid; then
  19552. ac_lo= ac_hi=
  19553. break
  19554. fi
  19555. ac_mid=`expr 2 '*' $ac_mid + 1`
  19556. fi
  19557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19558. done
  19559. else
  19560. echo "$as_me: failed program was:" >&5
  19561. sed 's/^/| /' conftest.$ac_ext >&5
  19562. cat >conftest.$ac_ext <<_ACEOF
  19563. /* confdefs.h. */
  19564. _ACEOF
  19565. cat confdefs.h >>conftest.$ac_ext
  19566. cat >>conftest.$ac_ext <<_ACEOF
  19567. /* end confdefs.h. */
  19568. $ac_includes_default
  19569. typedef char ac__type_sizeof_;
  19570. int
  19571. main ()
  19572. {
  19573. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  19574. test_array [0] = 0
  19575. ;
  19576. return 0;
  19577. }
  19578. _ACEOF
  19579. rm -f conftest.$ac_objext
  19580. if { (ac_try="$ac_compile"
  19581. case "(($ac_try" in
  19582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19583. *) ac_try_echo=$ac_try;;
  19584. esac
  19585. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19586. (eval "$ac_compile") 2>conftest.er1
  19587. ac_status=$?
  19588. grep -v '^ *+' conftest.er1 >conftest.err
  19589. rm -f conftest.er1
  19590. cat conftest.err >&5
  19591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19592. (exit $ac_status); } && {
  19593. test -z "$ac_c_werror_flag" ||
  19594. test ! -s conftest.err
  19595. } && test -s conftest.$ac_objext; then
  19596. ac_hi=-1 ac_mid=-1
  19597. while :; do
  19598. cat >conftest.$ac_ext <<_ACEOF
  19599. /* confdefs.h. */
  19600. _ACEOF
  19601. cat confdefs.h >>conftest.$ac_ext
  19602. cat >>conftest.$ac_ext <<_ACEOF
  19603. /* end confdefs.h. */
  19604. $ac_includes_default
  19605. typedef char ac__type_sizeof_;
  19606. int
  19607. main ()
  19608. {
  19609. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  19610. test_array [0] = 0
  19611. ;
  19612. return 0;
  19613. }
  19614. _ACEOF
  19615. rm -f conftest.$ac_objext
  19616. if { (ac_try="$ac_compile"
  19617. case "(($ac_try" in
  19618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19619. *) ac_try_echo=$ac_try;;
  19620. esac
  19621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19622. (eval "$ac_compile") 2>conftest.er1
  19623. ac_status=$?
  19624. grep -v '^ *+' conftest.er1 >conftest.err
  19625. rm -f conftest.er1
  19626. cat conftest.err >&5
  19627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19628. (exit $ac_status); } && {
  19629. test -z "$ac_c_werror_flag" ||
  19630. test ! -s conftest.err
  19631. } && test -s conftest.$ac_objext; then
  19632. ac_lo=$ac_mid; break
  19633. else
  19634. echo "$as_me: failed program was:" >&5
  19635. sed 's/^/| /' conftest.$ac_ext >&5
  19636. ac_hi=`expr '(' $ac_mid ')' - 1`
  19637. if test $ac_mid -le $ac_hi; then
  19638. ac_lo= ac_hi=
  19639. break
  19640. fi
  19641. ac_mid=`expr 2 '*' $ac_mid`
  19642. fi
  19643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19644. done
  19645. else
  19646. echo "$as_me: failed program was:" >&5
  19647. sed 's/^/| /' conftest.$ac_ext >&5
  19648. ac_lo= ac_hi=
  19649. fi
  19650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19651. fi
  19652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19653. # Binary search between lo and hi bounds.
  19654. while test "x$ac_lo" != "x$ac_hi"; do
  19655. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  19656. cat >conftest.$ac_ext <<_ACEOF
  19657. /* confdefs.h. */
  19658. _ACEOF
  19659. cat confdefs.h >>conftest.$ac_ext
  19660. cat >>conftest.$ac_ext <<_ACEOF
  19661. /* end confdefs.h. */
  19662. $ac_includes_default
  19663. typedef char ac__type_sizeof_;
  19664. int
  19665. main ()
  19666. {
  19667. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  19668. test_array [0] = 0
  19669. ;
  19670. return 0;
  19671. }
  19672. _ACEOF
  19673. rm -f conftest.$ac_objext
  19674. if { (ac_try="$ac_compile"
  19675. case "(($ac_try" in
  19676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19677. *) ac_try_echo=$ac_try;;
  19678. esac
  19679. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19680. (eval "$ac_compile") 2>conftest.er1
  19681. ac_status=$?
  19682. grep -v '^ *+' conftest.er1 >conftest.err
  19683. rm -f conftest.er1
  19684. cat conftest.err >&5
  19685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19686. (exit $ac_status); } && {
  19687. test -z "$ac_c_werror_flag" ||
  19688. test ! -s conftest.err
  19689. } && test -s conftest.$ac_objext; then
  19690. ac_hi=$ac_mid
  19691. else
  19692. echo "$as_me: failed program was:" >&5
  19693. sed 's/^/| /' conftest.$ac_ext >&5
  19694. ac_lo=`expr '(' $ac_mid ')' + 1`
  19695. fi
  19696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19697. done
  19698. case $ac_lo in
  19699. ?*) ac_cv_sizeof_char=$ac_lo;;
  19700. '') if test "$ac_cv_type_char" = yes; then
  19701. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
  19702. See \`config.log' for more details." >&5
  19703. echo "$as_me: error: cannot compute sizeof (char)
  19704. See \`config.log' for more details." >&2;}
  19705. { (exit 77); exit 77; }; }
  19706. else
  19707. ac_cv_sizeof_char=0
  19708. fi ;;
  19709. esac
  19710. else
  19711. cat >conftest.$ac_ext <<_ACEOF
  19712. /* confdefs.h. */
  19713. _ACEOF
  19714. cat confdefs.h >>conftest.$ac_ext
  19715. cat >>conftest.$ac_ext <<_ACEOF
  19716. /* end confdefs.h. */
  19717. $ac_includes_default
  19718. typedef char ac__type_sizeof_;
  19719. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  19720. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  19721. #include <stdio.h>
  19722. #include <stdlib.h>
  19723. int
  19724. main ()
  19725. {
  19726. FILE *f = fopen ("conftest.val", "w");
  19727. if (! f)
  19728. return 1;
  19729. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  19730. {
  19731. long int i = longval ();
  19732. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  19733. return 1;
  19734. fprintf (f, "%ld\n", i);
  19735. }
  19736. else
  19737. {
  19738. unsigned long int i = ulongval ();
  19739. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  19740. return 1;
  19741. fprintf (f, "%lu\n", i);
  19742. }
  19743. return ferror (f) || fclose (f) != 0;
  19744. ;
  19745. return 0;
  19746. }
  19747. _ACEOF
  19748. rm -f conftest$ac_exeext
  19749. if { (ac_try="$ac_link"
  19750. case "(($ac_try" in
  19751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19752. *) ac_try_echo=$ac_try;;
  19753. esac
  19754. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19755. (eval "$ac_link") 2>&5
  19756. ac_status=$?
  19757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19758. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19759. { (case "(($ac_try" in
  19760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19761. *) ac_try_echo=$ac_try;;
  19762. esac
  19763. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19764. (eval "$ac_try") 2>&5
  19765. ac_status=$?
  19766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19767. (exit $ac_status); }; }; then
  19768. ac_cv_sizeof_char=`cat conftest.val`
  19769. else
  19770. echo "$as_me: program exited with status $ac_status" >&5
  19771. echo "$as_me: failed program was:" >&5
  19772. sed 's/^/| /' conftest.$ac_ext >&5
  19773. ( exit $ac_status )
  19774. if test "$ac_cv_type_char" = yes; then
  19775. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
  19776. See \`config.log' for more details." >&5
  19777. echo "$as_me: error: cannot compute sizeof (char)
  19778. See \`config.log' for more details." >&2;}
  19779. { (exit 77); exit 77; }; }
  19780. else
  19781. ac_cv_sizeof_char=0
  19782. fi
  19783. fi
  19784. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19785. fi
  19786. rm -f conftest.val
  19787. fi
  19788. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
  19789. echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
  19790. cat >>confdefs.h <<_ACEOF
  19791. #define SIZEOF_CHAR $ac_cv_sizeof_char
  19792. _ACEOF
  19793. { echo "$as_me:$LINENO: checking for short" >&5
  19794. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  19795. if test "${ac_cv_type_short+set}" = set; then
  19796. echo $ECHO_N "(cached) $ECHO_C" >&6
  19797. else
  19798. cat >conftest.$ac_ext <<_ACEOF
  19799. /* confdefs.h. */
  19800. _ACEOF
  19801. cat confdefs.h >>conftest.$ac_ext
  19802. cat >>conftest.$ac_ext <<_ACEOF
  19803. /* end confdefs.h. */
  19804. $ac_includes_default
  19805. typedef short ac__type_new_;
  19806. int
  19807. main ()
  19808. {
  19809. if ((ac__type_new_ *) 0)
  19810. return 0;
  19811. if (sizeof (ac__type_new_))
  19812. return 0;
  19813. ;
  19814. return 0;
  19815. }
  19816. _ACEOF
  19817. rm -f conftest.$ac_objext
  19818. if { (ac_try="$ac_compile"
  19819. case "(($ac_try" in
  19820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19821. *) ac_try_echo=$ac_try;;
  19822. esac
  19823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19824. (eval "$ac_compile") 2>conftest.er1
  19825. ac_status=$?
  19826. grep -v '^ *+' conftest.er1 >conftest.err
  19827. rm -f conftest.er1
  19828. cat conftest.err >&5
  19829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19830. (exit $ac_status); } && {
  19831. test -z "$ac_c_werror_flag" ||
  19832. test ! -s conftest.err
  19833. } && test -s conftest.$ac_objext; then
  19834. ac_cv_type_short=yes
  19835. else
  19836. echo "$as_me: failed program was:" >&5
  19837. sed 's/^/| /' conftest.$ac_ext >&5
  19838. ac_cv_type_short=no
  19839. fi
  19840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19841. fi
  19842. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  19843. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  19844. # The cast to long int works around a bug in the HP C Compiler
  19845. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19846. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19847. # This bug is HP SR number 8606223364.
  19848. { echo "$as_me:$LINENO: checking size of short" >&5
  19849. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  19850. if test "${ac_cv_sizeof_short+set}" = set; then
  19851. echo $ECHO_N "(cached) $ECHO_C" >&6
  19852. else
  19853. if test "$cross_compiling" = yes; then
  19854. # Depending upon the size, compute the lo and hi bounds.
  19855. cat >conftest.$ac_ext <<_ACEOF
  19856. /* confdefs.h. */
  19857. _ACEOF
  19858. cat confdefs.h >>conftest.$ac_ext
  19859. cat >>conftest.$ac_ext <<_ACEOF
  19860. /* end confdefs.h. */
  19861. $ac_includes_default
  19862. typedef short ac__type_sizeof_;
  19863. int
  19864. main ()
  19865. {
  19866. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  19867. test_array [0] = 0
  19868. ;
  19869. return 0;
  19870. }
  19871. _ACEOF
  19872. rm -f conftest.$ac_objext
  19873. if { (ac_try="$ac_compile"
  19874. case "(($ac_try" in
  19875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19876. *) ac_try_echo=$ac_try;;
  19877. esac
  19878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19879. (eval "$ac_compile") 2>conftest.er1
  19880. ac_status=$?
  19881. grep -v '^ *+' conftest.er1 >conftest.err
  19882. rm -f conftest.er1
  19883. cat conftest.err >&5
  19884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19885. (exit $ac_status); } && {
  19886. test -z "$ac_c_werror_flag" ||
  19887. test ! -s conftest.err
  19888. } && test -s conftest.$ac_objext; then
  19889. ac_lo=0 ac_mid=0
  19890. while :; do
  19891. cat >conftest.$ac_ext <<_ACEOF
  19892. /* confdefs.h. */
  19893. _ACEOF
  19894. cat confdefs.h >>conftest.$ac_ext
  19895. cat >>conftest.$ac_ext <<_ACEOF
  19896. /* end confdefs.h. */
  19897. $ac_includes_default
  19898. typedef short ac__type_sizeof_;
  19899. int
  19900. main ()
  19901. {
  19902. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  19903. test_array [0] = 0
  19904. ;
  19905. return 0;
  19906. }
  19907. _ACEOF
  19908. rm -f conftest.$ac_objext
  19909. if { (ac_try="$ac_compile"
  19910. case "(($ac_try" in
  19911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19912. *) ac_try_echo=$ac_try;;
  19913. esac
  19914. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19915. (eval "$ac_compile") 2>conftest.er1
  19916. ac_status=$?
  19917. grep -v '^ *+' conftest.er1 >conftest.err
  19918. rm -f conftest.er1
  19919. cat conftest.err >&5
  19920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19921. (exit $ac_status); } && {
  19922. test -z "$ac_c_werror_flag" ||
  19923. test ! -s conftest.err
  19924. } && test -s conftest.$ac_objext; then
  19925. ac_hi=$ac_mid; break
  19926. else
  19927. echo "$as_me: failed program was:" >&5
  19928. sed 's/^/| /' conftest.$ac_ext >&5
  19929. ac_lo=`expr $ac_mid + 1`
  19930. if test $ac_lo -le $ac_mid; then
  19931. ac_lo= ac_hi=
  19932. break
  19933. fi
  19934. ac_mid=`expr 2 '*' $ac_mid + 1`
  19935. fi
  19936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19937. done
  19938. else
  19939. echo "$as_me: failed program was:" >&5
  19940. sed 's/^/| /' conftest.$ac_ext >&5
  19941. cat >conftest.$ac_ext <<_ACEOF
  19942. /* confdefs.h. */
  19943. _ACEOF
  19944. cat confdefs.h >>conftest.$ac_ext
  19945. cat >>conftest.$ac_ext <<_ACEOF
  19946. /* end confdefs.h. */
  19947. $ac_includes_default
  19948. typedef short ac__type_sizeof_;
  19949. int
  19950. main ()
  19951. {
  19952. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  19953. test_array [0] = 0
  19954. ;
  19955. return 0;
  19956. }
  19957. _ACEOF
  19958. rm -f conftest.$ac_objext
  19959. if { (ac_try="$ac_compile"
  19960. case "(($ac_try" in
  19961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19962. *) ac_try_echo=$ac_try;;
  19963. esac
  19964. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19965. (eval "$ac_compile") 2>conftest.er1
  19966. ac_status=$?
  19967. grep -v '^ *+' conftest.er1 >conftest.err
  19968. rm -f conftest.er1
  19969. cat conftest.err >&5
  19970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19971. (exit $ac_status); } && {
  19972. test -z "$ac_c_werror_flag" ||
  19973. test ! -s conftest.err
  19974. } && test -s conftest.$ac_objext; then
  19975. ac_hi=-1 ac_mid=-1
  19976. while :; do
  19977. cat >conftest.$ac_ext <<_ACEOF
  19978. /* confdefs.h. */
  19979. _ACEOF
  19980. cat confdefs.h >>conftest.$ac_ext
  19981. cat >>conftest.$ac_ext <<_ACEOF
  19982. /* end confdefs.h. */
  19983. $ac_includes_default
  19984. typedef short ac__type_sizeof_;
  19985. int
  19986. main ()
  19987. {
  19988. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  19989. test_array [0] = 0
  19990. ;
  19991. return 0;
  19992. }
  19993. _ACEOF
  19994. rm -f conftest.$ac_objext
  19995. if { (ac_try="$ac_compile"
  19996. case "(($ac_try" in
  19997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19998. *) ac_try_echo=$ac_try;;
  19999. esac
  20000. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20001. (eval "$ac_compile") 2>conftest.er1
  20002. ac_status=$?
  20003. grep -v '^ *+' conftest.er1 >conftest.err
  20004. rm -f conftest.er1
  20005. cat conftest.err >&5
  20006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20007. (exit $ac_status); } && {
  20008. test -z "$ac_c_werror_flag" ||
  20009. test ! -s conftest.err
  20010. } && test -s conftest.$ac_objext; then
  20011. ac_lo=$ac_mid; break
  20012. else
  20013. echo "$as_me: failed program was:" >&5
  20014. sed 's/^/| /' conftest.$ac_ext >&5
  20015. ac_hi=`expr '(' $ac_mid ')' - 1`
  20016. if test $ac_mid -le $ac_hi; then
  20017. ac_lo= ac_hi=
  20018. break
  20019. fi
  20020. ac_mid=`expr 2 '*' $ac_mid`
  20021. fi
  20022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20023. done
  20024. else
  20025. echo "$as_me: failed program was:" >&5
  20026. sed 's/^/| /' conftest.$ac_ext >&5
  20027. ac_lo= ac_hi=
  20028. fi
  20029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20030. fi
  20031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20032. # Binary search between lo and hi bounds.
  20033. while test "x$ac_lo" != "x$ac_hi"; do
  20034. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  20035. cat >conftest.$ac_ext <<_ACEOF
  20036. /* confdefs.h. */
  20037. _ACEOF
  20038. cat confdefs.h >>conftest.$ac_ext
  20039. cat >>conftest.$ac_ext <<_ACEOF
  20040. /* end confdefs.h. */
  20041. $ac_includes_default
  20042. typedef short ac__type_sizeof_;
  20043. int
  20044. main ()
  20045. {
  20046. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  20047. test_array [0] = 0
  20048. ;
  20049. return 0;
  20050. }
  20051. _ACEOF
  20052. rm -f conftest.$ac_objext
  20053. if { (ac_try="$ac_compile"
  20054. case "(($ac_try" in
  20055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20056. *) ac_try_echo=$ac_try;;
  20057. esac
  20058. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20059. (eval "$ac_compile") 2>conftest.er1
  20060. ac_status=$?
  20061. grep -v '^ *+' conftest.er1 >conftest.err
  20062. rm -f conftest.er1
  20063. cat conftest.err >&5
  20064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20065. (exit $ac_status); } && {
  20066. test -z "$ac_c_werror_flag" ||
  20067. test ! -s conftest.err
  20068. } && test -s conftest.$ac_objext; then
  20069. ac_hi=$ac_mid
  20070. else
  20071. echo "$as_me: failed program was:" >&5
  20072. sed 's/^/| /' conftest.$ac_ext >&5
  20073. ac_lo=`expr '(' $ac_mid ')' + 1`
  20074. fi
  20075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20076. done
  20077. case $ac_lo in
  20078. ?*) ac_cv_sizeof_short=$ac_lo;;
  20079. '') if test "$ac_cv_type_short" = yes; then
  20080. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  20081. See \`config.log' for more details." >&5
  20082. echo "$as_me: error: cannot compute sizeof (short)
  20083. See \`config.log' for more details." >&2;}
  20084. { (exit 77); exit 77; }; }
  20085. else
  20086. ac_cv_sizeof_short=0
  20087. fi ;;
  20088. esac
  20089. else
  20090. cat >conftest.$ac_ext <<_ACEOF
  20091. /* confdefs.h. */
  20092. _ACEOF
  20093. cat confdefs.h >>conftest.$ac_ext
  20094. cat >>conftest.$ac_ext <<_ACEOF
  20095. /* end confdefs.h. */
  20096. $ac_includes_default
  20097. typedef short ac__type_sizeof_;
  20098. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  20099. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  20100. #include <stdio.h>
  20101. #include <stdlib.h>
  20102. int
  20103. main ()
  20104. {
  20105. FILE *f = fopen ("conftest.val", "w");
  20106. if (! f)
  20107. return 1;
  20108. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  20109. {
  20110. long int i = longval ();
  20111. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  20112. return 1;
  20113. fprintf (f, "%ld\n", i);
  20114. }
  20115. else
  20116. {
  20117. unsigned long int i = ulongval ();
  20118. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  20119. return 1;
  20120. fprintf (f, "%lu\n", i);
  20121. }
  20122. return ferror (f) || fclose (f) != 0;
  20123. ;
  20124. return 0;
  20125. }
  20126. _ACEOF
  20127. rm -f conftest$ac_exeext
  20128. if { (ac_try="$ac_link"
  20129. case "(($ac_try" in
  20130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20131. *) ac_try_echo=$ac_try;;
  20132. esac
  20133. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20134. (eval "$ac_link") 2>&5
  20135. ac_status=$?
  20136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20137. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20138. { (case "(($ac_try" in
  20139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20140. *) ac_try_echo=$ac_try;;
  20141. esac
  20142. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20143. (eval "$ac_try") 2>&5
  20144. ac_status=$?
  20145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20146. (exit $ac_status); }; }; then
  20147. ac_cv_sizeof_short=`cat conftest.val`
  20148. else
  20149. echo "$as_me: program exited with status $ac_status" >&5
  20150. echo "$as_me: failed program was:" >&5
  20151. sed 's/^/| /' conftest.$ac_ext >&5
  20152. ( exit $ac_status )
  20153. if test "$ac_cv_type_short" = yes; then
  20154. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  20155. See \`config.log' for more details." >&5
  20156. echo "$as_me: error: cannot compute sizeof (short)
  20157. See \`config.log' for more details." >&2;}
  20158. { (exit 77); exit 77; }; }
  20159. else
  20160. ac_cv_sizeof_short=0
  20161. fi
  20162. fi
  20163. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20164. fi
  20165. rm -f conftest.val
  20166. fi
  20167. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  20168. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  20169. cat >>confdefs.h <<_ACEOF
  20170. #define SIZEOF_SHORT $ac_cv_sizeof_short
  20171. _ACEOF
  20172. { echo "$as_me:$LINENO: checking for int" >&5
  20173. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  20174. if test "${ac_cv_type_int+set}" = set; then
  20175. echo $ECHO_N "(cached) $ECHO_C" >&6
  20176. else
  20177. cat >conftest.$ac_ext <<_ACEOF
  20178. /* confdefs.h. */
  20179. _ACEOF
  20180. cat confdefs.h >>conftest.$ac_ext
  20181. cat >>conftest.$ac_ext <<_ACEOF
  20182. /* end confdefs.h. */
  20183. $ac_includes_default
  20184. typedef int ac__type_new_;
  20185. int
  20186. main ()
  20187. {
  20188. if ((ac__type_new_ *) 0)
  20189. return 0;
  20190. if (sizeof (ac__type_new_))
  20191. return 0;
  20192. ;
  20193. return 0;
  20194. }
  20195. _ACEOF
  20196. rm -f conftest.$ac_objext
  20197. if { (ac_try="$ac_compile"
  20198. case "(($ac_try" in
  20199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20200. *) ac_try_echo=$ac_try;;
  20201. esac
  20202. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20203. (eval "$ac_compile") 2>conftest.er1
  20204. ac_status=$?
  20205. grep -v '^ *+' conftest.er1 >conftest.err
  20206. rm -f conftest.er1
  20207. cat conftest.err >&5
  20208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20209. (exit $ac_status); } && {
  20210. test -z "$ac_c_werror_flag" ||
  20211. test ! -s conftest.err
  20212. } && test -s conftest.$ac_objext; then
  20213. ac_cv_type_int=yes
  20214. else
  20215. echo "$as_me: failed program was:" >&5
  20216. sed 's/^/| /' conftest.$ac_ext >&5
  20217. ac_cv_type_int=no
  20218. fi
  20219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20220. fi
  20221. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  20222. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  20223. # The cast to long int works around a bug in the HP C Compiler
  20224. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20225. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20226. # This bug is HP SR number 8606223364.
  20227. { echo "$as_me:$LINENO: checking size of int" >&5
  20228. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  20229. if test "${ac_cv_sizeof_int+set}" = set; then
  20230. echo $ECHO_N "(cached) $ECHO_C" >&6
  20231. else
  20232. if test "$cross_compiling" = yes; then
  20233. # Depending upon the size, compute the lo and hi bounds.
  20234. cat >conftest.$ac_ext <<_ACEOF
  20235. /* confdefs.h. */
  20236. _ACEOF
  20237. cat confdefs.h >>conftest.$ac_ext
  20238. cat >>conftest.$ac_ext <<_ACEOF
  20239. /* end confdefs.h. */
  20240. $ac_includes_default
  20241. typedef int ac__type_sizeof_;
  20242. int
  20243. main ()
  20244. {
  20245. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  20246. test_array [0] = 0
  20247. ;
  20248. return 0;
  20249. }
  20250. _ACEOF
  20251. rm -f conftest.$ac_objext
  20252. if { (ac_try="$ac_compile"
  20253. case "(($ac_try" in
  20254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20255. *) ac_try_echo=$ac_try;;
  20256. esac
  20257. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20258. (eval "$ac_compile") 2>conftest.er1
  20259. ac_status=$?
  20260. grep -v '^ *+' conftest.er1 >conftest.err
  20261. rm -f conftest.er1
  20262. cat conftest.err >&5
  20263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20264. (exit $ac_status); } && {
  20265. test -z "$ac_c_werror_flag" ||
  20266. test ! -s conftest.err
  20267. } && test -s conftest.$ac_objext; then
  20268. ac_lo=0 ac_mid=0
  20269. while :; do
  20270. cat >conftest.$ac_ext <<_ACEOF
  20271. /* confdefs.h. */
  20272. _ACEOF
  20273. cat confdefs.h >>conftest.$ac_ext
  20274. cat >>conftest.$ac_ext <<_ACEOF
  20275. /* end confdefs.h. */
  20276. $ac_includes_default
  20277. typedef int ac__type_sizeof_;
  20278. int
  20279. main ()
  20280. {
  20281. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  20282. test_array [0] = 0
  20283. ;
  20284. return 0;
  20285. }
  20286. _ACEOF
  20287. rm -f conftest.$ac_objext
  20288. if { (ac_try="$ac_compile"
  20289. case "(($ac_try" in
  20290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20291. *) ac_try_echo=$ac_try;;
  20292. esac
  20293. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20294. (eval "$ac_compile") 2>conftest.er1
  20295. ac_status=$?
  20296. grep -v '^ *+' conftest.er1 >conftest.err
  20297. rm -f conftest.er1
  20298. cat conftest.err >&5
  20299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20300. (exit $ac_status); } && {
  20301. test -z "$ac_c_werror_flag" ||
  20302. test ! -s conftest.err
  20303. } && test -s conftest.$ac_objext; then
  20304. ac_hi=$ac_mid; break
  20305. else
  20306. echo "$as_me: failed program was:" >&5
  20307. sed 's/^/| /' conftest.$ac_ext >&5
  20308. ac_lo=`expr $ac_mid + 1`
  20309. if test $ac_lo -le $ac_mid; then
  20310. ac_lo= ac_hi=
  20311. break
  20312. fi
  20313. ac_mid=`expr 2 '*' $ac_mid + 1`
  20314. fi
  20315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20316. done
  20317. else
  20318. echo "$as_me: failed program was:" >&5
  20319. sed 's/^/| /' conftest.$ac_ext >&5
  20320. cat >conftest.$ac_ext <<_ACEOF
  20321. /* confdefs.h. */
  20322. _ACEOF
  20323. cat confdefs.h >>conftest.$ac_ext
  20324. cat >>conftest.$ac_ext <<_ACEOF
  20325. /* end confdefs.h. */
  20326. $ac_includes_default
  20327. typedef int ac__type_sizeof_;
  20328. int
  20329. main ()
  20330. {
  20331. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  20332. test_array [0] = 0
  20333. ;
  20334. return 0;
  20335. }
  20336. _ACEOF
  20337. rm -f conftest.$ac_objext
  20338. if { (ac_try="$ac_compile"
  20339. case "(($ac_try" in
  20340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20341. *) ac_try_echo=$ac_try;;
  20342. esac
  20343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20344. (eval "$ac_compile") 2>conftest.er1
  20345. ac_status=$?
  20346. grep -v '^ *+' conftest.er1 >conftest.err
  20347. rm -f conftest.er1
  20348. cat conftest.err >&5
  20349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20350. (exit $ac_status); } && {
  20351. test -z "$ac_c_werror_flag" ||
  20352. test ! -s conftest.err
  20353. } && test -s conftest.$ac_objext; then
  20354. ac_hi=-1 ac_mid=-1
  20355. while :; do
  20356. cat >conftest.$ac_ext <<_ACEOF
  20357. /* confdefs.h. */
  20358. _ACEOF
  20359. cat confdefs.h >>conftest.$ac_ext
  20360. cat >>conftest.$ac_ext <<_ACEOF
  20361. /* end confdefs.h. */
  20362. $ac_includes_default
  20363. typedef int ac__type_sizeof_;
  20364. int
  20365. main ()
  20366. {
  20367. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  20368. test_array [0] = 0
  20369. ;
  20370. return 0;
  20371. }
  20372. _ACEOF
  20373. rm -f conftest.$ac_objext
  20374. if { (ac_try="$ac_compile"
  20375. case "(($ac_try" in
  20376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20377. *) ac_try_echo=$ac_try;;
  20378. esac
  20379. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20380. (eval "$ac_compile") 2>conftest.er1
  20381. ac_status=$?
  20382. grep -v '^ *+' conftest.er1 >conftest.err
  20383. rm -f conftest.er1
  20384. cat conftest.err >&5
  20385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20386. (exit $ac_status); } && {
  20387. test -z "$ac_c_werror_flag" ||
  20388. test ! -s conftest.err
  20389. } && test -s conftest.$ac_objext; then
  20390. ac_lo=$ac_mid; break
  20391. else
  20392. echo "$as_me: failed program was:" >&5
  20393. sed 's/^/| /' conftest.$ac_ext >&5
  20394. ac_hi=`expr '(' $ac_mid ')' - 1`
  20395. if test $ac_mid -le $ac_hi; then
  20396. ac_lo= ac_hi=
  20397. break
  20398. fi
  20399. ac_mid=`expr 2 '*' $ac_mid`
  20400. fi
  20401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20402. done
  20403. else
  20404. echo "$as_me: failed program was:" >&5
  20405. sed 's/^/| /' conftest.$ac_ext >&5
  20406. ac_lo= ac_hi=
  20407. fi
  20408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20409. fi
  20410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20411. # Binary search between lo and hi bounds.
  20412. while test "x$ac_lo" != "x$ac_hi"; do
  20413. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  20414. cat >conftest.$ac_ext <<_ACEOF
  20415. /* confdefs.h. */
  20416. _ACEOF
  20417. cat confdefs.h >>conftest.$ac_ext
  20418. cat >>conftest.$ac_ext <<_ACEOF
  20419. /* end confdefs.h. */
  20420. $ac_includes_default
  20421. typedef int ac__type_sizeof_;
  20422. int
  20423. main ()
  20424. {
  20425. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  20426. test_array [0] = 0
  20427. ;
  20428. return 0;
  20429. }
  20430. _ACEOF
  20431. rm -f conftest.$ac_objext
  20432. if { (ac_try="$ac_compile"
  20433. case "(($ac_try" in
  20434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20435. *) ac_try_echo=$ac_try;;
  20436. esac
  20437. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20438. (eval "$ac_compile") 2>conftest.er1
  20439. ac_status=$?
  20440. grep -v '^ *+' conftest.er1 >conftest.err
  20441. rm -f conftest.er1
  20442. cat conftest.err >&5
  20443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20444. (exit $ac_status); } && {
  20445. test -z "$ac_c_werror_flag" ||
  20446. test ! -s conftest.err
  20447. } && test -s conftest.$ac_objext; then
  20448. ac_hi=$ac_mid
  20449. else
  20450. echo "$as_me: failed program was:" >&5
  20451. sed 's/^/| /' conftest.$ac_ext >&5
  20452. ac_lo=`expr '(' $ac_mid ')' + 1`
  20453. fi
  20454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20455. done
  20456. case $ac_lo in
  20457. ?*) ac_cv_sizeof_int=$ac_lo;;
  20458. '') if test "$ac_cv_type_int" = yes; then
  20459. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  20460. See \`config.log' for more details." >&5
  20461. echo "$as_me: error: cannot compute sizeof (int)
  20462. See \`config.log' for more details." >&2;}
  20463. { (exit 77); exit 77; }; }
  20464. else
  20465. ac_cv_sizeof_int=0
  20466. fi ;;
  20467. esac
  20468. else
  20469. cat >conftest.$ac_ext <<_ACEOF
  20470. /* confdefs.h. */
  20471. _ACEOF
  20472. cat confdefs.h >>conftest.$ac_ext
  20473. cat >>conftest.$ac_ext <<_ACEOF
  20474. /* end confdefs.h. */
  20475. $ac_includes_default
  20476. typedef int ac__type_sizeof_;
  20477. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  20478. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  20479. #include <stdio.h>
  20480. #include <stdlib.h>
  20481. int
  20482. main ()
  20483. {
  20484. FILE *f = fopen ("conftest.val", "w");
  20485. if (! f)
  20486. return 1;
  20487. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  20488. {
  20489. long int i = longval ();
  20490. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  20491. return 1;
  20492. fprintf (f, "%ld\n", i);
  20493. }
  20494. else
  20495. {
  20496. unsigned long int i = ulongval ();
  20497. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  20498. return 1;
  20499. fprintf (f, "%lu\n", i);
  20500. }
  20501. return ferror (f) || fclose (f) != 0;
  20502. ;
  20503. return 0;
  20504. }
  20505. _ACEOF
  20506. rm -f conftest$ac_exeext
  20507. if { (ac_try="$ac_link"
  20508. case "(($ac_try" in
  20509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20510. *) ac_try_echo=$ac_try;;
  20511. esac
  20512. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20513. (eval "$ac_link") 2>&5
  20514. ac_status=$?
  20515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20516. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20517. { (case "(($ac_try" in
  20518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20519. *) ac_try_echo=$ac_try;;
  20520. esac
  20521. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20522. (eval "$ac_try") 2>&5
  20523. ac_status=$?
  20524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20525. (exit $ac_status); }; }; then
  20526. ac_cv_sizeof_int=`cat conftest.val`
  20527. else
  20528. echo "$as_me: program exited with status $ac_status" >&5
  20529. echo "$as_me: failed program was:" >&5
  20530. sed 's/^/| /' conftest.$ac_ext >&5
  20531. ( exit $ac_status )
  20532. if test "$ac_cv_type_int" = yes; then
  20533. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  20534. See \`config.log' for more details." >&5
  20535. echo "$as_me: error: cannot compute sizeof (int)
  20536. See \`config.log' for more details." >&2;}
  20537. { (exit 77); exit 77; }; }
  20538. else
  20539. ac_cv_sizeof_int=0
  20540. fi
  20541. fi
  20542. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20543. fi
  20544. rm -f conftest.val
  20545. fi
  20546. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  20547. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  20548. cat >>confdefs.h <<_ACEOF
  20549. #define SIZEOF_INT $ac_cv_sizeof_int
  20550. _ACEOF
  20551. { echo "$as_me:$LINENO: checking for long" >&5
  20552. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  20553. if test "${ac_cv_type_long+set}" = set; then
  20554. echo $ECHO_N "(cached) $ECHO_C" >&6
  20555. else
  20556. cat >conftest.$ac_ext <<_ACEOF
  20557. /* confdefs.h. */
  20558. _ACEOF
  20559. cat confdefs.h >>conftest.$ac_ext
  20560. cat >>conftest.$ac_ext <<_ACEOF
  20561. /* end confdefs.h. */
  20562. $ac_includes_default
  20563. typedef long ac__type_new_;
  20564. int
  20565. main ()
  20566. {
  20567. if ((ac__type_new_ *) 0)
  20568. return 0;
  20569. if (sizeof (ac__type_new_))
  20570. return 0;
  20571. ;
  20572. return 0;
  20573. }
  20574. _ACEOF
  20575. rm -f conftest.$ac_objext
  20576. if { (ac_try="$ac_compile"
  20577. case "(($ac_try" in
  20578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20579. *) ac_try_echo=$ac_try;;
  20580. esac
  20581. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20582. (eval "$ac_compile") 2>conftest.er1
  20583. ac_status=$?
  20584. grep -v '^ *+' conftest.er1 >conftest.err
  20585. rm -f conftest.er1
  20586. cat conftest.err >&5
  20587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20588. (exit $ac_status); } && {
  20589. test -z "$ac_c_werror_flag" ||
  20590. test ! -s conftest.err
  20591. } && test -s conftest.$ac_objext; then
  20592. ac_cv_type_long=yes
  20593. else
  20594. echo "$as_me: failed program was:" >&5
  20595. sed 's/^/| /' conftest.$ac_ext >&5
  20596. ac_cv_type_long=no
  20597. fi
  20598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20599. fi
  20600. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  20601. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  20602. # The cast to long int works around a bug in the HP C Compiler
  20603. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20604. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20605. # This bug is HP SR number 8606223364.
  20606. { echo "$as_me:$LINENO: checking size of long" >&5
  20607. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  20608. if test "${ac_cv_sizeof_long+set}" = set; then
  20609. echo $ECHO_N "(cached) $ECHO_C" >&6
  20610. else
  20611. if test "$cross_compiling" = yes; then
  20612. # Depending upon the size, compute the lo and hi bounds.
  20613. cat >conftest.$ac_ext <<_ACEOF
  20614. /* confdefs.h. */
  20615. _ACEOF
  20616. cat confdefs.h >>conftest.$ac_ext
  20617. cat >>conftest.$ac_ext <<_ACEOF
  20618. /* end confdefs.h. */
  20619. $ac_includes_default
  20620. typedef long ac__type_sizeof_;
  20621. int
  20622. main ()
  20623. {
  20624. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  20625. test_array [0] = 0
  20626. ;
  20627. return 0;
  20628. }
  20629. _ACEOF
  20630. rm -f conftest.$ac_objext
  20631. if { (ac_try="$ac_compile"
  20632. case "(($ac_try" in
  20633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20634. *) ac_try_echo=$ac_try;;
  20635. esac
  20636. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20637. (eval "$ac_compile") 2>conftest.er1
  20638. ac_status=$?
  20639. grep -v '^ *+' conftest.er1 >conftest.err
  20640. rm -f conftest.er1
  20641. cat conftest.err >&5
  20642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20643. (exit $ac_status); } && {
  20644. test -z "$ac_c_werror_flag" ||
  20645. test ! -s conftest.err
  20646. } && test -s conftest.$ac_objext; then
  20647. ac_lo=0 ac_mid=0
  20648. while :; do
  20649. cat >conftest.$ac_ext <<_ACEOF
  20650. /* confdefs.h. */
  20651. _ACEOF
  20652. cat confdefs.h >>conftest.$ac_ext
  20653. cat >>conftest.$ac_ext <<_ACEOF
  20654. /* end confdefs.h. */
  20655. $ac_includes_default
  20656. typedef long ac__type_sizeof_;
  20657. int
  20658. main ()
  20659. {
  20660. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  20661. test_array [0] = 0
  20662. ;
  20663. return 0;
  20664. }
  20665. _ACEOF
  20666. rm -f conftest.$ac_objext
  20667. if { (ac_try="$ac_compile"
  20668. case "(($ac_try" in
  20669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20670. *) ac_try_echo=$ac_try;;
  20671. esac
  20672. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20673. (eval "$ac_compile") 2>conftest.er1
  20674. ac_status=$?
  20675. grep -v '^ *+' conftest.er1 >conftest.err
  20676. rm -f conftest.er1
  20677. cat conftest.err >&5
  20678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20679. (exit $ac_status); } && {
  20680. test -z "$ac_c_werror_flag" ||
  20681. test ! -s conftest.err
  20682. } && test -s conftest.$ac_objext; then
  20683. ac_hi=$ac_mid; break
  20684. else
  20685. echo "$as_me: failed program was:" >&5
  20686. sed 's/^/| /' conftest.$ac_ext >&5
  20687. ac_lo=`expr $ac_mid + 1`
  20688. if test $ac_lo -le $ac_mid; then
  20689. ac_lo= ac_hi=
  20690. break
  20691. fi
  20692. ac_mid=`expr 2 '*' $ac_mid + 1`
  20693. fi
  20694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20695. done
  20696. else
  20697. echo "$as_me: failed program was:" >&5
  20698. sed 's/^/| /' conftest.$ac_ext >&5
  20699. cat >conftest.$ac_ext <<_ACEOF
  20700. /* confdefs.h. */
  20701. _ACEOF
  20702. cat confdefs.h >>conftest.$ac_ext
  20703. cat >>conftest.$ac_ext <<_ACEOF
  20704. /* end confdefs.h. */
  20705. $ac_includes_default
  20706. typedef long ac__type_sizeof_;
  20707. int
  20708. main ()
  20709. {
  20710. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  20711. test_array [0] = 0
  20712. ;
  20713. return 0;
  20714. }
  20715. _ACEOF
  20716. rm -f conftest.$ac_objext
  20717. if { (ac_try="$ac_compile"
  20718. case "(($ac_try" in
  20719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20720. *) ac_try_echo=$ac_try;;
  20721. esac
  20722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20723. (eval "$ac_compile") 2>conftest.er1
  20724. ac_status=$?
  20725. grep -v '^ *+' conftest.er1 >conftest.err
  20726. rm -f conftest.er1
  20727. cat conftest.err >&5
  20728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20729. (exit $ac_status); } && {
  20730. test -z "$ac_c_werror_flag" ||
  20731. test ! -s conftest.err
  20732. } && test -s conftest.$ac_objext; then
  20733. ac_hi=-1 ac_mid=-1
  20734. while :; do
  20735. cat >conftest.$ac_ext <<_ACEOF
  20736. /* confdefs.h. */
  20737. _ACEOF
  20738. cat confdefs.h >>conftest.$ac_ext
  20739. cat >>conftest.$ac_ext <<_ACEOF
  20740. /* end confdefs.h. */
  20741. $ac_includes_default
  20742. typedef long ac__type_sizeof_;
  20743. int
  20744. main ()
  20745. {
  20746. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  20747. test_array [0] = 0
  20748. ;
  20749. return 0;
  20750. }
  20751. _ACEOF
  20752. rm -f conftest.$ac_objext
  20753. if { (ac_try="$ac_compile"
  20754. case "(($ac_try" in
  20755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20756. *) ac_try_echo=$ac_try;;
  20757. esac
  20758. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20759. (eval "$ac_compile") 2>conftest.er1
  20760. ac_status=$?
  20761. grep -v '^ *+' conftest.er1 >conftest.err
  20762. rm -f conftest.er1
  20763. cat conftest.err >&5
  20764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20765. (exit $ac_status); } && {
  20766. test -z "$ac_c_werror_flag" ||
  20767. test ! -s conftest.err
  20768. } && test -s conftest.$ac_objext; then
  20769. ac_lo=$ac_mid; break
  20770. else
  20771. echo "$as_me: failed program was:" >&5
  20772. sed 's/^/| /' conftest.$ac_ext >&5
  20773. ac_hi=`expr '(' $ac_mid ')' - 1`
  20774. if test $ac_mid -le $ac_hi; then
  20775. ac_lo= ac_hi=
  20776. break
  20777. fi
  20778. ac_mid=`expr 2 '*' $ac_mid`
  20779. fi
  20780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20781. done
  20782. else
  20783. echo "$as_me: failed program was:" >&5
  20784. sed 's/^/| /' conftest.$ac_ext >&5
  20785. ac_lo= ac_hi=
  20786. fi
  20787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20788. fi
  20789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20790. # Binary search between lo and hi bounds.
  20791. while test "x$ac_lo" != "x$ac_hi"; do
  20792. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  20793. cat >conftest.$ac_ext <<_ACEOF
  20794. /* confdefs.h. */
  20795. _ACEOF
  20796. cat confdefs.h >>conftest.$ac_ext
  20797. cat >>conftest.$ac_ext <<_ACEOF
  20798. /* end confdefs.h. */
  20799. $ac_includes_default
  20800. typedef long ac__type_sizeof_;
  20801. int
  20802. main ()
  20803. {
  20804. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  20805. test_array [0] = 0
  20806. ;
  20807. return 0;
  20808. }
  20809. _ACEOF
  20810. rm -f conftest.$ac_objext
  20811. if { (ac_try="$ac_compile"
  20812. case "(($ac_try" in
  20813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20814. *) ac_try_echo=$ac_try;;
  20815. esac
  20816. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20817. (eval "$ac_compile") 2>conftest.er1
  20818. ac_status=$?
  20819. grep -v '^ *+' conftest.er1 >conftest.err
  20820. rm -f conftest.er1
  20821. cat conftest.err >&5
  20822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20823. (exit $ac_status); } && {
  20824. test -z "$ac_c_werror_flag" ||
  20825. test ! -s conftest.err
  20826. } && test -s conftest.$ac_objext; then
  20827. ac_hi=$ac_mid
  20828. else
  20829. echo "$as_me: failed program was:" >&5
  20830. sed 's/^/| /' conftest.$ac_ext >&5
  20831. ac_lo=`expr '(' $ac_mid ')' + 1`
  20832. fi
  20833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20834. done
  20835. case $ac_lo in
  20836. ?*) ac_cv_sizeof_long=$ac_lo;;
  20837. '') if test "$ac_cv_type_long" = yes; then
  20838. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  20839. See \`config.log' for more details." >&5
  20840. echo "$as_me: error: cannot compute sizeof (long)
  20841. See \`config.log' for more details." >&2;}
  20842. { (exit 77); exit 77; }; }
  20843. else
  20844. ac_cv_sizeof_long=0
  20845. fi ;;
  20846. esac
  20847. else
  20848. cat >conftest.$ac_ext <<_ACEOF
  20849. /* confdefs.h. */
  20850. _ACEOF
  20851. cat confdefs.h >>conftest.$ac_ext
  20852. cat >>conftest.$ac_ext <<_ACEOF
  20853. /* end confdefs.h. */
  20854. $ac_includes_default
  20855. typedef long ac__type_sizeof_;
  20856. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  20857. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  20858. #include <stdio.h>
  20859. #include <stdlib.h>
  20860. int
  20861. main ()
  20862. {
  20863. FILE *f = fopen ("conftest.val", "w");
  20864. if (! f)
  20865. return 1;
  20866. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  20867. {
  20868. long int i = longval ();
  20869. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  20870. return 1;
  20871. fprintf (f, "%ld\n", i);
  20872. }
  20873. else
  20874. {
  20875. unsigned long int i = ulongval ();
  20876. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  20877. return 1;
  20878. fprintf (f, "%lu\n", i);
  20879. }
  20880. return ferror (f) || fclose (f) != 0;
  20881. ;
  20882. return 0;
  20883. }
  20884. _ACEOF
  20885. rm -f conftest$ac_exeext
  20886. if { (ac_try="$ac_link"
  20887. case "(($ac_try" in
  20888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20889. *) ac_try_echo=$ac_try;;
  20890. esac
  20891. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20892. (eval "$ac_link") 2>&5
  20893. ac_status=$?
  20894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20895. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20896. { (case "(($ac_try" in
  20897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20898. *) ac_try_echo=$ac_try;;
  20899. esac
  20900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20901. (eval "$ac_try") 2>&5
  20902. ac_status=$?
  20903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20904. (exit $ac_status); }; }; then
  20905. ac_cv_sizeof_long=`cat conftest.val`
  20906. else
  20907. echo "$as_me: program exited with status $ac_status" >&5
  20908. echo "$as_me: failed program was:" >&5
  20909. sed 's/^/| /' conftest.$ac_ext >&5
  20910. ( exit $ac_status )
  20911. if test "$ac_cv_type_long" = yes; then
  20912. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  20913. See \`config.log' for more details." >&5
  20914. echo "$as_me: error: cannot compute sizeof (long)
  20915. See \`config.log' for more details." >&2;}
  20916. { (exit 77); exit 77; }; }
  20917. else
  20918. ac_cv_sizeof_long=0
  20919. fi
  20920. fi
  20921. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20922. fi
  20923. rm -f conftest.val
  20924. fi
  20925. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  20926. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  20927. cat >>confdefs.h <<_ACEOF
  20928. #define SIZEOF_LONG $ac_cv_sizeof_long
  20929. _ACEOF
  20930. { echo "$as_me:$LINENO: checking for void*" >&5
  20931. echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
  20932. if test "${ac_cv_type_voidp+set}" = set; then
  20933. echo $ECHO_N "(cached) $ECHO_C" >&6
  20934. else
  20935. cat >conftest.$ac_ext <<_ACEOF
  20936. /* confdefs.h. */
  20937. _ACEOF
  20938. cat confdefs.h >>conftest.$ac_ext
  20939. cat >>conftest.$ac_ext <<_ACEOF
  20940. /* end confdefs.h. */
  20941. $ac_includes_default
  20942. typedef void* ac__type_new_;
  20943. int
  20944. main ()
  20945. {
  20946. if ((ac__type_new_ *) 0)
  20947. return 0;
  20948. if (sizeof (ac__type_new_))
  20949. return 0;
  20950. ;
  20951. return 0;
  20952. }
  20953. _ACEOF
  20954. rm -f conftest.$ac_objext
  20955. if { (ac_try="$ac_compile"
  20956. case "(($ac_try" in
  20957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20958. *) ac_try_echo=$ac_try;;
  20959. esac
  20960. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20961. (eval "$ac_compile") 2>conftest.er1
  20962. ac_status=$?
  20963. grep -v '^ *+' conftest.er1 >conftest.err
  20964. rm -f conftest.er1
  20965. cat conftest.err >&5
  20966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20967. (exit $ac_status); } && {
  20968. test -z "$ac_c_werror_flag" ||
  20969. test ! -s conftest.err
  20970. } && test -s conftest.$ac_objext; then
  20971. ac_cv_type_voidp=yes
  20972. else
  20973. echo "$as_me: failed program was:" >&5
  20974. sed 's/^/| /' conftest.$ac_ext >&5
  20975. ac_cv_type_voidp=no
  20976. fi
  20977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20978. fi
  20979. { echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
  20980. echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
  20981. # The cast to long int works around a bug in the HP C Compiler
  20982. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20983. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20984. # This bug is HP SR number 8606223364.
  20985. { echo "$as_me:$LINENO: checking size of void*" >&5
  20986. echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
  20987. if test "${ac_cv_sizeof_voidp+set}" = set; then
  20988. echo $ECHO_N "(cached) $ECHO_C" >&6
  20989. else
  20990. if test "$cross_compiling" = yes; then
  20991. # Depending upon the size, compute the lo and hi bounds.
  20992. cat >conftest.$ac_ext <<_ACEOF
  20993. /* confdefs.h. */
  20994. _ACEOF
  20995. cat confdefs.h >>conftest.$ac_ext
  20996. cat >>conftest.$ac_ext <<_ACEOF
  20997. /* end confdefs.h. */
  20998. $ac_includes_default
  20999. typedef void* ac__type_sizeof_;
  21000. int
  21001. main ()
  21002. {
  21003. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  21004. test_array [0] = 0
  21005. ;
  21006. return 0;
  21007. }
  21008. _ACEOF
  21009. rm -f conftest.$ac_objext
  21010. if { (ac_try="$ac_compile"
  21011. case "(($ac_try" in
  21012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21013. *) ac_try_echo=$ac_try;;
  21014. esac
  21015. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21016. (eval "$ac_compile") 2>conftest.er1
  21017. ac_status=$?
  21018. grep -v '^ *+' conftest.er1 >conftest.err
  21019. rm -f conftest.er1
  21020. cat conftest.err >&5
  21021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21022. (exit $ac_status); } && {
  21023. test -z "$ac_c_werror_flag" ||
  21024. test ! -s conftest.err
  21025. } && test -s conftest.$ac_objext; then
  21026. ac_lo=0 ac_mid=0
  21027. while :; do
  21028. cat >conftest.$ac_ext <<_ACEOF
  21029. /* confdefs.h. */
  21030. _ACEOF
  21031. cat confdefs.h >>conftest.$ac_ext
  21032. cat >>conftest.$ac_ext <<_ACEOF
  21033. /* end confdefs.h. */
  21034. $ac_includes_default
  21035. typedef void* ac__type_sizeof_;
  21036. int
  21037. main ()
  21038. {
  21039. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  21040. test_array [0] = 0
  21041. ;
  21042. return 0;
  21043. }
  21044. _ACEOF
  21045. rm -f conftest.$ac_objext
  21046. if { (ac_try="$ac_compile"
  21047. case "(($ac_try" in
  21048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21049. *) ac_try_echo=$ac_try;;
  21050. esac
  21051. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21052. (eval "$ac_compile") 2>conftest.er1
  21053. ac_status=$?
  21054. grep -v '^ *+' conftest.er1 >conftest.err
  21055. rm -f conftest.er1
  21056. cat conftest.err >&5
  21057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21058. (exit $ac_status); } && {
  21059. test -z "$ac_c_werror_flag" ||
  21060. test ! -s conftest.err
  21061. } && test -s conftest.$ac_objext; then
  21062. ac_hi=$ac_mid; break
  21063. else
  21064. echo "$as_me: failed program was:" >&5
  21065. sed 's/^/| /' conftest.$ac_ext >&5
  21066. ac_lo=`expr $ac_mid + 1`
  21067. if test $ac_lo -le $ac_mid; then
  21068. ac_lo= ac_hi=
  21069. break
  21070. fi
  21071. ac_mid=`expr 2 '*' $ac_mid + 1`
  21072. fi
  21073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21074. done
  21075. else
  21076. echo "$as_me: failed program was:" >&5
  21077. sed 's/^/| /' conftest.$ac_ext >&5
  21078. cat >conftest.$ac_ext <<_ACEOF
  21079. /* confdefs.h. */
  21080. _ACEOF
  21081. cat confdefs.h >>conftest.$ac_ext
  21082. cat >>conftest.$ac_ext <<_ACEOF
  21083. /* end confdefs.h. */
  21084. $ac_includes_default
  21085. typedef void* ac__type_sizeof_;
  21086. int
  21087. main ()
  21088. {
  21089. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  21090. test_array [0] = 0
  21091. ;
  21092. return 0;
  21093. }
  21094. _ACEOF
  21095. rm -f conftest.$ac_objext
  21096. if { (ac_try="$ac_compile"
  21097. case "(($ac_try" in
  21098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21099. *) ac_try_echo=$ac_try;;
  21100. esac
  21101. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21102. (eval "$ac_compile") 2>conftest.er1
  21103. ac_status=$?
  21104. grep -v '^ *+' conftest.er1 >conftest.err
  21105. rm -f conftest.er1
  21106. cat conftest.err >&5
  21107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21108. (exit $ac_status); } && {
  21109. test -z "$ac_c_werror_flag" ||
  21110. test ! -s conftest.err
  21111. } && test -s conftest.$ac_objext; then
  21112. ac_hi=-1 ac_mid=-1
  21113. while :; do
  21114. cat >conftest.$ac_ext <<_ACEOF
  21115. /* confdefs.h. */
  21116. _ACEOF
  21117. cat confdefs.h >>conftest.$ac_ext
  21118. cat >>conftest.$ac_ext <<_ACEOF
  21119. /* end confdefs.h. */
  21120. $ac_includes_default
  21121. typedef void* ac__type_sizeof_;
  21122. int
  21123. main ()
  21124. {
  21125. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  21126. test_array [0] = 0
  21127. ;
  21128. return 0;
  21129. }
  21130. _ACEOF
  21131. rm -f conftest.$ac_objext
  21132. if { (ac_try="$ac_compile"
  21133. case "(($ac_try" in
  21134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21135. *) ac_try_echo=$ac_try;;
  21136. esac
  21137. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21138. (eval "$ac_compile") 2>conftest.er1
  21139. ac_status=$?
  21140. grep -v '^ *+' conftest.er1 >conftest.err
  21141. rm -f conftest.er1
  21142. cat conftest.err >&5
  21143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21144. (exit $ac_status); } && {
  21145. test -z "$ac_c_werror_flag" ||
  21146. test ! -s conftest.err
  21147. } && test -s conftest.$ac_objext; then
  21148. ac_lo=$ac_mid; break
  21149. else
  21150. echo "$as_me: failed program was:" >&5
  21151. sed 's/^/| /' conftest.$ac_ext >&5
  21152. ac_hi=`expr '(' $ac_mid ')' - 1`
  21153. if test $ac_mid -le $ac_hi; then
  21154. ac_lo= ac_hi=
  21155. break
  21156. fi
  21157. ac_mid=`expr 2 '*' $ac_mid`
  21158. fi
  21159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21160. done
  21161. else
  21162. echo "$as_me: failed program was:" >&5
  21163. sed 's/^/| /' conftest.$ac_ext >&5
  21164. ac_lo= ac_hi=
  21165. fi
  21166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21167. fi
  21168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21169. # Binary search between lo and hi bounds.
  21170. while test "x$ac_lo" != "x$ac_hi"; do
  21171. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  21172. cat >conftest.$ac_ext <<_ACEOF
  21173. /* confdefs.h. */
  21174. _ACEOF
  21175. cat confdefs.h >>conftest.$ac_ext
  21176. cat >>conftest.$ac_ext <<_ACEOF
  21177. /* end confdefs.h. */
  21178. $ac_includes_default
  21179. typedef void* ac__type_sizeof_;
  21180. int
  21181. main ()
  21182. {
  21183. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  21184. test_array [0] = 0
  21185. ;
  21186. return 0;
  21187. }
  21188. _ACEOF
  21189. rm -f conftest.$ac_objext
  21190. if { (ac_try="$ac_compile"
  21191. case "(($ac_try" in
  21192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21193. *) ac_try_echo=$ac_try;;
  21194. esac
  21195. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21196. (eval "$ac_compile") 2>conftest.er1
  21197. ac_status=$?
  21198. grep -v '^ *+' conftest.er1 >conftest.err
  21199. rm -f conftest.er1
  21200. cat conftest.err >&5
  21201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21202. (exit $ac_status); } && {
  21203. test -z "$ac_c_werror_flag" ||
  21204. test ! -s conftest.err
  21205. } && test -s conftest.$ac_objext; then
  21206. ac_hi=$ac_mid
  21207. else
  21208. echo "$as_me: failed program was:" >&5
  21209. sed 's/^/| /' conftest.$ac_ext >&5
  21210. ac_lo=`expr '(' $ac_mid ')' + 1`
  21211. fi
  21212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21213. done
  21214. case $ac_lo in
  21215. ?*) ac_cv_sizeof_voidp=$ac_lo;;
  21216. '') if test "$ac_cv_type_voidp" = yes; then
  21217. { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
  21218. See \`config.log' for more details." >&5
  21219. echo "$as_me: error: cannot compute sizeof (void*)
  21220. See \`config.log' for more details." >&2;}
  21221. { (exit 77); exit 77; }; }
  21222. else
  21223. ac_cv_sizeof_voidp=0
  21224. fi ;;
  21225. esac
  21226. else
  21227. cat >conftest.$ac_ext <<_ACEOF
  21228. /* confdefs.h. */
  21229. _ACEOF
  21230. cat confdefs.h >>conftest.$ac_ext
  21231. cat >>conftest.$ac_ext <<_ACEOF
  21232. /* end confdefs.h. */
  21233. $ac_includes_default
  21234. typedef void* ac__type_sizeof_;
  21235. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  21236. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  21237. #include <stdio.h>
  21238. #include <stdlib.h>
  21239. int
  21240. main ()
  21241. {
  21242. FILE *f = fopen ("conftest.val", "w");
  21243. if (! f)
  21244. return 1;
  21245. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  21246. {
  21247. long int i = longval ();
  21248. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  21249. return 1;
  21250. fprintf (f, "%ld\n", i);
  21251. }
  21252. else
  21253. {
  21254. unsigned long int i = ulongval ();
  21255. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  21256. return 1;
  21257. fprintf (f, "%lu\n", i);
  21258. }
  21259. return ferror (f) || fclose (f) != 0;
  21260. ;
  21261. return 0;
  21262. }
  21263. _ACEOF
  21264. rm -f conftest$ac_exeext
  21265. if { (ac_try="$ac_link"
  21266. case "(($ac_try" in
  21267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21268. *) ac_try_echo=$ac_try;;
  21269. esac
  21270. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21271. (eval "$ac_link") 2>&5
  21272. ac_status=$?
  21273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21274. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21275. { (case "(($ac_try" in
  21276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21277. *) ac_try_echo=$ac_try;;
  21278. esac
  21279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21280. (eval "$ac_try") 2>&5
  21281. ac_status=$?
  21282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21283. (exit $ac_status); }; }; then
  21284. ac_cv_sizeof_voidp=`cat conftest.val`
  21285. else
  21286. echo "$as_me: program exited with status $ac_status" >&5
  21287. echo "$as_me: failed program was:" >&5
  21288. sed 's/^/| /' conftest.$ac_ext >&5
  21289. ( exit $ac_status )
  21290. if test "$ac_cv_type_voidp" = yes; then
  21291. { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
  21292. See \`config.log' for more details." >&5
  21293. echo "$as_me: error: cannot compute sizeof (void*)
  21294. See \`config.log' for more details." >&2;}
  21295. { (exit 77); exit 77; }; }
  21296. else
  21297. ac_cv_sizeof_voidp=0
  21298. fi
  21299. fi
  21300. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21301. fi
  21302. rm -f conftest.val
  21303. fi
  21304. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
  21305. echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
  21306. cat >>confdefs.h <<_ACEOF
  21307. #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
  21308. _ACEOF
  21309. ac_cv_stdint_char_model=""
  21310. ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_char"
  21311. ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_short"
  21312. ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_int"
  21313. ac_cv_stdint_long_model=""
  21314. ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_int"
  21315. ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_long"
  21316. ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_voidp"
  21317. name="$ac_cv_stdint_long_model"
  21318. case "$ac_cv_stdint_char_model/$ac_cv_stdint_long_model" in
  21319. 122/242) name="$name, IP16 (standard 16bit machine)" ;;
  21320. 122/244) name="$name, LP32 (standard 32bit mac/win)" ;;
  21321. 122/*) name="$name (unusual int16 model)" ;;
  21322. 124/444) name="$name, ILP32 (standard 32bit unixish)" ;;
  21323. 124/488) name="$name, LP64 (standard 64bit unixish)" ;;
  21324. 124/448) name="$name, LLP64 (unusual 64bit unixish)" ;;
  21325. 124/*) name="$name (unusual int32 model)" ;;
  21326. 128/888) name="$name, ILP64 (unusual 64bit numeric)" ;;
  21327. 128/*) name="$name (unusual int64 model)" ;;
  21328. 222/*|444/*) name="$name (unusual dsptype)" ;;
  21329. *) name="$name (very unusal model)" ;;
  21330. esac
  21331. { echo "$as_me:$LINENO: result: combined for stdint datatype model... $name" >&5
  21332. echo "${ECHO_T}combined for stdint datatype model... $name" >&6; }
  21333. fi
  21334. if test "_$ac_cv_header_stdint_x" != "_" ; then
  21335. ac_cv_header_stdint="$ac_cv_header_stdint_x"
  21336. elif test "_$ac_cv_header_stdint_o" != "_" ; then
  21337. ac_cv_header_stdint="$ac_cv_header_stdint_o"
  21338. elif test "_$ac_cv_header_stdint_u" != "_" ; then
  21339. ac_cv_header_stdint="$ac_cv_header_stdint_u"
  21340. else
  21341. ac_cv_header_stdint="stddef.h"
  21342. fi
  21343. { echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
  21344. echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6; }
  21345. { echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
  21346. echo "${ECHO_T}($ac_cv_header_stdint)" >&6; }
  21347. unset ac_cv_type_int_least32_t
  21348. unset ac_cv_type_int_fast32_t
  21349. { echo "$as_me:$LINENO: checking for int_least32_t" >&5
  21350. echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6; }
  21351. if test "${ac_cv_type_int_least32_t+set}" = set; then
  21352. echo $ECHO_N "(cached) $ECHO_C" >&6
  21353. else
  21354. cat >conftest.$ac_ext <<_ACEOF
  21355. /* confdefs.h. */
  21356. _ACEOF
  21357. cat confdefs.h >>conftest.$ac_ext
  21358. cat >>conftest.$ac_ext <<_ACEOF
  21359. /* end confdefs.h. */
  21360. #include <$ac_cv_header_stdint>
  21361. typedef int_least32_t ac__type_new_;
  21362. int
  21363. main ()
  21364. {
  21365. if ((ac__type_new_ *) 0)
  21366. return 0;
  21367. if (sizeof (ac__type_new_))
  21368. return 0;
  21369. ;
  21370. return 0;
  21371. }
  21372. _ACEOF
  21373. rm -f conftest.$ac_objext
  21374. if { (ac_try="$ac_compile"
  21375. case "(($ac_try" in
  21376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21377. *) ac_try_echo=$ac_try;;
  21378. esac
  21379. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21380. (eval "$ac_compile") 2>conftest.er1
  21381. ac_status=$?
  21382. grep -v '^ *+' conftest.er1 >conftest.err
  21383. rm -f conftest.er1
  21384. cat conftest.err >&5
  21385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21386. (exit $ac_status); } && {
  21387. test -z "$ac_c_werror_flag" ||
  21388. test ! -s conftest.err
  21389. } && test -s conftest.$ac_objext; then
  21390. ac_cv_type_int_least32_t=yes
  21391. else
  21392. echo "$as_me: failed program was:" >&5
  21393. sed 's/^/| /' conftest.$ac_ext >&5
  21394. ac_cv_type_int_least32_t=no
  21395. fi
  21396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21397. fi
  21398. { echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
  21399. echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6; }
  21400. { echo "$as_me:$LINENO: checking for int_fast32_t" >&5
  21401. echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6; }
  21402. if test "${ac_cv_type_int_fast32_t+set}" = set; then
  21403. echo $ECHO_N "(cached) $ECHO_C" >&6
  21404. else
  21405. cat >conftest.$ac_ext <<_ACEOF
  21406. /* confdefs.h. */
  21407. _ACEOF
  21408. cat confdefs.h >>conftest.$ac_ext
  21409. cat >>conftest.$ac_ext <<_ACEOF
  21410. /* end confdefs.h. */
  21411. #include<$ac_cv_header_stdint>
  21412. typedef int_fast32_t ac__type_new_;
  21413. int
  21414. main ()
  21415. {
  21416. if ((ac__type_new_ *) 0)
  21417. return 0;
  21418. if (sizeof (ac__type_new_))
  21419. return 0;
  21420. ;
  21421. return 0;
  21422. }
  21423. _ACEOF
  21424. rm -f conftest.$ac_objext
  21425. if { (ac_try="$ac_compile"
  21426. case "(($ac_try" in
  21427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21428. *) ac_try_echo=$ac_try;;
  21429. esac
  21430. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21431. (eval "$ac_compile") 2>conftest.er1
  21432. ac_status=$?
  21433. grep -v '^ *+' conftest.er1 >conftest.err
  21434. rm -f conftest.er1
  21435. cat conftest.err >&5
  21436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21437. (exit $ac_status); } && {
  21438. test -z "$ac_c_werror_flag" ||
  21439. test ! -s conftest.err
  21440. } && test -s conftest.$ac_objext; then
  21441. ac_cv_type_int_fast32_t=yes
  21442. else
  21443. echo "$as_me: failed program was:" >&5
  21444. sed 's/^/| /' conftest.$ac_ext >&5
  21445. ac_cv_type_int_fast32_t=no
  21446. fi
  21447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21448. fi
  21449. { echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
  21450. echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6; }
  21451. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  21452. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  21453. if test "${ac_cv_type_intmax_t+set}" = set; then
  21454. echo $ECHO_N "(cached) $ECHO_C" >&6
  21455. else
  21456. cat >conftest.$ac_ext <<_ACEOF
  21457. /* confdefs.h. */
  21458. _ACEOF
  21459. cat confdefs.h >>conftest.$ac_ext
  21460. cat >>conftest.$ac_ext <<_ACEOF
  21461. /* end confdefs.h. */
  21462. #include <$ac_cv_header_stdint>
  21463. typedef intmax_t ac__type_new_;
  21464. int
  21465. main ()
  21466. {
  21467. if ((ac__type_new_ *) 0)
  21468. return 0;
  21469. if (sizeof (ac__type_new_))
  21470. return 0;
  21471. ;
  21472. return 0;
  21473. }
  21474. _ACEOF
  21475. rm -f conftest.$ac_objext
  21476. if { (ac_try="$ac_compile"
  21477. case "(($ac_try" in
  21478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21479. *) ac_try_echo=$ac_try;;
  21480. esac
  21481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21482. (eval "$ac_compile") 2>conftest.er1
  21483. ac_status=$?
  21484. grep -v '^ *+' conftest.er1 >conftest.err
  21485. rm -f conftest.er1
  21486. cat conftest.err >&5
  21487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21488. (exit $ac_status); } && {
  21489. test -z "$ac_c_werror_flag" ||
  21490. test ! -s conftest.err
  21491. } && test -s conftest.$ac_objext; then
  21492. ac_cv_type_intmax_t=yes
  21493. else
  21494. echo "$as_me: failed program was:" >&5
  21495. sed 's/^/| /' conftest.$ac_ext >&5
  21496. ac_cv_type_intmax_t=no
  21497. fi
  21498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21499. fi
  21500. { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
  21501. echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
  21502. fi # shortcircut to system "stdint.h"
  21503. # ------------------ PREPARE VARIABLES ------------------------------
  21504. if test "$GCC" = "yes" ; then
  21505. ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
  21506. else
  21507. ac_cv_stdint_message="using $CC"
  21508. fi
  21509. { echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
  21510. echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
  21511. # ----------------- DONE inttypes.h checks START header -------------
  21512. ac_config_commands="$ac_config_commands $ac_stdint_h"
  21513. fi
  21514. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  21515. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  21516. if test "${ac_cv_c_const+set}" = set; then
  21517. echo $ECHO_N "(cached) $ECHO_C" >&6
  21518. else
  21519. cat >conftest.$ac_ext <<_ACEOF
  21520. /* confdefs.h. */
  21521. _ACEOF
  21522. cat confdefs.h >>conftest.$ac_ext
  21523. cat >>conftest.$ac_ext <<_ACEOF
  21524. /* end confdefs.h. */
  21525. int
  21526. main ()
  21527. {
  21528. /* FIXME: Include the comments suggested by Paul. */
  21529. #ifndef __cplusplus
  21530. /* Ultrix mips cc rejects this. */
  21531. typedef int charset[2];
  21532. const charset cs;
  21533. /* SunOS 4.1.1 cc rejects this. */
  21534. char const *const *pcpcc;
  21535. char **ppc;
  21536. /* NEC SVR4.0.2 mips cc rejects this. */
  21537. struct point {int x, y;};
  21538. static struct point const zero = {0,0};
  21539. /* AIX XL C 1.02.0.0 rejects this.
  21540. It does not let you subtract one const X* pointer from another in
  21541. an arm of an if-expression whose if-part is not a constant
  21542. expression */
  21543. const char *g = "string";
  21544. pcpcc = &g + (g ? g-g : 0);
  21545. /* HPUX 7.0 cc rejects these. */
  21546. ++pcpcc;
  21547. ppc = (char**) pcpcc;
  21548. pcpcc = (char const *const *) ppc;
  21549. { /* SCO 3.2v4 cc rejects this. */
  21550. char *t;
  21551. char const *s = 0 ? (char *) 0 : (char const *) 0;
  21552. *t++ = 0;
  21553. if (s) return 0;
  21554. }
  21555. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  21556. int x[] = {25, 17};
  21557. const int *foo = &x[0];
  21558. ++foo;
  21559. }
  21560. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  21561. typedef const int *iptr;
  21562. iptr p = 0;
  21563. ++p;
  21564. }
  21565. { /* AIX XL C 1.02.0.0 rejects this saying
  21566. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  21567. struct s { int j; const int *ap[3]; };
  21568. struct s *b; b->j = 5;
  21569. }
  21570. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  21571. const int foo = 10;
  21572. if (!foo) return 0;
  21573. }
  21574. return !cs[0] && !zero.x;
  21575. #endif
  21576. ;
  21577. return 0;
  21578. }
  21579. _ACEOF
  21580. rm -f conftest.$ac_objext
  21581. if { (ac_try="$ac_compile"
  21582. case "(($ac_try" in
  21583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21584. *) ac_try_echo=$ac_try;;
  21585. esac
  21586. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21587. (eval "$ac_compile") 2>conftest.er1
  21588. ac_status=$?
  21589. grep -v '^ *+' conftest.er1 >conftest.err
  21590. rm -f conftest.er1
  21591. cat conftest.err >&5
  21592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21593. (exit $ac_status); } && {
  21594. test -z "$ac_c_werror_flag" ||
  21595. test ! -s conftest.err
  21596. } && test -s conftest.$ac_objext; then
  21597. ac_cv_c_const=yes
  21598. else
  21599. echo "$as_me: failed program was:" >&5
  21600. sed 's/^/| /' conftest.$ac_ext >&5
  21601. ac_cv_c_const=no
  21602. fi
  21603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21604. fi
  21605. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  21606. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  21607. if test $ac_cv_c_const = no; then
  21608. cat >>confdefs.h <<\_ACEOF
  21609. #define const
  21610. _ACEOF
  21611. fi
  21612. { echo "$as_me:$LINENO: checking for inline" >&5
  21613. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  21614. if test "${ac_cv_c_inline+set}" = set; then
  21615. echo $ECHO_N "(cached) $ECHO_C" >&6
  21616. else
  21617. ac_cv_c_inline=no
  21618. for ac_kw in inline __inline__ __inline; do
  21619. cat >conftest.$ac_ext <<_ACEOF
  21620. /* confdefs.h. */
  21621. _ACEOF
  21622. cat confdefs.h >>conftest.$ac_ext
  21623. cat >>conftest.$ac_ext <<_ACEOF
  21624. /* end confdefs.h. */
  21625. #ifndef __cplusplus
  21626. typedef int foo_t;
  21627. static $ac_kw foo_t static_foo () {return 0; }
  21628. $ac_kw foo_t foo () {return 0; }
  21629. #endif
  21630. _ACEOF
  21631. rm -f conftest.$ac_objext
  21632. if { (ac_try="$ac_compile"
  21633. case "(($ac_try" in
  21634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21635. *) ac_try_echo=$ac_try;;
  21636. esac
  21637. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21638. (eval "$ac_compile") 2>conftest.er1
  21639. ac_status=$?
  21640. grep -v '^ *+' conftest.er1 >conftest.err
  21641. rm -f conftest.er1
  21642. cat conftest.err >&5
  21643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21644. (exit $ac_status); } && {
  21645. test -z "$ac_c_werror_flag" ||
  21646. test ! -s conftest.err
  21647. } && test -s conftest.$ac_objext; then
  21648. ac_cv_c_inline=$ac_kw
  21649. else
  21650. echo "$as_me: failed program was:" >&5
  21651. sed 's/^/| /' conftest.$ac_ext >&5
  21652. fi
  21653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21654. test "$ac_cv_c_inline" != no && break
  21655. done
  21656. fi
  21657. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  21658. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  21659. case $ac_cv_c_inline in
  21660. inline | yes) ;;
  21661. *)
  21662. case $ac_cv_c_inline in
  21663. no) ac_val=;;
  21664. *) ac_val=$ac_cv_c_inline;;
  21665. esac
  21666. cat >>confdefs.h <<_ACEOF
  21667. #ifndef __cplusplus
  21668. #define inline $ac_val
  21669. #endif
  21670. _ACEOF
  21671. ;;
  21672. esac
  21673. if test x"$GCC" = x"yes" -a x"$ac_cv_c_inline" = x"inline"; then
  21674. { echo "$as_me:$LINENO: checking for always_inline" >&5
  21675. echo $ECHO_N "checking for always_inline... $ECHO_C" >&6; }
  21676. SAVE_CFLAGS="$CFLAGS"
  21677. CFLAGS="$CFLAGS -Wall -Werror"
  21678. cat >conftest.$ac_ext <<_ACEOF
  21679. /* confdefs.h. */
  21680. _ACEOF
  21681. cat confdefs.h >>conftest.$ac_ext
  21682. cat >>conftest.$ac_ext <<_ACEOF
  21683. /* end confdefs.h. */
  21684. int
  21685. main ()
  21686. {
  21687. __attribute__ ((__always_inline__)) void f (void);
  21688. #ifdef __cplusplus
  21689. 42 = 42; // obviously illegal - we want c++ to fail here
  21690. #endif
  21691. ;
  21692. return 0;
  21693. }
  21694. _ACEOF
  21695. rm -f conftest.$ac_objext
  21696. if { (ac_try="$ac_compile"
  21697. case "(($ac_try" in
  21698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21699. *) ac_try_echo=$ac_try;;
  21700. esac
  21701. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21702. (eval "$ac_compile") 2>conftest.er1
  21703. ac_status=$?
  21704. grep -v '^ *+' conftest.er1 >conftest.err
  21705. rm -f conftest.er1
  21706. cat conftest.err >&5
  21707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21708. (exit $ac_status); } && {
  21709. test -z "$ac_c_werror_flag" ||
  21710. test ! -s conftest.err
  21711. } && test -s conftest.$ac_objext; then
  21712. ac_cv_always_inline=yes
  21713. else
  21714. echo "$as_me: failed program was:" >&5
  21715. sed 's/^/| /' conftest.$ac_ext >&5
  21716. ac_cv_always_inline=no
  21717. fi
  21718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21719. CFLAGS="$SAVE_CFLAGS"
  21720. { echo "$as_me:$LINENO: result: $ac_cv_always_inline" >&5
  21721. echo "${ECHO_T}$ac_cv_always_inline" >&6; }
  21722. if test x"$ac_cv_always_inline" = x"yes"; then
  21723. cat >>confdefs.h <<_ACEOF
  21724. #define inline __attribute__ ((__always_inline__))
  21725. _ACEOF
  21726. fi
  21727. fi
  21728. { echo "$as_me:$LINENO: checking for restrict" >&5
  21729. echo $ECHO_N "checking for restrict... $ECHO_C" >&6; }
  21730. ac_cv_c_restrict=no
  21731. for ac_kw in restrict __restrict__ __restrict; do
  21732. cat >conftest.$ac_ext <<_ACEOF
  21733. /* confdefs.h. */
  21734. _ACEOF
  21735. cat confdefs.h >>conftest.$ac_ext
  21736. cat >>conftest.$ac_ext <<_ACEOF
  21737. /* end confdefs.h. */
  21738. int
  21739. main ()
  21740. {
  21741. char * $ac_kw p;
  21742. ;
  21743. return 0;
  21744. }
  21745. _ACEOF
  21746. rm -f conftest.$ac_objext
  21747. if { (ac_try="$ac_compile"
  21748. case "(($ac_try" in
  21749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21750. *) ac_try_echo=$ac_try;;
  21751. esac
  21752. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21753. (eval "$ac_compile") 2>conftest.er1
  21754. ac_status=$?
  21755. grep -v '^ *+' conftest.er1 >conftest.err
  21756. rm -f conftest.er1
  21757. cat conftest.err >&5
  21758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21759. (exit $ac_status); } && {
  21760. test -z "$ac_c_werror_flag" ||
  21761. test ! -s conftest.err
  21762. } && test -s conftest.$ac_objext; then
  21763. ac_cv_c_restrict=$ac_kw; break
  21764. else
  21765. echo "$as_me: failed program was:" >&5
  21766. sed 's/^/| /' conftest.$ac_ext >&5
  21767. fi
  21768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21769. done
  21770. { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
  21771. echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
  21772. case $ac_cv_c_restrict in
  21773. restrict) ;;
  21774. no)
  21775. cat >>confdefs.h <<\_ACEOF
  21776. #define restrict
  21777. _ACEOF
  21778. ;;
  21779. *) cat >>confdefs.h <<_ACEOF
  21780. #define restrict $ac_cv_c_restrict
  21781. _ACEOF
  21782. ;;
  21783. esac
  21784. { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
  21785. echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
  21786. if test "${ac_cv_builtin_expect+set}" = set; then
  21787. echo $ECHO_N "(cached) $ECHO_C" >&6
  21788. else
  21789. cat > conftest.c <<EOF
  21790. #line 24374 "configure"
  21791. int foo (int a)
  21792. {
  21793. a = __builtin_expect (a, 10);
  21794. return a == 10 ? 0 : 1;
  21795. }
  21796. EOF
  21797. if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
  21798. -o conftest conftest.c -lgcc >&5'
  21799. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21800. (eval $ac_try) 2>&5
  21801. ac_status=$?
  21802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21803. (exit $ac_status); }; }; then
  21804. ac_cv_builtin_expect=yes
  21805. else
  21806. ac_cv_builtin_expect=no
  21807. fi
  21808. rm -f conftest*
  21809. fi
  21810. { echo "$as_me:$LINENO: result: $ac_cv_builtin_expect" >&5
  21811. echo "${ECHO_T}$ac_cv_builtin_expect" >&6; }
  21812. if test x"$ac_cv_builtin_expect" = x"yes"; then
  21813. cat >>confdefs.h <<\_ACEOF
  21814. #define HAVE_BUILTIN_EXPECT
  21815. _ACEOF
  21816. fi
  21817. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  21818. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  21819. if test "${ac_cv_c_bigendian+set}" = set; then
  21820. echo $ECHO_N "(cached) $ECHO_C" >&6
  21821. else
  21822. # See if sys/param.h defines the BYTE_ORDER macro.
  21823. cat >conftest.$ac_ext <<_ACEOF
  21824. /* confdefs.h. */
  21825. _ACEOF
  21826. cat confdefs.h >>conftest.$ac_ext
  21827. cat >>conftest.$ac_ext <<_ACEOF
  21828. /* end confdefs.h. */
  21829. #include <sys/types.h>
  21830. #include <sys/param.h>
  21831. int
  21832. main ()
  21833. {
  21834. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  21835. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  21836. bogus endian macros
  21837. #endif
  21838. ;
  21839. return 0;
  21840. }
  21841. _ACEOF
  21842. rm -f conftest.$ac_objext
  21843. if { (ac_try="$ac_compile"
  21844. case "(($ac_try" in
  21845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21846. *) ac_try_echo=$ac_try;;
  21847. esac
  21848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21849. (eval "$ac_compile") 2>conftest.er1
  21850. ac_status=$?
  21851. grep -v '^ *+' conftest.er1 >conftest.err
  21852. rm -f conftest.er1
  21853. cat conftest.err >&5
  21854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21855. (exit $ac_status); } && {
  21856. test -z "$ac_c_werror_flag" ||
  21857. test ! -s conftest.err
  21858. } && test -s conftest.$ac_objext; then
  21859. # It does; now see whether it defined to BIG_ENDIAN or not.
  21860. cat >conftest.$ac_ext <<_ACEOF
  21861. /* confdefs.h. */
  21862. _ACEOF
  21863. cat confdefs.h >>conftest.$ac_ext
  21864. cat >>conftest.$ac_ext <<_ACEOF
  21865. /* end confdefs.h. */
  21866. #include <sys/types.h>
  21867. #include <sys/param.h>
  21868. int
  21869. main ()
  21870. {
  21871. #if BYTE_ORDER != BIG_ENDIAN
  21872. not big endian
  21873. #endif
  21874. ;
  21875. return 0;
  21876. }
  21877. _ACEOF
  21878. rm -f conftest.$ac_objext
  21879. if { (ac_try="$ac_compile"
  21880. case "(($ac_try" in
  21881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21882. *) ac_try_echo=$ac_try;;
  21883. esac
  21884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21885. (eval "$ac_compile") 2>conftest.er1
  21886. ac_status=$?
  21887. grep -v '^ *+' conftest.er1 >conftest.err
  21888. rm -f conftest.er1
  21889. cat conftest.err >&5
  21890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21891. (exit $ac_status); } && {
  21892. test -z "$ac_c_werror_flag" ||
  21893. test ! -s conftest.err
  21894. } && test -s conftest.$ac_objext; then
  21895. ac_cv_c_bigendian=yes
  21896. else
  21897. echo "$as_me: failed program was:" >&5
  21898. sed 's/^/| /' conftest.$ac_ext >&5
  21899. ac_cv_c_bigendian=no
  21900. fi
  21901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21902. else
  21903. echo "$as_me: failed program was:" >&5
  21904. sed 's/^/| /' conftest.$ac_ext >&5
  21905. # It does not; compile a test program.
  21906. if test "$cross_compiling" = yes; then
  21907. # try to guess the endianness by grepping values into an object file
  21908. ac_cv_c_bigendian=unknown
  21909. cat >conftest.$ac_ext <<_ACEOF
  21910. /* confdefs.h. */
  21911. _ACEOF
  21912. cat confdefs.h >>conftest.$ac_ext
  21913. cat >>conftest.$ac_ext <<_ACEOF
  21914. /* end confdefs.h. */
  21915. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  21916. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  21917. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  21918. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  21919. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  21920. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  21921. int
  21922. main ()
  21923. {
  21924. _ascii (); _ebcdic ();
  21925. ;
  21926. return 0;
  21927. }
  21928. _ACEOF
  21929. rm -f conftest.$ac_objext
  21930. if { (ac_try="$ac_compile"
  21931. case "(($ac_try" in
  21932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21933. *) ac_try_echo=$ac_try;;
  21934. esac
  21935. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21936. (eval "$ac_compile") 2>conftest.er1
  21937. ac_status=$?
  21938. grep -v '^ *+' conftest.er1 >conftest.err
  21939. rm -f conftest.er1
  21940. cat conftest.err >&5
  21941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21942. (exit $ac_status); } && {
  21943. test -z "$ac_c_werror_flag" ||
  21944. test ! -s conftest.err
  21945. } && test -s conftest.$ac_objext; then
  21946. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  21947. ac_cv_c_bigendian=yes
  21948. fi
  21949. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  21950. if test "$ac_cv_c_bigendian" = unknown; then
  21951. ac_cv_c_bigendian=no
  21952. else
  21953. # finding both strings is unlikely to happen, but who knows?
  21954. ac_cv_c_bigendian=unknown
  21955. fi
  21956. fi
  21957. else
  21958. echo "$as_me: failed program was:" >&5
  21959. sed 's/^/| /' conftest.$ac_ext >&5
  21960. fi
  21961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21962. else
  21963. cat >conftest.$ac_ext <<_ACEOF
  21964. /* confdefs.h. */
  21965. _ACEOF
  21966. cat confdefs.h >>conftest.$ac_ext
  21967. cat >>conftest.$ac_ext <<_ACEOF
  21968. /* end confdefs.h. */
  21969. $ac_includes_default
  21970. int
  21971. main ()
  21972. {
  21973. /* Are we little or big endian? From Harbison&Steele. */
  21974. union
  21975. {
  21976. long int l;
  21977. char c[sizeof (long int)];
  21978. } u;
  21979. u.l = 1;
  21980. return u.c[sizeof (long int) - 1] == 1;
  21981. ;
  21982. return 0;
  21983. }
  21984. _ACEOF
  21985. rm -f conftest$ac_exeext
  21986. if { (ac_try="$ac_link"
  21987. case "(($ac_try" in
  21988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21989. *) ac_try_echo=$ac_try;;
  21990. esac
  21991. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21992. (eval "$ac_link") 2>&5
  21993. ac_status=$?
  21994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21995. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21996. { (case "(($ac_try" in
  21997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21998. *) ac_try_echo=$ac_try;;
  21999. esac
  22000. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22001. (eval "$ac_try") 2>&5
  22002. ac_status=$?
  22003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22004. (exit $ac_status); }; }; then
  22005. ac_cv_c_bigendian=no
  22006. else
  22007. echo "$as_me: program exited with status $ac_status" >&5
  22008. echo "$as_me: failed program was:" >&5
  22009. sed 's/^/| /' conftest.$ac_ext >&5
  22010. ( exit $ac_status )
  22011. ac_cv_c_bigendian=yes
  22012. fi
  22013. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22014. fi
  22015. fi
  22016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22017. fi
  22018. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  22019. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  22020. case $ac_cv_c_bigendian in
  22021. yes)
  22022. cat >>confdefs.h <<\_ACEOF
  22023. #define WORDS_BIGENDIAN 1
  22024. _ACEOF
  22025. ;;
  22026. no)
  22027. ;;
  22028. *)
  22029. { { echo "$as_me:$LINENO: error: unknown endianness
  22030. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  22031. echo "$as_me: error: unknown endianness
  22032. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  22033. { (exit 1); exit 1; }; } ;;
  22034. esac
  22035. { echo "$as_me:$LINENO: checking for working volatile" >&5
  22036. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  22037. if test "${ac_cv_c_volatile+set}" = set; then
  22038. echo $ECHO_N "(cached) $ECHO_C" >&6
  22039. else
  22040. cat >conftest.$ac_ext <<_ACEOF
  22041. /* confdefs.h. */
  22042. _ACEOF
  22043. cat confdefs.h >>conftest.$ac_ext
  22044. cat >>conftest.$ac_ext <<_ACEOF
  22045. /* end confdefs.h. */
  22046. int
  22047. main ()
  22048. {
  22049. volatile int x;
  22050. int * volatile y = (int *) 0;
  22051. return !x && !y;
  22052. ;
  22053. return 0;
  22054. }
  22055. _ACEOF
  22056. rm -f conftest.$ac_objext
  22057. if { (ac_try="$ac_compile"
  22058. case "(($ac_try" in
  22059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22060. *) ac_try_echo=$ac_try;;
  22061. esac
  22062. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22063. (eval "$ac_compile") 2>conftest.er1
  22064. ac_status=$?
  22065. grep -v '^ *+' conftest.er1 >conftest.err
  22066. rm -f conftest.er1
  22067. cat conftest.err >&5
  22068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22069. (exit $ac_status); } && {
  22070. test -z "$ac_c_werror_flag" ||
  22071. test ! -s conftest.err
  22072. } && test -s conftest.$ac_objext; then
  22073. ac_cv_c_volatile=yes
  22074. else
  22075. echo "$as_me: failed program was:" >&5
  22076. sed 's/^/| /' conftest.$ac_ext >&5
  22077. ac_cv_c_volatile=no
  22078. fi
  22079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22080. fi
  22081. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  22082. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  22083. if test $ac_cv_c_volatile = no; then
  22084. cat >>confdefs.h <<\_ACEOF
  22085. #define volatile
  22086. _ACEOF
  22087. fi
  22088. { echo "$as_me:$LINENO: checking for size_t" >&5
  22089. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  22090. if test "${ac_cv_type_size_t+set}" = set; then
  22091. echo $ECHO_N "(cached) $ECHO_C" >&6
  22092. else
  22093. cat >conftest.$ac_ext <<_ACEOF
  22094. /* confdefs.h. */
  22095. _ACEOF
  22096. cat confdefs.h >>conftest.$ac_ext
  22097. cat >>conftest.$ac_ext <<_ACEOF
  22098. /* end confdefs.h. */
  22099. $ac_includes_default
  22100. typedef size_t ac__type_new_;
  22101. int
  22102. main ()
  22103. {
  22104. if ((ac__type_new_ *) 0)
  22105. return 0;
  22106. if (sizeof (ac__type_new_))
  22107. return 0;
  22108. ;
  22109. return 0;
  22110. }
  22111. _ACEOF
  22112. rm -f conftest.$ac_objext
  22113. if { (ac_try="$ac_compile"
  22114. case "(($ac_try" in
  22115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22116. *) ac_try_echo=$ac_try;;
  22117. esac
  22118. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22119. (eval "$ac_compile") 2>conftest.er1
  22120. ac_status=$?
  22121. grep -v '^ *+' conftest.er1 >conftest.err
  22122. rm -f conftest.er1
  22123. cat conftest.err >&5
  22124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22125. (exit $ac_status); } && {
  22126. test -z "$ac_c_werror_flag" ||
  22127. test ! -s conftest.err
  22128. } && test -s conftest.$ac_objext; then
  22129. ac_cv_type_size_t=yes
  22130. else
  22131. echo "$as_me: failed program was:" >&5
  22132. sed 's/^/| /' conftest.$ac_ext >&5
  22133. ac_cv_type_size_t=no
  22134. fi
  22135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22136. fi
  22137. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  22138. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  22139. if test $ac_cv_type_size_t = yes; then
  22140. :
  22141. else
  22142. cat >>confdefs.h <<_ACEOF
  22143. #define size_t unsigned int
  22144. _ACEOF
  22145. fi
  22146. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  22147. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  22148. if test "${ac_cv_type_signal+set}" = set; then
  22149. echo $ECHO_N "(cached) $ECHO_C" >&6
  22150. else
  22151. cat >conftest.$ac_ext <<_ACEOF
  22152. /* confdefs.h. */
  22153. _ACEOF
  22154. cat confdefs.h >>conftest.$ac_ext
  22155. cat >>conftest.$ac_ext <<_ACEOF
  22156. /* end confdefs.h. */
  22157. #include <sys/types.h>
  22158. #include <signal.h>
  22159. int
  22160. main ()
  22161. {
  22162. return *(signal (0, 0)) (0) == 1;
  22163. ;
  22164. return 0;
  22165. }
  22166. _ACEOF
  22167. rm -f conftest.$ac_objext
  22168. if { (ac_try="$ac_compile"
  22169. case "(($ac_try" in
  22170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22171. *) ac_try_echo=$ac_try;;
  22172. esac
  22173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22174. (eval "$ac_compile") 2>conftest.er1
  22175. ac_status=$?
  22176. grep -v '^ *+' conftest.er1 >conftest.err
  22177. rm -f conftest.er1
  22178. cat conftest.err >&5
  22179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22180. (exit $ac_status); } && {
  22181. test -z "$ac_c_werror_flag" ||
  22182. test ! -s conftest.err
  22183. } && test -s conftest.$ac_objext; then
  22184. ac_cv_type_signal=int
  22185. else
  22186. echo "$as_me: failed program was:" >&5
  22187. sed 's/^/| /' conftest.$ac_ext >&5
  22188. ac_cv_type_signal=void
  22189. fi
  22190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22191. fi
  22192. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  22193. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  22194. cat >>confdefs.h <<_ACEOF
  22195. #define RETSIGTYPE $ac_cv_type_signal
  22196. _ACEOF
  22197. # Check whether --enable-largefile was given.
  22198. if test "${enable_largefile+set}" = set; then
  22199. enableval=$enable_largefile;
  22200. fi
  22201. if test "$enable_largefile" != no; then
  22202. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  22203. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  22204. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  22205. echo $ECHO_N "(cached) $ECHO_C" >&6
  22206. else
  22207. ac_cv_sys_largefile_CC=no
  22208. if test "$GCC" != yes; then
  22209. ac_save_CC=$CC
  22210. while :; do
  22211. # IRIX 6.2 and later do not support large files by default,
  22212. # so use the C compiler's -n32 option if that helps.
  22213. cat >conftest.$ac_ext <<_ACEOF
  22214. /* confdefs.h. */
  22215. _ACEOF
  22216. cat confdefs.h >>conftest.$ac_ext
  22217. cat >>conftest.$ac_ext <<_ACEOF
  22218. /* end confdefs.h. */
  22219. #include <sys/types.h>
  22220. /* Check that off_t can represent 2**63 - 1 correctly.
  22221. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  22222. since some C++ compilers masquerading as C compilers
  22223. incorrectly reject 9223372036854775807. */
  22224. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  22225. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  22226. && LARGE_OFF_T % 2147483647 == 1)
  22227. ? 1 : -1];
  22228. int
  22229. main ()
  22230. {
  22231. ;
  22232. return 0;
  22233. }
  22234. _ACEOF
  22235. rm -f conftest.$ac_objext
  22236. if { (ac_try="$ac_compile"
  22237. case "(($ac_try" in
  22238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22239. *) ac_try_echo=$ac_try;;
  22240. esac
  22241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22242. (eval "$ac_compile") 2>conftest.er1
  22243. ac_status=$?
  22244. grep -v '^ *+' conftest.er1 >conftest.err
  22245. rm -f conftest.er1
  22246. cat conftest.err >&5
  22247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22248. (exit $ac_status); } && {
  22249. test -z "$ac_c_werror_flag" ||
  22250. test ! -s conftest.err
  22251. } && test -s conftest.$ac_objext; then
  22252. break
  22253. else
  22254. echo "$as_me: failed program was:" >&5
  22255. sed 's/^/| /' conftest.$ac_ext >&5
  22256. fi
  22257. rm -f core conftest.err conftest.$ac_objext
  22258. CC="$CC -n32"
  22259. rm -f conftest.$ac_objext
  22260. if { (ac_try="$ac_compile"
  22261. case "(($ac_try" in
  22262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22263. *) ac_try_echo=$ac_try;;
  22264. esac
  22265. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22266. (eval "$ac_compile") 2>conftest.er1
  22267. ac_status=$?
  22268. grep -v '^ *+' conftest.er1 >conftest.err
  22269. rm -f conftest.er1
  22270. cat conftest.err >&5
  22271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22272. (exit $ac_status); } && {
  22273. test -z "$ac_c_werror_flag" ||
  22274. test ! -s conftest.err
  22275. } && test -s conftest.$ac_objext; then
  22276. ac_cv_sys_largefile_CC=' -n32'; break
  22277. else
  22278. echo "$as_me: failed program was:" >&5
  22279. sed 's/^/| /' conftest.$ac_ext >&5
  22280. fi
  22281. rm -f core conftest.err conftest.$ac_objext
  22282. break
  22283. done
  22284. CC=$ac_save_CC
  22285. rm -f conftest.$ac_ext
  22286. fi
  22287. fi
  22288. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  22289. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  22290. if test "$ac_cv_sys_largefile_CC" != no; then
  22291. CC=$CC$ac_cv_sys_largefile_CC
  22292. fi
  22293. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  22294. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  22295. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  22296. echo $ECHO_N "(cached) $ECHO_C" >&6
  22297. else
  22298. while :; do
  22299. cat >conftest.$ac_ext <<_ACEOF
  22300. /* confdefs.h. */
  22301. _ACEOF
  22302. cat confdefs.h >>conftest.$ac_ext
  22303. cat >>conftest.$ac_ext <<_ACEOF
  22304. /* end confdefs.h. */
  22305. #include <sys/types.h>
  22306. /* Check that off_t can represent 2**63 - 1 correctly.
  22307. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  22308. since some C++ compilers masquerading as C compilers
  22309. incorrectly reject 9223372036854775807. */
  22310. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  22311. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  22312. && LARGE_OFF_T % 2147483647 == 1)
  22313. ? 1 : -1];
  22314. int
  22315. main ()
  22316. {
  22317. ;
  22318. return 0;
  22319. }
  22320. _ACEOF
  22321. rm -f conftest.$ac_objext
  22322. if { (ac_try="$ac_compile"
  22323. case "(($ac_try" in
  22324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22325. *) ac_try_echo=$ac_try;;
  22326. esac
  22327. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22328. (eval "$ac_compile") 2>conftest.er1
  22329. ac_status=$?
  22330. grep -v '^ *+' conftest.er1 >conftest.err
  22331. rm -f conftest.er1
  22332. cat conftest.err >&5
  22333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22334. (exit $ac_status); } && {
  22335. test -z "$ac_c_werror_flag" ||
  22336. test ! -s conftest.err
  22337. } && test -s conftest.$ac_objext; then
  22338. ac_cv_sys_file_offset_bits=no; break
  22339. else
  22340. echo "$as_me: failed program was:" >&5
  22341. sed 's/^/| /' conftest.$ac_ext >&5
  22342. fi
  22343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22344. cat >conftest.$ac_ext <<_ACEOF
  22345. /* confdefs.h. */
  22346. _ACEOF
  22347. cat confdefs.h >>conftest.$ac_ext
  22348. cat >>conftest.$ac_ext <<_ACEOF
  22349. /* end confdefs.h. */
  22350. #define _FILE_OFFSET_BITS 64
  22351. #include <sys/types.h>
  22352. /* Check that off_t can represent 2**63 - 1 correctly.
  22353. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  22354. since some C++ compilers masquerading as C compilers
  22355. incorrectly reject 9223372036854775807. */
  22356. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  22357. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  22358. && LARGE_OFF_T % 2147483647 == 1)
  22359. ? 1 : -1];
  22360. int
  22361. main ()
  22362. {
  22363. ;
  22364. return 0;
  22365. }
  22366. _ACEOF
  22367. rm -f conftest.$ac_objext
  22368. if { (ac_try="$ac_compile"
  22369. case "(($ac_try" in
  22370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22371. *) ac_try_echo=$ac_try;;
  22372. esac
  22373. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22374. (eval "$ac_compile") 2>conftest.er1
  22375. ac_status=$?
  22376. grep -v '^ *+' conftest.er1 >conftest.err
  22377. rm -f conftest.er1
  22378. cat conftest.err >&5
  22379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22380. (exit $ac_status); } && {
  22381. test -z "$ac_c_werror_flag" ||
  22382. test ! -s conftest.err
  22383. } && test -s conftest.$ac_objext; then
  22384. ac_cv_sys_file_offset_bits=64; break
  22385. else
  22386. echo "$as_me: failed program was:" >&5
  22387. sed 's/^/| /' conftest.$ac_ext >&5
  22388. fi
  22389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22390. ac_cv_sys_file_offset_bits=unknown
  22391. break
  22392. done
  22393. fi
  22394. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  22395. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  22396. case $ac_cv_sys_file_offset_bits in #(
  22397. no | unknown) ;;
  22398. *)
  22399. cat >>confdefs.h <<_ACEOF
  22400. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  22401. _ACEOF
  22402. ;;
  22403. esac
  22404. rm -f conftest*
  22405. if test $ac_cv_sys_file_offset_bits = unknown; then
  22406. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  22407. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  22408. if test "${ac_cv_sys_large_files+set}" = set; then
  22409. echo $ECHO_N "(cached) $ECHO_C" >&6
  22410. else
  22411. while :; do
  22412. cat >conftest.$ac_ext <<_ACEOF
  22413. /* confdefs.h. */
  22414. _ACEOF
  22415. cat confdefs.h >>conftest.$ac_ext
  22416. cat >>conftest.$ac_ext <<_ACEOF
  22417. /* end confdefs.h. */
  22418. #include <sys/types.h>
  22419. /* Check that off_t can represent 2**63 - 1 correctly.
  22420. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  22421. since some C++ compilers masquerading as C compilers
  22422. incorrectly reject 9223372036854775807. */
  22423. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  22424. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  22425. && LARGE_OFF_T % 2147483647 == 1)
  22426. ? 1 : -1];
  22427. int
  22428. main ()
  22429. {
  22430. ;
  22431. return 0;
  22432. }
  22433. _ACEOF
  22434. rm -f conftest.$ac_objext
  22435. if { (ac_try="$ac_compile"
  22436. case "(($ac_try" in
  22437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22438. *) ac_try_echo=$ac_try;;
  22439. esac
  22440. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22441. (eval "$ac_compile") 2>conftest.er1
  22442. ac_status=$?
  22443. grep -v '^ *+' conftest.er1 >conftest.err
  22444. rm -f conftest.er1
  22445. cat conftest.err >&5
  22446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22447. (exit $ac_status); } && {
  22448. test -z "$ac_c_werror_flag" ||
  22449. test ! -s conftest.err
  22450. } && test -s conftest.$ac_objext; then
  22451. ac_cv_sys_large_files=no; break
  22452. else
  22453. echo "$as_me: failed program was:" >&5
  22454. sed 's/^/| /' conftest.$ac_ext >&5
  22455. fi
  22456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22457. cat >conftest.$ac_ext <<_ACEOF
  22458. /* confdefs.h. */
  22459. _ACEOF
  22460. cat confdefs.h >>conftest.$ac_ext
  22461. cat >>conftest.$ac_ext <<_ACEOF
  22462. /* end confdefs.h. */
  22463. #define _LARGE_FILES 1
  22464. #include <sys/types.h>
  22465. /* Check that off_t can represent 2**63 - 1 correctly.
  22466. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  22467. since some C++ compilers masquerading as C compilers
  22468. incorrectly reject 9223372036854775807. */
  22469. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  22470. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  22471. && LARGE_OFF_T % 2147483647 == 1)
  22472. ? 1 : -1];
  22473. int
  22474. main ()
  22475. {
  22476. ;
  22477. return 0;
  22478. }
  22479. _ACEOF
  22480. rm -f conftest.$ac_objext
  22481. if { (ac_try="$ac_compile"
  22482. case "(($ac_try" in
  22483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22484. *) ac_try_echo=$ac_try;;
  22485. esac
  22486. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22487. (eval "$ac_compile") 2>conftest.er1
  22488. ac_status=$?
  22489. grep -v '^ *+' conftest.er1 >conftest.err
  22490. rm -f conftest.er1
  22491. cat conftest.err >&5
  22492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22493. (exit $ac_status); } && {
  22494. test -z "$ac_c_werror_flag" ||
  22495. test ! -s conftest.err
  22496. } && test -s conftest.$ac_objext; then
  22497. ac_cv_sys_large_files=1; break
  22498. else
  22499. echo "$as_me: failed program was:" >&5
  22500. sed 's/^/| /' conftest.$ac_ext >&5
  22501. fi
  22502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22503. ac_cv_sys_large_files=unknown
  22504. break
  22505. done
  22506. fi
  22507. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  22508. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  22509. case $ac_cv_sys_large_files in #(
  22510. no | unknown) ;;
  22511. *)
  22512. cat >>confdefs.h <<_ACEOF
  22513. #define _LARGE_FILES $ac_cv_sys_large_files
  22514. _ACEOF
  22515. ;;
  22516. esac
  22517. rm -f conftest*
  22518. fi
  22519. fi
  22520. for ac_func in gettimeofday ftime
  22521. do
  22522. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  22523. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  22524. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  22525. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  22526. echo $ECHO_N "(cached) $ECHO_C" >&6
  22527. else
  22528. cat >conftest.$ac_ext <<_ACEOF
  22529. /* confdefs.h. */
  22530. _ACEOF
  22531. cat confdefs.h >>conftest.$ac_ext
  22532. cat >>conftest.$ac_ext <<_ACEOF
  22533. /* end confdefs.h. */
  22534. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  22535. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22536. #define $ac_func innocuous_$ac_func
  22537. /* System header to define __stub macros and hopefully few prototypes,
  22538. which can conflict with char $ac_func (); below.
  22539. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22540. <limits.h> exists even on freestanding compilers. */
  22541. #ifdef __STDC__
  22542. # include <limits.h>
  22543. #else
  22544. # include <assert.h>
  22545. #endif
  22546. #undef $ac_func
  22547. /* Override any GCC internal prototype to avoid an error.
  22548. Use char because int might match the return type of a GCC
  22549. builtin and then its argument prototype would still apply. */
  22550. #ifdef __cplusplus
  22551. extern "C"
  22552. #endif
  22553. char $ac_func ();
  22554. /* The GNU C library defines this for functions which it implements
  22555. to always fail with ENOSYS. Some functions are actually named
  22556. something starting with __ and the normal name is an alias. */
  22557. #if defined __stub_$ac_func || defined __stub___$ac_func
  22558. choke me
  22559. #endif
  22560. int
  22561. main ()
  22562. {
  22563. return $ac_func ();
  22564. ;
  22565. return 0;
  22566. }
  22567. _ACEOF
  22568. rm -f conftest.$ac_objext conftest$ac_exeext
  22569. if { (ac_try="$ac_link"
  22570. case "(($ac_try" in
  22571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22572. *) ac_try_echo=$ac_try;;
  22573. esac
  22574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22575. (eval "$ac_link") 2>conftest.er1
  22576. ac_status=$?
  22577. grep -v '^ *+' conftest.er1 >conftest.err
  22578. rm -f conftest.er1
  22579. cat conftest.err >&5
  22580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22581. (exit $ac_status); } && {
  22582. test -z "$ac_c_werror_flag" ||
  22583. test ! -s conftest.err
  22584. } && test -s conftest$ac_exeext &&
  22585. $as_test_x conftest$ac_exeext; then
  22586. eval "$as_ac_var=yes"
  22587. else
  22588. echo "$as_me: failed program was:" >&5
  22589. sed 's/^/| /' conftest.$ac_ext >&5
  22590. eval "$as_ac_var=no"
  22591. fi
  22592. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22593. conftest$ac_exeext conftest.$ac_ext
  22594. fi
  22595. ac_res=`eval echo '${'$as_ac_var'}'`
  22596. { echo "$as_me:$LINENO: result: $ac_res" >&5
  22597. echo "${ECHO_T}$ac_res" >&6; }
  22598. if test `eval echo '${'$as_ac_var'}'` = yes; then
  22599. cat >>confdefs.h <<_ACEOF
  22600. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22601. _ACEOF
  22602. fi
  22603. done
  22604. case "$target" in
  22605. i?86-*|k?-*)
  22606. { echo "$as_me:$LINENO: checking if libtool supports -prefer-non-pic flag" >&5
  22607. echo $ECHO_N "checking if libtool supports -prefer-non-pic flag... $ECHO_C" >&6; }
  22608. mkdir ac_test_libtool; cd ac_test_libtool; ac_cv_libtool_non_pic=no
  22609. echo "int g (int i); static int h (int i) {return g (i);} int f (int i) {return h (i);}" >f.c
  22610. echo "int (* hook) (int) = 0; int g (int i) {if (hook) i = hook (i); return i + 1;}" >g.c
  22611. ../libtool --mode=compile $CC $CFLAGS -prefer-non-pic \
  22612. -c f.c >/dev/null 2>&1 && \
  22613. ../libtool --mode=compile $CC $CFLAGS -prefer-non-pic \
  22614. -c g.c >/dev/null 2>&1 && \
  22615. ../libtool --mode=link $CC $CFLAGS -prefer-non-pic -o libfoo.la \
  22616. -rpath / f.lo g.lo >/dev/null 2>&1 &&
  22617. ac_cv_libtool_non_pic=yes
  22618. cd ..; rm -fr ac_test_libtool; { echo "$as_me:$LINENO: result: $ac_cv_libtool_non_pic" >&5
  22619. echo "${ECHO_T}$ac_cv_libtool_non_pic" >&6; }
  22620. if test x"$ac_cv_libtool_non_pic" = x"yes"; then
  22621. LIBMPEG2_CFLAGS="$LIBMPEG2_CFLAGS -prefer-non-pic"
  22622. else
  22623. :
  22624. fi
  22625. ;;
  22626. esac
  22627. # Check whether --enable-accel-detect was given.
  22628. if test "${enable_accel_detect+set}" = set; then
  22629. enableval=$enable_accel_detect;
  22630. fi
  22631. if test x"$enable_accel_detect" != x"no"; then
  22632. cat >>confdefs.h <<\_ACEOF
  22633. #define ACCEL_DETECT
  22634. _ACEOF
  22635. fi
  22636. { echo "$as_me:$LINENO: checking for X" >&5
  22637. echo $ECHO_N "checking for X... $ECHO_C" >&6; }
  22638. # Check whether --with-x was given.
  22639. if test "${with_x+set}" = set; then
  22640. withval=$with_x;
  22641. fi
  22642. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  22643. if test "x$with_x" = xno; then
  22644. # The user explicitly disabled X.
  22645. have_x=disabled
  22646. else
  22647. case $x_includes,$x_libraries in #(
  22648. *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
  22649. echo "$as_me: error: Cannot use X directory names containing '" >&2;}
  22650. { (exit 1); exit 1; }; };; #(
  22651. *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
  22652. echo $ECHO_N "(cached) $ECHO_C" >&6
  22653. else
  22654. # One or both of the vars are not set, and there is no cached value.
  22655. ac_x_includes=no ac_x_libraries=no
  22656. rm -f -r conftest.dir
  22657. if mkdir conftest.dir; then
  22658. cd conftest.dir
  22659. cat >Imakefile <<'_ACEOF'
  22660. incroot:
  22661. @echo incroot='${INCROOT}'
  22662. usrlibdir:
  22663. @echo usrlibdir='${USRLIBDIR}'
  22664. libdir:
  22665. @echo libdir='${LIBDIR}'
  22666. _ACEOF
  22667. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  22668. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  22669. for ac_var in incroot usrlibdir libdir; do
  22670. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  22671. done
  22672. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  22673. for ac_extension in a so sl; do
  22674. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  22675. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  22676. ac_im_usrlibdir=$ac_im_libdir; break
  22677. fi
  22678. done
  22679. # Screen out bogus values from the imake configuration. They are
  22680. # bogus both because they are the default anyway, and because
  22681. # using them would break gcc on systems where it needs fixed includes.
  22682. case $ac_im_incroot in
  22683. /usr/include) ac_x_includes= ;;
  22684. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  22685. esac
  22686. case $ac_im_usrlibdir in
  22687. /usr/lib | /lib) ;;
  22688. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  22689. esac
  22690. fi
  22691. cd ..
  22692. rm -f -r conftest.dir
  22693. fi
  22694. # Standard set of common directories for X headers.
  22695. # Check X11 before X11Rn because it is often a symlink to the current release.
  22696. ac_x_header_dirs='
  22697. /usr/X11/include
  22698. /usr/X11R6/include
  22699. /usr/X11R5/include
  22700. /usr/X11R4/include
  22701. /usr/include/X11
  22702. /usr/include/X11R6
  22703. /usr/include/X11R5
  22704. /usr/include/X11R4
  22705. /usr/local/X11/include
  22706. /usr/local/X11R6/include
  22707. /usr/local/X11R5/include
  22708. /usr/local/X11R4/include
  22709. /usr/local/include/X11
  22710. /usr/local/include/X11R6
  22711. /usr/local/include/X11R5
  22712. /usr/local/include/X11R4
  22713. /usr/X386/include
  22714. /usr/x386/include
  22715. /usr/XFree86/include/X11
  22716. /usr/include
  22717. /usr/local/include
  22718. /usr/unsupported/include
  22719. /usr/athena/include
  22720. /usr/local/x11r5/include
  22721. /usr/lpp/Xamples/include
  22722. /usr/openwin/include
  22723. /usr/openwin/share/include'
  22724. if test "$ac_x_includes" = no; then
  22725. # Guess where to find include files, by looking for Xlib.h.
  22726. # First, try using that file with no special directory specified.
  22727. cat >conftest.$ac_ext <<_ACEOF
  22728. /* confdefs.h. */
  22729. _ACEOF
  22730. cat confdefs.h >>conftest.$ac_ext
  22731. cat >>conftest.$ac_ext <<_ACEOF
  22732. /* end confdefs.h. */
  22733. #include <X11/Xlib.h>
  22734. _ACEOF
  22735. if { (ac_try="$ac_cpp conftest.$ac_ext"
  22736. case "(($ac_try" in
  22737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22738. *) ac_try_echo=$ac_try;;
  22739. esac
  22740. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22741. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22742. ac_status=$?
  22743. grep -v '^ *+' conftest.er1 >conftest.err
  22744. rm -f conftest.er1
  22745. cat conftest.err >&5
  22746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22747. (exit $ac_status); } >/dev/null && {
  22748. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  22749. test ! -s conftest.err
  22750. }; then
  22751. # We can compile using X headers with no special include directory.
  22752. ac_x_includes=
  22753. else
  22754. echo "$as_me: failed program was:" >&5
  22755. sed 's/^/| /' conftest.$ac_ext >&5
  22756. for ac_dir in $ac_x_header_dirs; do
  22757. if test -r "$ac_dir/X11/Xlib.h"; then
  22758. ac_x_includes=$ac_dir
  22759. break
  22760. fi
  22761. done
  22762. fi
  22763. rm -f conftest.err conftest.$ac_ext
  22764. fi # $ac_x_includes = no
  22765. if test "$ac_x_libraries" = no; then
  22766. # Check for the libraries.
  22767. # See if we find them without any special options.
  22768. # Don't add to $LIBS permanently.
  22769. ac_save_LIBS=$LIBS
  22770. LIBS="-lX11 $LIBS"
  22771. cat >conftest.$ac_ext <<_ACEOF
  22772. /* confdefs.h. */
  22773. _ACEOF
  22774. cat confdefs.h >>conftest.$ac_ext
  22775. cat >>conftest.$ac_ext <<_ACEOF
  22776. /* end confdefs.h. */
  22777. #include <X11/Xlib.h>
  22778. int
  22779. main ()
  22780. {
  22781. XrmInitialize ()
  22782. ;
  22783. return 0;
  22784. }
  22785. _ACEOF
  22786. rm -f conftest.$ac_objext conftest$ac_exeext
  22787. if { (ac_try="$ac_link"
  22788. case "(($ac_try" in
  22789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22790. *) ac_try_echo=$ac_try;;
  22791. esac
  22792. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22793. (eval "$ac_link") 2>conftest.er1
  22794. ac_status=$?
  22795. grep -v '^ *+' conftest.er1 >conftest.err
  22796. rm -f conftest.er1
  22797. cat conftest.err >&5
  22798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22799. (exit $ac_status); } && {
  22800. test -z "$ac_c_werror_flag" ||
  22801. test ! -s conftest.err
  22802. } && test -s conftest$ac_exeext &&
  22803. $as_test_x conftest$ac_exeext; then
  22804. LIBS=$ac_save_LIBS
  22805. # We can link X programs with no special library path.
  22806. ac_x_libraries=
  22807. else
  22808. echo "$as_me: failed program was:" >&5
  22809. sed 's/^/| /' conftest.$ac_ext >&5
  22810. LIBS=$ac_save_LIBS
  22811. for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  22812. do
  22813. # Don't even attempt the hair of trying to link an X program!
  22814. for ac_extension in a so sl; do
  22815. if test -r "$ac_dir/libX11.$ac_extension"; then
  22816. ac_x_libraries=$ac_dir
  22817. break 2
  22818. fi
  22819. done
  22820. done
  22821. fi
  22822. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22823. conftest$ac_exeext conftest.$ac_ext
  22824. fi # $ac_x_libraries = no
  22825. case $ac_x_includes,$ac_x_libraries in #(
  22826. no,* | *,no | *\'*)
  22827. # Didn't find X, or a directory has "'" in its name.
  22828. ac_cv_have_x="have_x=no";; #(
  22829. *)
  22830. # Record where we found X for the cache.
  22831. ac_cv_have_x="have_x=yes\
  22832. ac_x_includes='$ac_x_includes'\
  22833. ac_x_libraries='$ac_x_libraries'"
  22834. esac
  22835. fi
  22836. ;; #(
  22837. *) have_x=yes;;
  22838. esac
  22839. eval "$ac_cv_have_x"
  22840. fi # $with_x != no
  22841. if test "$have_x" != yes; then
  22842. { echo "$as_me:$LINENO: result: $have_x" >&5
  22843. echo "${ECHO_T}$have_x" >&6; }
  22844. no_x=yes
  22845. else
  22846. # If each of the values was on the command line, it overrides each guess.
  22847. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  22848. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  22849. # Update the cache value to reflect the command line values.
  22850. ac_cv_have_x="have_x=yes\
  22851. ac_x_includes='$x_includes'\
  22852. ac_x_libraries='$x_libraries'"
  22853. { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
  22854. echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
  22855. fi
  22856. if test "$no_x" = yes; then
  22857. # Not all programs may use this symbol, but it does not hurt to define it.
  22858. cat >>confdefs.h <<\_ACEOF
  22859. #define X_DISPLAY_MISSING 1
  22860. _ACEOF
  22861. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  22862. else
  22863. if test -n "$x_includes"; then
  22864. X_CFLAGS="$X_CFLAGS -I$x_includes"
  22865. fi
  22866. # It would also be nice to do this for all -L options, not just this one.
  22867. if test -n "$x_libraries"; then
  22868. X_LIBS="$X_LIBS -L$x_libraries"
  22869. # For Solaris; some versions of Sun CC require a space after -R and
  22870. # others require no space. Words are not sufficient . . . .
  22871. { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
  22872. echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
  22873. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  22874. ac_xsave_c_werror_flag=$ac_c_werror_flag
  22875. ac_c_werror_flag=yes
  22876. cat >conftest.$ac_ext <<_ACEOF
  22877. /* confdefs.h. */
  22878. _ACEOF
  22879. cat confdefs.h >>conftest.$ac_ext
  22880. cat >>conftest.$ac_ext <<_ACEOF
  22881. /* end confdefs.h. */
  22882. int
  22883. main ()
  22884. {
  22885. ;
  22886. return 0;
  22887. }
  22888. _ACEOF
  22889. rm -f conftest.$ac_objext conftest$ac_exeext
  22890. if { (ac_try="$ac_link"
  22891. case "(($ac_try" in
  22892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22893. *) ac_try_echo=$ac_try;;
  22894. esac
  22895. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22896. (eval "$ac_link") 2>conftest.er1
  22897. ac_status=$?
  22898. grep -v '^ *+' conftest.er1 >conftest.err
  22899. rm -f conftest.er1
  22900. cat conftest.err >&5
  22901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22902. (exit $ac_status); } && {
  22903. test -z "$ac_c_werror_flag" ||
  22904. test ! -s conftest.err
  22905. } && test -s conftest$ac_exeext &&
  22906. $as_test_x conftest$ac_exeext; then
  22907. { echo "$as_me:$LINENO: result: no" >&5
  22908. echo "${ECHO_T}no" >&6; }
  22909. X_LIBS="$X_LIBS -R$x_libraries"
  22910. else
  22911. echo "$as_me: failed program was:" >&5
  22912. sed 's/^/| /' conftest.$ac_ext >&5
  22913. LIBS="$ac_xsave_LIBS -R $x_libraries"
  22914. cat >conftest.$ac_ext <<_ACEOF
  22915. /* confdefs.h. */
  22916. _ACEOF
  22917. cat confdefs.h >>conftest.$ac_ext
  22918. cat >>conftest.$ac_ext <<_ACEOF
  22919. /* end confdefs.h. */
  22920. int
  22921. main ()
  22922. {
  22923. ;
  22924. return 0;
  22925. }
  22926. _ACEOF
  22927. rm -f conftest.$ac_objext conftest$ac_exeext
  22928. if { (ac_try="$ac_link"
  22929. case "(($ac_try" in
  22930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22931. *) ac_try_echo=$ac_try;;
  22932. esac
  22933. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22934. (eval "$ac_link") 2>conftest.er1
  22935. ac_status=$?
  22936. grep -v '^ *+' conftest.er1 >conftest.err
  22937. rm -f conftest.er1
  22938. cat conftest.err >&5
  22939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22940. (exit $ac_status); } && {
  22941. test -z "$ac_c_werror_flag" ||
  22942. test ! -s conftest.err
  22943. } && test -s conftest$ac_exeext &&
  22944. $as_test_x conftest$ac_exeext; then
  22945. { echo "$as_me:$LINENO: result: yes" >&5
  22946. echo "${ECHO_T}yes" >&6; }
  22947. X_LIBS="$X_LIBS -R $x_libraries"
  22948. else
  22949. echo "$as_me: failed program was:" >&5
  22950. sed 's/^/| /' conftest.$ac_ext >&5
  22951. { echo "$as_me:$LINENO: result: neither works" >&5
  22952. echo "${ECHO_T}neither works" >&6; }
  22953. fi
  22954. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22955. conftest$ac_exeext conftest.$ac_ext
  22956. fi
  22957. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22958. conftest$ac_exeext conftest.$ac_ext
  22959. ac_c_werror_flag=$ac_xsave_c_werror_flag
  22960. LIBS=$ac_xsave_LIBS
  22961. fi
  22962. # Check for system-dependent libraries X programs must link with.
  22963. # Do this before checking for the system-independent R6 libraries
  22964. # (-lICE), since we may need -lsocket or whatever for X linking.
  22965. if test "$ISC" = yes; then
  22966. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  22967. else
  22968. # Martyn Johnson says this is needed for Ultrix, if the X
  22969. # libraries were built with DECnet support. And Karl Berry says
  22970. # the Alpha needs dnet_stub (dnet does not exist).
  22971. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  22972. cat >conftest.$ac_ext <<_ACEOF
  22973. /* confdefs.h. */
  22974. _ACEOF
  22975. cat confdefs.h >>conftest.$ac_ext
  22976. cat >>conftest.$ac_ext <<_ACEOF
  22977. /* end confdefs.h. */
  22978. /* Override any GCC internal prototype to avoid an error.
  22979. Use char because int might match the return type of a GCC
  22980. builtin and then its argument prototype would still apply. */
  22981. #ifdef __cplusplus
  22982. extern "C"
  22983. #endif
  22984. char XOpenDisplay ();
  22985. int
  22986. main ()
  22987. {
  22988. return XOpenDisplay ();
  22989. ;
  22990. return 0;
  22991. }
  22992. _ACEOF
  22993. rm -f conftest.$ac_objext conftest$ac_exeext
  22994. if { (ac_try="$ac_link"
  22995. case "(($ac_try" in
  22996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22997. *) ac_try_echo=$ac_try;;
  22998. esac
  22999. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23000. (eval "$ac_link") 2>conftest.er1
  23001. ac_status=$?
  23002. grep -v '^ *+' conftest.er1 >conftest.err
  23003. rm -f conftest.er1
  23004. cat conftest.err >&5
  23005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23006. (exit $ac_status); } && {
  23007. test -z "$ac_c_werror_flag" ||
  23008. test ! -s conftest.err
  23009. } && test -s conftest$ac_exeext &&
  23010. $as_test_x conftest$ac_exeext; then
  23011. :
  23012. else
  23013. echo "$as_me: failed program was:" >&5
  23014. sed 's/^/| /' conftest.$ac_ext >&5
  23015. { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
  23016. echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
  23017. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  23018. echo $ECHO_N "(cached) $ECHO_C" >&6
  23019. else
  23020. ac_check_lib_save_LIBS=$LIBS
  23021. LIBS="-ldnet $LIBS"
  23022. cat >conftest.$ac_ext <<_ACEOF
  23023. /* confdefs.h. */
  23024. _ACEOF
  23025. cat confdefs.h >>conftest.$ac_ext
  23026. cat >>conftest.$ac_ext <<_ACEOF
  23027. /* end confdefs.h. */
  23028. /* Override any GCC internal prototype to avoid an error.
  23029. Use char because int might match the return type of a GCC
  23030. builtin and then its argument prototype would still apply. */
  23031. #ifdef __cplusplus
  23032. extern "C"
  23033. #endif
  23034. char dnet_ntoa ();
  23035. int
  23036. main ()
  23037. {
  23038. return dnet_ntoa ();
  23039. ;
  23040. return 0;
  23041. }
  23042. _ACEOF
  23043. rm -f conftest.$ac_objext conftest$ac_exeext
  23044. if { (ac_try="$ac_link"
  23045. case "(($ac_try" in
  23046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23047. *) ac_try_echo=$ac_try;;
  23048. esac
  23049. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23050. (eval "$ac_link") 2>conftest.er1
  23051. ac_status=$?
  23052. grep -v '^ *+' conftest.er1 >conftest.err
  23053. rm -f conftest.er1
  23054. cat conftest.err >&5
  23055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23056. (exit $ac_status); } && {
  23057. test -z "$ac_c_werror_flag" ||
  23058. test ! -s conftest.err
  23059. } && test -s conftest$ac_exeext &&
  23060. $as_test_x conftest$ac_exeext; then
  23061. ac_cv_lib_dnet_dnet_ntoa=yes
  23062. else
  23063. echo "$as_me: failed program was:" >&5
  23064. sed 's/^/| /' conftest.$ac_ext >&5
  23065. ac_cv_lib_dnet_dnet_ntoa=no
  23066. fi
  23067. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23068. conftest$ac_exeext conftest.$ac_ext
  23069. LIBS=$ac_check_lib_save_LIBS
  23070. fi
  23071. { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  23072. echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  23073. if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  23074. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  23075. fi
  23076. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  23077. { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
  23078. echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
  23079. if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  23080. echo $ECHO_N "(cached) $ECHO_C" >&6
  23081. else
  23082. ac_check_lib_save_LIBS=$LIBS
  23083. LIBS="-ldnet_stub $LIBS"
  23084. cat >conftest.$ac_ext <<_ACEOF
  23085. /* confdefs.h. */
  23086. _ACEOF
  23087. cat confdefs.h >>conftest.$ac_ext
  23088. cat >>conftest.$ac_ext <<_ACEOF
  23089. /* end confdefs.h. */
  23090. /* Override any GCC internal prototype to avoid an error.
  23091. Use char because int might match the return type of a GCC
  23092. builtin and then its argument prototype would still apply. */
  23093. #ifdef __cplusplus
  23094. extern "C"
  23095. #endif
  23096. char dnet_ntoa ();
  23097. int
  23098. main ()
  23099. {
  23100. return dnet_ntoa ();
  23101. ;
  23102. return 0;
  23103. }
  23104. _ACEOF
  23105. rm -f conftest.$ac_objext conftest$ac_exeext
  23106. if { (ac_try="$ac_link"
  23107. case "(($ac_try" in
  23108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23109. *) ac_try_echo=$ac_try;;
  23110. esac
  23111. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23112. (eval "$ac_link") 2>conftest.er1
  23113. ac_status=$?
  23114. grep -v '^ *+' conftest.er1 >conftest.err
  23115. rm -f conftest.er1
  23116. cat conftest.err >&5
  23117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23118. (exit $ac_status); } && {
  23119. test -z "$ac_c_werror_flag" ||
  23120. test ! -s conftest.err
  23121. } && test -s conftest$ac_exeext &&
  23122. $as_test_x conftest$ac_exeext; then
  23123. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  23124. else
  23125. echo "$as_me: failed program was:" >&5
  23126. sed 's/^/| /' conftest.$ac_ext >&5
  23127. ac_cv_lib_dnet_stub_dnet_ntoa=no
  23128. fi
  23129. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23130. conftest$ac_exeext conftest.$ac_ext
  23131. LIBS=$ac_check_lib_save_LIBS
  23132. fi
  23133. { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  23134. echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  23135. if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  23136. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  23137. fi
  23138. fi
  23139. fi
  23140. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23141. conftest$ac_exeext conftest.$ac_ext
  23142. LIBS="$ac_xsave_LIBS"
  23143. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  23144. # to get the SysV transport functions.
  23145. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  23146. # needs -lnsl.
  23147. # The nsl library prevents programs from opening the X display
  23148. # on Irix 5.2, according to T.E. Dickey.
  23149. # The functions gethostbyname, getservbyname, and inet_addr are
  23150. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  23151. { echo "$as_me:$LINENO: checking for gethostbyname" >&5
  23152. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
  23153. if test "${ac_cv_func_gethostbyname+set}" = set; then
  23154. echo $ECHO_N "(cached) $ECHO_C" >&6
  23155. else
  23156. cat >conftest.$ac_ext <<_ACEOF
  23157. /* confdefs.h. */
  23158. _ACEOF
  23159. cat confdefs.h >>conftest.$ac_ext
  23160. cat >>conftest.$ac_ext <<_ACEOF
  23161. /* end confdefs.h. */
  23162. /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
  23163. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23164. #define gethostbyname innocuous_gethostbyname
  23165. /* System header to define __stub macros and hopefully few prototypes,
  23166. which can conflict with char gethostbyname (); below.
  23167. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23168. <limits.h> exists even on freestanding compilers. */
  23169. #ifdef __STDC__
  23170. # include <limits.h>
  23171. #else
  23172. # include <assert.h>
  23173. #endif
  23174. #undef gethostbyname
  23175. /* Override any GCC internal prototype to avoid an error.
  23176. Use char because int might match the return type of a GCC
  23177. builtin and then its argument prototype would still apply. */
  23178. #ifdef __cplusplus
  23179. extern "C"
  23180. #endif
  23181. char gethostbyname ();
  23182. /* The GNU C library defines this for functions which it implements
  23183. to always fail with ENOSYS. Some functions are actually named
  23184. something starting with __ and the normal name is an alias. */
  23185. #if defined __stub_gethostbyname || defined __stub___gethostbyname
  23186. choke me
  23187. #endif
  23188. int
  23189. main ()
  23190. {
  23191. return gethostbyname ();
  23192. ;
  23193. return 0;
  23194. }
  23195. _ACEOF
  23196. rm -f conftest.$ac_objext conftest$ac_exeext
  23197. if { (ac_try="$ac_link"
  23198. case "(($ac_try" in
  23199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23200. *) ac_try_echo=$ac_try;;
  23201. esac
  23202. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23203. (eval "$ac_link") 2>conftest.er1
  23204. ac_status=$?
  23205. grep -v '^ *+' conftest.er1 >conftest.err
  23206. rm -f conftest.er1
  23207. cat conftest.err >&5
  23208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23209. (exit $ac_status); } && {
  23210. test -z "$ac_c_werror_flag" ||
  23211. test ! -s conftest.err
  23212. } && test -s conftest$ac_exeext &&
  23213. $as_test_x conftest$ac_exeext; then
  23214. ac_cv_func_gethostbyname=yes
  23215. else
  23216. echo "$as_me: failed program was:" >&5
  23217. sed 's/^/| /' conftest.$ac_ext >&5
  23218. ac_cv_func_gethostbyname=no
  23219. fi
  23220. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23221. conftest$ac_exeext conftest.$ac_ext
  23222. fi
  23223. { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  23224. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
  23225. if test $ac_cv_func_gethostbyname = no; then
  23226. { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  23227. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
  23228. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  23229. echo $ECHO_N "(cached) $ECHO_C" >&6
  23230. else
  23231. ac_check_lib_save_LIBS=$LIBS
  23232. LIBS="-lnsl $LIBS"
  23233. cat >conftest.$ac_ext <<_ACEOF
  23234. /* confdefs.h. */
  23235. _ACEOF
  23236. cat confdefs.h >>conftest.$ac_ext
  23237. cat >>conftest.$ac_ext <<_ACEOF
  23238. /* end confdefs.h. */
  23239. /* Override any GCC internal prototype to avoid an error.
  23240. Use char because int might match the return type of a GCC
  23241. builtin and then its argument prototype would still apply. */
  23242. #ifdef __cplusplus
  23243. extern "C"
  23244. #endif
  23245. char gethostbyname ();
  23246. int
  23247. main ()
  23248. {
  23249. return gethostbyname ();
  23250. ;
  23251. return 0;
  23252. }
  23253. _ACEOF
  23254. rm -f conftest.$ac_objext conftest$ac_exeext
  23255. if { (ac_try="$ac_link"
  23256. case "(($ac_try" in
  23257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23258. *) ac_try_echo=$ac_try;;
  23259. esac
  23260. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23261. (eval "$ac_link") 2>conftest.er1
  23262. ac_status=$?
  23263. grep -v '^ *+' conftest.er1 >conftest.err
  23264. rm -f conftest.er1
  23265. cat conftest.err >&5
  23266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23267. (exit $ac_status); } && {
  23268. test -z "$ac_c_werror_flag" ||
  23269. test ! -s conftest.err
  23270. } && test -s conftest$ac_exeext &&
  23271. $as_test_x conftest$ac_exeext; then
  23272. ac_cv_lib_nsl_gethostbyname=yes
  23273. else
  23274. echo "$as_me: failed program was:" >&5
  23275. sed 's/^/| /' conftest.$ac_ext >&5
  23276. ac_cv_lib_nsl_gethostbyname=no
  23277. fi
  23278. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23279. conftest$ac_exeext conftest.$ac_ext
  23280. LIBS=$ac_check_lib_save_LIBS
  23281. fi
  23282. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  23283. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
  23284. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  23285. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  23286. fi
  23287. if test $ac_cv_lib_nsl_gethostbyname = no; then
  23288. { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
  23289. echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
  23290. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  23291. echo $ECHO_N "(cached) $ECHO_C" >&6
  23292. else
  23293. ac_check_lib_save_LIBS=$LIBS
  23294. LIBS="-lbsd $LIBS"
  23295. cat >conftest.$ac_ext <<_ACEOF
  23296. /* confdefs.h. */
  23297. _ACEOF
  23298. cat confdefs.h >>conftest.$ac_ext
  23299. cat >>conftest.$ac_ext <<_ACEOF
  23300. /* end confdefs.h. */
  23301. /* Override any GCC internal prototype to avoid an error.
  23302. Use char because int might match the return type of a GCC
  23303. builtin and then its argument prototype would still apply. */
  23304. #ifdef __cplusplus
  23305. extern "C"
  23306. #endif
  23307. char gethostbyname ();
  23308. int
  23309. main ()
  23310. {
  23311. return gethostbyname ();
  23312. ;
  23313. return 0;
  23314. }
  23315. _ACEOF
  23316. rm -f conftest.$ac_objext conftest$ac_exeext
  23317. if { (ac_try="$ac_link"
  23318. case "(($ac_try" in
  23319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23320. *) ac_try_echo=$ac_try;;
  23321. esac
  23322. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23323. (eval "$ac_link") 2>conftest.er1
  23324. ac_status=$?
  23325. grep -v '^ *+' conftest.er1 >conftest.err
  23326. rm -f conftest.er1
  23327. cat conftest.err >&5
  23328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23329. (exit $ac_status); } && {
  23330. test -z "$ac_c_werror_flag" ||
  23331. test ! -s conftest.err
  23332. } && test -s conftest$ac_exeext &&
  23333. $as_test_x conftest$ac_exeext; then
  23334. ac_cv_lib_bsd_gethostbyname=yes
  23335. else
  23336. echo "$as_me: failed program was:" >&5
  23337. sed 's/^/| /' conftest.$ac_ext >&5
  23338. ac_cv_lib_bsd_gethostbyname=no
  23339. fi
  23340. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23341. conftest$ac_exeext conftest.$ac_ext
  23342. LIBS=$ac_check_lib_save_LIBS
  23343. fi
  23344. { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
  23345. echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
  23346. if test $ac_cv_lib_bsd_gethostbyname = yes; then
  23347. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  23348. fi
  23349. fi
  23350. fi
  23351. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  23352. # socket/setsockopt and other routines are undefined under SCO ODT
  23353. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  23354. # on later versions), says Simon Leinen: it contains gethostby*
  23355. # variants that don't use the name server (or something). -lsocket
  23356. # must be given before -lnsl if both are needed. We assume that
  23357. # if connect needs -lnsl, so does gethostbyname.
  23358. { echo "$as_me:$LINENO: checking for connect" >&5
  23359. echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
  23360. if test "${ac_cv_func_connect+set}" = set; then
  23361. echo $ECHO_N "(cached) $ECHO_C" >&6
  23362. else
  23363. cat >conftest.$ac_ext <<_ACEOF
  23364. /* confdefs.h. */
  23365. _ACEOF
  23366. cat confdefs.h >>conftest.$ac_ext
  23367. cat >>conftest.$ac_ext <<_ACEOF
  23368. /* end confdefs.h. */
  23369. /* Define connect to an innocuous variant, in case <limits.h> declares connect.
  23370. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23371. #define connect innocuous_connect
  23372. /* System header to define __stub macros and hopefully few prototypes,
  23373. which can conflict with char connect (); below.
  23374. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23375. <limits.h> exists even on freestanding compilers. */
  23376. #ifdef __STDC__
  23377. # include <limits.h>
  23378. #else
  23379. # include <assert.h>
  23380. #endif
  23381. #undef connect
  23382. /* Override any GCC internal prototype to avoid an error.
  23383. Use char because int might match the return type of a GCC
  23384. builtin and then its argument prototype would still apply. */
  23385. #ifdef __cplusplus
  23386. extern "C"
  23387. #endif
  23388. char connect ();
  23389. /* The GNU C library defines this for functions which it implements
  23390. to always fail with ENOSYS. Some functions are actually named
  23391. something starting with __ and the normal name is an alias. */
  23392. #if defined __stub_connect || defined __stub___connect
  23393. choke me
  23394. #endif
  23395. int
  23396. main ()
  23397. {
  23398. return connect ();
  23399. ;
  23400. return 0;
  23401. }
  23402. _ACEOF
  23403. rm -f conftest.$ac_objext conftest$ac_exeext
  23404. if { (ac_try="$ac_link"
  23405. case "(($ac_try" in
  23406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23407. *) ac_try_echo=$ac_try;;
  23408. esac
  23409. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23410. (eval "$ac_link") 2>conftest.er1
  23411. ac_status=$?
  23412. grep -v '^ *+' conftest.er1 >conftest.err
  23413. rm -f conftest.er1
  23414. cat conftest.err >&5
  23415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23416. (exit $ac_status); } && {
  23417. test -z "$ac_c_werror_flag" ||
  23418. test ! -s conftest.err
  23419. } && test -s conftest$ac_exeext &&
  23420. $as_test_x conftest$ac_exeext; then
  23421. ac_cv_func_connect=yes
  23422. else
  23423. echo "$as_me: failed program was:" >&5
  23424. sed 's/^/| /' conftest.$ac_ext >&5
  23425. ac_cv_func_connect=no
  23426. fi
  23427. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23428. conftest$ac_exeext conftest.$ac_ext
  23429. fi
  23430. { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  23431. echo "${ECHO_T}$ac_cv_func_connect" >&6; }
  23432. if test $ac_cv_func_connect = no; then
  23433. { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  23434. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
  23435. if test "${ac_cv_lib_socket_connect+set}" = set; then
  23436. echo $ECHO_N "(cached) $ECHO_C" >&6
  23437. else
  23438. ac_check_lib_save_LIBS=$LIBS
  23439. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  23440. cat >conftest.$ac_ext <<_ACEOF
  23441. /* confdefs.h. */
  23442. _ACEOF
  23443. cat confdefs.h >>conftest.$ac_ext
  23444. cat >>conftest.$ac_ext <<_ACEOF
  23445. /* end confdefs.h. */
  23446. /* Override any GCC internal prototype to avoid an error.
  23447. Use char because int might match the return type of a GCC
  23448. builtin and then its argument prototype would still apply. */
  23449. #ifdef __cplusplus
  23450. extern "C"
  23451. #endif
  23452. char connect ();
  23453. int
  23454. main ()
  23455. {
  23456. return connect ();
  23457. ;
  23458. return 0;
  23459. }
  23460. _ACEOF
  23461. rm -f conftest.$ac_objext conftest$ac_exeext
  23462. if { (ac_try="$ac_link"
  23463. case "(($ac_try" in
  23464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23465. *) ac_try_echo=$ac_try;;
  23466. esac
  23467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23468. (eval "$ac_link") 2>conftest.er1
  23469. ac_status=$?
  23470. grep -v '^ *+' conftest.er1 >conftest.err
  23471. rm -f conftest.er1
  23472. cat conftest.err >&5
  23473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23474. (exit $ac_status); } && {
  23475. test -z "$ac_c_werror_flag" ||
  23476. test ! -s conftest.err
  23477. } && test -s conftest$ac_exeext &&
  23478. $as_test_x conftest$ac_exeext; then
  23479. ac_cv_lib_socket_connect=yes
  23480. else
  23481. echo "$as_me: failed program was:" >&5
  23482. sed 's/^/| /' conftest.$ac_ext >&5
  23483. ac_cv_lib_socket_connect=no
  23484. fi
  23485. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23486. conftest$ac_exeext conftest.$ac_ext
  23487. LIBS=$ac_check_lib_save_LIBS
  23488. fi
  23489. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  23490. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
  23491. if test $ac_cv_lib_socket_connect = yes; then
  23492. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  23493. fi
  23494. fi
  23495. # Guillermo Gomez says -lposix is necessary on A/UX.
  23496. { echo "$as_me:$LINENO: checking for remove" >&5
  23497. echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
  23498. if test "${ac_cv_func_remove+set}" = set; then
  23499. echo $ECHO_N "(cached) $ECHO_C" >&6
  23500. else
  23501. cat >conftest.$ac_ext <<_ACEOF
  23502. /* confdefs.h. */
  23503. _ACEOF
  23504. cat confdefs.h >>conftest.$ac_ext
  23505. cat >>conftest.$ac_ext <<_ACEOF
  23506. /* end confdefs.h. */
  23507. /* Define remove to an innocuous variant, in case <limits.h> declares remove.
  23508. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23509. #define remove innocuous_remove
  23510. /* System header to define __stub macros and hopefully few prototypes,
  23511. which can conflict with char remove (); below.
  23512. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23513. <limits.h> exists even on freestanding compilers. */
  23514. #ifdef __STDC__
  23515. # include <limits.h>
  23516. #else
  23517. # include <assert.h>
  23518. #endif
  23519. #undef remove
  23520. /* Override any GCC internal prototype to avoid an error.
  23521. Use char because int might match the return type of a GCC
  23522. builtin and then its argument prototype would still apply. */
  23523. #ifdef __cplusplus
  23524. extern "C"
  23525. #endif
  23526. char remove ();
  23527. /* The GNU C library defines this for functions which it implements
  23528. to always fail with ENOSYS. Some functions are actually named
  23529. something starting with __ and the normal name is an alias. */
  23530. #if defined __stub_remove || defined __stub___remove
  23531. choke me
  23532. #endif
  23533. int
  23534. main ()
  23535. {
  23536. return remove ();
  23537. ;
  23538. return 0;
  23539. }
  23540. _ACEOF
  23541. rm -f conftest.$ac_objext conftest$ac_exeext
  23542. if { (ac_try="$ac_link"
  23543. case "(($ac_try" in
  23544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23545. *) ac_try_echo=$ac_try;;
  23546. esac
  23547. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23548. (eval "$ac_link") 2>conftest.er1
  23549. ac_status=$?
  23550. grep -v '^ *+' conftest.er1 >conftest.err
  23551. rm -f conftest.er1
  23552. cat conftest.err >&5
  23553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23554. (exit $ac_status); } && {
  23555. test -z "$ac_c_werror_flag" ||
  23556. test ! -s conftest.err
  23557. } && test -s conftest$ac_exeext &&
  23558. $as_test_x conftest$ac_exeext; then
  23559. ac_cv_func_remove=yes
  23560. else
  23561. echo "$as_me: failed program was:" >&5
  23562. sed 's/^/| /' conftest.$ac_ext >&5
  23563. ac_cv_func_remove=no
  23564. fi
  23565. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23566. conftest$ac_exeext conftest.$ac_ext
  23567. fi
  23568. { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
  23569. echo "${ECHO_T}$ac_cv_func_remove" >&6; }
  23570. if test $ac_cv_func_remove = no; then
  23571. { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
  23572. echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
  23573. if test "${ac_cv_lib_posix_remove+set}" = set; then
  23574. echo $ECHO_N "(cached) $ECHO_C" >&6
  23575. else
  23576. ac_check_lib_save_LIBS=$LIBS
  23577. LIBS="-lposix $LIBS"
  23578. cat >conftest.$ac_ext <<_ACEOF
  23579. /* confdefs.h. */
  23580. _ACEOF
  23581. cat confdefs.h >>conftest.$ac_ext
  23582. cat >>conftest.$ac_ext <<_ACEOF
  23583. /* end confdefs.h. */
  23584. /* Override any GCC internal prototype to avoid an error.
  23585. Use char because int might match the return type of a GCC
  23586. builtin and then its argument prototype would still apply. */
  23587. #ifdef __cplusplus
  23588. extern "C"
  23589. #endif
  23590. char remove ();
  23591. int
  23592. main ()
  23593. {
  23594. return remove ();
  23595. ;
  23596. return 0;
  23597. }
  23598. _ACEOF
  23599. rm -f conftest.$ac_objext conftest$ac_exeext
  23600. if { (ac_try="$ac_link"
  23601. case "(($ac_try" in
  23602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23603. *) ac_try_echo=$ac_try;;
  23604. esac
  23605. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23606. (eval "$ac_link") 2>conftest.er1
  23607. ac_status=$?
  23608. grep -v '^ *+' conftest.er1 >conftest.err
  23609. rm -f conftest.er1
  23610. cat conftest.err >&5
  23611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23612. (exit $ac_status); } && {
  23613. test -z "$ac_c_werror_flag" ||
  23614. test ! -s conftest.err
  23615. } && test -s conftest$ac_exeext &&
  23616. $as_test_x conftest$ac_exeext; then
  23617. ac_cv_lib_posix_remove=yes
  23618. else
  23619. echo "$as_me: failed program was:" >&5
  23620. sed 's/^/| /' conftest.$ac_ext >&5
  23621. ac_cv_lib_posix_remove=no
  23622. fi
  23623. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23624. conftest$ac_exeext conftest.$ac_ext
  23625. LIBS=$ac_check_lib_save_LIBS
  23626. fi
  23627. { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
  23628. echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
  23629. if test $ac_cv_lib_posix_remove = yes; then
  23630. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  23631. fi
  23632. fi
  23633. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  23634. { echo "$as_me:$LINENO: checking for shmat" >&5
  23635. echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
  23636. if test "${ac_cv_func_shmat+set}" = set; then
  23637. echo $ECHO_N "(cached) $ECHO_C" >&6
  23638. else
  23639. cat >conftest.$ac_ext <<_ACEOF
  23640. /* confdefs.h. */
  23641. _ACEOF
  23642. cat confdefs.h >>conftest.$ac_ext
  23643. cat >>conftest.$ac_ext <<_ACEOF
  23644. /* end confdefs.h. */
  23645. /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
  23646. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23647. #define shmat innocuous_shmat
  23648. /* System header to define __stub macros and hopefully few prototypes,
  23649. which can conflict with char shmat (); below.
  23650. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23651. <limits.h> exists even on freestanding compilers. */
  23652. #ifdef __STDC__
  23653. # include <limits.h>
  23654. #else
  23655. # include <assert.h>
  23656. #endif
  23657. #undef shmat
  23658. /* Override any GCC internal prototype to avoid an error.
  23659. Use char because int might match the return type of a GCC
  23660. builtin and then its argument prototype would still apply. */
  23661. #ifdef __cplusplus
  23662. extern "C"
  23663. #endif
  23664. char shmat ();
  23665. /* The GNU C library defines this for functions which it implements
  23666. to always fail with ENOSYS. Some functions are actually named
  23667. something starting with __ and the normal name is an alias. */
  23668. #if defined __stub_shmat || defined __stub___shmat
  23669. choke me
  23670. #endif
  23671. int
  23672. main ()
  23673. {
  23674. return shmat ();
  23675. ;
  23676. return 0;
  23677. }
  23678. _ACEOF
  23679. rm -f conftest.$ac_objext conftest$ac_exeext
  23680. if { (ac_try="$ac_link"
  23681. case "(($ac_try" in
  23682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23683. *) ac_try_echo=$ac_try;;
  23684. esac
  23685. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23686. (eval "$ac_link") 2>conftest.er1
  23687. ac_status=$?
  23688. grep -v '^ *+' conftest.er1 >conftest.err
  23689. rm -f conftest.er1
  23690. cat conftest.err >&5
  23691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23692. (exit $ac_status); } && {
  23693. test -z "$ac_c_werror_flag" ||
  23694. test ! -s conftest.err
  23695. } && test -s conftest$ac_exeext &&
  23696. $as_test_x conftest$ac_exeext; then
  23697. ac_cv_func_shmat=yes
  23698. else
  23699. echo "$as_me: failed program was:" >&5
  23700. sed 's/^/| /' conftest.$ac_ext >&5
  23701. ac_cv_func_shmat=no
  23702. fi
  23703. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23704. conftest$ac_exeext conftest.$ac_ext
  23705. fi
  23706. { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
  23707. echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
  23708. if test $ac_cv_func_shmat = no; then
  23709. { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
  23710. echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
  23711. if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  23712. echo $ECHO_N "(cached) $ECHO_C" >&6
  23713. else
  23714. ac_check_lib_save_LIBS=$LIBS
  23715. LIBS="-lipc $LIBS"
  23716. cat >conftest.$ac_ext <<_ACEOF
  23717. /* confdefs.h. */
  23718. _ACEOF
  23719. cat confdefs.h >>conftest.$ac_ext
  23720. cat >>conftest.$ac_ext <<_ACEOF
  23721. /* end confdefs.h. */
  23722. /* Override any GCC internal prototype to avoid an error.
  23723. Use char because int might match the return type of a GCC
  23724. builtin and then its argument prototype would still apply. */
  23725. #ifdef __cplusplus
  23726. extern "C"
  23727. #endif
  23728. char shmat ();
  23729. int
  23730. main ()
  23731. {
  23732. return shmat ();
  23733. ;
  23734. return 0;
  23735. }
  23736. _ACEOF
  23737. rm -f conftest.$ac_objext conftest$ac_exeext
  23738. if { (ac_try="$ac_link"
  23739. case "(($ac_try" in
  23740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23741. *) ac_try_echo=$ac_try;;
  23742. esac
  23743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23744. (eval "$ac_link") 2>conftest.er1
  23745. ac_status=$?
  23746. grep -v '^ *+' conftest.er1 >conftest.err
  23747. rm -f conftest.er1
  23748. cat conftest.err >&5
  23749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23750. (exit $ac_status); } && {
  23751. test -z "$ac_c_werror_flag" ||
  23752. test ! -s conftest.err
  23753. } && test -s conftest$ac_exeext &&
  23754. $as_test_x conftest$ac_exeext; then
  23755. ac_cv_lib_ipc_shmat=yes
  23756. else
  23757. echo "$as_me: failed program was:" >&5
  23758. sed 's/^/| /' conftest.$ac_ext >&5
  23759. ac_cv_lib_ipc_shmat=no
  23760. fi
  23761. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23762. conftest$ac_exeext conftest.$ac_ext
  23763. LIBS=$ac_check_lib_save_LIBS
  23764. fi
  23765. { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
  23766. echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
  23767. if test $ac_cv_lib_ipc_shmat = yes; then
  23768. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  23769. fi
  23770. fi
  23771. fi
  23772. # Check for libraries that X11R6 Xt/Xaw programs need.
  23773. ac_save_LDFLAGS=$LDFLAGS
  23774. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  23775. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  23776. # check for ICE first), but we must link in the order -lSM -lICE or
  23777. # we get undefined symbols. So assume we have SM if we have ICE.
  23778. # These have to be linked with before -lX11, unlike the other
  23779. # libraries we check for below, so use a different variable.
  23780. # John Interrante, Karl Berry
  23781. { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
  23782. echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
  23783. if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  23784. echo $ECHO_N "(cached) $ECHO_C" >&6
  23785. else
  23786. ac_check_lib_save_LIBS=$LIBS
  23787. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  23788. cat >conftest.$ac_ext <<_ACEOF
  23789. /* confdefs.h. */
  23790. _ACEOF
  23791. cat confdefs.h >>conftest.$ac_ext
  23792. cat >>conftest.$ac_ext <<_ACEOF
  23793. /* end confdefs.h. */
  23794. /* Override any GCC internal prototype to avoid an error.
  23795. Use char because int might match the return type of a GCC
  23796. builtin and then its argument prototype would still apply. */
  23797. #ifdef __cplusplus
  23798. extern "C"
  23799. #endif
  23800. char IceConnectionNumber ();
  23801. int
  23802. main ()
  23803. {
  23804. return IceConnectionNumber ();
  23805. ;
  23806. return 0;
  23807. }
  23808. _ACEOF
  23809. rm -f conftest.$ac_objext conftest$ac_exeext
  23810. if { (ac_try="$ac_link"
  23811. case "(($ac_try" in
  23812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23813. *) ac_try_echo=$ac_try;;
  23814. esac
  23815. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23816. (eval "$ac_link") 2>conftest.er1
  23817. ac_status=$?
  23818. grep -v '^ *+' conftest.er1 >conftest.err
  23819. rm -f conftest.er1
  23820. cat conftest.err >&5
  23821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23822. (exit $ac_status); } && {
  23823. test -z "$ac_c_werror_flag" ||
  23824. test ! -s conftest.err
  23825. } && test -s conftest$ac_exeext &&
  23826. $as_test_x conftest$ac_exeext; then
  23827. ac_cv_lib_ICE_IceConnectionNumber=yes
  23828. else
  23829. echo "$as_me: failed program was:" >&5
  23830. sed 's/^/| /' conftest.$ac_ext >&5
  23831. ac_cv_lib_ICE_IceConnectionNumber=no
  23832. fi
  23833. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23834. conftest$ac_exeext conftest.$ac_ext
  23835. LIBS=$ac_check_lib_save_LIBS
  23836. fi
  23837. { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  23838. echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  23839. if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  23840. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  23841. fi
  23842. LDFLAGS=$ac_save_LDFLAGS
  23843. fi
  23844. if test x"$no_x" != x"yes"; then
  23845. { echo "$as_me:$LINENO: checking for XShmCreateImage in -lXext" >&5
  23846. echo $ECHO_N "checking for XShmCreateImage in -lXext... $ECHO_C" >&6; }
  23847. if test "${ac_cv_lib_Xext_XShmCreateImage+set}" = set; then
  23848. echo $ECHO_N "(cached) $ECHO_C" >&6
  23849. else
  23850. ac_check_lib_save_LIBS=$LIBS
  23851. LIBS="-lXext $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
  23852. cat >conftest.$ac_ext <<_ACEOF
  23853. /* confdefs.h. */
  23854. _ACEOF
  23855. cat confdefs.h >>conftest.$ac_ext
  23856. cat >>conftest.$ac_ext <<_ACEOF
  23857. /* end confdefs.h. */
  23858. /* Override any GCC internal prototype to avoid an error.
  23859. Use char because int might match the return type of a GCC
  23860. builtin and then its argument prototype would still apply. */
  23861. #ifdef __cplusplus
  23862. extern "C"
  23863. #endif
  23864. char XShmCreateImage ();
  23865. int
  23866. main ()
  23867. {
  23868. return XShmCreateImage ();
  23869. ;
  23870. return 0;
  23871. }
  23872. _ACEOF
  23873. rm -f conftest.$ac_objext conftest$ac_exeext
  23874. if { (ac_try="$ac_link"
  23875. case "(($ac_try" in
  23876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23877. *) ac_try_echo=$ac_try;;
  23878. esac
  23879. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23880. (eval "$ac_link") 2>conftest.er1
  23881. ac_status=$?
  23882. grep -v '^ *+' conftest.er1 >conftest.err
  23883. rm -f conftest.er1
  23884. cat conftest.err >&5
  23885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23886. (exit $ac_status); } && {
  23887. test -z "$ac_c_werror_flag" ||
  23888. test ! -s conftest.err
  23889. } && test -s conftest$ac_exeext &&
  23890. $as_test_x conftest$ac_exeext; then
  23891. ac_cv_lib_Xext_XShmCreateImage=yes
  23892. else
  23893. echo "$as_me: failed program was:" >&5
  23894. sed 's/^/| /' conftest.$ac_ext >&5
  23895. ac_cv_lib_Xext_XShmCreateImage=no
  23896. fi
  23897. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23898. conftest$ac_exeext conftest.$ac_ext
  23899. LIBS=$ac_check_lib_save_LIBS
  23900. fi
  23901. { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmCreateImage" >&5
  23902. echo "${ECHO_T}$ac_cv_lib_Xext_XShmCreateImage" >&6; }
  23903. if test $ac_cv_lib_Xext_XShmCreateImage = yes; then
  23904. cat >>confdefs.h <<\_ACEOF
  23905. #define LIBVO_X11
  23906. _ACEOF
  23907. LIBVO_CFLAGS="$LIBVO_CFLAGS $X_CFLAGS"
  23908. LIBVO_LIBS="$LIBVO_LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lXext -lX11"
  23909. { echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
  23910. echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6; }
  23911. if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
  23912. echo $ECHO_N "(cached) $ECHO_C" >&6
  23913. else
  23914. ac_check_lib_save_LIBS=$LIBS
  23915. LIBS="-lXv $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lXext -lX11 $LIBS"
  23916. cat >conftest.$ac_ext <<_ACEOF
  23917. /* confdefs.h. */
  23918. _ACEOF
  23919. cat confdefs.h >>conftest.$ac_ext
  23920. cat >>conftest.$ac_ext <<_ACEOF
  23921. /* end confdefs.h. */
  23922. /* Override any GCC internal prototype to avoid an error.
  23923. Use char because int might match the return type of a GCC
  23924. builtin and then its argument prototype would still apply. */
  23925. #ifdef __cplusplus
  23926. extern "C"
  23927. #endif
  23928. char XvShmCreateImage ();
  23929. int
  23930. main ()
  23931. {
  23932. return XvShmCreateImage ();
  23933. ;
  23934. return 0;
  23935. }
  23936. _ACEOF
  23937. rm -f conftest.$ac_objext conftest$ac_exeext
  23938. if { (ac_try="$ac_link"
  23939. case "(($ac_try" in
  23940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23941. *) ac_try_echo=$ac_try;;
  23942. esac
  23943. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23944. (eval "$ac_link") 2>conftest.er1
  23945. ac_status=$?
  23946. grep -v '^ *+' conftest.er1 >conftest.err
  23947. rm -f conftest.er1
  23948. cat conftest.err >&5
  23949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23950. (exit $ac_status); } && {
  23951. test -z "$ac_c_werror_flag" ||
  23952. test ! -s conftest.err
  23953. } && test -s conftest$ac_exeext &&
  23954. $as_test_x conftest$ac_exeext; then
  23955. ac_cv_lib_Xv_XvShmCreateImage=yes
  23956. else
  23957. echo "$as_me: failed program was:" >&5
  23958. sed 's/^/| /' conftest.$ac_ext >&5
  23959. ac_cv_lib_Xv_XvShmCreateImage=no
  23960. fi
  23961. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23962. conftest$ac_exeext conftest.$ac_ext
  23963. LIBS=$ac_check_lib_save_LIBS
  23964. fi
  23965. { echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
  23966. echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6; }
  23967. if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
  23968. cat >>confdefs.h <<\_ACEOF
  23969. #define LIBVO_XV
  23970. _ACEOF
  23971. LIBVO_LIBS="$LIBVO_LIBS -lXv"
  23972. fi
  23973. fi
  23974. fi
  23975. # Check whether --enable-directx was given.
  23976. if test "${enable_directx+set}" = set; then
  23977. enableval=$enable_directx;
  23978. fi
  23979. case $enable_directx in
  23980. ""|yes) if test "${ac_cv_header_ddraw_h+set}" = set; then
  23981. { echo "$as_me:$LINENO: checking for ddraw.h" >&5
  23982. echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
  23983. if test "${ac_cv_header_ddraw_h+set}" = set; then
  23984. echo $ECHO_N "(cached) $ECHO_C" >&6
  23985. fi
  23986. { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
  23987. echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
  23988. else
  23989. # Is the header compilable?
  23990. { echo "$as_me:$LINENO: checking ddraw.h usability" >&5
  23991. echo $ECHO_N "checking ddraw.h usability... $ECHO_C" >&6; }
  23992. cat >conftest.$ac_ext <<_ACEOF
  23993. /* confdefs.h. */
  23994. _ACEOF
  23995. cat confdefs.h >>conftest.$ac_ext
  23996. cat >>conftest.$ac_ext <<_ACEOF
  23997. /* end confdefs.h. */
  23998. $ac_includes_default
  23999. #include <ddraw.h>
  24000. _ACEOF
  24001. rm -f conftest.$ac_objext
  24002. if { (ac_try="$ac_compile"
  24003. case "(($ac_try" in
  24004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24005. *) ac_try_echo=$ac_try;;
  24006. esac
  24007. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24008. (eval "$ac_compile") 2>conftest.er1
  24009. ac_status=$?
  24010. grep -v '^ *+' conftest.er1 >conftest.err
  24011. rm -f conftest.er1
  24012. cat conftest.err >&5
  24013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24014. (exit $ac_status); } && {
  24015. test -z "$ac_c_werror_flag" ||
  24016. test ! -s conftest.err
  24017. } && test -s conftest.$ac_objext; then
  24018. ac_header_compiler=yes
  24019. else
  24020. echo "$as_me: failed program was:" >&5
  24021. sed 's/^/| /' conftest.$ac_ext >&5
  24022. ac_header_compiler=no
  24023. fi
  24024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24025. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24026. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24027. # Is the header present?
  24028. { echo "$as_me:$LINENO: checking ddraw.h presence" >&5
  24029. echo $ECHO_N "checking ddraw.h presence... $ECHO_C" >&6; }
  24030. cat >conftest.$ac_ext <<_ACEOF
  24031. /* confdefs.h. */
  24032. _ACEOF
  24033. cat confdefs.h >>conftest.$ac_ext
  24034. cat >>conftest.$ac_ext <<_ACEOF
  24035. /* end confdefs.h. */
  24036. #include <ddraw.h>
  24037. _ACEOF
  24038. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24039. case "(($ac_try" in
  24040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24041. *) ac_try_echo=$ac_try;;
  24042. esac
  24043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24044. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24045. ac_status=$?
  24046. grep -v '^ *+' conftest.er1 >conftest.err
  24047. rm -f conftest.er1
  24048. cat conftest.err >&5
  24049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24050. (exit $ac_status); } >/dev/null && {
  24051. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24052. test ! -s conftest.err
  24053. }; then
  24054. ac_header_preproc=yes
  24055. else
  24056. echo "$as_me: failed program was:" >&5
  24057. sed 's/^/| /' conftest.$ac_ext >&5
  24058. ac_header_preproc=no
  24059. fi
  24060. rm -f conftest.err conftest.$ac_ext
  24061. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24062. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24063. # So? What about this header?
  24064. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24065. yes:no: )
  24066. { echo "$as_me:$LINENO: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
  24067. echo "$as_me: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24068. { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the compiler's result" >&5
  24069. echo "$as_me: WARNING: ddraw.h: proceeding with the compiler's result" >&2;}
  24070. ac_header_preproc=yes
  24071. ;;
  24072. no:yes:* )
  24073. { echo "$as_me:$LINENO: WARNING: ddraw.h: present but cannot be compiled" >&5
  24074. echo "$as_me: WARNING: ddraw.h: present but cannot be compiled" >&2;}
  24075. { echo "$as_me:$LINENO: WARNING: ddraw.h: check for missing prerequisite headers?" >&5
  24076. echo "$as_me: WARNING: ddraw.h: check for missing prerequisite headers?" >&2;}
  24077. { echo "$as_me:$LINENO: WARNING: ddraw.h: see the Autoconf documentation" >&5
  24078. echo "$as_me: WARNING: ddraw.h: see the Autoconf documentation" >&2;}
  24079. { echo "$as_me:$LINENO: WARNING: ddraw.h: section \"Present But Cannot Be Compiled\"" >&5
  24080. echo "$as_me: WARNING: ddraw.h: section \"Present But Cannot Be Compiled\"" >&2;}
  24081. { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the preprocessor's result" >&5
  24082. echo "$as_me: WARNING: ddraw.h: proceeding with the preprocessor's result" >&2;}
  24083. { echo "$as_me:$LINENO: WARNING: ddraw.h: in the future, the compiler will take precedence" >&5
  24084. echo "$as_me: WARNING: ddraw.h: in the future, the compiler will take precedence" >&2;}
  24085. ;;
  24086. esac
  24087. { echo "$as_me:$LINENO: checking for ddraw.h" >&5
  24088. echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
  24089. if test "${ac_cv_header_ddraw_h+set}" = set; then
  24090. echo $ECHO_N "(cached) $ECHO_C" >&6
  24091. else
  24092. ac_cv_header_ddraw_h=$ac_header_preproc
  24093. fi
  24094. { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
  24095. echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
  24096. fi
  24097. if test $ac_cv_header_ddraw_h = yes; then
  24098. cat >>confdefs.h <<\_ACEOF
  24099. #define LIBVO_DX
  24100. _ACEOF
  24101. LIBVO_LIBS="$LIBVO_LIBS -lgdi32"
  24102. fi
  24103. ;;
  24104. no) ;;
  24105. *) if test -f "$enable_directx/ddraw.h"; then
  24106. cat >>confdefs.h <<\_ACEOF
  24107. #define LIBVO_DX
  24108. _ACEOF
  24109. LIBVO_CFLAGS="$LIBVO_CFLAGS -I$enable_directx"
  24110. LIBVO_LIBS="$LIBVO_LIBS -lgdi32"
  24111. else
  24112. { { echo "$as_me:$LINENO: error: Cannot find $enable_directx/ddraw.h" >&5
  24113. echo "$as_me: error: Cannot find $enable_directx/ddraw.h" >&2;}
  24114. { (exit 1); exit 1; }; }
  24115. fi;;
  24116. esac
  24117. # Check whether --enable-sdl was given.
  24118. if test "${enable_sdl+set}" = set; then
  24119. enableval=$enable_sdl;
  24120. fi
  24121. if test x"$enable_sdl" != x"no"; then
  24122. # Extract the first word of "sdl-config", so it can be a program name with args.
  24123. set dummy sdl-config; ac_word=$2
  24124. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  24125. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24126. if test "${ac_cv_prog_SDLCONFIG+set}" = set; then
  24127. echo $ECHO_N "(cached) $ECHO_C" >&6
  24128. else
  24129. if test -n "$SDLCONFIG"; then
  24130. ac_cv_prog_SDLCONFIG="$SDLCONFIG" # Let the user override the test.
  24131. else
  24132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24133. for as_dir in $PATH
  24134. do
  24135. IFS=$as_save_IFS
  24136. test -z "$as_dir" && as_dir=.
  24137. for ac_exec_ext in '' $ac_executable_extensions; do
  24138. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24139. ac_cv_prog_SDLCONFIG="yes"
  24140. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24141. break 2
  24142. fi
  24143. done
  24144. done
  24145. IFS=$as_save_IFS
  24146. fi
  24147. fi
  24148. SDLCONFIG=$ac_cv_prog_SDLCONFIG
  24149. if test -n "$SDLCONFIG"; then
  24150. { echo "$as_me:$LINENO: result: $SDLCONFIG" >&5
  24151. echo "${ECHO_T}$SDLCONFIG" >&6; }
  24152. else
  24153. { echo "$as_me:$LINENO: result: no" >&5
  24154. echo "${ECHO_T}no" >&6; }
  24155. fi
  24156. if test x"$SDLCONFIG" = x"yes"; then
  24157. cat >>confdefs.h <<\_ACEOF
  24158. #define LIBVO_SDL
  24159. _ACEOF
  24160. LIBVO_CFLAGS="$LIBVO_CFLAGS `sdl-config --cflags`"
  24161. LIBVO_LIBS="$LIBVO_LIBS `sdl-config --libs`"
  24162. fi
  24163. fi
  24164. # Check whether --enable-warnings was given.
  24165. if test "${enable_warnings+set}" = set; then
  24166. enableval=$enable_warnings;
  24167. fi
  24168. if test x"$enable_warnings" = x"yes" -a x"$GCC" = x"yes"; then
  24169. TRY_CFLAGS="$OPT_CFLAGS -Werror"
  24170. { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
  24171. echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; }
  24172. SAVE_CFLAGS="$CFLAGS"
  24173. CFLAGS="$TRY_CFLAGS $CFLAGS"
  24174. cat >conftest.$ac_ext <<_ACEOF
  24175. /* confdefs.h. */
  24176. _ACEOF
  24177. cat confdefs.h >>conftest.$ac_ext
  24178. cat >>conftest.$ac_ext <<_ACEOF
  24179. /* end confdefs.h. */
  24180. int
  24181. main ()
  24182. {
  24183. ;
  24184. return 0;
  24185. }
  24186. _ACEOF
  24187. rm -f conftest.$ac_objext
  24188. if { (ac_try="$ac_compile"
  24189. case "(($ac_try" in
  24190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24191. *) ac_try_echo=$ac_try;;
  24192. esac
  24193. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24194. (eval "$ac_compile") 2>conftest.er1
  24195. ac_status=$?
  24196. grep -v '^ *+' conftest.er1 >conftest.err
  24197. rm -f conftest.er1
  24198. cat conftest.err >&5
  24199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24200. (exit $ac_status); } && {
  24201. test -z "$ac_c_werror_flag" ||
  24202. test ! -s conftest.err
  24203. } && test -s conftest.$ac_objext; then
  24204. ac_cv_try_cflags_ok=yes
  24205. else
  24206. echo "$as_me: failed program was:" >&5
  24207. sed 's/^/| /' conftest.$ac_ext >&5
  24208. ac_cv_try_cflags_ok=no
  24209. fi
  24210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24211. CFLAGS="$SAVE_CFLAGS"
  24212. { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
  24213. echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; }
  24214. if test x"$ac_cv_try_cflags_ok" = x"yes"; then
  24215. OPT_CFLAGS="$TRY_CFLAGS"
  24216. else
  24217. :
  24218. fi
  24219. elif test x"$TENDRA" = x"yes"; then
  24220. OPT_CFLAGS="$OPT_CFLAGS -DTenDRA_check"
  24221. fi
  24222. MPEG2DEC_CFLAGS="$OPT_CFLAGS"
  24223. # Check whether --enable-gprof was given.
  24224. if test "${enable_gprof+set}" = set; then
  24225. enableval=$enable_gprof;
  24226. fi
  24227. if test x"$enable_gprof" = x"yes"; then
  24228. cat >>confdefs.h <<\_ACEOF
  24229. #define MPEG2DEC_GPROF
  24230. _ACEOF
  24231. MPEG2DEC_CFLAGS=`echo "$MPEG2DEC_CFLAGS"|sed "s/-fomit-frame-pointer//g"`
  24232. MPEG2DEC_CFLAGS="$MPEG2DEC_CFLAGS -p"
  24233. fi
  24234. SAV_CFLAGS=$CFLAGS;
  24235. if test x"$GCC" = xyes; then CFLAGS="$CFLAGS -Werror"; fi
  24236. { echo "$as_me:$LINENO: checking __attribute__ ((aligned ())) support" >&5
  24237. echo $ECHO_N "checking __attribute__ ((aligned ())) support... $ECHO_C" >&6; }
  24238. if test "${ac_cv_c_attribute_aligned+set}" = set; then
  24239. echo $ECHO_N "(cached) $ECHO_C" >&6
  24240. else
  24241. ac_cv_c_attribute_aligned=0
  24242. for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
  24243. cat >conftest.$ac_ext <<_ACEOF
  24244. /* confdefs.h. */
  24245. _ACEOF
  24246. cat confdefs.h >>conftest.$ac_ext
  24247. cat >>conftest.$ac_ext <<_ACEOF
  24248. /* end confdefs.h. */
  24249. int
  24250. main ()
  24251. {
  24252. static struct s {
  24253. char a;
  24254. char b __attribute__ ((aligned($ac_cv_c_attr_align_try)));
  24255. } S = {0, 0};
  24256. switch (1) {
  24257. case 0:
  24258. case (long)(&((struct s *)0)->b) == $ac_cv_c_attr_align_try:
  24259. return 0;
  24260. }
  24261. return (long)&S;
  24262. ;
  24263. return 0;
  24264. }
  24265. _ACEOF
  24266. rm -f conftest.$ac_objext
  24267. if { (ac_try="$ac_compile"
  24268. case "(($ac_try" in
  24269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24270. *) ac_try_echo=$ac_try;;
  24271. esac
  24272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24273. (eval "$ac_compile") 2>conftest.er1
  24274. ac_status=$?
  24275. grep -v '^ *+' conftest.er1 >conftest.err
  24276. rm -f conftest.er1
  24277. cat conftest.err >&5
  24278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24279. (exit $ac_status); } && {
  24280. test -z "$ac_c_werror_flag" ||
  24281. test ! -s conftest.err
  24282. } && test -s conftest.$ac_objext; then
  24283. ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
  24284. else
  24285. echo "$as_me: failed program was:" >&5
  24286. sed 's/^/| /' conftest.$ac_ext >&5
  24287. fi
  24288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24289. done
  24290. fi
  24291. { echo "$as_me:$LINENO: result: $ac_cv_c_attribute_aligned" >&5
  24292. echo "${ECHO_T}$ac_cv_c_attribute_aligned" >&6; }
  24293. if test x"$ac_cv_c_attribute_aligned" != x"0"; then
  24294. cat >>confdefs.h <<_ACEOF
  24295. #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
  24296. _ACEOF
  24297. fi
  24298. CFLAGS=$SAV_CFLAGS
  24299. cat >confcache <<\_ACEOF
  24300. # This file is a shell script that caches the results of configure
  24301. # tests run on this system so they can be shared between configure
  24302. # scripts and configure runs, see configure's option --config-cache.
  24303. # It is not useful on other systems. If it contains results you don't
  24304. # want to keep, you may remove or edit it.
  24305. #
  24306. # config.status only pays attention to the cache file if you give it
  24307. # the --recheck option to rerun configure.
  24308. #
  24309. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  24310. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  24311. # following values.
  24312. _ACEOF
  24313. # The following way of writing the cache mishandles newlines in values,
  24314. # but we know of no workaround that is simple, portable, and efficient.
  24315. # So, we kill variables containing newlines.
  24316. # Ultrix sh set writes to stderr and can't be redirected directly,
  24317. # and sets the high bit in the cache file unless we assign to the vars.
  24318. (
  24319. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  24320. eval ac_val=\$$ac_var
  24321. case $ac_val in #(
  24322. *${as_nl}*)
  24323. case $ac_var in #(
  24324. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  24325. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  24326. esac
  24327. case $ac_var in #(
  24328. _ | IFS | as_nl) ;; #(
  24329. *) $as_unset $ac_var ;;
  24330. esac ;;
  24331. esac
  24332. done
  24333. (set) 2>&1 |
  24334. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  24335. *${as_nl}ac_space=\ *)
  24336. # `set' does not quote correctly, so add quotes (double-quote
  24337. # substitution turns \\\\ into \\, and sed turns \\ into \).
  24338. sed -n \
  24339. "s/'/'\\\\''/g;
  24340. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  24341. ;; #(
  24342. *)
  24343. # `set' quotes correctly as required by POSIX, so do not add quotes.
  24344. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  24345. ;;
  24346. esac |
  24347. sort
  24348. ) |
  24349. sed '
  24350. /^ac_cv_env_/b end
  24351. t clear
  24352. :clear
  24353. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  24354. t end
  24355. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  24356. :end' >>confcache
  24357. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  24358. if test -w "$cache_file"; then
  24359. test "x$cache_file" != "x/dev/null" &&
  24360. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  24361. echo "$as_me: updating cache $cache_file" >&6;}
  24362. cat confcache >$cache_file
  24363. else
  24364. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  24365. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  24366. fi
  24367. fi
  24368. rm -f confcache
  24369. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  24370. # Let make expand exec_prefix.
  24371. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  24372. DEFS=-DHAVE_CONFIG_H
  24373. ac_libobjs=
  24374. ac_ltlibobjs=
  24375. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  24376. # 1. Remove the extension, and $U if already installed.
  24377. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  24378. ac_i=`echo "$ac_i" | sed "$ac_script"`
  24379. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  24380. # will be set to the directory where LIBOBJS objects are built.
  24381. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  24382. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  24383. done
  24384. LIBOBJS=$ac_libobjs
  24385. LTLIBOBJS=$ac_ltlibobjs
  24386. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  24387. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  24388. Usually this means the macro was only invoked conditionally." >&5
  24389. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  24390. Usually this means the macro was only invoked conditionally." >&2;}
  24391. { (exit 1); exit 1; }; }
  24392. fi
  24393. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  24394. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  24395. Usually this means the macro was only invoked conditionally." >&5
  24396. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  24397. Usually this means the macro was only invoked conditionally." >&2;}
  24398. { (exit 1); exit 1; }; }
  24399. fi
  24400. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  24401. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  24402. Usually this means the macro was only invoked conditionally." >&5
  24403. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  24404. Usually this means the macro was only invoked conditionally." >&2;}
  24405. { (exit 1); exit 1; }; }
  24406. fi
  24407. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  24408. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
  24409. Usually this means the macro was only invoked conditionally." >&5
  24410. echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
  24411. Usually this means the macro was only invoked conditionally." >&2;}
  24412. { (exit 1); exit 1; }; }
  24413. fi
  24414. if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
  24415. { { echo "$as_me:$LINENO: error: conditional \"ARCH_ARM\" was never defined.
  24416. Usually this means the macro was only invoked conditionally." >&5
  24417. echo "$as_me: error: conditional \"ARCH_ARM\" was never defined.
  24418. Usually this means the macro was only invoked conditionally." >&2;}
  24419. { (exit 1); exit 1; }; }
  24420. fi
  24421. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  24422. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  24423. Usually this means the macro was only invoked conditionally." >&5
  24424. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  24425. Usually this means the macro was only invoked conditionally." >&2;}
  24426. { (exit 1); exit 1; }; }
  24427. fi
  24428. : ${CONFIG_STATUS=./config.status}
  24429. ac_clean_files_save=$ac_clean_files
  24430. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  24431. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  24432. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  24433. cat >$CONFIG_STATUS <<_ACEOF
  24434. #! $SHELL
  24435. # Generated by $as_me.
  24436. # Run this file to recreate the current configuration.
  24437. # Compiler output produced by configure, useful for debugging
  24438. # configure, is in config.log if it exists.
  24439. debug=false
  24440. ac_cs_recheck=false
  24441. ac_cs_silent=false
  24442. SHELL=\${CONFIG_SHELL-$SHELL}
  24443. _ACEOF
  24444. cat >>$CONFIG_STATUS <<\_ACEOF
  24445. ## --------------------- ##
  24446. ## M4sh Initialization. ##
  24447. ## --------------------- ##
  24448. # Be more Bourne compatible
  24449. DUALCASE=1; export DUALCASE # for MKS sh
  24450. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  24451. emulate sh
  24452. NULLCMD=:
  24453. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  24454. # is contrary to our usage. Disable this feature.
  24455. alias -g '${1+"$@"}'='"$@"'
  24456. setopt NO_GLOB_SUBST
  24457. else
  24458. case `(set -o) 2>/dev/null` in
  24459. *posix*) set -o posix ;;
  24460. esac
  24461. fi
  24462. # PATH needs CR
  24463. # Avoid depending upon Character Ranges.
  24464. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  24465. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  24466. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  24467. as_cr_digits='0123456789'
  24468. as_cr_alnum=$as_cr_Letters$as_cr_digits
  24469. # The user is always right.
  24470. if test "${PATH_SEPARATOR+set}" != set; then
  24471. echo "#! /bin/sh" >conf$$.sh
  24472. echo "exit 0" >>conf$$.sh
  24473. chmod +x conf$$.sh
  24474. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  24475. PATH_SEPARATOR=';'
  24476. else
  24477. PATH_SEPARATOR=:
  24478. fi
  24479. rm -f conf$$.sh
  24480. fi
  24481. # Support unset when possible.
  24482. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24483. as_unset=unset
  24484. else
  24485. as_unset=false
  24486. fi
  24487. # IFS
  24488. # We need space, tab and new line, in precisely that order. Quoting is
  24489. # there to prevent editors from complaining about space-tab.
  24490. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  24491. # splitting by setting IFS to empty value.)
  24492. as_nl='
  24493. '
  24494. IFS=" "" $as_nl"
  24495. # Find who we are. Look in the path if we contain no directory separator.
  24496. case $0 in
  24497. *[\\/]* ) as_myself=$0 ;;
  24498. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24499. for as_dir in $PATH
  24500. do
  24501. IFS=$as_save_IFS
  24502. test -z "$as_dir" && as_dir=.
  24503. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  24504. done
  24505. IFS=$as_save_IFS
  24506. ;;
  24507. esac
  24508. # We did not find ourselves, most probably we were run as `sh COMMAND'
  24509. # in which case we are not to be found in the path.
  24510. if test "x$as_myself" = x; then
  24511. as_myself=$0
  24512. fi
  24513. if test ! -f "$as_myself"; then
  24514. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  24515. { (exit 1); exit 1; }
  24516. fi
  24517. # Work around bugs in pre-3.0 UWIN ksh.
  24518. for as_var in ENV MAIL MAILPATH
  24519. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  24520. done
  24521. PS1='$ '
  24522. PS2='> '
  24523. PS4='+ '
  24524. # NLS nuisances.
  24525. for as_var in \
  24526. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  24527. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  24528. LC_TELEPHONE LC_TIME
  24529. do
  24530. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  24531. eval $as_var=C; export $as_var
  24532. else
  24533. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  24534. fi
  24535. done
  24536. # Required to use basename.
  24537. if expr a : '\(a\)' >/dev/null 2>&1 &&
  24538. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  24539. as_expr=expr
  24540. else
  24541. as_expr=false
  24542. fi
  24543. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  24544. as_basename=basename
  24545. else
  24546. as_basename=false
  24547. fi
  24548. # Name of the executable.
  24549. as_me=`$as_basename -- "$0" ||
  24550. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  24551. X"$0" : 'X\(//\)$' \| \
  24552. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  24553. echo X/"$0" |
  24554. sed '/^.*\/\([^/][^/]*\)\/*$/{
  24555. s//\1/
  24556. q
  24557. }
  24558. /^X\/\(\/\/\)$/{
  24559. s//\1/
  24560. q
  24561. }
  24562. /^X\/\(\/\).*/{
  24563. s//\1/
  24564. q
  24565. }
  24566. s/.*/./; q'`
  24567. # CDPATH.
  24568. $as_unset CDPATH
  24569. as_lineno_1=$LINENO
  24570. as_lineno_2=$LINENO
  24571. test "x$as_lineno_1" != "x$as_lineno_2" &&
  24572. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  24573. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  24574. # uniformly replaced by the line number. The first 'sed' inserts a
  24575. # line-number line after each line using $LINENO; the second 'sed'
  24576. # does the real work. The second script uses 'N' to pair each
  24577. # line-number line with the line containing $LINENO, and appends
  24578. # trailing '-' during substitution so that $LINENO is not a special
  24579. # case at line end.
  24580. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  24581. # scripts with optimization help from Paolo Bonzini. Blame Lee
  24582. # E. McMahon (1931-1989) for sed's syntax. :-)
  24583. sed -n '
  24584. p
  24585. /[$]LINENO/=
  24586. ' <$as_myself |
  24587. sed '
  24588. s/[$]LINENO.*/&-/
  24589. t lineno
  24590. b
  24591. :lineno
  24592. N
  24593. :loop
  24594. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  24595. t loop
  24596. s/-\n.*//
  24597. ' >$as_me.lineno &&
  24598. chmod +x "$as_me.lineno" ||
  24599. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  24600. { (exit 1); exit 1; }; }
  24601. # Don't try to exec as it changes $[0], causing all sort of problems
  24602. # (the dirname of $[0] is not the place where we might find the
  24603. # original and so on. Autoconf is especially sensitive to this).
  24604. . "./$as_me.lineno"
  24605. # Exit status is that of the last command.
  24606. exit
  24607. }
  24608. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  24609. as_dirname=dirname
  24610. else
  24611. as_dirname=false
  24612. fi
  24613. ECHO_C= ECHO_N= ECHO_T=
  24614. case `echo -n x` in
  24615. -n*)
  24616. case `echo 'x\c'` in
  24617. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  24618. *) ECHO_C='\c';;
  24619. esac;;
  24620. *)
  24621. ECHO_N='-n';;
  24622. esac
  24623. if expr a : '\(a\)' >/dev/null 2>&1 &&
  24624. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  24625. as_expr=expr
  24626. else
  24627. as_expr=false
  24628. fi
  24629. rm -f conf$$ conf$$.exe conf$$.file
  24630. if test -d conf$$.dir; then
  24631. rm -f conf$$.dir/conf$$.file
  24632. else
  24633. rm -f conf$$.dir
  24634. mkdir conf$$.dir
  24635. fi
  24636. echo >conf$$.file
  24637. if ln -s conf$$.file conf$$ 2>/dev/null; then
  24638. as_ln_s='ln -s'
  24639. # ... but there are two gotchas:
  24640. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  24641. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  24642. # In both cases, we have to default to `cp -p'.
  24643. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  24644. as_ln_s='cp -p'
  24645. elif ln conf$$.file conf$$ 2>/dev/null; then
  24646. as_ln_s=ln
  24647. else
  24648. as_ln_s='cp -p'
  24649. fi
  24650. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  24651. rmdir conf$$.dir 2>/dev/null
  24652. if mkdir -p . 2>/dev/null; then
  24653. as_mkdir_p=:
  24654. else
  24655. test -d ./-p && rmdir ./-p
  24656. as_mkdir_p=false
  24657. fi
  24658. if test -x / >/dev/null 2>&1; then
  24659. as_test_x='test -x'
  24660. else
  24661. if ls -dL / >/dev/null 2>&1; then
  24662. as_ls_L_option=L
  24663. else
  24664. as_ls_L_option=
  24665. fi
  24666. as_test_x='
  24667. eval sh -c '\''
  24668. if test -d "$1"; then
  24669. test -d "$1/.";
  24670. else
  24671. case $1 in
  24672. -*)set "./$1";;
  24673. esac;
  24674. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  24675. ???[sx]*):;;*)false;;esac;fi
  24676. '\'' sh
  24677. '
  24678. fi
  24679. as_executable_p=$as_test_x
  24680. # Sed expression to map a string onto a valid CPP name.
  24681. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  24682. # Sed expression to map a string onto a valid variable name.
  24683. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  24684. exec 6>&1
  24685. # Save the log message, to keep $[0] and so on meaningful, and to
  24686. # report actual input values of CONFIG_FILES etc. instead of their
  24687. # values after options handling.
  24688. ac_log="
  24689. This file was extended by libmpeg2 $as_me 0.5.1, which was
  24690. generated by GNU Autoconf 2.61. Invocation command line was
  24691. CONFIG_FILES = $CONFIG_FILES
  24692. CONFIG_HEADERS = $CONFIG_HEADERS
  24693. CONFIG_LINKS = $CONFIG_LINKS
  24694. CONFIG_COMMANDS = $CONFIG_COMMANDS
  24695. $ $0 $@
  24696. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  24697. "
  24698. _ACEOF
  24699. cat >>$CONFIG_STATUS <<_ACEOF
  24700. # Files that config.status was made for.
  24701. config_files="$ac_config_files"
  24702. config_headers="$ac_config_headers"
  24703. config_commands="$ac_config_commands"
  24704. _ACEOF
  24705. cat >>$CONFIG_STATUS <<\_ACEOF
  24706. ac_cs_usage="\
  24707. \`$as_me' instantiates files from templates according to the
  24708. current configuration.
  24709. Usage: $0 [OPTIONS] [FILE]...
  24710. -h, --help print this help, then exit
  24711. -V, --version print version number and configuration settings, then exit
  24712. -q, --quiet do not print progress messages
  24713. -d, --debug don't remove temporary files
  24714. --recheck update $as_me by reconfiguring in the same conditions
  24715. --file=FILE[:TEMPLATE]
  24716. instantiate the configuration file FILE
  24717. --header=FILE[:TEMPLATE]
  24718. instantiate the configuration header FILE
  24719. Configuration files:
  24720. $config_files
  24721. Configuration headers:
  24722. $config_headers
  24723. Configuration commands:
  24724. $config_commands
  24725. Report bugs to <bug-autoconf@gnu.org>."
  24726. _ACEOF
  24727. cat >>$CONFIG_STATUS <<_ACEOF
  24728. ac_cs_version="\\
  24729. libmpeg2 config.status 0.5.1
  24730. configured by $0, generated by GNU Autoconf 2.61,
  24731. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  24732. Copyright (C) 2006 Free Software Foundation, Inc.
  24733. This config.status script is free software; the Free Software Foundation
  24734. gives unlimited permission to copy, distribute and modify it."
  24735. ac_pwd='$ac_pwd'
  24736. srcdir='$srcdir'
  24737. INSTALL='$INSTALL'
  24738. MKDIR_P='$MKDIR_P'
  24739. _ACEOF
  24740. cat >>$CONFIG_STATUS <<\_ACEOF
  24741. # If no file are specified by the user, then we need to provide default
  24742. # value. By we need to know if files were specified by the user.
  24743. ac_need_defaults=:
  24744. while test $# != 0
  24745. do
  24746. case $1 in
  24747. --*=*)
  24748. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  24749. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  24750. ac_shift=:
  24751. ;;
  24752. *)
  24753. ac_option=$1
  24754. ac_optarg=$2
  24755. ac_shift=shift
  24756. ;;
  24757. esac
  24758. case $ac_option in
  24759. # Handling of the options.
  24760. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  24761. ac_cs_recheck=: ;;
  24762. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  24763. echo "$ac_cs_version"; exit ;;
  24764. --debug | --debu | --deb | --de | --d | -d )
  24765. debug=: ;;
  24766. --file | --fil | --fi | --f )
  24767. $ac_shift
  24768. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  24769. ac_need_defaults=false;;
  24770. --header | --heade | --head | --hea )
  24771. $ac_shift
  24772. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  24773. ac_need_defaults=false;;
  24774. --he | --h)
  24775. # Conflict between --help and --header
  24776. { echo "$as_me: error: ambiguous option: $1
  24777. Try \`$0 --help' for more information." >&2
  24778. { (exit 1); exit 1; }; };;
  24779. --help | --hel | -h )
  24780. echo "$ac_cs_usage"; exit ;;
  24781. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  24782. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  24783. ac_cs_silent=: ;;
  24784. # This is an error.
  24785. -*) { echo "$as_me: error: unrecognized option: $1
  24786. Try \`$0 --help' for more information." >&2
  24787. { (exit 1); exit 1; }; } ;;
  24788. *) ac_config_targets="$ac_config_targets $1"
  24789. ac_need_defaults=false ;;
  24790. esac
  24791. shift
  24792. done
  24793. ac_configure_extra_args=
  24794. if $ac_cs_silent; then
  24795. exec 6>/dev/null
  24796. ac_configure_extra_args="$ac_configure_extra_args --silent"
  24797. fi
  24798. _ACEOF
  24799. cat >>$CONFIG_STATUS <<_ACEOF
  24800. if \$ac_cs_recheck; then
  24801. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  24802. CONFIG_SHELL=$SHELL
  24803. export CONFIG_SHELL
  24804. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  24805. fi
  24806. _ACEOF
  24807. cat >>$CONFIG_STATUS <<\_ACEOF
  24808. exec 5>>config.log
  24809. {
  24810. echo
  24811. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  24812. ## Running $as_me. ##
  24813. _ASBOX
  24814. echo "$ac_log"
  24815. } >&5
  24816. _ACEOF
  24817. cat >>$CONFIG_STATUS <<_ACEOF
  24818. #
  24819. # INIT-COMMANDS
  24820. #
  24821. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  24822. # variables for create stdint.h replacement
  24823. PACKAGE="$PACKAGE"
  24824. VERSION="$VERSION"
  24825. ac_stdint_h="$ac_stdint_h"
  24826. _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
  24827. ac_cv_stdint_message="$ac_cv_stdint_message"
  24828. ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
  24829. ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
  24830. ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
  24831. ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
  24832. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  24833. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  24834. ac_cv_stdint_char_model="$ac_cv_stdint_char_model"
  24835. ac_cv_stdint_long_model="$ac_cv_stdint_long_model"
  24836. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  24837. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  24838. ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
  24839. _ACEOF
  24840. cat >>$CONFIG_STATUS <<\_ACEOF
  24841. # Handling of arguments.
  24842. for ac_config_target in $ac_config_targets
  24843. do
  24844. case $ac_config_target in
  24845. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  24846. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  24847. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  24848. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  24849. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  24850. "libmpeg2/Makefile") CONFIG_FILES="$CONFIG_FILES libmpeg2/Makefile" ;;
  24851. "libmpeg2/convert/Makefile") CONFIG_FILES="$CONFIG_FILES libmpeg2/convert/Makefile" ;;
  24852. "libvo/Makefile") CONFIG_FILES="$CONFIG_FILES libvo/Makefile" ;;
  24853. "vc++/Makefile") CONFIG_FILES="$CONFIG_FILES vc++/Makefile" ;;
  24854. "libmpeg2/libmpeg2.pc") CONFIG_FILES="$CONFIG_FILES libmpeg2/libmpeg2.pc" ;;
  24855. "libmpeg2/convert/libmpeg2convert.pc") CONFIG_FILES="$CONFIG_FILES libmpeg2/convert/libmpeg2convert.pc" ;;
  24856. "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  24857. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  24858. "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
  24859. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  24860. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  24861. { (exit 1); exit 1; }; };;
  24862. esac
  24863. done
  24864. # If the user did not use the arguments to specify the items to instantiate,
  24865. # then the envvar interface is used. Set only those that are not.
  24866. # We use the long form for the default assignment because of an extremely
  24867. # bizarre bug on SunOS 4.1.3.
  24868. if $ac_need_defaults; then
  24869. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24870. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24871. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24872. fi
  24873. # Have a temporary directory for convenience. Make it in the build tree
  24874. # simply because there is no reason against having it here, and in addition,
  24875. # creating and moving files from /tmp can sometimes cause problems.
  24876. # Hook for its removal unless debugging.
  24877. # Note that there is a small window in which the directory will not be cleaned:
  24878. # after its creation but before its name has been assigned to `$tmp'.
  24879. $debug ||
  24880. {
  24881. tmp=
  24882. trap 'exit_status=$?
  24883. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  24884. ' 0
  24885. trap '{ (exit 1); exit 1; }' 1 2 13 15
  24886. }
  24887. # Create a (secure) tmp directory for tmp files.
  24888. {
  24889. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24890. test -n "$tmp" && test -d "$tmp"
  24891. } ||
  24892. {
  24893. tmp=./conf$$-$RANDOM
  24894. (umask 077 && mkdir "$tmp")
  24895. } ||
  24896. {
  24897. echo "$me: cannot create a temporary directory in ." >&2
  24898. { (exit 1); exit 1; }
  24899. }
  24900. #
  24901. # Set up the sed scripts for CONFIG_FILES section.
  24902. #
  24903. # No need to generate the scripts if there are no CONFIG_FILES.
  24904. # This happens for instance when ./config.status config.h
  24905. if test -n "$CONFIG_FILES"; then
  24906. _ACEOF
  24907. ac_delim='%!_!# '
  24908. for ac_last_try in false false false false false :; do
  24909. cat >conf$$subs.sed <<_ACEOF
  24910. SHELL!$SHELL$ac_delim
  24911. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  24912. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  24913. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  24914. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  24915. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  24916. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  24917. exec_prefix!$exec_prefix$ac_delim
  24918. prefix!$prefix$ac_delim
  24919. program_transform_name!$program_transform_name$ac_delim
  24920. bindir!$bindir$ac_delim
  24921. sbindir!$sbindir$ac_delim
  24922. libexecdir!$libexecdir$ac_delim
  24923. datarootdir!$datarootdir$ac_delim
  24924. datadir!$datadir$ac_delim
  24925. sysconfdir!$sysconfdir$ac_delim
  24926. sharedstatedir!$sharedstatedir$ac_delim
  24927. localstatedir!$localstatedir$ac_delim
  24928. includedir!$includedir$ac_delim
  24929. oldincludedir!$oldincludedir$ac_delim
  24930. docdir!$docdir$ac_delim
  24931. infodir!$infodir$ac_delim
  24932. htmldir!$htmldir$ac_delim
  24933. dvidir!$dvidir$ac_delim
  24934. pdfdir!$pdfdir$ac_delim
  24935. psdir!$psdir$ac_delim
  24936. libdir!$libdir$ac_delim
  24937. localedir!$localedir$ac_delim
  24938. mandir!$mandir$ac_delim
  24939. DEFS!$DEFS$ac_delim
  24940. ECHO_C!$ECHO_C$ac_delim
  24941. ECHO_N!$ECHO_N$ac_delim
  24942. ECHO_T!$ECHO_T$ac_delim
  24943. LIBS!$LIBS$ac_delim
  24944. build_alias!$build_alias$ac_delim
  24945. host_alias!$host_alias$ac_delim
  24946. target_alias!$target_alias$ac_delim
  24947. build!$build$ac_delim
  24948. build_cpu!$build_cpu$ac_delim
  24949. build_vendor!$build_vendor$ac_delim
  24950. build_os!$build_os$ac_delim
  24951. host!$host$ac_delim
  24952. host_cpu!$host_cpu$ac_delim
  24953. host_vendor!$host_vendor$ac_delim
  24954. host_os!$host_os$ac_delim
  24955. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  24956. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  24957. INSTALL_DATA!$INSTALL_DATA$ac_delim
  24958. am__isrc!$am__isrc$ac_delim
  24959. CYGPATH_W!$CYGPATH_W$ac_delim
  24960. PACKAGE!$PACKAGE$ac_delim
  24961. VERSION!$VERSION$ac_delim
  24962. ACLOCAL!$ACLOCAL$ac_delim
  24963. AUTOCONF!$AUTOCONF$ac_delim
  24964. AUTOMAKE!$AUTOMAKE$ac_delim
  24965. AUTOHEADER!$AUTOHEADER$ac_delim
  24966. MAKEINFO!$MAKEINFO$ac_delim
  24967. install_sh!$install_sh$ac_delim
  24968. STRIP!$STRIP$ac_delim
  24969. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  24970. mkdir_p!$mkdir_p$ac_delim
  24971. AWK!$AWK$ac_delim
  24972. SET_MAKE!$SET_MAKE$ac_delim
  24973. am__leading_dot!$am__leading_dot$ac_delim
  24974. AMTAR!$AMTAR$ac_delim
  24975. am__tar!$am__tar$ac_delim
  24976. am__untar!$am__untar$ac_delim
  24977. MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  24978. MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  24979. MAINT!$MAINT$ac_delim
  24980. CC!$CC$ac_delim
  24981. CFLAGS!$CFLAGS$ac_delim
  24982. LDFLAGS!$LDFLAGS$ac_delim
  24983. CPPFLAGS!$CPPFLAGS$ac_delim
  24984. ac_ct_CC!$ac_ct_CC$ac_delim
  24985. EXEEXT!$EXEEXT$ac_delim
  24986. OBJEXT!$OBJEXT$ac_delim
  24987. DEPDIR!$DEPDIR$ac_delim
  24988. am__include!$am__include$ac_delim
  24989. am__quote!$am__quote$ac_delim
  24990. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  24991. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  24992. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  24993. CCDEPMODE!$CCDEPMODE$ac_delim
  24994. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  24995. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  24996. CPP!$CPP$ac_delim
  24997. GREP!$GREP$ac_delim
  24998. EGREP!$EGREP$ac_delim
  24999. CCAS!$CCAS$ac_delim
  25000. CCASFLAGS!$CCASFLAGS$ac_delim
  25001. CCASDEPMODE!$CCASDEPMODE$ac_delim
  25002. am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
  25003. am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
  25004. OPT_CFLAGS!$OPT_CFLAGS$ac_delim
  25005. ARCH_OPT_CFLAGS!$ARCH_OPT_CFLAGS$ac_delim
  25006. ARCH_ARM_TRUE!$ARCH_ARM_TRUE$ac_delim
  25007. _ACEOF
  25008. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  25009. break
  25010. elif $ac_last_try; then
  25011. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  25012. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  25013. { (exit 1); exit 1; }; }
  25014. else
  25015. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25016. fi
  25017. done
  25018. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  25019. if test -n "$ac_eof"; then
  25020. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  25021. ac_eof=`expr $ac_eof + 1`
  25022. fi
  25023. cat >>$CONFIG_STATUS <<_ACEOF
  25024. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  25025. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  25026. _ACEOF
  25027. sed '
  25028. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  25029. s/^/s,@/; s/!/@,|#_!!_#|/
  25030. :n
  25031. t n
  25032. s/'"$ac_delim"'$/,g/; t
  25033. s/$/\\/; p
  25034. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  25035. ' >>$CONFIG_STATUS <conf$$subs.sed
  25036. rm -f conf$$subs.sed
  25037. cat >>$CONFIG_STATUS <<_ACEOF
  25038. CEOF$ac_eof
  25039. _ACEOF
  25040. ac_delim='%!_!# '
  25041. for ac_last_try in false false false false false :; do
  25042. cat >conf$$subs.sed <<_ACEOF
  25043. ARCH_ARM_FALSE!$ARCH_ARM_FALSE$ac_delim
  25044. SED!$SED$ac_delim
  25045. LN_S!$LN_S$ac_delim
  25046. ECHO!$ECHO$ac_delim
  25047. AR!$AR$ac_delim
  25048. RANLIB!$RANLIB$ac_delim
  25049. DSYMUTIL!$DSYMUTIL$ac_delim
  25050. NMEDIT!$NMEDIT$ac_delim
  25051. DLLTOOL!$DLLTOOL$ac_delim
  25052. AS!$AS$ac_delim
  25053. OBJDUMP!$OBJDUMP$ac_delim
  25054. CXX!$CXX$ac_delim
  25055. CXXFLAGS!$CXXFLAGS$ac_delim
  25056. ac_ct_CXX!$ac_ct_CXX$ac_delim
  25057. CXXDEPMODE!$CXXDEPMODE$ac_delim
  25058. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  25059. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  25060. CXXCPP!$CXXCPP$ac_delim
  25061. F77!$F77$ac_delim
  25062. FFLAGS!$FFLAGS$ac_delim
  25063. ac_ct_F77!$ac_ct_F77$ac_delim
  25064. LIBTOOL!$LIBTOOL$ac_delim
  25065. AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
  25066. LIBMPEG2_CFLAGS!$LIBMPEG2_CFLAGS$ac_delim
  25067. XMKMF!$XMKMF$ac_delim
  25068. X_CFLAGS!$X_CFLAGS$ac_delim
  25069. X_PRE_LIBS!$X_PRE_LIBS$ac_delim
  25070. X_LIBS!$X_LIBS$ac_delim
  25071. X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
  25072. SDLCONFIG!$SDLCONFIG$ac_delim
  25073. LIBVO_CFLAGS!$LIBVO_CFLAGS$ac_delim
  25074. LIBVO_LIBS!$LIBVO_LIBS$ac_delim
  25075. MPEG2DEC_CFLAGS!$MPEG2DEC_CFLAGS$ac_delim
  25076. LIBOBJS!$LIBOBJS$ac_delim
  25077. LTLIBOBJS!$LTLIBOBJS$ac_delim
  25078. _ACEOF
  25079. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
  25080. break
  25081. elif $ac_last_try; then
  25082. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  25083. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  25084. { (exit 1); exit 1; }; }
  25085. else
  25086. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25087. fi
  25088. done
  25089. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  25090. if test -n "$ac_eof"; then
  25091. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  25092. ac_eof=`expr $ac_eof + 1`
  25093. fi
  25094. cat >>$CONFIG_STATUS <<_ACEOF
  25095. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  25096. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  25097. _ACEOF
  25098. sed '
  25099. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  25100. s/^/s,@/; s/!/@,|#_!!_#|/
  25101. :n
  25102. t n
  25103. s/'"$ac_delim"'$/,g/; t
  25104. s/$/\\/; p
  25105. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  25106. ' >>$CONFIG_STATUS <conf$$subs.sed
  25107. rm -f conf$$subs.sed
  25108. cat >>$CONFIG_STATUS <<_ACEOF
  25109. :end
  25110. s/|#_!!_#|//g
  25111. CEOF$ac_eof
  25112. _ACEOF
  25113. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  25114. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  25115. # trailing colons and then remove the whole line if VPATH becomes empty
  25116. # (actually we leave an empty line to preserve line numbers).
  25117. if test "x$srcdir" = x.; then
  25118. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  25119. s/:*\$(srcdir):*/:/
  25120. s/:*\${srcdir}:*/:/
  25121. s/:*@srcdir@:*/:/
  25122. s/^\([^=]*=[ ]*\):*/\1/
  25123. s/:*$//
  25124. s/^[^=]*=[ ]*$//
  25125. }'
  25126. fi
  25127. cat >>$CONFIG_STATUS <<\_ACEOF
  25128. fi # test -n "$CONFIG_FILES"
  25129. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  25130. do
  25131. case $ac_tag in
  25132. :[FHLC]) ac_mode=$ac_tag; continue;;
  25133. esac
  25134. case $ac_mode$ac_tag in
  25135. :[FHL]*:*);;
  25136. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  25137. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  25138. { (exit 1); exit 1; }; };;
  25139. :[FH]-) ac_tag=-:-;;
  25140. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  25141. esac
  25142. ac_save_IFS=$IFS
  25143. IFS=:
  25144. set x $ac_tag
  25145. IFS=$ac_save_IFS
  25146. shift
  25147. ac_file=$1
  25148. shift
  25149. case $ac_mode in
  25150. :L) ac_source=$1;;
  25151. :[FH])
  25152. ac_file_inputs=
  25153. for ac_f
  25154. do
  25155. case $ac_f in
  25156. -) ac_f="$tmp/stdin";;
  25157. *) # Look for the file first in the build tree, then in the source tree
  25158. # (if the path is not absolute). The absolute path cannot be DOS-style,
  25159. # because $ac_f cannot contain `:'.
  25160. test -f "$ac_f" ||
  25161. case $ac_f in
  25162. [\\/$]*) false;;
  25163. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  25164. esac ||
  25165. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  25166. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  25167. { (exit 1); exit 1; }; };;
  25168. esac
  25169. ac_file_inputs="$ac_file_inputs $ac_f"
  25170. done
  25171. # Let's still pretend it is `configure' which instantiates (i.e., don't
  25172. # use $as_me), people would be surprised to read:
  25173. # /* config.h. Generated by config.status. */
  25174. configure_input="Generated from "`IFS=:
  25175. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  25176. if test x"$ac_file" != x-; then
  25177. configure_input="$ac_file. $configure_input"
  25178. { echo "$as_me:$LINENO: creating $ac_file" >&5
  25179. echo "$as_me: creating $ac_file" >&6;}
  25180. fi
  25181. case $ac_tag in
  25182. *:-:* | *:-) cat >"$tmp/stdin";;
  25183. esac
  25184. ;;
  25185. esac
  25186. ac_dir=`$as_dirname -- "$ac_file" ||
  25187. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25188. X"$ac_file" : 'X\(//\)[^/]' \| \
  25189. X"$ac_file" : 'X\(//\)$' \| \
  25190. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  25191. echo X"$ac_file" |
  25192. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25193. s//\1/
  25194. q
  25195. }
  25196. /^X\(\/\/\)[^/].*/{
  25197. s//\1/
  25198. q
  25199. }
  25200. /^X\(\/\/\)$/{
  25201. s//\1/
  25202. q
  25203. }
  25204. /^X\(\/\).*/{
  25205. s//\1/
  25206. q
  25207. }
  25208. s/.*/./; q'`
  25209. { as_dir="$ac_dir"
  25210. case $as_dir in #(
  25211. -*) as_dir=./$as_dir;;
  25212. esac
  25213. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  25214. as_dirs=
  25215. while :; do
  25216. case $as_dir in #(
  25217. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  25218. *) as_qdir=$as_dir;;
  25219. esac
  25220. as_dirs="'$as_qdir' $as_dirs"
  25221. as_dir=`$as_dirname -- "$as_dir" ||
  25222. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25223. X"$as_dir" : 'X\(//\)[^/]' \| \
  25224. X"$as_dir" : 'X\(//\)$' \| \
  25225. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  25226. echo X"$as_dir" |
  25227. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25228. s//\1/
  25229. q
  25230. }
  25231. /^X\(\/\/\)[^/].*/{
  25232. s//\1/
  25233. q
  25234. }
  25235. /^X\(\/\/\)$/{
  25236. s//\1/
  25237. q
  25238. }
  25239. /^X\(\/\).*/{
  25240. s//\1/
  25241. q
  25242. }
  25243. s/.*/./; q'`
  25244. test -d "$as_dir" && break
  25245. done
  25246. test -z "$as_dirs" || eval "mkdir $as_dirs"
  25247. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  25248. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  25249. { (exit 1); exit 1; }; }; }
  25250. ac_builddir=.
  25251. case "$ac_dir" in
  25252. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25253. *)
  25254. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  25255. # A ".." for each directory in $ac_dir_suffix.
  25256. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  25257. case $ac_top_builddir_sub in
  25258. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25259. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  25260. esac ;;
  25261. esac
  25262. ac_abs_top_builddir=$ac_pwd
  25263. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  25264. # for backward compatibility:
  25265. ac_top_builddir=$ac_top_build_prefix
  25266. case $srcdir in
  25267. .) # We are building in place.
  25268. ac_srcdir=.
  25269. ac_top_srcdir=$ac_top_builddir_sub
  25270. ac_abs_top_srcdir=$ac_pwd ;;
  25271. [\\/]* | ?:[\\/]* ) # Absolute name.
  25272. ac_srcdir=$srcdir$ac_dir_suffix;
  25273. ac_top_srcdir=$srcdir
  25274. ac_abs_top_srcdir=$srcdir ;;
  25275. *) # Relative name.
  25276. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  25277. ac_top_srcdir=$ac_top_build_prefix$srcdir
  25278. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  25279. esac
  25280. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  25281. case $ac_mode in
  25282. :F)
  25283. #
  25284. # CONFIG_FILE
  25285. #
  25286. case $INSTALL in
  25287. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  25288. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  25289. esac
  25290. ac_MKDIR_P=$MKDIR_P
  25291. case $MKDIR_P in
  25292. [\\/$]* | ?:[\\/]* ) ;;
  25293. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  25294. esac
  25295. _ACEOF
  25296. cat >>$CONFIG_STATUS <<\_ACEOF
  25297. # If the template does not know about datarootdir, expand it.
  25298. # FIXME: This hack should be removed a few years after 2.60.
  25299. ac_datarootdir_hack=; ac_datarootdir_seen=
  25300. case `sed -n '/datarootdir/ {
  25301. p
  25302. q
  25303. }
  25304. /@datadir@/p
  25305. /@docdir@/p
  25306. /@infodir@/p
  25307. /@localedir@/p
  25308. /@mandir@/p
  25309. ' $ac_file_inputs` in
  25310. *datarootdir*) ac_datarootdir_seen=yes;;
  25311. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  25312. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  25313. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  25314. _ACEOF
  25315. cat >>$CONFIG_STATUS <<_ACEOF
  25316. ac_datarootdir_hack='
  25317. s&@datadir@&$datadir&g
  25318. s&@docdir@&$docdir&g
  25319. s&@infodir@&$infodir&g
  25320. s&@localedir@&$localedir&g
  25321. s&@mandir@&$mandir&g
  25322. s&\\\${datarootdir}&$datarootdir&g' ;;
  25323. esac
  25324. _ACEOF
  25325. # Neutralize VPATH when `$srcdir' = `.'.
  25326. # Shell code in configure.ac might set extrasub.
  25327. # FIXME: do we really want to maintain this feature?
  25328. cat >>$CONFIG_STATUS <<_ACEOF
  25329. sed "$ac_vpsub
  25330. $extrasub
  25331. _ACEOF
  25332. cat >>$CONFIG_STATUS <<\_ACEOF
  25333. :t
  25334. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  25335. s&@configure_input@&$configure_input&;t t
  25336. s&@top_builddir@&$ac_top_builddir_sub&;t t
  25337. s&@srcdir@&$ac_srcdir&;t t
  25338. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  25339. s&@top_srcdir@&$ac_top_srcdir&;t t
  25340. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  25341. s&@builddir@&$ac_builddir&;t t
  25342. s&@abs_builddir@&$ac_abs_builddir&;t t
  25343. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  25344. s&@INSTALL@&$ac_INSTALL&;t t
  25345. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  25346. $ac_datarootdir_hack
  25347. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  25348. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  25349. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  25350. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  25351. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25352. which seems to be undefined. Please make sure it is defined." >&5
  25353. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25354. which seems to be undefined. Please make sure it is defined." >&2;}
  25355. rm -f "$tmp/stdin"
  25356. case $ac_file in
  25357. -) cat "$tmp/out"; rm -f "$tmp/out";;
  25358. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  25359. esac
  25360. ;;
  25361. :H)
  25362. #
  25363. # CONFIG_HEADER
  25364. #
  25365. _ACEOF
  25366. # Transform confdefs.h into a sed script `conftest.defines', that
  25367. # substitutes the proper values into config.h.in to produce config.h.
  25368. rm -f conftest.defines conftest.tail
  25369. # First, append a space to every undef/define line, to ease matching.
  25370. echo 's/$/ /' >conftest.defines
  25371. # Then, protect against being on the right side of a sed subst, or in
  25372. # an unquoted here document, in config.status. If some macros were
  25373. # called several times there might be several #defines for the same
  25374. # symbol, which is useless. But do not sort them, since the last
  25375. # AC_DEFINE must be honored.
  25376. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  25377. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  25378. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  25379. # PARAMS is the parameter list in the macro definition--in most cases, it's
  25380. # just an empty string.
  25381. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  25382. ac_dB='\\)[ (].*,\\1define\\2'
  25383. ac_dC=' '
  25384. ac_dD=' ,'
  25385. uniq confdefs.h |
  25386. sed -n '
  25387. t rset
  25388. :rset
  25389. s/^[ ]*#[ ]*define[ ][ ]*//
  25390. t ok
  25391. d
  25392. :ok
  25393. s/[\\&,]/\\&/g
  25394. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  25395. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  25396. ' >>conftest.defines
  25397. # Remove the space that was appended to ease matching.
  25398. # Then replace #undef with comments. This is necessary, for
  25399. # example, in the case of _POSIX_SOURCE, which is predefined and required
  25400. # on some systems where configure will not decide to define it.
  25401. # (The regexp can be short, since the line contains either #define or #undef.)
  25402. echo 's/ $//
  25403. s,^[ #]*u.*,/* & */,' >>conftest.defines
  25404. # Break up conftest.defines:
  25405. ac_max_sed_lines=50
  25406. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  25407. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  25408. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  25409. # et cetera.
  25410. ac_in='$ac_file_inputs'
  25411. ac_out='"$tmp/out1"'
  25412. ac_nxt='"$tmp/out2"'
  25413. while :
  25414. do
  25415. # Write a here document:
  25416. cat >>$CONFIG_STATUS <<_ACEOF
  25417. # First, check the format of the line:
  25418. cat >"\$tmp/defines.sed" <<\\CEOF
  25419. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  25420. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  25421. b
  25422. :def
  25423. _ACEOF
  25424. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  25425. echo 'CEOF
  25426. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  25427. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  25428. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  25429. grep . conftest.tail >/dev/null || break
  25430. rm -f conftest.defines
  25431. mv conftest.tail conftest.defines
  25432. done
  25433. rm -f conftest.defines conftest.tail
  25434. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  25435. cat >>$CONFIG_STATUS <<\_ACEOF
  25436. if test x"$ac_file" != x-; then
  25437. echo "/* $configure_input */" >"$tmp/config.h"
  25438. cat "$ac_result" >>"$tmp/config.h"
  25439. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  25440. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  25441. echo "$as_me: $ac_file is unchanged" >&6;}
  25442. else
  25443. rm -f $ac_file
  25444. mv "$tmp/config.h" $ac_file
  25445. fi
  25446. else
  25447. echo "/* $configure_input */"
  25448. cat "$ac_result"
  25449. fi
  25450. rm -f "$tmp/out12"
  25451. # Compute $ac_file's index in $config_headers.
  25452. _am_arg=$ac_file
  25453. _am_stamp_count=1
  25454. for _am_header in $config_headers :; do
  25455. case $_am_header in
  25456. $_am_arg | $_am_arg:* )
  25457. break ;;
  25458. * )
  25459. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  25460. esac
  25461. done
  25462. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  25463. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25464. X"$_am_arg" : 'X\(//\)[^/]' \| \
  25465. X"$_am_arg" : 'X\(//\)$' \| \
  25466. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  25467. echo X"$_am_arg" |
  25468. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25469. s//\1/
  25470. q
  25471. }
  25472. /^X\(\/\/\)[^/].*/{
  25473. s//\1/
  25474. q
  25475. }
  25476. /^X\(\/\/\)$/{
  25477. s//\1/
  25478. q
  25479. }
  25480. /^X\(\/\).*/{
  25481. s//\1/
  25482. q
  25483. }
  25484. s/.*/./; q'`/stamp-h$_am_stamp_count
  25485. ;;
  25486. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  25487. echo "$as_me: executing $ac_file commands" >&6;}
  25488. ;;
  25489. esac
  25490. case $ac_file$ac_mode in
  25491. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  25492. # Strip MF so we end up with the name of the file.
  25493. mf=`echo "$mf" | sed -e 's/:.*$//'`
  25494. # Check whether this is an Automake generated Makefile or not.
  25495. # We used to match only the files named `Makefile.in', but
  25496. # some people rename them; so instead we look at the file content.
  25497. # Grep'ing the first line is not enough: some people post-process
  25498. # each Makefile.in and add a new line on top of each file to say so.
  25499. # Grep'ing the whole file is not good either: AIX grep has a line
  25500. # limit of 2048, but all sed's we know have understand at least 4000.
  25501. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  25502. dirpart=`$as_dirname -- "$mf" ||
  25503. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25504. X"$mf" : 'X\(//\)[^/]' \| \
  25505. X"$mf" : 'X\(//\)$' \| \
  25506. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  25507. echo X"$mf" |
  25508. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25509. s//\1/
  25510. q
  25511. }
  25512. /^X\(\/\/\)[^/].*/{
  25513. s//\1/
  25514. q
  25515. }
  25516. /^X\(\/\/\)$/{
  25517. s//\1/
  25518. q
  25519. }
  25520. /^X\(\/\).*/{
  25521. s//\1/
  25522. q
  25523. }
  25524. s/.*/./; q'`
  25525. else
  25526. continue
  25527. fi
  25528. # Extract the definition of DEPDIR, am__include, and am__quote
  25529. # from the Makefile without running `make'.
  25530. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  25531. test -z "$DEPDIR" && continue
  25532. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  25533. test -z "am__include" && continue
  25534. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  25535. # When using ansi2knr, U may be empty or an underscore; expand it
  25536. U=`sed -n 's/^U = //p' < "$mf"`
  25537. # Find all dependency output files, they are included files with
  25538. # $(DEPDIR) in their names. We invoke sed twice because it is the
  25539. # simplest approach to changing $(DEPDIR) to its actual value in the
  25540. # expansion.
  25541. for file in `sed -n "
  25542. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  25543. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  25544. # Make sure the directory exists.
  25545. test -f "$dirpart/$file" && continue
  25546. fdir=`$as_dirname -- "$file" ||
  25547. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25548. X"$file" : 'X\(//\)[^/]' \| \
  25549. X"$file" : 'X\(//\)$' \| \
  25550. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  25551. echo X"$file" |
  25552. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25553. s//\1/
  25554. q
  25555. }
  25556. /^X\(\/\/\)[^/].*/{
  25557. s//\1/
  25558. q
  25559. }
  25560. /^X\(\/\/\)$/{
  25561. s//\1/
  25562. q
  25563. }
  25564. /^X\(\/\).*/{
  25565. s//\1/
  25566. q
  25567. }
  25568. s/.*/./; q'`
  25569. { as_dir=$dirpart/$fdir
  25570. case $as_dir in #(
  25571. -*) as_dir=./$as_dir;;
  25572. esac
  25573. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  25574. as_dirs=
  25575. while :; do
  25576. case $as_dir in #(
  25577. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  25578. *) as_qdir=$as_dir;;
  25579. esac
  25580. as_dirs="'$as_qdir' $as_dirs"
  25581. as_dir=`$as_dirname -- "$as_dir" ||
  25582. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25583. X"$as_dir" : 'X\(//\)[^/]' \| \
  25584. X"$as_dir" : 'X\(//\)$' \| \
  25585. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  25586. echo X"$as_dir" |
  25587. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25588. s//\1/
  25589. q
  25590. }
  25591. /^X\(\/\/\)[^/].*/{
  25592. s//\1/
  25593. q
  25594. }
  25595. /^X\(\/\/\)$/{
  25596. s//\1/
  25597. q
  25598. }
  25599. /^X\(\/\).*/{
  25600. s//\1/
  25601. q
  25602. }
  25603. s/.*/./; q'`
  25604. test -d "$as_dir" && break
  25605. done
  25606. test -z "$as_dirs" || eval "mkdir $as_dirs"
  25607. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  25608. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  25609. { (exit 1); exit 1; }; }; }
  25610. # echo "creating $dirpart/$file"
  25611. echo '# dummy' > "$dirpart/$file"
  25612. done
  25613. done
  25614. ;;
  25615. "$ac_stdint_h":C)
  25616. { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
  25617. echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
  25618. ac_stdint=$tmp/_stdint.h
  25619. echo "#ifndef" $_ac_stdint_h >$ac_stdint
  25620. echo "#define" $_ac_stdint_h "1" >>$ac_stdint
  25621. echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
  25622. echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
  25623. echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
  25624. if test "_$ac_cv_header_stdint_t" != "_" ; then
  25625. echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
  25626. fi
  25627. cat >>$ac_stdint <<STDINT_EOF
  25628. /* ................... shortcircuit part ........................... */
  25629. #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
  25630. #include <stdint.h>
  25631. #else
  25632. #include <stddef.h>
  25633. /* .................... configured part ............................ */
  25634. STDINT_EOF
  25635. echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
  25636. if test "_$ac_cv_header_stdint_x" != "_" ; then
  25637. ac_header="$ac_cv_header_stdint_x"
  25638. echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
  25639. else
  25640. echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
  25641. fi
  25642. echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
  25643. if test "_$ac_cv_header_stdint_o" != "_" ; then
  25644. ac_header="$ac_cv_header_stdint_o"
  25645. echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
  25646. else
  25647. echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
  25648. fi
  25649. echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
  25650. if test "_$ac_cv_header_stdint_u" != "_" ; then
  25651. ac_header="$ac_cv_header_stdint_u"
  25652. echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
  25653. else
  25654. echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
  25655. fi
  25656. echo "" >>$ac_stdint
  25657. if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
  25658. echo "#include <$ac_header>" >>$ac_stdint
  25659. echo "" >>$ac_stdint
  25660. fi fi
  25661. echo "/* which 64bit typedef has been found */" >>$ac_stdint
  25662. if test "$ac_cv_type_uint64_t" = "yes" ; then
  25663. echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
  25664. else
  25665. echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
  25666. fi
  25667. if test "$ac_cv_type_u_int64_t" = "yes" ; then
  25668. echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
  25669. else
  25670. echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
  25671. fi
  25672. echo "" >>$ac_stdint
  25673. echo "/* which type model has been detected */" >>$ac_stdint
  25674. if test "_$ac_cv_stdint_char_model" != "_" ; then
  25675. echo "#define _STDINT_CHAR_MODEL" "$ac_cv_stdint_char_model" >>$ac_stdint
  25676. echo "#define _STDINT_LONG_MODEL" "$ac_cv_stdint_long_model" >>$ac_stdint
  25677. else
  25678. echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
  25679. echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
  25680. fi
  25681. echo "" >>$ac_stdint
  25682. echo "/* whether int_least types were detected */" >>$ac_stdint
  25683. if test "$ac_cv_type_int_least32_t" = "yes"; then
  25684. echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
  25685. else
  25686. echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
  25687. fi
  25688. echo "/* whether int_fast types were detected */" >>$ac_stdint
  25689. if test "$ac_cv_type_int_fast32_t" = "yes"; then
  25690. echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
  25691. else
  25692. echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
  25693. fi
  25694. echo "/* whether intmax_t type was detected */" >>$ac_stdint
  25695. if test "$ac_cv_type_intmax_t" = "yes"; then
  25696. echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
  25697. else
  25698. echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
  25699. fi
  25700. echo "" >>$ac_stdint
  25701. cat >>$ac_stdint <<STDINT_EOF
  25702. /* .................... detections part ............................ */
  25703. /* whether we need to define bitspecific types from compiler base types */
  25704. #ifndef _STDINT_HEADER_INTPTR
  25705. #ifndef _STDINT_HEADER_UINT32
  25706. #ifndef _STDINT_HEADER_U_INT32
  25707. #define _STDINT_NEED_INT_MODEL_T
  25708. #else
  25709. #define _STDINT_HAVE_U_INT_TYPES
  25710. #endif
  25711. #endif
  25712. #endif
  25713. #ifdef _STDINT_HAVE_U_INT_TYPES
  25714. #undef _STDINT_NEED_INT_MODEL_T
  25715. #endif
  25716. #ifdef _STDINT_CHAR_MODEL
  25717. #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
  25718. #ifndef _STDINT_BYTE_MODEL
  25719. #define _STDINT_BYTE_MODEL 12
  25720. #endif
  25721. #endif
  25722. #endif
  25723. #ifndef _STDINT_HAVE_INT_LEAST32_T
  25724. #define _STDINT_NEED_INT_LEAST_T
  25725. #endif
  25726. #ifndef _STDINT_HAVE_INT_FAST32_T
  25727. #define _STDINT_NEED_INT_FAST_T
  25728. #endif
  25729. #ifndef _STDINT_HEADER_INTPTR
  25730. #define _STDINT_NEED_INTPTR_T
  25731. #ifndef _STDINT_HAVE_INTMAX_T
  25732. #define _STDINT_NEED_INTMAX_T
  25733. #endif
  25734. #endif
  25735. /* .................... definition part ............................ */
  25736. /* some system headers have good uint64_t */
  25737. #ifndef _HAVE_UINT64_T
  25738. #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
  25739. #define _HAVE_UINT64_T
  25740. #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
  25741. #define _HAVE_UINT64_T
  25742. typedef u_int64_t uint64_t;
  25743. #endif
  25744. #endif
  25745. #ifndef _HAVE_UINT64_T
  25746. /* .. here are some common heuristics using compiler runtime specifics */
  25747. #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
  25748. #define _HAVE_UINT64_T
  25749. typedef long long int64_t;
  25750. typedef unsigned long long uint64_t;
  25751. #elif !defined __STRICT_ANSI__
  25752. #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  25753. #define _HAVE_UINT64_T
  25754. typedef __int64 int64_t;
  25755. typedef unsigned __int64 uint64_t;
  25756. #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
  25757. /* note: all ELF-systems seem to have loff-support which needs 64-bit */
  25758. #if !defined _NO_LONGLONG
  25759. #define _HAVE_UINT64_T
  25760. typedef long long int64_t;
  25761. typedef unsigned long long uint64_t;
  25762. #endif
  25763. #elif defined __alpha || (defined __mips && defined _ABIN32)
  25764. #if !defined _NO_LONGLONG
  25765. typedef long int64_t;
  25766. typedef unsigned long uint64_t;
  25767. #endif
  25768. /* compiler/cpu type to define int64_t */
  25769. #endif
  25770. #endif
  25771. #endif
  25772. #if defined _STDINT_HAVE_U_INT_TYPES
  25773. /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
  25774. typedef u_int8_t uint8_t;
  25775. typedef u_int16_t uint16_t;
  25776. typedef u_int32_t uint32_t;
  25777. /* glibc compatibility */
  25778. #ifndef __int8_t_defined
  25779. #define __int8_t_defined
  25780. #endif
  25781. #endif
  25782. #ifdef _STDINT_NEED_INT_MODEL_T
  25783. /* we must guess all the basic types. Apart from byte-adressable system, */
  25784. /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
  25785. /* (btw, those nibble-addressable systems are way off, or so we assume) */
  25786. #if defined _STDINT_BYTE_MODEL
  25787. #if _STDINT_LONG_MODEL+0 == 242
  25788. /* 2:4:2 = IP16 = a normal 16-bit system */
  25789. typedef unsigned char uint8_t;
  25790. typedef unsigned short uint16_t;
  25791. typedef unsigned long uint32_t;
  25792. #ifndef __int8_t_defined
  25793. #define __int8_t_defined
  25794. typedef char int8_t;
  25795. typedef short int16_t;
  25796. typedef long int32_t;
  25797. #endif
  25798. #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
  25799. /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
  25800. /* 4:4:4 = ILP32 = a normal 32-bit system */
  25801. typedef unsigned char uint8_t;
  25802. typedef unsigned short uint16_t;
  25803. typedef unsigned int uint32_t;
  25804. #ifndef __int8_t_defined
  25805. #define __int8_t_defined
  25806. typedef char int8_t;
  25807. typedef short int16_t;
  25808. typedef int int32_t;
  25809. #endif
  25810. #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
  25811. /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
  25812. /* 4:8:8 = LP64 = a normal 64-bit system */
  25813. typedef unsigned char uint8_t;
  25814. typedef unsigned short uint16_t;
  25815. typedef unsigned int uint32_t;
  25816. #ifndef __int8_t_defined
  25817. #define __int8_t_defined
  25818. typedef char int8_t;
  25819. typedef short int16_t;
  25820. typedef int int32_t;
  25821. #endif
  25822. /* this system has a "long" of 64bit */
  25823. #ifndef _HAVE_UINT64_T
  25824. #define _HAVE_UINT64_T
  25825. typedef unsigned long uint64_t;
  25826. typedef long int64_t;
  25827. #endif
  25828. #elif _STDINT_LONG_MODEL+0 == 448
  25829. /* LLP64 a 64-bit system derived from a 32-bit system */
  25830. typedef unsigned char uint8_t;
  25831. typedef unsigned short uint16_t;
  25832. typedef unsigned int uint32_t;
  25833. #ifndef __int8_t_defined
  25834. #define __int8_t_defined
  25835. typedef char int8_t;
  25836. typedef short int16_t;
  25837. typedef int int32_t;
  25838. #endif
  25839. /* assuming the system has a "long long" */
  25840. #ifndef _HAVE_UINT64_T
  25841. #define _HAVE_UINT64_T
  25842. typedef unsigned long long uint64_t;
  25843. typedef long long int64_t;
  25844. #endif
  25845. #else
  25846. #define _STDINT_NO_INT32_T
  25847. #endif
  25848. #else
  25849. #define _STDINT_NO_INT8_T
  25850. #define _STDINT_NO_INT32_T
  25851. #endif
  25852. #endif
  25853. /*
  25854. * quote from SunOS-5.8 sys/inttypes.h:
  25855. * Use at your own risk. As of February 1996, the committee is squarely
  25856. * behind the fixed sized types; the "least" and "fast" types are still being
  25857. * discussed. The probability that the "fast" types may be removed before
  25858. * the standard is finalized is high enough that they are not currently
  25859. * implemented.
  25860. */
  25861. #if defined _STDINT_NEED_INT_LEAST_T
  25862. typedef int8_t int_least8_t;
  25863. typedef int16_t int_least16_t;
  25864. typedef int32_t int_least32_t;
  25865. #ifdef _HAVE_UINT64_T
  25866. typedef int64_t int_least64_t;
  25867. #endif
  25868. typedef uint8_t uint_least8_t;
  25869. typedef uint16_t uint_least16_t;
  25870. typedef uint32_t uint_least32_t;
  25871. #ifdef _HAVE_UINT64_T
  25872. typedef uint64_t uint_least64_t;
  25873. #endif
  25874. /* least types */
  25875. #endif
  25876. #if defined _STDINT_NEED_INT_FAST_T
  25877. typedef int8_t int_fast8_t;
  25878. typedef int int_fast16_t;
  25879. typedef int32_t int_fast32_t;
  25880. #ifdef _HAVE_UINT64_T
  25881. typedef int64_t int_fast64_t;
  25882. #endif
  25883. typedef uint8_t uint_fast8_t;
  25884. typedef unsigned uint_fast16_t;
  25885. typedef uint32_t uint_fast32_t;
  25886. #ifdef _HAVE_UINT64_T
  25887. typedef uint64_t uint_fast64_t;
  25888. #endif
  25889. /* fast types */
  25890. #endif
  25891. #ifdef _STDINT_NEED_INTMAX_T
  25892. #ifdef _HAVE_UINT64_T
  25893. typedef int64_t intmax_t;
  25894. typedef uint64_t uintmax_t;
  25895. #else
  25896. typedef long intmax_t;
  25897. typedef unsigned long uintmax_t;
  25898. #endif
  25899. #endif
  25900. #ifdef _STDINT_NEED_INTPTR_T
  25901. #ifndef __intptr_t_defined
  25902. #define __intptr_t_defined
  25903. /* we encourage using "long" to store pointer values, never use "int" ! */
  25904. #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
  25905. typedef unsinged int uintptr_t;
  25906. typedef int intptr_t;
  25907. #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
  25908. typedef unsigned long uintptr_t;
  25909. typedef long intptr_t;
  25910. #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
  25911. typedef uint64_t uintptr_t;
  25912. typedef int64_t intptr_t;
  25913. #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
  25914. typedef unsigned long uintptr_t;
  25915. typedef long intptr_t;
  25916. #endif
  25917. #endif
  25918. #endif
  25919. /* shortcircuit*/
  25920. #endif
  25921. /* once */
  25922. #endif
  25923. #endif
  25924. STDINT_EOF
  25925. if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
  25926. { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
  25927. echo "$as_me: $ac_stdint_h is unchanged" >&6;}
  25928. else
  25929. ac_dir=`$as_dirname -- "$ac_stdint_h" ||
  25930. $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25931. X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
  25932. X"$ac_stdint_h" : 'X\(//\)$' \| \
  25933. X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
  25934. echo X"$ac_stdint_h" |
  25935. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25936. s//\1/
  25937. q
  25938. }
  25939. /^X\(\/\/\)[^/].*/{
  25940. s//\1/
  25941. q
  25942. }
  25943. /^X\(\/\/\)$/{
  25944. s//\1/
  25945. q
  25946. }
  25947. /^X\(\/\).*/{
  25948. s//\1/
  25949. q
  25950. }
  25951. s/.*/./; q'`
  25952. { as_dir="$ac_dir"
  25953. case $as_dir in #(
  25954. -*) as_dir=./$as_dir;;
  25955. esac
  25956. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  25957. as_dirs=
  25958. while :; do
  25959. case $as_dir in #(
  25960. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  25961. *) as_qdir=$as_dir;;
  25962. esac
  25963. as_dirs="'$as_qdir' $as_dirs"
  25964. as_dir=`$as_dirname -- "$as_dir" ||
  25965. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25966. X"$as_dir" : 'X\(//\)[^/]' \| \
  25967. X"$as_dir" : 'X\(//\)$' \| \
  25968. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  25969. echo X"$as_dir" |
  25970. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25971. s//\1/
  25972. q
  25973. }
  25974. /^X\(\/\/\)[^/].*/{
  25975. s//\1/
  25976. q
  25977. }
  25978. /^X\(\/\/\)$/{
  25979. s//\1/
  25980. q
  25981. }
  25982. /^X\(\/\).*/{
  25983. s//\1/
  25984. q
  25985. }
  25986. s/.*/./; q'`
  25987. test -d "$as_dir" && break
  25988. done
  25989. test -z "$as_dirs" || eval "mkdir $as_dirs"
  25990. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  25991. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  25992. { (exit 1); exit 1; }; }; }
  25993. rm -f $ac_stdint_h
  25994. mv $ac_stdint $ac_stdint_h
  25995. fi
  25996. ;;
  25997. esac
  25998. done # for ac_tag
  25999. { (exit 0); exit 0; }
  26000. _ACEOF
  26001. chmod +x $CONFIG_STATUS
  26002. ac_clean_files=$ac_clean_files_save
  26003. # configure is writing to config.log, and then calls config.status.
  26004. # config.status does its own redirection, appending to config.log.
  26005. # Unfortunately, on DOS this fails, as config.log is still kept open
  26006. # by configure, so config.status won't be able to write to it; its
  26007. # output is simply discarded. So we exec the FD to /dev/null,
  26008. # effectively closing config.log, so it can be properly (re)opened and
  26009. # appended to by config.status. When coming back to configure, we
  26010. # need to make the FD available again.
  26011. if test "$no_create" != yes; then
  26012. ac_cs_success=:
  26013. ac_config_status_args=
  26014. test "$silent" = yes &&
  26015. ac_config_status_args="$ac_config_status_args --quiet"
  26016. exec 5>/dev/null
  26017. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  26018. exec 5>>config.log
  26019. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  26020. # would make configure fail if this is the last instruction.
  26021. $ac_cs_success || { (exit 1); exit 1; }
  26022. fi