PageRenderTime 61ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 3ms

/lib/libmodplug/configure

http://github.com/xbmc/xbmc
Shell | 16303 lines | 15110 code | 669 blank | 524 comment | 773 complexity | 89ec97ae0a561f75c8314b80995baa52 MD5 | raw file
Possible License(s): GPL-3.0, CC-BY-SA-3.0, LGPL-2.0, 0BSD, Unlicense, GPL-2.0, AGPL-1.0, BSD-3-Clause, LGPL-2.1, LGPL-3.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  8. # Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  214. $0: including any error possibly output before this
  215. $0: message. Then install a modern shell, or manually run
  216. $0: the script under such a shell if you do have one."
  217. fi
  218. exit 1
  219. fi
  220. fi
  221. fi
  222. SHELL=${CONFIG_SHELL-/bin/sh}
  223. export SHELL
  224. # Unset more variables known to interfere with behavior of common tools.
  225. CLICOLOR_FORCE= GREP_OPTIONS=
  226. unset CLICOLOR_FORCE GREP_OPTIONS
  227. ## --------------------- ##
  228. ## M4sh Shell Functions. ##
  229. ## --------------------- ##
  230. # as_fn_unset VAR
  231. # ---------------
  232. # Portably unset VAR.
  233. as_fn_unset ()
  234. {
  235. { eval $1=; unset $1;}
  236. }
  237. as_unset=as_fn_unset
  238. # as_fn_set_status STATUS
  239. # -----------------------
  240. # Set $? to STATUS, without forking.
  241. as_fn_set_status ()
  242. {
  243. return $1
  244. } # as_fn_set_status
  245. # as_fn_exit STATUS
  246. # -----------------
  247. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  248. as_fn_exit ()
  249. {
  250. set +e
  251. as_fn_set_status $1
  252. exit $1
  253. } # as_fn_exit
  254. # as_fn_mkdir_p
  255. # -------------
  256. # Create "$as_dir" as a directory, including parents if necessary.
  257. as_fn_mkdir_p ()
  258. {
  259. case $as_dir in #(
  260. -*) as_dir=./$as_dir;;
  261. esac
  262. test -d "$as_dir" || eval $as_mkdir_p || {
  263. as_dirs=
  264. while :; do
  265. case $as_dir in #(
  266. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  267. *) as_qdir=$as_dir;;
  268. esac
  269. as_dirs="'$as_qdir' $as_dirs"
  270. as_dir=`$as_dirname -- "$as_dir" ||
  271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  272. X"$as_dir" : 'X\(//\)[^/]' \| \
  273. X"$as_dir" : 'X\(//\)$' \| \
  274. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  275. $as_echo X"$as_dir" |
  276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  277. s//\1/
  278. q
  279. }
  280. /^X\(\/\/\)[^/].*/{
  281. s//\1/
  282. q
  283. }
  284. /^X\(\/\/\)$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\).*/{
  289. s//\1/
  290. q
  291. }
  292. s/.*/./; q'`
  293. test -d "$as_dir" && break
  294. done
  295. test -z "$as_dirs" || eval "mkdir $as_dirs"
  296. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  297. } # as_fn_mkdir_p
  298. # as_fn_append VAR VALUE
  299. # ----------------------
  300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  301. # advantage of any shell optimizations that allow amortized linear growth over
  302. # repeated appends, instead of the typical quadratic growth present in naive
  303. # implementations.
  304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  305. eval 'as_fn_append ()
  306. {
  307. eval $1+=\$2
  308. }'
  309. else
  310. as_fn_append ()
  311. {
  312. eval $1=\$$1\$2
  313. }
  314. fi # as_fn_append
  315. # as_fn_arith ARG...
  316. # ------------------
  317. # Perform arithmetic evaluation on the ARGs, and store the result in the
  318. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  319. # must be portable across $(()) and expr.
  320. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  321. eval 'as_fn_arith ()
  322. {
  323. as_val=$(( $* ))
  324. }'
  325. else
  326. as_fn_arith ()
  327. {
  328. as_val=`expr "$@" || test $? -eq 1`
  329. }
  330. fi # as_fn_arith
  331. # as_fn_error ERROR [LINENO LOG_FD]
  332. # ---------------------------------
  333. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  334. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  335. # script with status $?, using 1 if that was 0.
  336. as_fn_error ()
  337. {
  338. as_status=$?; test $as_status -eq 0 && as_status=1
  339. if test "$3"; then
  340. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  342. fi
  343. $as_echo "$as_me: error: $1" >&2
  344. as_fn_exit $as_status
  345. } # as_fn_error
  346. if expr a : '\(a\)' >/dev/null 2>&1 &&
  347. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  348. as_expr=expr
  349. else
  350. as_expr=false
  351. fi
  352. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  353. as_basename=basename
  354. else
  355. as_basename=false
  356. fi
  357. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  358. as_dirname=dirname
  359. else
  360. as_dirname=false
  361. fi
  362. as_me=`$as_basename -- "$0" ||
  363. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  364. X"$0" : 'X\(//\)$' \| \
  365. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  366. $as_echo X/"$0" |
  367. sed '/^.*\/\([^/][^/]*\)\/*$/{
  368. s//\1/
  369. q
  370. }
  371. /^X\/\(\/\/\)$/{
  372. s//\1/
  373. q
  374. }
  375. /^X\/\(\/\).*/{
  376. s//\1/
  377. q
  378. }
  379. s/.*/./; q'`
  380. # Avoid depending upon Character Ranges.
  381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  384. as_cr_digits='0123456789'
  385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  386. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  387. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  388. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  389. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  390. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  408. # Don't try to exec as it changes $[0], causing all sort of problems
  409. # (the dirname of $[0] is not the place where we might find the
  410. # original and so on. Autoconf is especially sensitive to this).
  411. . "./$as_me.lineno"
  412. # Exit status is that of the last command.
  413. exit
  414. }
  415. ECHO_C= ECHO_N= ECHO_T=
  416. case `echo -n x` in #(((((
  417. -n*)
  418. case `echo 'xy\c'` in
  419. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  420. xy) ECHO_C='\c';;
  421. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  422. ECHO_T=' ';;
  423. esac;;
  424. *)
  425. ECHO_N='-n';;
  426. esac
  427. rm -f conf$$ conf$$.exe conf$$.file
  428. if test -d conf$$.dir; then
  429. rm -f conf$$.dir/conf$$.file
  430. else
  431. rm -f conf$$.dir
  432. mkdir conf$$.dir 2>/dev/null
  433. fi
  434. if (echo >conf$$.file) 2>/dev/null; then
  435. if ln -s conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s='ln -s'
  437. # ... but there are two gotchas:
  438. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  439. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  440. # In both cases, we have to default to `cp -p'.
  441. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  442. as_ln_s='cp -p'
  443. elif ln conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s=ln
  445. else
  446. as_ln_s='cp -p'
  447. fi
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  452. rmdir conf$$.dir 2>/dev/null
  453. if mkdir -p . 2>/dev/null; then
  454. as_mkdir_p='mkdir -p "$as_dir"'
  455. else
  456. test -d ./-p && rmdir ./-p
  457. as_mkdir_p=false
  458. fi
  459. if test -x / >/dev/null 2>&1; then
  460. as_test_x='test -x'
  461. else
  462. if ls -dL / >/dev/null 2>&1; then
  463. as_ls_L_option=L
  464. else
  465. as_ls_L_option=
  466. fi
  467. as_test_x='
  468. eval sh -c '\''
  469. if test -d "$1"; then
  470. test -d "$1/.";
  471. else
  472. case $1 in #(
  473. -*)set "./$1";;
  474. esac;
  475. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  476. ???[sx]*):;;*)false;;esac;fi
  477. '\'' sh
  478. '
  479. fi
  480. as_executable_p=$as_test_x
  481. # Sed expression to map a string onto a valid CPP name.
  482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  483. # Sed expression to map a string onto a valid variable name.
  484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  485. # Check that we are running under the correct shell.
  486. SHELL=${CONFIG_SHELL-/bin/sh}
  487. case X$lt_ECHO in
  488. X*--fallback-echo)
  489. # Remove one level of quotation (which was required for Make).
  490. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  491. ;;
  492. esac
  493. ECHO=${lt_ECHO-echo}
  494. if test "X$1" = X--no-reexec; then
  495. # Discard the --no-reexec flag, and continue.
  496. shift
  497. elif test "X$1" = X--fallback-echo; then
  498. # Avoid inline document here, it may be left over
  499. :
  500. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  501. # Yippee, $ECHO works!
  502. :
  503. else
  504. # Restart under the correct shell.
  505. exec $SHELL "$0" --no-reexec ${1+"$@"}
  506. fi
  507. if test "X$1" = X--fallback-echo; then
  508. # used as fallback echo
  509. shift
  510. cat <<_LT_EOF
  511. $*
  512. _LT_EOF
  513. exit 0
  514. fi
  515. # The HP-UX ksh and POSIX shell print the target directory to stdout
  516. # if CDPATH is set.
  517. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  518. if test -z "$lt_ECHO"; then
  519. if test "X${echo_test_string+set}" != Xset; then
  520. # find a string as large as possible, as long as the shell can cope with it
  521. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  522. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  523. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  524. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  525. then
  526. break
  527. fi
  528. done
  529. fi
  530. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  531. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  532. test "X$echo_testing_string" = "X$echo_test_string"; then
  533. :
  534. else
  535. # The Solaris, AIX, and Digital Unix default echo programs unquote
  536. # backslashes. This makes it impossible to quote backslashes using
  537. # echo "$something" | sed 's/\\/\\\\/g'
  538. #
  539. # So, first we look for a working echo in the user's PATH.
  540. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  541. for dir in $PATH /usr/ucb; do
  542. IFS="$lt_save_ifs"
  543. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  544. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  545. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  546. test "X$echo_testing_string" = "X$echo_test_string"; then
  547. ECHO="$dir/echo"
  548. break
  549. fi
  550. done
  551. IFS="$lt_save_ifs"
  552. if test "X$ECHO" = Xecho; then
  553. # We didn't find a better echo, so look for alternatives.
  554. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. # This shell has a builtin print -r that does the trick.
  558. ECHO='print -r'
  559. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  560. test "X$CONFIG_SHELL" != X/bin/ksh; then
  561. # If we have ksh, try running configure again with it.
  562. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  563. export ORIGINAL_CONFIG_SHELL
  564. CONFIG_SHELL=/bin/ksh
  565. export CONFIG_SHELL
  566. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  567. else
  568. # Try using printf.
  569. ECHO='printf %s\n'
  570. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  571. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  572. test "X$echo_testing_string" = "X$echo_test_string"; then
  573. # Cool, printf works
  574. :
  575. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  580. export CONFIG_SHELL
  581. SHELL="$CONFIG_SHELL"
  582. export SHELL
  583. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  584. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  585. test "X$echo_testing_string" = 'X\t' &&
  586. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  587. test "X$echo_testing_string" = "X$echo_test_string"; then
  588. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  589. else
  590. # maybe with a smaller string...
  591. prev=:
  592. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  593. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  594. then
  595. break
  596. fi
  597. prev="$cmd"
  598. done
  599. if test "$prev" != 'sed 50q "$0"'; then
  600. echo_test_string=`eval $prev`
  601. export echo_test_string
  602. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  603. else
  604. # Oops. We lost completely, so just stick with echo.
  605. ECHO=echo
  606. fi
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. # Copy echo and quote the copy suitably for passing to libtool from
  613. # the Makefile, instead of quoting the original, which is used later.
  614. lt_ECHO=$ECHO
  615. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  616. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  617. fi
  618. test -n "$DJDIR" || exec 7<&0 </dev/null
  619. exec 6>&1
  620. # Name of the host.
  621. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  622. # so uname gets run too.
  623. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  624. #
  625. # Initializations.
  626. #
  627. ac_default_prefix=/usr/local
  628. ac_clean_files=
  629. ac_config_libobj_dir=.
  630. LIBOBJS=
  631. cross_compiling=no
  632. subdirs=
  633. MFLAGS=
  634. MAKEFLAGS=
  635. # Identity of this package.
  636. PACKAGE_NAME=
  637. PACKAGE_TARNAME=
  638. PACKAGE_VERSION=
  639. PACKAGE_STRING=
  640. PACKAGE_BUGREPORT=
  641. PACKAGE_URL=
  642. ac_unique_file="Makefile.am"
  643. # Factoring default headers for most tests.
  644. ac_includes_default="\
  645. #include <stdio.h>
  646. #ifdef HAVE_SYS_TYPES_H
  647. # include <sys/types.h>
  648. #endif
  649. #ifdef HAVE_SYS_STAT_H
  650. # include <sys/stat.h>
  651. #endif
  652. #ifdef STDC_HEADERS
  653. # include <stdlib.h>
  654. # include <stddef.h>
  655. #else
  656. # ifdef HAVE_STDLIB_H
  657. # include <stdlib.h>
  658. # endif
  659. #endif
  660. #ifdef HAVE_STRING_H
  661. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  662. # include <memory.h>
  663. # endif
  664. # include <string.h>
  665. #endif
  666. #ifdef HAVE_STRINGS_H
  667. # include <strings.h>
  668. #endif
  669. #ifdef HAVE_INTTYPES_H
  670. # include <inttypes.h>
  671. #endif
  672. #ifdef HAVE_STDINT_H
  673. # include <stdint.h>
  674. #endif
  675. #ifdef HAVE_UNISTD_H
  676. # include <unistd.h>
  677. #endif"
  678. ac_subst_vars='am__EXEEXT_FALSE
  679. am__EXEEXT_TRUE
  680. LTLIBOBJS
  681. LIBOBJS
  682. MINGW32_FALSE
  683. MINGW32_TRUE
  684. OTOOL64
  685. OTOOL
  686. LIPO
  687. NMEDIT
  688. DSYMUTIL
  689. lt_ECHO
  690. RANLIB
  691. AR
  692. LN_S
  693. NM
  694. ac_ct_DUMPBIN
  695. DUMPBIN
  696. LD
  697. FGREP
  698. SED
  699. LIBTOOL
  700. OBJDUMP
  701. DLLTOOL
  702. AS
  703. host_os
  704. host_vendor
  705. host_cpu
  706. host
  707. build_os
  708. build_vendor
  709. build_cpu
  710. build
  711. EGREP
  712. GREP
  713. CXXCPP
  714. am__fastdepCXX_FALSE
  715. am__fastdepCXX_TRUE
  716. CXXDEPMODE
  717. ac_ct_CXX
  718. CXXFLAGS
  719. CXX
  720. am__fastdepCC_FALSE
  721. am__fastdepCC_TRUE
  722. CCDEPMODE
  723. AMDEPBACKSLASH
  724. AMDEP_FALSE
  725. AMDEP_TRUE
  726. am__quote
  727. am__include
  728. DEPDIR
  729. OBJEXT
  730. EXEEXT
  731. ac_ct_CC
  732. CPPFLAGS
  733. LDFLAGS
  734. CFLAGS
  735. CC
  736. am__untar
  737. am__tar
  738. AMTAR
  739. am__leading_dot
  740. SET_MAKE
  741. AWK
  742. mkdir_p
  743. MKDIR_P
  744. INSTALL_STRIP_PROGRAM
  745. STRIP
  746. install_sh
  747. MAKEINFO
  748. AUTOHEADER
  749. AUTOMAKE
  750. AUTOCONF
  751. ACLOCAL
  752. VERSION
  753. PACKAGE
  754. CYGPATH_W
  755. am__isrc
  756. INSTALL_DATA
  757. INSTALL_SCRIPT
  758. INSTALL_PROGRAM
  759. target_alias
  760. host_alias
  761. build_alias
  762. LIBS
  763. ECHO_T
  764. ECHO_N
  765. ECHO_C
  766. DEFS
  767. mandir
  768. localedir
  769. libdir
  770. psdir
  771. pdfdir
  772. dvidir
  773. htmldir
  774. infodir
  775. docdir
  776. oldincludedir
  777. includedir
  778. localstatedir
  779. sharedstatedir
  780. sysconfdir
  781. datadir
  782. datarootdir
  783. libexecdir
  784. sbindir
  785. bindir
  786. program_transform_name
  787. prefix
  788. exec_prefix
  789. PACKAGE_URL
  790. PACKAGE_BUGREPORT
  791. PACKAGE_STRING
  792. PACKAGE_VERSION
  793. PACKAGE_TARNAME
  794. PACKAGE_NAME
  795. PATH_SEPARATOR
  796. SHELL'
  797. ac_subst_files=''
  798. ac_user_opts='
  799. enable_option_checking
  800. enable_static
  801. enable_dependency_tracking
  802. enable_shared
  803. with_pic
  804. enable_fast_install
  805. with_gnu_ld
  806. enable_libtool_lock
  807. '
  808. ac_precious_vars='build_alias
  809. host_alias
  810. target_alias
  811. CC
  812. CFLAGS
  813. LDFLAGS
  814. LIBS
  815. CPPFLAGS
  816. CXX
  817. CXXFLAGS
  818. CCC
  819. CXXCPP'
  820. # Initialize some variables set by options.
  821. ac_init_help=
  822. ac_init_version=false
  823. ac_unrecognized_opts=
  824. ac_unrecognized_sep=
  825. # The variables have the same names as the options, with
  826. # dashes changed to underlines.
  827. cache_file=/dev/null
  828. exec_prefix=NONE
  829. no_create=
  830. no_recursion=
  831. prefix=NONE
  832. program_prefix=NONE
  833. program_suffix=NONE
  834. program_transform_name=s,x,x,
  835. silent=
  836. site=
  837. srcdir=
  838. verbose=
  839. x_includes=NONE
  840. x_libraries=NONE
  841. # Installation directory options.
  842. # These are left unexpanded so users can "make install exec_prefix=/foo"
  843. # and all the variables that are supposed to be based on exec_prefix
  844. # by default will actually change.
  845. # Use braces instead of parens because sh, perl, etc. also accept them.
  846. # (The list follows the same order as the GNU Coding Standards.)
  847. bindir='${exec_prefix}/bin'
  848. sbindir='${exec_prefix}/sbin'
  849. libexecdir='${exec_prefix}/libexec'
  850. datarootdir='${prefix}/share'
  851. datadir='${datarootdir}'
  852. sysconfdir='${prefix}/etc'
  853. sharedstatedir='${prefix}/com'
  854. localstatedir='${prefix}/var'
  855. includedir='${prefix}/include'
  856. oldincludedir='/usr/include'
  857. docdir='${datarootdir}/doc/${PACKAGE}'
  858. infodir='${datarootdir}/info'
  859. htmldir='${docdir}'
  860. dvidir='${docdir}'
  861. pdfdir='${docdir}'
  862. psdir='${docdir}'
  863. libdir='${exec_prefix}/lib'
  864. localedir='${datarootdir}/locale'
  865. mandir='${datarootdir}/man'
  866. ac_prev=
  867. ac_dashdash=
  868. for ac_option
  869. do
  870. # If the previous option needs an argument, assign it.
  871. if test -n "$ac_prev"; then
  872. eval $ac_prev=\$ac_option
  873. ac_prev=
  874. continue
  875. fi
  876. case $ac_option in
  877. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  878. *) ac_optarg=yes ;;
  879. esac
  880. # Accept the important Cygnus configure options, so we can diagnose typos.
  881. case $ac_dashdash$ac_option in
  882. --)
  883. ac_dashdash=yes ;;
  884. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  885. ac_prev=bindir ;;
  886. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  887. bindir=$ac_optarg ;;
  888. -build | --build | --buil | --bui | --bu)
  889. ac_prev=build_alias ;;
  890. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  891. build_alias=$ac_optarg ;;
  892. -cache-file | --cache-file | --cache-fil | --cache-fi \
  893. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  894. ac_prev=cache_file ;;
  895. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  896. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  897. cache_file=$ac_optarg ;;
  898. --config-cache | -C)
  899. cache_file=config.cache ;;
  900. -datadir | --datadir | --datadi | --datad)
  901. ac_prev=datadir ;;
  902. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  903. datadir=$ac_optarg ;;
  904. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  905. | --dataroo | --dataro | --datar)
  906. ac_prev=datarootdir ;;
  907. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  908. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  909. datarootdir=$ac_optarg ;;
  910. -disable-* | --disable-*)
  911. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  912. # Reject names that are not valid shell variable names.
  913. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  914. as_fn_error "invalid feature name: $ac_useropt"
  915. ac_useropt_orig=$ac_useropt
  916. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  917. case $ac_user_opts in
  918. *"
  919. "enable_$ac_useropt"
  920. "*) ;;
  921. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  922. ac_unrecognized_sep=', ';;
  923. esac
  924. eval enable_$ac_useropt=no ;;
  925. -docdir | --docdir | --docdi | --doc | --do)
  926. ac_prev=docdir ;;
  927. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  928. docdir=$ac_optarg ;;
  929. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  930. ac_prev=dvidir ;;
  931. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  932. dvidir=$ac_optarg ;;
  933. -enable-* | --enable-*)
  934. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  935. # Reject names that are not valid shell variable names.
  936. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  937. as_fn_error "invalid feature name: $ac_useropt"
  938. ac_useropt_orig=$ac_useropt
  939. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  940. case $ac_user_opts in
  941. *"
  942. "enable_$ac_useropt"
  943. "*) ;;
  944. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  945. ac_unrecognized_sep=', ';;
  946. esac
  947. eval enable_$ac_useropt=\$ac_optarg ;;
  948. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  949. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  950. | --exec | --exe | --ex)
  951. ac_prev=exec_prefix ;;
  952. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  953. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  954. | --exec=* | --exe=* | --ex=*)
  955. exec_prefix=$ac_optarg ;;
  956. -gas | --gas | --ga | --g)
  957. # Obsolete; use --with-gas.
  958. with_gas=yes ;;
  959. -help | --help | --hel | --he | -h)
  960. ac_init_help=long ;;
  961. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  962. ac_init_help=recursive ;;
  963. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  964. ac_init_help=short ;;
  965. -host | --host | --hos | --ho)
  966. ac_prev=host_alias ;;
  967. -host=* | --host=* | --hos=* | --ho=*)
  968. host_alias=$ac_optarg ;;
  969. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  970. ac_prev=htmldir ;;
  971. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  972. | --ht=*)
  973. htmldir=$ac_optarg ;;
  974. -includedir | --includedir | --includedi | --included | --include \
  975. | --includ | --inclu | --incl | --inc)
  976. ac_prev=includedir ;;
  977. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  978. | --includ=* | --inclu=* | --incl=* | --inc=*)
  979. includedir=$ac_optarg ;;
  980. -infodir | --infodir | --infodi | --infod | --info | --inf)
  981. ac_prev=infodir ;;
  982. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  983. infodir=$ac_optarg ;;
  984. -libdir | --libdir | --libdi | --libd)
  985. ac_prev=libdir ;;
  986. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  987. libdir=$ac_optarg ;;
  988. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  989. | --libexe | --libex | --libe)
  990. ac_prev=libexecdir ;;
  991. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  992. | --libexe=* | --libex=* | --libe=*)
  993. libexecdir=$ac_optarg ;;
  994. -localedir | --localedir | --localedi | --localed | --locale)
  995. ac_prev=localedir ;;
  996. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  997. localedir=$ac_optarg ;;
  998. -localstatedir | --localstatedir | --localstatedi | --localstated \
  999. | --localstate | --localstat | --localsta | --localst | --locals)
  1000. ac_prev=localstatedir ;;
  1001. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1002. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1003. localstatedir=$ac_optarg ;;
  1004. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1005. ac_prev=mandir ;;
  1006. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1007. mandir=$ac_optarg ;;
  1008. -nfp | --nfp | --nf)
  1009. # Obsolete; use --without-fp.
  1010. with_fp=no ;;
  1011. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1012. | --no-cr | --no-c | -n)
  1013. no_create=yes ;;
  1014. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1015. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1016. no_recursion=yes ;;
  1017. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1018. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1019. | --oldin | --oldi | --old | --ol | --o)
  1020. ac_prev=oldincludedir ;;
  1021. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1022. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1023. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1024. oldincludedir=$ac_optarg ;;
  1025. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1026. ac_prev=prefix ;;
  1027. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1028. prefix=$ac_optarg ;;
  1029. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1030. | --program-pre | --program-pr | --program-p)
  1031. ac_prev=program_prefix ;;
  1032. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1033. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1034. program_prefix=$ac_optarg ;;
  1035. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1036. | --program-suf | --program-su | --program-s)
  1037. ac_prev=program_suffix ;;
  1038. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1039. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1040. program_suffix=$ac_optarg ;;
  1041. -program-transform-name | --program-transform-name \
  1042. | --program-transform-nam | --program-transform-na \
  1043. | --program-transform-n | --program-transform- \
  1044. | --program-transform | --program-transfor \
  1045. | --program-transfo | --program-transf \
  1046. | --program-trans | --program-tran \
  1047. | --progr-tra | --program-tr | --program-t)
  1048. ac_prev=program_transform_name ;;
  1049. -program-transform-name=* | --program-transform-name=* \
  1050. | --program-transform-nam=* | --program-transform-na=* \
  1051. | --program-transform-n=* | --program-transform-=* \
  1052. | --program-transform=* | --program-transfor=* \
  1053. | --program-transfo=* | --program-transf=* \
  1054. | --program-trans=* | --program-tran=* \
  1055. | --progr-tra=* | --program-tr=* | --program-t=*)
  1056. program_transform_name=$ac_optarg ;;
  1057. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1058. ac_prev=pdfdir ;;
  1059. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1060. pdfdir=$ac_optarg ;;
  1061. -psdir | --psdir | --psdi | --psd | --ps)
  1062. ac_prev=psdir ;;
  1063. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1064. psdir=$ac_optarg ;;
  1065. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1066. | -silent | --silent | --silen | --sile | --sil)
  1067. silent=yes ;;
  1068. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1069. ac_prev=sbindir ;;
  1070. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1071. | --sbi=* | --sb=*)
  1072. sbindir=$ac_optarg ;;
  1073. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1074. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1075. | --sharedst | --shareds | --shared | --share | --shar \
  1076. | --sha | --sh)
  1077. ac_prev=sharedstatedir ;;
  1078. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1079. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1080. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1081. | --sha=* | --sh=*)
  1082. sharedstatedir=$ac_optarg ;;
  1083. -site | --site | --sit)
  1084. ac_prev=site ;;
  1085. -site=* | --site=* | --sit=*)
  1086. site=$ac_optarg ;;
  1087. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1088. ac_prev=srcdir ;;
  1089. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1090. srcdir=$ac_optarg ;;
  1091. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1092. | --syscon | --sysco | --sysc | --sys | --sy)
  1093. ac_prev=sysconfdir ;;
  1094. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1095. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1096. sysconfdir=$ac_optarg ;;
  1097. -target | --target | --targe | --targ | --tar | --ta | --t)
  1098. ac_prev=target_alias ;;
  1099. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1100. target_alias=$ac_optarg ;;
  1101. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1102. verbose=yes ;;
  1103. -version | --version | --versio | --versi | --vers | -V)
  1104. ac_init_version=: ;;
  1105. -with-* | --with-*)
  1106. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1107. # Reject names that are not valid shell variable names.
  1108. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1109. as_fn_error "invalid package name: $ac_useropt"
  1110. ac_useropt_orig=$ac_useropt
  1111. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1112. case $ac_user_opts in
  1113. *"
  1114. "with_$ac_useropt"
  1115. "*) ;;
  1116. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1117. ac_unrecognized_sep=', ';;
  1118. esac
  1119. eval with_$ac_useropt=\$ac_optarg ;;
  1120. -without-* | --without-*)
  1121. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1122. # Reject names that are not valid shell variable names.
  1123. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1124. as_fn_error "invalid package name: $ac_useropt"
  1125. ac_useropt_orig=$ac_useropt
  1126. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1127. case $ac_user_opts in
  1128. *"
  1129. "with_$ac_useropt"
  1130. "*) ;;
  1131. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1132. ac_unrecognized_sep=', ';;
  1133. esac
  1134. eval with_$ac_useropt=no ;;
  1135. --x)
  1136. # Obsolete; use --with-x.
  1137. with_x=yes ;;
  1138. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1139. | --x-incl | --x-inc | --x-in | --x-i)
  1140. ac_prev=x_includes ;;
  1141. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1142. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1143. x_includes=$ac_optarg ;;
  1144. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1145. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1146. ac_prev=x_libraries ;;
  1147. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1148. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1149. x_libraries=$ac_optarg ;;
  1150. -*) as_fn_error "unrecognized option: \`$ac_option'
  1151. Try \`$0 --help' for more information."
  1152. ;;
  1153. *=*)
  1154. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1155. # Reject names that are not valid shell variable names.
  1156. case $ac_envvar in #(
  1157. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1158. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1159. esac
  1160. eval $ac_envvar=\$ac_optarg
  1161. export $ac_envvar ;;
  1162. *)
  1163. # FIXME: should be removed in autoconf 3.0.
  1164. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1165. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1166. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1167. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1168. ;;
  1169. esac
  1170. done
  1171. if test -n "$ac_prev"; then
  1172. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1173. as_fn_error "missing argument to $ac_option"
  1174. fi
  1175. if test -n "$ac_unrecognized_opts"; then
  1176. case $enable_option_checking in
  1177. no) ;;
  1178. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1179. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1180. esac
  1181. fi
  1182. # Check all directory arguments for consistency.
  1183. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1184. datadir sysconfdir sharedstatedir localstatedir includedir \
  1185. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1186. libdir localedir mandir
  1187. do
  1188. eval ac_val=\$$ac_var
  1189. # Remove trailing slashes.
  1190. case $ac_val in
  1191. */ )
  1192. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1193. eval $ac_var=\$ac_val;;
  1194. esac
  1195. # Be sure to have absolute directory names.
  1196. case $ac_val in
  1197. [\\/$]* | ?:[\\/]* ) continue;;
  1198. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1199. esac
  1200. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1201. done
  1202. # There might be people who depend on the old broken behavior: `$host'
  1203. # used to hold the argument of --host etc.
  1204. # FIXME: To remove some day.
  1205. build=$build_alias
  1206. host=$host_alias
  1207. target=$target_alias
  1208. # FIXME: To remove some day.
  1209. if test "x$host_alias" != x; then
  1210. if test "x$build_alias" = x; then
  1211. cross_compiling=maybe
  1212. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1213. If a cross compiler is detected then cross compile mode will be used." >&2
  1214. elif test "x$build_alias" != "x$host_alias"; then
  1215. cross_compiling=yes
  1216. fi
  1217. fi
  1218. ac_tool_prefix=
  1219. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1220. test "$silent" = yes && exec 6>/dev/null
  1221. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1222. ac_ls_di=`ls -di .` &&
  1223. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1224. as_fn_error "working directory cannot be determined"
  1225. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1226. as_fn_error "pwd does not report name of working directory"
  1227. # Find the source files, if location was not specified.
  1228. if test -z "$srcdir"; then
  1229. ac_srcdir_defaulted=yes
  1230. # Try the directory containing this script, then the parent directory.
  1231. ac_confdir=`$as_dirname -- "$as_myself" ||
  1232. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1233. X"$as_myself" : 'X\(//\)[^/]' \| \
  1234. X"$as_myself" : 'X\(//\)$' \| \
  1235. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1236. $as_echo X"$as_myself" |
  1237. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1238. s//\1/
  1239. q
  1240. }
  1241. /^X\(\/\/\)[^/].*/{
  1242. s//\1/
  1243. q
  1244. }
  1245. /^X\(\/\/\)$/{
  1246. s//\1/
  1247. q
  1248. }
  1249. /^X\(\/\).*/{
  1250. s//\1/
  1251. q
  1252. }
  1253. s/.*/./; q'`
  1254. srcdir=$ac_confdir
  1255. if test ! -r "$srcdir/$ac_unique_file"; then
  1256. srcdir=..
  1257. fi
  1258. else
  1259. ac_srcdir_defaulted=no
  1260. fi
  1261. if test ! -r "$srcdir/$ac_unique_file"; then
  1262. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1263. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1264. fi
  1265. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1266. ac_abs_confdir=`(
  1267. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1268. pwd)`
  1269. # When building in place, set srcdir=.
  1270. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1271. srcdir=.
  1272. fi
  1273. # Remove unnecessary trailing slashes from srcdir.
  1274. # Double slashes in file names in object file debugging info
  1275. # mess up M-x gdb in Emacs.
  1276. case $srcdir in
  1277. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1278. esac
  1279. for ac_var in $ac_precious_vars; do
  1280. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1281. eval ac_env_${ac_var}_value=\$${ac_var}
  1282. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1283. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1284. done
  1285. #
  1286. # Report the --help message.
  1287. #
  1288. if test "$ac_init_help" = "long"; then
  1289. # Omit some internal or obsolete options to make the list less imposing.
  1290. # This message is too long to be a string in the A/UX 3.1 sh.
  1291. cat <<_ACEOF
  1292. \`configure' configures this package to adapt to many kinds of systems.
  1293. Usage: $0 [OPTION]... [VAR=VALUE]...
  1294. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1295. VAR=VALUE. See below for descriptions of some of the useful variables.
  1296. Defaults for the options are specified in brackets.
  1297. Configuration:
  1298. -h, --help display this help and exit
  1299. --help=short display options specific to this package
  1300. --help=recursive display the short help of all the included packages
  1301. -V, --version display version information and exit
  1302. -q, --quiet, --silent do not print \`checking...' messages
  1303. --cache-file=FILE cache test results in FILE [disabled]
  1304. -C, --config-cache alias for \`--cache-file=config.cache'
  1305. -n, --no-create do not create output files
  1306. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1307. Installation directories:
  1308. --prefix=PREFIX install architecture-independent files in PREFIX
  1309. [$ac_default_prefix]
  1310. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1311. [PREFIX]
  1312. By default, \`make install' will install all the files in
  1313. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1314. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1315. for instance \`--prefix=\$HOME'.
  1316. For better control, use the options below.
  1317. Fine tuning of the installation directories:
  1318. --bindir=DIR user executables [EPREFIX/bin]
  1319. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1320. --libexecdir=DIR program executables [EPREFIX/libexec]
  1321. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1322. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1323. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1324. --libdir=DIR object code libraries [EPREFIX/lib]
  1325. --includedir=DIR C header files [PREFIX/include]
  1326. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1327. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1328. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1329. --infodir=DIR info documentation [DATAROOTDIR/info]
  1330. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1331. --mandir=DIR man documentation [DATAROOTDIR/man]
  1332. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1333. --htmldir=DIR html documentation [DOCDIR]
  1334. --dvidir=DIR dvi documentation [DOCDIR]
  1335. --pdfdir=DIR pdf documentation [DOCDIR]
  1336. --psdir=DIR ps documentation [DOCDIR]
  1337. _ACEOF
  1338. cat <<\_ACEOF
  1339. Program names:
  1340. --program-prefix=PREFIX prepend PREFIX to installed program names
  1341. --program-suffix=SUFFIX append SUFFIX to installed program names
  1342. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1343. System types:
  1344. --build=BUILD configure for building on BUILD [guessed]
  1345. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1346. _ACEOF
  1347. fi
  1348. if test -n "$ac_init_help"; then
  1349. cat <<\_ACEOF
  1350. Optional Features:
  1351. --disable-option-checking ignore unrecognized --enable/--with options
  1352. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1353. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1354. --enable-static[=PKGS] build static libraries [default=no]
  1355. --disable-dependency-tracking speeds up one-time build
  1356. --enable-dependency-tracking do not reject slow dependency extractors
  1357. --enable-shared[=PKGS] build shared libraries [default=yes]
  1358. --enable-fast-install[=PKGS]
  1359. optimize for fast installation [default=yes]
  1360. --disable-libtool-lock avoid locking (might break parallel builds)
  1361. Optional Packages:
  1362. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1363. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1364. --with-pic try to use only PIC/non-PIC objects [default=use
  1365. both]
  1366. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1367. Some influential environment variables:
  1368. CC C compiler command
  1369. CFLAGS C compiler flags
  1370. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1371. nonstandard directory <lib dir>
  1372. LIBS libraries to pass to the linker, e.g. -l<library>
  1373. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1374. you have headers in a nonstandard directory <include dir>
  1375. CXX C++ compiler command
  1376. CXXFLAGS C++ compiler flags
  1377. CXXCPP C++ preprocessor
  1378. Use these variables to override the choices made by `configure' or to help
  1379. it to find libraries and programs with nonstandard names/locations.
  1380. Report bugs to the package provider.
  1381. _ACEOF
  1382. ac_status=$?
  1383. fi
  1384. if test "$ac_init_help" = "recursive"; then
  1385. # If there are subdirs, report their specific --help.
  1386. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1387. test -d "$ac_dir" ||
  1388. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1389. continue
  1390. ac_builddir=.
  1391. case "$ac_dir" in
  1392. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1393. *)
  1394. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1395. # A ".." for each directory in $ac_dir_suffix.
  1396. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1397. case $ac_top_builddir_sub in
  1398. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1399. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1400. esac ;;
  1401. esac
  1402. ac_abs_top_builddir=$ac_pwd
  1403. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1404. # for backward compatibility:
  1405. ac_top_builddir=$ac_top_build_prefix
  1406. case $srcdir in
  1407. .) # We are building in place.
  1408. ac_srcdir=.
  1409. ac_top_srcdir=$ac_top_builddir_sub
  1410. ac_abs_top_srcdir=$ac_pwd ;;
  1411. [\\/]* | ?:[\\/]* ) # Absolute name.
  1412. ac_srcdir=$srcdir$ac_dir_suffix;
  1413. ac_top_srcdir=$srcdir
  1414. ac_abs_top_srcdir=$srcdir ;;
  1415. *) # Relative name.
  1416. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1417. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1418. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1419. esac
  1420. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1421. cd "$ac_dir" || { ac_status=$?; continue; }
  1422. # Check for guested configure.
  1423. if test -f "$ac_srcdir/configure.gnu"; then
  1424. echo &&
  1425. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1426. elif test -f "$ac_srcdir/configure"; then
  1427. echo &&
  1428. $SHELL "$ac_srcdir/configure" --help=recursive
  1429. else
  1430. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1431. fi || ac_status=$?
  1432. cd "$ac_pwd" || { ac_status=$?; break; }
  1433. done
  1434. fi
  1435. test -n "$ac_init_help" && exit $ac_status
  1436. if $ac_init_version; then
  1437. cat <<\_ACEOF
  1438. configure
  1439. generated by GNU Autoconf 2.65
  1440. Copyright (C) 2009 Free Software Foundation, Inc.
  1441. This configure script is free software; the Free Software Foundation
  1442. gives unlimited permission to copy, distribute and modify it.
  1443. _ACEOF
  1444. exit
  1445. fi
  1446. ## ------------------------ ##
  1447. ## Autoconf initialization. ##
  1448. ## ------------------------ ##
  1449. # ac_fn_c_try_compile LINENO
  1450. # --------------------------
  1451. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1452. ac_fn_c_try_compile ()
  1453. {
  1454. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1455. rm -f conftest.$ac_objext
  1456. if { { ac_try="$ac_compile"
  1457. case "(($ac_try" in
  1458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1459. *) ac_try_echo=$ac_try;;
  1460. esac
  1461. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1462. $as_echo "$ac_try_echo"; } >&5
  1463. (eval "$ac_compile") 2>conftest.err
  1464. ac_status=$?
  1465. if test -s conftest.err; then
  1466. grep -v '^ *+' conftest.err >conftest.er1
  1467. cat conftest.er1 >&5
  1468. mv -f conftest.er1 conftest.err
  1469. fi
  1470. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1471. test $ac_status = 0; } && {
  1472. test -z "$ac_c_werror_flag" ||
  1473. test ! -s conftest.err
  1474. } && test -s conftest.$ac_objext; then :
  1475. ac_retval=0
  1476. else
  1477. $as_echo "$as_me: failed program was:" >&5
  1478. sed 's/^/| /' conftest.$ac_ext >&5
  1479. ac_retval=1
  1480. fi
  1481. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1482. as_fn_set_status $ac_retval
  1483. } # ac_fn_c_try_compile
  1484. # ac_fn_cxx_try_compile LINENO
  1485. # ----------------------------
  1486. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1487. ac_fn_cxx_try_compile ()
  1488. {
  1489. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1490. rm -f conftest.$ac_objext
  1491. if { { ac_try="$ac_compile"
  1492. case "(($ac_try" in
  1493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1494. *) ac_try_echo=$ac_try;;
  1495. esac
  1496. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1497. $as_echo "$ac_try_echo"; } >&5
  1498. (eval "$ac_compile") 2>conftest.err
  1499. ac_status=$?
  1500. if test -s conftest.err; then
  1501. grep -v '^ *+' conftest.err >conftest.er1
  1502. cat conftest.er1 >&5
  1503. mv -f conftest.er1 conftest.err
  1504. fi
  1505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1506. test $ac_status = 0; } && {
  1507. test -z "$ac_cxx_werror_flag" ||
  1508. test ! -s conftest.err
  1509. } && test -s conftest.$ac_objext; then :
  1510. ac_retval=0
  1511. else
  1512. $as_echo "$as_me: failed program was:" >&5
  1513. sed 's/^/| /' conftest.$ac_ext >&5
  1514. ac_retval=1
  1515. fi
  1516. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1517. as_fn_set_status $ac_retval
  1518. } # ac_fn_cxx_try_compile
  1519. # ac_fn_cxx_try_run LINENO
  1520. # ------------------------
  1521. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1522. # that executables *can* be run.
  1523. ac_fn_cxx_try_run ()
  1524. {
  1525. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1526. if { { ac_try="$ac_link"
  1527. case "(($ac_try" in
  1528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1529. *) ac_try_echo=$ac_try;;
  1530. esac
  1531. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1532. $as_echo "$ac_try_echo"; } >&5
  1533. (eval "$ac_link") 2>&5
  1534. ac_status=$?
  1535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1536. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1537. { { case "(($ac_try" in
  1538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1539. *) ac_try_echo=$ac_try;;
  1540. esac
  1541. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1542. $as_echo "$ac_try_echo"; } >&5
  1543. (eval "$ac_try") 2>&5
  1544. ac_status=$?
  1545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1546. test $ac_status = 0; }; }; then :
  1547. ac_retval=0
  1548. else
  1549. $as_echo "$as_me: program exited with status $ac_status" >&5
  1550. $as_echo "$as_me: failed program was:" >&5
  1551. sed 's/^/| /' conftest.$ac_ext >&5
  1552. ac_retval=$ac_status
  1553. fi
  1554. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1555. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1556. as_fn_set_status $ac_retval
  1557. } # ac_fn_cxx_try_run
  1558. # ac_fn_cxx_try_cpp LINENO
  1559. # ------------------------
  1560. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1561. ac_fn_cxx_try_cpp ()
  1562. {
  1563. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1564. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1565. case "(($ac_try" in
  1566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1567. *) ac_try_echo=$ac_try;;
  1568. esac
  1569. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1570. $as_echo "$ac_try_echo"; } >&5
  1571. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1572. ac_status=$?
  1573. if test -s conftest.err; then
  1574. grep -v '^ *+' conftest.err >conftest.er1
  1575. cat conftest.er1 >&5
  1576. mv -f conftest.er1 conftest.err
  1577. fi
  1578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1579. test $ac_status = 0; } >/dev/null && {
  1580. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1581. test ! -s conftest.err
  1582. }; then :
  1583. ac_retval=0
  1584. else
  1585. $as_echo "$as_me: failed program was:" >&5
  1586. sed 's/^/| /' conftest.$ac_ext >&5
  1587. ac_retval=1
  1588. fi
  1589. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1590. as_fn_set_status $ac_retval
  1591. } # ac_fn_cxx_try_cpp
  1592. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1593. # ---------------------------------------------------------
  1594. # Tests whether HEADER exists and can be compiled using the include files in
  1595. # INCLUDES, setting the cache variable VAR accordingly.
  1596. ac_fn_cxx_check_header_compile ()
  1597. {
  1598. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1600. $as_echo_n "checking for $2... " >&6; }
  1601. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1602. $as_echo_n "(cached) " >&6
  1603. else
  1604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1605. /* end confdefs.h. */
  1606. $4
  1607. #include <$2>
  1608. _ACEOF
  1609. if ac_fn_cxx_try_compile "$LINENO"; then :
  1610. eval "$3=yes"
  1611. else
  1612. eval "$3=no"
  1613. fi
  1614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1615. fi
  1616. eval ac_res=\$$3
  1617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1618. $as_echo "$ac_res" >&6; }
  1619. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1620. } # ac_fn_cxx_check_header_compile
  1621. # ac_fn_c_try_link LINENO
  1622. # -----------------------
  1623. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1624. ac_fn_c_try_link ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. rm -f conftest.$ac_objext conftest$ac_exeext
  1628. if { { ac_try="$ac_link"
  1629. case "(($ac_try" in
  1630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1631. *) ac_try_echo=$ac_try;;
  1632. esac
  1633. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1634. $as_echo "$ac_try_echo"; } >&5
  1635. (eval "$ac_link") 2>conftest.err
  1636. ac_status=$?
  1637. if test -s conftest.err; then
  1638. grep -v '^ *+' conftest.err >conftest.er1
  1639. cat conftest.er1 >&5
  1640. mv -f conftest.er1 conftest.err
  1641. fi
  1642. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1643. test $ac_status = 0; } && {
  1644. test -z "$ac_c_werror_flag" ||
  1645. test ! -s conftest.err
  1646. } && test -s conftest$ac_exeext && {
  1647. test "$cross_compiling" = yes ||
  1648. $as_test_x conftest$ac_exeext
  1649. }; then :
  1650. ac_retval=0
  1651. else
  1652. $as_echo "$as_me: failed program was:" >&5
  1653. sed 's/^/| /' conftest.$ac_ext >&5
  1654. ac_retval=1
  1655. fi
  1656. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1657. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1658. # interfere with the next link command; also delete a directory that is
  1659. # left behind by Apple's compiler. We do this before executing the actions.
  1660. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1661. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1662. as_fn_set_status $ac_retval
  1663. } # ac_fn_c_try_link
  1664. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1665. # -------------------------------------------------------
  1666. # Tests whether HEADER exists and can be compiled using the include files in
  1667. # INCLUDES, setting the cache variable VAR accordingly.
  1668. ac_fn_c_check_header_compile ()
  1669. {
  1670. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1672. $as_echo_n "checking for $2... " >&6; }
  1673. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1674. $as_echo_n "(cached) " >&6
  1675. else
  1676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1677. /* end confdefs.h. */
  1678. $4
  1679. #include <$2>
  1680. _ACEOF
  1681. if ac_fn_c_try_compile "$LINENO"; then :
  1682. eval "$3=yes"
  1683. else
  1684. eval "$3=no"
  1685. fi
  1686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1687. fi
  1688. eval ac_res=\$$3
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1690. $as_echo "$ac_res" >&6; }
  1691. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1692. } # ac_fn_c_check_header_compile
  1693. # ac_fn_c_check_func LINENO FUNC VAR
  1694. # ----------------------------------
  1695. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1696. ac_fn_c_check_func ()
  1697. {
  1698. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1700. $as_echo_n "checking for $2... " >&6; }
  1701. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1702. $as_echo_n "(cached) " >&6
  1703. else
  1704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1705. /* end confdefs.h. */
  1706. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1707. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1708. #define $2 innocuous_$2
  1709. /* System header to define __stub macros and hopefully few prototypes,
  1710. which can conflict with char $2 (); below.
  1711. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1712. <limits.h> exists even on freestanding compilers. */
  1713. #ifdef __STDC__
  1714. # include <limits.h>
  1715. #else
  1716. # include <assert.h>
  1717. #endif
  1718. #undef $2
  1719. /* Override any GCC internal prototype to avoid an error.
  1720. Use char because int might match the return type of a GCC
  1721. builtin and then its argument prototype would still apply. */
  1722. #ifdef __cplusplus
  1723. extern "C"
  1724. #endif
  1725. char $2 ();
  1726. /* The GNU C library defines this for functions which it implements
  1727. to always fail with ENOSYS. Some functions are actually named
  1728. something starting with __ and the normal name is an alias. */
  1729. #if defined __stub_$2 || defined __stub___$2
  1730. choke me
  1731. #endif
  1732. int
  1733. main ()
  1734. {
  1735. return $2 ();
  1736. ;
  1737. return 0;
  1738. }
  1739. _ACEOF
  1740. if ac_fn_c_try_link "$LINENO"; then :
  1741. eval "$3=yes"
  1742. else
  1743. eval "$3=no"
  1744. fi
  1745. rm -f core conftest.err conftest.$ac_objext \
  1746. conftest$ac_exeext conftest.$ac_ext
  1747. fi
  1748. eval ac_res=\$$3
  1749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1750. $as_echo "$ac_res" >&6; }
  1751. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1752. } # ac_fn_c_check_func
  1753. # ac_fn_cxx_try_link LINENO
  1754. # -------------------------
  1755. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1756. ac_fn_cxx_try_link ()
  1757. {
  1758. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1759. rm -f conftest.$ac_objext conftest$ac_exeext
  1760. if { { ac_try="$ac_link"
  1761. case "(($ac_try" in
  1762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1763. *) ac_try_echo=$ac_try;;
  1764. esac
  1765. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1766. $as_echo "$ac_try_echo"; } >&5
  1767. (eval "$ac_link") 2>conftest.err
  1768. ac_status=$?
  1769. if test -s conftest.err; then
  1770. grep -v '^ *+' conftest.err >conftest.er1
  1771. cat conftest.er1 >&5
  1772. mv -f conftest.er1 conftest.err
  1773. fi
  1774. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1775. test $ac_status = 0; } && {
  1776. test -z "$ac_cxx_werror_flag" ||
  1777. test ! -s conftest.err
  1778. } && test -s conftest$ac_exeext && {
  1779. test "$cross_compiling" = yes ||
  1780. $as_test_x conftest$ac_exeext
  1781. }; then :
  1782. ac_retval=0
  1783. else
  1784. $as_echo "$as_me: failed program was:" >&5
  1785. sed 's/^/| /' conftest.$ac_ext >&5
  1786. ac_retval=1
  1787. fi
  1788. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1789. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1790. # interfere with the next link command; also delete a directory that is
  1791. # left behind by Apple's compiler. We do this before executing the actions.
  1792. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1793. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1794. as_fn_set_status $ac_retval
  1795. } # ac_fn_cxx_try_link
  1796. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1797. # ---------------------------------------------------------
  1798. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1799. # the include files in INCLUDES and setting the cache variable VAR
  1800. # accordingly.
  1801. ac_fn_cxx_check_header_mongrel ()
  1802. {
  1803. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1804. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1806. $as_echo_n "checking for $2... " >&6; }
  1807. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1808. $as_echo_n "(cached) " >&6
  1809. fi
  1810. eval ac_res=\$$3
  1811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1812. $as_echo "$ac_res" >&6; }
  1813. else
  1814. # Is the header compilable?
  1815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1816. $as_echo_n "checking $2 usability... " >&6; }
  1817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1818. /* end confdefs.h. */
  1819. $4
  1820. #include <$2>
  1821. _ACEOF
  1822. if ac_fn_cxx_try_compile "$LINENO"; then :
  1823. ac_header_compiler=yes
  1824. else
  1825. ac_header_compiler=no
  1826. fi
  1827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1829. $as_echo "$ac_header_compiler" >&6; }
  1830. # Is the header present?
  1831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1832. $as_echo_n "checking $2 presence... " >&6; }
  1833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1834. /* end confdefs.h. */
  1835. #include <$2>
  1836. _ACEOF
  1837. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1838. ac_header_preproc=yes
  1839. else
  1840. ac_header_preproc=no
  1841. fi
  1842. rm -f conftest.err conftest.$ac_ext
  1843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1844. $as_echo "$ac_header_preproc" >&6; }
  1845. # So? What about this header?
  1846. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1847. yes:no: )
  1848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1849. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1851. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1852. ;;
  1853. no:yes:* )
  1854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1855. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1857. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1858. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1859. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1861. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1863. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1864. ;;
  1865. esac
  1866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1867. $as_echo_n "checking for $2... " >&6; }
  1868. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1869. $as_echo_n "(cached) " >&6
  1870. else
  1871. eval "$3=\$ac_header_compiler"
  1872. fi
  1873. eval ac_res=\$$3
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1875. $as_echo "$ac_res" >&6; }
  1876. fi
  1877. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1878. } # ac_fn_cxx_check_header_mongrel
  1879. # ac_fn_cxx_check_func LINENO FUNC VAR
  1880. # ------------------------------------
  1881. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1882. ac_fn_cxx_check_func ()
  1883. {
  1884. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1886. $as_echo_n "checking for $2... " >&6; }
  1887. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1888. $as_echo_n "(cached) " >&6
  1889. else
  1890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1891. /* end confdefs.h. */
  1892. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1893. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1894. #define $2 innocuous_$2
  1895. /* System header to define __stub macros and hopefully few prototypes,
  1896. which can conflict with char $2 (); below.
  1897. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1898. <limits.h> exists even on freestanding compilers. */
  1899. #ifdef __STDC__
  1900. # include <limits.h>
  1901. #else
  1902. # include <assert.h>
  1903. #endif
  1904. #undef $2
  1905. /* Override any GCC internal prototype to avoid an error.
  1906. Use char because int might match the return type of a GCC
  1907. builtin and then its argument prototype would still apply. */
  1908. #ifdef __cplusplus
  1909. extern "C"
  1910. #endif
  1911. char $2 ();
  1912. /* The GNU C library defines this for functions which it implements
  1913. to always fail with ENOSYS. Some functions are actually named
  1914. something starting with __ and the normal name is an alias. */
  1915. #if defined __stub_$2 || defined __stub___$2
  1916. choke me
  1917. #endif
  1918. int
  1919. main ()
  1920. {
  1921. return $2 ();
  1922. ;
  1923. return 0;
  1924. }
  1925. _ACEOF
  1926. if ac_fn_cxx_try_link "$LINENO"; then :
  1927. eval "$3=yes"
  1928. else
  1929. eval "$3=no"
  1930. fi
  1931. rm -f core conftest.err conftest.$ac_objext \
  1932. conftest$ac_exeext conftest.$ac_ext
  1933. fi
  1934. eval ac_res=\$$3
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1936. $as_echo "$ac_res" >&6; }
  1937. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1938. } # ac_fn_cxx_check_func
  1939. # ac_fn_c_find_intX_t LINENO BITS VAR
  1940. # -----------------------------------
  1941. # Finds a signed integer type with width BITS, setting cache variable VAR
  1942. # accordingly.
  1943. ac_fn_c_find_intX_t ()
  1944. {
  1945. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1947. $as_echo_n "checking for int$2_t... " >&6; }
  1948. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1949. $as_echo_n "(cached) " >&6
  1950. else
  1951. eval "$3=no"
  1952. # Order is important - never check a type that is potentially smaller
  1953. # than half of the expected target width.
  1954. for ac_type in int$2_t 'int' 'long int' \
  1955. 'long long int' 'short int' 'signed char'; do
  1956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1957. /* end confdefs.h. */
  1958. $ac_includes_default
  1959. enum { N = $2 / 2 - 1 };
  1960. int
  1961. main ()
  1962. {
  1963. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1964. test_array [0] = 0
  1965. ;
  1966. return 0;
  1967. }
  1968. _ACEOF
  1969. if ac_fn_cxx_try_compile "$LINENO"; then :
  1970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1971. /* end confdefs.h. */
  1972. $ac_includes_default
  1973. enum { N = $2 / 2 - 1 };
  1974. int
  1975. main ()
  1976. {
  1977. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1978. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1979. test_array [0] = 0
  1980. ;
  1981. return 0;
  1982. }
  1983. _ACEOF
  1984. if ac_fn_cxx_try_compile "$LINENO"; then :
  1985. else
  1986. case $ac_type in #(
  1987. int$2_t) :
  1988. eval "$3=yes" ;; #(
  1989. *) :
  1990. eval "$3=\$ac_type" ;;
  1991. esac
  1992. fi
  1993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1994. fi
  1995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1996. eval as_val=\$$3
  1997. if test "x$as_val" = x""no; then :
  1998. else
  1999. break
  2000. fi
  2001. done
  2002. fi
  2003. eval ac_res=\$$3
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2005. $as_echo "$ac_res" >&6; }
  2006. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2007. } # ac_fn_c_find_intX_t
  2008. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2009. # ------------------------------------
  2010. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2011. # accordingly.
  2012. ac_fn_c_find_uintX_t ()
  2013. {
  2014. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2016. $as_echo_n "checking for uint$2_t... " >&6; }
  2017. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2018. $as_echo_n "(cached) " >&6
  2019. else
  2020. eval "$3=no"
  2021. # Order is important - never check a type that is potentially smaller
  2022. # than half of the expected target width.
  2023. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2024. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2026. /* end confdefs.h. */
  2027. $ac_includes_default
  2028. int
  2029. main ()
  2030. {
  2031. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2032. test_array [0] = 0
  2033. ;
  2034. return 0;
  2035. }
  2036. _ACEOF
  2037. if ac_fn_cxx_try_compile "$LINENO"; then :
  2038. case $ac_type in #(
  2039. uint$2_t) :
  2040. eval "$3=yes" ;; #(
  2041. *) :
  2042. eval "$3=\$ac_type" ;;
  2043. esac
  2044. fi
  2045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2046. eval as_val=\$$3
  2047. if test "x$as_val" = x""no; then :
  2048. else
  2049. break
  2050. fi
  2051. done
  2052. fi
  2053. eval ac_res=\$$3
  2054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2055. $as_echo "$ac_res" >&6; }
  2056. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2057. } # ac_fn_c_find_uintX_t
  2058. cat >config.log <<_ACEOF
  2059. This file contains any messages produced by compilers while
  2060. running configure, to aid debugging if configure makes a mistake.
  2061. It was created by $as_me, which was
  2062. generated by GNU Autoconf 2.65. Invocation command line was
  2063. $ $0 $@
  2064. _ACEOF
  2065. exec 5>>config.log
  2066. {
  2067. cat <<_ASUNAME
  2068. ## --------- ##
  2069. ## Platform. ##
  2070. ## --------- ##
  2071. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2072. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2073. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2074. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2075. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2076. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2077. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2078. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2079. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2080. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2081. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2082. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2083. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2084. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2085. _ASUNAME
  2086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2087. for as_dir in $PATH
  2088. do
  2089. IFS=$as_save_IFS
  2090. test -z "$as_dir" && as_dir=.
  2091. $as_echo "PATH: $as_dir"
  2092. done
  2093. IFS=$as_save_IFS
  2094. } >&5
  2095. cat >&5 <<_ACEOF
  2096. ## ----------- ##
  2097. ## Core tests. ##
  2098. ## ----------- ##
  2099. _ACEOF
  2100. # Keep a trace of the command line.
  2101. # Strip out --no-create and --no-recursion so they do not pile up.
  2102. # Strip out --silent because we don't want to record it for future runs.
  2103. # Also quote any args containing shell meta-characters.
  2104. # Make two passes to allow for proper duplicate-argument suppression.
  2105. ac_configure_args=
  2106. ac_configure_args0=
  2107. ac_configure_args1=
  2108. ac_must_keep_next=false
  2109. for ac_pass in 1 2
  2110. do
  2111. for ac_arg
  2112. do
  2113. case $ac_arg in
  2114. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2115. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2116. | -silent | --silent | --silen | --sile | --sil)
  2117. continue ;;
  2118. *\'*)
  2119. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2120. esac
  2121. case $ac_pass in
  2122. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2123. 2)
  2124. as_fn_append ac_configure_args1 " '$ac_arg'"
  2125. if test $ac_must_keep_next = true; then
  2126. ac_must_keep_next=false # Got value, back to normal.
  2127. else
  2128. case $ac_arg in
  2129. *=* | --config-cache | -C | -disable-* | --disable-* \
  2130. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2131. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2132. | -with-* | --with-* | -without-* | --without-* | --x)
  2133. case "$ac_configure_args0 " in
  2134. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2135. esac
  2136. ;;
  2137. -* ) ac_must_keep_next=true ;;
  2138. esac
  2139. fi
  2140. as_fn_append ac_configure_args " '$ac_arg'"
  2141. ;;
  2142. esac
  2143. done
  2144. done
  2145. { ac_configure_args0=; unset ac_configure_args0;}
  2146. { ac_configure_args1=; unset ac_configure_args1;}
  2147. # When interrupted or exit'd, cleanup temporary files, and complete
  2148. # config.log. We remove comments because anyway the quotes in there
  2149. # would cause problems or look ugly.
  2150. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2151. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2152. trap 'exit_status=$?
  2153. # Save into config.log some information that might help in debugging.
  2154. {
  2155. echo
  2156. cat <<\_ASBOX
  2157. ## ---------------- ##
  2158. ## Cache variables. ##
  2159. ## ---------------- ##
  2160. _ASBOX
  2161. echo
  2162. # The following way of writing the cache mishandles newlines in values,
  2163. (
  2164. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2165. eval ac_val=\$$ac_var
  2166. case $ac_val in #(
  2167. *${as_nl}*)
  2168. case $ac_var in #(
  2169. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2170. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2171. esac
  2172. case $ac_var in #(
  2173. _ | IFS | as_nl) ;; #(
  2174. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2175. *) { eval $ac_var=; unset $ac_var;} ;;
  2176. esac ;;
  2177. esac
  2178. done
  2179. (set) 2>&1 |
  2180. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2181. *${as_nl}ac_space=\ *)
  2182. sed -n \
  2183. "s/'\''/'\''\\\\'\'''\''/g;
  2184. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2185. ;; #(
  2186. *)
  2187. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2188. ;;
  2189. esac |
  2190. sort
  2191. )
  2192. echo
  2193. cat <<\_ASBOX
  2194. ## ----------------- ##
  2195. ## Output variables. ##
  2196. ## ----------------- ##
  2197. _ASBOX
  2198. echo
  2199. for ac_var in $ac_subst_vars
  2200. do
  2201. eval ac_val=\$$ac_var
  2202. case $ac_val in
  2203. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2204. esac
  2205. $as_echo "$ac_var='\''$ac_val'\''"
  2206. done | sort
  2207. echo
  2208. if test -n "$ac_subst_files"; then
  2209. cat <<\_ASBOX
  2210. ## ------------------- ##
  2211. ## File substitutions. ##
  2212. ## ------------------- ##
  2213. _ASBOX
  2214. echo
  2215. for ac_var in $ac_subst_files
  2216. do
  2217. eval ac_val=\$$ac_var
  2218. case $ac_val in
  2219. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2220. esac
  2221. $as_echo "$ac_var='\''$ac_val'\''"
  2222. done | sort
  2223. echo
  2224. fi
  2225. if test -s confdefs.h; then
  2226. cat <<\_ASBOX
  2227. ## ----------- ##
  2228. ## confdefs.h. ##
  2229. ## ----------- ##
  2230. _ASBOX
  2231. echo
  2232. cat confdefs.h
  2233. echo
  2234. fi
  2235. test "$ac_signal" != 0 &&
  2236. $as_echo "$as_me: caught signal $ac_signal"
  2237. $as_echo "$as_me: exit $exit_status"
  2238. } >&5
  2239. rm -f core *.core core.conftest.* &&
  2240. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2241. exit $exit_status
  2242. ' 0
  2243. for ac_signal in 1 2 13 15; do
  2244. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2245. done
  2246. ac_signal=0
  2247. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2248. rm -f -r conftest* confdefs.h
  2249. $as_echo "/* confdefs.h */" > confdefs.h
  2250. # Predefined preprocessor variables.
  2251. cat >>confdefs.h <<_ACEOF
  2252. #define PACKAGE_NAME "$PACKAGE_NAME"
  2253. _ACEOF
  2254. cat >>confdefs.h <<_ACEOF
  2255. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2256. _ACEOF
  2257. cat >>confdefs.h <<_ACEOF
  2258. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2259. _ACEOF
  2260. cat >>confdefs.h <<_ACEOF
  2261. #define PACKAGE_STRING "$PACKAGE_STRING"
  2262. _ACEOF
  2263. cat >>confdefs.h <<_ACEOF
  2264. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2265. _ACEOF
  2266. cat >>confdefs.h <<_ACEOF
  2267. #define PACKAGE_URL "$PACKAGE_URL"
  2268. _ACEOF
  2269. # Let the site file select an alternate cache file if it wants to.
  2270. # Prefer an explicitly selected file to automatically selected ones.
  2271. ac_site_file1=NONE
  2272. ac_site_file2=NONE
  2273. if test -n "$CONFIG_SITE"; then
  2274. ac_site_file1=$CONFIG_SITE
  2275. elif test "x$prefix" != xNONE; then
  2276. ac_site_file1=$prefix/share/config.site
  2277. ac_site_file2=$prefix/etc/config.site
  2278. else
  2279. ac_site_file1=$ac_default_prefix/share/config.site
  2280. ac_site_file2=$ac_default_prefix/etc/config.site
  2281. fi
  2282. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2283. do
  2284. test "x$ac_site_file" = xNONE && continue
  2285. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2287. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2288. sed 's/^/| /' "$ac_site_file" >&5
  2289. . "$ac_site_file"
  2290. fi
  2291. done
  2292. if test -r "$cache_file"; then
  2293. # Some versions of bash will fail to source /dev/null (special files
  2294. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2295. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2296. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2297. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2298. case $cache_file in
  2299. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2300. *) . "./$cache_file";;
  2301. esac
  2302. fi
  2303. else
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2305. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2306. >$cache_file
  2307. fi
  2308. # Check that the precious variables saved in the cache have kept the same
  2309. # value.
  2310. ac_cache_corrupted=false
  2311. for ac_var in $ac_precious_vars; do
  2312. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2313. eval ac_new_set=\$ac_env_${ac_var}_set
  2314. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2315. eval ac_new_val=\$ac_env_${ac_var}_value
  2316. case $ac_old_set,$ac_new_set in
  2317. set,)
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2319. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2320. ac_cache_corrupted=: ;;
  2321. ,set)
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2323. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2324. ac_cache_corrupted=: ;;
  2325. ,);;
  2326. *)
  2327. if test "x$ac_old_val" != "x$ac_new_val"; then
  2328. # differences in whitespace do not lead to failure.
  2329. ac_old_val_w=`echo x $ac_old_val`
  2330. ac_new_val_w=`echo x $ac_new_val`
  2331. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2333. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2334. ac_cache_corrupted=:
  2335. else
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2337. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2338. eval $ac_var=\$ac_old_val
  2339. fi
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2341. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2343. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2344. fi;;
  2345. esac
  2346. # Pass precious variables to config.status.
  2347. if test "$ac_new_set" = set; then
  2348. case $ac_new_val in
  2349. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2350. *) ac_arg=$ac_var=$ac_new_val ;;
  2351. esac
  2352. case " $ac_configure_args " in
  2353. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2354. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2355. esac
  2356. fi
  2357. done
  2358. if $ac_cache_corrupted; then
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2360. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2362. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2363. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2364. fi
  2365. ## -------------------- ##
  2366. ## Main body of script. ##
  2367. ## -------------------- ##
  2368. ac_ext=c
  2369. ac_cpp='$CPP $CPPFLAGS'
  2370. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2371. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2372. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2373. am__api_version='1.11'
  2374. ac_aux_dir=
  2375. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2376. for ac_t in install-sh install.sh shtool; do
  2377. if test -f "$ac_dir/$ac_t"; then
  2378. ac_aux_dir=$ac_dir
  2379. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2380. break 2
  2381. fi
  2382. done
  2383. done
  2384. if test -z "$ac_aux_dir"; then
  2385. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2386. fi
  2387. # These three variables are undocumented and unsupported,
  2388. # and are intended to be withdrawn in a future Autoconf release.
  2389. # They can cause serious problems if a builder's source tree is in a directory
  2390. # whose full name contains unusual characters.
  2391. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2392. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2393. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2394. # Find a good install program. We prefer a C program (faster),
  2395. # so one script is as good as another. But avoid the broken or
  2396. # incompatible versions:
  2397. # SysV /etc/install, /usr/sbin/install
  2398. # SunOS /usr/etc/install
  2399. # IRIX /sbin/install
  2400. # AIX /bin/install
  2401. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2402. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2403. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2404. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2405. # OS/2's system install, which has a completely different semantic
  2406. # ./install, which can be erroneously created by make from ./install.sh.
  2407. # Reject install programs that cannot install multiple files.
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2409. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2410. if test -z "$INSTALL"; then
  2411. if test "${ac_cv_path_install+set}" = set; then :
  2412. $as_echo_n "(cached) " >&6
  2413. else
  2414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2415. for as_dir in $PATH
  2416. do
  2417. IFS=$as_save_IFS
  2418. test -z "$as_dir" && as_dir=.
  2419. # Account for people who put trailing slashes in PATH elements.
  2420. case $as_dir/ in #((
  2421. ./ | .// | /[cC]/* | \
  2422. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2423. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2424. /usr/ucb/* ) ;;
  2425. *)
  2426. # OSF1 and SCO ODT 3.0 have their own names for install.
  2427. # Don't use installbsd from OSF since it installs stuff as root
  2428. # by default.
  2429. for ac_prog in ginstall scoinst install; do
  2430. for ac_exec_ext in '' $ac_executable_extensions; do
  2431. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2432. if test $ac_prog = install &&
  2433. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2434. # AIX install. It has an incompatible calling convention.
  2435. :
  2436. elif test $ac_prog = install &&
  2437. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2438. # program-specific install script used by HP pwplus--don't use.
  2439. :
  2440. else
  2441. rm -rf conftest.one conftest.two conftest.dir
  2442. echo one > conftest.one
  2443. echo two > conftest.two
  2444. mkdir conftest.dir
  2445. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2446. test -s conftest.one && test -s conftest.two &&
  2447. test -s conftest.dir/conftest.one &&
  2448. test -s conftest.dir/conftest.two
  2449. then
  2450. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2451. break 3
  2452. fi
  2453. fi
  2454. fi
  2455. done
  2456. done
  2457. ;;
  2458. esac
  2459. done
  2460. IFS=$as_save_IFS
  2461. rm -rf conftest.one conftest.two conftest.dir
  2462. fi
  2463. if test "${ac_cv_path_install+set}" = set; then
  2464. INSTALL=$ac_cv_path_install
  2465. else
  2466. # As a last resort, use the slow shell script. Don't cache a
  2467. # value for INSTALL within a source directory, because that will
  2468. # break other packages using the cache if that directory is
  2469. # removed, or if the value is a relative name.
  2470. INSTALL=$ac_install_sh
  2471. fi
  2472. fi
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2474. $as_echo "$INSTALL" >&6; }
  2475. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2476. # It thinks the first close brace ends the variable substitution.
  2477. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2478. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2479. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2481. $as_echo_n "checking whether build environment is sane... " >&6; }
  2482. # Just in case
  2483. sleep 1
  2484. echo timestamp > conftest.file
  2485. # Reject unsafe characters in $srcdir or the absolute working directory
  2486. # name. Accept space and tab only in the latter.
  2487. am_lf='
  2488. '
  2489. case `pwd` in
  2490. *[\\\"\#\$\&\'\`$am_lf]*)
  2491. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2492. esac
  2493. case $srcdir in
  2494. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2495. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2496. esac
  2497. # Do `set' in a subshell so we don't clobber the current shell's
  2498. # arguments. Must try -L first in case configure is actually a
  2499. # symlink; some systems play weird games with the mod time of symlinks
  2500. # (eg FreeBSD returns the mod time of the symlink's containing
  2501. # directory).
  2502. if (
  2503. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2504. if test "$*" = "X"; then
  2505. # -L didn't work.
  2506. set X `ls -t "$srcdir/configure" conftest.file`
  2507. fi
  2508. rm -f conftest.file
  2509. if test "$*" != "X $srcdir/configure conftest.file" \
  2510. && test "$*" != "X conftest.file $srcdir/configure"; then
  2511. # If neither matched, then we have a broken ls. This can happen
  2512. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2513. # broken ls alias from the environment. This has actually
  2514. # happened. Such a system could not be considered "sane".
  2515. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2516. alias in your environment" "$LINENO" 5
  2517. fi
  2518. test "$2" = conftest.file
  2519. )
  2520. then
  2521. # Ok.
  2522. :
  2523. else
  2524. as_fn_error "newly created file is older than distributed files!
  2525. Check your system clock" "$LINENO" 5
  2526. fi
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2528. $as_echo "yes" >&6; }
  2529. test "$program_prefix" != NONE &&
  2530. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2531. # Use a double $ so make ignores it.
  2532. test "$program_suffix" != NONE &&
  2533. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2534. # Double any \ or $.
  2535. # By default was `s,x,x', remove it if useless.
  2536. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2537. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2538. # expand $ac_aux_dir to an absolute path
  2539. am_aux_dir=`cd $ac_aux_dir && pwd`
  2540. if test x"${MISSING+set}" != xset; then
  2541. case $am_aux_dir in
  2542. *\ * | *\ *)
  2543. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2544. *)
  2545. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2546. esac
  2547. fi
  2548. # Use eval to expand $SHELL
  2549. if eval "$MISSING --run true"; then
  2550. am_missing_run="$MISSING --run "
  2551. else
  2552. am_missing_run=
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2554. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2555. fi
  2556. if test x"${install_sh}" != xset; then
  2557. case $am_aux_dir in
  2558. *\ * | *\ *)
  2559. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2560. *)
  2561. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2562. esac
  2563. fi
  2564. # Installed binaries are usually stripped using `strip' when the user
  2565. # run `make install-strip'. However `strip' might not be the right
  2566. # tool to use in cross-compilation environments, therefore Automake
  2567. # will honor the `STRIP' environment variable to overrule this program.
  2568. if test "$cross_compiling" != no; then
  2569. if test -n "$ac_tool_prefix"; then
  2570. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2571. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2573. $as_echo_n "checking for $ac_word... " >&6; }
  2574. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2575. $as_echo_n "(cached) " >&6
  2576. else
  2577. if test -n "$STRIP"; then
  2578. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2579. else
  2580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2581. for as_dir in $PATH
  2582. do
  2583. IFS=$as_save_IFS
  2584. test -z "$as_dir" && as_dir=.
  2585. for ac_exec_ext in '' $ac_executable_extensions; do
  2586. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2587. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2588. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2589. break 2
  2590. fi
  2591. done
  2592. done
  2593. IFS=$as_save_IFS
  2594. fi
  2595. fi
  2596. STRIP=$ac_cv_prog_STRIP
  2597. if test -n "$STRIP"; then
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2599. $as_echo "$STRIP" >&6; }
  2600. else
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2602. $as_echo "no" >&6; }
  2603. fi
  2604. fi
  2605. if test -z "$ac_cv_prog_STRIP"; then
  2606. ac_ct_STRIP=$STRIP
  2607. # Extract the first word of "strip", so it can be a program name with args.
  2608. set dummy strip; ac_word=$2
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2610. $as_echo_n "checking for $ac_word... " >&6; }
  2611. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2612. $as_echo_n "(cached) " >&6
  2613. else
  2614. if test -n "$ac_ct_STRIP"; then
  2615. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2616. else
  2617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2618. for as_dir in $PATH
  2619. do
  2620. IFS=$as_save_IFS
  2621. test -z "$as_dir" && as_dir=.
  2622. for ac_exec_ext in '' $ac_executable_extensions; do
  2623. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2624. ac_cv_prog_ac_ct_STRIP="strip"
  2625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2626. break 2
  2627. fi
  2628. done
  2629. done
  2630. IFS=$as_save_IFS
  2631. fi
  2632. fi
  2633. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2634. if test -n "$ac_ct_STRIP"; then
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2636. $as_echo "$ac_ct_STRIP" >&6; }
  2637. else
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2639. $as_echo "no" >&6; }
  2640. fi
  2641. if test "x$ac_ct_STRIP" = x; then
  2642. STRIP=":"
  2643. else
  2644. case $cross_compiling:$ac_tool_warned in
  2645. yes:)
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2647. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2648. ac_tool_warned=yes ;;
  2649. esac
  2650. STRIP=$ac_ct_STRIP
  2651. fi
  2652. else
  2653. STRIP="$ac_cv_prog_STRIP"
  2654. fi
  2655. fi
  2656. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2658. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2659. if test -z "$MKDIR_P"; then
  2660. if test "${ac_cv_path_mkdir+set}" = set; then :
  2661. $as_echo_n "(cached) " >&6
  2662. else
  2663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2664. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2665. do
  2666. IFS=$as_save_IFS
  2667. test -z "$as_dir" && as_dir=.
  2668. for ac_prog in mkdir gmkdir; do
  2669. for ac_exec_ext in '' $ac_executable_extensions; do
  2670. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2671. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2672. 'mkdir (GNU coreutils) '* | \
  2673. 'mkdir (coreutils) '* | \
  2674. 'mkdir (fileutils) '4.1*)
  2675. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2676. break 3;;
  2677. esac
  2678. done
  2679. done
  2680. done
  2681. IFS=$as_save_IFS
  2682. fi
  2683. test -d ./--version && rmdir ./--version
  2684. if test "${ac_cv_path_mkdir+set}" = set; then
  2685. MKDIR_P="$ac_cv_path_mkdir -p"
  2686. else
  2687. # As a last resort, use the slow shell script. Don't cache a
  2688. # value for MKDIR_P within a source directory, because that will
  2689. # break other packages using the cache if that directory is
  2690. # removed, or if the value is a relative name.
  2691. MKDIR_P="$ac_install_sh -d"
  2692. fi
  2693. fi
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2695. $as_echo "$MKDIR_P" >&6; }
  2696. mkdir_p="$MKDIR_P"
  2697. case $mkdir_p in
  2698. [\\/$]* | ?:[\\/]*) ;;
  2699. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2700. esac
  2701. for ac_prog in gawk mawk nawk awk
  2702. do
  2703. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2704. set dummy $ac_prog; ac_word=$2
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2706. $as_echo_n "checking for $ac_word... " >&6; }
  2707. if test "${ac_cv_prog_AWK+set}" = set; then :
  2708. $as_echo_n "(cached) " >&6
  2709. else
  2710. if test -n "$AWK"; then
  2711. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2712. else
  2713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2714. for as_dir in $PATH
  2715. do
  2716. IFS=$as_save_IFS
  2717. test -z "$as_dir" && as_dir=.
  2718. for ac_exec_ext in '' $ac_executable_extensions; do
  2719. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2720. ac_cv_prog_AWK="$ac_prog"
  2721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2722. break 2
  2723. fi
  2724. done
  2725. done
  2726. IFS=$as_save_IFS
  2727. fi
  2728. fi
  2729. AWK=$ac_cv_prog_AWK
  2730. if test -n "$AWK"; then
  2731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2732. $as_echo "$AWK" >&6; }
  2733. else
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2735. $as_echo "no" >&6; }
  2736. fi
  2737. test -n "$AWK" && break
  2738. done
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2740. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2741. set x ${MAKE-make}
  2742. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2743. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2744. $as_echo_n "(cached) " >&6
  2745. else
  2746. cat >conftest.make <<\_ACEOF
  2747. SHELL = /bin/sh
  2748. all:
  2749. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2750. _ACEOF
  2751. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2752. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2753. *@@@%%%=?*=@@@%%%*)
  2754. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2755. *)
  2756. eval ac_cv_prog_make_${ac_make}_set=no;;
  2757. esac
  2758. rm -f conftest.make
  2759. fi
  2760. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2762. $as_echo "yes" >&6; }
  2763. SET_MAKE=
  2764. else
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2766. $as_echo "no" >&6; }
  2767. SET_MAKE="MAKE=${MAKE-make}"
  2768. fi
  2769. rm -rf .tst 2>/dev/null
  2770. mkdir .tst 2>/dev/null
  2771. if test -d .tst; then
  2772. am__leading_dot=.
  2773. else
  2774. am__leading_dot=_
  2775. fi
  2776. rmdir .tst 2>/dev/null
  2777. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2778. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2779. # is not polluted with repeated "-I."
  2780. am__isrc=' -I$(srcdir)'
  2781. # test to see if srcdir already configured
  2782. if test -f $srcdir/config.status; then
  2783. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2784. fi
  2785. fi
  2786. # test whether we have cygpath
  2787. if test -z "$CYGPATH_W"; then
  2788. if (cygpath --version) >/dev/null 2>/dev/null; then
  2789. CYGPATH_W='cygpath -w'
  2790. else
  2791. CYGPATH_W=echo
  2792. fi
  2793. fi
  2794. # Define the identity of the package.
  2795. PACKAGE=libmodplug
  2796. VERSION=0.8.7
  2797. cat >>confdefs.h <<_ACEOF
  2798. #define PACKAGE "$PACKAGE"
  2799. _ACEOF
  2800. cat >>confdefs.h <<_ACEOF
  2801. #define VERSION "$VERSION"
  2802. _ACEOF
  2803. # Some tools Automake needs.
  2804. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2805. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2806. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2807. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2808. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2809. # We need awk for the "check" target. The system "awk" is bad on
  2810. # some platforms.
  2811. # Always define AMTAR for backward compatibility.
  2812. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2813. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2814. ac_config_headers="$ac_config_headers src/config.h"
  2815. # Check whether --enable-static was given.
  2816. if test "${enable_static+set}" = set; then :
  2817. enableval=$enable_static; p=${PACKAGE-default}
  2818. case $enableval in
  2819. yes) enable_static=yes ;;
  2820. no) enable_static=no ;;
  2821. *)
  2822. enable_static=no
  2823. # Look at the argument we got. We use all the common list separators.
  2824. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2825. for pkg in $enableval; do
  2826. IFS="$lt_save_ifs"
  2827. if test "X$pkg" = "X$p"; then
  2828. enable_static=yes
  2829. fi
  2830. done
  2831. IFS="$lt_save_ifs"
  2832. ;;
  2833. esac
  2834. else
  2835. enable_static=no
  2836. fi
  2837. # Check whether --enable-static was given.
  2838. if test "${enable_static+set}" = set; then :
  2839. enableval=$enable_static; p=${PACKAGE-default}
  2840. case $enableval in
  2841. yes) enable_static=yes ;;
  2842. no) enable_static=no ;;
  2843. *)
  2844. enable_static=no
  2845. # Look at the argument we got. We use all the common list separators.
  2846. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2847. for pkg in $enableval; do
  2848. IFS="$lt_save_ifs"
  2849. if test "X$pkg" = "X$p"; then
  2850. enable_static=yes
  2851. fi
  2852. done
  2853. IFS="$lt_save_ifs"
  2854. ;;
  2855. esac
  2856. else
  2857. enable_static=no
  2858. fi
  2859. ac_ext=c
  2860. ac_cpp='$CPP $CPPFLAGS'
  2861. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2862. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2863. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2864. if test -n "$ac_tool_prefix"; then
  2865. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2866. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2868. $as_echo_n "checking for $ac_word... " >&6; }
  2869. if test "${ac_cv_prog_CC+set}" = set; then :
  2870. $as_echo_n "(cached) " >&6
  2871. else
  2872. if test -n "$CC"; then
  2873. ac_cv_prog_CC="$CC" # Let the user override the test.
  2874. else
  2875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2876. for as_dir in $PATH
  2877. do
  2878. IFS=$as_save_IFS
  2879. test -z "$as_dir" && as_dir=.
  2880. for ac_exec_ext in '' $ac_executable_extensions; do
  2881. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2882. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2884. break 2
  2885. fi
  2886. done
  2887. done
  2888. IFS=$as_save_IFS
  2889. fi
  2890. fi
  2891. CC=$ac_cv_prog_CC
  2892. if test -n "$CC"; then
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2894. $as_echo "$CC" >&6; }
  2895. else
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2897. $as_echo "no" >&6; }
  2898. fi
  2899. fi
  2900. if test -z "$ac_cv_prog_CC"; then
  2901. ac_ct_CC=$CC
  2902. # Extract the first word of "gcc", so it can be a program name with args.
  2903. set dummy gcc; ac_word=$2
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2905. $as_echo_n "checking for $ac_word... " >&6; }
  2906. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2907. $as_echo_n "(cached) " >&6
  2908. else
  2909. if test -n "$ac_ct_CC"; then
  2910. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2911. else
  2912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2913. for as_dir in $PATH
  2914. do
  2915. IFS=$as_save_IFS
  2916. test -z "$as_dir" && as_dir=.
  2917. for ac_exec_ext in '' $ac_executable_extensions; do
  2918. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2919. ac_cv_prog_ac_ct_CC="gcc"
  2920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2921. break 2
  2922. fi
  2923. done
  2924. done
  2925. IFS=$as_save_IFS
  2926. fi
  2927. fi
  2928. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2929. if test -n "$ac_ct_CC"; then
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2931. $as_echo "$ac_ct_CC" >&6; }
  2932. else
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2934. $as_echo "no" >&6; }
  2935. fi
  2936. if test "x$ac_ct_CC" = x; then
  2937. CC=""
  2938. else
  2939. case $cross_compiling:$ac_tool_warned in
  2940. yes:)
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2942. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2943. ac_tool_warned=yes ;;
  2944. esac
  2945. CC=$ac_ct_CC
  2946. fi
  2947. else
  2948. CC="$ac_cv_prog_CC"
  2949. fi
  2950. if test -z "$CC"; then
  2951. if test -n "$ac_tool_prefix"; then
  2952. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2953. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2955. $as_echo_n "checking for $ac_word... " >&6; }
  2956. if test "${ac_cv_prog_CC+set}" = set; then :
  2957. $as_echo_n "(cached) " >&6
  2958. else
  2959. if test -n "$CC"; then
  2960. ac_cv_prog_CC="$CC" # Let the user override the test.
  2961. else
  2962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2963. for as_dir in $PATH
  2964. do
  2965. IFS=$as_save_IFS
  2966. test -z "$as_dir" && as_dir=.
  2967. for ac_exec_ext in '' $ac_executable_extensions; do
  2968. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2969. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2971. break 2
  2972. fi
  2973. done
  2974. done
  2975. IFS=$as_save_IFS
  2976. fi
  2977. fi
  2978. CC=$ac_cv_prog_CC
  2979. if test -n "$CC"; then
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2981. $as_echo "$CC" >&6; }
  2982. else
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2984. $as_echo "no" >&6; }
  2985. fi
  2986. fi
  2987. fi
  2988. if test -z "$CC"; then
  2989. # Extract the first word of "cc", so it can be a program name with args.
  2990. set dummy cc; ac_word=$2
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2992. $as_echo_n "checking for $ac_word... " >&6; }
  2993. if test "${ac_cv_prog_CC+set}" = set; then :
  2994. $as_echo_n "(cached) " >&6
  2995. else
  2996. if test -n "$CC"; then
  2997. ac_cv_prog_CC="$CC" # Let the user override the test.
  2998. else
  2999. ac_prog_rejected=no
  3000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3001. for as_dir in $PATH
  3002. do
  3003. IFS=$as_save_IFS
  3004. test -z "$as_dir" && as_dir=.
  3005. for ac_exec_ext in '' $ac_executable_extensions; do
  3006. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3007. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3008. ac_prog_rejected=yes
  3009. continue
  3010. fi
  3011. ac_cv_prog_CC="cc"
  3012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3013. break 2
  3014. fi
  3015. done
  3016. done
  3017. IFS=$as_save_IFS
  3018. if test $ac_prog_rejected = yes; then
  3019. # We found a bogon in the path, so make sure we never use it.
  3020. set dummy $ac_cv_prog_CC
  3021. shift
  3022. if test $# != 0; then
  3023. # We chose a different compiler from the bogus one.
  3024. # However, it has the same basename, so the bogon will be chosen
  3025. # first if we set CC to just the basename; use the full file name.
  3026. shift
  3027. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3028. fi
  3029. fi
  3030. fi
  3031. fi
  3032. CC=$ac_cv_prog_CC
  3033. if test -n "$CC"; then
  3034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3035. $as_echo "$CC" >&6; }
  3036. else
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3038. $as_echo "no" >&6; }
  3039. fi
  3040. fi
  3041. if test -z "$CC"; then
  3042. if test -n "$ac_tool_prefix"; then
  3043. for ac_prog in cl.exe
  3044. do
  3045. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3046. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3048. $as_echo_n "checking for $ac_word... " >&6; }
  3049. if test "${ac_cv_prog_CC+set}" = set; then :
  3050. $as_echo_n "(cached) " >&6
  3051. else
  3052. if test -n "$CC"; then
  3053. ac_cv_prog_CC="$CC" # Let the user override the test.
  3054. else
  3055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3056. for as_dir in $PATH
  3057. do
  3058. IFS=$as_save_IFS
  3059. test -z "$as_dir" && as_dir=.
  3060. for ac_exec_ext in '' $ac_executable_extensions; do
  3061. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3062. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3064. break 2
  3065. fi
  3066. done
  3067. done
  3068. IFS=$as_save_IFS
  3069. fi
  3070. fi
  3071. CC=$ac_cv_prog_CC
  3072. if test -n "$CC"; then
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3074. $as_echo "$CC" >&6; }
  3075. else
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3077. $as_echo "no" >&6; }
  3078. fi
  3079. test -n "$CC" && break
  3080. done
  3081. fi
  3082. if test -z "$CC"; then
  3083. ac_ct_CC=$CC
  3084. for ac_prog in cl.exe
  3085. do
  3086. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3087. set dummy $ac_prog; ac_word=$2
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3089. $as_echo_n "checking for $ac_word... " >&6; }
  3090. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3091. $as_echo_n "(cached) " >&6
  3092. else
  3093. if test -n "$ac_ct_CC"; then
  3094. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3095. else
  3096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3097. for as_dir in $PATH
  3098. do
  3099. IFS=$as_save_IFS
  3100. test -z "$as_dir" && as_dir=.
  3101. for ac_exec_ext in '' $ac_executable_extensions; do
  3102. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3103. ac_cv_prog_ac_ct_CC="$ac_prog"
  3104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3105. break 2
  3106. fi
  3107. done
  3108. done
  3109. IFS=$as_save_IFS
  3110. fi
  3111. fi
  3112. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3113. if test -n "$ac_ct_CC"; then
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3115. $as_echo "$ac_ct_CC" >&6; }
  3116. else
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3118. $as_echo "no" >&6; }
  3119. fi
  3120. test -n "$ac_ct_CC" && break
  3121. done
  3122. if test "x$ac_ct_CC" = x; then
  3123. CC=""
  3124. else
  3125. case $cross_compiling:$ac_tool_warned in
  3126. yes:)
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3129. ac_tool_warned=yes ;;
  3130. esac
  3131. CC=$ac_ct_CC
  3132. fi
  3133. fi
  3134. fi
  3135. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3136. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3137. as_fn_error "no acceptable C compiler found in \$PATH
  3138. See \`config.log' for more details." "$LINENO" 5; }
  3139. # Provide some information about the compiler.
  3140. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3141. set X $ac_compile
  3142. ac_compiler=$2
  3143. for ac_option in --version -v -V -qversion; do
  3144. { { ac_try="$ac_compiler $ac_option >&5"
  3145. case "(($ac_try" in
  3146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3147. *) ac_try_echo=$ac_try;;
  3148. esac
  3149. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3150. $as_echo "$ac_try_echo"; } >&5
  3151. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3152. ac_status=$?
  3153. if test -s conftest.err; then
  3154. sed '10a\
  3155. ... rest of stderr output deleted ...
  3156. 10q' conftest.err >conftest.er1
  3157. cat conftest.er1 >&5
  3158. fi
  3159. rm -f conftest.er1 conftest.err
  3160. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3161. test $ac_status = 0; }
  3162. done
  3163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3164. /* end confdefs.h. */
  3165. int
  3166. main ()
  3167. {
  3168. ;
  3169. return 0;
  3170. }
  3171. _ACEOF
  3172. ac_clean_files_save=$ac_clean_files
  3173. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3174. # Try to create an executable without -o first, disregard a.out.
  3175. # It will help us diagnose broken compilers, and finding out an intuition
  3176. # of exeext.
  3177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3178. $as_echo_n "checking whether the C compiler works... " >&6; }
  3179. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3180. # The possible output files:
  3181. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3182. ac_rmfiles=
  3183. for ac_file in $ac_files
  3184. do
  3185. case $ac_file in
  3186. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3187. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3188. esac
  3189. done
  3190. rm -f $ac_rmfiles
  3191. if { { ac_try="$ac_link_default"
  3192. case "(($ac_try" in
  3193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3194. *) ac_try_echo=$ac_try;;
  3195. esac
  3196. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3197. $as_echo "$ac_try_echo"; } >&5
  3198. (eval "$ac_link_default") 2>&5
  3199. ac_status=$?
  3200. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3201. test $ac_status = 0; }; then :
  3202. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3203. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3204. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3205. # so that the user can short-circuit this test for compilers unknown to
  3206. # Autoconf.
  3207. for ac_file in $ac_files ''
  3208. do
  3209. test -f "$ac_file" || continue
  3210. case $ac_file in
  3211. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3212. ;;
  3213. [ab].out )
  3214. # We found the default executable, but exeext='' is most
  3215. # certainly right.
  3216. break;;
  3217. *.* )
  3218. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3219. then :; else
  3220. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3221. fi
  3222. # We set ac_cv_exeext here because the later test for it is not
  3223. # safe: cross compilers may not add the suffix if given an `-o'
  3224. # argument, so we may need to know it at that point already.
  3225. # Even if this section looks crufty: it has the advantage of
  3226. # actually working.
  3227. break;;
  3228. * )
  3229. break;;
  3230. esac
  3231. done
  3232. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3233. else
  3234. ac_file=''
  3235. fi
  3236. if test -z "$ac_file"; then :
  3237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3238. $as_echo "no" >&6; }
  3239. $as_echo "$as_me: failed program was:" >&5
  3240. sed 's/^/| /' conftest.$ac_ext >&5
  3241. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3242. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3243. { as_fn_set_status 77
  3244. as_fn_error "C compiler cannot create executables
  3245. See \`config.log' for more details." "$LINENO" 5; }; }
  3246. else
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3248. $as_echo "yes" >&6; }
  3249. fi
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3251. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3253. $as_echo "$ac_file" >&6; }
  3254. ac_exeext=$ac_cv_exeext
  3255. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3256. ac_clean_files=$ac_clean_files_save
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3258. $as_echo_n "checking for suffix of executables... " >&6; }
  3259. if { { ac_try="$ac_link"
  3260. case "(($ac_try" in
  3261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3262. *) ac_try_echo=$ac_try;;
  3263. esac
  3264. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3265. $as_echo "$ac_try_echo"; } >&5
  3266. (eval "$ac_link") 2>&5
  3267. ac_status=$?
  3268. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3269. test $ac_status = 0; }; then :
  3270. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3271. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3272. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3273. # `rm'.
  3274. for ac_file in conftest.exe conftest conftest.*; do
  3275. test -f "$ac_file" || continue
  3276. case $ac_file in
  3277. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3278. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3279. break;;
  3280. * ) break;;
  3281. esac
  3282. done
  3283. else
  3284. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3285. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3286. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3287. See \`config.log' for more details." "$LINENO" 5; }
  3288. fi
  3289. rm -f conftest conftest$ac_cv_exeext
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3291. $as_echo "$ac_cv_exeext" >&6; }
  3292. rm -f conftest.$ac_ext
  3293. EXEEXT=$ac_cv_exeext
  3294. ac_exeext=$EXEEXT
  3295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3296. /* end confdefs.h. */
  3297. #include <stdio.h>
  3298. int
  3299. main ()
  3300. {
  3301. FILE *f = fopen ("conftest.out", "w");
  3302. return ferror (f) || fclose (f) != 0;
  3303. ;
  3304. return 0;
  3305. }
  3306. _ACEOF
  3307. ac_clean_files="$ac_clean_files conftest.out"
  3308. # Check that the compiler produces executables we can run. If not, either
  3309. # the compiler is broken, or we cross compile.
  3310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3311. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3312. if test "$cross_compiling" != yes; then
  3313. { { ac_try="$ac_link"
  3314. case "(($ac_try" in
  3315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3316. *) ac_try_echo=$ac_try;;
  3317. esac
  3318. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3319. $as_echo "$ac_try_echo"; } >&5
  3320. (eval "$ac_link") 2>&5
  3321. ac_status=$?
  3322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3323. test $ac_status = 0; }
  3324. if { ac_try='./conftest$ac_cv_exeext'
  3325. { { case "(($ac_try" in
  3326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3327. *) ac_try_echo=$ac_try;;
  3328. esac
  3329. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3330. $as_echo "$ac_try_echo"; } >&5
  3331. (eval "$ac_try") 2>&5
  3332. ac_status=$?
  3333. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3334. test $ac_status = 0; }; }; then
  3335. cross_compiling=no
  3336. else
  3337. if test "$cross_compiling" = maybe; then
  3338. cross_compiling=yes
  3339. else
  3340. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3341. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3342. as_fn_error "cannot run C compiled programs.
  3343. If you meant to cross compile, use \`--host'.
  3344. See \`config.log' for more details." "$LINENO" 5; }
  3345. fi
  3346. fi
  3347. fi
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3349. $as_echo "$cross_compiling" >&6; }
  3350. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3351. ac_clean_files=$ac_clean_files_save
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3353. $as_echo_n "checking for suffix of object files... " >&6; }
  3354. if test "${ac_cv_objext+set}" = set; then :
  3355. $as_echo_n "(cached) " >&6
  3356. else
  3357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3358. /* end confdefs.h. */
  3359. int
  3360. main ()
  3361. {
  3362. ;
  3363. return 0;
  3364. }
  3365. _ACEOF
  3366. rm -f conftest.o conftest.obj
  3367. if { { ac_try="$ac_compile"
  3368. case "(($ac_try" in
  3369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3370. *) ac_try_echo=$ac_try;;
  3371. esac
  3372. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3373. $as_echo "$ac_try_echo"; } >&5
  3374. (eval "$ac_compile") 2>&5
  3375. ac_status=$?
  3376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3377. test $ac_status = 0; }; then :
  3378. for ac_file in conftest.o conftest.obj conftest.*; do
  3379. test -f "$ac_file" || continue;
  3380. case $ac_file in
  3381. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3382. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3383. break;;
  3384. esac
  3385. done
  3386. else
  3387. $as_echo "$as_me: failed program was:" >&5
  3388. sed 's/^/| /' conftest.$ac_ext >&5
  3389. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3390. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3391. as_fn_error "cannot compute suffix of object files: cannot compile
  3392. See \`config.log' for more details." "$LINENO" 5; }
  3393. fi
  3394. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3395. fi
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3397. $as_echo "$ac_cv_objext" >&6; }
  3398. OBJEXT=$ac_cv_objext
  3399. ac_objext=$OBJEXT
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3401. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3402. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3403. $as_echo_n "(cached) " >&6
  3404. else
  3405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3406. /* end confdefs.h. */
  3407. int
  3408. main ()
  3409. {
  3410. #ifndef __GNUC__
  3411. choke me
  3412. #endif
  3413. ;
  3414. return 0;
  3415. }
  3416. _ACEOF
  3417. if ac_fn_c_try_compile "$LINENO"; then :
  3418. ac_compiler_gnu=yes
  3419. else
  3420. ac_compiler_gnu=no
  3421. fi
  3422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3423. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3424. fi
  3425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3426. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3427. if test $ac_compiler_gnu = yes; then
  3428. GCC=yes
  3429. else
  3430. GCC=
  3431. fi
  3432. ac_test_CFLAGS=${CFLAGS+set}
  3433. ac_save_CFLAGS=$CFLAGS
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3435. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3436. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3437. $as_echo_n "(cached) " >&6
  3438. else
  3439. ac_save_c_werror_flag=$ac_c_werror_flag
  3440. ac_c_werror_flag=yes
  3441. ac_cv_prog_cc_g=no
  3442. CFLAGS="-g"
  3443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3444. /* end confdefs.h. */
  3445. int
  3446. main ()
  3447. {
  3448. ;
  3449. return 0;
  3450. }
  3451. _ACEOF
  3452. if ac_fn_c_try_compile "$LINENO"; then :
  3453. ac_cv_prog_cc_g=yes
  3454. else
  3455. CFLAGS=""
  3456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3457. /* end confdefs.h. */
  3458. int
  3459. main ()
  3460. {
  3461. ;
  3462. return 0;
  3463. }
  3464. _ACEOF
  3465. if ac_fn_c_try_compile "$LINENO"; then :
  3466. else
  3467. ac_c_werror_flag=$ac_save_c_werror_flag
  3468. CFLAGS="-g"
  3469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3470. /* end confdefs.h. */
  3471. int
  3472. main ()
  3473. {
  3474. ;
  3475. return 0;
  3476. }
  3477. _ACEOF
  3478. if ac_fn_c_try_compile "$LINENO"; then :
  3479. ac_cv_prog_cc_g=yes
  3480. fi
  3481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3482. fi
  3483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3484. fi
  3485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3486. ac_c_werror_flag=$ac_save_c_werror_flag
  3487. fi
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3489. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3490. if test "$ac_test_CFLAGS" = set; then
  3491. CFLAGS=$ac_save_CFLAGS
  3492. elif test $ac_cv_prog_cc_g = yes; then
  3493. if test "$GCC" = yes; then
  3494. CFLAGS="-g -O2"
  3495. else
  3496. CFLAGS="-g"
  3497. fi
  3498. else
  3499. if test "$GCC" = yes; then
  3500. CFLAGS="-O2"
  3501. else
  3502. CFLAGS=
  3503. fi
  3504. fi
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3506. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3507. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3508. $as_echo_n "(cached) " >&6
  3509. else
  3510. ac_cv_prog_cc_c89=no
  3511. ac_save_CC=$CC
  3512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3513. /* end confdefs.h. */
  3514. #include <stdarg.h>
  3515. #include <stdio.h>
  3516. #include <sys/types.h>
  3517. #include <sys/stat.h>
  3518. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3519. struct buf { int x; };
  3520. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3521. static char *e (p, i)
  3522. char **p;
  3523. int i;
  3524. {
  3525. return p[i];
  3526. }
  3527. static char *f (char * (*g) (char **, int), char **p, ...)
  3528. {
  3529. char *s;
  3530. va_list v;
  3531. va_start (v,p);
  3532. s = g (p, va_arg (v,int));
  3533. va_end (v);
  3534. return s;
  3535. }
  3536. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3537. function prototypes and stuff, but not '\xHH' hex character constants.
  3538. These don't provoke an error unfortunately, instead are silently treated
  3539. as 'x'. The following induces an error, until -std is added to get
  3540. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3541. array size at least. It's necessary to write '\x00'==0 to get something
  3542. that's true only with -std. */
  3543. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3544. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3545. inside strings and character constants. */
  3546. #define FOO(x) 'x'
  3547. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3548. int test (int i, double x);
  3549. struct s1 {int (*f) (int a);};
  3550. struct s2 {int (*f) (double a);};
  3551. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3552. int argc;
  3553. char **argv;
  3554. int
  3555. main ()
  3556. {
  3557. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3558. ;
  3559. return 0;
  3560. }
  3561. _ACEOF
  3562. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3563. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3564. do
  3565. CC="$ac_save_CC $ac_arg"
  3566. if ac_fn_c_try_compile "$LINENO"; then :
  3567. ac_cv_prog_cc_c89=$ac_arg
  3568. fi
  3569. rm -f core conftest.err conftest.$ac_objext
  3570. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3571. done
  3572. rm -f conftest.$ac_ext
  3573. CC=$ac_save_CC
  3574. fi
  3575. # AC_CACHE_VAL
  3576. case "x$ac_cv_prog_cc_c89" in
  3577. x)
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3579. $as_echo "none needed" >&6; } ;;
  3580. xno)
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3582. $as_echo "unsupported" >&6; } ;;
  3583. *)
  3584. CC="$CC $ac_cv_prog_cc_c89"
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3586. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3587. esac
  3588. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3589. fi
  3590. ac_ext=c
  3591. ac_cpp='$CPP $CPPFLAGS'
  3592. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3593. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3594. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3595. DEPDIR="${am__leading_dot}deps"
  3596. ac_config_commands="$ac_config_commands depfiles"
  3597. am_make=${MAKE-make}
  3598. cat > confinc << 'END'
  3599. am__doit:
  3600. @echo this is the am__doit target
  3601. .PHONY: am__doit
  3602. END
  3603. # If we don't find an include directive, just comment out the code.
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3605. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3606. am__include="#"
  3607. am__quote=
  3608. _am_result=none
  3609. # First try GNU make style include.
  3610. echo "include confinc" > confmf
  3611. # Ignore all kinds of additional output from `make'.
  3612. case `$am_make -s -f confmf 2> /dev/null` in #(
  3613. *the\ am__doit\ target*)
  3614. am__include=include
  3615. am__quote=
  3616. _am_result=GNU
  3617. ;;
  3618. esac
  3619. # Now try BSD make style include.
  3620. if test "$am__include" = "#"; then
  3621. echo '.include "confinc"' > confmf
  3622. case `$am_make -s -f confmf 2> /dev/null` in #(
  3623. *the\ am__doit\ target*)
  3624. am__include=.include
  3625. am__quote="\""
  3626. _am_result=BSD
  3627. ;;
  3628. esac
  3629. fi
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3631. $as_echo "$_am_result" >&6; }
  3632. rm -f confinc confmf
  3633. # Check whether --enable-dependency-tracking was given.
  3634. if test "${enable_dependency_tracking+set}" = set; then :
  3635. enableval=$enable_dependency_tracking;
  3636. fi
  3637. if test "x$enable_dependency_tracking" != xno; then
  3638. am_depcomp="$ac_aux_dir/depcomp"
  3639. AMDEPBACKSLASH='\'
  3640. fi
  3641. if test "x$enable_dependency_tracking" != xno; then
  3642. AMDEP_TRUE=
  3643. AMDEP_FALSE='#'
  3644. else
  3645. AMDEP_TRUE='#'
  3646. AMDEP_FALSE=
  3647. fi
  3648. depcc="$CC" am_compiler_list=
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3650. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3651. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3652. $as_echo_n "(cached) " >&6
  3653. else
  3654. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3655. # We make a subdir and do the tests there. Otherwise we can end up
  3656. # making bogus files that we don't know about and never remove. For
  3657. # instance it was reported that on HP-UX the gcc test will end up
  3658. # making a dummy file named `D' -- because `-MD' means `put the output
  3659. # in D'.
  3660. mkdir conftest.dir
  3661. # Copy depcomp to subdir because otherwise we won't find it if we're
  3662. # using a relative directory.
  3663. cp "$am_depcomp" conftest.dir
  3664. cd conftest.dir
  3665. # We will build objects and dependencies in a subdirectory because
  3666. # it helps to detect inapplicable dependency modes. For instance
  3667. # both Tru64's cc and ICC support -MD to output dependencies as a
  3668. # side effect of compilation, but ICC will put the dependencies in
  3669. # the current directory while Tru64 will put them in the object
  3670. # directory.
  3671. mkdir sub
  3672. am_cv_CC_dependencies_compiler_type=none
  3673. if test "$am_compiler_list" = ""; then
  3674. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3675. fi
  3676. am__universal=false
  3677. case " $depcc " in #(
  3678. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3679. esac
  3680. for depmode in $am_compiler_list; do
  3681. # Setup a source with many dependencies, because some compilers
  3682. # like to wrap large dependency lists on column 80 (with \), and
  3683. # we should not choose a depcomp mode which is confused by this.
  3684. #
  3685. # We need to recreate these files for each test, as the compiler may
  3686. # overwrite some of them when testing with obscure command lines.
  3687. # This happens at least with the AIX C compiler.
  3688. : > sub/conftest.c
  3689. for i in 1 2 3 4 5 6; do
  3690. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3691. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3692. # Solaris 8's {/usr,}/bin/sh.
  3693. touch sub/conftst$i.h
  3694. done
  3695. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3696. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3697. # mode. It turns out that the SunPro C++ compiler does not properly
  3698. # handle `-M -o', and we need to detect this. Also, some Intel
  3699. # versions had trouble with output in subdirs
  3700. am__obj=sub/conftest.${OBJEXT-o}
  3701. am__minus_obj="-o $am__obj"
  3702. case $depmode in
  3703. gcc)
  3704. # This depmode causes a compiler race in universal mode.
  3705. test "$am__universal" = false || continue
  3706. ;;
  3707. nosideeffect)
  3708. # after this tag, mechanisms are not by side-effect, so they'll
  3709. # only be used when explicitly requested
  3710. if test "x$enable_dependency_tracking" = xyes; then
  3711. continue
  3712. else
  3713. break
  3714. fi
  3715. ;;
  3716. msvisualcpp | msvcmsys)
  3717. # This compiler won't grok `-c -o', but also, the minuso test has
  3718. # not run yet. These depmodes are late enough in the game, and
  3719. # so weak that their functioning should not be impacted.
  3720. am__obj=conftest.${OBJEXT-o}
  3721. am__minus_obj=
  3722. ;;
  3723. none) break ;;
  3724. esac
  3725. if depmode=$depmode \
  3726. source=sub/conftest.c object=$am__obj \
  3727. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3728. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3729. >/dev/null 2>conftest.err &&
  3730. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3731. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3732. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3733. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3734. # icc doesn't choke on unknown options, it will just issue warnings
  3735. # or remarks (even with -Werror). So we grep stderr for any message
  3736. # that says an option was ignored or not supported.
  3737. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3738. # icc: Command line warning: ignoring option '-M'; no argument required
  3739. # The diagnosis changed in icc 8.0:
  3740. # icc: Command line remark: option '-MP' not supported
  3741. if (grep 'ignoring option' conftest.err ||
  3742. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3743. am_cv_CC_dependencies_compiler_type=$depmode
  3744. break
  3745. fi
  3746. fi
  3747. done
  3748. cd ..
  3749. rm -rf conftest.dir
  3750. else
  3751. am_cv_CC_dependencies_compiler_type=none
  3752. fi
  3753. fi
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3755. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3756. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3757. if
  3758. test "x$enable_dependency_tracking" != xno \
  3759. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3760. am__fastdepCC_TRUE=
  3761. am__fastdepCC_FALSE='#'
  3762. else
  3763. am__fastdepCC_TRUE='#'
  3764. am__fastdepCC_FALSE=
  3765. fi
  3766. ac_ext=cpp
  3767. ac_cpp='$CXXCPP $CPPFLAGS'
  3768. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3769. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3770. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3771. if test -z "$CXX"; then
  3772. if test -n "$CCC"; then
  3773. CXX=$CCC
  3774. else
  3775. if test -n "$ac_tool_prefix"; then
  3776. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3777. do
  3778. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3779. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3781. $as_echo_n "checking for $ac_word... " >&6; }
  3782. if test "${ac_cv_prog_CXX+set}" = set; then :
  3783. $as_echo_n "(cached) " >&6
  3784. else
  3785. if test -n "$CXX"; then
  3786. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3787. else
  3788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3789. for as_dir in $PATH
  3790. do
  3791. IFS=$as_save_IFS
  3792. test -z "$as_dir" && as_dir=.
  3793. for ac_exec_ext in '' $ac_executable_extensions; do
  3794. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3795. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3797. break 2
  3798. fi
  3799. done
  3800. done
  3801. IFS=$as_save_IFS
  3802. fi
  3803. fi
  3804. CXX=$ac_cv_prog_CXX
  3805. if test -n "$CXX"; then
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3807. $as_echo "$CXX" >&6; }
  3808. else
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3810. $as_echo "no" >&6; }
  3811. fi
  3812. test -n "$CXX" && break
  3813. done
  3814. fi
  3815. if test -z "$CXX"; then
  3816. ac_ct_CXX=$CXX
  3817. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3818. do
  3819. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3820. set dummy $ac_prog; ac_word=$2
  3821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3822. $as_echo_n "checking for $ac_word... " >&6; }
  3823. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3824. $as_echo_n "(cached) " >&6
  3825. else
  3826. if test -n "$ac_ct_CXX"; then
  3827. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3828. else
  3829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3830. for as_dir in $PATH
  3831. do
  3832. IFS=$as_save_IFS
  3833. test -z "$as_dir" && as_dir=.
  3834. for ac_exec_ext in '' $ac_executable_extensions; do
  3835. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3836. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3838. break 2
  3839. fi
  3840. done
  3841. done
  3842. IFS=$as_save_IFS
  3843. fi
  3844. fi
  3845. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3846. if test -n "$ac_ct_CXX"; then
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3848. $as_echo "$ac_ct_CXX" >&6; }
  3849. else
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3851. $as_echo "no" >&6; }
  3852. fi
  3853. test -n "$ac_ct_CXX" && break
  3854. done
  3855. if test "x$ac_ct_CXX" = x; then
  3856. CXX="g++"
  3857. else
  3858. case $cross_compiling:$ac_tool_warned in
  3859. yes:)
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3861. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3862. ac_tool_warned=yes ;;
  3863. esac
  3864. CXX=$ac_ct_CXX
  3865. fi
  3866. fi
  3867. fi
  3868. fi
  3869. # Provide some information about the compiler.
  3870. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3871. set X $ac_compile
  3872. ac_compiler=$2
  3873. for ac_option in --version -v -V -qversion; do
  3874. { { ac_try="$ac_compiler $ac_option >&5"
  3875. case "(($ac_try" in
  3876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3877. *) ac_try_echo=$ac_try;;
  3878. esac
  3879. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3880. $as_echo "$ac_try_echo"; } >&5
  3881. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3882. ac_status=$?
  3883. if test -s conftest.err; then
  3884. sed '10a\
  3885. ... rest of stderr output deleted ...
  3886. 10q' conftest.err >conftest.er1
  3887. cat conftest.er1 >&5
  3888. fi
  3889. rm -f conftest.er1 conftest.err
  3890. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3891. test $ac_status = 0; }
  3892. done
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3894. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3895. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3896. $as_echo_n "(cached) " >&6
  3897. else
  3898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3899. /* end confdefs.h. */
  3900. int
  3901. main ()
  3902. {
  3903. #ifndef __GNUC__
  3904. choke me
  3905. #endif
  3906. ;
  3907. return 0;
  3908. }
  3909. _ACEOF
  3910. if ac_fn_cxx_try_compile "$LINENO"; then :
  3911. ac_compiler_gnu=yes
  3912. else
  3913. ac_compiler_gnu=no
  3914. fi
  3915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3916. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3917. fi
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3919. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3920. if test $ac_compiler_gnu = yes; then
  3921. GXX=yes
  3922. else
  3923. GXX=
  3924. fi
  3925. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3926. ac_save_CXXFLAGS=$CXXFLAGS
  3927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3928. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3929. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3930. $as_echo_n "(cached) " >&6
  3931. else
  3932. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3933. ac_cxx_werror_flag=yes
  3934. ac_cv_prog_cxx_g=no
  3935. CXXFLAGS="-g"
  3936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3937. /* end confdefs.h. */
  3938. int
  3939. main ()
  3940. {
  3941. ;
  3942. return 0;
  3943. }
  3944. _ACEOF
  3945. if ac_fn_cxx_try_compile "$LINENO"; then :
  3946. ac_cv_prog_cxx_g=yes
  3947. else
  3948. CXXFLAGS=""
  3949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3950. /* end confdefs.h. */
  3951. int
  3952. main ()
  3953. {
  3954. ;
  3955. return 0;
  3956. }
  3957. _ACEOF
  3958. if ac_fn_cxx_try_compile "$LINENO"; then :
  3959. else
  3960. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3961. CXXFLAGS="-g"
  3962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3963. /* end confdefs.h. */
  3964. int
  3965. main ()
  3966. {
  3967. ;
  3968. return 0;
  3969. }
  3970. _ACEOF
  3971. if ac_fn_cxx_try_compile "$LINENO"; then :
  3972. ac_cv_prog_cxx_g=yes
  3973. fi
  3974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3975. fi
  3976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3977. fi
  3978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3979. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3980. fi
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3982. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3983. if test "$ac_test_CXXFLAGS" = set; then
  3984. CXXFLAGS=$ac_save_CXXFLAGS
  3985. elif test $ac_cv_prog_cxx_g = yes; then
  3986. if test "$GXX" = yes; then
  3987. CXXFLAGS="-g -O2"
  3988. else
  3989. CXXFLAGS="-g"
  3990. fi
  3991. else
  3992. if test "$GXX" = yes; then
  3993. CXXFLAGS="-O2"
  3994. else
  3995. CXXFLAGS=
  3996. fi
  3997. fi
  3998. ac_ext=c
  3999. ac_cpp='$CPP $CPPFLAGS'
  4000. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4001. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4002. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4003. depcc="$CXX" am_compiler_list=
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4005. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4006. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  4007. $as_echo_n "(cached) " >&6
  4008. else
  4009. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4010. # We make a subdir and do the tests there. Otherwise we can end up
  4011. # making bogus files that we don't know about and never remove. For
  4012. # instance it was reported that on HP-UX the gcc test will end up
  4013. # making a dummy file named `D' -- because `-MD' means `put the output
  4014. # in D'.
  4015. mkdir conftest.dir
  4016. # Copy depcomp to subdir because otherwise we won't find it if we're
  4017. # using a relative directory.
  4018. cp "$am_depcomp" conftest.dir
  4019. cd conftest.dir
  4020. # We will build objects and dependencies in a subdirectory because
  4021. # it helps to detect inapplicable dependency modes. For instance
  4022. # both Tru64's cc and ICC support -MD to output dependencies as a
  4023. # side effect of compilation, but ICC will put the dependencies in
  4024. # the current directory while Tru64 will put them in the object
  4025. # directory.
  4026. mkdir sub
  4027. am_cv_CXX_dependencies_compiler_type=none
  4028. if test "$am_compiler_list" = ""; then
  4029. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4030. fi
  4031. am__universal=false
  4032. case " $depcc " in #(
  4033. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4034. esac
  4035. for depmode in $am_compiler_list; do
  4036. # Setup a source with many dependencies, because some compilers
  4037. # like to wrap large dependency lists on column 80 (with \), and
  4038. # we should not choose a depcomp mode which is confused by this.
  4039. #
  4040. # We need to recreate these files for each test, as the compiler may
  4041. # overwrite some of them when testing with obscure command lines.
  4042. # This happens at least with the AIX C compiler.
  4043. : > sub/conftest.c
  4044. for i in 1 2 3 4 5 6; do
  4045. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4046. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4047. # Solaris 8's {/usr,}/bin/sh.
  4048. touch sub/conftst$i.h
  4049. done
  4050. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4051. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4052. # mode. It turns out that the SunPro C++ compiler does not properly
  4053. # handle `-M -o', and we need to detect this. Also, some Intel
  4054. # versions had trouble with output in subdirs
  4055. am__obj=sub/conftest.${OBJEXT-o}
  4056. am__minus_obj="-o $am__obj"
  4057. case $depmode in
  4058. gcc)
  4059. # This depmode causes a compiler race in universal mode.
  4060. test "$am__universal" = false || continue
  4061. ;;
  4062. nosideeffect)
  4063. # after this tag, mechanisms are not by side-effect, so they'll
  4064. # only be used when explicitly requested
  4065. if test "x$enable_dependency_tracking" = xyes; then
  4066. continue
  4067. else
  4068. break
  4069. fi
  4070. ;;
  4071. msvisualcpp | msvcmsys)
  4072. # This compiler won't grok `-c -o', but also, the minuso test has
  4073. # not run yet. These depmodes are late enough in the game, and
  4074. # so weak that their functioning should not be impacted.
  4075. am__obj=conftest.${OBJEXT-o}
  4076. am__minus_obj=
  4077. ;;
  4078. none) break ;;
  4079. esac
  4080. if depmode=$depmode \
  4081. source=sub/conftest.c object=$am__obj \
  4082. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4083. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4084. >/dev/null 2>conftest.err &&
  4085. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4086. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4087. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4088. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4089. # icc doesn't choke on unknown options, it will just issue warnings
  4090. # or remarks (even with -Werror). So we grep stderr for any message
  4091. # that says an option was ignored or not supported.
  4092. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4093. # icc: Command line warning: ignoring option '-M'; no argument required
  4094. # The diagnosis changed in icc 8.0:
  4095. # icc: Command line remark: option '-MP' not supported
  4096. if (grep 'ignoring option' conftest.err ||
  4097. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4098. am_cv_CXX_dependencies_compiler_type=$depmode
  4099. break
  4100. fi
  4101. fi
  4102. done
  4103. cd ..
  4104. rm -rf conftest.dir
  4105. else
  4106. am_cv_CXX_dependencies_compiler_type=none
  4107. fi
  4108. fi
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4110. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4111. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4112. if
  4113. test "x$enable_dependency_tracking" != xno \
  4114. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4115. am__fastdepCXX_TRUE=
  4116. am__fastdepCXX_FALSE='#'
  4117. else
  4118. am__fastdepCXX_TRUE='#'
  4119. am__fastdepCXX_FALSE=
  4120. fi
  4121. ac_ext=cpp
  4122. ac_cpp='$CXXCPP $CPPFLAGS'
  4123. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4124. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4125. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4126. ac_ext=cpp
  4127. ac_cpp='$CXXCPP $CPPFLAGS'
  4128. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4129. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4130. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4132. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4133. if test -z "$CXXCPP"; then
  4134. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4135. $as_echo_n "(cached) " >&6
  4136. else
  4137. # Double quotes because CXXCPP needs to be expanded
  4138. for CXXCPP in "$CXX -E" "/lib/cpp"
  4139. do
  4140. ac_preproc_ok=false
  4141. for ac_cxx_preproc_warn_flag in '' yes
  4142. do
  4143. # Use a header file that comes with gcc, so configuring glibc
  4144. # with a fresh cross-compiler works.
  4145. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4146. # <limits.h> exists even on freestanding compilers.
  4147. # On the NeXT, cc -E runs the code through the compiler's parser,
  4148. # not just through cpp. "Syntax error" is here to catch this case.
  4149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4150. /* end confdefs.h. */
  4151. #ifdef __STDC__
  4152. # include <limits.h>
  4153. #else
  4154. # include <assert.h>
  4155. #endif
  4156. Syntax error
  4157. _ACEOF
  4158. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4159. else
  4160. # Broken: fails on valid input.
  4161. continue
  4162. fi
  4163. rm -f conftest.err conftest.$ac_ext
  4164. # OK, works on sane cases. Now check whether nonexistent headers
  4165. # can be detected and how.
  4166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4167. /* end confdefs.h. */
  4168. #include <ac_nonexistent.h>
  4169. _ACEOF
  4170. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4171. # Broken: success on invalid input.
  4172. continue
  4173. else
  4174. # Passes both tests.
  4175. ac_preproc_ok=:
  4176. break
  4177. fi
  4178. rm -f conftest.err conftest.$ac_ext
  4179. done
  4180. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4181. rm -f conftest.err conftest.$ac_ext
  4182. if $ac_preproc_ok; then :
  4183. break
  4184. fi
  4185. done
  4186. ac_cv_prog_CXXCPP=$CXXCPP
  4187. fi
  4188. CXXCPP=$ac_cv_prog_CXXCPP
  4189. else
  4190. ac_cv_prog_CXXCPP=$CXXCPP
  4191. fi
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4193. $as_echo "$CXXCPP" >&6; }
  4194. ac_preproc_ok=false
  4195. for ac_cxx_preproc_warn_flag in '' yes
  4196. do
  4197. # Use a header file that comes with gcc, so configuring glibc
  4198. # with a fresh cross-compiler works.
  4199. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4200. # <limits.h> exists even on freestanding compilers.
  4201. # On the NeXT, cc -E runs the code through the compiler's parser,
  4202. # not just through cpp. "Syntax error" is here to catch this case.
  4203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4204. /* end confdefs.h. */
  4205. #ifdef __STDC__
  4206. # include <limits.h>
  4207. #else
  4208. # include <assert.h>
  4209. #endif
  4210. Syntax error
  4211. _ACEOF
  4212. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4213. else
  4214. # Broken: fails on valid input.
  4215. continue
  4216. fi
  4217. rm -f conftest.err conftest.$ac_ext
  4218. # OK, works on sane cases. Now check whether nonexistent headers
  4219. # can be detected and how.
  4220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4221. /* end confdefs.h. */
  4222. #include <ac_nonexistent.h>
  4223. _ACEOF
  4224. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4225. # Broken: success on invalid input.
  4226. continue
  4227. else
  4228. # Passes both tests.
  4229. ac_preproc_ok=:
  4230. break
  4231. fi
  4232. rm -f conftest.err conftest.$ac_ext
  4233. done
  4234. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4235. rm -f conftest.err conftest.$ac_ext
  4236. if $ac_preproc_ok; then :
  4237. else
  4238. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4239. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4240. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4241. See \`config.log' for more details." "$LINENO" 5; }
  4242. fi
  4243. ac_ext=cpp
  4244. ac_cpp='$CXXCPP $CPPFLAGS'
  4245. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4246. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4247. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4249. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4250. if test "${ac_cv_path_GREP+set}" = set; then :
  4251. $as_echo_n "(cached) " >&6
  4252. else
  4253. if test -z "$GREP"; then
  4254. ac_path_GREP_found=false
  4255. # Loop through the user's path and test for each of PROGNAME-LIST
  4256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4257. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4258. do
  4259. IFS=$as_save_IFS
  4260. test -z "$as_dir" && as_dir=.
  4261. for ac_prog in grep ggrep; do
  4262. for ac_exec_ext in '' $ac_executable_extensions; do
  4263. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4264. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4265. # Check for GNU ac_path_GREP and select it if it is found.
  4266. # Check for GNU $ac_path_GREP
  4267. case `"$ac_path_GREP" --version 2>&1` in
  4268. *GNU*)
  4269. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4270. *)
  4271. ac_count=0
  4272. $as_echo_n 0123456789 >"conftest.in"
  4273. while :
  4274. do
  4275. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4276. mv "conftest.tmp" "conftest.in"
  4277. cp "conftest.in" "conftest.nl"
  4278. $as_echo 'GREP' >> "conftest.nl"
  4279. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4280. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4281. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4282. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4283. # Best one so far, save it but keep looking for a better one
  4284. ac_cv_path_GREP="$ac_path_GREP"
  4285. ac_path_GREP_max=$ac_count
  4286. fi
  4287. # 10*(2^10) chars as input seems more than enough
  4288. test $ac_count -gt 10 && break
  4289. done
  4290. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4291. esac
  4292. $ac_path_GREP_found && break 3
  4293. done
  4294. done
  4295. done
  4296. IFS=$as_save_IFS
  4297. if test -z "$ac_cv_path_GREP"; then
  4298. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4299. fi
  4300. else
  4301. ac_cv_path_GREP=$GREP
  4302. fi
  4303. fi
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4305. $as_echo "$ac_cv_path_GREP" >&6; }
  4306. GREP="$ac_cv_path_GREP"
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4308. $as_echo_n "checking for egrep... " >&6; }
  4309. if test "${ac_cv_path_EGREP+set}" = set; then :
  4310. $as_echo_n "(cached) " >&6
  4311. else
  4312. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4313. then ac_cv_path_EGREP="$GREP -E"
  4314. else
  4315. if test -z "$EGREP"; then
  4316. ac_path_EGREP_found=false
  4317. # Loop through the user's path and test for each of PROGNAME-LIST
  4318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4319. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4320. do
  4321. IFS=$as_save_IFS
  4322. test -z "$as_dir" && as_dir=.
  4323. for ac_prog in egrep; do
  4324. for ac_exec_ext in '' $ac_executable_extensions; do
  4325. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4326. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4327. # Check for GNU ac_path_EGREP and select it if it is found.
  4328. # Check for GNU $ac_path_EGREP
  4329. case `"$ac_path_EGREP" --version 2>&1` in
  4330. *GNU*)
  4331. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4332. *)
  4333. ac_count=0
  4334. $as_echo_n 0123456789 >"conftest.in"
  4335. while :
  4336. do
  4337. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4338. mv "conftest.tmp" "conftest.in"
  4339. cp "conftest.in" "conftest.nl"
  4340. $as_echo 'EGREP' >> "conftest.nl"
  4341. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4342. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4343. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4344. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4345. # Best one so far, save it but keep looking for a better one
  4346. ac_cv_path_EGREP="$ac_path_EGREP"
  4347. ac_path_EGREP_max=$ac_count
  4348. fi
  4349. # 10*(2^10) chars as input seems more than enough
  4350. test $ac_count -gt 10 && break
  4351. done
  4352. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4353. esac
  4354. $ac_path_EGREP_found && break 3
  4355. done
  4356. done
  4357. done
  4358. IFS=$as_save_IFS
  4359. if test -z "$ac_cv_path_EGREP"; then
  4360. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4361. fi
  4362. else
  4363. ac_cv_path_EGREP=$EGREP
  4364. fi
  4365. fi
  4366. fi
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4368. $as_echo "$ac_cv_path_EGREP" >&6; }
  4369. EGREP="$ac_cv_path_EGREP"
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4371. $as_echo_n "checking for ANSI C header files... " >&6; }
  4372. if test "${ac_cv_header_stdc+set}" = set; then :
  4373. $as_echo_n "(cached) " >&6
  4374. else
  4375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4376. /* end confdefs.h. */
  4377. #include <stdlib.h>
  4378. #include <stdarg.h>
  4379. #include <string.h>
  4380. #include <float.h>
  4381. int
  4382. main ()
  4383. {
  4384. ;
  4385. return 0;
  4386. }
  4387. _ACEOF
  4388. if ac_fn_cxx_try_compile "$LINENO"; then :
  4389. ac_cv_header_stdc=yes
  4390. else
  4391. ac_cv_header_stdc=no
  4392. fi
  4393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4394. if test $ac_cv_header_stdc = yes; then
  4395. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4397. /* end confdefs.h. */
  4398. #include <string.h>
  4399. _ACEOF
  4400. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4401. $EGREP "memchr" >/dev/null 2>&1; then :
  4402. else
  4403. ac_cv_header_stdc=no
  4404. fi
  4405. rm -f conftest*
  4406. fi
  4407. if test $ac_cv_header_stdc = yes; then
  4408. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4410. /* end confdefs.h. */
  4411. #include <stdlib.h>
  4412. _ACEOF
  4413. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4414. $EGREP "free" >/dev/null 2>&1; then :
  4415. else
  4416. ac_cv_header_stdc=no
  4417. fi
  4418. rm -f conftest*
  4419. fi
  4420. if test $ac_cv_header_stdc = yes; then
  4421. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4422. if test "$cross_compiling" = yes; then :
  4423. :
  4424. else
  4425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4426. /* end confdefs.h. */
  4427. #include <ctype.h>
  4428. #include <stdlib.h>
  4429. #if ((' ' & 0x0FF) == 0x020)
  4430. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4431. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4432. #else
  4433. # define ISLOWER(c) \
  4434. (('a' <= (c) && (c) <= 'i') \
  4435. || ('j' <= (c) && (c) <= 'r') \
  4436. || ('s' <= (c) && (c) <= 'z'))
  4437. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4438. #endif
  4439. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4440. int
  4441. main ()
  4442. {
  4443. int i;
  4444. for (i = 0; i < 256; i++)
  4445. if (XOR (islower (i), ISLOWER (i))
  4446. || toupper (i) != TOUPPER (i))
  4447. return 2;
  4448. return 0;
  4449. }
  4450. _ACEOF
  4451. if ac_fn_cxx_try_run "$LINENO"; then :
  4452. else
  4453. ac_cv_header_stdc=no
  4454. fi
  4455. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4456. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4457. fi
  4458. fi
  4459. fi
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4461. $as_echo "$ac_cv_header_stdc" >&6; }
  4462. if test $ac_cv_header_stdc = yes; then
  4463. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4464. fi
  4465. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4466. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4467. inttypes.h stdint.h unistd.h
  4468. do :
  4469. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4470. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4471. "
  4472. eval as_val=\$$as_ac_Header
  4473. if test "x$as_val" = x""yes; then :
  4474. cat >>confdefs.h <<_ACEOF
  4475. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4476. _ACEOF
  4477. fi
  4478. done
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4480. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4481. if test "${ac_cv_c_bigendian+set}" = set; then :
  4482. $as_echo_n "(cached) " >&6
  4483. else
  4484. ac_cv_c_bigendian=unknown
  4485. # See if we're dealing with a universal compiler.
  4486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4487. /* end confdefs.h. */
  4488. #ifndef __APPLE_CC__
  4489. not a universal capable compiler
  4490. #endif
  4491. typedef int dummy;
  4492. _ACEOF
  4493. if ac_fn_cxx_try_compile "$LINENO"; then :
  4494. # Check for potential -arch flags. It is not universal unless
  4495. # there are at least two -arch flags with different values.
  4496. ac_arch=
  4497. ac_prev=
  4498. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4499. if test -n "$ac_prev"; then
  4500. case $ac_word in
  4501. i?86 | x86_64 | ppc | ppc64)
  4502. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4503. ac_arch=$ac_word
  4504. else
  4505. ac_cv_c_bigendian=universal
  4506. break
  4507. fi
  4508. ;;
  4509. esac
  4510. ac_prev=
  4511. elif test "x$ac_word" = "x-arch"; then
  4512. ac_prev=arch
  4513. fi
  4514. done
  4515. fi
  4516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4517. if test $ac_cv_c_bigendian = unknown; then
  4518. # See if sys/param.h defines the BYTE_ORDER macro.
  4519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4520. /* end confdefs.h. */
  4521. #include <sys/types.h>
  4522. #include <sys/param.h>
  4523. int
  4524. main ()
  4525. {
  4526. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4527. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4528. && LITTLE_ENDIAN)
  4529. bogus endian macros
  4530. #endif
  4531. ;
  4532. return 0;
  4533. }
  4534. _ACEOF
  4535. if ac_fn_cxx_try_compile "$LINENO"; then :
  4536. # It does; now see whether it defined to BIG_ENDIAN or not.
  4537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4538. /* end confdefs.h. */
  4539. #include <sys/types.h>
  4540. #include <sys/param.h>
  4541. int
  4542. main ()
  4543. {
  4544. #if BYTE_ORDER != BIG_ENDIAN
  4545. not big endian
  4546. #endif
  4547. ;
  4548. return 0;
  4549. }
  4550. _ACEOF
  4551. if ac_fn_cxx_try_compile "$LINENO"; then :
  4552. ac_cv_c_bigendian=yes
  4553. else
  4554. ac_cv_c_bigendian=no
  4555. fi
  4556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4557. fi
  4558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4559. fi
  4560. if test $ac_cv_c_bigendian = unknown; then
  4561. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4563. /* end confdefs.h. */
  4564. #include <limits.h>
  4565. int
  4566. main ()
  4567. {
  4568. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4569. bogus endian macros
  4570. #endif
  4571. ;
  4572. return 0;
  4573. }
  4574. _ACEOF
  4575. if ac_fn_cxx_try_compile "$LINENO"; then :
  4576. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4578. /* end confdefs.h. */
  4579. #include <limits.h>
  4580. int
  4581. main ()
  4582. {
  4583. #ifndef _BIG_ENDIAN
  4584. not big endian
  4585. #endif
  4586. ;
  4587. return 0;
  4588. }
  4589. _ACEOF
  4590. if ac_fn_cxx_try_compile "$LINENO"; then :
  4591. ac_cv_c_bigendian=yes
  4592. else
  4593. ac_cv_c_bigendian=no
  4594. fi
  4595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4596. fi
  4597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4598. fi
  4599. if test $ac_cv_c_bigendian = unknown; then
  4600. # Compile a test program.
  4601. if test "$cross_compiling" = yes; then :
  4602. # Try to guess by grepping values from an object file.
  4603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4604. /* end confdefs.h. */
  4605. short int ascii_mm[] =
  4606. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4607. short int ascii_ii[] =
  4608. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4609. int use_ascii (int i) {
  4610. return ascii_mm[i] + ascii_ii[i];
  4611. }
  4612. short int ebcdic_ii[] =
  4613. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4614. short int ebcdic_mm[] =
  4615. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4616. int use_ebcdic (int i) {
  4617. return ebcdic_mm[i] + ebcdic_ii[i];
  4618. }
  4619. extern int foo;
  4620. int
  4621. main ()
  4622. {
  4623. return use_ascii (foo) == use_ebcdic (foo);
  4624. ;
  4625. return 0;
  4626. }
  4627. _ACEOF
  4628. if ac_fn_cxx_try_compile "$LINENO"; then :
  4629. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4630. ac_cv_c_bigendian=yes
  4631. fi
  4632. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4633. if test "$ac_cv_c_bigendian" = unknown; then
  4634. ac_cv_c_bigendian=no
  4635. else
  4636. # finding both strings is unlikely to happen, but who knows?
  4637. ac_cv_c_bigendian=unknown
  4638. fi
  4639. fi
  4640. fi
  4641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4642. else
  4643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4644. /* end confdefs.h. */
  4645. $ac_includes_default
  4646. int
  4647. main ()
  4648. {
  4649. /* Are we little or big endian? From Harbison&Steele. */
  4650. union
  4651. {
  4652. long int l;
  4653. char c[sizeof (long int)];
  4654. } u;
  4655. u.l = 1;
  4656. return u.c[sizeof (long int) - 1] == 1;
  4657. ;
  4658. return 0;
  4659. }
  4660. _ACEOF
  4661. if ac_fn_cxx_try_run "$LINENO"; then :
  4662. ac_cv_c_bigendian=no
  4663. else
  4664. ac_cv_c_bigendian=yes
  4665. fi
  4666. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4667. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4668. fi
  4669. fi
  4670. fi
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4672. $as_echo "$ac_cv_c_bigendian" >&6; }
  4673. case $ac_cv_c_bigendian in #(
  4674. yes)
  4675. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4676. ;; #(
  4677. no)
  4678. ;; #(
  4679. universal)
  4680. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4681. ;; #(
  4682. *)
  4683. as_fn_error "unknown endianness
  4684. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4685. esac
  4686. #this will cause problems when cross-compiling...
  4687. # Make sure we can run config.sub.
  4688. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4689. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4691. $as_echo_n "checking build system type... " >&6; }
  4692. if test "${ac_cv_build+set}" = set; then :
  4693. $as_echo_n "(cached) " >&6
  4694. else
  4695. ac_build_alias=$build_alias
  4696. test "x$ac_build_alias" = x &&
  4697. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4698. test "x$ac_build_alias" = x &&
  4699. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  4700. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4701. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4702. fi
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4704. $as_echo "$ac_cv_build" >&6; }
  4705. case $ac_cv_build in
  4706. *-*-*) ;;
  4707. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  4708. esac
  4709. build=$ac_cv_build
  4710. ac_save_IFS=$IFS; IFS='-'
  4711. set x $ac_cv_build
  4712. shift
  4713. build_cpu=$1
  4714. build_vendor=$2
  4715. shift; shift
  4716. # Remember, the first character of IFS is used to create $*,
  4717. # except with old shells:
  4718. build_os=$*
  4719. IFS=$ac_save_IFS
  4720. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4722. $as_echo_n "checking host system type... " >&6; }
  4723. if test "${ac_cv_host+set}" = set; then :
  4724. $as_echo_n "(cached) " >&6
  4725. else
  4726. if test "x$host_alias" = x; then
  4727. ac_cv_host=$ac_cv_build
  4728. else
  4729. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4730. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4731. fi
  4732. fi
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4734. $as_echo "$ac_cv_host" >&6; }
  4735. case $ac_cv_host in
  4736. *-*-*) ;;
  4737. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  4738. esac
  4739. host=$ac_cv_host
  4740. ac_save_IFS=$IFS; IFS='-'
  4741. set x $ac_cv_host
  4742. shift
  4743. host_cpu=$1
  4744. host_vendor=$2
  4745. shift; shift
  4746. # Remember, the first character of IFS is used to create $*,
  4747. # except with old shells:
  4748. host_os=$*
  4749. IFS=$ac_save_IFS
  4750. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4751. enable_win32_dll=yes
  4752. case $host in
  4753. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  4754. if test -n "$ac_tool_prefix"; then
  4755. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4756. set dummy ${ac_tool_prefix}as; ac_word=$2
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4758. $as_echo_n "checking for $ac_word... " >&6; }
  4759. if test "${ac_cv_prog_AS+set}" = set; then :
  4760. $as_echo_n "(cached) " >&6
  4761. else
  4762. if test -n "$AS"; then
  4763. ac_cv_prog_AS="$AS" # Let the user override the test.
  4764. else
  4765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4766. for as_dir in $PATH
  4767. do
  4768. IFS=$as_save_IFS
  4769. test -z "$as_dir" && as_dir=.
  4770. for ac_exec_ext in '' $ac_executable_extensions; do
  4771. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4772. ac_cv_prog_AS="${ac_tool_prefix}as"
  4773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4774. break 2
  4775. fi
  4776. done
  4777. done
  4778. IFS=$as_save_IFS
  4779. fi
  4780. fi
  4781. AS=$ac_cv_prog_AS
  4782. if test -n "$AS"; then
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4784. $as_echo "$AS" >&6; }
  4785. else
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4787. $as_echo "no" >&6; }
  4788. fi
  4789. fi
  4790. if test -z "$ac_cv_prog_AS"; then
  4791. ac_ct_AS=$AS
  4792. # Extract the first word of "as", so it can be a program name with args.
  4793. set dummy as; ac_word=$2
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4795. $as_echo_n "checking for $ac_word... " >&6; }
  4796. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  4797. $as_echo_n "(cached) " >&6
  4798. else
  4799. if test -n "$ac_ct_AS"; then
  4800. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4801. else
  4802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4803. for as_dir in $PATH
  4804. do
  4805. IFS=$as_save_IFS
  4806. test -z "$as_dir" && as_dir=.
  4807. for ac_exec_ext in '' $ac_executable_extensions; do
  4808. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4809. ac_cv_prog_ac_ct_AS="as"
  4810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4811. break 2
  4812. fi
  4813. done
  4814. done
  4815. IFS=$as_save_IFS
  4816. fi
  4817. fi
  4818. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4819. if test -n "$ac_ct_AS"; then
  4820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4821. $as_echo "$ac_ct_AS" >&6; }
  4822. else
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4824. $as_echo "no" >&6; }
  4825. fi
  4826. if test "x$ac_ct_AS" = x; then
  4827. AS="false"
  4828. else
  4829. case $cross_compiling:$ac_tool_warned in
  4830. yes:)
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4832. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4833. ac_tool_warned=yes ;;
  4834. esac
  4835. AS=$ac_ct_AS
  4836. fi
  4837. else
  4838. AS="$ac_cv_prog_AS"
  4839. fi
  4840. if test -n "$ac_tool_prefix"; then
  4841. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4842. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4844. $as_echo_n "checking for $ac_word... " >&6; }
  4845. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  4846. $as_echo_n "(cached) " >&6
  4847. else
  4848. if test -n "$DLLTOOL"; then
  4849. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4850. else
  4851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4852. for as_dir in $PATH
  4853. do
  4854. IFS=$as_save_IFS
  4855. test -z "$as_dir" && as_dir=.
  4856. for ac_exec_ext in '' $ac_executable_extensions; do
  4857. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4858. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4860. break 2
  4861. fi
  4862. done
  4863. done
  4864. IFS=$as_save_IFS
  4865. fi
  4866. fi
  4867. DLLTOOL=$ac_cv_prog_DLLTOOL
  4868. if test -n "$DLLTOOL"; then
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4870. $as_echo "$DLLTOOL" >&6; }
  4871. else
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4873. $as_echo "no" >&6; }
  4874. fi
  4875. fi
  4876. if test -z "$ac_cv_prog_DLLTOOL"; then
  4877. ac_ct_DLLTOOL=$DLLTOOL
  4878. # Extract the first word of "dlltool", so it can be a program name with args.
  4879. set dummy dlltool; ac_word=$2
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4881. $as_echo_n "checking for $ac_word... " >&6; }
  4882. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  4883. $as_echo_n "(cached) " >&6
  4884. else
  4885. if test -n "$ac_ct_DLLTOOL"; then
  4886. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4887. else
  4888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4889. for as_dir in $PATH
  4890. do
  4891. IFS=$as_save_IFS
  4892. test -z "$as_dir" && as_dir=.
  4893. for ac_exec_ext in '' $ac_executable_extensions; do
  4894. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4895. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4897. break 2
  4898. fi
  4899. done
  4900. done
  4901. IFS=$as_save_IFS
  4902. fi
  4903. fi
  4904. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4905. if test -n "$ac_ct_DLLTOOL"; then
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4907. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4908. else
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4910. $as_echo "no" >&6; }
  4911. fi
  4912. if test "x$ac_ct_DLLTOOL" = x; then
  4913. DLLTOOL="false"
  4914. else
  4915. case $cross_compiling:$ac_tool_warned in
  4916. yes:)
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4918. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4919. ac_tool_warned=yes ;;
  4920. esac
  4921. DLLTOOL=$ac_ct_DLLTOOL
  4922. fi
  4923. else
  4924. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4925. fi
  4926. if test -n "$ac_tool_prefix"; then
  4927. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4928. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4930. $as_echo_n "checking for $ac_word... " >&6; }
  4931. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4932. $as_echo_n "(cached) " >&6
  4933. else
  4934. if test -n "$OBJDUMP"; then
  4935. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4936. else
  4937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4938. for as_dir in $PATH
  4939. do
  4940. IFS=$as_save_IFS
  4941. test -z "$as_dir" && as_dir=.
  4942. for ac_exec_ext in '' $ac_executable_extensions; do
  4943. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4944. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4946. break 2
  4947. fi
  4948. done
  4949. done
  4950. IFS=$as_save_IFS
  4951. fi
  4952. fi
  4953. OBJDUMP=$ac_cv_prog_OBJDUMP
  4954. if test -n "$OBJDUMP"; then
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4956. $as_echo "$OBJDUMP" >&6; }
  4957. else
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4959. $as_echo "no" >&6; }
  4960. fi
  4961. fi
  4962. if test -z "$ac_cv_prog_OBJDUMP"; then
  4963. ac_ct_OBJDUMP=$OBJDUMP
  4964. # Extract the first word of "objdump", so it can be a program name with args.
  4965. set dummy objdump; ac_word=$2
  4966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4967. $as_echo_n "checking for $ac_word... " >&6; }
  4968. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4969. $as_echo_n "(cached) " >&6
  4970. else
  4971. if test -n "$ac_ct_OBJDUMP"; then
  4972. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4973. else
  4974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4975. for as_dir in $PATH
  4976. do
  4977. IFS=$as_save_IFS
  4978. test -z "$as_dir" && as_dir=.
  4979. for ac_exec_ext in '' $ac_executable_extensions; do
  4980. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4981. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4982. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4983. break 2
  4984. fi
  4985. done
  4986. done
  4987. IFS=$as_save_IFS
  4988. fi
  4989. fi
  4990. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4991. if test -n "$ac_ct_OBJDUMP"; then
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4993. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4994. else
  4995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4996. $as_echo "no" >&6; }
  4997. fi
  4998. if test "x$ac_ct_OBJDUMP" = x; then
  4999. OBJDUMP="false"
  5000. else
  5001. case $cross_compiling:$ac_tool_warned in
  5002. yes:)
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5004. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5005. ac_tool_warned=yes ;;
  5006. esac
  5007. OBJDUMP=$ac_ct_OBJDUMP
  5008. fi
  5009. else
  5010. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5011. fi
  5012. ;;
  5013. esac
  5014. test -z "$AS" && AS=as
  5015. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5016. test -z "$OBJDUMP" && OBJDUMP=objdump
  5017. case `pwd` in
  5018. *\ * | *\ *)
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5020. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5021. esac
  5022. macro_version='2.2.6b'
  5023. macro_revision='1.3017'
  5024. ltmain="$ac_aux_dir/ltmain.sh"
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5026. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5027. if test "${ac_cv_path_SED+set}" = set; then :
  5028. $as_echo_n "(cached) " >&6
  5029. else
  5030. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5031. for ac_i in 1 2 3 4 5 6 7; do
  5032. ac_script="$ac_script$as_nl$ac_script"
  5033. done
  5034. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5035. { ac_script=; unset ac_script;}
  5036. if test -z "$SED"; then
  5037. ac_path_SED_found=false
  5038. # Loop through the user's path and test for each of PROGNAME-LIST
  5039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5040. for as_dir in $PATH
  5041. do
  5042. IFS=$as_save_IFS
  5043. test -z "$as_dir" && as_dir=.
  5044. for ac_prog in sed gsed; do
  5045. for ac_exec_ext in '' $ac_executable_extensions; do
  5046. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5047. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5048. # Check for GNU ac_path_SED and select it if it is found.
  5049. # Check for GNU $ac_path_SED
  5050. case `"$ac_path_SED" --version 2>&1` in
  5051. *GNU*)
  5052. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5053. *)
  5054. ac_count=0
  5055. $as_echo_n 0123456789 >"conftest.in"
  5056. while :
  5057. do
  5058. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5059. mv "conftest.tmp" "conftest.in"
  5060. cp "conftest.in" "conftest.nl"
  5061. $as_echo '' >> "conftest.nl"
  5062. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5063. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5064. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5065. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5066. # Best one so far, save it but keep looking for a better one
  5067. ac_cv_path_SED="$ac_path_SED"
  5068. ac_path_SED_max=$ac_count
  5069. fi
  5070. # 10*(2^10) chars as input seems more than enough
  5071. test $ac_count -gt 10 && break
  5072. done
  5073. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5074. esac
  5075. $ac_path_SED_found && break 3
  5076. done
  5077. done
  5078. done
  5079. IFS=$as_save_IFS
  5080. if test -z "$ac_cv_path_SED"; then
  5081. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5082. fi
  5083. else
  5084. ac_cv_path_SED=$SED
  5085. fi
  5086. fi
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5088. $as_echo "$ac_cv_path_SED" >&6; }
  5089. SED="$ac_cv_path_SED"
  5090. rm -f conftest.sed
  5091. test -z "$SED" && SED=sed
  5092. Xsed="$SED -e 1s/^X//"
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5094. $as_echo_n "checking for fgrep... " >&6; }
  5095. if test "${ac_cv_path_FGREP+set}" = set; then :
  5096. $as_echo_n "(cached) " >&6
  5097. else
  5098. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5099. then ac_cv_path_FGREP="$GREP -F"
  5100. else
  5101. if test -z "$FGREP"; then
  5102. ac_path_FGREP_found=false
  5103. # Loop through the user's path and test for each of PROGNAME-LIST
  5104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5105. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5106. do
  5107. IFS=$as_save_IFS
  5108. test -z "$as_dir" && as_dir=.
  5109. for ac_prog in fgrep; do
  5110. for ac_exec_ext in '' $ac_executable_extensions; do
  5111. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5112. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  5113. # Check for GNU ac_path_FGREP and select it if it is found.
  5114. # Check for GNU $ac_path_FGREP
  5115. case `"$ac_path_FGREP" --version 2>&1` in
  5116. *GNU*)
  5117. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5118. *)
  5119. ac_count=0
  5120. $as_echo_n 0123456789 >"conftest.in"
  5121. while :
  5122. do
  5123. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5124. mv "conftest.tmp" "conftest.in"
  5125. cp "conftest.in" "conftest.nl"
  5126. $as_echo 'FGREP' >> "conftest.nl"
  5127. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5128. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5129. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5130. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5131. # Best one so far, save it but keep looking for a better one
  5132. ac_cv_path_FGREP="$ac_path_FGREP"
  5133. ac_path_FGREP_max=$ac_count
  5134. fi
  5135. # 10*(2^10) chars as input seems more than enough
  5136. test $ac_count -gt 10 && break
  5137. done
  5138. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5139. esac
  5140. $ac_path_FGREP_found && break 3
  5141. done
  5142. done
  5143. done
  5144. IFS=$as_save_IFS
  5145. if test -z "$ac_cv_path_FGREP"; then
  5146. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5147. fi
  5148. else
  5149. ac_cv_path_FGREP=$FGREP
  5150. fi
  5151. fi
  5152. fi
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5154. $as_echo "$ac_cv_path_FGREP" >&6; }
  5155. FGREP="$ac_cv_path_FGREP"
  5156. test -z "$GREP" && GREP=grep
  5157. # Check whether --with-gnu-ld was given.
  5158. if test "${with_gnu_ld+set}" = set; then :
  5159. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5160. else
  5161. with_gnu_ld=no
  5162. fi
  5163. ac_prog=ld
  5164. if test "$GCC" = yes; then
  5165. # Check if gcc -print-prog-name=ld gives a path.
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5167. $as_echo_n "checking for ld used by $CC... " >&6; }
  5168. case $host in
  5169. *-*-mingw*)
  5170. # gcc leaves a trailing carriage return which upsets mingw
  5171. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5172. *)
  5173. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5174. esac
  5175. case $ac_prog in
  5176. # Accept absolute paths.
  5177. [\\/]* | ?:[\\/]*)
  5178. re_direlt='/[^/][^/]*/\.\./'
  5179. # Canonicalize the pathname of ld
  5180. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5181. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5182. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5183. done
  5184. test -z "$LD" && LD="$ac_prog"
  5185. ;;
  5186. "")
  5187. # If it fails, then pretend we aren't using GCC.
  5188. ac_prog=ld
  5189. ;;
  5190. *)
  5191. # If it is relative, then search for the first ld in PATH.
  5192. with_gnu_ld=unknown
  5193. ;;
  5194. esac
  5195. elif test "$with_gnu_ld" = yes; then
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5197. $as_echo_n "checking for GNU ld... " >&6; }
  5198. else
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5200. $as_echo_n "checking for non-GNU ld... " >&6; }
  5201. fi
  5202. if test "${lt_cv_path_LD+set}" = set; then :
  5203. $as_echo_n "(cached) " >&6
  5204. else
  5205. if test -z "$LD"; then
  5206. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5207. for ac_dir in $PATH; do
  5208. IFS="$lt_save_ifs"
  5209. test -z "$ac_dir" && ac_dir=.
  5210. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5211. lt_cv_path_LD="$ac_dir/$ac_prog"
  5212. # Check to see if the program is GNU ld. I'd rather use --version,
  5213. # but apparently some variants of GNU ld only accept -v.
  5214. # Break only if it was the GNU/non-GNU ld that we prefer.
  5215. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5216. *GNU* | *'with BFD'*)
  5217. test "$with_gnu_ld" != no && break
  5218. ;;
  5219. *)
  5220. test "$with_gnu_ld" != yes && break
  5221. ;;
  5222. esac
  5223. fi
  5224. done
  5225. IFS="$lt_save_ifs"
  5226. else
  5227. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5228. fi
  5229. fi
  5230. LD="$lt_cv_path_LD"
  5231. if test -n "$LD"; then
  5232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5233. $as_echo "$LD" >&6; }
  5234. else
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5236. $as_echo "no" >&6; }
  5237. fi
  5238. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5240. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5241. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  5242. $as_echo_n "(cached) " >&6
  5243. else
  5244. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5245. case `$LD -v 2>&1 </dev/null` in
  5246. *GNU* | *'with BFD'*)
  5247. lt_cv_prog_gnu_ld=yes
  5248. ;;
  5249. *)
  5250. lt_cv_prog_gnu_ld=no
  5251. ;;
  5252. esac
  5253. fi
  5254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5255. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5256. with_gnu_ld=$lt_cv_prog_gnu_ld
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5258. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5259. if test "${lt_cv_path_NM+set}" = set; then :
  5260. $as_echo_n "(cached) " >&6
  5261. else
  5262. if test -n "$NM"; then
  5263. # Let the user override the test.
  5264. lt_cv_path_NM="$NM"
  5265. else
  5266. lt_nm_to_check="${ac_tool_prefix}nm"
  5267. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5268. lt_nm_to_check="$lt_nm_to_check nm"
  5269. fi
  5270. for lt_tmp_nm in $lt_nm_to_check; do
  5271. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5272. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5273. IFS="$lt_save_ifs"
  5274. test -z "$ac_dir" && ac_dir=.
  5275. tmp_nm="$ac_dir/$lt_tmp_nm"
  5276. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5277. # Check to see if the nm accepts a BSD-compat flag.
  5278. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5279. # nm: unknown option "B" ignored
  5280. # Tru64's nm complains that /dev/null is an invalid object file
  5281. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5282. */dev/null* | *'Invalid file or object type'*)
  5283. lt_cv_path_NM="$tmp_nm -B"
  5284. break
  5285. ;;
  5286. *)
  5287. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5288. */dev/null*)
  5289. lt_cv_path_NM="$tmp_nm -p"
  5290. break
  5291. ;;
  5292. *)
  5293. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5294. continue # so that we can try to find one that supports BSD flags
  5295. ;;
  5296. esac
  5297. ;;
  5298. esac
  5299. fi
  5300. done
  5301. IFS="$lt_save_ifs"
  5302. done
  5303. : ${lt_cv_path_NM=no}
  5304. fi
  5305. fi
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5307. $as_echo "$lt_cv_path_NM" >&6; }
  5308. if test "$lt_cv_path_NM" != "no"; then
  5309. NM="$lt_cv_path_NM"
  5310. else
  5311. # Didn't find any BSD compatible name lister, look for dumpbin.
  5312. if test -n "$ac_tool_prefix"; then
  5313. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5314. do
  5315. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5316. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5318. $as_echo_n "checking for $ac_word... " >&6; }
  5319. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  5320. $as_echo_n "(cached) " >&6
  5321. else
  5322. if test -n "$DUMPBIN"; then
  5323. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5324. else
  5325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5326. for as_dir in $PATH
  5327. do
  5328. IFS=$as_save_IFS
  5329. test -z "$as_dir" && as_dir=.
  5330. for ac_exec_ext in '' $ac_executable_extensions; do
  5331. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5332. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5333. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5334. break 2
  5335. fi
  5336. done
  5337. done
  5338. IFS=$as_save_IFS
  5339. fi
  5340. fi
  5341. DUMPBIN=$ac_cv_prog_DUMPBIN
  5342. if test -n "$DUMPBIN"; then
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5344. $as_echo "$DUMPBIN" >&6; }
  5345. else
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5347. $as_echo "no" >&6; }
  5348. fi
  5349. test -n "$DUMPBIN" && break
  5350. done
  5351. fi
  5352. if test -z "$DUMPBIN"; then
  5353. ac_ct_DUMPBIN=$DUMPBIN
  5354. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5355. do
  5356. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5357. set dummy $ac_prog; ac_word=$2
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5359. $as_echo_n "checking for $ac_word... " >&6; }
  5360. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  5361. $as_echo_n "(cached) " >&6
  5362. else
  5363. if test -n "$ac_ct_DUMPBIN"; then
  5364. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5365. else
  5366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5367. for as_dir in $PATH
  5368. do
  5369. IFS=$as_save_IFS
  5370. test -z "$as_dir" && as_dir=.
  5371. for ac_exec_ext in '' $ac_executable_extensions; do
  5372. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5373. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5374. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5375. break 2
  5376. fi
  5377. done
  5378. done
  5379. IFS=$as_save_IFS
  5380. fi
  5381. fi
  5382. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5383. if test -n "$ac_ct_DUMPBIN"; then
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5385. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5386. else
  5387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5388. $as_echo "no" >&6; }
  5389. fi
  5390. test -n "$ac_ct_DUMPBIN" && break
  5391. done
  5392. if test "x$ac_ct_DUMPBIN" = x; then
  5393. DUMPBIN=":"
  5394. else
  5395. case $cross_compiling:$ac_tool_warned in
  5396. yes:)
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5398. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5399. ac_tool_warned=yes ;;
  5400. esac
  5401. DUMPBIN=$ac_ct_DUMPBIN
  5402. fi
  5403. fi
  5404. if test "$DUMPBIN" != ":"; then
  5405. NM="$DUMPBIN"
  5406. fi
  5407. fi
  5408. test -z "$NM" && NM=nm
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5410. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5411. if test "${lt_cv_nm_interface+set}" = set; then :
  5412. $as_echo_n "(cached) " >&6
  5413. else
  5414. lt_cv_nm_interface="BSD nm"
  5415. echo "int some_variable = 0;" > conftest.$ac_ext
  5416. (eval echo "\"\$as_me:6026: $ac_compile\"" >&5)
  5417. (eval "$ac_compile" 2>conftest.err)
  5418. cat conftest.err >&5
  5419. (eval echo "\"\$as_me:6029: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5420. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5421. cat conftest.err >&5
  5422. (eval echo "\"\$as_me:6032: output\"" >&5)
  5423. cat conftest.out >&5
  5424. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5425. lt_cv_nm_interface="MS dumpbin"
  5426. fi
  5427. rm -f conftest*
  5428. fi
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5430. $as_echo "$lt_cv_nm_interface" >&6; }
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5432. $as_echo_n "checking whether ln -s works... " >&6; }
  5433. LN_S=$as_ln_s
  5434. if test "$LN_S" = "ln -s"; then
  5435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5436. $as_echo "yes" >&6; }
  5437. else
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5439. $as_echo "no, using $LN_S" >&6; }
  5440. fi
  5441. # find the maximum length of command line arguments
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5443. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5444. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5445. $as_echo_n "(cached) " >&6
  5446. else
  5447. i=0
  5448. teststring="ABCD"
  5449. case $build_os in
  5450. msdosdjgpp*)
  5451. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5452. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5453. # during glob expansion). Even if it were fixed, the result of this
  5454. # check would be larger than it should be.
  5455. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5456. ;;
  5457. gnu*)
  5458. # Under GNU Hurd, this test is not required because there is
  5459. # no limit to the length of command line arguments.
  5460. # Libtool will interpret -1 as no limit whatsoever
  5461. lt_cv_sys_max_cmd_len=-1;
  5462. ;;
  5463. cygwin* | mingw* | cegcc*)
  5464. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5465. # about 5 minutes as the teststring grows exponentially.
  5466. # Worse, since 9x/ME are not pre-emptively multitasking,
  5467. # you end up with a "frozen" computer, even though with patience
  5468. # the test eventually succeeds (with a max line length of 256k).
  5469. # Instead, let's just punt: use the minimum linelength reported by
  5470. # all of the supported platforms: 8192 (on NT/2K/XP).
  5471. lt_cv_sys_max_cmd_len=8192;
  5472. ;;
  5473. amigaos*)
  5474. # On AmigaOS with pdksh, this test takes hours, literally.
  5475. # So we just punt and use a minimum line length of 8192.
  5476. lt_cv_sys_max_cmd_len=8192;
  5477. ;;
  5478. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5479. # This has been around since 386BSD, at least. Likely further.
  5480. if test -x /sbin/sysctl; then
  5481. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5482. elif test -x /usr/sbin/sysctl; then
  5483. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5484. else
  5485. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5486. fi
  5487. # And add a safety zone
  5488. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5489. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5490. ;;
  5491. interix*)
  5492. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5493. lt_cv_sys_max_cmd_len=196608
  5494. ;;
  5495. osf*)
  5496. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5497. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5498. # nice to cause kernel panics so lets avoid the loop below.
  5499. # First set a reasonable default.
  5500. lt_cv_sys_max_cmd_len=16384
  5501. #
  5502. if test -x /sbin/sysconfig; then
  5503. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5504. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5505. esac
  5506. fi
  5507. ;;
  5508. sco3.2v5*)
  5509. lt_cv_sys_max_cmd_len=102400
  5510. ;;
  5511. sysv5* | sco5v6* | sysv4.2uw2*)
  5512. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5513. if test -n "$kargmax"; then
  5514. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5515. else
  5516. lt_cv_sys_max_cmd_len=32768
  5517. fi
  5518. ;;
  5519. *)
  5520. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5521. if test -n "$lt_cv_sys_max_cmd_len"; then
  5522. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5523. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5524. else
  5525. # Make teststring a little bigger before we do anything with it.
  5526. # a 1K string should be a reasonable start.
  5527. for i in 1 2 3 4 5 6 7 8 ; do
  5528. teststring=$teststring$teststring
  5529. done
  5530. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5531. # If test is not a shell built-in, we'll probably end up computing a
  5532. # maximum length that is only half of the actual maximum length, but
  5533. # we can't tell.
  5534. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5535. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5536. test $i != 17 # 1/2 MB should be enough
  5537. do
  5538. i=`expr $i + 1`
  5539. teststring=$teststring$teststring
  5540. done
  5541. # Only check the string length outside the loop.
  5542. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5543. teststring=
  5544. # Add a significant safety factor because C++ compilers can tack on
  5545. # massive amounts of additional arguments before passing them to the
  5546. # linker. It appears as though 1/2 is a usable value.
  5547. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5548. fi
  5549. ;;
  5550. esac
  5551. fi
  5552. if test -n $lt_cv_sys_max_cmd_len ; then
  5553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5554. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5555. else
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5557. $as_echo "none" >&6; }
  5558. fi
  5559. max_cmd_len=$lt_cv_sys_max_cmd_len
  5560. : ${CP="cp -f"}
  5561. : ${MV="mv -f"}
  5562. : ${RM="rm -f"}
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5564. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5565. # Try some XSI features
  5566. xsi_shell=no
  5567. ( _lt_dummy="a/b/c"
  5568. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5569. = c,a/b,, \
  5570. && eval 'test $(( 1 + 1 )) -eq 2 \
  5571. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5572. && xsi_shell=yes
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5574. $as_echo "$xsi_shell" >&6; }
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5576. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5577. lt_shell_append=no
  5578. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5579. >/dev/null 2>&1 \
  5580. && lt_shell_append=yes
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5582. $as_echo "$lt_shell_append" >&6; }
  5583. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5584. lt_unset=unset
  5585. else
  5586. lt_unset=false
  5587. fi
  5588. # test EBCDIC or ASCII
  5589. case `echo X|tr X '\101'` in
  5590. A) # ASCII based system
  5591. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5592. lt_SP2NL='tr \040 \012'
  5593. lt_NL2SP='tr \015\012 \040\040'
  5594. ;;
  5595. *) # EBCDIC based system
  5596. lt_SP2NL='tr \100 \n'
  5597. lt_NL2SP='tr \r\n \100\100'
  5598. ;;
  5599. esac
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5601. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5602. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5603. $as_echo_n "(cached) " >&6
  5604. else
  5605. lt_cv_ld_reload_flag='-r'
  5606. fi
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5608. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5609. reload_flag=$lt_cv_ld_reload_flag
  5610. case $reload_flag in
  5611. "" | " "*) ;;
  5612. *) reload_flag=" $reload_flag" ;;
  5613. esac
  5614. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5615. case $host_os in
  5616. darwin*)
  5617. if test "$GCC" = yes; then
  5618. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5619. else
  5620. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5621. fi
  5622. ;;
  5623. esac
  5624. if test -n "$ac_tool_prefix"; then
  5625. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5626. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5628. $as_echo_n "checking for $ac_word... " >&6; }
  5629. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5630. $as_echo_n "(cached) " >&6
  5631. else
  5632. if test -n "$OBJDUMP"; then
  5633. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5634. else
  5635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5636. for as_dir in $PATH
  5637. do
  5638. IFS=$as_save_IFS
  5639. test -z "$as_dir" && as_dir=.
  5640. for ac_exec_ext in '' $ac_executable_extensions; do
  5641. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5642. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5643. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5644. break 2
  5645. fi
  5646. done
  5647. done
  5648. IFS=$as_save_IFS
  5649. fi
  5650. fi
  5651. OBJDUMP=$ac_cv_prog_OBJDUMP
  5652. if test -n "$OBJDUMP"; then
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5654. $as_echo "$OBJDUMP" >&6; }
  5655. else
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5657. $as_echo "no" >&6; }
  5658. fi
  5659. fi
  5660. if test -z "$ac_cv_prog_OBJDUMP"; then
  5661. ac_ct_OBJDUMP=$OBJDUMP
  5662. # Extract the first word of "objdump", so it can be a program name with args.
  5663. set dummy objdump; ac_word=$2
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5665. $as_echo_n "checking for $ac_word... " >&6; }
  5666. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5667. $as_echo_n "(cached) " >&6
  5668. else
  5669. if test -n "$ac_ct_OBJDUMP"; then
  5670. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5671. else
  5672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5673. for as_dir in $PATH
  5674. do
  5675. IFS=$as_save_IFS
  5676. test -z "$as_dir" && as_dir=.
  5677. for ac_exec_ext in '' $ac_executable_extensions; do
  5678. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5679. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5681. break 2
  5682. fi
  5683. done
  5684. done
  5685. IFS=$as_save_IFS
  5686. fi
  5687. fi
  5688. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5689. if test -n "$ac_ct_OBJDUMP"; then
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5691. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5692. else
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5694. $as_echo "no" >&6; }
  5695. fi
  5696. if test "x$ac_ct_OBJDUMP" = x; then
  5697. OBJDUMP="false"
  5698. else
  5699. case $cross_compiling:$ac_tool_warned in
  5700. yes:)
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5702. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5703. ac_tool_warned=yes ;;
  5704. esac
  5705. OBJDUMP=$ac_ct_OBJDUMP
  5706. fi
  5707. else
  5708. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5709. fi
  5710. test -z "$OBJDUMP" && OBJDUMP=objdump
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5712. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5713. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5714. $as_echo_n "(cached) " >&6
  5715. else
  5716. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5717. lt_cv_file_magic_test_file=
  5718. lt_cv_deplibs_check_method='unknown'
  5719. # Need to set the preceding variable on all platforms that support
  5720. # interlibrary dependencies.
  5721. # 'none' -- dependencies not supported.
  5722. # `unknown' -- same as none, but documents that we really don't know.
  5723. # 'pass_all' -- all dependencies passed with no checks.
  5724. # 'test_compile' -- check by making test program.
  5725. # 'file_magic [[regex]]' -- check by looking for files in library path
  5726. # which responds to the $file_magic_cmd with a given extended regex.
  5727. # If you have `file' or equivalent on your system and you're not sure
  5728. # whether `pass_all' will *always* work, you probably want this one.
  5729. case $host_os in
  5730. aix[4-9]*)
  5731. lt_cv_deplibs_check_method=pass_all
  5732. ;;
  5733. beos*)
  5734. lt_cv_deplibs_check_method=pass_all
  5735. ;;
  5736. bsdi[45]*)
  5737. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5738. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5739. lt_cv_file_magic_test_file=/shlib/libc.so
  5740. ;;
  5741. cygwin*)
  5742. # func_win32_libid is a shell function defined in ltmain.sh
  5743. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5744. lt_cv_file_magic_cmd='func_win32_libid'
  5745. ;;
  5746. mingw* | pw32*)
  5747. # Base MSYS/MinGW do not provide the 'file' command needed by
  5748. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5749. # unless we find 'file', for example because we are cross-compiling.
  5750. if ( file / ) >/dev/null 2>&1; then
  5751. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5752. lt_cv_file_magic_cmd='func_win32_libid'
  5753. else
  5754. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5755. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5756. fi
  5757. ;;
  5758. cegcc)
  5759. # use the weaker test based on 'objdump'. See mingw*.
  5760. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5761. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5762. ;;
  5763. darwin* | rhapsody*)
  5764. lt_cv_deplibs_check_method=pass_all
  5765. ;;
  5766. freebsd* | dragonfly*)
  5767. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5768. case $host_cpu in
  5769. i*86 )
  5770. # Not sure whether the presence of OpenBSD here was a mistake.
  5771. # Let's accept both of them until this is cleared up.
  5772. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5773. lt_cv_file_magic_cmd=/usr/bin/file
  5774. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5775. ;;
  5776. esac
  5777. else
  5778. lt_cv_deplibs_check_method=pass_all
  5779. fi
  5780. ;;
  5781. gnu*)
  5782. lt_cv_deplibs_check_method=pass_all
  5783. ;;
  5784. hpux10.20* | hpux11*)
  5785. lt_cv_file_magic_cmd=/usr/bin/file
  5786. case $host_cpu in
  5787. ia64*)
  5788. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5789. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5790. ;;
  5791. hppa*64*)
  5792. 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]'
  5793. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5794. ;;
  5795. *)
  5796. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5797. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5798. ;;
  5799. esac
  5800. ;;
  5801. interix[3-9]*)
  5802. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5803. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5804. ;;
  5805. irix5* | irix6* | nonstopux*)
  5806. case $LD in
  5807. *-32|*"-32 ") libmagic=32-bit;;
  5808. *-n32|*"-n32 ") libmagic=N32;;
  5809. *-64|*"-64 ") libmagic=64-bit;;
  5810. *) libmagic=never-match;;
  5811. esac
  5812. lt_cv_deplibs_check_method=pass_all
  5813. ;;
  5814. # This must be Linux ELF.
  5815. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5816. lt_cv_deplibs_check_method=pass_all
  5817. ;;
  5818. netbsd* | netbsdelf*-gnu)
  5819. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5820. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5821. else
  5822. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5823. fi
  5824. ;;
  5825. newos6*)
  5826. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5827. lt_cv_file_magic_cmd=/usr/bin/file
  5828. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5829. ;;
  5830. *nto* | *qnx*)
  5831. lt_cv_deplibs_check_method=pass_all
  5832. ;;
  5833. openbsd*)
  5834. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5835. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5836. else
  5837. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5838. fi
  5839. ;;
  5840. osf3* | osf4* | osf5*)
  5841. lt_cv_deplibs_check_method=pass_all
  5842. ;;
  5843. rdos*)
  5844. lt_cv_deplibs_check_method=pass_all
  5845. ;;
  5846. solaris*)
  5847. lt_cv_deplibs_check_method=pass_all
  5848. ;;
  5849. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5850. lt_cv_deplibs_check_method=pass_all
  5851. ;;
  5852. sysv4 | sysv4.3*)
  5853. case $host_vendor in
  5854. motorola)
  5855. 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]'
  5856. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5857. ;;
  5858. ncr)
  5859. lt_cv_deplibs_check_method=pass_all
  5860. ;;
  5861. sequent)
  5862. lt_cv_file_magic_cmd='/bin/file'
  5863. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5864. ;;
  5865. sni)
  5866. lt_cv_file_magic_cmd='/bin/file'
  5867. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5868. lt_cv_file_magic_test_file=/lib/libc.so
  5869. ;;
  5870. siemens)
  5871. lt_cv_deplibs_check_method=pass_all
  5872. ;;
  5873. pc)
  5874. lt_cv_deplibs_check_method=pass_all
  5875. ;;
  5876. esac
  5877. ;;
  5878. tpf*)
  5879. lt_cv_deplibs_check_method=pass_all
  5880. ;;
  5881. esac
  5882. fi
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5884. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5885. file_magic_cmd=$lt_cv_file_magic_cmd
  5886. deplibs_check_method=$lt_cv_deplibs_check_method
  5887. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5888. if test -n "$ac_tool_prefix"; then
  5889. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5890. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5892. $as_echo_n "checking for $ac_word... " >&6; }
  5893. if test "${ac_cv_prog_AR+set}" = set; then :
  5894. $as_echo_n "(cached) " >&6
  5895. else
  5896. if test -n "$AR"; then
  5897. ac_cv_prog_AR="$AR" # Let the user override the test.
  5898. else
  5899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5900. for as_dir in $PATH
  5901. do
  5902. IFS=$as_save_IFS
  5903. test -z "$as_dir" && as_dir=.
  5904. for ac_exec_ext in '' $ac_executable_extensions; do
  5905. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5906. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5907. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5908. break 2
  5909. fi
  5910. done
  5911. done
  5912. IFS=$as_save_IFS
  5913. fi
  5914. fi
  5915. AR=$ac_cv_prog_AR
  5916. if test -n "$AR"; then
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5918. $as_echo "$AR" >&6; }
  5919. else
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5921. $as_echo "no" >&6; }
  5922. fi
  5923. fi
  5924. if test -z "$ac_cv_prog_AR"; then
  5925. ac_ct_AR=$AR
  5926. # Extract the first word of "ar", so it can be a program name with args.
  5927. set dummy ar; ac_word=$2
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5929. $as_echo_n "checking for $ac_word... " >&6; }
  5930. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5931. $as_echo_n "(cached) " >&6
  5932. else
  5933. if test -n "$ac_ct_AR"; then
  5934. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5935. else
  5936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5937. for as_dir in $PATH
  5938. do
  5939. IFS=$as_save_IFS
  5940. test -z "$as_dir" && as_dir=.
  5941. for ac_exec_ext in '' $ac_executable_extensions; do
  5942. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5943. ac_cv_prog_ac_ct_AR="ar"
  5944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5945. break 2
  5946. fi
  5947. done
  5948. done
  5949. IFS=$as_save_IFS
  5950. fi
  5951. fi
  5952. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5953. if test -n "$ac_ct_AR"; then
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5955. $as_echo "$ac_ct_AR" >&6; }
  5956. else
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5958. $as_echo "no" >&6; }
  5959. fi
  5960. if test "x$ac_ct_AR" = x; then
  5961. AR="false"
  5962. else
  5963. case $cross_compiling:$ac_tool_warned in
  5964. yes:)
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5966. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5967. ac_tool_warned=yes ;;
  5968. esac
  5969. AR=$ac_ct_AR
  5970. fi
  5971. else
  5972. AR="$ac_cv_prog_AR"
  5973. fi
  5974. test -z "$AR" && AR=ar
  5975. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5976. if test -n "$ac_tool_prefix"; then
  5977. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5978. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5980. $as_echo_n "checking for $ac_word... " >&6; }
  5981. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5982. $as_echo_n "(cached) " >&6
  5983. else
  5984. if test -n "$STRIP"; then
  5985. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5986. else
  5987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5988. for as_dir in $PATH
  5989. do
  5990. IFS=$as_save_IFS
  5991. test -z "$as_dir" && as_dir=.
  5992. for ac_exec_ext in '' $ac_executable_extensions; do
  5993. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5994. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5995. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5996. break 2
  5997. fi
  5998. done
  5999. done
  6000. IFS=$as_save_IFS
  6001. fi
  6002. fi
  6003. STRIP=$ac_cv_prog_STRIP
  6004. if test -n "$STRIP"; then
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6006. $as_echo "$STRIP" >&6; }
  6007. else
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6009. $as_echo "no" >&6; }
  6010. fi
  6011. fi
  6012. if test -z "$ac_cv_prog_STRIP"; then
  6013. ac_ct_STRIP=$STRIP
  6014. # Extract the first word of "strip", so it can be a program name with args.
  6015. set dummy strip; ac_word=$2
  6016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6017. $as_echo_n "checking for $ac_word... " >&6; }
  6018. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  6019. $as_echo_n "(cached) " >&6
  6020. else
  6021. if test -n "$ac_ct_STRIP"; then
  6022. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6023. else
  6024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6025. for as_dir in $PATH
  6026. do
  6027. IFS=$as_save_IFS
  6028. test -z "$as_dir" && as_dir=.
  6029. for ac_exec_ext in '' $ac_executable_extensions; do
  6030. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6031. ac_cv_prog_ac_ct_STRIP="strip"
  6032. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6033. break 2
  6034. fi
  6035. done
  6036. done
  6037. IFS=$as_save_IFS
  6038. fi
  6039. fi
  6040. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6041. if test -n "$ac_ct_STRIP"; then
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6043. $as_echo "$ac_ct_STRIP" >&6; }
  6044. else
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6046. $as_echo "no" >&6; }
  6047. fi
  6048. if test "x$ac_ct_STRIP" = x; then
  6049. STRIP=":"
  6050. else
  6051. case $cross_compiling:$ac_tool_warned in
  6052. yes:)
  6053. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6054. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6055. ac_tool_warned=yes ;;
  6056. esac
  6057. STRIP=$ac_ct_STRIP
  6058. fi
  6059. else
  6060. STRIP="$ac_cv_prog_STRIP"
  6061. fi
  6062. test -z "$STRIP" && STRIP=:
  6063. if test -n "$ac_tool_prefix"; then
  6064. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6065. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6067. $as_echo_n "checking for $ac_word... " >&6; }
  6068. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. if test -n "$RANLIB"; then
  6072. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6073. else
  6074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6075. for as_dir in $PATH
  6076. do
  6077. IFS=$as_save_IFS
  6078. test -z "$as_dir" && as_dir=.
  6079. for ac_exec_ext in '' $ac_executable_extensions; do
  6080. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6081. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6083. break 2
  6084. fi
  6085. done
  6086. done
  6087. IFS=$as_save_IFS
  6088. fi
  6089. fi
  6090. RANLIB=$ac_cv_prog_RANLIB
  6091. if test -n "$RANLIB"; then
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6093. $as_echo "$RANLIB" >&6; }
  6094. else
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6096. $as_echo "no" >&6; }
  6097. fi
  6098. fi
  6099. if test -z "$ac_cv_prog_RANLIB"; then
  6100. ac_ct_RANLIB=$RANLIB
  6101. # Extract the first word of "ranlib", so it can be a program name with args.
  6102. set dummy ranlib; ac_word=$2
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6104. $as_echo_n "checking for $ac_word... " >&6; }
  6105. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6106. $as_echo_n "(cached) " >&6
  6107. else
  6108. if test -n "$ac_ct_RANLIB"; then
  6109. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6110. else
  6111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6112. for as_dir in $PATH
  6113. do
  6114. IFS=$as_save_IFS
  6115. test -z "$as_dir" && as_dir=.
  6116. for ac_exec_ext in '' $ac_executable_extensions; do
  6117. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6118. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6119. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6120. break 2
  6121. fi
  6122. done
  6123. done
  6124. IFS=$as_save_IFS
  6125. fi
  6126. fi
  6127. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6128. if test -n "$ac_ct_RANLIB"; then
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6130. $as_echo "$ac_ct_RANLIB" >&6; }
  6131. else
  6132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6133. $as_echo "no" >&6; }
  6134. fi
  6135. if test "x$ac_ct_RANLIB" = x; then
  6136. RANLIB=":"
  6137. else
  6138. case $cross_compiling:$ac_tool_warned in
  6139. yes:)
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6141. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6142. ac_tool_warned=yes ;;
  6143. esac
  6144. RANLIB=$ac_ct_RANLIB
  6145. fi
  6146. else
  6147. RANLIB="$ac_cv_prog_RANLIB"
  6148. fi
  6149. test -z "$RANLIB" && RANLIB=:
  6150. # Determine commands to create old-style static archives.
  6151. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6152. old_postinstall_cmds='chmod 644 $oldlib'
  6153. old_postuninstall_cmds=
  6154. if test -n "$RANLIB"; then
  6155. case $host_os in
  6156. openbsd*)
  6157. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6158. ;;
  6159. *)
  6160. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6161. ;;
  6162. esac
  6163. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6164. fi
  6165. # If no C compiler was specified, use CC.
  6166. LTCC=${LTCC-"$CC"}
  6167. # If no C compiler flags were specified, use CFLAGS.
  6168. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6169. # Allow CC to be a program name with arguments.
  6170. compiler=$CC
  6171. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6173. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6174. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  6175. $as_echo_n "(cached) " >&6
  6176. else
  6177. # These are sane defaults that work on at least a few old systems.
  6178. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6179. # Character class describing NM global symbol codes.
  6180. symcode='[BCDEGRST]'
  6181. # Regexp to match symbols that can be accessed directly from C.
  6182. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6183. # Define system-specific variables.
  6184. case $host_os in
  6185. aix*)
  6186. symcode='[BCDT]'
  6187. ;;
  6188. cygwin* | mingw* | pw32* | cegcc*)
  6189. symcode='[ABCDGISTW]'
  6190. ;;
  6191. hpux*)
  6192. if test "$host_cpu" = ia64; then
  6193. symcode='[ABCDEGRST]'
  6194. fi
  6195. ;;
  6196. irix* | nonstopux*)
  6197. symcode='[BCDEGRST]'
  6198. ;;
  6199. osf*)
  6200. symcode='[BCDEGQRST]'
  6201. ;;
  6202. solaris*)
  6203. symcode='[BDRT]'
  6204. ;;
  6205. sco3.2v5*)
  6206. symcode='[DT]'
  6207. ;;
  6208. sysv4.2uw2*)
  6209. symcode='[DT]'
  6210. ;;
  6211. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6212. symcode='[ABDT]'
  6213. ;;
  6214. sysv4)
  6215. symcode='[DFNSTU]'
  6216. ;;
  6217. esac
  6218. # If we're using GNU nm, then use its standard symbol codes.
  6219. case `$NM -V 2>&1` in
  6220. *GNU* | *'with BFD'*)
  6221. symcode='[ABCDGIRSTW]' ;;
  6222. esac
  6223. # Transform an extracted symbol line into a proper C declaration.
  6224. # Some systems (esp. on ia64) link data and code symbols differently,
  6225. # so use this general approach.
  6226. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6227. # Transform an extracted symbol line into symbol name and symbol address
  6228. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6229. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6230. # Handle CRLF in mingw tool chain
  6231. opt_cr=
  6232. case $build_os in
  6233. mingw*)
  6234. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6235. ;;
  6236. esac
  6237. # Try without a prefix underscore, then with it.
  6238. for ac_symprfx in "" "_"; do
  6239. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6240. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6241. # Write the raw and C identifiers.
  6242. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6243. # Fake it for dumpbin and say T for any non-static function
  6244. # and D for any global variable.
  6245. # Also find C++ and __fastcall symbols from MSVC++,
  6246. # which start with @ or ?.
  6247. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6248. " {last_section=section; section=\$ 3};"\
  6249. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6250. " \$ 0!~/External *\|/{next};"\
  6251. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6252. " {if(hide[section]) next};"\
  6253. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6254. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6255. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6256. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6257. " ' prfx=^$ac_symprfx"
  6258. else
  6259. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6260. fi
  6261. # Check to see that the pipe works correctly.
  6262. pipe_works=no
  6263. rm -f conftest*
  6264. cat > conftest.$ac_ext <<_LT_EOF
  6265. #ifdef __cplusplus
  6266. extern "C" {
  6267. #endif
  6268. char nm_test_var;
  6269. void nm_test_func(void);
  6270. void nm_test_func(void){}
  6271. #ifdef __cplusplus
  6272. }
  6273. #endif
  6274. int main(){nm_test_var='a';nm_test_func();return(0);}
  6275. _LT_EOF
  6276. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6277. (eval $ac_compile) 2>&5
  6278. ac_status=$?
  6279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6280. test $ac_status = 0; }; then
  6281. # Now try to grab the symbols.
  6282. nlist=conftest.nm
  6283. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  6284. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6285. ac_status=$?
  6286. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6287. test $ac_status = 0; } && test -s "$nlist"; then
  6288. # Try sorting and uniquifying the output.
  6289. if sort "$nlist" | uniq > "$nlist"T; then
  6290. mv -f "$nlist"T "$nlist"
  6291. else
  6292. rm -f "$nlist"T
  6293. fi
  6294. # Make sure that we snagged all the symbols we need.
  6295. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6296. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6297. cat <<_LT_EOF > conftest.$ac_ext
  6298. #ifdef __cplusplus
  6299. extern "C" {
  6300. #endif
  6301. _LT_EOF
  6302. # Now generate the symbol file.
  6303. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6304. cat <<_LT_EOF >> conftest.$ac_ext
  6305. /* The mapping between symbol names and symbols. */
  6306. const struct {
  6307. const char *name;
  6308. void *address;
  6309. }
  6310. lt__PROGRAM__LTX_preloaded_symbols[] =
  6311. {
  6312. { "@PROGRAM@", (void *) 0 },
  6313. _LT_EOF
  6314. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6315. cat <<\_LT_EOF >> conftest.$ac_ext
  6316. {0, (void *) 0}
  6317. };
  6318. /* This works around a problem in FreeBSD linker */
  6319. #ifdef FREEBSD_WORKAROUND
  6320. static const void *lt_preloaded_setup() {
  6321. return lt__PROGRAM__LTX_preloaded_symbols;
  6322. }
  6323. #endif
  6324. #ifdef __cplusplus
  6325. }
  6326. #endif
  6327. _LT_EOF
  6328. # Now try linking the two files.
  6329. mv conftest.$ac_objext conftstm.$ac_objext
  6330. lt_save_LIBS="$LIBS"
  6331. lt_save_CFLAGS="$CFLAGS"
  6332. LIBS="conftstm.$ac_objext"
  6333. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6334. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6335. (eval $ac_link) 2>&5
  6336. ac_status=$?
  6337. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6338. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6339. pipe_works=yes
  6340. fi
  6341. LIBS="$lt_save_LIBS"
  6342. CFLAGS="$lt_save_CFLAGS"
  6343. else
  6344. echo "cannot find nm_test_func in $nlist" >&5
  6345. fi
  6346. else
  6347. echo "cannot find nm_test_var in $nlist" >&5
  6348. fi
  6349. else
  6350. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6351. fi
  6352. else
  6353. echo "$progname: failed program was:" >&5
  6354. cat conftest.$ac_ext >&5
  6355. fi
  6356. rm -rf conftest* conftst*
  6357. # Do not use the global_symbol_pipe unless it works.
  6358. if test "$pipe_works" = yes; then
  6359. break
  6360. else
  6361. lt_cv_sys_global_symbol_pipe=
  6362. fi
  6363. done
  6364. fi
  6365. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6366. lt_cv_sys_global_symbol_to_cdecl=
  6367. fi
  6368. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6370. $as_echo "failed" >&6; }
  6371. else
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6373. $as_echo "ok" >&6; }
  6374. fi
  6375. # Check whether --enable-libtool-lock was given.
  6376. if test "${enable_libtool_lock+set}" = set; then :
  6377. enableval=$enable_libtool_lock;
  6378. fi
  6379. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6380. # Some flags need to be propagated to the compiler or linker for good
  6381. # libtool support.
  6382. case $host in
  6383. ia64-*-hpux*)
  6384. # Find out which ABI we are using.
  6385. echo 'int i;' > conftest.$ac_ext
  6386. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6387. (eval $ac_compile) 2>&5
  6388. ac_status=$?
  6389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6390. test $ac_status = 0; }; then
  6391. case `/usr/bin/file conftest.$ac_objext` in
  6392. *ELF-32*)
  6393. HPUX_IA64_MODE="32"
  6394. ;;
  6395. *ELF-64*)
  6396. HPUX_IA64_MODE="64"
  6397. ;;
  6398. esac
  6399. fi
  6400. rm -rf conftest*
  6401. ;;
  6402. *-*-irix6*)
  6403. # Find out which ABI we are using.
  6404. echo '#line 7235 "configure"' > conftest.$ac_ext
  6405. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6406. (eval $ac_compile) 2>&5
  6407. ac_status=$?
  6408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6409. test $ac_status = 0; }; then
  6410. if test "$lt_cv_prog_gnu_ld" = yes; then
  6411. case `/usr/bin/file conftest.$ac_objext` in
  6412. *32-bit*)
  6413. LD="${LD-ld} -melf32bsmip"
  6414. ;;
  6415. *N32*)
  6416. LD="${LD-ld} -melf32bmipn32"
  6417. ;;
  6418. *64-bit*)
  6419. LD="${LD-ld} -melf64bmip"
  6420. ;;
  6421. esac
  6422. else
  6423. case `/usr/bin/file conftest.$ac_objext` in
  6424. *32-bit*)
  6425. LD="${LD-ld} -32"
  6426. ;;
  6427. *N32*)
  6428. LD="${LD-ld} -n32"
  6429. ;;
  6430. *64-bit*)
  6431. LD="${LD-ld} -64"
  6432. ;;
  6433. esac
  6434. fi
  6435. fi
  6436. rm -rf conftest*
  6437. ;;
  6438. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6439. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6440. # Find out which ABI we are using.
  6441. echo 'int i;' > conftest.$ac_ext
  6442. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6443. (eval $ac_compile) 2>&5
  6444. ac_status=$?
  6445. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6446. test $ac_status = 0; }; then
  6447. case `/usr/bin/file conftest.o` in
  6448. *32-bit*)
  6449. case $host in
  6450. x86_64-*kfreebsd*-gnu)
  6451. LD="${LD-ld} -m elf_i386_fbsd"
  6452. ;;
  6453. x86_64-*linux*)
  6454. LD="${LD-ld} -m elf_i386"
  6455. ;;
  6456. ppc64-*linux*|powerpc64-*linux*)
  6457. LD="${LD-ld} -m elf32ppclinux"
  6458. ;;
  6459. s390x-*linux*)
  6460. LD="${LD-ld} -m elf_s390"
  6461. ;;
  6462. sparc64-*linux*)
  6463. LD="${LD-ld} -m elf32_sparc"
  6464. ;;
  6465. esac
  6466. ;;
  6467. *64-bit*)
  6468. case $host in
  6469. x86_64-*kfreebsd*-gnu)
  6470. LD="${LD-ld} -m elf_x86_64_fbsd"
  6471. ;;
  6472. x86_64-*linux*)
  6473. LD="${LD-ld} -m elf_x86_64"
  6474. ;;
  6475. ppc*-*linux*|powerpc*-*linux*)
  6476. LD="${LD-ld} -m elf64ppc"
  6477. ;;
  6478. s390*-*linux*|s390*-*tpf*)
  6479. LD="${LD-ld} -m elf64_s390"
  6480. ;;
  6481. sparc*-*linux*)
  6482. LD="${LD-ld} -m elf64_sparc"
  6483. ;;
  6484. esac
  6485. ;;
  6486. esac
  6487. fi
  6488. rm -rf conftest*
  6489. ;;
  6490. *-*-sco3.2v5*)
  6491. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6492. SAVE_CFLAGS="$CFLAGS"
  6493. CFLAGS="$CFLAGS -belf"
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6495. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6496. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6497. $as_echo_n "(cached) " >&6
  6498. else
  6499. ac_ext=c
  6500. ac_cpp='$CPP $CPPFLAGS'
  6501. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6502. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6503. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6505. /* end confdefs.h. */
  6506. int
  6507. main ()
  6508. {
  6509. ;
  6510. return 0;
  6511. }
  6512. _ACEOF
  6513. if ac_fn_c_try_link "$LINENO"; then :
  6514. lt_cv_cc_needs_belf=yes
  6515. else
  6516. lt_cv_cc_needs_belf=no
  6517. fi
  6518. rm -f core conftest.err conftest.$ac_objext \
  6519. conftest$ac_exeext conftest.$ac_ext
  6520. ac_ext=c
  6521. ac_cpp='$CPP $CPPFLAGS'
  6522. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6523. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6524. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6525. fi
  6526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6527. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6528. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6529. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6530. CFLAGS="$SAVE_CFLAGS"
  6531. fi
  6532. ;;
  6533. sparc*-*solaris*)
  6534. # Find out which ABI we are using.
  6535. echo 'int i;' > conftest.$ac_ext
  6536. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6537. (eval $ac_compile) 2>&5
  6538. ac_status=$?
  6539. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6540. test $ac_status = 0; }; then
  6541. case `/usr/bin/file conftest.o` in
  6542. *64-bit*)
  6543. case $lt_cv_prog_gnu_ld in
  6544. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6545. *)
  6546. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6547. LD="${LD-ld} -64"
  6548. fi
  6549. ;;
  6550. esac
  6551. ;;
  6552. esac
  6553. fi
  6554. rm -rf conftest*
  6555. ;;
  6556. esac
  6557. need_locks="$enable_libtool_lock"
  6558. case $host_os in
  6559. rhapsody* | darwin*)
  6560. if test -n "$ac_tool_prefix"; then
  6561. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6562. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6564. $as_echo_n "checking for $ac_word... " >&6; }
  6565. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6566. $as_echo_n "(cached) " >&6
  6567. else
  6568. if test -n "$DSYMUTIL"; then
  6569. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6570. else
  6571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6572. for as_dir in $PATH
  6573. do
  6574. IFS=$as_save_IFS
  6575. test -z "$as_dir" && as_dir=.
  6576. for ac_exec_ext in '' $ac_executable_extensions; do
  6577. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6578. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6580. break 2
  6581. fi
  6582. done
  6583. done
  6584. IFS=$as_save_IFS
  6585. fi
  6586. fi
  6587. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6588. if test -n "$DSYMUTIL"; then
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6590. $as_echo "$DSYMUTIL" >&6; }
  6591. else
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6593. $as_echo "no" >&6; }
  6594. fi
  6595. fi
  6596. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6597. ac_ct_DSYMUTIL=$DSYMUTIL
  6598. # Extract the first word of "dsymutil", so it can be a program name with args.
  6599. set dummy dsymutil; ac_word=$2
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6601. $as_echo_n "checking for $ac_word... " >&6; }
  6602. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6603. $as_echo_n "(cached) " >&6
  6604. else
  6605. if test -n "$ac_ct_DSYMUTIL"; then
  6606. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6607. else
  6608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6609. for as_dir in $PATH
  6610. do
  6611. IFS=$as_save_IFS
  6612. test -z "$as_dir" && as_dir=.
  6613. for ac_exec_ext in '' $ac_executable_extensions; do
  6614. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6615. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6617. break 2
  6618. fi
  6619. done
  6620. done
  6621. IFS=$as_save_IFS
  6622. fi
  6623. fi
  6624. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6625. if test -n "$ac_ct_DSYMUTIL"; then
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6627. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6628. else
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6630. $as_echo "no" >&6; }
  6631. fi
  6632. if test "x$ac_ct_DSYMUTIL" = x; then
  6633. DSYMUTIL=":"
  6634. else
  6635. case $cross_compiling:$ac_tool_warned in
  6636. yes:)
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6639. ac_tool_warned=yes ;;
  6640. esac
  6641. DSYMUTIL=$ac_ct_DSYMUTIL
  6642. fi
  6643. else
  6644. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6645. fi
  6646. if test -n "$ac_tool_prefix"; then
  6647. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6648. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6650. $as_echo_n "checking for $ac_word... " >&6; }
  6651. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6652. $as_echo_n "(cached) " >&6
  6653. else
  6654. if test -n "$NMEDIT"; then
  6655. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6656. else
  6657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6658. for as_dir in $PATH
  6659. do
  6660. IFS=$as_save_IFS
  6661. test -z "$as_dir" && as_dir=.
  6662. for ac_exec_ext in '' $ac_executable_extensions; do
  6663. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6664. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6666. break 2
  6667. fi
  6668. done
  6669. done
  6670. IFS=$as_save_IFS
  6671. fi
  6672. fi
  6673. NMEDIT=$ac_cv_prog_NMEDIT
  6674. if test -n "$NMEDIT"; then
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6676. $as_echo "$NMEDIT" >&6; }
  6677. else
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6679. $as_echo "no" >&6; }
  6680. fi
  6681. fi
  6682. if test -z "$ac_cv_prog_NMEDIT"; then
  6683. ac_ct_NMEDIT=$NMEDIT
  6684. # Extract the first word of "nmedit", so it can be a program name with args.
  6685. set dummy nmedit; ac_word=$2
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6687. $as_echo_n "checking for $ac_word... " >&6; }
  6688. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6689. $as_echo_n "(cached) " >&6
  6690. else
  6691. if test -n "$ac_ct_NMEDIT"; then
  6692. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6693. else
  6694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6695. for as_dir in $PATH
  6696. do
  6697. IFS=$as_save_IFS
  6698. test -z "$as_dir" && as_dir=.
  6699. for ac_exec_ext in '' $ac_executable_extensions; do
  6700. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6701. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6703. break 2
  6704. fi
  6705. done
  6706. done
  6707. IFS=$as_save_IFS
  6708. fi
  6709. fi
  6710. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6711. if test -n "$ac_ct_NMEDIT"; then
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6713. $as_echo "$ac_ct_NMEDIT" >&6; }
  6714. else
  6715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6716. $as_echo "no" >&6; }
  6717. fi
  6718. if test "x$ac_ct_NMEDIT" = x; then
  6719. NMEDIT=":"
  6720. else
  6721. case $cross_compiling:$ac_tool_warned in
  6722. yes:)
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6724. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6725. ac_tool_warned=yes ;;
  6726. esac
  6727. NMEDIT=$ac_ct_NMEDIT
  6728. fi
  6729. else
  6730. NMEDIT="$ac_cv_prog_NMEDIT"
  6731. fi
  6732. if test -n "$ac_tool_prefix"; then
  6733. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6734. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6736. $as_echo_n "checking for $ac_word... " >&6; }
  6737. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6738. $as_echo_n "(cached) " >&6
  6739. else
  6740. if test -n "$LIPO"; then
  6741. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6742. else
  6743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6744. for as_dir in $PATH
  6745. do
  6746. IFS=$as_save_IFS
  6747. test -z "$as_dir" && as_dir=.
  6748. for ac_exec_ext in '' $ac_executable_extensions; do
  6749. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6750. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6752. break 2
  6753. fi
  6754. done
  6755. done
  6756. IFS=$as_save_IFS
  6757. fi
  6758. fi
  6759. LIPO=$ac_cv_prog_LIPO
  6760. if test -n "$LIPO"; then
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6762. $as_echo "$LIPO" >&6; }
  6763. else
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6765. $as_echo "no" >&6; }
  6766. fi
  6767. fi
  6768. if test -z "$ac_cv_prog_LIPO"; then
  6769. ac_ct_LIPO=$LIPO
  6770. # Extract the first word of "lipo", so it can be a program name with args.
  6771. set dummy lipo; ac_word=$2
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6773. $as_echo_n "checking for $ac_word... " >&6; }
  6774. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6775. $as_echo_n "(cached) " >&6
  6776. else
  6777. if test -n "$ac_ct_LIPO"; then
  6778. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6779. else
  6780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6781. for as_dir in $PATH
  6782. do
  6783. IFS=$as_save_IFS
  6784. test -z "$as_dir" && as_dir=.
  6785. for ac_exec_ext in '' $ac_executable_extensions; do
  6786. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6787. ac_cv_prog_ac_ct_LIPO="lipo"
  6788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6789. break 2
  6790. fi
  6791. done
  6792. done
  6793. IFS=$as_save_IFS
  6794. fi
  6795. fi
  6796. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6797. if test -n "$ac_ct_LIPO"; then
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6799. $as_echo "$ac_ct_LIPO" >&6; }
  6800. else
  6801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6802. $as_echo "no" >&6; }
  6803. fi
  6804. if test "x$ac_ct_LIPO" = x; then
  6805. LIPO=":"
  6806. else
  6807. case $cross_compiling:$ac_tool_warned in
  6808. yes:)
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6810. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6811. ac_tool_warned=yes ;;
  6812. esac
  6813. LIPO=$ac_ct_LIPO
  6814. fi
  6815. else
  6816. LIPO="$ac_cv_prog_LIPO"
  6817. fi
  6818. if test -n "$ac_tool_prefix"; then
  6819. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6820. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6822. $as_echo_n "checking for $ac_word... " >&6; }
  6823. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6824. $as_echo_n "(cached) " >&6
  6825. else
  6826. if test -n "$OTOOL"; then
  6827. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6828. else
  6829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6830. for as_dir in $PATH
  6831. do
  6832. IFS=$as_save_IFS
  6833. test -z "$as_dir" && as_dir=.
  6834. for ac_exec_ext in '' $ac_executable_extensions; do
  6835. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6836. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6838. break 2
  6839. fi
  6840. done
  6841. done
  6842. IFS=$as_save_IFS
  6843. fi
  6844. fi
  6845. OTOOL=$ac_cv_prog_OTOOL
  6846. if test -n "$OTOOL"; then
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6848. $as_echo "$OTOOL" >&6; }
  6849. else
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6851. $as_echo "no" >&6; }
  6852. fi
  6853. fi
  6854. if test -z "$ac_cv_prog_OTOOL"; then
  6855. ac_ct_OTOOL=$OTOOL
  6856. # Extract the first word of "otool", so it can be a program name with args.
  6857. set dummy otool; ac_word=$2
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6859. $as_echo_n "checking for $ac_word... " >&6; }
  6860. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6861. $as_echo_n "(cached) " >&6
  6862. else
  6863. if test -n "$ac_ct_OTOOL"; then
  6864. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6865. else
  6866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6867. for as_dir in $PATH
  6868. do
  6869. IFS=$as_save_IFS
  6870. test -z "$as_dir" && as_dir=.
  6871. for ac_exec_ext in '' $ac_executable_extensions; do
  6872. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6873. ac_cv_prog_ac_ct_OTOOL="otool"
  6874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6875. break 2
  6876. fi
  6877. done
  6878. done
  6879. IFS=$as_save_IFS
  6880. fi
  6881. fi
  6882. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6883. if test -n "$ac_ct_OTOOL"; then
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6885. $as_echo "$ac_ct_OTOOL" >&6; }
  6886. else
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6888. $as_echo "no" >&6; }
  6889. fi
  6890. if test "x$ac_ct_OTOOL" = x; then
  6891. OTOOL=":"
  6892. else
  6893. case $cross_compiling:$ac_tool_warned in
  6894. yes:)
  6895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6896. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6897. ac_tool_warned=yes ;;
  6898. esac
  6899. OTOOL=$ac_ct_OTOOL
  6900. fi
  6901. else
  6902. OTOOL="$ac_cv_prog_OTOOL"
  6903. fi
  6904. if test -n "$ac_tool_prefix"; then
  6905. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6906. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6908. $as_echo_n "checking for $ac_word... " >&6; }
  6909. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6910. $as_echo_n "(cached) " >&6
  6911. else
  6912. if test -n "$OTOOL64"; then
  6913. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6914. else
  6915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6916. for as_dir in $PATH
  6917. do
  6918. IFS=$as_save_IFS
  6919. test -z "$as_dir" && as_dir=.
  6920. for ac_exec_ext in '' $ac_executable_extensions; do
  6921. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6922. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6924. break 2
  6925. fi
  6926. done
  6927. done
  6928. IFS=$as_save_IFS
  6929. fi
  6930. fi
  6931. OTOOL64=$ac_cv_prog_OTOOL64
  6932. if test -n "$OTOOL64"; then
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6934. $as_echo "$OTOOL64" >&6; }
  6935. else
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6937. $as_echo "no" >&6; }
  6938. fi
  6939. fi
  6940. if test -z "$ac_cv_prog_OTOOL64"; then
  6941. ac_ct_OTOOL64=$OTOOL64
  6942. # Extract the first word of "otool64", so it can be a program name with args.
  6943. set dummy otool64; ac_word=$2
  6944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6945. $as_echo_n "checking for $ac_word... " >&6; }
  6946. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6947. $as_echo_n "(cached) " >&6
  6948. else
  6949. if test -n "$ac_ct_OTOOL64"; then
  6950. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6951. else
  6952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6953. for as_dir in $PATH
  6954. do
  6955. IFS=$as_save_IFS
  6956. test -z "$as_dir" && as_dir=.
  6957. for ac_exec_ext in '' $ac_executable_extensions; do
  6958. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6959. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6960. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6961. break 2
  6962. fi
  6963. done
  6964. done
  6965. IFS=$as_save_IFS
  6966. fi
  6967. fi
  6968. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6969. if test -n "$ac_ct_OTOOL64"; then
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6971. $as_echo "$ac_ct_OTOOL64" >&6; }
  6972. else
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6974. $as_echo "no" >&6; }
  6975. fi
  6976. if test "x$ac_ct_OTOOL64" = x; then
  6977. OTOOL64=":"
  6978. else
  6979. case $cross_compiling:$ac_tool_warned in
  6980. yes:)
  6981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6982. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6983. ac_tool_warned=yes ;;
  6984. esac
  6985. OTOOL64=$ac_ct_OTOOL64
  6986. fi
  6987. else
  6988. OTOOL64="$ac_cv_prog_OTOOL64"
  6989. fi
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6991. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6992. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6993. $as_echo_n "(cached) " >&6
  6994. else
  6995. lt_cv_apple_cc_single_mod=no
  6996. if test -z "${LT_MULTI_MODULE}"; then
  6997. # By default we will add the -single_module flag. You can override
  6998. # by either setting the environment variable LT_MULTI_MODULE
  6999. # non-empty at configure time, or by adding -multi_module to the
  7000. # link flags.
  7001. rm -rf libconftest.dylib*
  7002. echo "int foo(void){return 1;}" > conftest.c
  7003. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7004. -dynamiclib -Wl,-single_module conftest.c" >&5
  7005. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7006. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7007. _lt_result=$?
  7008. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7009. lt_cv_apple_cc_single_mod=yes
  7010. else
  7011. cat conftest.err >&5
  7012. fi
  7013. rm -rf libconftest.dylib*
  7014. rm -f conftest.*
  7015. fi
  7016. fi
  7017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7018. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7020. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7021. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  7022. $as_echo_n "(cached) " >&6
  7023. else
  7024. lt_cv_ld_exported_symbols_list=no
  7025. save_LDFLAGS=$LDFLAGS
  7026. echo "_main" > conftest.sym
  7027. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7029. /* end confdefs.h. */
  7030. int
  7031. main ()
  7032. {
  7033. ;
  7034. return 0;
  7035. }
  7036. _ACEOF
  7037. if ac_fn_c_try_link "$LINENO"; then :
  7038. lt_cv_ld_exported_symbols_list=yes
  7039. else
  7040. lt_cv_ld_exported_symbols_list=no
  7041. fi
  7042. rm -f core conftest.err conftest.$ac_objext \
  7043. conftest$ac_exeext conftest.$ac_ext
  7044. LDFLAGS="$save_LDFLAGS"
  7045. fi
  7046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7047. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7048. case $host_os in
  7049. rhapsody* | darwin1.[012])
  7050. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7051. darwin1.*)
  7052. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7053. darwin*) # darwin 5.x on
  7054. # if running on 10.5 or later, the deployment target defaults
  7055. # to the OS version, if on x86, and 10.4, the deployment
  7056. # target defaults to 10.4. Don't you love it?
  7057. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7058. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7059. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7060. 10.[012]*)
  7061. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7062. 10.*)
  7063. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7064. esac
  7065. ;;
  7066. esac
  7067. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7068. _lt_dar_single_mod='$single_module'
  7069. fi
  7070. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7071. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7072. else
  7073. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7074. fi
  7075. if test "$DSYMUTIL" != ":"; then
  7076. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7077. else
  7078. _lt_dsymutil=
  7079. fi
  7080. ;;
  7081. esac
  7082. for ac_header in dlfcn.h
  7083. do :
  7084. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7085. "
  7086. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7087. cat >>confdefs.h <<_ACEOF
  7088. #define HAVE_DLFCN_H 1
  7089. _ACEOF
  7090. fi
  7091. done
  7092. ac_ext=cpp
  7093. ac_cpp='$CXXCPP $CPPFLAGS'
  7094. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7095. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7096. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7097. if test -z "$CXX"; then
  7098. if test -n "$CCC"; then
  7099. CXX=$CCC
  7100. else
  7101. if test -n "$ac_tool_prefix"; then
  7102. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7103. do
  7104. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7105. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7107. $as_echo_n "checking for $ac_word... " >&6; }
  7108. if test "${ac_cv_prog_CXX+set}" = set; then :
  7109. $as_echo_n "(cached) " >&6
  7110. else
  7111. if test -n "$CXX"; then
  7112. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  7113. else
  7114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7115. for as_dir in $PATH
  7116. do
  7117. IFS=$as_save_IFS
  7118. test -z "$as_dir" && as_dir=.
  7119. for ac_exec_ext in '' $ac_executable_extensions; do
  7120. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7121. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  7122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7123. break 2
  7124. fi
  7125. done
  7126. done
  7127. IFS=$as_save_IFS
  7128. fi
  7129. fi
  7130. CXX=$ac_cv_prog_CXX
  7131. if test -n "$CXX"; then
  7132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  7133. $as_echo "$CXX" >&6; }
  7134. else
  7135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7136. $as_echo "no" >&6; }
  7137. fi
  7138. test -n "$CXX" && break
  7139. done
  7140. fi
  7141. if test -z "$CXX"; then
  7142. ac_ct_CXX=$CXX
  7143. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7144. do
  7145. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7146. set dummy $ac_prog; ac_word=$2
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7148. $as_echo_n "checking for $ac_word... " >&6; }
  7149. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  7150. $as_echo_n "(cached) " >&6
  7151. else
  7152. if test -n "$ac_ct_CXX"; then
  7153. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  7154. else
  7155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7156. for as_dir in $PATH
  7157. do
  7158. IFS=$as_save_IFS
  7159. test -z "$as_dir" && as_dir=.
  7160. for ac_exec_ext in '' $ac_executable_extensions; do
  7161. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7162. ac_cv_prog_ac_ct_CXX="$ac_prog"
  7163. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7164. break 2
  7165. fi
  7166. done
  7167. done
  7168. IFS=$as_save_IFS
  7169. fi
  7170. fi
  7171. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  7172. if test -n "$ac_ct_CXX"; then
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  7174. $as_echo "$ac_ct_CXX" >&6; }
  7175. else
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7177. $as_echo "no" >&6; }
  7178. fi
  7179. test -n "$ac_ct_CXX" && break
  7180. done
  7181. if test "x$ac_ct_CXX" = x; then
  7182. CXX="g++"
  7183. else
  7184. case $cross_compiling:$ac_tool_warned in
  7185. yes:)
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7187. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7188. ac_tool_warned=yes ;;
  7189. esac
  7190. CXX=$ac_ct_CXX
  7191. fi
  7192. fi
  7193. fi
  7194. fi
  7195. # Provide some information about the compiler.
  7196. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  7197. set X $ac_compile
  7198. ac_compiler=$2
  7199. for ac_option in --version -v -V -qversion; do
  7200. { { ac_try="$ac_compiler $ac_option >&5"
  7201. case "(($ac_try" in
  7202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7203. *) ac_try_echo=$ac_try;;
  7204. esac
  7205. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7206. $as_echo "$ac_try_echo"; } >&5
  7207. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  7208. ac_status=$?
  7209. if test -s conftest.err; then
  7210. sed '10a\
  7211. ... rest of stderr output deleted ...
  7212. 10q' conftest.err >conftest.er1
  7213. cat conftest.er1 >&5
  7214. fi
  7215. rm -f conftest.er1 conftest.err
  7216. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7217. test $ac_status = 0; }
  7218. done
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  7220. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  7221. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  7222. $as_echo_n "(cached) " >&6
  7223. else
  7224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7225. /* end confdefs.h. */
  7226. int
  7227. main ()
  7228. {
  7229. #ifndef __GNUC__
  7230. choke me
  7231. #endif
  7232. ;
  7233. return 0;
  7234. }
  7235. _ACEOF
  7236. if ac_fn_cxx_try_compile "$LINENO"; then :
  7237. ac_compiler_gnu=yes
  7238. else
  7239. ac_compiler_gnu=no
  7240. fi
  7241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7242. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  7243. fi
  7244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  7245. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  7246. if test $ac_compiler_gnu = yes; then
  7247. GXX=yes
  7248. else
  7249. GXX=
  7250. fi
  7251. ac_test_CXXFLAGS=${CXXFLAGS+set}
  7252. ac_save_CXXFLAGS=$CXXFLAGS
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  7254. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  7255. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  7256. $as_echo_n "(cached) " >&6
  7257. else
  7258. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  7259. ac_cxx_werror_flag=yes
  7260. ac_cv_prog_cxx_g=no
  7261. CXXFLAGS="-g"
  7262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7263. /* end confdefs.h. */
  7264. int
  7265. main ()
  7266. {
  7267. ;
  7268. return 0;
  7269. }
  7270. _ACEOF
  7271. if ac_fn_cxx_try_compile "$LINENO"; then :
  7272. ac_cv_prog_cxx_g=yes
  7273. else
  7274. CXXFLAGS=""
  7275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7276. /* end confdefs.h. */
  7277. int
  7278. main ()
  7279. {
  7280. ;
  7281. return 0;
  7282. }
  7283. _ACEOF
  7284. if ac_fn_cxx_try_compile "$LINENO"; then :
  7285. else
  7286. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7287. CXXFLAGS="-g"
  7288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7289. /* end confdefs.h. */
  7290. int
  7291. main ()
  7292. {
  7293. ;
  7294. return 0;
  7295. }
  7296. _ACEOF
  7297. if ac_fn_cxx_try_compile "$LINENO"; then :
  7298. ac_cv_prog_cxx_g=yes
  7299. fi
  7300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7301. fi
  7302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7303. fi
  7304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7305. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7306. fi
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  7308. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  7309. if test "$ac_test_CXXFLAGS" = set; then
  7310. CXXFLAGS=$ac_save_CXXFLAGS
  7311. elif test $ac_cv_prog_cxx_g = yes; then
  7312. if test "$GXX" = yes; then
  7313. CXXFLAGS="-g -O2"
  7314. else
  7315. CXXFLAGS="-g"
  7316. fi
  7317. else
  7318. if test "$GXX" = yes; then
  7319. CXXFLAGS="-O2"
  7320. else
  7321. CXXFLAGS=
  7322. fi
  7323. fi
  7324. ac_ext=cpp
  7325. ac_cpp='$CXXCPP $CPPFLAGS'
  7326. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7327. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7328. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7329. depcc="$CXX" am_compiler_list=
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  7331. $as_echo_n "checking dependency style of $depcc... " >&6; }
  7332. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  7333. $as_echo_n "(cached) " >&6
  7334. else
  7335. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7336. # We make a subdir and do the tests there. Otherwise we can end up
  7337. # making bogus files that we don't know about and never remove. For
  7338. # instance it was reported that on HP-UX the gcc test will end up
  7339. # making a dummy file named `D' -- because `-MD' means `put the output
  7340. # in D'.
  7341. mkdir conftest.dir
  7342. # Copy depcomp to subdir because otherwise we won't find it if we're
  7343. # using a relative directory.
  7344. cp "$am_depcomp" conftest.dir
  7345. cd conftest.dir
  7346. # We will build objects and dependencies in a subdirectory because
  7347. # it helps to detect inapplicable dependency modes. For instance
  7348. # both Tru64's cc and ICC support -MD to output dependencies as a
  7349. # side effect of compilation, but ICC will put the dependencies in
  7350. # the current directory while Tru64 will put them in the object
  7351. # directory.
  7352. mkdir sub
  7353. am_cv_CXX_dependencies_compiler_type=none
  7354. if test "$am_compiler_list" = ""; then
  7355. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7356. fi
  7357. am__universal=false
  7358. case " $depcc " in #(
  7359. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7360. esac
  7361. for depmode in $am_compiler_list; do
  7362. # Setup a source with many dependencies, because some compilers
  7363. # like to wrap large dependency lists on column 80 (with \), and
  7364. # we should not choose a depcomp mode which is confused by this.
  7365. #
  7366. # We need to recreate these files for each test, as the compiler may
  7367. # overwrite some of them when testing with obscure command lines.
  7368. # This happens at least with the AIX C compiler.
  7369. : > sub/conftest.c
  7370. for i in 1 2 3 4 5 6; do
  7371. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7372. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7373. # Solaris 8's {/usr,}/bin/sh.
  7374. touch sub/conftst$i.h
  7375. done
  7376. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7377. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7378. # mode. It turns out that the SunPro C++ compiler does not properly
  7379. # handle `-M -o', and we need to detect this. Also, some Intel
  7380. # versions had trouble with output in subdirs
  7381. am__obj=sub/conftest.${OBJEXT-o}
  7382. am__minus_obj="-o $am__obj"
  7383. case $depmode in
  7384. gcc)
  7385. # This depmode causes a compiler race in universal mode.
  7386. test "$am__universal" = false || continue
  7387. ;;
  7388. nosideeffect)
  7389. # after this tag, mechanisms are not by side-effect, so they'll
  7390. # only be used when explicitly requested
  7391. if test "x$enable_dependency_tracking" = xyes; then
  7392. continue
  7393. else
  7394. break
  7395. fi
  7396. ;;
  7397. msvisualcpp | msvcmsys)
  7398. # This compiler won't grok `-c -o', but also, the minuso test has
  7399. # not run yet. These depmodes are late enough in the game, and
  7400. # so weak that their functioning should not be impacted.
  7401. am__obj=conftest.${OBJEXT-o}
  7402. am__minus_obj=
  7403. ;;
  7404. none) break ;;
  7405. esac
  7406. if depmode=$depmode \
  7407. source=sub/conftest.c object=$am__obj \
  7408. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7409. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7410. >/dev/null 2>conftest.err &&
  7411. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7412. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7413. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7414. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7415. # icc doesn't choke on unknown options, it will just issue warnings
  7416. # or remarks (even with -Werror). So we grep stderr for any message
  7417. # that says an option was ignored or not supported.
  7418. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7419. # icc: Command line warning: ignoring option '-M'; no argument required
  7420. # The diagnosis changed in icc 8.0:
  7421. # icc: Command line remark: option '-MP' not supported
  7422. if (grep 'ignoring option' conftest.err ||
  7423. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7424. am_cv_CXX_dependencies_compiler_type=$depmode
  7425. break
  7426. fi
  7427. fi
  7428. done
  7429. cd ..
  7430. rm -rf conftest.dir
  7431. else
  7432. am_cv_CXX_dependencies_compiler_type=none
  7433. fi
  7434. fi
  7435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  7436. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  7437. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  7438. if
  7439. test "x$enable_dependency_tracking" != xno \
  7440. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  7441. am__fastdepCXX_TRUE=
  7442. am__fastdepCXX_FALSE='#'
  7443. else
  7444. am__fastdepCXX_TRUE='#'
  7445. am__fastdepCXX_FALSE=
  7446. fi
  7447. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7448. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7449. (test "X$CXX" != "Xg++"))) ; then
  7450. ac_ext=cpp
  7451. ac_cpp='$CXXCPP $CPPFLAGS'
  7452. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7453. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7454. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  7456. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  7457. if test -z "$CXXCPP"; then
  7458. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  7459. $as_echo_n "(cached) " >&6
  7460. else
  7461. # Double quotes because CXXCPP needs to be expanded
  7462. for CXXCPP in "$CXX -E" "/lib/cpp"
  7463. do
  7464. ac_preproc_ok=false
  7465. for ac_cxx_preproc_warn_flag in '' yes
  7466. do
  7467. # Use a header file that comes with gcc, so configuring glibc
  7468. # with a fresh cross-compiler works.
  7469. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7470. # <limits.h> exists even on freestanding compilers.
  7471. # On the NeXT, cc -E runs the code through the compiler's parser,
  7472. # not just through cpp. "Syntax error" is here to catch this case.
  7473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7474. /* end confdefs.h. */
  7475. #ifdef __STDC__
  7476. # include <limits.h>
  7477. #else
  7478. # include <assert.h>
  7479. #endif
  7480. Syntax error
  7481. _ACEOF
  7482. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7483. else
  7484. # Broken: fails on valid input.
  7485. continue
  7486. fi
  7487. rm -f conftest.err conftest.$ac_ext
  7488. # OK, works on sane cases. Now check whether nonexistent headers
  7489. # can be detected and how.
  7490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7491. /* end confdefs.h. */
  7492. #include <ac_nonexistent.h>
  7493. _ACEOF
  7494. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7495. # Broken: success on invalid input.
  7496. continue
  7497. else
  7498. # Passes both tests.
  7499. ac_preproc_ok=:
  7500. break
  7501. fi
  7502. rm -f conftest.err conftest.$ac_ext
  7503. done
  7504. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7505. rm -f conftest.err conftest.$ac_ext
  7506. if $ac_preproc_ok; then :
  7507. break
  7508. fi
  7509. done
  7510. ac_cv_prog_CXXCPP=$CXXCPP
  7511. fi
  7512. CXXCPP=$ac_cv_prog_CXXCPP
  7513. else
  7514. ac_cv_prog_CXXCPP=$CXXCPP
  7515. fi
  7516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  7517. $as_echo "$CXXCPP" >&6; }
  7518. ac_preproc_ok=false
  7519. for ac_cxx_preproc_warn_flag in '' yes
  7520. do
  7521. # Use a header file that comes with gcc, so configuring glibc
  7522. # with a fresh cross-compiler works.
  7523. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7524. # <limits.h> exists even on freestanding compilers.
  7525. # On the NeXT, cc -E runs the code through the compiler's parser,
  7526. # not just through cpp. "Syntax error" is here to catch this case.
  7527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7528. /* end confdefs.h. */
  7529. #ifdef __STDC__
  7530. # include <limits.h>
  7531. #else
  7532. # include <assert.h>
  7533. #endif
  7534. Syntax error
  7535. _ACEOF
  7536. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7537. else
  7538. # Broken: fails on valid input.
  7539. continue
  7540. fi
  7541. rm -f conftest.err conftest.$ac_ext
  7542. # OK, works on sane cases. Now check whether nonexistent headers
  7543. # can be detected and how.
  7544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7545. /* end confdefs.h. */
  7546. #include <ac_nonexistent.h>
  7547. _ACEOF
  7548. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7549. # Broken: success on invalid input.
  7550. continue
  7551. else
  7552. # Passes both tests.
  7553. ac_preproc_ok=:
  7554. break
  7555. fi
  7556. rm -f conftest.err conftest.$ac_ext
  7557. done
  7558. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7559. rm -f conftest.err conftest.$ac_ext
  7560. if $ac_preproc_ok; then :
  7561. else
  7562. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7563. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7564. _lt_caught_CXX_error=yes; }
  7565. fi
  7566. ac_ext=cpp
  7567. ac_cpp='$CXXCPP $CPPFLAGS'
  7568. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7569. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7570. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7571. else
  7572. _lt_caught_CXX_error=yes
  7573. fi
  7574. # Set options
  7575. enable_dlopen=no
  7576. # Check whether --enable-shared was given.
  7577. if test "${enable_shared+set}" = set; then :
  7578. enableval=$enable_shared; p=${PACKAGE-default}
  7579. case $enableval in
  7580. yes) enable_shared=yes ;;
  7581. no) enable_shared=no ;;
  7582. *)
  7583. enable_shared=no
  7584. # Look at the argument we got. We use all the common list separators.
  7585. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7586. for pkg in $enableval; do
  7587. IFS="$lt_save_ifs"
  7588. if test "X$pkg" = "X$p"; then
  7589. enable_shared=yes
  7590. fi
  7591. done
  7592. IFS="$lt_save_ifs"
  7593. ;;
  7594. esac
  7595. else
  7596. enable_shared=yes
  7597. fi
  7598. # Check whether --with-pic was given.
  7599. if test "${with_pic+set}" = set; then :
  7600. withval=$with_pic; pic_mode="$withval"
  7601. else
  7602. pic_mode=default
  7603. fi
  7604. test -z "$pic_mode" && pic_mode=default
  7605. # Check whether --enable-fast-install was given.
  7606. if test "${enable_fast_install+set}" = set; then :
  7607. enableval=$enable_fast_install; p=${PACKAGE-default}
  7608. case $enableval in
  7609. yes) enable_fast_install=yes ;;
  7610. no) enable_fast_install=no ;;
  7611. *)
  7612. enable_fast_install=no
  7613. # Look at the argument we got. We use all the common list separators.
  7614. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7615. for pkg in $enableval; do
  7616. IFS="$lt_save_ifs"
  7617. if test "X$pkg" = "X$p"; then
  7618. enable_fast_install=yes
  7619. fi
  7620. done
  7621. IFS="$lt_save_ifs"
  7622. ;;
  7623. esac
  7624. else
  7625. enable_fast_install=yes
  7626. fi
  7627. # This can be used to rebuild libtool when needed
  7628. LIBTOOL_DEPS="$ltmain"
  7629. # Always use our own libtool.
  7630. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7631. test -z "$LN_S" && LN_S="ln -s"
  7632. if test -n "${ZSH_VERSION+set}" ; then
  7633. setopt NO_GLOB_SUBST
  7634. fi
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7636. $as_echo_n "checking for objdir... " >&6; }
  7637. if test "${lt_cv_objdir+set}" = set; then :
  7638. $as_echo_n "(cached) " >&6
  7639. else
  7640. rm -f .libs 2>/dev/null
  7641. mkdir .libs 2>/dev/null
  7642. if test -d .libs; then
  7643. lt_cv_objdir=.libs
  7644. else
  7645. # MS-DOS does not allow filenames that begin with a dot.
  7646. lt_cv_objdir=_libs
  7647. fi
  7648. rmdir .libs 2>/dev/null
  7649. fi
  7650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7651. $as_echo "$lt_cv_objdir" >&6; }
  7652. objdir=$lt_cv_objdir
  7653. cat >>confdefs.h <<_ACEOF
  7654. #define LT_OBJDIR "$lt_cv_objdir/"
  7655. _ACEOF
  7656. case $host_os in
  7657. aix3*)
  7658. # AIX sometimes has problems with the GCC collect2 program. For some
  7659. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7660. # vanish in a puff of smoke.
  7661. if test "X${COLLECT_NAMES+set}" != Xset; then
  7662. COLLECT_NAMES=
  7663. export COLLECT_NAMES
  7664. fi
  7665. ;;
  7666. esac
  7667. # Sed substitution that helps us do robust quoting. It backslashifies
  7668. # metacharacters that are still active within double-quoted strings.
  7669. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7670. # Same as above, but do not quote variable references.
  7671. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7672. # Sed substitution to delay expansion of an escaped shell variable in a
  7673. # double_quote_subst'ed string.
  7674. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7675. # Sed substitution to delay expansion of an escaped single quote.
  7676. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7677. # Sed substitution to avoid accidental globbing in evaled expressions
  7678. no_glob_subst='s/\*/\\\*/g'
  7679. # Global variables:
  7680. ofile=libtool
  7681. can_build_shared=yes
  7682. # All known linkers require a `.a' archive for static linking (except MSVC,
  7683. # which needs '.lib').
  7684. libext=a
  7685. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7686. old_CC="$CC"
  7687. old_CFLAGS="$CFLAGS"
  7688. # Set sane defaults for various variables
  7689. test -z "$CC" && CC=cc
  7690. test -z "$LTCC" && LTCC=$CC
  7691. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7692. test -z "$LD" && LD=ld
  7693. test -z "$ac_objext" && ac_objext=o
  7694. for cc_temp in $compiler""; do
  7695. case $cc_temp in
  7696. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7697. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7698. \-*) ;;
  7699. *) break;;
  7700. esac
  7701. done
  7702. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7703. # Only perform the check for file, if the check method requires it
  7704. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7705. case $deplibs_check_method in
  7706. file_magic*)
  7707. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7709. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7710. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7711. $as_echo_n "(cached) " >&6
  7712. else
  7713. case $MAGIC_CMD in
  7714. [\\/*] | ?:[\\/]*)
  7715. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7716. ;;
  7717. *)
  7718. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7719. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7720. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7721. for ac_dir in $ac_dummy; do
  7722. IFS="$lt_save_ifs"
  7723. test -z "$ac_dir" && ac_dir=.
  7724. if test -f $ac_dir/${ac_tool_prefix}file; then
  7725. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7726. if test -n "$file_magic_test_file"; then
  7727. case $deplibs_check_method in
  7728. "file_magic "*)
  7729. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7730. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7731. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7732. $EGREP "$file_magic_regex" > /dev/null; then
  7733. :
  7734. else
  7735. cat <<_LT_EOF 1>&2
  7736. *** Warning: the command libtool uses to detect shared libraries,
  7737. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7738. *** The result is that libtool may fail to recognize shared libraries
  7739. *** as such. This will affect the creation of libtool libraries that
  7740. *** depend on shared libraries, but programs linked with such libtool
  7741. *** libraries will work regardless of this problem. Nevertheless, you
  7742. *** may want to report the problem to your system manager and/or to
  7743. *** bug-libtool@gnu.org
  7744. _LT_EOF
  7745. fi ;;
  7746. esac
  7747. fi
  7748. break
  7749. fi
  7750. done
  7751. IFS="$lt_save_ifs"
  7752. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7753. ;;
  7754. esac
  7755. fi
  7756. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7757. if test -n "$MAGIC_CMD"; then
  7758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7759. $as_echo "$MAGIC_CMD" >&6; }
  7760. else
  7761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7762. $as_echo "no" >&6; }
  7763. fi
  7764. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7765. if test -n "$ac_tool_prefix"; then
  7766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7767. $as_echo_n "checking for file... " >&6; }
  7768. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7769. $as_echo_n "(cached) " >&6
  7770. else
  7771. case $MAGIC_CMD in
  7772. [\\/*] | ?:[\\/]*)
  7773. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7774. ;;
  7775. *)
  7776. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7777. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7778. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7779. for ac_dir in $ac_dummy; do
  7780. IFS="$lt_save_ifs"
  7781. test -z "$ac_dir" && ac_dir=.
  7782. if test -f $ac_dir/file; then
  7783. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7784. if test -n "$file_magic_test_file"; then
  7785. case $deplibs_check_method in
  7786. "file_magic "*)
  7787. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7788. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7789. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7790. $EGREP "$file_magic_regex" > /dev/null; then
  7791. :
  7792. else
  7793. cat <<_LT_EOF 1>&2
  7794. *** Warning: the command libtool uses to detect shared libraries,
  7795. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7796. *** The result is that libtool may fail to recognize shared libraries
  7797. *** as such. This will affect the creation of libtool libraries that
  7798. *** depend on shared libraries, but programs linked with such libtool
  7799. *** libraries will work regardless of this problem. Nevertheless, you
  7800. *** may want to report the problem to your system manager and/or to
  7801. *** bug-libtool@gnu.org
  7802. _LT_EOF
  7803. fi ;;
  7804. esac
  7805. fi
  7806. break
  7807. fi
  7808. done
  7809. IFS="$lt_save_ifs"
  7810. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7811. ;;
  7812. esac
  7813. fi
  7814. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7815. if test -n "$MAGIC_CMD"; then
  7816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7817. $as_echo "$MAGIC_CMD" >&6; }
  7818. else
  7819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7820. $as_echo "no" >&6; }
  7821. fi
  7822. else
  7823. MAGIC_CMD=:
  7824. fi
  7825. fi
  7826. fi
  7827. ;;
  7828. esac
  7829. # Use C for the default configuration in the libtool script
  7830. lt_save_CC="$CC"
  7831. ac_ext=c
  7832. ac_cpp='$CPP $CPPFLAGS'
  7833. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7834. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7835. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7836. # Source file extension for C test sources.
  7837. ac_ext=c
  7838. # Object file extension for compiled C test sources.
  7839. objext=o
  7840. objext=$objext
  7841. # Code to be used in simple compile tests
  7842. lt_simple_compile_test_code="int some_variable = 0;"
  7843. # Code to be used in simple link tests
  7844. lt_simple_link_test_code='int main(){return(0);}'
  7845. # If no C compiler was specified, use CC.
  7846. LTCC=${LTCC-"$CC"}
  7847. # If no C compiler flags were specified, use CFLAGS.
  7848. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7849. # Allow CC to be a program name with arguments.
  7850. compiler=$CC
  7851. # Save the default compiler, since it gets overwritten when the other
  7852. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7853. compiler_DEFAULT=$CC
  7854. # save warnings/boilerplate of simple test code
  7855. ac_outfile=conftest.$ac_objext
  7856. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7857. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7858. _lt_compiler_boilerplate=`cat conftest.err`
  7859. $RM conftest*
  7860. ac_outfile=conftest.$ac_objext
  7861. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7862. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7863. _lt_linker_boilerplate=`cat conftest.err`
  7864. $RM -r conftest*
  7865. if test -n "$compiler"; then
  7866. lt_prog_compiler_no_builtin_flag=
  7867. if test "$GCC" = yes; then
  7868. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7870. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7871. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7872. $as_echo_n "(cached) " >&6
  7873. else
  7874. lt_cv_prog_compiler_rtti_exceptions=no
  7875. ac_outfile=conftest.$ac_objext
  7876. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7877. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7878. # Insert the option either (1) after the last *FLAGS variable, or
  7879. # (2) before a word containing "conftest.", or (3) at the end.
  7880. # Note that $ac_compile itself does not contain backslashes and begins
  7881. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7882. # The option is referenced via a variable to avoid confusing sed.
  7883. lt_compile=`echo "$ac_compile" | $SED \
  7884. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7885. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7886. -e 's:$: $lt_compiler_flag:'`
  7887. (eval echo "\"\$as_me:8987: $lt_compile\"" >&5)
  7888. (eval "$lt_compile" 2>conftest.err)
  7889. ac_status=$?
  7890. cat conftest.err >&5
  7891. echo "$as_me:8991: \$? = $ac_status" >&5
  7892. if (exit $ac_status) && test -s "$ac_outfile"; then
  7893. # The compiler can only warn and ignore the option if not recognized
  7894. # So say no if there are warnings other than the usual output.
  7895. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7896. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7897. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7898. lt_cv_prog_compiler_rtti_exceptions=yes
  7899. fi
  7900. fi
  7901. $RM conftest*
  7902. fi
  7903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7904. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7905. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7906. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7907. else
  7908. :
  7909. fi
  7910. fi
  7911. lt_prog_compiler_wl=
  7912. lt_prog_compiler_pic=
  7913. lt_prog_compiler_static=
  7914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7915. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7916. if test "$GCC" = yes; then
  7917. lt_prog_compiler_wl='-Wl,'
  7918. lt_prog_compiler_static='-static'
  7919. case $host_os in
  7920. aix*)
  7921. # All AIX code is PIC.
  7922. if test "$host_cpu" = ia64; then
  7923. # AIX 5 now supports IA64 processor
  7924. lt_prog_compiler_static='-Bstatic'
  7925. fi
  7926. ;;
  7927. amigaos*)
  7928. case $host_cpu in
  7929. powerpc)
  7930. # see comment about AmigaOS4 .so support
  7931. lt_prog_compiler_pic='-fPIC'
  7932. ;;
  7933. m68k)
  7934. # FIXME: we need at least 68020 code to build shared libraries, but
  7935. # adding the `-m68020' flag to GCC prevents building anything better,
  7936. # like `-m68040'.
  7937. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7938. ;;
  7939. esac
  7940. ;;
  7941. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7942. # PIC is the default for these OSes.
  7943. ;;
  7944. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7945. # This hack is so that the source file can tell whether it is being
  7946. # built for inclusion in a dll (and should export symbols for example).
  7947. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7948. # (--disable-auto-import) libraries
  7949. lt_prog_compiler_pic='-DDLL_EXPORT'
  7950. ;;
  7951. darwin* | rhapsody*)
  7952. # PIC is the default on this platform
  7953. # Common symbols not allowed in MH_DYLIB files
  7954. lt_prog_compiler_pic='-fno-common'
  7955. ;;
  7956. hpux*)
  7957. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7958. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7959. # sets the default TLS model and affects inlining.
  7960. case $host_cpu in
  7961. hppa*64*)
  7962. # +Z the default
  7963. ;;
  7964. *)
  7965. lt_prog_compiler_pic='-fPIC'
  7966. ;;
  7967. esac
  7968. ;;
  7969. interix[3-9]*)
  7970. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7971. # Instead, we relocate shared libraries at runtime.
  7972. ;;
  7973. msdosdjgpp*)
  7974. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7975. # on systems that don't support them.
  7976. lt_prog_compiler_can_build_shared=no
  7977. enable_shared=no
  7978. ;;
  7979. *nto* | *qnx*)
  7980. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7981. # it will coredump.
  7982. lt_prog_compiler_pic='-fPIC -shared'
  7983. ;;
  7984. sysv4*MP*)
  7985. if test -d /usr/nec; then
  7986. lt_prog_compiler_pic=-Kconform_pic
  7987. fi
  7988. ;;
  7989. *)
  7990. lt_prog_compiler_pic='-fPIC'
  7991. ;;
  7992. esac
  7993. else
  7994. # PORTME Check for flag to pass linker flags through the system compiler.
  7995. case $host_os in
  7996. aix*)
  7997. lt_prog_compiler_wl='-Wl,'
  7998. if test "$host_cpu" = ia64; then
  7999. # AIX 5 now supports IA64 processor
  8000. lt_prog_compiler_static='-Bstatic'
  8001. else
  8002. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8003. fi
  8004. ;;
  8005. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8006. # This hack is so that the source file can tell whether it is being
  8007. # built for inclusion in a dll (and should export symbols for example).
  8008. lt_prog_compiler_pic='-DDLL_EXPORT'
  8009. ;;
  8010. hpux9* | hpux10* | hpux11*)
  8011. lt_prog_compiler_wl='-Wl,'
  8012. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8013. # not for PA HP-UX.
  8014. case $host_cpu in
  8015. hppa*64*|ia64*)
  8016. # +Z the default
  8017. ;;
  8018. *)
  8019. lt_prog_compiler_pic='+Z'
  8020. ;;
  8021. esac
  8022. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8023. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8024. ;;
  8025. irix5* | irix6* | nonstopux*)
  8026. lt_prog_compiler_wl='-Wl,'
  8027. # PIC (with -KPIC) is the default.
  8028. lt_prog_compiler_static='-non_shared'
  8029. ;;
  8030. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8031. case $cc_basename in
  8032. # old Intel for x86_64 which still supported -KPIC.
  8033. ecc*)
  8034. lt_prog_compiler_wl='-Wl,'
  8035. lt_prog_compiler_pic='-KPIC'
  8036. lt_prog_compiler_static='-static'
  8037. ;;
  8038. # icc used to be incompatible with GCC.
  8039. # ICC 10 doesn't accept -KPIC any more.
  8040. icc* | ifort*)
  8041. lt_prog_compiler_wl='-Wl,'
  8042. lt_prog_compiler_pic='-fPIC'
  8043. lt_prog_compiler_static='-static'
  8044. ;;
  8045. # Lahey Fortran 8.1.
  8046. lf95*)
  8047. lt_prog_compiler_wl='-Wl,'
  8048. lt_prog_compiler_pic='--shared'
  8049. lt_prog_compiler_static='--static'
  8050. ;;
  8051. pgcc* | pgf77* | pgf90* | pgf95*)
  8052. # Portland Group compilers (*not* the Pentium gcc compiler,
  8053. # which looks to be a dead project)
  8054. lt_prog_compiler_wl='-Wl,'
  8055. lt_prog_compiler_pic='-fpic'
  8056. lt_prog_compiler_static='-Bstatic'
  8057. ;;
  8058. ccc*)
  8059. lt_prog_compiler_wl='-Wl,'
  8060. # All Alpha code is PIC.
  8061. lt_prog_compiler_static='-non_shared'
  8062. ;;
  8063. xl*)
  8064. # IBM XL C 8.0/Fortran 10.1 on PPC
  8065. lt_prog_compiler_wl='-Wl,'
  8066. lt_prog_compiler_pic='-qpic'
  8067. lt_prog_compiler_static='-qstaticlink'
  8068. ;;
  8069. *)
  8070. case `$CC -V 2>&1 | sed 5q` in
  8071. *Sun\ C*)
  8072. # Sun C 5.9
  8073. lt_prog_compiler_pic='-KPIC'
  8074. lt_prog_compiler_static='-Bstatic'
  8075. lt_prog_compiler_wl='-Wl,'
  8076. ;;
  8077. *Sun\ F*)
  8078. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8079. lt_prog_compiler_pic='-KPIC'
  8080. lt_prog_compiler_static='-Bstatic'
  8081. lt_prog_compiler_wl=''
  8082. ;;
  8083. esac
  8084. ;;
  8085. esac
  8086. ;;
  8087. newsos6)
  8088. lt_prog_compiler_pic='-KPIC'
  8089. lt_prog_compiler_static='-Bstatic'
  8090. ;;
  8091. *nto* | *qnx*)
  8092. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8093. # it will coredump.
  8094. lt_prog_compiler_pic='-fPIC -shared'
  8095. ;;
  8096. osf3* | osf4* | osf5*)
  8097. lt_prog_compiler_wl='-Wl,'
  8098. # All OSF/1 code is PIC.
  8099. lt_prog_compiler_static='-non_shared'
  8100. ;;
  8101. rdos*)
  8102. lt_prog_compiler_static='-non_shared'
  8103. ;;
  8104. solaris*)
  8105. lt_prog_compiler_pic='-KPIC'
  8106. lt_prog_compiler_static='-Bstatic'
  8107. case $cc_basename in
  8108. f77* | f90* | f95*)
  8109. lt_prog_compiler_wl='-Qoption ld ';;
  8110. *)
  8111. lt_prog_compiler_wl='-Wl,';;
  8112. esac
  8113. ;;
  8114. sunos4*)
  8115. lt_prog_compiler_wl='-Qoption ld '
  8116. lt_prog_compiler_pic='-PIC'
  8117. lt_prog_compiler_static='-Bstatic'
  8118. ;;
  8119. sysv4 | sysv4.2uw2* | sysv4.3*)
  8120. lt_prog_compiler_wl='-Wl,'
  8121. lt_prog_compiler_pic='-KPIC'
  8122. lt_prog_compiler_static='-Bstatic'
  8123. ;;
  8124. sysv4*MP*)
  8125. if test -d /usr/nec ;then
  8126. lt_prog_compiler_pic='-Kconform_pic'
  8127. lt_prog_compiler_static='-Bstatic'
  8128. fi
  8129. ;;
  8130. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8131. lt_prog_compiler_wl='-Wl,'
  8132. lt_prog_compiler_pic='-KPIC'
  8133. lt_prog_compiler_static='-Bstatic'
  8134. ;;
  8135. unicos*)
  8136. lt_prog_compiler_wl='-Wl,'
  8137. lt_prog_compiler_can_build_shared=no
  8138. ;;
  8139. uts4*)
  8140. lt_prog_compiler_pic='-pic'
  8141. lt_prog_compiler_static='-Bstatic'
  8142. ;;
  8143. *)
  8144. lt_prog_compiler_can_build_shared=no
  8145. ;;
  8146. esac
  8147. fi
  8148. case $host_os in
  8149. # For platforms which do not support PIC, -DPIC is meaningless:
  8150. *djgpp*)
  8151. lt_prog_compiler_pic=
  8152. ;;
  8153. *)
  8154. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8155. ;;
  8156. esac
  8157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  8158. $as_echo "$lt_prog_compiler_pic" >&6; }
  8159. #
  8160. # Check to make sure the PIC flag actually works.
  8161. #
  8162. if test -n "$lt_prog_compiler_pic"; then
  8163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8164. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8165. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  8166. $as_echo_n "(cached) " >&6
  8167. else
  8168. lt_cv_prog_compiler_pic_works=no
  8169. ac_outfile=conftest.$ac_objext
  8170. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8171. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8172. # Insert the option either (1) after the last *FLAGS variable, or
  8173. # (2) before a word containing "conftest.", or (3) at the end.
  8174. # Note that $ac_compile itself does not contain backslashes and begins
  8175. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8176. # The option is referenced via a variable to avoid confusing sed.
  8177. lt_compile=`echo "$ac_compile" | $SED \
  8178. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8179. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8180. -e 's:$: $lt_compiler_flag:'`
  8181. (eval echo "\"\$as_me:9326: $lt_compile\"" >&5)
  8182. (eval "$lt_compile" 2>conftest.err)
  8183. ac_status=$?
  8184. cat conftest.err >&5
  8185. echo "$as_me:9330: \$? = $ac_status" >&5
  8186. if (exit $ac_status) && test -s "$ac_outfile"; then
  8187. # The compiler can only warn and ignore the option if not recognized
  8188. # So say no if there are warnings other than the usual output.
  8189. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8190. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8191. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8192. lt_cv_prog_compiler_pic_works=yes
  8193. fi
  8194. fi
  8195. $RM conftest*
  8196. fi
  8197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8198. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8199. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8200. case $lt_prog_compiler_pic in
  8201. "" | " "*) ;;
  8202. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8203. esac
  8204. else
  8205. lt_prog_compiler_pic=
  8206. lt_prog_compiler_can_build_shared=no
  8207. fi
  8208. fi
  8209. #
  8210. # Check to make sure the static flag actually works.
  8211. #
  8212. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8214. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8215. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  8216. $as_echo_n "(cached) " >&6
  8217. else
  8218. lt_cv_prog_compiler_static_works=no
  8219. save_LDFLAGS="$LDFLAGS"
  8220. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8221. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8222. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8223. # The linker can only warn and ignore the option if not recognized
  8224. # So say no if there are warnings
  8225. if test -s conftest.err; then
  8226. # Append any errors to the config.log.
  8227. cat conftest.err 1>&5
  8228. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  8229. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8230. if diff conftest.exp conftest.er2 >/dev/null; then
  8231. lt_cv_prog_compiler_static_works=yes
  8232. fi
  8233. else
  8234. lt_cv_prog_compiler_static_works=yes
  8235. fi
  8236. fi
  8237. $RM -r conftest*
  8238. LDFLAGS="$save_LDFLAGS"
  8239. fi
  8240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8241. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8242. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8243. :
  8244. else
  8245. lt_prog_compiler_static=
  8246. fi
  8247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8248. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8249. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8250. $as_echo_n "(cached) " >&6
  8251. else
  8252. lt_cv_prog_compiler_c_o=no
  8253. $RM -r conftest 2>/dev/null
  8254. mkdir conftest
  8255. cd conftest
  8256. mkdir out
  8257. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8258. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8259. # Insert the option either (1) after the last *FLAGS variable, or
  8260. # (2) before a word containing "conftest.", or (3) at the end.
  8261. # Note that $ac_compile itself does not contain backslashes and begins
  8262. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8263. lt_compile=`echo "$ac_compile" | $SED \
  8264. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8265. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8266. -e 's:$: $lt_compiler_flag:'`
  8267. (eval echo "\"\$as_me:9431: $lt_compile\"" >&5)
  8268. (eval "$lt_compile" 2>out/conftest.err)
  8269. ac_status=$?
  8270. cat out/conftest.err >&5
  8271. echo "$as_me:9435: \$? = $ac_status" >&5
  8272. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8273. then
  8274. # The compiler can only warn and ignore the option if not recognized
  8275. # So say no if there are warnings
  8276. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8277. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8278. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8279. lt_cv_prog_compiler_c_o=yes
  8280. fi
  8281. fi
  8282. chmod u+w . 2>&5
  8283. $RM conftest*
  8284. # SGI C++ compiler will create directory out/ii_files/ for
  8285. # template instantiation
  8286. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8287. $RM out/* && rmdir out
  8288. cd ..
  8289. $RM -r conftest
  8290. $RM conftest*
  8291. fi
  8292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8293. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8295. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8296. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8297. $as_echo_n "(cached) " >&6
  8298. else
  8299. lt_cv_prog_compiler_c_o=no
  8300. $RM -r conftest 2>/dev/null
  8301. mkdir conftest
  8302. cd conftest
  8303. mkdir out
  8304. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8305. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8306. # Insert the option either (1) after the last *FLAGS variable, or
  8307. # (2) before a word containing "conftest.", or (3) at the end.
  8308. # Note that $ac_compile itself does not contain backslashes and begins
  8309. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8310. lt_compile=`echo "$ac_compile" | $SED \
  8311. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8312. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8313. -e 's:$: $lt_compiler_flag:'`
  8314. (eval echo "\"\$as_me:9486: $lt_compile\"" >&5)
  8315. (eval "$lt_compile" 2>out/conftest.err)
  8316. ac_status=$?
  8317. cat out/conftest.err >&5
  8318. echo "$as_me:9490: \$? = $ac_status" >&5
  8319. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8320. then
  8321. # The compiler can only warn and ignore the option if not recognized
  8322. # So say no if there are warnings
  8323. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8324. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8325. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8326. lt_cv_prog_compiler_c_o=yes
  8327. fi
  8328. fi
  8329. chmod u+w . 2>&5
  8330. $RM conftest*
  8331. # SGI C++ compiler will create directory out/ii_files/ for
  8332. # template instantiation
  8333. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8334. $RM out/* && rmdir out
  8335. cd ..
  8336. $RM -r conftest
  8337. $RM conftest*
  8338. fi
  8339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8340. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8341. hard_links="nottested"
  8342. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8343. # do not overwrite the value of need_locks provided by the user
  8344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8345. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8346. hard_links=yes
  8347. $RM conftest*
  8348. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8349. touch conftest.a
  8350. ln conftest.a conftest.b 2>&5 || hard_links=no
  8351. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8353. $as_echo "$hard_links" >&6; }
  8354. if test "$hard_links" = no; then
  8355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8356. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8357. need_locks=warn
  8358. fi
  8359. else
  8360. need_locks=no
  8361. fi
  8362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8363. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8364. runpath_var=
  8365. allow_undefined_flag=
  8366. always_export_symbols=no
  8367. archive_cmds=
  8368. archive_expsym_cmds=
  8369. compiler_needs_object=no
  8370. enable_shared_with_static_runtimes=no
  8371. export_dynamic_flag_spec=
  8372. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8373. hardcode_automatic=no
  8374. hardcode_direct=no
  8375. hardcode_direct_absolute=no
  8376. hardcode_libdir_flag_spec=
  8377. hardcode_libdir_flag_spec_ld=
  8378. hardcode_libdir_separator=
  8379. hardcode_minus_L=no
  8380. hardcode_shlibpath_var=unsupported
  8381. inherit_rpath=no
  8382. link_all_deplibs=unknown
  8383. module_cmds=
  8384. module_expsym_cmds=
  8385. old_archive_from_new_cmds=
  8386. old_archive_from_expsyms_cmds=
  8387. thread_safe_flag_spec=
  8388. whole_archive_flag_spec=
  8389. # include_expsyms should be a list of space-separated symbols to be *always*
  8390. # included in the symbol list
  8391. include_expsyms=
  8392. # exclude_expsyms can be an extended regexp of symbols to exclude
  8393. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8394. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8395. # as well as any symbol that contains `d'.
  8396. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8397. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8398. # platforms (ab)use it in PIC code, but their linkers get confused if
  8399. # the symbol is explicitly referenced. Since portable code cannot
  8400. # rely on this symbol name, it's probably fine to never include it in
  8401. # preloaded symbol tables.
  8402. # Exclude shared library initialization/finalization symbols.
  8403. extract_expsyms_cmds=
  8404. case $host_os in
  8405. cygwin* | mingw* | pw32* | cegcc*)
  8406. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8407. # When not using gcc, we currently assume that we are using
  8408. # Microsoft Visual C++.
  8409. if test "$GCC" != yes; then
  8410. with_gnu_ld=no
  8411. fi
  8412. ;;
  8413. interix*)
  8414. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8415. with_gnu_ld=yes
  8416. ;;
  8417. openbsd*)
  8418. with_gnu_ld=no
  8419. ;;
  8420. linux* | k*bsd*-gnu)
  8421. link_all_deplibs=no
  8422. ;;
  8423. esac
  8424. ld_shlibs=yes
  8425. if test "$with_gnu_ld" = yes; then
  8426. # If archive_cmds runs LD, not CC, wlarc should be empty
  8427. wlarc='${wl}'
  8428. # Set some defaults for GNU ld with shared library support. These
  8429. # are reset later if shared libraries are not supported. Putting them
  8430. # here allows them to be overridden if necessary.
  8431. runpath_var=LD_RUN_PATH
  8432. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8433. export_dynamic_flag_spec='${wl}--export-dynamic'
  8434. # ancient GNU ld didn't support --whole-archive et. al.
  8435. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8436. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8437. else
  8438. whole_archive_flag_spec=
  8439. fi
  8440. supports_anon_versioning=no
  8441. case `$LD -v 2>&1` in
  8442. *GNU\ gold*) supports_anon_versioning=yes ;;
  8443. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8444. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8445. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8446. *\ 2.11.*) ;; # other 2.11 versions
  8447. *) supports_anon_versioning=yes ;;
  8448. esac
  8449. # See if GNU ld supports shared libraries.
  8450. case $host_os in
  8451. aix[3-9]*)
  8452. # On AIX/PPC, the GNU linker is very broken
  8453. if test "$host_cpu" != ia64; then
  8454. ld_shlibs=no
  8455. cat <<_LT_EOF 1>&2
  8456. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8457. *** to be unable to reliably create shared libraries on AIX.
  8458. *** Therefore, libtool is disabling shared libraries support. If you
  8459. *** really care for shared libraries, you may want to modify your PATH
  8460. *** so that a non-GNU linker is found, and then restart.
  8461. _LT_EOF
  8462. fi
  8463. ;;
  8464. amigaos*)
  8465. case $host_cpu in
  8466. powerpc)
  8467. # see comment about AmigaOS4 .so support
  8468. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8469. archive_expsym_cmds=''
  8470. ;;
  8471. m68k)
  8472. 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)'
  8473. hardcode_libdir_flag_spec='-L$libdir'
  8474. hardcode_minus_L=yes
  8475. ;;
  8476. esac
  8477. ;;
  8478. beos*)
  8479. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8480. allow_undefined_flag=unsupported
  8481. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8482. # support --undefined. This deserves some investigation. FIXME
  8483. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8484. else
  8485. ld_shlibs=no
  8486. fi
  8487. ;;
  8488. cygwin* | mingw* | pw32* | cegcc*)
  8489. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8490. # as there is no search path for DLLs.
  8491. hardcode_libdir_flag_spec='-L$libdir'
  8492. allow_undefined_flag=unsupported
  8493. always_export_symbols=no
  8494. enable_shared_with_static_runtimes=yes
  8495. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8496. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8497. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8498. # If the export-symbols file already is a .def file (1st line
  8499. # is EXPORTS), use it as is; otherwise, prepend...
  8500. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8501. cp $export_symbols $output_objdir/$soname.def;
  8502. else
  8503. echo EXPORTS > $output_objdir/$soname.def;
  8504. cat $export_symbols >> $output_objdir/$soname.def;
  8505. fi~
  8506. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8507. else
  8508. ld_shlibs=no
  8509. fi
  8510. ;;
  8511. interix[3-9]*)
  8512. hardcode_direct=no
  8513. hardcode_shlibpath_var=no
  8514. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8515. export_dynamic_flag_spec='${wl}-E'
  8516. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8517. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8518. # default) and relocated if they conflict, which is a slow very memory
  8519. # consuming and fragmenting process. To avoid this, we pick a random,
  8520. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8521. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8522. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8523. 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'
  8524. ;;
  8525. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8526. tmp_diet=no
  8527. if test "$host_os" = linux-dietlibc; then
  8528. case $cc_basename in
  8529. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8530. esac
  8531. fi
  8532. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8533. && test "$tmp_diet" = no
  8534. then
  8535. tmp_addflag=
  8536. tmp_sharedflag='-shared'
  8537. case $cc_basename,$host_cpu in
  8538. pgcc*) # Portland Group C compiler
  8539. 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'
  8540. tmp_addflag=' $pic_flag'
  8541. ;;
  8542. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8543. 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'
  8544. tmp_addflag=' $pic_flag -Mnomain' ;;
  8545. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8546. tmp_addflag=' -i_dynamic' ;;
  8547. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8548. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8549. ifc* | ifort*) # Intel Fortran compiler
  8550. tmp_addflag=' -nofor_main' ;;
  8551. lf95*) # Lahey Fortran 8.1
  8552. whole_archive_flag_spec=
  8553. tmp_sharedflag='--shared' ;;
  8554. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8555. tmp_sharedflag='-qmkshrobj'
  8556. tmp_addflag= ;;
  8557. esac
  8558. case `$CC -V 2>&1 | sed 5q` in
  8559. *Sun\ C*) # Sun C 5.9
  8560. 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'
  8561. compiler_needs_object=yes
  8562. tmp_sharedflag='-G' ;;
  8563. *Sun\ F*) # Sun Fortran 8.3
  8564. tmp_sharedflag='-G' ;;
  8565. esac
  8566. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8567. if test "x$supports_anon_versioning" = xyes; then
  8568. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8569. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8570. echo "local: *; };" >> $output_objdir/$libname.ver~
  8571. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8572. fi
  8573. case $cc_basename in
  8574. xlf*)
  8575. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8576. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8577. hardcode_libdir_flag_spec=
  8578. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8579. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8580. if test "x$supports_anon_versioning" = xyes; then
  8581. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8582. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8583. echo "local: *; };" >> $output_objdir/$libname.ver~
  8584. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8585. fi
  8586. ;;
  8587. esac
  8588. else
  8589. ld_shlibs=no
  8590. fi
  8591. ;;
  8592. netbsd* | netbsdelf*-gnu)
  8593. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8594. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8595. wlarc=
  8596. else
  8597. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8598. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8599. fi
  8600. ;;
  8601. solaris*)
  8602. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8603. ld_shlibs=no
  8604. cat <<_LT_EOF 1>&2
  8605. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8606. *** create shared libraries on Solaris systems. Therefore, libtool
  8607. *** is disabling shared libraries support. We urge you to upgrade GNU
  8608. *** binutils to release 2.9.1 or newer. Another option is to modify
  8609. *** your PATH or compiler configuration so that the native linker is
  8610. *** used, and then restart.
  8611. _LT_EOF
  8612. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8613. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8614. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8615. else
  8616. ld_shlibs=no
  8617. fi
  8618. ;;
  8619. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8620. case `$LD -v 2>&1` in
  8621. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8622. ld_shlibs=no
  8623. cat <<_LT_EOF 1>&2
  8624. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8625. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8626. *** is disabling shared libraries support. We urge you to upgrade GNU
  8627. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8628. *** your PATH or compiler configuration so that the native linker is
  8629. *** used, and then restart.
  8630. _LT_EOF
  8631. ;;
  8632. *)
  8633. # For security reasons, it is highly recommended that you always
  8634. # use absolute paths for naming shared libraries, and exclude the
  8635. # DT_RUNPATH tag from executables and libraries. But doing so
  8636. # requires that you compile everything twice, which is a pain.
  8637. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8638. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8639. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8640. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8641. else
  8642. ld_shlibs=no
  8643. fi
  8644. ;;
  8645. esac
  8646. ;;
  8647. sunos4*)
  8648. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8649. wlarc=
  8650. hardcode_direct=yes
  8651. hardcode_shlibpath_var=no
  8652. ;;
  8653. *)
  8654. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8655. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8656. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8657. else
  8658. ld_shlibs=no
  8659. fi
  8660. ;;
  8661. esac
  8662. if test "$ld_shlibs" = no; then
  8663. runpath_var=
  8664. hardcode_libdir_flag_spec=
  8665. export_dynamic_flag_spec=
  8666. whole_archive_flag_spec=
  8667. fi
  8668. else
  8669. # PORTME fill in a description of your system's linker (not GNU ld)
  8670. case $host_os in
  8671. aix3*)
  8672. allow_undefined_flag=unsupported
  8673. always_export_symbols=yes
  8674. 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'
  8675. # Note: this linker hardcodes the directories in LIBPATH if there
  8676. # are no directories specified by -L.
  8677. hardcode_minus_L=yes
  8678. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8679. # Neither direct hardcoding nor static linking is supported with a
  8680. # broken collect2.
  8681. hardcode_direct=unsupported
  8682. fi
  8683. ;;
  8684. aix[4-9]*)
  8685. if test "$host_cpu" = ia64; then
  8686. # On IA64, the linker does run time linking by default, so we don't
  8687. # have to do anything special.
  8688. aix_use_runtimelinking=no
  8689. exp_sym_flag='-Bexport'
  8690. no_entry_flag=""
  8691. else
  8692. # If we're using GNU nm, then we don't want the "-C" option.
  8693. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8694. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8695. 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'
  8696. else
  8697. 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'
  8698. fi
  8699. aix_use_runtimelinking=no
  8700. # Test if we are trying to use run time linking or normal
  8701. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8702. # need to do runtime linking.
  8703. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8704. for ld_flag in $LDFLAGS; do
  8705. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8706. aix_use_runtimelinking=yes
  8707. break
  8708. fi
  8709. done
  8710. ;;
  8711. esac
  8712. exp_sym_flag='-bexport'
  8713. no_entry_flag='-bnoentry'
  8714. fi
  8715. # When large executables or shared objects are built, AIX ld can
  8716. # have problems creating the table of contents. If linking a library
  8717. # or program results in "error TOC overflow" add -mminimal-toc to
  8718. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8719. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8720. archive_cmds=''
  8721. hardcode_direct=yes
  8722. hardcode_direct_absolute=yes
  8723. hardcode_libdir_separator=':'
  8724. link_all_deplibs=yes
  8725. file_list_spec='${wl}-f,'
  8726. if test "$GCC" = yes; then
  8727. case $host_os in aix4.[012]|aix4.[012].*)
  8728. # We only want to do this on AIX 4.2 and lower, the check
  8729. # below for broken collect2 doesn't work under 4.3+
  8730. collect2name=`${CC} -print-prog-name=collect2`
  8731. if test -f "$collect2name" &&
  8732. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8733. then
  8734. # We have reworked collect2
  8735. :
  8736. else
  8737. # We have old collect2
  8738. hardcode_direct=unsupported
  8739. # It fails to find uninstalled libraries when the uninstalled
  8740. # path is not listed in the libpath. Setting hardcode_minus_L
  8741. # to unsupported forces relinking
  8742. hardcode_minus_L=yes
  8743. hardcode_libdir_flag_spec='-L$libdir'
  8744. hardcode_libdir_separator=
  8745. fi
  8746. ;;
  8747. esac
  8748. shared_flag='-shared'
  8749. if test "$aix_use_runtimelinking" = yes; then
  8750. shared_flag="$shared_flag "'${wl}-G'
  8751. fi
  8752. link_all_deplibs=no
  8753. else
  8754. # not using gcc
  8755. if test "$host_cpu" = ia64; then
  8756. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8757. # chokes on -Wl,-G. The following line is correct:
  8758. shared_flag='-G'
  8759. else
  8760. if test "$aix_use_runtimelinking" = yes; then
  8761. shared_flag='${wl}-G'
  8762. else
  8763. shared_flag='${wl}-bM:SRE'
  8764. fi
  8765. fi
  8766. fi
  8767. export_dynamic_flag_spec='${wl}-bexpall'
  8768. # It seems that -bexpall does not export symbols beginning with
  8769. # underscore (_), so it is better to generate a list of symbols to export.
  8770. always_export_symbols=yes
  8771. if test "$aix_use_runtimelinking" = yes; then
  8772. # Warning - without using the other runtime loading flags (-brtl),
  8773. # -berok will link without error, but may produce a broken library.
  8774. allow_undefined_flag='-berok'
  8775. # Determine the default libpath from the value encoded in an
  8776. # empty executable.
  8777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8778. /* end confdefs.h. */
  8779. int
  8780. main ()
  8781. {
  8782. ;
  8783. return 0;
  8784. }
  8785. _ACEOF
  8786. if ac_fn_c_try_link "$LINENO"; then :
  8787. lt_aix_libpath_sed='
  8788. /Import File Strings/,/^$/ {
  8789. /^0/ {
  8790. s/^0 *\(.*\)$/\1/
  8791. p
  8792. }
  8793. }'
  8794. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8795. # Check for a 64-bit object if we didn't find anything.
  8796. if test -z "$aix_libpath"; then
  8797. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8798. fi
  8799. fi
  8800. rm -f core conftest.err conftest.$ac_objext \
  8801. conftest$ac_exeext conftest.$ac_ext
  8802. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8803. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8804. 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8805. else
  8806. if test "$host_cpu" = ia64; then
  8807. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8808. allow_undefined_flag="-z nodefs"
  8809. 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"
  8810. else
  8811. # Determine the default libpath from the value encoded in an
  8812. # empty executable.
  8813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8814. /* end confdefs.h. */
  8815. int
  8816. main ()
  8817. {
  8818. ;
  8819. return 0;
  8820. }
  8821. _ACEOF
  8822. if ac_fn_c_try_link "$LINENO"; then :
  8823. lt_aix_libpath_sed='
  8824. /Import File Strings/,/^$/ {
  8825. /^0/ {
  8826. s/^0 *\(.*\)$/\1/
  8827. p
  8828. }
  8829. }'
  8830. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8831. # Check for a 64-bit object if we didn't find anything.
  8832. if test -z "$aix_libpath"; then
  8833. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8834. fi
  8835. fi
  8836. rm -f core conftest.err conftest.$ac_objext \
  8837. conftest$ac_exeext conftest.$ac_ext
  8838. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8839. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8840. # Warning - without using the other run time loading flags,
  8841. # -berok will link without error, but may produce a broken library.
  8842. no_undefined_flag=' ${wl}-bernotok'
  8843. allow_undefined_flag=' ${wl}-berok'
  8844. # Exported symbols can be pulled into shared objects from archives
  8845. whole_archive_flag_spec='$convenience'
  8846. archive_cmds_need_lc=yes
  8847. # This is similar to how AIX traditionally builds its shared libraries.
  8848. 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'
  8849. fi
  8850. fi
  8851. ;;
  8852. amigaos*)
  8853. case $host_cpu in
  8854. powerpc)
  8855. # see comment about AmigaOS4 .so support
  8856. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8857. archive_expsym_cmds=''
  8858. ;;
  8859. m68k)
  8860. 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)'
  8861. hardcode_libdir_flag_spec='-L$libdir'
  8862. hardcode_minus_L=yes
  8863. ;;
  8864. esac
  8865. ;;
  8866. bsdi[45]*)
  8867. export_dynamic_flag_spec=-rdynamic
  8868. ;;
  8869. cygwin* | mingw* | pw32* | cegcc*)
  8870. # When not using gcc, we currently assume that we are using
  8871. # Microsoft Visual C++.
  8872. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8873. # no search path for DLLs.
  8874. hardcode_libdir_flag_spec=' '
  8875. allow_undefined_flag=unsupported
  8876. # Tell ltmain to make .lib files, not .a files.
  8877. libext=lib
  8878. # Tell ltmain to make .dll files, not .so files.
  8879. shrext_cmds=".dll"
  8880. # FIXME: Setting linknames here is a bad hack.
  8881. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8882. # The linker will automatically build a .lib file if we build a DLL.
  8883. old_archive_from_new_cmds='true'
  8884. # FIXME: Should let the user specify the lib program.
  8885. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8886. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8887. enable_shared_with_static_runtimes=yes
  8888. ;;
  8889. darwin* | rhapsody*)
  8890. archive_cmds_need_lc=no
  8891. hardcode_direct=no
  8892. hardcode_automatic=yes
  8893. hardcode_shlibpath_var=unsupported
  8894. whole_archive_flag_spec=''
  8895. link_all_deplibs=yes
  8896. allow_undefined_flag="$_lt_dar_allow_undefined"
  8897. case $cc_basename in
  8898. ifort*) _lt_dar_can_shared=yes ;;
  8899. *) _lt_dar_can_shared=$GCC ;;
  8900. esac
  8901. if test "$_lt_dar_can_shared" = "yes"; then
  8902. output_verbose_link_cmd=echo
  8903. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8904. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8905. 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}"
  8906. 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}"
  8907. else
  8908. ld_shlibs=no
  8909. fi
  8910. ;;
  8911. dgux*)
  8912. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8913. hardcode_libdir_flag_spec='-L$libdir'
  8914. hardcode_shlibpath_var=no
  8915. ;;
  8916. freebsd1*)
  8917. ld_shlibs=no
  8918. ;;
  8919. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8920. # support. Future versions do this automatically, but an explicit c++rt0.o
  8921. # does not break anything, and helps significantly (at the cost of a little
  8922. # extra space).
  8923. freebsd2.2*)
  8924. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8925. hardcode_libdir_flag_spec='-R$libdir'
  8926. hardcode_direct=yes
  8927. hardcode_shlibpath_var=no
  8928. ;;
  8929. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8930. freebsd2*)
  8931. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8932. hardcode_direct=yes
  8933. hardcode_minus_L=yes
  8934. hardcode_shlibpath_var=no
  8935. ;;
  8936. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8937. freebsd* | dragonfly*)
  8938. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8939. hardcode_libdir_flag_spec='-R$libdir'
  8940. hardcode_direct=yes
  8941. hardcode_shlibpath_var=no
  8942. ;;
  8943. hpux9*)
  8944. if test "$GCC" = yes; then
  8945. 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'
  8946. else
  8947. 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'
  8948. fi
  8949. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8950. hardcode_libdir_separator=:
  8951. hardcode_direct=yes
  8952. # hardcode_minus_L: Not really in the search PATH,
  8953. # but as the default location of the library.
  8954. hardcode_minus_L=yes
  8955. export_dynamic_flag_spec='${wl}-E'
  8956. ;;
  8957. hpux10*)
  8958. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8959. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8960. else
  8961. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8962. fi
  8963. if test "$with_gnu_ld" = no; then
  8964. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8965. hardcode_libdir_flag_spec_ld='+b $libdir'
  8966. hardcode_libdir_separator=:
  8967. hardcode_direct=yes
  8968. hardcode_direct_absolute=yes
  8969. export_dynamic_flag_spec='${wl}-E'
  8970. # hardcode_minus_L: Not really in the search PATH,
  8971. # but as the default location of the library.
  8972. hardcode_minus_L=yes
  8973. fi
  8974. ;;
  8975. hpux11*)
  8976. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8977. case $host_cpu in
  8978. hppa*64*)
  8979. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8980. ;;
  8981. ia64*)
  8982. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8983. ;;
  8984. *)
  8985. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8986. ;;
  8987. esac
  8988. else
  8989. case $host_cpu in
  8990. hppa*64*)
  8991. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8992. ;;
  8993. ia64*)
  8994. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8995. ;;
  8996. *)
  8997. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8998. ;;
  8999. esac
  9000. fi
  9001. if test "$with_gnu_ld" = no; then
  9002. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9003. hardcode_libdir_separator=:
  9004. case $host_cpu in
  9005. hppa*64*|ia64*)
  9006. hardcode_direct=no
  9007. hardcode_shlibpath_var=no
  9008. ;;
  9009. *)
  9010. hardcode_direct=yes
  9011. hardcode_direct_absolute=yes
  9012. export_dynamic_flag_spec='${wl}-E'
  9013. # hardcode_minus_L: Not really in the search PATH,
  9014. # but as the default location of the library.
  9015. hardcode_minus_L=yes
  9016. ;;
  9017. esac
  9018. fi
  9019. ;;
  9020. irix5* | irix6* | nonstopux*)
  9021. if test "$GCC" = yes; then
  9022. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9023. # Try to use the -exported_symbol ld option, if it does not
  9024. # work, assume that -exports_file does not work either and
  9025. # implicitly export all symbols.
  9026. save_LDFLAGS="$LDFLAGS"
  9027. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9029. /* end confdefs.h. */
  9030. int foo(void) {}
  9031. _ACEOF
  9032. if ac_fn_c_try_link "$LINENO"; then :
  9033. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9034. fi
  9035. rm -f core conftest.err conftest.$ac_objext \
  9036. conftest$ac_exeext conftest.$ac_ext
  9037. LDFLAGS="$save_LDFLAGS"
  9038. else
  9039. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9040. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  9041. fi
  9042. archive_cmds_need_lc='no'
  9043. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9044. hardcode_libdir_separator=:
  9045. inherit_rpath=yes
  9046. link_all_deplibs=yes
  9047. ;;
  9048. netbsd* | netbsdelf*-gnu)
  9049. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9050. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9051. else
  9052. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9053. fi
  9054. hardcode_libdir_flag_spec='-R$libdir'
  9055. hardcode_direct=yes
  9056. hardcode_shlibpath_var=no
  9057. ;;
  9058. newsos6)
  9059. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9060. hardcode_direct=yes
  9061. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9062. hardcode_libdir_separator=:
  9063. hardcode_shlibpath_var=no
  9064. ;;
  9065. *nto* | *qnx*)
  9066. ;;
  9067. openbsd*)
  9068. if test -f /usr/libexec/ld.so; then
  9069. hardcode_direct=yes
  9070. hardcode_shlibpath_var=no
  9071. hardcode_direct_absolute=yes
  9072. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9073. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9074. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9075. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9076. export_dynamic_flag_spec='${wl}-E'
  9077. else
  9078. case $host_os in
  9079. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9080. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9081. hardcode_libdir_flag_spec='-R$libdir'
  9082. ;;
  9083. *)
  9084. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9085. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9086. ;;
  9087. esac
  9088. fi
  9089. else
  9090. ld_shlibs=no
  9091. fi
  9092. ;;
  9093. os2*)
  9094. hardcode_libdir_flag_spec='-L$libdir'
  9095. hardcode_minus_L=yes
  9096. allow_undefined_flag=unsupported
  9097. 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'
  9098. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9099. ;;
  9100. osf3*)
  9101. if test "$GCC" = yes; then
  9102. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9103. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9104. else
  9105. allow_undefined_flag=' -expect_unresolved \*'
  9106. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9107. fi
  9108. archive_cmds_need_lc='no'
  9109. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9110. hardcode_libdir_separator=:
  9111. ;;
  9112. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9113. if test "$GCC" = yes; then
  9114. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9115. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9116. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9117. else
  9118. allow_undefined_flag=' -expect_unresolved \*'
  9119. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9120. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9121. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9122. # Both c and cxx compiler support -rpath directly
  9123. hardcode_libdir_flag_spec='-rpath $libdir'
  9124. fi
  9125. archive_cmds_need_lc='no'
  9126. hardcode_libdir_separator=:
  9127. ;;
  9128. solaris*)
  9129. no_undefined_flag=' -z defs'
  9130. if test "$GCC" = yes; then
  9131. wlarc='${wl}'
  9132. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9133. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9134. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9135. else
  9136. case `$CC -V 2>&1` in
  9137. *"Compilers 5.0"*)
  9138. wlarc=''
  9139. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9140. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9141. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9142. ;;
  9143. *)
  9144. wlarc='${wl}'
  9145. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9146. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9147. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9148. ;;
  9149. esac
  9150. fi
  9151. hardcode_libdir_flag_spec='-R$libdir'
  9152. hardcode_shlibpath_var=no
  9153. case $host_os in
  9154. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9155. *)
  9156. # The compiler driver will combine and reorder linker options,
  9157. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9158. # but is careful enough not to reorder.
  9159. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9160. if test "$GCC" = yes; then
  9161. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9162. else
  9163. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9164. fi
  9165. ;;
  9166. esac
  9167. link_all_deplibs=yes
  9168. ;;
  9169. sunos4*)
  9170. if test "x$host_vendor" = xsequent; then
  9171. # Use $CC to link under sequent, because it throws in some extra .o
  9172. # files that make .init and .fini sections work.
  9173. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9174. else
  9175. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9176. fi
  9177. hardcode_libdir_flag_spec='-L$libdir'
  9178. hardcode_direct=yes
  9179. hardcode_minus_L=yes
  9180. hardcode_shlibpath_var=no
  9181. ;;
  9182. sysv4)
  9183. case $host_vendor in
  9184. sni)
  9185. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9186. hardcode_direct=yes # is this really true???
  9187. ;;
  9188. siemens)
  9189. ## LD is ld it makes a PLAMLIB
  9190. ## CC just makes a GrossModule.
  9191. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9192. reload_cmds='$CC -r -o $output$reload_objs'
  9193. hardcode_direct=no
  9194. ;;
  9195. motorola)
  9196. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9197. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9198. ;;
  9199. esac
  9200. runpath_var='LD_RUN_PATH'
  9201. hardcode_shlibpath_var=no
  9202. ;;
  9203. sysv4.3*)
  9204. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9205. hardcode_shlibpath_var=no
  9206. export_dynamic_flag_spec='-Bexport'
  9207. ;;
  9208. sysv4*MP*)
  9209. if test -d /usr/nec; then
  9210. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9211. hardcode_shlibpath_var=no
  9212. runpath_var=LD_RUN_PATH
  9213. hardcode_runpath_var=yes
  9214. ld_shlibs=yes
  9215. fi
  9216. ;;
  9217. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9218. no_undefined_flag='${wl}-z,text'
  9219. archive_cmds_need_lc=no
  9220. hardcode_shlibpath_var=no
  9221. runpath_var='LD_RUN_PATH'
  9222. if test "$GCC" = yes; then
  9223. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9224. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9225. else
  9226. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9227. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9228. fi
  9229. ;;
  9230. sysv5* | sco3.2v5* | sco5v6*)
  9231. # Note: We can NOT use -z defs as we might desire, because we do not
  9232. # link with -lc, and that would cause any symbols used from libc to
  9233. # always be unresolved, which means just about no library would
  9234. # ever link correctly. If we're not using GNU ld we use -z text
  9235. # though, which does catch some bad symbols but isn't as heavy-handed
  9236. # as -z defs.
  9237. no_undefined_flag='${wl}-z,text'
  9238. allow_undefined_flag='${wl}-z,nodefs'
  9239. archive_cmds_need_lc=no
  9240. hardcode_shlibpath_var=no
  9241. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9242. hardcode_libdir_separator=':'
  9243. link_all_deplibs=yes
  9244. export_dynamic_flag_spec='${wl}-Bexport'
  9245. runpath_var='LD_RUN_PATH'
  9246. if test "$GCC" = yes; then
  9247. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9248. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9249. else
  9250. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9251. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9252. fi
  9253. ;;
  9254. uts4*)
  9255. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9256. hardcode_libdir_flag_spec='-L$libdir'
  9257. hardcode_shlibpath_var=no
  9258. ;;
  9259. *)
  9260. ld_shlibs=no
  9261. ;;
  9262. esac
  9263. if test x$host_vendor = xsni; then
  9264. case $host in
  9265. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9266. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9267. ;;
  9268. esac
  9269. fi
  9270. fi
  9271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9272. $as_echo "$ld_shlibs" >&6; }
  9273. test "$ld_shlibs" = no && can_build_shared=no
  9274. with_gnu_ld=$with_gnu_ld
  9275. #
  9276. # Do we need to explicitly link libc?
  9277. #
  9278. case "x$archive_cmds_need_lc" in
  9279. x|xyes)
  9280. # Assume -lc should be added
  9281. archive_cmds_need_lc=yes
  9282. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9283. case $archive_cmds in
  9284. *'~'*)
  9285. # FIXME: we may have to deal with multi-command sequences.
  9286. ;;
  9287. '$CC '*)
  9288. # Test whether the compiler implicitly links with -lc since on some
  9289. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9290. # to ld, don't add -lc before -lgcc.
  9291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9292. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9293. $RM conftest*
  9294. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9295. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9296. (eval $ac_compile) 2>&5
  9297. ac_status=$?
  9298. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9299. test $ac_status = 0; } 2>conftest.err; then
  9300. soname=conftest
  9301. lib=conftest
  9302. libobjs=conftest.$ac_objext
  9303. deplibs=
  9304. wl=$lt_prog_compiler_wl
  9305. pic_flag=$lt_prog_compiler_pic
  9306. compiler_flags=-v
  9307. linker_flags=-v
  9308. verstring=
  9309. output_objdir=.
  9310. libname=conftest
  9311. lt_save_allow_undefined_flag=$allow_undefined_flag
  9312. allow_undefined_flag=
  9313. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9314. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9315. ac_status=$?
  9316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9317. test $ac_status = 0; }
  9318. then
  9319. archive_cmds_need_lc=no
  9320. else
  9321. archive_cmds_need_lc=yes
  9322. fi
  9323. allow_undefined_flag=$lt_save_allow_undefined_flag
  9324. else
  9325. cat conftest.err 1>&5
  9326. fi
  9327. $RM conftest*
  9328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  9329. $as_echo "$archive_cmds_need_lc" >&6; }
  9330. ;;
  9331. esac
  9332. fi
  9333. ;;
  9334. esac
  9335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9336. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9337. if test "$GCC" = yes; then
  9338. case $host_os in
  9339. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9340. *) lt_awk_arg="/^libraries:/" ;;
  9341. esac
  9342. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9343. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9344. # if the path contains ";" then we assume it to be the separator
  9345. # otherwise default to the standard path separator (i.e. ":") - it is
  9346. # assumed that no part of a normal pathname contains ";" but that should
  9347. # okay in the real world where ";" in dirpaths is itself problematic.
  9348. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9349. else
  9350. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9351. fi
  9352. # Ok, now we have the path, separated by spaces, we can step through it
  9353. # and add multilib dir if necessary.
  9354. lt_tmp_lt_search_path_spec=
  9355. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9356. for lt_sys_path in $lt_search_path_spec; do
  9357. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9358. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9359. else
  9360. test -d "$lt_sys_path" && \
  9361. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9362. fi
  9363. done
  9364. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9365. BEGIN {RS=" "; FS="/|\n";} {
  9366. lt_foo="";
  9367. lt_count=0;
  9368. for (lt_i = NF; lt_i > 0; lt_i--) {
  9369. if ($lt_i != "" && $lt_i != ".") {
  9370. if ($lt_i == "..") {
  9371. lt_count++;
  9372. } else {
  9373. if (lt_count == 0) {
  9374. lt_foo="/" $lt_i lt_foo;
  9375. } else {
  9376. lt_count--;
  9377. }
  9378. }
  9379. }
  9380. }
  9381. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9382. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9383. }'`
  9384. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9385. else
  9386. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9387. fi
  9388. library_names_spec=
  9389. libname_spec='lib$name'
  9390. soname_spec=
  9391. shrext_cmds=".so"
  9392. postinstall_cmds=
  9393. postuninstall_cmds=
  9394. finish_cmds=
  9395. finish_eval=
  9396. shlibpath_var=
  9397. shlibpath_overrides_runpath=unknown
  9398. version_type=none
  9399. dynamic_linker="$host_os ld.so"
  9400. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9401. need_lib_prefix=unknown
  9402. hardcode_into_libs=no
  9403. # when you set need_version to no, make sure it does not cause -set_version
  9404. # flags to be left without arguments
  9405. need_version=unknown
  9406. case $host_os in
  9407. aix3*)
  9408. version_type=linux
  9409. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9410. shlibpath_var=LIBPATH
  9411. # AIX 3 has no versioning support, so we append a major version to the name.
  9412. soname_spec='${libname}${release}${shared_ext}$major'
  9413. ;;
  9414. aix[4-9]*)
  9415. version_type=linux
  9416. need_lib_prefix=no
  9417. need_version=no
  9418. hardcode_into_libs=yes
  9419. if test "$host_cpu" = ia64; then
  9420. # AIX 5 supports IA64
  9421. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9422. shlibpath_var=LD_LIBRARY_PATH
  9423. else
  9424. # With GCC up to 2.95.x, collect2 would create an import file
  9425. # for dependence libraries. The import file would start with
  9426. # the line `#! .'. This would cause the generated library to
  9427. # depend on `.', always an invalid library. This was fixed in
  9428. # development snapshots of GCC prior to 3.0.
  9429. case $host_os in
  9430. aix4 | aix4.[01] | aix4.[01].*)
  9431. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9432. echo ' yes '
  9433. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9434. :
  9435. else
  9436. can_build_shared=no
  9437. fi
  9438. ;;
  9439. esac
  9440. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9441. # soname into executable. Probably we can add versioning support to
  9442. # collect2, so additional links can be useful in future.
  9443. if test "$aix_use_runtimelinking" = yes; then
  9444. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9445. # instead of lib<name>.a to let people know that these are not
  9446. # typical AIX shared libraries.
  9447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9448. else
  9449. # We preserve .a as extension for shared libraries through AIX4.2
  9450. # and later when we are not doing run time linking.
  9451. library_names_spec='${libname}${release}.a $libname.a'
  9452. soname_spec='${libname}${release}${shared_ext}$major'
  9453. fi
  9454. shlibpath_var=LIBPATH
  9455. fi
  9456. ;;
  9457. amigaos*)
  9458. case $host_cpu in
  9459. powerpc)
  9460. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9461. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9463. ;;
  9464. m68k)
  9465. library_names_spec='$libname.ixlibrary $libname.a'
  9466. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9467. 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'
  9468. ;;
  9469. esac
  9470. ;;
  9471. beos*)
  9472. library_names_spec='${libname}${shared_ext}'
  9473. dynamic_linker="$host_os ld.so"
  9474. shlibpath_var=LIBRARY_PATH
  9475. ;;
  9476. bsdi[45]*)
  9477. version_type=linux
  9478. need_version=no
  9479. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9480. soname_spec='${libname}${release}${shared_ext}$major'
  9481. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9482. shlibpath_var=LD_LIBRARY_PATH
  9483. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9484. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9485. # the default ld.so.conf also contains /usr/contrib/lib and
  9486. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9487. # libtool to hard-code these into programs
  9488. ;;
  9489. cygwin* | mingw* | pw32* | cegcc*)
  9490. version_type=windows
  9491. shrext_cmds=".dll"
  9492. need_version=no
  9493. need_lib_prefix=no
  9494. case $GCC,$host_os in
  9495. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9496. library_names_spec='$libname.dll.a'
  9497. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9498. postinstall_cmds='base_file=`basename \${file}`~
  9499. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9500. dldir=$destdir/`dirname \$dlpath`~
  9501. test -d \$dldir || mkdir -p \$dldir~
  9502. $install_prog $dir/$dlname \$dldir/$dlname~
  9503. chmod a+x \$dldir/$dlname~
  9504. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9505. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9506. fi'
  9507. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9508. dlpath=$dir/\$dldll~
  9509. $RM \$dlpath'
  9510. shlibpath_overrides_runpath=yes
  9511. case $host_os in
  9512. cygwin*)
  9513. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9514. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9515. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9516. ;;
  9517. mingw* | cegcc*)
  9518. # MinGW DLLs use traditional 'lib' prefix
  9519. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9520. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9521. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9522. # It is most probably a Windows format PATH printed by
  9523. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9524. # path with ; separators, and with drive letters. We can handle the
  9525. # drive letters (cygwin fileutils understands them), so leave them,
  9526. # especially as we might pass files found there to a mingw objdump,
  9527. # which wouldn't understand a cygwinified path. Ahh.
  9528. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9529. else
  9530. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9531. fi
  9532. ;;
  9533. pw32*)
  9534. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9535. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9536. ;;
  9537. esac
  9538. ;;
  9539. *)
  9540. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9541. ;;
  9542. esac
  9543. dynamic_linker='Win32 ld.exe'
  9544. # FIXME: first we should search . and the directory the executable is in
  9545. shlibpath_var=PATH
  9546. ;;
  9547. darwin* | rhapsody*)
  9548. dynamic_linker="$host_os dyld"
  9549. version_type=darwin
  9550. need_lib_prefix=no
  9551. need_version=no
  9552. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9553. soname_spec='${libname}${release}${major}$shared_ext'
  9554. shlibpath_overrides_runpath=yes
  9555. shlibpath_var=DYLD_LIBRARY_PATH
  9556. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9557. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9558. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9559. ;;
  9560. dgux*)
  9561. version_type=linux
  9562. need_lib_prefix=no
  9563. need_version=no
  9564. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9565. soname_spec='${libname}${release}${shared_ext}$major'
  9566. shlibpath_var=LD_LIBRARY_PATH
  9567. ;;
  9568. freebsd1*)
  9569. dynamic_linker=no
  9570. ;;
  9571. freebsd* | dragonfly*)
  9572. # DragonFly does not have aout. When/if they implement a new
  9573. # versioning mechanism, adjust this.
  9574. if test -x /usr/bin/objformat; then
  9575. objformat=`/usr/bin/objformat`
  9576. else
  9577. case $host_os in
  9578. freebsd[123]*) objformat=aout ;;
  9579. *) objformat=elf ;;
  9580. esac
  9581. fi
  9582. version_type=freebsd-$objformat
  9583. case $version_type in
  9584. freebsd-elf*)
  9585. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9586. need_version=no
  9587. need_lib_prefix=no
  9588. ;;
  9589. freebsd-*)
  9590. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9591. need_version=yes
  9592. ;;
  9593. esac
  9594. shlibpath_var=LD_LIBRARY_PATH
  9595. case $host_os in
  9596. freebsd2*)
  9597. shlibpath_overrides_runpath=yes
  9598. ;;
  9599. freebsd3.[01]* | freebsdelf3.[01]*)
  9600. shlibpath_overrides_runpath=yes
  9601. hardcode_into_libs=yes
  9602. ;;
  9603. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9604. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9605. shlibpath_overrides_runpath=no
  9606. hardcode_into_libs=yes
  9607. ;;
  9608. *) # from 4.6 on, and DragonFly
  9609. shlibpath_overrides_runpath=yes
  9610. hardcode_into_libs=yes
  9611. ;;
  9612. esac
  9613. ;;
  9614. gnu*)
  9615. version_type=linux
  9616. need_lib_prefix=no
  9617. need_version=no
  9618. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9619. soname_spec='${libname}${release}${shared_ext}$major'
  9620. shlibpath_var=LD_LIBRARY_PATH
  9621. hardcode_into_libs=yes
  9622. ;;
  9623. hpux9* | hpux10* | hpux11*)
  9624. # Give a soname corresponding to the major version so that dld.sl refuses to
  9625. # link against other versions.
  9626. version_type=sunos
  9627. need_lib_prefix=no
  9628. need_version=no
  9629. case $host_cpu in
  9630. ia64*)
  9631. shrext_cmds='.so'
  9632. hardcode_into_libs=yes
  9633. dynamic_linker="$host_os dld.so"
  9634. shlibpath_var=LD_LIBRARY_PATH
  9635. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9636. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9637. soname_spec='${libname}${release}${shared_ext}$major'
  9638. if test "X$HPUX_IA64_MODE" = X32; then
  9639. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9640. else
  9641. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9642. fi
  9643. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9644. ;;
  9645. hppa*64*)
  9646. shrext_cmds='.sl'
  9647. hardcode_into_libs=yes
  9648. dynamic_linker="$host_os dld.sl"
  9649. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9650. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9651. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9652. soname_spec='${libname}${release}${shared_ext}$major'
  9653. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9654. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9655. ;;
  9656. *)
  9657. shrext_cmds='.sl'
  9658. dynamic_linker="$host_os dld.sl"
  9659. shlibpath_var=SHLIB_PATH
  9660. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9662. soname_spec='${libname}${release}${shared_ext}$major'
  9663. ;;
  9664. esac
  9665. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9666. postinstall_cmds='chmod 555 $lib'
  9667. ;;
  9668. interix[3-9]*)
  9669. version_type=linux
  9670. need_lib_prefix=no
  9671. need_version=no
  9672. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9673. soname_spec='${libname}${release}${shared_ext}$major'
  9674. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9675. shlibpath_var=LD_LIBRARY_PATH
  9676. shlibpath_overrides_runpath=no
  9677. hardcode_into_libs=yes
  9678. ;;
  9679. irix5* | irix6* | nonstopux*)
  9680. case $host_os in
  9681. nonstopux*) version_type=nonstopux ;;
  9682. *)
  9683. if test "$lt_cv_prog_gnu_ld" = yes; then
  9684. version_type=linux
  9685. else
  9686. version_type=irix
  9687. fi ;;
  9688. esac
  9689. need_lib_prefix=no
  9690. need_version=no
  9691. soname_spec='${libname}${release}${shared_ext}$major'
  9692. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9693. case $host_os in
  9694. irix5* | nonstopux*)
  9695. libsuff= shlibsuff=
  9696. ;;
  9697. *)
  9698. case $LD in # libtool.m4 will add one of these switches to LD
  9699. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9700. libsuff= shlibsuff= libmagic=32-bit;;
  9701. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9702. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9703. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9704. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9705. *) libsuff= shlibsuff= libmagic=never-match;;
  9706. esac
  9707. ;;
  9708. esac
  9709. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9710. shlibpath_overrides_runpath=no
  9711. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9712. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9713. hardcode_into_libs=yes
  9714. ;;
  9715. # No shared lib support for Linux oldld, aout, or coff.
  9716. linux*oldld* | linux*aout* | linux*coff*)
  9717. dynamic_linker=no
  9718. ;;
  9719. # This must be Linux ELF.
  9720. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9721. version_type=linux
  9722. need_lib_prefix=no
  9723. need_version=no
  9724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9725. soname_spec='${libname}${release}${shared_ext}$major'
  9726. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9727. shlibpath_var=LD_LIBRARY_PATH
  9728. shlibpath_overrides_runpath=no
  9729. # Some binutils ld are patched to set DT_RUNPATH
  9730. save_LDFLAGS=$LDFLAGS
  9731. save_libdir=$libdir
  9732. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9733. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9735. /* end confdefs.h. */
  9736. int
  9737. main ()
  9738. {
  9739. ;
  9740. return 0;
  9741. }
  9742. _ACEOF
  9743. if ac_fn_c_try_link "$LINENO"; then :
  9744. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9745. shlibpath_overrides_runpath=yes
  9746. fi
  9747. fi
  9748. rm -f core conftest.err conftest.$ac_objext \
  9749. conftest$ac_exeext conftest.$ac_ext
  9750. LDFLAGS=$save_LDFLAGS
  9751. libdir=$save_libdir
  9752. # This implies no fast_install, which is unacceptable.
  9753. # Some rework will be needed to allow for fast_install
  9754. # before this can be enabled.
  9755. hardcode_into_libs=yes
  9756. # Append ld.so.conf contents to the search path
  9757. if test -f /etc/ld.so.conf; then
  9758. 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' ' '`
  9759. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9760. fi
  9761. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9762. # powerpc, because MkLinux only supported shared libraries with the
  9763. # GNU dynamic linker. Since this was broken with cross compilers,
  9764. # most powerpc-linux boxes support dynamic linking these days and
  9765. # people can always --disable-shared, the test was removed, and we
  9766. # assume the GNU/Linux dynamic linker is in use.
  9767. dynamic_linker='GNU/Linux ld.so'
  9768. ;;
  9769. netbsdelf*-gnu)
  9770. version_type=linux
  9771. need_lib_prefix=no
  9772. need_version=no
  9773. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9774. soname_spec='${libname}${release}${shared_ext}$major'
  9775. shlibpath_var=LD_LIBRARY_PATH
  9776. shlibpath_overrides_runpath=no
  9777. hardcode_into_libs=yes
  9778. dynamic_linker='NetBSD ld.elf_so'
  9779. ;;
  9780. netbsd*)
  9781. version_type=sunos
  9782. need_lib_prefix=no
  9783. need_version=no
  9784. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9785. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9786. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9787. dynamic_linker='NetBSD (a.out) ld.so'
  9788. else
  9789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9790. soname_spec='${libname}${release}${shared_ext}$major'
  9791. dynamic_linker='NetBSD ld.elf_so'
  9792. fi
  9793. shlibpath_var=LD_LIBRARY_PATH
  9794. shlibpath_overrides_runpath=yes
  9795. hardcode_into_libs=yes
  9796. ;;
  9797. newsos6)
  9798. version_type=linux
  9799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9800. shlibpath_var=LD_LIBRARY_PATH
  9801. shlibpath_overrides_runpath=yes
  9802. ;;
  9803. *nto* | *qnx*)
  9804. version_type=qnx
  9805. need_lib_prefix=no
  9806. need_version=no
  9807. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9808. soname_spec='${libname}${release}${shared_ext}$major'
  9809. shlibpath_var=LD_LIBRARY_PATH
  9810. shlibpath_overrides_runpath=no
  9811. hardcode_into_libs=yes
  9812. dynamic_linker='ldqnx.so'
  9813. ;;
  9814. openbsd*)
  9815. version_type=sunos
  9816. sys_lib_dlsearch_path_spec="/usr/lib"
  9817. need_lib_prefix=no
  9818. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9819. case $host_os in
  9820. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9821. *) need_version=no ;;
  9822. esac
  9823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9824. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9825. shlibpath_var=LD_LIBRARY_PATH
  9826. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9827. case $host_os in
  9828. openbsd2.[89] | openbsd2.[89].*)
  9829. shlibpath_overrides_runpath=no
  9830. ;;
  9831. *)
  9832. shlibpath_overrides_runpath=yes
  9833. ;;
  9834. esac
  9835. else
  9836. shlibpath_overrides_runpath=yes
  9837. fi
  9838. ;;
  9839. os2*)
  9840. libname_spec='$name'
  9841. shrext_cmds=".dll"
  9842. need_lib_prefix=no
  9843. library_names_spec='$libname${shared_ext} $libname.a'
  9844. dynamic_linker='OS/2 ld.exe'
  9845. shlibpath_var=LIBPATH
  9846. ;;
  9847. osf3* | osf4* | osf5*)
  9848. version_type=osf
  9849. need_lib_prefix=no
  9850. need_version=no
  9851. soname_spec='${libname}${release}${shared_ext}$major'
  9852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9853. shlibpath_var=LD_LIBRARY_PATH
  9854. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9855. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9856. ;;
  9857. rdos*)
  9858. dynamic_linker=no
  9859. ;;
  9860. solaris*)
  9861. version_type=linux
  9862. need_lib_prefix=no
  9863. need_version=no
  9864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9865. soname_spec='${libname}${release}${shared_ext}$major'
  9866. shlibpath_var=LD_LIBRARY_PATH
  9867. shlibpath_overrides_runpath=yes
  9868. hardcode_into_libs=yes
  9869. # ldd complains unless libraries are executable
  9870. postinstall_cmds='chmod +x $lib'
  9871. ;;
  9872. sunos4*)
  9873. version_type=sunos
  9874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9875. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9876. shlibpath_var=LD_LIBRARY_PATH
  9877. shlibpath_overrides_runpath=yes
  9878. if test "$with_gnu_ld" = yes; then
  9879. need_lib_prefix=no
  9880. fi
  9881. need_version=yes
  9882. ;;
  9883. sysv4 | sysv4.3*)
  9884. version_type=linux
  9885. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9886. soname_spec='${libname}${release}${shared_ext}$major'
  9887. shlibpath_var=LD_LIBRARY_PATH
  9888. case $host_vendor in
  9889. sni)
  9890. shlibpath_overrides_runpath=no
  9891. need_lib_prefix=no
  9892. runpath_var=LD_RUN_PATH
  9893. ;;
  9894. siemens)
  9895. need_lib_prefix=no
  9896. ;;
  9897. motorola)
  9898. need_lib_prefix=no
  9899. need_version=no
  9900. shlibpath_overrides_runpath=no
  9901. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9902. ;;
  9903. esac
  9904. ;;
  9905. sysv4*MP*)
  9906. if test -d /usr/nec ;then
  9907. version_type=linux
  9908. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9909. soname_spec='$libname${shared_ext}.$major'
  9910. shlibpath_var=LD_LIBRARY_PATH
  9911. fi
  9912. ;;
  9913. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9914. version_type=freebsd-elf
  9915. need_lib_prefix=no
  9916. need_version=no
  9917. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9918. soname_spec='${libname}${release}${shared_ext}$major'
  9919. shlibpath_var=LD_LIBRARY_PATH
  9920. shlibpath_overrides_runpath=yes
  9921. hardcode_into_libs=yes
  9922. if test "$with_gnu_ld" = yes; then
  9923. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9924. else
  9925. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9926. case $host_os in
  9927. sco3.2v5*)
  9928. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9929. ;;
  9930. esac
  9931. fi
  9932. sys_lib_dlsearch_path_spec='/usr/lib'
  9933. ;;
  9934. tpf*)
  9935. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9936. version_type=linux
  9937. need_lib_prefix=no
  9938. need_version=no
  9939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9940. shlibpath_var=LD_LIBRARY_PATH
  9941. shlibpath_overrides_runpath=no
  9942. hardcode_into_libs=yes
  9943. ;;
  9944. uts4*)
  9945. version_type=linux
  9946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9947. soname_spec='${libname}${release}${shared_ext}$major'
  9948. shlibpath_var=LD_LIBRARY_PATH
  9949. ;;
  9950. *)
  9951. dynamic_linker=no
  9952. ;;
  9953. esac
  9954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9955. $as_echo "$dynamic_linker" >&6; }
  9956. test "$dynamic_linker" = no && can_build_shared=no
  9957. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9958. if test "$GCC" = yes; then
  9959. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9960. fi
  9961. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9962. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9963. fi
  9964. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9965. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9966. fi
  9967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9968. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9969. hardcode_action=
  9970. if test -n "$hardcode_libdir_flag_spec" ||
  9971. test -n "$runpath_var" ||
  9972. test "X$hardcode_automatic" = "Xyes" ; then
  9973. # We can hardcode non-existent directories.
  9974. if test "$hardcode_direct" != no &&
  9975. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9976. # have to relink, otherwise we might link with an installed library
  9977. # when we should be linking with a yet-to-be-installed one
  9978. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9979. test "$hardcode_minus_L" != no; then
  9980. # Linking always hardcodes the temporary library directory.
  9981. hardcode_action=relink
  9982. else
  9983. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9984. hardcode_action=immediate
  9985. fi
  9986. else
  9987. # We cannot hardcode anything, or else we can only hardcode existing
  9988. # directories.
  9989. hardcode_action=unsupported
  9990. fi
  9991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9992. $as_echo "$hardcode_action" >&6; }
  9993. if test "$hardcode_action" = relink ||
  9994. test "$inherit_rpath" = yes; then
  9995. # Fast installation is not supported
  9996. enable_fast_install=no
  9997. elif test "$shlibpath_overrides_runpath" = yes ||
  9998. test "$enable_shared" = no; then
  9999. # Fast installation is not necessary
  10000. enable_fast_install=needless
  10001. fi
  10002. if test "x$enable_dlopen" != xyes; then
  10003. enable_dlopen=unknown
  10004. enable_dlopen_self=unknown
  10005. enable_dlopen_self_static=unknown
  10006. else
  10007. lt_cv_dlopen=no
  10008. lt_cv_dlopen_libs=
  10009. case $host_os in
  10010. beos*)
  10011. lt_cv_dlopen="load_add_on"
  10012. lt_cv_dlopen_libs=
  10013. lt_cv_dlopen_self=yes
  10014. ;;
  10015. mingw* | pw32* | cegcc*)
  10016. lt_cv_dlopen="LoadLibrary"
  10017. lt_cv_dlopen_libs=
  10018. ;;
  10019. cygwin*)
  10020. lt_cv_dlopen="dlopen"
  10021. lt_cv_dlopen_libs=
  10022. ;;
  10023. darwin*)
  10024. # if libdl is installed we need to link against it
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10026. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10027. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10028. $as_echo_n "(cached) " >&6
  10029. else
  10030. ac_check_lib_save_LIBS=$LIBS
  10031. LIBS="-ldl $LIBS"
  10032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10033. /* end confdefs.h. */
  10034. /* Override any GCC internal prototype to avoid an error.
  10035. Use char because int might match the return type of a GCC
  10036. builtin and then its argument prototype would still apply. */
  10037. #ifdef __cplusplus
  10038. extern "C"
  10039. #endif
  10040. char dlopen ();
  10041. int
  10042. main ()
  10043. {
  10044. return dlopen ();
  10045. ;
  10046. return 0;
  10047. }
  10048. _ACEOF
  10049. if ac_fn_c_try_link "$LINENO"; then :
  10050. ac_cv_lib_dl_dlopen=yes
  10051. else
  10052. ac_cv_lib_dl_dlopen=no
  10053. fi
  10054. rm -f core conftest.err conftest.$ac_objext \
  10055. conftest$ac_exeext conftest.$ac_ext
  10056. LIBS=$ac_check_lib_save_LIBS
  10057. fi
  10058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10059. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10060. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10061. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10062. else
  10063. lt_cv_dlopen="dyld"
  10064. lt_cv_dlopen_libs=
  10065. lt_cv_dlopen_self=yes
  10066. fi
  10067. ;;
  10068. *)
  10069. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10070. if test "x$ac_cv_func_shl_load" = x""yes; then :
  10071. lt_cv_dlopen="shl_load"
  10072. else
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10074. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10075. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  10076. $as_echo_n "(cached) " >&6
  10077. else
  10078. ac_check_lib_save_LIBS=$LIBS
  10079. LIBS="-ldld $LIBS"
  10080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10081. /* end confdefs.h. */
  10082. /* Override any GCC internal prototype to avoid an error.
  10083. Use char because int might match the return type of a GCC
  10084. builtin and then its argument prototype would still apply. */
  10085. #ifdef __cplusplus
  10086. extern "C"
  10087. #endif
  10088. char shl_load ();
  10089. int
  10090. main ()
  10091. {
  10092. return shl_load ();
  10093. ;
  10094. return 0;
  10095. }
  10096. _ACEOF
  10097. if ac_fn_c_try_link "$LINENO"; then :
  10098. ac_cv_lib_dld_shl_load=yes
  10099. else
  10100. ac_cv_lib_dld_shl_load=no
  10101. fi
  10102. rm -f core conftest.err conftest.$ac_objext \
  10103. conftest$ac_exeext conftest.$ac_ext
  10104. LIBS=$ac_check_lib_save_LIBS
  10105. fi
  10106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10107. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10108. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  10109. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10110. else
  10111. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10112. if test "x$ac_cv_func_dlopen" = x""yes; then :
  10113. lt_cv_dlopen="dlopen"
  10114. else
  10115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10116. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10117. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10118. $as_echo_n "(cached) " >&6
  10119. else
  10120. ac_check_lib_save_LIBS=$LIBS
  10121. LIBS="-ldl $LIBS"
  10122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10123. /* end confdefs.h. */
  10124. /* Override any GCC internal prototype to avoid an error.
  10125. Use char because int might match the return type of a GCC
  10126. builtin and then its argument prototype would still apply. */
  10127. #ifdef __cplusplus
  10128. extern "C"
  10129. #endif
  10130. char dlopen ();
  10131. int
  10132. main ()
  10133. {
  10134. return dlopen ();
  10135. ;
  10136. return 0;
  10137. }
  10138. _ACEOF
  10139. if ac_fn_c_try_link "$LINENO"; then :
  10140. ac_cv_lib_dl_dlopen=yes
  10141. else
  10142. ac_cv_lib_dl_dlopen=no
  10143. fi
  10144. rm -f core conftest.err conftest.$ac_objext \
  10145. conftest$ac_exeext conftest.$ac_ext
  10146. LIBS=$ac_check_lib_save_LIBS
  10147. fi
  10148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10149. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10150. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10151. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10152. else
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10154. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10155. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  10156. $as_echo_n "(cached) " >&6
  10157. else
  10158. ac_check_lib_save_LIBS=$LIBS
  10159. LIBS="-lsvld $LIBS"
  10160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10161. /* end confdefs.h. */
  10162. /* Override any GCC internal prototype to avoid an error.
  10163. Use char because int might match the return type of a GCC
  10164. builtin and then its argument prototype would still apply. */
  10165. #ifdef __cplusplus
  10166. extern "C"
  10167. #endif
  10168. char dlopen ();
  10169. int
  10170. main ()
  10171. {
  10172. return dlopen ();
  10173. ;
  10174. return 0;
  10175. }
  10176. _ACEOF
  10177. if ac_fn_c_try_link "$LINENO"; then :
  10178. ac_cv_lib_svld_dlopen=yes
  10179. else
  10180. ac_cv_lib_svld_dlopen=no
  10181. fi
  10182. rm -f core conftest.err conftest.$ac_objext \
  10183. conftest$ac_exeext conftest.$ac_ext
  10184. LIBS=$ac_check_lib_save_LIBS
  10185. fi
  10186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10187. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10188. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  10189. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10190. else
  10191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10192. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10193. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  10194. $as_echo_n "(cached) " >&6
  10195. else
  10196. ac_check_lib_save_LIBS=$LIBS
  10197. LIBS="-ldld $LIBS"
  10198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10199. /* end confdefs.h. */
  10200. /* Override any GCC internal prototype to avoid an error.
  10201. Use char because int might match the return type of a GCC
  10202. builtin and then its argument prototype would still apply. */
  10203. #ifdef __cplusplus
  10204. extern "C"
  10205. #endif
  10206. char dld_link ();
  10207. int
  10208. main ()
  10209. {
  10210. return dld_link ();
  10211. ;
  10212. return 0;
  10213. }
  10214. _ACEOF
  10215. if ac_fn_c_try_link "$LINENO"; then :
  10216. ac_cv_lib_dld_dld_link=yes
  10217. else
  10218. ac_cv_lib_dld_dld_link=no
  10219. fi
  10220. rm -f core conftest.err conftest.$ac_objext \
  10221. conftest$ac_exeext conftest.$ac_ext
  10222. LIBS=$ac_check_lib_save_LIBS
  10223. fi
  10224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10225. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10226. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10227. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10228. fi
  10229. fi
  10230. fi
  10231. fi
  10232. fi
  10233. fi
  10234. ;;
  10235. esac
  10236. if test "x$lt_cv_dlopen" != xno; then
  10237. enable_dlopen=yes
  10238. else
  10239. enable_dlopen=no
  10240. fi
  10241. case $lt_cv_dlopen in
  10242. dlopen)
  10243. save_CPPFLAGS="$CPPFLAGS"
  10244. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10245. save_LDFLAGS="$LDFLAGS"
  10246. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10247. save_LIBS="$LIBS"
  10248. LIBS="$lt_cv_dlopen_libs $LIBS"
  10249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10250. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10251. if test "${lt_cv_dlopen_self+set}" = set; then :
  10252. $as_echo_n "(cached) " >&6
  10253. else
  10254. if test "$cross_compiling" = yes; then :
  10255. lt_cv_dlopen_self=cross
  10256. else
  10257. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10258. lt_status=$lt_dlunknown
  10259. cat > conftest.$ac_ext <<_LT_EOF
  10260. #line 11870 "configure"
  10261. #include "confdefs.h"
  10262. #if HAVE_DLFCN_H
  10263. #include <dlfcn.h>
  10264. #endif
  10265. #include <stdio.h>
  10266. #ifdef RTLD_GLOBAL
  10267. # define LT_DLGLOBAL RTLD_GLOBAL
  10268. #else
  10269. # ifdef DL_GLOBAL
  10270. # define LT_DLGLOBAL DL_GLOBAL
  10271. # else
  10272. # define LT_DLGLOBAL 0
  10273. # endif
  10274. #endif
  10275. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10276. find out it does not work in some platform. */
  10277. #ifndef LT_DLLAZY_OR_NOW
  10278. # ifdef RTLD_LAZY
  10279. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10280. # else
  10281. # ifdef DL_LAZY
  10282. # define LT_DLLAZY_OR_NOW DL_LAZY
  10283. # else
  10284. # ifdef RTLD_NOW
  10285. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10286. # else
  10287. # ifdef DL_NOW
  10288. # define LT_DLLAZY_OR_NOW DL_NOW
  10289. # else
  10290. # define LT_DLLAZY_OR_NOW 0
  10291. # endif
  10292. # endif
  10293. # endif
  10294. # endif
  10295. #endif
  10296. void fnord() { int i=42;}
  10297. int main ()
  10298. {
  10299. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10300. int status = $lt_dlunknown;
  10301. if (self)
  10302. {
  10303. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10304. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10305. /* dlclose (self); */
  10306. }
  10307. else
  10308. puts (dlerror ());
  10309. return status;
  10310. }
  10311. _LT_EOF
  10312. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10313. (eval $ac_link) 2>&5
  10314. ac_status=$?
  10315. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10316. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10317. (./conftest; exit; ) >&5 2>/dev/null
  10318. lt_status=$?
  10319. case x$lt_status in
  10320. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10321. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10322. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10323. esac
  10324. else :
  10325. # compilation failed
  10326. lt_cv_dlopen_self=no
  10327. fi
  10328. fi
  10329. rm -fr conftest*
  10330. fi
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10332. $as_echo "$lt_cv_dlopen_self" >&6; }
  10333. if test "x$lt_cv_dlopen_self" = xyes; then
  10334. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10336. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10337. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10338. $as_echo_n "(cached) " >&6
  10339. else
  10340. if test "$cross_compiling" = yes; then :
  10341. lt_cv_dlopen_self_static=cross
  10342. else
  10343. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10344. lt_status=$lt_dlunknown
  10345. cat > conftest.$ac_ext <<_LT_EOF
  10346. #line 11966 "configure"
  10347. #include "confdefs.h"
  10348. #if HAVE_DLFCN_H
  10349. #include <dlfcn.h>
  10350. #endif
  10351. #include <stdio.h>
  10352. #ifdef RTLD_GLOBAL
  10353. # define LT_DLGLOBAL RTLD_GLOBAL
  10354. #else
  10355. # ifdef DL_GLOBAL
  10356. # define LT_DLGLOBAL DL_GLOBAL
  10357. # else
  10358. # define LT_DLGLOBAL 0
  10359. # endif
  10360. #endif
  10361. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10362. find out it does not work in some platform. */
  10363. #ifndef LT_DLLAZY_OR_NOW
  10364. # ifdef RTLD_LAZY
  10365. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10366. # else
  10367. # ifdef DL_LAZY
  10368. # define LT_DLLAZY_OR_NOW DL_LAZY
  10369. # else
  10370. # ifdef RTLD_NOW
  10371. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10372. # else
  10373. # ifdef DL_NOW
  10374. # define LT_DLLAZY_OR_NOW DL_NOW
  10375. # else
  10376. # define LT_DLLAZY_OR_NOW 0
  10377. # endif
  10378. # endif
  10379. # endif
  10380. # endif
  10381. #endif
  10382. void fnord() { int i=42;}
  10383. int main ()
  10384. {
  10385. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10386. int status = $lt_dlunknown;
  10387. if (self)
  10388. {
  10389. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10390. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10391. /* dlclose (self); */
  10392. }
  10393. else
  10394. puts (dlerror ());
  10395. return status;
  10396. }
  10397. _LT_EOF
  10398. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10399. (eval $ac_link) 2>&5
  10400. ac_status=$?
  10401. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10402. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10403. (./conftest; exit; ) >&5 2>/dev/null
  10404. lt_status=$?
  10405. case x$lt_status in
  10406. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10407. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10408. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10409. esac
  10410. else :
  10411. # compilation failed
  10412. lt_cv_dlopen_self_static=no
  10413. fi
  10414. fi
  10415. rm -fr conftest*
  10416. fi
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10418. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10419. fi
  10420. CPPFLAGS="$save_CPPFLAGS"
  10421. LDFLAGS="$save_LDFLAGS"
  10422. LIBS="$save_LIBS"
  10423. ;;
  10424. esac
  10425. case $lt_cv_dlopen_self in
  10426. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10427. *) enable_dlopen_self=unknown ;;
  10428. esac
  10429. case $lt_cv_dlopen_self_static in
  10430. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10431. *) enable_dlopen_self_static=unknown ;;
  10432. esac
  10433. fi
  10434. striplib=
  10435. old_striplib=
  10436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10437. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10438. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10439. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10440. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10442. $as_echo "yes" >&6; }
  10443. else
  10444. # FIXME - insert some real tests, host_os isn't really good enough
  10445. case $host_os in
  10446. darwin*)
  10447. if test -n "$STRIP" ; then
  10448. striplib="$STRIP -x"
  10449. old_striplib="$STRIP -S"
  10450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10451. $as_echo "yes" >&6; }
  10452. else
  10453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10454. $as_echo "no" >&6; }
  10455. fi
  10456. ;;
  10457. *)
  10458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10459. $as_echo "no" >&6; }
  10460. ;;
  10461. esac
  10462. fi
  10463. # Report which library types will actually be built
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10465. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10467. $as_echo "$can_build_shared" >&6; }
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10469. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10470. test "$can_build_shared" = "no" && enable_shared=no
  10471. # On AIX, shared libraries and static libraries use the same namespace, and
  10472. # are all built from PIC.
  10473. case $host_os in
  10474. aix3*)
  10475. test "$enable_shared" = yes && enable_static=no
  10476. if test -n "$RANLIB"; then
  10477. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10478. postinstall_cmds='$RANLIB $lib'
  10479. fi
  10480. ;;
  10481. aix[4-9]*)
  10482. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10483. test "$enable_shared" = yes && enable_static=no
  10484. fi
  10485. ;;
  10486. esac
  10487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10488. $as_echo "$enable_shared" >&6; }
  10489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10490. $as_echo_n "checking whether to build static libraries... " >&6; }
  10491. # Make sure either enable_shared or enable_static is yes.
  10492. test "$enable_shared" = yes || enable_static=yes
  10493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10494. $as_echo "$enable_static" >&6; }
  10495. fi
  10496. ac_ext=cpp
  10497. ac_cpp='$CXXCPP $CPPFLAGS'
  10498. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10499. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10500. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10501. CC="$lt_save_CC"
  10502. ac_ext=cpp
  10503. ac_cpp='$CXXCPP $CPPFLAGS'
  10504. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10505. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10506. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10507. archive_cmds_need_lc_CXX=no
  10508. allow_undefined_flag_CXX=
  10509. always_export_symbols_CXX=no
  10510. archive_expsym_cmds_CXX=
  10511. compiler_needs_object_CXX=no
  10512. export_dynamic_flag_spec_CXX=
  10513. hardcode_direct_CXX=no
  10514. hardcode_direct_absolute_CXX=no
  10515. hardcode_libdir_flag_spec_CXX=
  10516. hardcode_libdir_flag_spec_ld_CXX=
  10517. hardcode_libdir_separator_CXX=
  10518. hardcode_minus_L_CXX=no
  10519. hardcode_shlibpath_var_CXX=unsupported
  10520. hardcode_automatic_CXX=no
  10521. inherit_rpath_CXX=no
  10522. module_cmds_CXX=
  10523. module_expsym_cmds_CXX=
  10524. link_all_deplibs_CXX=unknown
  10525. old_archive_cmds_CXX=$old_archive_cmds
  10526. no_undefined_flag_CXX=
  10527. whole_archive_flag_spec_CXX=
  10528. enable_shared_with_static_runtimes_CXX=no
  10529. # Source file extension for C++ test sources.
  10530. ac_ext=cpp
  10531. # Object file extension for compiled C++ test sources.
  10532. objext=o
  10533. objext_CXX=$objext
  10534. # No sense in running all these tests if we already determined that
  10535. # the CXX compiler isn't working. Some variables (like enable_shared)
  10536. # are currently assumed to apply to all compilers on this platform,
  10537. # and will be corrupted by setting them based on a non-working compiler.
  10538. if test "$_lt_caught_CXX_error" != yes; then
  10539. # Code to be used in simple compile tests
  10540. lt_simple_compile_test_code="int some_variable = 0;"
  10541. # Code to be used in simple link tests
  10542. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10543. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10544. # If no C compiler was specified, use CC.
  10545. LTCC=${LTCC-"$CC"}
  10546. # If no C compiler flags were specified, use CFLAGS.
  10547. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10548. # Allow CC to be a program name with arguments.
  10549. compiler=$CC
  10550. # save warnings/boilerplate of simple test code
  10551. ac_outfile=conftest.$ac_objext
  10552. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10553. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10554. _lt_compiler_boilerplate=`cat conftest.err`
  10555. $RM conftest*
  10556. ac_outfile=conftest.$ac_objext
  10557. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10558. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10559. _lt_linker_boilerplate=`cat conftest.err`
  10560. $RM -r conftest*
  10561. # Allow CC to be a program name with arguments.
  10562. lt_save_CC=$CC
  10563. lt_save_LD=$LD
  10564. lt_save_GCC=$GCC
  10565. GCC=$GXX
  10566. lt_save_with_gnu_ld=$with_gnu_ld
  10567. lt_save_path_LD=$lt_cv_path_LD
  10568. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10569. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10570. else
  10571. $as_unset lt_cv_prog_gnu_ld
  10572. fi
  10573. if test -n "${lt_cv_path_LDCXX+set}"; then
  10574. lt_cv_path_LD=$lt_cv_path_LDCXX
  10575. else
  10576. $as_unset lt_cv_path_LD
  10577. fi
  10578. test -z "${LDCXX+set}" || LD=$LDCXX
  10579. CC=${CXX-"c++"}
  10580. compiler=$CC
  10581. compiler_CXX=$CC
  10582. for cc_temp in $compiler""; do
  10583. case $cc_temp in
  10584. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10585. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10586. \-*) ;;
  10587. *) break;;
  10588. esac
  10589. done
  10590. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10591. if test -n "$compiler"; then
  10592. # We don't want -fno-exception when compiling C++ code, so set the
  10593. # no_builtin_flag separately
  10594. if test "$GXX" = yes; then
  10595. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10596. else
  10597. lt_prog_compiler_no_builtin_flag_CXX=
  10598. fi
  10599. if test "$GXX" = yes; then
  10600. # Set up default GNU C++ configuration
  10601. # Check whether --with-gnu-ld was given.
  10602. if test "${with_gnu_ld+set}" = set; then :
  10603. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10604. else
  10605. with_gnu_ld=no
  10606. fi
  10607. ac_prog=ld
  10608. if test "$GCC" = yes; then
  10609. # Check if gcc -print-prog-name=ld gives a path.
  10610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10611. $as_echo_n "checking for ld used by $CC... " >&6; }
  10612. case $host in
  10613. *-*-mingw*)
  10614. # gcc leaves a trailing carriage return which upsets mingw
  10615. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10616. *)
  10617. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10618. esac
  10619. case $ac_prog in
  10620. # Accept absolute paths.
  10621. [\\/]* | ?:[\\/]*)
  10622. re_direlt='/[^/][^/]*/\.\./'
  10623. # Canonicalize the pathname of ld
  10624. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10625. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10626. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10627. done
  10628. test -z "$LD" && LD="$ac_prog"
  10629. ;;
  10630. "")
  10631. # If it fails, then pretend we aren't using GCC.
  10632. ac_prog=ld
  10633. ;;
  10634. *)
  10635. # If it is relative, then search for the first ld in PATH.
  10636. with_gnu_ld=unknown
  10637. ;;
  10638. esac
  10639. elif test "$with_gnu_ld" = yes; then
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10641. $as_echo_n "checking for GNU ld... " >&6; }
  10642. else
  10643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10644. $as_echo_n "checking for non-GNU ld... " >&6; }
  10645. fi
  10646. if test "${lt_cv_path_LD+set}" = set; then :
  10647. $as_echo_n "(cached) " >&6
  10648. else
  10649. if test -z "$LD"; then
  10650. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10651. for ac_dir in $PATH; do
  10652. IFS="$lt_save_ifs"
  10653. test -z "$ac_dir" && ac_dir=.
  10654. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10655. lt_cv_path_LD="$ac_dir/$ac_prog"
  10656. # Check to see if the program is GNU ld. I'd rather use --version,
  10657. # but apparently some variants of GNU ld only accept -v.
  10658. # Break only if it was the GNU/non-GNU ld that we prefer.
  10659. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10660. *GNU* | *'with BFD'*)
  10661. test "$with_gnu_ld" != no && break
  10662. ;;
  10663. *)
  10664. test "$with_gnu_ld" != yes && break
  10665. ;;
  10666. esac
  10667. fi
  10668. done
  10669. IFS="$lt_save_ifs"
  10670. else
  10671. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10672. fi
  10673. fi
  10674. LD="$lt_cv_path_LD"
  10675. if test -n "$LD"; then
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10677. $as_echo "$LD" >&6; }
  10678. else
  10679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10680. $as_echo "no" >&6; }
  10681. fi
  10682. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10684. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10685. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10686. $as_echo_n "(cached) " >&6
  10687. else
  10688. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10689. case `$LD -v 2>&1 </dev/null` in
  10690. *GNU* | *'with BFD'*)
  10691. lt_cv_prog_gnu_ld=yes
  10692. ;;
  10693. *)
  10694. lt_cv_prog_gnu_ld=no
  10695. ;;
  10696. esac
  10697. fi
  10698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10699. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10700. with_gnu_ld=$lt_cv_prog_gnu_ld
  10701. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10702. # archiving commands below assume that GNU ld is being used.
  10703. if test "$with_gnu_ld" = yes; then
  10704. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10705. 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'
  10706. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10707. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10708. # If archive_cmds runs LD, not CC, wlarc should be empty
  10709. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10710. # investigate it a little bit more. (MM)
  10711. wlarc='${wl}'
  10712. # ancient GNU ld didn't support --whole-archive et. al.
  10713. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10714. $GREP 'no-whole-archive' > /dev/null; then
  10715. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10716. else
  10717. whole_archive_flag_spec_CXX=
  10718. fi
  10719. else
  10720. with_gnu_ld=no
  10721. wlarc=
  10722. # A generic and very simple default shared library creation
  10723. # command for GNU C++ for the case where it uses the native
  10724. # linker, instead of GNU ld. If possible, this setting should
  10725. # overridden to take advantage of the native linker features on
  10726. # the platform it is being used on.
  10727. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10728. fi
  10729. # Commands to make compiler produce verbose output that lists
  10730. # what "hidden" libraries, object files and flags are used when
  10731. # linking a shared library.
  10732. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10733. else
  10734. GXX=no
  10735. with_gnu_ld=no
  10736. wlarc=
  10737. fi
  10738. # PORTME: fill in a description of your system's C++ link characteristics
  10739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10740. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10741. ld_shlibs_CXX=yes
  10742. case $host_os in
  10743. aix3*)
  10744. # FIXME: insert proper C++ library support
  10745. ld_shlibs_CXX=no
  10746. ;;
  10747. aix[4-9]*)
  10748. if test "$host_cpu" = ia64; then
  10749. # On IA64, the linker does run time linking by default, so we don't
  10750. # have to do anything special.
  10751. aix_use_runtimelinking=no
  10752. exp_sym_flag='-Bexport'
  10753. no_entry_flag=""
  10754. else
  10755. aix_use_runtimelinking=no
  10756. # Test if we are trying to use run time linking or normal
  10757. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10758. # need to do runtime linking.
  10759. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10760. for ld_flag in $LDFLAGS; do
  10761. case $ld_flag in
  10762. *-brtl*)
  10763. aix_use_runtimelinking=yes
  10764. break
  10765. ;;
  10766. esac
  10767. done
  10768. ;;
  10769. esac
  10770. exp_sym_flag='-bexport'
  10771. no_entry_flag='-bnoentry'
  10772. fi
  10773. # When large executables or shared objects are built, AIX ld can
  10774. # have problems creating the table of contents. If linking a library
  10775. # or program results in "error TOC overflow" add -mminimal-toc to
  10776. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10777. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10778. archive_cmds_CXX=''
  10779. hardcode_direct_CXX=yes
  10780. hardcode_direct_absolute_CXX=yes
  10781. hardcode_libdir_separator_CXX=':'
  10782. link_all_deplibs_CXX=yes
  10783. file_list_spec_CXX='${wl}-f,'
  10784. if test "$GXX" = yes; then
  10785. case $host_os in aix4.[012]|aix4.[012].*)
  10786. # We only want to do this on AIX 4.2 and lower, the check
  10787. # below for broken collect2 doesn't work under 4.3+
  10788. collect2name=`${CC} -print-prog-name=collect2`
  10789. if test -f "$collect2name" &&
  10790. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10791. then
  10792. # We have reworked collect2
  10793. :
  10794. else
  10795. # We have old collect2
  10796. hardcode_direct_CXX=unsupported
  10797. # It fails to find uninstalled libraries when the uninstalled
  10798. # path is not listed in the libpath. Setting hardcode_minus_L
  10799. # to unsupported forces relinking
  10800. hardcode_minus_L_CXX=yes
  10801. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10802. hardcode_libdir_separator_CXX=
  10803. fi
  10804. esac
  10805. shared_flag='-shared'
  10806. if test "$aix_use_runtimelinking" = yes; then
  10807. shared_flag="$shared_flag "'${wl}-G'
  10808. fi
  10809. else
  10810. # not using gcc
  10811. if test "$host_cpu" = ia64; then
  10812. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10813. # chokes on -Wl,-G. The following line is correct:
  10814. shared_flag='-G'
  10815. else
  10816. if test "$aix_use_runtimelinking" = yes; then
  10817. shared_flag='${wl}-G'
  10818. else
  10819. shared_flag='${wl}-bM:SRE'
  10820. fi
  10821. fi
  10822. fi
  10823. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10824. # It seems that -bexpall does not export symbols beginning with
  10825. # underscore (_), so it is better to generate a list of symbols to
  10826. # export.
  10827. always_export_symbols_CXX=yes
  10828. if test "$aix_use_runtimelinking" = yes; then
  10829. # Warning - without using the other runtime loading flags (-brtl),
  10830. # -berok will link without error, but may produce a broken library.
  10831. allow_undefined_flag_CXX='-berok'
  10832. # Determine the default libpath from the value encoded in an empty
  10833. # executable.
  10834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10835. /* end confdefs.h. */
  10836. int
  10837. main ()
  10838. {
  10839. ;
  10840. return 0;
  10841. }
  10842. _ACEOF
  10843. if ac_fn_cxx_try_link "$LINENO"; then :
  10844. lt_aix_libpath_sed='
  10845. /Import File Strings/,/^$/ {
  10846. /^0/ {
  10847. s/^0 *\(.*\)$/\1/
  10848. p
  10849. }
  10850. }'
  10851. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10852. # Check for a 64-bit object if we didn't find anything.
  10853. if test -z "$aix_libpath"; then
  10854. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10855. fi
  10856. fi
  10857. rm -f core conftest.err conftest.$ac_objext \
  10858. conftest$ac_exeext conftest.$ac_ext
  10859. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10860. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10861. 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10862. else
  10863. if test "$host_cpu" = ia64; then
  10864. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10865. allow_undefined_flag_CXX="-z nodefs"
  10866. 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"
  10867. else
  10868. # Determine the default libpath from the value encoded in an
  10869. # empty executable.
  10870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10871. /* end confdefs.h. */
  10872. int
  10873. main ()
  10874. {
  10875. ;
  10876. return 0;
  10877. }
  10878. _ACEOF
  10879. if ac_fn_cxx_try_link "$LINENO"; then :
  10880. lt_aix_libpath_sed='
  10881. /Import File Strings/,/^$/ {
  10882. /^0/ {
  10883. s/^0 *\(.*\)$/\1/
  10884. p
  10885. }
  10886. }'
  10887. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10888. # Check for a 64-bit object if we didn't find anything.
  10889. if test -z "$aix_libpath"; then
  10890. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10891. fi
  10892. fi
  10893. rm -f core conftest.err conftest.$ac_objext \
  10894. conftest$ac_exeext conftest.$ac_ext
  10895. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10896. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10897. # Warning - without using the other run time loading flags,
  10898. # -berok will link without error, but may produce a broken library.
  10899. no_undefined_flag_CXX=' ${wl}-bernotok'
  10900. allow_undefined_flag_CXX=' ${wl}-berok'
  10901. # Exported symbols can be pulled into shared objects from archives
  10902. whole_archive_flag_spec_CXX='$convenience'
  10903. archive_cmds_need_lc_CXX=yes
  10904. # This is similar to how AIX traditionally builds its shared
  10905. # libraries.
  10906. 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'
  10907. fi
  10908. fi
  10909. ;;
  10910. beos*)
  10911. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10912. allow_undefined_flag_CXX=unsupported
  10913. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10914. # support --undefined. This deserves some investigation. FIXME
  10915. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10916. else
  10917. ld_shlibs_CXX=no
  10918. fi
  10919. ;;
  10920. chorus*)
  10921. case $cc_basename in
  10922. *)
  10923. # FIXME: insert proper C++ library support
  10924. ld_shlibs_CXX=no
  10925. ;;
  10926. esac
  10927. ;;
  10928. cygwin* | mingw* | pw32* | cegcc*)
  10929. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10930. # as there is no search path for DLLs.
  10931. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10932. allow_undefined_flag_CXX=unsupported
  10933. always_export_symbols_CXX=no
  10934. enable_shared_with_static_runtimes_CXX=yes
  10935. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10936. 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'
  10937. # If the export-symbols file already is a .def file (1st line
  10938. # is EXPORTS), use it as is; otherwise, prepend...
  10939. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10940. cp $export_symbols $output_objdir/$soname.def;
  10941. else
  10942. echo EXPORTS > $output_objdir/$soname.def;
  10943. cat $export_symbols >> $output_objdir/$soname.def;
  10944. fi~
  10945. $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'
  10946. else
  10947. ld_shlibs_CXX=no
  10948. fi
  10949. ;;
  10950. darwin* | rhapsody*)
  10951. archive_cmds_need_lc_CXX=no
  10952. hardcode_direct_CXX=no
  10953. hardcode_automatic_CXX=yes
  10954. hardcode_shlibpath_var_CXX=unsupported
  10955. whole_archive_flag_spec_CXX=''
  10956. link_all_deplibs_CXX=yes
  10957. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10958. case $cc_basename in
  10959. ifort*) _lt_dar_can_shared=yes ;;
  10960. *) _lt_dar_can_shared=$GCC ;;
  10961. esac
  10962. if test "$_lt_dar_can_shared" = "yes"; then
  10963. output_verbose_link_cmd=echo
  10964. 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}"
  10965. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10966. 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}"
  10967. 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}"
  10968. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10969. 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}"
  10970. 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}"
  10971. fi
  10972. else
  10973. ld_shlibs_CXX=no
  10974. fi
  10975. ;;
  10976. dgux*)
  10977. case $cc_basename in
  10978. ec++*)
  10979. # FIXME: insert proper C++ library support
  10980. ld_shlibs_CXX=no
  10981. ;;
  10982. ghcx*)
  10983. # Green Hills C++ Compiler
  10984. # FIXME: insert proper C++ library support
  10985. ld_shlibs_CXX=no
  10986. ;;
  10987. *)
  10988. # FIXME: insert proper C++ library support
  10989. ld_shlibs_CXX=no
  10990. ;;
  10991. esac
  10992. ;;
  10993. freebsd[12]*)
  10994. # C++ shared libraries reported to be fairly broken before
  10995. # switch to ELF
  10996. ld_shlibs_CXX=no
  10997. ;;
  10998. freebsd-elf*)
  10999. archive_cmds_need_lc_CXX=no
  11000. ;;
  11001. freebsd* | dragonfly*)
  11002. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11003. # conventions
  11004. ld_shlibs_CXX=yes
  11005. ;;
  11006. gnu*)
  11007. ;;
  11008. hpux9*)
  11009. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11010. hardcode_libdir_separator_CXX=:
  11011. export_dynamic_flag_spec_CXX='${wl}-E'
  11012. hardcode_direct_CXX=yes
  11013. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11014. # but as the default
  11015. # location of the library.
  11016. case $cc_basename in
  11017. CC*)
  11018. # FIXME: insert proper C++ library support
  11019. ld_shlibs_CXX=no
  11020. ;;
  11021. aCC*)
  11022. 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'
  11023. # Commands to make compiler produce verbose output that lists
  11024. # what "hidden" libraries, object files and flags are used when
  11025. # linking a shared library.
  11026. #
  11027. # There doesn't appear to be a way to prevent this compiler from
  11028. # explicitly linking system object files so we need to strip them
  11029. # from the output so that they don't get included in the library
  11030. # dependencies.
  11031. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11032. ;;
  11033. *)
  11034. if test "$GXX" = yes; then
  11035. 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'
  11036. else
  11037. # FIXME: insert proper C++ library support
  11038. ld_shlibs_CXX=no
  11039. fi
  11040. ;;
  11041. esac
  11042. ;;
  11043. hpux10*|hpux11*)
  11044. if test $with_gnu_ld = no; then
  11045. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11046. hardcode_libdir_separator_CXX=:
  11047. case $host_cpu in
  11048. hppa*64*|ia64*)
  11049. ;;
  11050. *)
  11051. export_dynamic_flag_spec_CXX='${wl}-E'
  11052. ;;
  11053. esac
  11054. fi
  11055. case $host_cpu in
  11056. hppa*64*|ia64*)
  11057. hardcode_direct_CXX=no
  11058. hardcode_shlibpath_var_CXX=no
  11059. ;;
  11060. *)
  11061. hardcode_direct_CXX=yes
  11062. hardcode_direct_absolute_CXX=yes
  11063. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11064. # but as the default
  11065. # location of the library.
  11066. ;;
  11067. esac
  11068. case $cc_basename in
  11069. CC*)
  11070. # FIXME: insert proper C++ library support
  11071. ld_shlibs_CXX=no
  11072. ;;
  11073. aCC*)
  11074. case $host_cpu in
  11075. hppa*64*)
  11076. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11077. ;;
  11078. ia64*)
  11079. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11080. ;;
  11081. *)
  11082. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11083. ;;
  11084. esac
  11085. # Commands to make compiler produce verbose output that lists
  11086. # what "hidden" libraries, object files and flags are used when
  11087. # linking a shared library.
  11088. #
  11089. # There doesn't appear to be a way to prevent this compiler from
  11090. # explicitly linking system object files so we need to strip them
  11091. # from the output so that they don't get included in the library
  11092. # dependencies.
  11093. 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 "X$list" | $Xsed'
  11094. ;;
  11095. *)
  11096. if test "$GXX" = yes; then
  11097. if test $with_gnu_ld = no; then
  11098. case $host_cpu in
  11099. hppa*64*)
  11100. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11101. ;;
  11102. ia64*)
  11103. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11104. ;;
  11105. *)
  11106. 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'
  11107. ;;
  11108. esac
  11109. fi
  11110. else
  11111. # FIXME: insert proper C++ library support
  11112. ld_shlibs_CXX=no
  11113. fi
  11114. ;;
  11115. esac
  11116. ;;
  11117. interix[3-9]*)
  11118. hardcode_direct_CXX=no
  11119. hardcode_shlibpath_var_CXX=no
  11120. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11121. export_dynamic_flag_spec_CXX='${wl}-E'
  11122. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11123. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11124. # default) and relocated if they conflict, which is a slow very memory
  11125. # consuming and fragmenting process. To avoid this, we pick a random,
  11126. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11127. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11128. 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'
  11129. 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'
  11130. ;;
  11131. irix5* | irix6*)
  11132. case $cc_basename in
  11133. CC*)
  11134. # SGI C++
  11135. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11136. # Archives containing C++ object files must be created using
  11137. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11138. # necessary to make sure instantiated templates are included
  11139. # in the archive.
  11140. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11141. ;;
  11142. *)
  11143. if test "$GXX" = yes; then
  11144. if test "$with_gnu_ld" = no; then
  11145. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11146. else
  11147. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  11148. fi
  11149. fi
  11150. link_all_deplibs_CXX=yes
  11151. ;;
  11152. esac
  11153. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11154. hardcode_libdir_separator_CXX=:
  11155. inherit_rpath_CXX=yes
  11156. ;;
  11157. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11158. case $cc_basename in
  11159. KCC*)
  11160. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11161. # KCC will only create a shared library if the output file
  11162. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11163. # to its proper name (with version) after linking.
  11164. 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'
  11165. 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'
  11166. # Commands to make compiler produce verbose output that lists
  11167. # what "hidden" libraries, object files and flags are used when
  11168. # linking a shared library.
  11169. #
  11170. # There doesn't appear to be a way to prevent this compiler from
  11171. # explicitly linking system object files so we need to strip them
  11172. # from the output so that they don't get included in the library
  11173. # dependencies.
  11174. 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 "X$list" | $Xsed'
  11175. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11176. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11177. # Archives containing C++ object files must be created using
  11178. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11179. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11180. ;;
  11181. icpc* | ecpc* )
  11182. # Intel C++
  11183. with_gnu_ld=yes
  11184. # version 8.0 and above of icpc choke on multiply defined symbols
  11185. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11186. # earlier do not add the objects themselves.
  11187. case `$CC -V 2>&1` in
  11188. *"Version 7."*)
  11189. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11190. 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'
  11191. ;;
  11192. *) # Version 8.0 or newer
  11193. tmp_idyn=
  11194. case $host_cpu in
  11195. ia64*) tmp_idyn=' -i_dynamic';;
  11196. esac
  11197. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11198. 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'
  11199. ;;
  11200. esac
  11201. archive_cmds_need_lc_CXX=no
  11202. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11203. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11204. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11205. ;;
  11206. pgCC* | pgcpp*)
  11207. # Portland Group C++ compiler
  11208. case `$CC -V` in
  11209. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  11210. prelink_cmds_CXX='tpldir=Template.dir~
  11211. rm -rf $tpldir~
  11212. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11213. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11214. old_archive_cmds_CXX='tpldir=Template.dir~
  11215. rm -rf $tpldir~
  11216. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11217. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11218. $RANLIB $oldlib'
  11219. archive_cmds_CXX='tpldir=Template.dir~
  11220. rm -rf $tpldir~
  11221. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11222. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11223. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11224. rm -rf $tpldir~
  11225. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11226. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11227. ;;
  11228. *) # Version 6 will use weak symbols
  11229. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11230. 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'
  11231. ;;
  11232. esac
  11233. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11234. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11235. 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'
  11236. ;;
  11237. cxx*)
  11238. # Compaq C++
  11239. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11240. 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'
  11241. runpath_var=LD_RUN_PATH
  11242. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11243. hardcode_libdir_separator_CXX=:
  11244. # Commands to make compiler produce verbose output that lists
  11245. # what "hidden" libraries, object files and flags are used when
  11246. # linking a shared library.
  11247. #
  11248. # There doesn't appear to be a way to prevent this compiler from
  11249. # explicitly linking system object files so we need to strip them
  11250. # from the output so that they don't get included in the library
  11251. # dependencies.
  11252. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
  11253. ;;
  11254. xl*)
  11255. # IBM XL 8.0 on PPC, with GNU ld
  11256. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11257. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11258. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11259. if test "x$supports_anon_versioning" = xyes; then
  11260. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11261. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11262. echo "local: *; };" >> $output_objdir/$libname.ver~
  11263. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11264. fi
  11265. ;;
  11266. *)
  11267. case `$CC -V 2>&1 | sed 5q` in
  11268. *Sun\ C*)
  11269. # Sun C++ 5.9
  11270. no_undefined_flag_CXX=' -zdefs'
  11271. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11272. 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'
  11273. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11274. 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'
  11275. compiler_needs_object_CXX=yes
  11276. # Not sure whether something based on
  11277. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11278. # would be better.
  11279. output_verbose_link_cmd='echo'
  11280. # Archives containing C++ object files must be created using
  11281. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11282. # necessary to make sure instantiated templates are included
  11283. # in the archive.
  11284. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11285. ;;
  11286. esac
  11287. ;;
  11288. esac
  11289. ;;
  11290. lynxos*)
  11291. # FIXME: insert proper C++ library support
  11292. ld_shlibs_CXX=no
  11293. ;;
  11294. m88k*)
  11295. # FIXME: insert proper C++ library support
  11296. ld_shlibs_CXX=no
  11297. ;;
  11298. mvs*)
  11299. case $cc_basename in
  11300. cxx*)
  11301. # FIXME: insert proper C++ library support
  11302. ld_shlibs_CXX=no
  11303. ;;
  11304. *)
  11305. # FIXME: insert proper C++ library support
  11306. ld_shlibs_CXX=no
  11307. ;;
  11308. esac
  11309. ;;
  11310. netbsd*)
  11311. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11312. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11313. wlarc=
  11314. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11315. hardcode_direct_CXX=yes
  11316. hardcode_shlibpath_var_CXX=no
  11317. fi
  11318. # Workaround some broken pre-1.5 toolchains
  11319. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11320. ;;
  11321. *nto* | *qnx*)
  11322. ld_shlibs_CXX=yes
  11323. ;;
  11324. openbsd2*)
  11325. # C++ shared libraries are fairly broken
  11326. ld_shlibs_CXX=no
  11327. ;;
  11328. openbsd*)
  11329. if test -f /usr/libexec/ld.so; then
  11330. hardcode_direct_CXX=yes
  11331. hardcode_shlibpath_var_CXX=no
  11332. hardcode_direct_absolute_CXX=yes
  11333. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11334. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11335. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11336. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11337. export_dynamic_flag_spec_CXX='${wl}-E'
  11338. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11339. fi
  11340. output_verbose_link_cmd=echo
  11341. else
  11342. ld_shlibs_CXX=no
  11343. fi
  11344. ;;
  11345. osf3* | osf4* | osf5*)
  11346. case $cc_basename in
  11347. KCC*)
  11348. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11349. # KCC will only create a shared library if the output file
  11350. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11351. # to its proper name (with version) after linking.
  11352. 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'
  11353. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11354. hardcode_libdir_separator_CXX=:
  11355. # Archives containing C++ object files must be created using
  11356. # the KAI C++ compiler.
  11357. case $host in
  11358. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11359. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11360. esac
  11361. ;;
  11362. RCC*)
  11363. # Rational C++ 2.4.1
  11364. # FIXME: insert proper C++ library support
  11365. ld_shlibs_CXX=no
  11366. ;;
  11367. cxx*)
  11368. case $host in
  11369. osf3*)
  11370. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11371. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11372. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11373. ;;
  11374. *)
  11375. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11376. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11377. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11378. echo "-hidden">> $lib.exp~
  11379. $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  11380. $RM $lib.exp'
  11381. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11382. ;;
  11383. esac
  11384. hardcode_libdir_separator_CXX=:
  11385. # Commands to make compiler produce verbose output that lists
  11386. # what "hidden" libraries, object files and flags are used when
  11387. # linking a shared library.
  11388. #
  11389. # There doesn't appear to be a way to prevent this compiler from
  11390. # explicitly linking system object files so we need to strip them
  11391. # from the output so that they don't get included in the library
  11392. # dependencies.
  11393. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
  11394. ;;
  11395. *)
  11396. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11397. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11398. case $host in
  11399. osf3*)
  11400. 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11401. ;;
  11402. *)
  11403. 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11404. ;;
  11405. esac
  11406. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11407. hardcode_libdir_separator_CXX=:
  11408. # Commands to make compiler produce verbose output that lists
  11409. # what "hidden" libraries, object files and flags are used when
  11410. # linking a shared library.
  11411. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11412. else
  11413. # FIXME: insert proper C++ library support
  11414. ld_shlibs_CXX=no
  11415. fi
  11416. ;;
  11417. esac
  11418. ;;
  11419. psos*)
  11420. # FIXME: insert proper C++ library support
  11421. ld_shlibs_CXX=no
  11422. ;;
  11423. sunos4*)
  11424. case $cc_basename in
  11425. CC*)
  11426. # Sun C++ 4.x
  11427. # FIXME: insert proper C++ library support
  11428. ld_shlibs_CXX=no
  11429. ;;
  11430. lcc*)
  11431. # Lucid
  11432. # FIXME: insert proper C++ library support
  11433. ld_shlibs_CXX=no
  11434. ;;
  11435. *)
  11436. # FIXME: insert proper C++ library support
  11437. ld_shlibs_CXX=no
  11438. ;;
  11439. esac
  11440. ;;
  11441. solaris*)
  11442. case $cc_basename in
  11443. CC*)
  11444. # Sun C++ 4.2, 5.x and Centerline C++
  11445. archive_cmds_need_lc_CXX=yes
  11446. no_undefined_flag_CXX=' -zdefs'
  11447. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11448. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11449. $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'
  11450. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11451. hardcode_shlibpath_var_CXX=no
  11452. case $host_os in
  11453. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11454. *)
  11455. # The compiler driver will combine and reorder linker options,
  11456. # but understands `-z linker_flag'.
  11457. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11458. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11459. ;;
  11460. esac
  11461. link_all_deplibs_CXX=yes
  11462. output_verbose_link_cmd='echo'
  11463. # Archives containing C++ object files must be created using
  11464. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11465. # necessary to make sure instantiated templates are included
  11466. # in the archive.
  11467. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11468. ;;
  11469. gcx*)
  11470. # Green Hills C++ Compiler
  11471. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11472. # The C++ compiler must be used to create the archive.
  11473. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11474. ;;
  11475. *)
  11476. # GNU C++ compiler with Solaris linker
  11477. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11478. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11479. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11480. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11481. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11482. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11483. # Commands to make compiler produce verbose output that lists
  11484. # what "hidden" libraries, object files and flags are used when
  11485. # linking a shared library.
  11486. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11487. else
  11488. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11489. # platform.
  11490. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11491. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11492. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11493. # Commands to make compiler produce verbose output that lists
  11494. # what "hidden" libraries, object files and flags are used when
  11495. # linking a shared library.
  11496. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11497. fi
  11498. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11499. case $host_os in
  11500. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11501. *)
  11502. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11503. ;;
  11504. esac
  11505. fi
  11506. ;;
  11507. esac
  11508. ;;
  11509. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11510. no_undefined_flag_CXX='${wl}-z,text'
  11511. archive_cmds_need_lc_CXX=no
  11512. hardcode_shlibpath_var_CXX=no
  11513. runpath_var='LD_RUN_PATH'
  11514. case $cc_basename in
  11515. CC*)
  11516. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11517. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11518. ;;
  11519. *)
  11520. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11521. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11522. ;;
  11523. esac
  11524. ;;
  11525. sysv5* | sco3.2v5* | sco5v6*)
  11526. # Note: We can NOT use -z defs as we might desire, because we do not
  11527. # link with -lc, and that would cause any symbols used from libc to
  11528. # always be unresolved, which means just about no library would
  11529. # ever link correctly. If we're not using GNU ld we use -z text
  11530. # though, which does catch some bad symbols but isn't as heavy-handed
  11531. # as -z defs.
  11532. no_undefined_flag_CXX='${wl}-z,text'
  11533. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11534. archive_cmds_need_lc_CXX=no
  11535. hardcode_shlibpath_var_CXX=no
  11536. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11537. hardcode_libdir_separator_CXX=':'
  11538. link_all_deplibs_CXX=yes
  11539. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11540. runpath_var='LD_RUN_PATH'
  11541. case $cc_basename in
  11542. CC*)
  11543. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11544. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11545. ;;
  11546. *)
  11547. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11548. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11549. ;;
  11550. esac
  11551. ;;
  11552. tandem*)
  11553. case $cc_basename in
  11554. NCC*)
  11555. # NonStop-UX NCC 3.20
  11556. # FIXME: insert proper C++ library support
  11557. ld_shlibs_CXX=no
  11558. ;;
  11559. *)
  11560. # FIXME: insert proper C++ library support
  11561. ld_shlibs_CXX=no
  11562. ;;
  11563. esac
  11564. ;;
  11565. vxworks*)
  11566. # FIXME: insert proper C++ library support
  11567. ld_shlibs_CXX=no
  11568. ;;
  11569. *)
  11570. # FIXME: insert proper C++ library support
  11571. ld_shlibs_CXX=no
  11572. ;;
  11573. esac
  11574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11575. $as_echo "$ld_shlibs_CXX" >&6; }
  11576. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11577. GCC_CXX="$GXX"
  11578. LD_CXX="$LD"
  11579. ## CAVEAT EMPTOR:
  11580. ## There is no encapsulation within the following macros, do not change
  11581. ## the running order or otherwise move them around unless you know exactly
  11582. ## what you are doing...
  11583. # Dependencies to place before and after the object being linked:
  11584. predep_objects_CXX=
  11585. postdep_objects_CXX=
  11586. predeps_CXX=
  11587. postdeps_CXX=
  11588. compiler_lib_search_path_CXX=
  11589. cat > conftest.$ac_ext <<_LT_EOF
  11590. class Foo
  11591. {
  11592. public:
  11593. Foo (void) { a = 0; }
  11594. private:
  11595. int a;
  11596. };
  11597. _LT_EOF
  11598. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11599. (eval $ac_compile) 2>&5
  11600. ac_status=$?
  11601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11602. test $ac_status = 0; }; then
  11603. # Parse the compiler output and extract the necessary
  11604. # objects, libraries and library flags.
  11605. # Sentinel used to keep track of whether or not we are before
  11606. # the conftest object file.
  11607. pre_test_object_deps_done=no
  11608. for p in `eval "$output_verbose_link_cmd"`; do
  11609. case $p in
  11610. -L* | -R* | -l*)
  11611. # Some compilers place space between "-{L,R}" and the path.
  11612. # Remove the space.
  11613. if test $p = "-L" ||
  11614. test $p = "-R"; then
  11615. prev=$p
  11616. continue
  11617. else
  11618. prev=
  11619. fi
  11620. if test "$pre_test_object_deps_done" = no; then
  11621. case $p in
  11622. -L* | -R*)
  11623. # Internal compiler library paths should come after those
  11624. # provided the user. The postdeps already come after the
  11625. # user supplied libs so there is no need to process them.
  11626. if test -z "$compiler_lib_search_path_CXX"; then
  11627. compiler_lib_search_path_CXX="${prev}${p}"
  11628. else
  11629. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11630. fi
  11631. ;;
  11632. # The "-l" case would never come before the object being
  11633. # linked, so don't bother handling this case.
  11634. esac
  11635. else
  11636. if test -z "$postdeps_CXX"; then
  11637. postdeps_CXX="${prev}${p}"
  11638. else
  11639. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11640. fi
  11641. fi
  11642. ;;
  11643. *.$objext)
  11644. # This assumes that the test object file only shows up
  11645. # once in the compiler output.
  11646. if test "$p" = "conftest.$objext"; then
  11647. pre_test_object_deps_done=yes
  11648. continue
  11649. fi
  11650. if test "$pre_test_object_deps_done" = no; then
  11651. if test -z "$predep_objects_CXX"; then
  11652. predep_objects_CXX="$p"
  11653. else
  11654. predep_objects_CXX="$predep_objects_CXX $p"
  11655. fi
  11656. else
  11657. if test -z "$postdep_objects_CXX"; then
  11658. postdep_objects_CXX="$p"
  11659. else
  11660. postdep_objects_CXX="$postdep_objects_CXX $p"
  11661. fi
  11662. fi
  11663. ;;
  11664. *) ;; # Ignore the rest.
  11665. esac
  11666. done
  11667. # Clean up.
  11668. rm -f a.out a.exe
  11669. else
  11670. echo "libtool.m4: error: problem compiling CXX test program"
  11671. fi
  11672. $RM -f confest.$objext
  11673. # PORTME: override above test on systems where it is broken
  11674. case $host_os in
  11675. interix[3-9]*)
  11676. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11677. # hack all around it, let's just trust "g++" to DTRT.
  11678. predep_objects_CXX=
  11679. postdep_objects_CXX=
  11680. postdeps_CXX=
  11681. ;;
  11682. linux*)
  11683. case `$CC -V 2>&1 | sed 5q` in
  11684. *Sun\ C*)
  11685. # Sun C++ 5.9
  11686. # The more standards-conforming stlport4 library is
  11687. # incompatible with the Cstd library. Avoid specifying
  11688. # it if it's in CXXFLAGS. Ignore libCrun as
  11689. # -library=stlport4 depends on it.
  11690. case " $CXX $CXXFLAGS " in
  11691. *" -library=stlport4 "*)
  11692. solaris_use_stlport4=yes
  11693. ;;
  11694. esac
  11695. if test "$solaris_use_stlport4" != yes; then
  11696. postdeps_CXX='-library=Cstd -library=Crun'
  11697. fi
  11698. ;;
  11699. esac
  11700. ;;
  11701. solaris*)
  11702. case $cc_basename in
  11703. CC*)
  11704. # The more standards-conforming stlport4 library is
  11705. # incompatible with the Cstd library. Avoid specifying
  11706. # it if it's in CXXFLAGS. Ignore libCrun as
  11707. # -library=stlport4 depends on it.
  11708. case " $CXX $CXXFLAGS " in
  11709. *" -library=stlport4 "*)
  11710. solaris_use_stlport4=yes
  11711. ;;
  11712. esac
  11713. # Adding this requires a known-good setup of shared libraries for
  11714. # Sun compiler versions before 5.6, else PIC objects from an old
  11715. # archive will be linked into the output, leading to subtle bugs.
  11716. if test "$solaris_use_stlport4" != yes; then
  11717. postdeps_CXX='-library=Cstd -library=Crun'
  11718. fi
  11719. ;;
  11720. esac
  11721. ;;
  11722. esac
  11723. case " $postdeps_CXX " in
  11724. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11725. esac
  11726. compiler_lib_search_dirs_CXX=
  11727. if test -n "${compiler_lib_search_path_CXX}"; then
  11728. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11729. fi
  11730. lt_prog_compiler_wl_CXX=
  11731. lt_prog_compiler_pic_CXX=
  11732. lt_prog_compiler_static_CXX=
  11733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11734. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11735. # C++ specific cases for pic, static, wl, etc.
  11736. if test "$GXX" = yes; then
  11737. lt_prog_compiler_wl_CXX='-Wl,'
  11738. lt_prog_compiler_static_CXX='-static'
  11739. case $host_os in
  11740. aix*)
  11741. # All AIX code is PIC.
  11742. if test "$host_cpu" = ia64; then
  11743. # AIX 5 now supports IA64 processor
  11744. lt_prog_compiler_static_CXX='-Bstatic'
  11745. fi
  11746. ;;
  11747. amigaos*)
  11748. case $host_cpu in
  11749. powerpc)
  11750. # see comment about AmigaOS4 .so support
  11751. lt_prog_compiler_pic_CXX='-fPIC'
  11752. ;;
  11753. m68k)
  11754. # FIXME: we need at least 68020 code to build shared libraries, but
  11755. # adding the `-m68020' flag to GCC prevents building anything better,
  11756. # like `-m68040'.
  11757. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11758. ;;
  11759. esac
  11760. ;;
  11761. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11762. # PIC is the default for these OSes.
  11763. ;;
  11764. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11765. # This hack is so that the source file can tell whether it is being
  11766. # built for inclusion in a dll (and should export symbols for example).
  11767. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11768. # (--disable-auto-import) libraries
  11769. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11770. ;;
  11771. darwin* | rhapsody*)
  11772. # PIC is the default on this platform
  11773. # Common symbols not allowed in MH_DYLIB files
  11774. lt_prog_compiler_pic_CXX='-fno-common'
  11775. ;;
  11776. *djgpp*)
  11777. # DJGPP does not support shared libraries at all
  11778. lt_prog_compiler_pic_CXX=
  11779. ;;
  11780. interix[3-9]*)
  11781. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11782. # Instead, we relocate shared libraries at runtime.
  11783. ;;
  11784. sysv4*MP*)
  11785. if test -d /usr/nec; then
  11786. lt_prog_compiler_pic_CXX=-Kconform_pic
  11787. fi
  11788. ;;
  11789. hpux*)
  11790. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11791. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11792. # sets the default TLS model and affects inlining.
  11793. case $host_cpu in
  11794. hppa*64*)
  11795. ;;
  11796. *)
  11797. lt_prog_compiler_pic_CXX='-fPIC'
  11798. ;;
  11799. esac
  11800. ;;
  11801. *qnx* | *nto*)
  11802. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11803. # it will coredump.
  11804. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11805. ;;
  11806. *)
  11807. lt_prog_compiler_pic_CXX='-fPIC'
  11808. ;;
  11809. esac
  11810. else
  11811. case $host_os in
  11812. aix[4-9]*)
  11813. # All AIX code is PIC.
  11814. if test "$host_cpu" = ia64; then
  11815. # AIX 5 now supports IA64 processor
  11816. lt_prog_compiler_static_CXX='-Bstatic'
  11817. else
  11818. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11819. fi
  11820. ;;
  11821. chorus*)
  11822. case $cc_basename in
  11823. cxch68*)
  11824. # Green Hills C++ Compiler
  11825. # _LT_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"
  11826. ;;
  11827. esac
  11828. ;;
  11829. dgux*)
  11830. case $cc_basename in
  11831. ec++*)
  11832. lt_prog_compiler_pic_CXX='-KPIC'
  11833. ;;
  11834. ghcx*)
  11835. # Green Hills C++ Compiler
  11836. lt_prog_compiler_pic_CXX='-pic'
  11837. ;;
  11838. *)
  11839. ;;
  11840. esac
  11841. ;;
  11842. freebsd* | dragonfly*)
  11843. # FreeBSD uses GNU C++
  11844. ;;
  11845. hpux9* | hpux10* | hpux11*)
  11846. case $cc_basename in
  11847. CC*)
  11848. lt_prog_compiler_wl_CXX='-Wl,'
  11849. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11850. if test "$host_cpu" != ia64; then
  11851. lt_prog_compiler_pic_CXX='+Z'
  11852. fi
  11853. ;;
  11854. aCC*)
  11855. lt_prog_compiler_wl_CXX='-Wl,'
  11856. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11857. case $host_cpu in
  11858. hppa*64*|ia64*)
  11859. # +Z the default
  11860. ;;
  11861. *)
  11862. lt_prog_compiler_pic_CXX='+Z'
  11863. ;;
  11864. esac
  11865. ;;
  11866. *)
  11867. ;;
  11868. esac
  11869. ;;
  11870. interix*)
  11871. # This is c89, which is MS Visual C++ (no shared libs)
  11872. # Anyone wants to do a port?
  11873. ;;
  11874. irix5* | irix6* | nonstopux*)
  11875. case $cc_basename in
  11876. CC*)
  11877. lt_prog_compiler_wl_CXX='-Wl,'
  11878. lt_prog_compiler_static_CXX='-non_shared'
  11879. # CC pic flag -KPIC is the default.
  11880. ;;
  11881. *)
  11882. ;;
  11883. esac
  11884. ;;
  11885. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11886. case $cc_basename in
  11887. KCC*)
  11888. # KAI C++ Compiler
  11889. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11890. lt_prog_compiler_pic_CXX='-fPIC'
  11891. ;;
  11892. ecpc* )
  11893. # old Intel C++ for x86_64 which still supported -KPIC.
  11894. lt_prog_compiler_wl_CXX='-Wl,'
  11895. lt_prog_compiler_pic_CXX='-KPIC'
  11896. lt_prog_compiler_static_CXX='-static'
  11897. ;;
  11898. icpc* )
  11899. # Intel C++, used to be incompatible with GCC.
  11900. # ICC 10 doesn't accept -KPIC any more.
  11901. lt_prog_compiler_wl_CXX='-Wl,'
  11902. lt_prog_compiler_pic_CXX='-fPIC'
  11903. lt_prog_compiler_static_CXX='-static'
  11904. ;;
  11905. pgCC* | pgcpp*)
  11906. # Portland Group C++ compiler
  11907. lt_prog_compiler_wl_CXX='-Wl,'
  11908. lt_prog_compiler_pic_CXX='-fpic'
  11909. lt_prog_compiler_static_CXX='-Bstatic'
  11910. ;;
  11911. cxx*)
  11912. # Compaq C++
  11913. # Make sure the PIC flag is empty. It appears that all Alpha
  11914. # Linux and Compaq Tru64 Unix objects are PIC.
  11915. lt_prog_compiler_pic_CXX=
  11916. lt_prog_compiler_static_CXX='-non_shared'
  11917. ;;
  11918. xlc* | xlC*)
  11919. # IBM XL 8.0 on PPC
  11920. lt_prog_compiler_wl_CXX='-Wl,'
  11921. lt_prog_compiler_pic_CXX='-qpic'
  11922. lt_prog_compiler_static_CXX='-qstaticlink'
  11923. ;;
  11924. *)
  11925. case `$CC -V 2>&1 | sed 5q` in
  11926. *Sun\ C*)
  11927. # Sun C++ 5.9
  11928. lt_prog_compiler_pic_CXX='-KPIC'
  11929. lt_prog_compiler_static_CXX='-Bstatic'
  11930. lt_prog_compiler_wl_CXX='-Qoption ld '
  11931. ;;
  11932. esac
  11933. ;;
  11934. esac
  11935. ;;
  11936. lynxos*)
  11937. ;;
  11938. m88k*)
  11939. ;;
  11940. mvs*)
  11941. case $cc_basename in
  11942. cxx*)
  11943. lt_prog_compiler_pic_CXX='-W c,exportall'
  11944. ;;
  11945. *)
  11946. ;;
  11947. esac
  11948. ;;
  11949. netbsd* | netbsdelf*-gnu)
  11950. ;;
  11951. *qnx* | *nto*)
  11952. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11953. # it will coredump.
  11954. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11955. ;;
  11956. osf3* | osf4* | osf5*)
  11957. case $cc_basename in
  11958. KCC*)
  11959. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11960. ;;
  11961. RCC*)
  11962. # Rational C++ 2.4.1
  11963. lt_prog_compiler_pic_CXX='-pic'
  11964. ;;
  11965. cxx*)
  11966. # Digital/Compaq C++
  11967. lt_prog_compiler_wl_CXX='-Wl,'
  11968. # Make sure the PIC flag is empty. It appears that all Alpha
  11969. # Linux and Compaq Tru64 Unix objects are PIC.
  11970. lt_prog_compiler_pic_CXX=
  11971. lt_prog_compiler_static_CXX='-non_shared'
  11972. ;;
  11973. *)
  11974. ;;
  11975. esac
  11976. ;;
  11977. psos*)
  11978. ;;
  11979. solaris*)
  11980. case $cc_basename in
  11981. CC*)
  11982. # Sun C++ 4.2, 5.x and Centerline C++
  11983. lt_prog_compiler_pic_CXX='-KPIC'
  11984. lt_prog_compiler_static_CXX='-Bstatic'
  11985. lt_prog_compiler_wl_CXX='-Qoption ld '
  11986. ;;
  11987. gcx*)
  11988. # Green Hills C++ Compiler
  11989. lt_prog_compiler_pic_CXX='-PIC'
  11990. ;;
  11991. *)
  11992. ;;
  11993. esac
  11994. ;;
  11995. sunos4*)
  11996. case $cc_basename in
  11997. CC*)
  11998. # Sun C++ 4.x
  11999. lt_prog_compiler_pic_CXX='-pic'
  12000. lt_prog_compiler_static_CXX='-Bstatic'
  12001. ;;
  12002. lcc*)
  12003. # Lucid
  12004. lt_prog_compiler_pic_CXX='-pic'
  12005. ;;
  12006. *)
  12007. ;;
  12008. esac
  12009. ;;
  12010. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12011. case $cc_basename in
  12012. CC*)
  12013. lt_prog_compiler_wl_CXX='-Wl,'
  12014. lt_prog_compiler_pic_CXX='-KPIC'
  12015. lt_prog_compiler_static_CXX='-Bstatic'
  12016. ;;
  12017. esac
  12018. ;;
  12019. tandem*)
  12020. case $cc_basename in
  12021. NCC*)
  12022. # NonStop-UX NCC 3.20
  12023. lt_prog_compiler_pic_CXX='-KPIC'
  12024. ;;
  12025. *)
  12026. ;;
  12027. esac
  12028. ;;
  12029. vxworks*)
  12030. ;;
  12031. *)
  12032. lt_prog_compiler_can_build_shared_CXX=no
  12033. ;;
  12034. esac
  12035. fi
  12036. case $host_os in
  12037. # For platforms which do not support PIC, -DPIC is meaningless:
  12038. *djgpp*)
  12039. lt_prog_compiler_pic_CXX=
  12040. ;;
  12041. *)
  12042. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12043. ;;
  12044. esac
  12045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  12046. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12047. #
  12048. # Check to make sure the PIC flag actually works.
  12049. #
  12050. if test -n "$lt_prog_compiler_pic_CXX"; then
  12051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12052. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12053. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  12054. $as_echo_n "(cached) " >&6
  12055. else
  12056. lt_cv_prog_compiler_pic_works_CXX=no
  12057. ac_outfile=conftest.$ac_objext
  12058. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12059. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12060. # Insert the option either (1) after the last *FLAGS variable, or
  12061. # (2) before a word containing "conftest.", or (3) at the end.
  12062. # Note that $ac_compile itself does not contain backslashes and begins
  12063. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12064. # The option is referenced via a variable to avoid confusing sed.
  12065. lt_compile=`echo "$ac_compile" | $SED \
  12066. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12067. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12068. -e 's:$: $lt_compiler_flag:'`
  12069. (eval echo "\"\$as_me:13922: $lt_compile\"" >&5)
  12070. (eval "$lt_compile" 2>conftest.err)
  12071. ac_status=$?
  12072. cat conftest.err >&5
  12073. echo "$as_me:13926: \$? = $ac_status" >&5
  12074. if (exit $ac_status) && test -s "$ac_outfile"; then
  12075. # The compiler can only warn and ignore the option if not recognized
  12076. # So say no if there are warnings other than the usual output.
  12077. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12078. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12079. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12080. lt_cv_prog_compiler_pic_works_CXX=yes
  12081. fi
  12082. fi
  12083. $RM conftest*
  12084. fi
  12085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12086. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12087. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12088. case $lt_prog_compiler_pic_CXX in
  12089. "" | " "*) ;;
  12090. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12091. esac
  12092. else
  12093. lt_prog_compiler_pic_CXX=
  12094. lt_prog_compiler_can_build_shared_CXX=no
  12095. fi
  12096. fi
  12097. #
  12098. # Check to make sure the static flag actually works.
  12099. #
  12100. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12102. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12103. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  12104. $as_echo_n "(cached) " >&6
  12105. else
  12106. lt_cv_prog_compiler_static_works_CXX=no
  12107. save_LDFLAGS="$LDFLAGS"
  12108. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12109. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12110. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12111. # The linker can only warn and ignore the option if not recognized
  12112. # So say no if there are warnings
  12113. if test -s conftest.err; then
  12114. # Append any errors to the config.log.
  12115. cat conftest.err 1>&5
  12116. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12117. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12118. if diff conftest.exp conftest.er2 >/dev/null; then
  12119. lt_cv_prog_compiler_static_works_CXX=yes
  12120. fi
  12121. else
  12122. lt_cv_prog_compiler_static_works_CXX=yes
  12123. fi
  12124. fi
  12125. $RM -r conftest*
  12126. LDFLAGS="$save_LDFLAGS"
  12127. fi
  12128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12129. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12130. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12131. :
  12132. else
  12133. lt_prog_compiler_static_CXX=
  12134. fi
  12135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12136. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12137. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  12138. $as_echo_n "(cached) " >&6
  12139. else
  12140. lt_cv_prog_compiler_c_o_CXX=no
  12141. $RM -r conftest 2>/dev/null
  12142. mkdir conftest
  12143. cd conftest
  12144. mkdir out
  12145. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12146. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12147. # Insert the option either (1) after the last *FLAGS variable, or
  12148. # (2) before a word containing "conftest.", or (3) at the end.
  12149. # Note that $ac_compile itself does not contain backslashes and begins
  12150. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12151. lt_compile=`echo "$ac_compile" | $SED \
  12152. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12153. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12154. -e 's:$: $lt_compiler_flag:'`
  12155. (eval echo "\"\$as_me:14021: $lt_compile\"" >&5)
  12156. (eval "$lt_compile" 2>out/conftest.err)
  12157. ac_status=$?
  12158. cat out/conftest.err >&5
  12159. echo "$as_me:14025: \$? = $ac_status" >&5
  12160. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12161. then
  12162. # The compiler can only warn and ignore the option if not recognized
  12163. # So say no if there are warnings
  12164. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12165. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12166. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12167. lt_cv_prog_compiler_c_o_CXX=yes
  12168. fi
  12169. fi
  12170. chmod u+w . 2>&5
  12171. $RM conftest*
  12172. # SGI C++ compiler will create directory out/ii_files/ for
  12173. # template instantiation
  12174. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12175. $RM out/* && rmdir out
  12176. cd ..
  12177. $RM -r conftest
  12178. $RM conftest*
  12179. fi
  12180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12181. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12183. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12184. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  12185. $as_echo_n "(cached) " >&6
  12186. else
  12187. lt_cv_prog_compiler_c_o_CXX=no
  12188. $RM -r conftest 2>/dev/null
  12189. mkdir conftest
  12190. cd conftest
  12191. mkdir out
  12192. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12193. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12194. # Insert the option either (1) after the last *FLAGS variable, or
  12195. # (2) before a word containing "conftest.", or (3) at the end.
  12196. # Note that $ac_compile itself does not contain backslashes and begins
  12197. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12198. lt_compile=`echo "$ac_compile" | $SED \
  12199. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12200. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12201. -e 's:$: $lt_compiler_flag:'`
  12202. (eval echo "\"\$as_me:14073: $lt_compile\"" >&5)
  12203. (eval "$lt_compile" 2>out/conftest.err)
  12204. ac_status=$?
  12205. cat out/conftest.err >&5
  12206. echo "$as_me:14077: \$? = $ac_status" >&5
  12207. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12208. then
  12209. # The compiler can only warn and ignore the option if not recognized
  12210. # So say no if there are warnings
  12211. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12212. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12213. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12214. lt_cv_prog_compiler_c_o_CXX=yes
  12215. fi
  12216. fi
  12217. chmod u+w . 2>&5
  12218. $RM conftest*
  12219. # SGI C++ compiler will create directory out/ii_files/ for
  12220. # template instantiation
  12221. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12222. $RM out/* && rmdir out
  12223. cd ..
  12224. $RM -r conftest
  12225. $RM conftest*
  12226. fi
  12227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12228. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12229. hard_links="nottested"
  12230. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12231. # do not overwrite the value of need_locks provided by the user
  12232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12233. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12234. hard_links=yes
  12235. $RM conftest*
  12236. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12237. touch conftest.a
  12238. ln conftest.a conftest.b 2>&5 || hard_links=no
  12239. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12241. $as_echo "$hard_links" >&6; }
  12242. if test "$hard_links" = no; then
  12243. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12244. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12245. need_locks=warn
  12246. fi
  12247. else
  12248. need_locks=no
  12249. fi
  12250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12251. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12252. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12253. case $host_os in
  12254. aix[4-9]*)
  12255. # If we're using GNU nm, then we don't want the "-C" option.
  12256. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12257. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12258. 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'
  12259. else
  12260. 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'
  12261. fi
  12262. ;;
  12263. pw32*)
  12264. export_symbols_cmds_CXX="$ltdll_cmds"
  12265. ;;
  12266. cygwin* | mingw* | cegcc*)
  12267. 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'
  12268. ;;
  12269. linux* | k*bsd*-gnu)
  12270. link_all_deplibs_CXX=no
  12271. ;;
  12272. *)
  12273. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12274. ;;
  12275. esac
  12276. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12278. $as_echo "$ld_shlibs_CXX" >&6; }
  12279. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12280. with_gnu_ld_CXX=$with_gnu_ld
  12281. #
  12282. # Do we need to explicitly link libc?
  12283. #
  12284. case "x$archive_cmds_need_lc_CXX" in
  12285. x|xyes)
  12286. # Assume -lc should be added
  12287. archive_cmds_need_lc_CXX=yes
  12288. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12289. case $archive_cmds_CXX in
  12290. *'~'*)
  12291. # FIXME: we may have to deal with multi-command sequences.
  12292. ;;
  12293. '$CC '*)
  12294. # Test whether the compiler implicitly links with -lc since on some
  12295. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12296. # to ld, don't add -lc before -lgcc.
  12297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12298. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12299. $RM conftest*
  12300. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12301. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12302. (eval $ac_compile) 2>&5
  12303. ac_status=$?
  12304. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12305. test $ac_status = 0; } 2>conftest.err; then
  12306. soname=conftest
  12307. lib=conftest
  12308. libobjs=conftest.$ac_objext
  12309. deplibs=
  12310. wl=$lt_prog_compiler_wl_CXX
  12311. pic_flag=$lt_prog_compiler_pic_CXX
  12312. compiler_flags=-v
  12313. linker_flags=-v
  12314. verstring=
  12315. output_objdir=.
  12316. libname=conftest
  12317. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12318. allow_undefined_flag_CXX=
  12319. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12320. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12321. ac_status=$?
  12322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12323. test $ac_status = 0; }
  12324. then
  12325. archive_cmds_need_lc_CXX=no
  12326. else
  12327. archive_cmds_need_lc_CXX=yes
  12328. fi
  12329. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12330. else
  12331. cat conftest.err 1>&5
  12332. fi
  12333. $RM conftest*
  12334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  12335. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  12336. ;;
  12337. esac
  12338. fi
  12339. ;;
  12340. esac
  12341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12342. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12343. library_names_spec=
  12344. libname_spec='lib$name'
  12345. soname_spec=
  12346. shrext_cmds=".so"
  12347. postinstall_cmds=
  12348. postuninstall_cmds=
  12349. finish_cmds=
  12350. finish_eval=
  12351. shlibpath_var=
  12352. shlibpath_overrides_runpath=unknown
  12353. version_type=none
  12354. dynamic_linker="$host_os ld.so"
  12355. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12356. need_lib_prefix=unknown
  12357. hardcode_into_libs=no
  12358. # when you set need_version to no, make sure it does not cause -set_version
  12359. # flags to be left without arguments
  12360. need_version=unknown
  12361. case $host_os in
  12362. aix3*)
  12363. version_type=linux
  12364. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12365. shlibpath_var=LIBPATH
  12366. # AIX 3 has no versioning support, so we append a major version to the name.
  12367. soname_spec='${libname}${release}${shared_ext}$major'
  12368. ;;
  12369. aix[4-9]*)
  12370. version_type=linux
  12371. need_lib_prefix=no
  12372. need_version=no
  12373. hardcode_into_libs=yes
  12374. if test "$host_cpu" = ia64; then
  12375. # AIX 5 supports IA64
  12376. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12377. shlibpath_var=LD_LIBRARY_PATH
  12378. else
  12379. # With GCC up to 2.95.x, collect2 would create an import file
  12380. # for dependence libraries. The import file would start with
  12381. # the line `#! .'. This would cause the generated library to
  12382. # depend on `.', always an invalid library. This was fixed in
  12383. # development snapshots of GCC prior to 3.0.
  12384. case $host_os in
  12385. aix4 | aix4.[01] | aix4.[01].*)
  12386. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12387. echo ' yes '
  12388. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12389. :
  12390. else
  12391. can_build_shared=no
  12392. fi
  12393. ;;
  12394. esac
  12395. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12396. # soname into executable. Probably we can add versioning support to
  12397. # collect2, so additional links can be useful in future.
  12398. if test "$aix_use_runtimelinking" = yes; then
  12399. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12400. # instead of lib<name>.a to let people know that these are not
  12401. # typical AIX shared libraries.
  12402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12403. else
  12404. # We preserve .a as extension for shared libraries through AIX4.2
  12405. # and later when we are not doing run time linking.
  12406. library_names_spec='${libname}${release}.a $libname.a'
  12407. soname_spec='${libname}${release}${shared_ext}$major'
  12408. fi
  12409. shlibpath_var=LIBPATH
  12410. fi
  12411. ;;
  12412. amigaos*)
  12413. case $host_cpu in
  12414. powerpc)
  12415. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12416. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12418. ;;
  12419. m68k)
  12420. library_names_spec='$libname.ixlibrary $libname.a'
  12421. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12422. 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'
  12423. ;;
  12424. esac
  12425. ;;
  12426. beos*)
  12427. library_names_spec='${libname}${shared_ext}'
  12428. dynamic_linker="$host_os ld.so"
  12429. shlibpath_var=LIBRARY_PATH
  12430. ;;
  12431. bsdi[45]*)
  12432. version_type=linux
  12433. need_version=no
  12434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12435. soname_spec='${libname}${release}${shared_ext}$major'
  12436. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12437. shlibpath_var=LD_LIBRARY_PATH
  12438. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12439. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12440. # the default ld.so.conf also contains /usr/contrib/lib and
  12441. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12442. # libtool to hard-code these into programs
  12443. ;;
  12444. cygwin* | mingw* | pw32* | cegcc*)
  12445. version_type=windows
  12446. shrext_cmds=".dll"
  12447. need_version=no
  12448. need_lib_prefix=no
  12449. case $GCC,$host_os in
  12450. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12451. library_names_spec='$libname.dll.a'
  12452. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12453. postinstall_cmds='base_file=`basename \${file}`~
  12454. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12455. dldir=$destdir/`dirname \$dlpath`~
  12456. test -d \$dldir || mkdir -p \$dldir~
  12457. $install_prog $dir/$dlname \$dldir/$dlname~
  12458. chmod a+x \$dldir/$dlname~
  12459. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12460. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12461. fi'
  12462. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12463. dlpath=$dir/\$dldll~
  12464. $RM \$dlpath'
  12465. shlibpath_overrides_runpath=yes
  12466. case $host_os in
  12467. cygwin*)
  12468. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12469. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12470. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12471. ;;
  12472. mingw* | cegcc*)
  12473. # MinGW DLLs use traditional 'lib' prefix
  12474. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12475. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12476. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12477. # It is most probably a Windows format PATH printed by
  12478. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12479. # path with ; separators, and with drive letters. We can handle the
  12480. # drive letters (cygwin fileutils understands them), so leave them,
  12481. # especially as we might pass files found there to a mingw objdump,
  12482. # which wouldn't understand a cygwinified path. Ahh.
  12483. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12484. else
  12485. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12486. fi
  12487. ;;
  12488. pw32*)
  12489. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12490. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12491. ;;
  12492. esac
  12493. ;;
  12494. *)
  12495. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12496. ;;
  12497. esac
  12498. dynamic_linker='Win32 ld.exe'
  12499. # FIXME: first we should search . and the directory the executable is in
  12500. shlibpath_var=PATH
  12501. ;;
  12502. darwin* | rhapsody*)
  12503. dynamic_linker="$host_os dyld"
  12504. version_type=darwin
  12505. need_lib_prefix=no
  12506. need_version=no
  12507. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12508. soname_spec='${libname}${release}${major}$shared_ext'
  12509. shlibpath_overrides_runpath=yes
  12510. shlibpath_var=DYLD_LIBRARY_PATH
  12511. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12512. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12513. ;;
  12514. dgux*)
  12515. version_type=linux
  12516. need_lib_prefix=no
  12517. need_version=no
  12518. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12519. soname_spec='${libname}${release}${shared_ext}$major'
  12520. shlibpath_var=LD_LIBRARY_PATH
  12521. ;;
  12522. freebsd1*)
  12523. dynamic_linker=no
  12524. ;;
  12525. freebsd* | dragonfly*)
  12526. # DragonFly does not have aout. When/if they implement a new
  12527. # versioning mechanism, adjust this.
  12528. if test -x /usr/bin/objformat; then
  12529. objformat=`/usr/bin/objformat`
  12530. else
  12531. case $host_os in
  12532. freebsd[123]*) objformat=aout ;;
  12533. *) objformat=elf ;;
  12534. esac
  12535. fi
  12536. version_type=freebsd-$objformat
  12537. case $version_type in
  12538. freebsd-elf*)
  12539. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12540. need_version=no
  12541. need_lib_prefix=no
  12542. ;;
  12543. freebsd-*)
  12544. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12545. need_version=yes
  12546. ;;
  12547. esac
  12548. shlibpath_var=LD_LIBRARY_PATH
  12549. case $host_os in
  12550. freebsd2*)
  12551. shlibpath_overrides_runpath=yes
  12552. ;;
  12553. freebsd3.[01]* | freebsdelf3.[01]*)
  12554. shlibpath_overrides_runpath=yes
  12555. hardcode_into_libs=yes
  12556. ;;
  12557. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12558. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12559. shlibpath_overrides_runpath=no
  12560. hardcode_into_libs=yes
  12561. ;;
  12562. *) # from 4.6 on, and DragonFly
  12563. shlibpath_overrides_runpath=yes
  12564. hardcode_into_libs=yes
  12565. ;;
  12566. esac
  12567. ;;
  12568. gnu*)
  12569. version_type=linux
  12570. need_lib_prefix=no
  12571. need_version=no
  12572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12573. soname_spec='${libname}${release}${shared_ext}$major'
  12574. shlibpath_var=LD_LIBRARY_PATH
  12575. hardcode_into_libs=yes
  12576. ;;
  12577. hpux9* | hpux10* | hpux11*)
  12578. # Give a soname corresponding to the major version so that dld.sl refuses to
  12579. # link against other versions.
  12580. version_type=sunos
  12581. need_lib_prefix=no
  12582. need_version=no
  12583. case $host_cpu in
  12584. ia64*)
  12585. shrext_cmds='.so'
  12586. hardcode_into_libs=yes
  12587. dynamic_linker="$host_os dld.so"
  12588. shlibpath_var=LD_LIBRARY_PATH
  12589. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12590. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12591. soname_spec='${libname}${release}${shared_ext}$major'
  12592. if test "X$HPUX_IA64_MODE" = X32; then
  12593. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12594. else
  12595. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12596. fi
  12597. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12598. ;;
  12599. hppa*64*)
  12600. shrext_cmds='.sl'
  12601. hardcode_into_libs=yes
  12602. dynamic_linker="$host_os dld.sl"
  12603. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12604. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12606. soname_spec='${libname}${release}${shared_ext}$major'
  12607. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12608. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12609. ;;
  12610. *)
  12611. shrext_cmds='.sl'
  12612. dynamic_linker="$host_os dld.sl"
  12613. shlibpath_var=SHLIB_PATH
  12614. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12616. soname_spec='${libname}${release}${shared_ext}$major'
  12617. ;;
  12618. esac
  12619. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12620. postinstall_cmds='chmod 555 $lib'
  12621. ;;
  12622. interix[3-9]*)
  12623. version_type=linux
  12624. need_lib_prefix=no
  12625. need_version=no
  12626. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12627. soname_spec='${libname}${release}${shared_ext}$major'
  12628. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12629. shlibpath_var=LD_LIBRARY_PATH
  12630. shlibpath_overrides_runpath=no
  12631. hardcode_into_libs=yes
  12632. ;;
  12633. irix5* | irix6* | nonstopux*)
  12634. case $host_os in
  12635. nonstopux*) version_type=nonstopux ;;
  12636. *)
  12637. if test "$lt_cv_prog_gnu_ld" = yes; then
  12638. version_type=linux
  12639. else
  12640. version_type=irix
  12641. fi ;;
  12642. esac
  12643. need_lib_prefix=no
  12644. need_version=no
  12645. soname_spec='${libname}${release}${shared_ext}$major'
  12646. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12647. case $host_os in
  12648. irix5* | nonstopux*)
  12649. libsuff= shlibsuff=
  12650. ;;
  12651. *)
  12652. case $LD in # libtool.m4 will add one of these switches to LD
  12653. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12654. libsuff= shlibsuff= libmagic=32-bit;;
  12655. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12656. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12657. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12658. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12659. *) libsuff= shlibsuff= libmagic=never-match;;
  12660. esac
  12661. ;;
  12662. esac
  12663. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12664. shlibpath_overrides_runpath=no
  12665. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12666. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12667. hardcode_into_libs=yes
  12668. ;;
  12669. # No shared lib support for Linux oldld, aout, or coff.
  12670. linux*oldld* | linux*aout* | linux*coff*)
  12671. dynamic_linker=no
  12672. ;;
  12673. # This must be Linux ELF.
  12674. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12675. version_type=linux
  12676. need_lib_prefix=no
  12677. need_version=no
  12678. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12679. soname_spec='${libname}${release}${shared_ext}$major'
  12680. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12681. shlibpath_var=LD_LIBRARY_PATH
  12682. shlibpath_overrides_runpath=no
  12683. # Some binutils ld are patched to set DT_RUNPATH
  12684. save_LDFLAGS=$LDFLAGS
  12685. save_libdir=$libdir
  12686. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12687. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12689. /* end confdefs.h. */
  12690. int
  12691. main ()
  12692. {
  12693. ;
  12694. return 0;
  12695. }
  12696. _ACEOF
  12697. if ac_fn_cxx_try_link "$LINENO"; then :
  12698. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12699. shlibpath_overrides_runpath=yes
  12700. fi
  12701. fi
  12702. rm -f core conftest.err conftest.$ac_objext \
  12703. conftest$ac_exeext conftest.$ac_ext
  12704. LDFLAGS=$save_LDFLAGS
  12705. libdir=$save_libdir
  12706. # This implies no fast_install, which is unacceptable.
  12707. # Some rework will be needed to allow for fast_install
  12708. # before this can be enabled.
  12709. hardcode_into_libs=yes
  12710. # Append ld.so.conf contents to the search path
  12711. if test -f /etc/ld.so.conf; then
  12712. 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' ' '`
  12713. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12714. fi
  12715. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12716. # powerpc, because MkLinux only supported shared libraries with the
  12717. # GNU dynamic linker. Since this was broken with cross compilers,
  12718. # most powerpc-linux boxes support dynamic linking these days and
  12719. # people can always --disable-shared, the test was removed, and we
  12720. # assume the GNU/Linux dynamic linker is in use.
  12721. dynamic_linker='GNU/Linux ld.so'
  12722. ;;
  12723. netbsdelf*-gnu)
  12724. version_type=linux
  12725. need_lib_prefix=no
  12726. need_version=no
  12727. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12728. soname_spec='${libname}${release}${shared_ext}$major'
  12729. shlibpath_var=LD_LIBRARY_PATH
  12730. shlibpath_overrides_runpath=no
  12731. hardcode_into_libs=yes
  12732. dynamic_linker='NetBSD ld.elf_so'
  12733. ;;
  12734. netbsd*)
  12735. version_type=sunos
  12736. need_lib_prefix=no
  12737. need_version=no
  12738. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12739. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12740. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12741. dynamic_linker='NetBSD (a.out) ld.so'
  12742. else
  12743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12744. soname_spec='${libname}${release}${shared_ext}$major'
  12745. dynamic_linker='NetBSD ld.elf_so'
  12746. fi
  12747. shlibpath_var=LD_LIBRARY_PATH
  12748. shlibpath_overrides_runpath=yes
  12749. hardcode_into_libs=yes
  12750. ;;
  12751. newsos6)
  12752. version_type=linux
  12753. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12754. shlibpath_var=LD_LIBRARY_PATH
  12755. shlibpath_overrides_runpath=yes
  12756. ;;
  12757. *nto* | *qnx*)
  12758. version_type=qnx
  12759. need_lib_prefix=no
  12760. need_version=no
  12761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12762. soname_spec='${libname}${release}${shared_ext}$major'
  12763. shlibpath_var=LD_LIBRARY_PATH
  12764. shlibpath_overrides_runpath=no
  12765. hardcode_into_libs=yes
  12766. dynamic_linker='ldqnx.so'
  12767. ;;
  12768. openbsd*)
  12769. version_type=sunos
  12770. sys_lib_dlsearch_path_spec="/usr/lib"
  12771. need_lib_prefix=no
  12772. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12773. case $host_os in
  12774. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12775. *) need_version=no ;;
  12776. esac
  12777. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12778. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12779. shlibpath_var=LD_LIBRARY_PATH
  12780. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12781. case $host_os in
  12782. openbsd2.[89] | openbsd2.[89].*)
  12783. shlibpath_overrides_runpath=no
  12784. ;;
  12785. *)
  12786. shlibpath_overrides_runpath=yes
  12787. ;;
  12788. esac
  12789. else
  12790. shlibpath_overrides_runpath=yes
  12791. fi
  12792. ;;
  12793. os2*)
  12794. libname_spec='$name'
  12795. shrext_cmds=".dll"
  12796. need_lib_prefix=no
  12797. library_names_spec='$libname${shared_ext} $libname.a'
  12798. dynamic_linker='OS/2 ld.exe'
  12799. shlibpath_var=LIBPATH
  12800. ;;
  12801. osf3* | osf4* | osf5*)
  12802. version_type=osf
  12803. need_lib_prefix=no
  12804. need_version=no
  12805. soname_spec='${libname}${release}${shared_ext}$major'
  12806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12807. shlibpath_var=LD_LIBRARY_PATH
  12808. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12809. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12810. ;;
  12811. rdos*)
  12812. dynamic_linker=no
  12813. ;;
  12814. solaris*)
  12815. version_type=linux
  12816. need_lib_prefix=no
  12817. need_version=no
  12818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12819. soname_spec='${libname}${release}${shared_ext}$major'
  12820. shlibpath_var=LD_LIBRARY_PATH
  12821. shlibpath_overrides_runpath=yes
  12822. hardcode_into_libs=yes
  12823. # ldd complains unless libraries are executable
  12824. postinstall_cmds='chmod +x $lib'
  12825. ;;
  12826. sunos4*)
  12827. version_type=sunos
  12828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12829. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12830. shlibpath_var=LD_LIBRARY_PATH
  12831. shlibpath_overrides_runpath=yes
  12832. if test "$with_gnu_ld" = yes; then
  12833. need_lib_prefix=no
  12834. fi
  12835. need_version=yes
  12836. ;;
  12837. sysv4 | sysv4.3*)
  12838. version_type=linux
  12839. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12840. soname_spec='${libname}${release}${shared_ext}$major'
  12841. shlibpath_var=LD_LIBRARY_PATH
  12842. case $host_vendor in
  12843. sni)
  12844. shlibpath_overrides_runpath=no
  12845. need_lib_prefix=no
  12846. runpath_var=LD_RUN_PATH
  12847. ;;
  12848. siemens)
  12849. need_lib_prefix=no
  12850. ;;
  12851. motorola)
  12852. need_lib_prefix=no
  12853. need_version=no
  12854. shlibpath_overrides_runpath=no
  12855. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12856. ;;
  12857. esac
  12858. ;;
  12859. sysv4*MP*)
  12860. if test -d /usr/nec ;then
  12861. version_type=linux
  12862. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12863. soname_spec='$libname${shared_ext}.$major'
  12864. shlibpath_var=LD_LIBRARY_PATH
  12865. fi
  12866. ;;
  12867. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12868. version_type=freebsd-elf
  12869. need_lib_prefix=no
  12870. need_version=no
  12871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12872. soname_spec='${libname}${release}${shared_ext}$major'
  12873. shlibpath_var=LD_LIBRARY_PATH
  12874. shlibpath_overrides_runpath=yes
  12875. hardcode_into_libs=yes
  12876. if test "$with_gnu_ld" = yes; then
  12877. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12878. else
  12879. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12880. case $host_os in
  12881. sco3.2v5*)
  12882. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12883. ;;
  12884. esac
  12885. fi
  12886. sys_lib_dlsearch_path_spec='/usr/lib'
  12887. ;;
  12888. tpf*)
  12889. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12890. version_type=linux
  12891. need_lib_prefix=no
  12892. need_version=no
  12893. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12894. shlibpath_var=LD_LIBRARY_PATH
  12895. shlibpath_overrides_runpath=no
  12896. hardcode_into_libs=yes
  12897. ;;
  12898. uts4*)
  12899. version_type=linux
  12900. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12901. soname_spec='${libname}${release}${shared_ext}$major'
  12902. shlibpath_var=LD_LIBRARY_PATH
  12903. ;;
  12904. *)
  12905. dynamic_linker=no
  12906. ;;
  12907. esac
  12908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12909. $as_echo "$dynamic_linker" >&6; }
  12910. test "$dynamic_linker" = no && can_build_shared=no
  12911. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12912. if test "$GCC" = yes; then
  12913. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12914. fi
  12915. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12916. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12917. fi
  12918. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12919. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12920. fi
  12921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12922. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12923. hardcode_action_CXX=
  12924. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12925. test -n "$runpath_var_CXX" ||
  12926. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12927. # We can hardcode non-existent directories.
  12928. if test "$hardcode_direct_CXX" != no &&
  12929. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12930. # have to relink, otherwise we might link with an installed library
  12931. # when we should be linking with a yet-to-be-installed one
  12932. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12933. test "$hardcode_minus_L_CXX" != no; then
  12934. # Linking always hardcodes the temporary library directory.
  12935. hardcode_action_CXX=relink
  12936. else
  12937. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12938. hardcode_action_CXX=immediate
  12939. fi
  12940. else
  12941. # We cannot hardcode anything, or else we can only hardcode existing
  12942. # directories.
  12943. hardcode_action_CXX=unsupported
  12944. fi
  12945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12946. $as_echo "$hardcode_action_CXX" >&6; }
  12947. if test "$hardcode_action_CXX" = relink ||
  12948. test "$inherit_rpath_CXX" = yes; then
  12949. # Fast installation is not supported
  12950. enable_fast_install=no
  12951. elif test "$shlibpath_overrides_runpath" = yes ||
  12952. test "$enable_shared" = no; then
  12953. # Fast installation is not necessary
  12954. enable_fast_install=needless
  12955. fi
  12956. fi # test -n "$compiler"
  12957. CC=$lt_save_CC
  12958. LDCXX=$LD
  12959. LD=$lt_save_LD
  12960. GCC=$lt_save_GCC
  12961. with_gnu_ld=$lt_save_with_gnu_ld
  12962. lt_cv_path_LDCXX=$lt_cv_path_LD
  12963. lt_cv_path_LD=$lt_save_path_LD
  12964. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12965. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12966. fi # test "$_lt_caught_CXX_error" != yes
  12967. ac_ext=cpp
  12968. ac_cpp='$CXXCPP $CPPFLAGS'
  12969. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12970. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12971. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12972. ac_config_commands="$ac_config_commands libtool"
  12973. # Only expand once:
  12974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12975. $as_echo_n "checking for ANSI C header files... " >&6; }
  12976. if test "${ac_cv_header_stdc+set}" = set; then :
  12977. $as_echo_n "(cached) " >&6
  12978. else
  12979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12980. /* end confdefs.h. */
  12981. #include <stdlib.h>
  12982. #include <stdarg.h>
  12983. #include <string.h>
  12984. #include <float.h>
  12985. int
  12986. main ()
  12987. {
  12988. ;
  12989. return 0;
  12990. }
  12991. _ACEOF
  12992. if ac_fn_cxx_try_compile "$LINENO"; then :
  12993. ac_cv_header_stdc=yes
  12994. else
  12995. ac_cv_header_stdc=no
  12996. fi
  12997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12998. if test $ac_cv_header_stdc = yes; then
  12999. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13001. /* end confdefs.h. */
  13002. #include <string.h>
  13003. _ACEOF
  13004. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13005. $EGREP "memchr" >/dev/null 2>&1; then :
  13006. else
  13007. ac_cv_header_stdc=no
  13008. fi
  13009. rm -f conftest*
  13010. fi
  13011. if test $ac_cv_header_stdc = yes; then
  13012. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13014. /* end confdefs.h. */
  13015. #include <stdlib.h>
  13016. _ACEOF
  13017. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13018. $EGREP "free" >/dev/null 2>&1; then :
  13019. else
  13020. ac_cv_header_stdc=no
  13021. fi
  13022. rm -f conftest*
  13023. fi
  13024. if test $ac_cv_header_stdc = yes; then
  13025. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13026. if test "$cross_compiling" = yes; then :
  13027. :
  13028. else
  13029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13030. /* end confdefs.h. */
  13031. #include <ctype.h>
  13032. #include <stdlib.h>
  13033. #if ((' ' & 0x0FF) == 0x020)
  13034. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13035. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13036. #else
  13037. # define ISLOWER(c) \
  13038. (('a' <= (c) && (c) <= 'i') \
  13039. || ('j' <= (c) && (c) <= 'r') \
  13040. || ('s' <= (c) && (c) <= 'z'))
  13041. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13042. #endif
  13043. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13044. int
  13045. main ()
  13046. {
  13047. int i;
  13048. for (i = 0; i < 256; i++)
  13049. if (XOR (islower (i), ISLOWER (i))
  13050. || toupper (i) != TOUPPER (i))
  13051. return 2;
  13052. return 0;
  13053. }
  13054. _ACEOF
  13055. if ac_fn_cxx_try_run "$LINENO"; then :
  13056. else
  13057. ac_cv_header_stdc=no
  13058. fi
  13059. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13060. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13061. fi
  13062. fi
  13063. fi
  13064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13065. $as_echo "$ac_cv_header_stdc" >&6; }
  13066. if test $ac_cv_header_stdc = yes; then
  13067. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13068. fi
  13069. for ac_header in inttypes.h stdint.h malloc.h
  13070. do :
  13071. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13072. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13073. eval as_val=\$$as_ac_Header
  13074. if test "x$as_val" = x""yes; then :
  13075. cat >>confdefs.h <<_ACEOF
  13076. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13077. _ACEOF
  13078. fi
  13079. done
  13080. for ac_func in setenv
  13081. do :
  13082. ac_fn_cxx_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  13083. if test "x$ac_cv_func_setenv" = x""yes; then :
  13084. cat >>confdefs.h <<_ACEOF
  13085. #define HAVE_SETENV 1
  13086. _ACEOF
  13087. fi
  13088. done
  13089. CXXFLAGS="$CXXFLAGS -fno-exceptions -Wall -ffast-math -D_REENTRANT"
  13090. # CXXFLAGS="-fno-exceptions -g -Wall -ffast-math -D_REENTRANT `glib-config --cflags`"
  13091. case "$host" in
  13092. *mingw32* )
  13093. MINGW32=yes
  13094. ;;
  13095. esac
  13096. if test "x$MINGW32" = "xyes"; then
  13097. MINGW32_TRUE=
  13098. MINGW32_FALSE='#'
  13099. else
  13100. MINGW32_TRUE='#'
  13101. MINGW32_FALSE=
  13102. fi
  13103. case ${target_os} in
  13104. *sun* | *solaris*)
  13105. CXXFLAGS="$CXXFLAGS -fpermissive"
  13106. ;;
  13107. esac
  13108. # portable types. requires autoconf 2.60
  13109. # `configure' will check if these are defined in system headers.
  13110. # if not, it will auto-detect and define them in `config.h'
  13111. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  13112. case $ac_cv_c_int8_t in #(
  13113. no|yes) ;; #(
  13114. *)
  13115. cat >>confdefs.h <<_ACEOF
  13116. #define int8_t $ac_cv_c_int8_t
  13117. _ACEOF
  13118. ;;
  13119. esac
  13120. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  13121. case $ac_cv_c_uint8_t in #(
  13122. no|yes) ;; #(
  13123. *)
  13124. $as_echo "#define _UINT8_T 1" >>confdefs.h
  13125. cat >>confdefs.h <<_ACEOF
  13126. #define uint8_t $ac_cv_c_uint8_t
  13127. _ACEOF
  13128. ;;
  13129. esac
  13130. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  13131. case $ac_cv_c_int16_t in #(
  13132. no|yes) ;; #(
  13133. *)
  13134. cat >>confdefs.h <<_ACEOF
  13135. #define int16_t $ac_cv_c_int16_t
  13136. _ACEOF
  13137. ;;
  13138. esac
  13139. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  13140. case $ac_cv_c_uint16_t in #(
  13141. no|yes) ;; #(
  13142. *)
  13143. cat >>confdefs.h <<_ACEOF
  13144. #define uint16_t $ac_cv_c_uint16_t
  13145. _ACEOF
  13146. ;;
  13147. esac
  13148. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  13149. case $ac_cv_c_int32_t in #(
  13150. no|yes) ;; #(
  13151. *)
  13152. cat >>confdefs.h <<_ACEOF
  13153. #define int32_t $ac_cv_c_int32_t
  13154. _ACEOF
  13155. ;;
  13156. esac
  13157. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  13158. case $ac_cv_c_uint32_t in #(
  13159. no|yes) ;; #(
  13160. *)
  13161. $as_echo "#define _UINT32_T 1" >>confdefs.h
  13162. cat >>confdefs.h <<_ACEOF
  13163. #define uint32_t $ac_cv_c_uint32_t
  13164. _ACEOF
  13165. ;;
  13166. esac
  13167. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  13168. case $ac_cv_c_int64_t in #(
  13169. no|yes) ;; #(
  13170. *)
  13171. cat >>confdefs.h <<_ACEOF
  13172. #define int64_t $ac_cv_c_int64_t
  13173. _ACEOF
  13174. ;;
  13175. esac
  13176. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  13177. case $ac_cv_c_uint64_t in #(
  13178. no|yes) ;; #(
  13179. *)
  13180. $as_echo "#define _UINT64_T 1" >>confdefs.h
  13181. cat >>confdefs.h <<_ACEOF
  13182. #define uint64_t $ac_cv_c_uint64_t
  13183. _ACEOF
  13184. ;;
  13185. esac
  13186. ac_config_files="$ac_config_files Makefile src/Makefile libmodplug.pc"
  13187. cat >confcache <<\_ACEOF
  13188. # This file is a shell script that caches the results of configure
  13189. # tests run on this system so they can be shared between configure
  13190. # scripts and configure runs, see configure's option --config-cache.
  13191. # It is not useful on other systems. If it contains results you don't
  13192. # want to keep, you may remove or edit it.
  13193. #
  13194. # config.status only pays attention to the cache file if you give it
  13195. # the --recheck option to rerun configure.
  13196. #
  13197. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13198. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13199. # following values.
  13200. _ACEOF
  13201. # The following way of writing the cache mishandles newlines in values,
  13202. # but we know of no workaround that is simple, portable, and efficient.
  13203. # So, we kill variables containing newlines.
  13204. # Ultrix sh set writes to stderr and can't be redirected directly,
  13205. # and sets the high bit in the cache file unless we assign to the vars.
  13206. (
  13207. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13208. eval ac_val=\$$ac_var
  13209. case $ac_val in #(
  13210. *${as_nl}*)
  13211. case $ac_var in #(
  13212. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13213. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13214. esac
  13215. case $ac_var in #(
  13216. _ | IFS | as_nl) ;; #(
  13217. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13218. *) { eval $ac_var=; unset $ac_var;} ;;
  13219. esac ;;
  13220. esac
  13221. done
  13222. (set) 2>&1 |
  13223. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13224. *${as_nl}ac_space=\ *)
  13225. # `set' does not quote correctly, so add quotes: double-quote
  13226. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13227. sed -n \
  13228. "s/'/'\\\\''/g;
  13229. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13230. ;; #(
  13231. *)
  13232. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13233. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13234. ;;
  13235. esac |
  13236. sort
  13237. ) |
  13238. sed '
  13239. /^ac_cv_env_/b end
  13240. t clear
  13241. :clear
  13242. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13243. t end
  13244. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13245. :end' >>confcache
  13246. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13247. if test -w "$cache_file"; then
  13248. test "x$cache_file" != "x/dev/null" &&
  13249. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13250. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13251. cat confcache >$cache_file
  13252. else
  13253. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13254. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13255. fi
  13256. fi
  13257. rm -f confcache
  13258. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13259. # Let make expand exec_prefix.
  13260. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13261. DEFS=-DHAVE_CONFIG_H
  13262. ac_libobjs=
  13263. ac_ltlibobjs=
  13264. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13265. # 1. Remove the extension, and $U if already installed.
  13266. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13267. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13268. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13269. # will be set to the directory where LIBOBJS objects are built.
  13270. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13271. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13272. done
  13273. LIBOBJS=$ac_libobjs
  13274. LTLIBOBJS=$ac_ltlibobjs
  13275. if test -n "$EXEEXT"; then
  13276. am__EXEEXT_TRUE=
  13277. am__EXEEXT_FALSE='#'
  13278. else
  13279. am__EXEEXT_TRUE='#'
  13280. am__EXEEXT_FALSE=
  13281. fi
  13282. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13283. as_fn_error "conditional \"AMDEP\" was never defined.
  13284. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13285. fi
  13286. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13287. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13288. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13289. fi
  13290. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13291. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13292. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13293. fi
  13294. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13295. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13296. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13297. fi
  13298. if test -z "${MINGW32_TRUE}" && test -z "${MINGW32_FALSE}"; then
  13299. as_fn_error "conditional \"MINGW32\" was never defined.
  13300. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13301. fi
  13302. : ${CONFIG_STATUS=./config.status}
  13303. ac_write_fail=0
  13304. ac_clean_files_save=$ac_clean_files
  13305. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13306. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13307. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13308. as_write_fail=0
  13309. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13310. #! $SHELL
  13311. # Generated by $as_me.
  13312. # Run this file to recreate the current configuration.
  13313. # Compiler output produced by configure, useful for debugging
  13314. # configure, is in config.log if it exists.
  13315. debug=false
  13316. ac_cs_recheck=false
  13317. ac_cs_silent=false
  13318. SHELL=\${CONFIG_SHELL-$SHELL}
  13319. export SHELL
  13320. _ASEOF
  13321. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13322. ## -------------------- ##
  13323. ## M4sh Initialization. ##
  13324. ## -------------------- ##
  13325. # Be more Bourne compatible
  13326. DUALCASE=1; export DUALCASE # for MKS sh
  13327. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13328. emulate sh
  13329. NULLCMD=:
  13330. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13331. # is contrary to our usage. Disable this feature.
  13332. alias -g '${1+"$@"}'='"$@"'
  13333. setopt NO_GLOB_SUBST
  13334. else
  13335. case `(set -o) 2>/dev/null` in #(
  13336. *posix*) :
  13337. set -o posix ;; #(
  13338. *) :
  13339. ;;
  13340. esac
  13341. fi
  13342. as_nl='
  13343. '
  13344. export as_nl
  13345. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13346. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13347. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13348. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13349. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13350. # but without wasting forks for bash or zsh.
  13351. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13352. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13353. as_echo='print -r --'
  13354. as_echo_n='print -rn --'
  13355. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13356. as_echo='printf %s\n'
  13357. as_echo_n='printf %s'
  13358. else
  13359. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13360. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13361. as_echo_n='/usr/ucb/echo -n'
  13362. else
  13363. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13364. as_echo_n_body='eval
  13365. arg=$1;
  13366. case $arg in #(
  13367. *"$as_nl"*)
  13368. expr "X$arg" : "X\\(.*\\)$as_nl";
  13369. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13370. esac;
  13371. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13372. '
  13373. export as_echo_n_body
  13374. as_echo_n='sh -c $as_echo_n_body as_echo'
  13375. fi
  13376. export as_echo_body
  13377. as_echo='sh -c $as_echo_body as_echo'
  13378. fi
  13379. # The user is always right.
  13380. if test "${PATH_SEPARATOR+set}" != set; then
  13381. PATH_SEPARATOR=:
  13382. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13383. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13384. PATH_SEPARATOR=';'
  13385. }
  13386. fi
  13387. # IFS
  13388. # We need space, tab and new line, in precisely that order. Quoting is
  13389. # there to prevent editors from complaining about space-tab.
  13390. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13391. # splitting by setting IFS to empty value.)
  13392. IFS=" "" $as_nl"
  13393. # Find who we are. Look in the path if we contain no directory separator.
  13394. case $0 in #((
  13395. *[\\/]* ) as_myself=$0 ;;
  13396. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13397. for as_dir in $PATH
  13398. do
  13399. IFS=$as_save_IFS
  13400. test -z "$as_dir" && as_dir=.
  13401. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13402. done
  13403. IFS=$as_save_IFS
  13404. ;;
  13405. esac
  13406. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13407. # in which case we are not to be found in the path.
  13408. if test "x$as_myself" = x; then
  13409. as_myself=$0
  13410. fi
  13411. if test ! -f "$as_myself"; then
  13412. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13413. exit 1
  13414. fi
  13415. # Unset variables that we do not need and which cause bugs (e.g. in
  13416. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13417. # suppresses any "Segmentation fault" message there. '((' could
  13418. # trigger a bug in pdksh 5.2.14.
  13419. for as_var in BASH_ENV ENV MAIL MAILPATH
  13420. do eval test x\${$as_var+set} = xset \
  13421. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13422. done
  13423. PS1='$ '
  13424. PS2='> '
  13425. PS4='+ '
  13426. # NLS nuisances.
  13427. LC_ALL=C
  13428. export LC_ALL
  13429. LANGUAGE=C
  13430. export LANGUAGE
  13431. # CDPATH.
  13432. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13433. # as_fn_error ERROR [LINENO LOG_FD]
  13434. # ---------------------------------
  13435. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13436. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13437. # script with status $?, using 1 if that was 0.
  13438. as_fn_error ()
  13439. {
  13440. as_status=$?; test $as_status -eq 0 && as_status=1
  13441. if test "$3"; then
  13442. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13443. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13444. fi
  13445. $as_echo "$as_me: error: $1" >&2
  13446. as_fn_exit $as_status
  13447. } # as_fn_error
  13448. # as_fn_set_status STATUS
  13449. # -----------------------
  13450. # Set $? to STATUS, without forking.
  13451. as_fn_set_status ()
  13452. {
  13453. return $1
  13454. } # as_fn_set_status
  13455. # as_fn_exit STATUS
  13456. # -----------------
  13457. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13458. as_fn_exit ()
  13459. {
  13460. set +e
  13461. as_fn_set_status $1
  13462. exit $1
  13463. } # as_fn_exit
  13464. # as_fn_unset VAR
  13465. # ---------------
  13466. # Portably unset VAR.
  13467. as_fn_unset ()
  13468. {
  13469. { eval $1=; unset $1;}
  13470. }
  13471. as_unset=as_fn_unset
  13472. # as_fn_append VAR VALUE
  13473. # ----------------------
  13474. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13475. # advantage of any shell optimizations that allow amortized linear growth over
  13476. # repeated appends, instead of the typical quadratic growth present in naive
  13477. # implementations.
  13478. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13479. eval 'as_fn_append ()
  13480. {
  13481. eval $1+=\$2
  13482. }'
  13483. else
  13484. as_fn_append ()
  13485. {
  13486. eval $1=\$$1\$2
  13487. }
  13488. fi # as_fn_append
  13489. # as_fn_arith ARG...
  13490. # ------------------
  13491. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13492. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13493. # must be portable across $(()) and expr.
  13494. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13495. eval 'as_fn_arith ()
  13496. {
  13497. as_val=$(( $* ))
  13498. }'
  13499. else
  13500. as_fn_arith ()
  13501. {
  13502. as_val=`expr "$@" || test $? -eq 1`
  13503. }
  13504. fi # as_fn_arith
  13505. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13506. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13507. as_expr=expr
  13508. else
  13509. as_expr=false
  13510. fi
  13511. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13512. as_basename=basename
  13513. else
  13514. as_basename=false
  13515. fi
  13516. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13517. as_dirname=dirname
  13518. else
  13519. as_dirname=false
  13520. fi
  13521. as_me=`$as_basename -- "$0" ||
  13522. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13523. X"$0" : 'X\(//\)$' \| \
  13524. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13525. $as_echo X/"$0" |
  13526. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13527. s//\1/
  13528. q
  13529. }
  13530. /^X\/\(\/\/\)$/{
  13531. s//\1/
  13532. q
  13533. }
  13534. /^X\/\(\/\).*/{
  13535. s//\1/
  13536. q
  13537. }
  13538. s/.*/./; q'`
  13539. # Avoid depending upon Character Ranges.
  13540. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13541. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13542. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13543. as_cr_digits='0123456789'
  13544. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13545. ECHO_C= ECHO_N= ECHO_T=
  13546. case `echo -n x` in #(((((
  13547. -n*)
  13548. case `echo 'xy\c'` in
  13549. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13550. xy) ECHO_C='\c';;
  13551. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13552. ECHO_T=' ';;
  13553. esac;;
  13554. *)
  13555. ECHO_N='-n';;
  13556. esac
  13557. rm -f conf$$ conf$$.exe conf$$.file
  13558. if test -d conf$$.dir; then
  13559. rm -f conf$$.dir/conf$$.file
  13560. else
  13561. rm -f conf$$.dir
  13562. mkdir conf$$.dir 2>/dev/null
  13563. fi
  13564. if (echo >conf$$.file) 2>/dev/null; then
  13565. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13566. as_ln_s='ln -s'
  13567. # ... but there are two gotchas:
  13568. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13569. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13570. # In both cases, we have to default to `cp -p'.
  13571. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13572. as_ln_s='cp -p'
  13573. elif ln conf$$.file conf$$ 2>/dev/null; then
  13574. as_ln_s=ln
  13575. else
  13576. as_ln_s='cp -p'
  13577. fi
  13578. else
  13579. as_ln_s='cp -p'
  13580. fi
  13581. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13582. rmdir conf$$.dir 2>/dev/null
  13583. # as_fn_mkdir_p
  13584. # -------------
  13585. # Create "$as_dir" as a directory, including parents if necessary.
  13586. as_fn_mkdir_p ()
  13587. {
  13588. case $as_dir in #(
  13589. -*) as_dir=./$as_dir;;
  13590. esac
  13591. test -d "$as_dir" || eval $as_mkdir_p || {
  13592. as_dirs=
  13593. while :; do
  13594. case $as_dir in #(
  13595. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13596. *) as_qdir=$as_dir;;
  13597. esac
  13598. as_dirs="'$as_qdir' $as_dirs"
  13599. as_dir=`$as_dirname -- "$as_dir" ||
  13600. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13601. X"$as_dir" : 'X\(//\)[^/]' \| \
  13602. X"$as_dir" : 'X\(//\)$' \| \
  13603. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13604. $as_echo X"$as_dir" |
  13605. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13606. s//\1/
  13607. q
  13608. }
  13609. /^X\(\/\/\)[^/].*/{
  13610. s//\1/
  13611. q
  13612. }
  13613. /^X\(\/\/\)$/{
  13614. s//\1/
  13615. q
  13616. }
  13617. /^X\(\/\).*/{
  13618. s//\1/
  13619. q
  13620. }
  13621. s/.*/./; q'`
  13622. test -d "$as_dir" && break
  13623. done
  13624. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13625. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13626. } # as_fn_mkdir_p
  13627. if mkdir -p . 2>/dev/null; then
  13628. as_mkdir_p='mkdir -p "$as_dir"'
  13629. else
  13630. test -d ./-p && rmdir ./-p
  13631. as_mkdir_p=false
  13632. fi
  13633. if test -x / >/dev/null 2>&1; then
  13634. as_test_x='test -x'
  13635. else
  13636. if ls -dL / >/dev/null 2>&1; then
  13637. as_ls_L_option=L
  13638. else
  13639. as_ls_L_option=
  13640. fi
  13641. as_test_x='
  13642. eval sh -c '\''
  13643. if test -d "$1"; then
  13644. test -d "$1/.";
  13645. else
  13646. case $1 in #(
  13647. -*)set "./$1";;
  13648. esac;
  13649. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13650. ???[sx]*):;;*)false;;esac;fi
  13651. '\'' sh
  13652. '
  13653. fi
  13654. as_executable_p=$as_test_x
  13655. # Sed expression to map a string onto a valid CPP name.
  13656. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13657. # Sed expression to map a string onto a valid variable name.
  13658. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13659. exec 6>&1
  13660. ## ----------------------------------- ##
  13661. ## Main body of $CONFIG_STATUS script. ##
  13662. ## ----------------------------------- ##
  13663. _ASEOF
  13664. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13665. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13666. # Save the log message, to keep $0 and so on meaningful, and to
  13667. # report actual input values of CONFIG_FILES etc. instead of their
  13668. # values after options handling.
  13669. ac_log="
  13670. This file was extended by $as_me, which was
  13671. generated by GNU Autoconf 2.65. Invocation command line was
  13672. CONFIG_FILES = $CONFIG_FILES
  13673. CONFIG_HEADERS = $CONFIG_HEADERS
  13674. CONFIG_LINKS = $CONFIG_LINKS
  13675. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13676. $ $0 $@
  13677. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13678. "
  13679. _ACEOF
  13680. case $ac_config_files in *"
  13681. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13682. esac
  13683. case $ac_config_headers in *"
  13684. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13685. esac
  13686. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13687. # Files that config.status was made for.
  13688. config_files="$ac_config_files"
  13689. config_headers="$ac_config_headers"
  13690. config_commands="$ac_config_commands"
  13691. _ACEOF
  13692. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13693. ac_cs_usage="\
  13694. \`$as_me' instantiates files and other configuration actions
  13695. from templates according to the current configuration. Unless the files
  13696. and actions are specified as TAGs, all are instantiated by default.
  13697. Usage: $0 [OPTION]... [TAG]...
  13698. -h, --help print this help, then exit
  13699. -V, --version print version number and configuration settings, then exit
  13700. --config print configuration, then exit
  13701. -q, --quiet, --silent
  13702. do not print progress messages
  13703. -d, --debug don't remove temporary files
  13704. --recheck update $as_me by reconfiguring in the same conditions
  13705. --file=FILE[:TEMPLATE]
  13706. instantiate the configuration file FILE
  13707. --header=FILE[:TEMPLATE]
  13708. instantiate the configuration header FILE
  13709. Configuration files:
  13710. $config_files
  13711. Configuration headers:
  13712. $config_headers
  13713. Configuration commands:
  13714. $config_commands
  13715. Report bugs to the package provider."
  13716. _ACEOF
  13717. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13718. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13719. ac_cs_version="\\
  13720. config.status
  13721. configured by $0, generated by GNU Autoconf 2.65,
  13722. with options \\"\$ac_cs_config\\"
  13723. Copyright (C) 2009 Free Software Foundation, Inc.
  13724. This config.status script is free software; the Free Software Foundation
  13725. gives unlimited permission to copy, distribute and modify it."
  13726. ac_pwd='$ac_pwd'
  13727. srcdir='$srcdir'
  13728. INSTALL='$INSTALL'
  13729. MKDIR_P='$MKDIR_P'
  13730. AWK='$AWK'
  13731. test -n "\$AWK" || AWK=awk
  13732. _ACEOF
  13733. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13734. # The default lists apply if the user does not specify any file.
  13735. ac_need_defaults=:
  13736. while test $# != 0
  13737. do
  13738. case $1 in
  13739. --*=*)
  13740. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13741. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13742. ac_shift=:
  13743. ;;
  13744. *)
  13745. ac_option=$1
  13746. ac_optarg=$2
  13747. ac_shift=shift
  13748. ;;
  13749. esac
  13750. case $ac_option in
  13751. # Handling of the options.
  13752. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13753. ac_cs_recheck=: ;;
  13754. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13755. $as_echo "$ac_cs_version"; exit ;;
  13756. --config | --confi | --conf | --con | --co | --c )
  13757. $as_echo "$ac_cs_config"; exit ;;
  13758. --debug | --debu | --deb | --de | --d | -d )
  13759. debug=: ;;
  13760. --file | --fil | --fi | --f )
  13761. $ac_shift
  13762. case $ac_optarg in
  13763. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13764. esac
  13765. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13766. ac_need_defaults=false;;
  13767. --header | --heade | --head | --hea )
  13768. $ac_shift
  13769. case $ac_optarg in
  13770. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13771. esac
  13772. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13773. ac_need_defaults=false;;
  13774. --he | --h)
  13775. # Conflict between --help and --header
  13776. as_fn_error "ambiguous option: \`$1'
  13777. Try \`$0 --help' for more information.";;
  13778. --help | --hel | -h )
  13779. $as_echo "$ac_cs_usage"; exit ;;
  13780. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13781. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13782. ac_cs_silent=: ;;
  13783. # This is an error.
  13784. -*) as_fn_error "unrecognized option: \`$1'
  13785. Try \`$0 --help' for more information." ;;
  13786. *) as_fn_append ac_config_targets " $1"
  13787. ac_need_defaults=false ;;
  13788. esac
  13789. shift
  13790. done
  13791. ac_configure_extra_args=
  13792. if $ac_cs_silent; then
  13793. exec 6>/dev/null
  13794. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13795. fi
  13796. _ACEOF
  13797. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13798. if \$ac_cs_recheck; then
  13799. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13800. shift
  13801. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13802. CONFIG_SHELL='$SHELL'
  13803. export CONFIG_SHELL
  13804. exec "\$@"
  13805. fi
  13806. _ACEOF
  13807. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13808. exec 5>>config.log
  13809. {
  13810. echo
  13811. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13812. ## Running $as_me. ##
  13813. _ASBOX
  13814. $as_echo "$ac_log"
  13815. } >&5
  13816. _ACEOF
  13817. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13818. #
  13819. # INIT-COMMANDS
  13820. #
  13821. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13822. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13823. # if CDPATH is set.
  13824. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13825. sed_quote_subst='$sed_quote_subst'
  13826. double_quote_subst='$double_quote_subst'
  13827. delay_variable_subst='$delay_variable_subst'
  13828. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  13829. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  13830. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13831. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  13832. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  13833. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  13834. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  13835. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  13836. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  13837. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13838. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  13839. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  13840. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13841. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  13842. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  13843. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  13844. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  13845. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  13846. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13847. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13848. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  13849. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  13850. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  13851. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  13852. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  13853. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  13854. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  13855. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  13856. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  13857. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13858. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13859. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  13860. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  13861. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  13862. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13863. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  13864. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  13865. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13866. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13867. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13868. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  13869. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13870. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  13871. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  13872. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  13873. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  13874. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  13875. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13876. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  13877. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  13878. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  13879. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  13880. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13881. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  13882. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  13883. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  13884. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  13885. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  13886. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  13887. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  13888. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  13889. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13890. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  13891. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  13892. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13893. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13894. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  13895. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  13896. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13897. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13898. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  13899. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13900. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13901. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13902. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13903. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13904. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13905. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13906. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13907. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13908. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13909. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13910. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  13911. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  13912. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  13913. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  13914. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13915. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  13916. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  13917. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  13918. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  13919. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  13920. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13921. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13922. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13923. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13924. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13925. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  13926. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13927. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  13928. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  13929. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13930. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13931. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  13932. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13933. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13934. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13935. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13936. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13937. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13938. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  13939. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  13940. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13941. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13942. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  13943. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  13944. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  13945. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  13946. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13947. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13948. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  13949. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13950. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13951. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  13952. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  13953. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  13954. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13955. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13956. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13957. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13958. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13959. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13960. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13961. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13962. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13963. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13964. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13965. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13966. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13967. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13968. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13969. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13970. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13971. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13972. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13973. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13974. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13975. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13976. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13977. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13978. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13979. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13980. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13981. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13982. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13983. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13984. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13985. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13986. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13987. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13988. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13989. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13990. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13991. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13992. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13993. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13994. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13995. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13996. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13997. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13998. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13999. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14000. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14001. LTCC='$LTCC'
  14002. LTCFLAGS='$LTCFLAGS'
  14003. compiler='$compiler_DEFAULT'
  14004. # Quote evaled strings.
  14005. for var in SED \
  14006. GREP \
  14007. EGREP \
  14008. FGREP \
  14009. LD \
  14010. NM \
  14011. LN_S \
  14012. lt_SP2NL \
  14013. lt_NL2SP \
  14014. reload_flag \
  14015. deplibs_check_method \
  14016. file_magic_cmd \
  14017. AR \
  14018. AR_FLAGS \
  14019. STRIP \
  14020. RANLIB \
  14021. CC \
  14022. CFLAGS \
  14023. compiler \
  14024. lt_cv_sys_global_symbol_pipe \
  14025. lt_cv_sys_global_symbol_to_cdecl \
  14026. lt_cv_sys_global_symbol_to_c_name_address \
  14027. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14028. SHELL \
  14029. ECHO \
  14030. lt_prog_compiler_no_builtin_flag \
  14031. lt_prog_compiler_wl \
  14032. lt_prog_compiler_pic \
  14033. lt_prog_compiler_static \
  14034. lt_cv_prog_compiler_c_o \
  14035. need_locks \
  14036. DSYMUTIL \
  14037. NMEDIT \
  14038. LIPO \
  14039. OTOOL \
  14040. OTOOL64 \
  14041. shrext_cmds \
  14042. export_dynamic_flag_spec \
  14043. whole_archive_flag_spec \
  14044. compiler_needs_object \
  14045. with_gnu_ld \
  14046. allow_undefined_flag \
  14047. no_undefined_flag \
  14048. hardcode_libdir_flag_spec \
  14049. hardcode_libdir_flag_spec_ld \
  14050. hardcode_libdir_separator \
  14051. fix_srcfile_path \
  14052. exclude_expsyms \
  14053. include_expsyms \
  14054. file_list_spec \
  14055. variables_saved_for_relink \
  14056. libname_spec \
  14057. library_names_spec \
  14058. soname_spec \
  14059. finish_eval \
  14060. old_striplib \
  14061. striplib \
  14062. compiler_lib_search_dirs \
  14063. predep_objects \
  14064. postdep_objects \
  14065. predeps \
  14066. postdeps \
  14067. compiler_lib_search_path \
  14068. LD_CXX \
  14069. compiler_CXX \
  14070. lt_prog_compiler_no_builtin_flag_CXX \
  14071. lt_prog_compiler_wl_CXX \
  14072. lt_prog_compiler_pic_CXX \
  14073. lt_prog_compiler_static_CXX \
  14074. lt_cv_prog_compiler_c_o_CXX \
  14075. export_dynamic_flag_spec_CXX \
  14076. whole_archive_flag_spec_CXX \
  14077. compiler_needs_object_CXX \
  14078. with_gnu_ld_CXX \
  14079. allow_undefined_flag_CXX \
  14080. no_undefined_flag_CXX \
  14081. hardcode_libdir_flag_spec_CXX \
  14082. hardcode_libdir_flag_spec_ld_CXX \
  14083. hardcode_libdir_separator_CXX \
  14084. fix_srcfile_path_CXX \
  14085. exclude_expsyms_CXX \
  14086. include_expsyms_CXX \
  14087. file_list_spec_CXX \
  14088. compiler_lib_search_dirs_CXX \
  14089. predep_objects_CXX \
  14090. postdep_objects_CXX \
  14091. predeps_CXX \
  14092. postdeps_CXX \
  14093. compiler_lib_search_path_CXX; do
  14094. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14095. *[\\\\\\\`\\"\\\$]*)
  14096. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14097. ;;
  14098. *)
  14099. eval "lt_\