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

20829 lines
629KB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libsamplerate 0.1.9.
  4. #
  5. # Report bugs to <erikd@mega-nerd.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: erikd@mega-nerd.com about your system, including any
  260. $0: error possibly output before this message. Then install
  261. $0: a modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='libsamplerate'
  542. PACKAGE_TARNAME='libsamplerate'
  543. PACKAGE_VERSION='0.1.9'
  544. PACKAGE_STRING='libsamplerate 0.1.9'
  545. PACKAGE_BUGREPORT='erikd@mega-nerd.com'
  546. PACKAGE_URL='http://www.mega-nerd.com/libsamplerate/'
  547. ac_unique_file="src/samplerate.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. ALSA_LIBS
  588. HAVE_SNDFILE
  589. HAVE_FFTW3
  590. GCC_MAJOR_VERSION
  591. COMPILER_IS_GCC
  592. OS_SPECIFIC_LINKS
  593. OS_SPECIFIC_INCLUDES
  594. SHARED_VERSION_INFO
  595. SHLIB_VERSION_ARG
  596. htmldocdir
  597. FFTW3_LIBS
  598. FFTW3_CFLAGS
  599. SNDFILE_LIBS
  600. SNDFILE_CFLAGS
  601. PKG_CONFIG_LIBDIR
  602. PKG_CONFIG_PATH
  603. PKG_CONFIG
  604. PEXPORTS
  605. DLLWRAP
  606. RC
  607. CXXCPP
  608. CPP
  609. LT_SYS_LIBRARY_PATH
  610. OTOOL64
  611. OTOOL
  612. LIPO
  613. NMEDIT
  614. DSYMUTIL
  615. MANIFEST_TOOL
  616. RANLIB
  617. ac_ct_AR
  618. AR
  619. DLLTOOL
  620. OBJDUMP
  621. LN_S
  622. NM
  623. ac_ct_DUMPBIN
  624. DUMPBIN
  625. LD
  626. FGREP
  627. EGREP
  628. GREP
  629. LIBTOOL
  630. SED
  631. am__fastdepCXX_FALSE
  632. am__fastdepCXX_TRUE
  633. CXXDEPMODE
  634. ac_ct_CXX
  635. CXXFLAGS
  636. CXX
  637. am__fastdepCC_FALSE
  638. am__fastdepCC_TRUE
  639. CCDEPMODE
  640. am__nodep
  641. AMDEPBACKSLASH
  642. AMDEP_FALSE
  643. AMDEP_TRUE
  644. am__quote
  645. am__include
  646. DEPDIR
  647. OBJEXT
  648. EXEEXT
  649. ac_ct_CC
  650. CPPFLAGS
  651. LDFLAGS
  652. CFLAGS
  653. CC
  654. ACLOCAL_AMFLAGS
  655. AM_BACKSLASH
  656. AM_DEFAULT_VERBOSITY
  657. AM_DEFAULT_V
  658. AM_V
  659. am__untar
  660. am__tar
  661. AMTAR
  662. am__leading_dot
  663. SET_MAKE
  664. AWK
  665. mkdir_p
  666. MKDIR_P
  667. INSTALL_STRIP_PROGRAM
  668. STRIP
  669. install_sh
  670. MAKEINFO
  671. AUTOHEADER
  672. AUTOMAKE
  673. AUTOCONF
  674. ACLOCAL
  675. VERSION
  676. PACKAGE
  677. CYGPATH_W
  678. am__isrc
  679. INSTALL_DATA
  680. INSTALL_SCRIPT
  681. INSTALL_PROGRAM
  682. target_os
  683. target_vendor
  684. target_cpu
  685. target
  686. host_os
  687. host_vendor
  688. host_cpu
  689. host
  690. build_os
  691. build_vendor
  692. build_cpu
  693. build
  694. target_alias
  695. host_alias
  696. build_alias
  697. LIBS
  698. ECHO_T
  699. ECHO_N
  700. ECHO_C
  701. DEFS
  702. mandir
  703. localedir
  704. libdir
  705. psdir
  706. pdfdir
  707. dvidir
  708. htmldir
  709. infodir
  710. docdir
  711. oldincludedir
  712. includedir
  713. runstatedir
  714. localstatedir
  715. sharedstatedir
  716. sysconfdir
  717. datadir
  718. datarootdir
  719. libexecdir
  720. sbindir
  721. bindir
  722. program_transform_name
  723. prefix
  724. exec_prefix
  725. PACKAGE_URL
  726. PACKAGE_BUGREPORT
  727. PACKAGE_STRING
  728. PACKAGE_VERSION
  729. PACKAGE_TARNAME
  730. PACKAGE_NAME
  731. PATH_SEPARATOR
  732. SHELL'
  733. ac_subst_files=''
  734. ac_user_opts='
  735. enable_option_checking
  736. enable_silent_rules
  737. enable_dependency_tracking
  738. enable_shared
  739. enable_static
  740. with_pic
  741. enable_fast_install
  742. with_aix_soname
  743. with_gnu_ld
  744. with_sysroot
  745. enable_libtool_lock
  746. enable_gcc_werror
  747. enable_gcc_pipe
  748. enable_gcc_opt
  749. enable_fftw
  750. enable_cpu_clip
  751. enable_sndfile
  752. '
  753. ac_precious_vars='build_alias
  754. host_alias
  755. target_alias
  756. CC
  757. CFLAGS
  758. LDFLAGS
  759. LIBS
  760. CPPFLAGS
  761. CXX
  762. CXXFLAGS
  763. CCC
  764. LT_SYS_LIBRARY_PATH
  765. CPP
  766. CXXCPP
  767. PKG_CONFIG
  768. PKG_CONFIG_PATH
  769. PKG_CONFIG_LIBDIR
  770. SNDFILE_CFLAGS
  771. SNDFILE_LIBS
  772. FFTW3_CFLAGS
  773. FFTW3_LIBS'
  774. # Initialize some variables set by options.
  775. ac_init_help=
  776. ac_init_version=false
  777. ac_unrecognized_opts=
  778. ac_unrecognized_sep=
  779. # The variables have the same names as the options, with
  780. # dashes changed to underlines.
  781. cache_file=/dev/null
  782. exec_prefix=NONE
  783. no_create=
  784. no_recursion=
  785. prefix=NONE
  786. program_prefix=NONE
  787. program_suffix=NONE
  788. program_transform_name=s,x,x,
  789. silent=
  790. site=
  791. srcdir=
  792. verbose=
  793. x_includes=NONE
  794. x_libraries=NONE
  795. # Installation directory options.
  796. # These are left unexpanded so users can "make install exec_prefix=/foo"
  797. # and all the variables that are supposed to be based on exec_prefix
  798. # by default will actually change.
  799. # Use braces instead of parens because sh, perl, etc. also accept them.
  800. # (The list follows the same order as the GNU Coding Standards.)
  801. bindir='${exec_prefix}/bin'
  802. sbindir='${exec_prefix}/sbin'
  803. libexecdir='${exec_prefix}/libexec'
  804. datarootdir='${prefix}/share'
  805. datadir='${datarootdir}'
  806. sysconfdir='${prefix}/etc'
  807. sharedstatedir='${prefix}/com'
  808. localstatedir='${prefix}/var'
  809. runstatedir='${localstatedir}/run'
  810. includedir='${prefix}/include'
  811. oldincludedir='/usr/include'
  812. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  813. infodir='${datarootdir}/info'
  814. htmldir='${docdir}'
  815. dvidir='${docdir}'
  816. pdfdir='${docdir}'
  817. psdir='${docdir}'
  818. libdir='${exec_prefix}/lib'
  819. localedir='${datarootdir}/locale'
  820. mandir='${datarootdir}/man'
  821. ac_prev=
  822. ac_dashdash=
  823. for ac_option
  824. do
  825. # If the previous option needs an argument, assign it.
  826. if test -n "$ac_prev"; then
  827. eval $ac_prev=\$ac_option
  828. ac_prev=
  829. continue
  830. fi
  831. case $ac_option in
  832. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  833. *=) ac_optarg= ;;
  834. *) ac_optarg=yes ;;
  835. esac
  836. # Accept the important Cygnus configure options, so we can diagnose typos.
  837. case $ac_dashdash$ac_option in
  838. --)
  839. ac_dashdash=yes ;;
  840. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  841. ac_prev=bindir ;;
  842. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  843. bindir=$ac_optarg ;;
  844. -build | --build | --buil | --bui | --bu)
  845. ac_prev=build_alias ;;
  846. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  847. build_alias=$ac_optarg ;;
  848. -cache-file | --cache-file | --cache-fil | --cache-fi \
  849. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  850. ac_prev=cache_file ;;
  851. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  852. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  853. cache_file=$ac_optarg ;;
  854. --config-cache | -C)
  855. cache_file=config.cache ;;
  856. -datadir | --datadir | --datadi | --datad)
  857. ac_prev=datadir ;;
  858. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  859. datadir=$ac_optarg ;;
  860. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  861. | --dataroo | --dataro | --datar)
  862. ac_prev=datarootdir ;;
  863. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  864. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  865. datarootdir=$ac_optarg ;;
  866. -disable-* | --disable-*)
  867. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  868. # Reject names that are not valid shell variable names.
  869. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  870. as_fn_error $? "invalid feature name: $ac_useropt"
  871. ac_useropt_orig=$ac_useropt
  872. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  873. case $ac_user_opts in
  874. *"
  875. "enable_$ac_useropt"
  876. "*) ;;
  877. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  878. ac_unrecognized_sep=', ';;
  879. esac
  880. eval enable_$ac_useropt=no ;;
  881. -docdir | --docdir | --docdi | --doc | --do)
  882. ac_prev=docdir ;;
  883. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  884. docdir=$ac_optarg ;;
  885. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  886. ac_prev=dvidir ;;
  887. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  888. dvidir=$ac_optarg ;;
  889. -enable-* | --enable-*)
  890. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  891. # Reject names that are not valid shell variable names.
  892. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  893. as_fn_error $? "invalid feature name: $ac_useropt"
  894. ac_useropt_orig=$ac_useropt
  895. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  896. case $ac_user_opts in
  897. *"
  898. "enable_$ac_useropt"
  899. "*) ;;
  900. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  901. ac_unrecognized_sep=', ';;
  902. esac
  903. eval enable_$ac_useropt=\$ac_optarg ;;
  904. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  905. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  906. | --exec | --exe | --ex)
  907. ac_prev=exec_prefix ;;
  908. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  909. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  910. | --exec=* | --exe=* | --ex=*)
  911. exec_prefix=$ac_optarg ;;
  912. -gas | --gas | --ga | --g)
  913. # Obsolete; use --with-gas.
  914. with_gas=yes ;;
  915. -help | --help | --hel | --he | -h)
  916. ac_init_help=long ;;
  917. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  918. ac_init_help=recursive ;;
  919. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  920. ac_init_help=short ;;
  921. -host | --host | --hos | --ho)
  922. ac_prev=host_alias ;;
  923. -host=* | --host=* | --hos=* | --ho=*)
  924. host_alias=$ac_optarg ;;
  925. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  926. ac_prev=htmldir ;;
  927. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  928. | --ht=*)
  929. htmldir=$ac_optarg ;;
  930. -includedir | --includedir | --includedi | --included | --include \
  931. | --includ | --inclu | --incl | --inc)
  932. ac_prev=includedir ;;
  933. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  934. | --includ=* | --inclu=* | --incl=* | --inc=*)
  935. includedir=$ac_optarg ;;
  936. -infodir | --infodir | --infodi | --infod | --info | --inf)
  937. ac_prev=infodir ;;
  938. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  939. infodir=$ac_optarg ;;
  940. -libdir | --libdir | --libdi | --libd)
  941. ac_prev=libdir ;;
  942. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  943. libdir=$ac_optarg ;;
  944. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  945. | --libexe | --libex | --libe)
  946. ac_prev=libexecdir ;;
  947. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  948. | --libexe=* | --libex=* | --libe=*)
  949. libexecdir=$ac_optarg ;;
  950. -localedir | --localedir | --localedi | --localed | --locale)
  951. ac_prev=localedir ;;
  952. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  953. localedir=$ac_optarg ;;
  954. -localstatedir | --localstatedir | --localstatedi | --localstated \
  955. | --localstate | --localstat | --localsta | --localst | --locals)
  956. ac_prev=localstatedir ;;
  957. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  958. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  959. localstatedir=$ac_optarg ;;
  960. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  961. ac_prev=mandir ;;
  962. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  963. mandir=$ac_optarg ;;
  964. -nfp | --nfp | --nf)
  965. # Obsolete; use --without-fp.
  966. with_fp=no ;;
  967. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  968. | --no-cr | --no-c | -n)
  969. no_create=yes ;;
  970. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  971. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  972. no_recursion=yes ;;
  973. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  974. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  975. | --oldin | --oldi | --old | --ol | --o)
  976. ac_prev=oldincludedir ;;
  977. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  978. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  979. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  980. oldincludedir=$ac_optarg ;;
  981. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  982. ac_prev=prefix ;;
  983. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  984. prefix=$ac_optarg ;;
  985. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  986. | --program-pre | --program-pr | --program-p)
  987. ac_prev=program_prefix ;;
  988. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  989. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  990. program_prefix=$ac_optarg ;;
  991. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  992. | --program-suf | --program-su | --program-s)
  993. ac_prev=program_suffix ;;
  994. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  995. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  996. program_suffix=$ac_optarg ;;
  997. -program-transform-name | --program-transform-name \
  998. | --program-transform-nam | --program-transform-na \
  999. | --program-transform-n | --program-transform- \
  1000. | --program-transform | --program-transfor \
  1001. | --program-transfo | --program-transf \
  1002. | --program-trans | --program-tran \
  1003. | --progr-tra | --program-tr | --program-t)
  1004. ac_prev=program_transform_name ;;
  1005. -program-transform-name=* | --program-transform-name=* \
  1006. | --program-transform-nam=* | --program-transform-na=* \
  1007. | --program-transform-n=* | --program-transform-=* \
  1008. | --program-transform=* | --program-transfor=* \
  1009. | --program-transfo=* | --program-transf=* \
  1010. | --program-trans=* | --program-tran=* \
  1011. | --progr-tra=* | --program-tr=* | --program-t=*)
  1012. program_transform_name=$ac_optarg ;;
  1013. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1014. ac_prev=pdfdir ;;
  1015. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1016. pdfdir=$ac_optarg ;;
  1017. -psdir | --psdir | --psdi | --psd | --ps)
  1018. ac_prev=psdir ;;
  1019. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1020. psdir=$ac_optarg ;;
  1021. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1022. | -silent | --silent | --silen | --sile | --sil)
  1023. silent=yes ;;
  1024. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1025. | --runstate | --runstat | --runsta | --runst | --runs \
  1026. | --run | --ru | --r)
  1027. ac_prev=runstatedir ;;
  1028. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1029. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1030. | --run=* | --ru=* | --r=*)
  1031. runstatedir=$ac_optarg ;;
  1032. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1033. ac_prev=sbindir ;;
  1034. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1035. | --sbi=* | --sb=*)
  1036. sbindir=$ac_optarg ;;
  1037. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1038. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1039. | --sharedst | --shareds | --shared | --share | --shar \
  1040. | --sha | --sh)
  1041. ac_prev=sharedstatedir ;;
  1042. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1043. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1044. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1045. | --sha=* | --sh=*)
  1046. sharedstatedir=$ac_optarg ;;
  1047. -site | --site | --sit)
  1048. ac_prev=site ;;
  1049. -site=* | --site=* | --sit=*)
  1050. site=$ac_optarg ;;
  1051. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1052. ac_prev=srcdir ;;
  1053. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1054. srcdir=$ac_optarg ;;
  1055. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1056. | --syscon | --sysco | --sysc | --sys | --sy)
  1057. ac_prev=sysconfdir ;;
  1058. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1059. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1060. sysconfdir=$ac_optarg ;;
  1061. -target | --target | --targe | --targ | --tar | --ta | --t)
  1062. ac_prev=target_alias ;;
  1063. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1064. target_alias=$ac_optarg ;;
  1065. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1066. verbose=yes ;;
  1067. -version | --version | --versio | --versi | --vers | -V)
  1068. ac_init_version=: ;;
  1069. -with-* | --with-*)
  1070. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1071. # Reject names that are not valid shell variable names.
  1072. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1073. as_fn_error $? "invalid package name: $ac_useropt"
  1074. ac_useropt_orig=$ac_useropt
  1075. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1076. case $ac_user_opts in
  1077. *"
  1078. "with_$ac_useropt"
  1079. "*) ;;
  1080. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1081. ac_unrecognized_sep=', ';;
  1082. esac
  1083. eval with_$ac_useropt=\$ac_optarg ;;
  1084. -without-* | --without-*)
  1085. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1086. # Reject names that are not valid shell variable names.
  1087. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1088. as_fn_error $? "invalid package name: $ac_useropt"
  1089. ac_useropt_orig=$ac_useropt
  1090. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1091. case $ac_user_opts in
  1092. *"
  1093. "with_$ac_useropt"
  1094. "*) ;;
  1095. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1096. ac_unrecognized_sep=', ';;
  1097. esac
  1098. eval with_$ac_useropt=no ;;
  1099. --x)
  1100. # Obsolete; use --with-x.
  1101. with_x=yes ;;
  1102. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1103. | --x-incl | --x-inc | --x-in | --x-i)
  1104. ac_prev=x_includes ;;
  1105. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1106. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1107. x_includes=$ac_optarg ;;
  1108. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1109. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1110. ac_prev=x_libraries ;;
  1111. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1112. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1113. x_libraries=$ac_optarg ;;
  1114. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1115. Try \`$0 --help' for more information"
  1116. ;;
  1117. *=*)
  1118. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1119. # Reject names that are not valid shell variable names.
  1120. case $ac_envvar in #(
  1121. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1122. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1123. esac
  1124. eval $ac_envvar=\$ac_optarg
  1125. export $ac_envvar ;;
  1126. *)
  1127. # FIXME: should be removed in autoconf 3.0.
  1128. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1129. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1130. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1131. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1132. ;;
  1133. esac
  1134. done
  1135. if test -n "$ac_prev"; then
  1136. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1137. as_fn_error $? "missing argument to $ac_option"
  1138. fi
  1139. if test -n "$ac_unrecognized_opts"; then
  1140. case $enable_option_checking in
  1141. no) ;;
  1142. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1143. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1144. esac
  1145. fi
  1146. # Check all directory arguments for consistency.
  1147. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1148. datadir sysconfdir sharedstatedir localstatedir includedir \
  1149. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1150. libdir localedir mandir runstatedir
  1151. do
  1152. eval ac_val=\$$ac_var
  1153. # Remove trailing slashes.
  1154. case $ac_val in
  1155. */ )
  1156. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1157. eval $ac_var=\$ac_val;;
  1158. esac
  1159. # Be sure to have absolute directory names.
  1160. case $ac_val in
  1161. [\\/$]* | ?:[\\/]* ) continue;;
  1162. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1163. esac
  1164. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1165. done
  1166. # There might be people who depend on the old broken behavior: `$host'
  1167. # used to hold the argument of --host etc.
  1168. # FIXME: To remove some day.
  1169. build=$build_alias
  1170. host=$host_alias
  1171. target=$target_alias
  1172. # FIXME: To remove some day.
  1173. if test "x$host_alias" != x; then
  1174. if test "x$build_alias" = x; then
  1175. cross_compiling=maybe
  1176. elif test "x$build_alias" != "x$host_alias"; then
  1177. cross_compiling=yes
  1178. fi
  1179. fi
  1180. ac_tool_prefix=
  1181. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1182. test "$silent" = yes && exec 6>/dev/null
  1183. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1184. ac_ls_di=`ls -di .` &&
  1185. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1186. as_fn_error $? "working directory cannot be determined"
  1187. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1188. as_fn_error $? "pwd does not report name of working directory"
  1189. # Find the source files, if location was not specified.
  1190. if test -z "$srcdir"; then
  1191. ac_srcdir_defaulted=yes
  1192. # Try the directory containing this script, then the parent directory.
  1193. ac_confdir=`$as_dirname -- "$as_myself" ||
  1194. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1195. X"$as_myself" : 'X\(//\)[^/]' \| \
  1196. X"$as_myself" : 'X\(//\)$' \| \
  1197. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1198. $as_echo X"$as_myself" |
  1199. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1200. s//\1/
  1201. q
  1202. }
  1203. /^X\(\/\/\)[^/].*/{
  1204. s//\1/
  1205. q
  1206. }
  1207. /^X\(\/\/\)$/{
  1208. s//\1/
  1209. q
  1210. }
  1211. /^X\(\/\).*/{
  1212. s//\1/
  1213. q
  1214. }
  1215. s/.*/./; q'`
  1216. srcdir=$ac_confdir
  1217. if test ! -r "$srcdir/$ac_unique_file"; then
  1218. srcdir=..
  1219. fi
  1220. else
  1221. ac_srcdir_defaulted=no
  1222. fi
  1223. if test ! -r "$srcdir/$ac_unique_file"; then
  1224. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1225. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1226. fi
  1227. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1228. ac_abs_confdir=`(
  1229. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1230. pwd)`
  1231. # When building in place, set srcdir=.
  1232. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1233. srcdir=.
  1234. fi
  1235. # Remove unnecessary trailing slashes from srcdir.
  1236. # Double slashes in file names in object file debugging info
  1237. # mess up M-x gdb in Emacs.
  1238. case $srcdir in
  1239. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1240. esac
  1241. for ac_var in $ac_precious_vars; do
  1242. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1243. eval ac_env_${ac_var}_value=\$${ac_var}
  1244. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1245. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1246. done
  1247. #
  1248. # Report the --help message.
  1249. #
  1250. if test "$ac_init_help" = "long"; then
  1251. # Omit some internal or obsolete options to make the list less imposing.
  1252. # This message is too long to be a string in the A/UX 3.1 sh.
  1253. cat <<_ACEOF
  1254. \`configure' configures libsamplerate 0.1.9 to adapt to many kinds of systems.
  1255. Usage: $0 [OPTION]... [VAR=VALUE]...
  1256. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1257. VAR=VALUE. See below for descriptions of some of the useful variables.
  1258. Defaults for the options are specified in brackets.
  1259. Configuration:
  1260. -h, --help display this help and exit
  1261. --help=short display options specific to this package
  1262. --help=recursive display the short help of all the included packages
  1263. -V, --version display version information and exit
  1264. -q, --quiet, --silent do not print \`checking ...' messages
  1265. --cache-file=FILE cache test results in FILE [disabled]
  1266. -C, --config-cache alias for \`--cache-file=config.cache'
  1267. -n, --no-create do not create output files
  1268. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1269. Installation directories:
  1270. --prefix=PREFIX install architecture-independent files in PREFIX
  1271. [$ac_default_prefix]
  1272. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1273. [PREFIX]
  1274. By default, \`make install' will install all the files in
  1275. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1276. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1277. for instance \`--prefix=\$HOME'.
  1278. For better control, use the options below.
  1279. Fine tuning of the installation directories:
  1280. --bindir=DIR user executables [EPREFIX/bin]
  1281. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1282. --libexecdir=DIR program executables [EPREFIX/libexec]
  1283. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1284. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1285. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1286. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1287. --libdir=DIR object code libraries [EPREFIX/lib]
  1288. --includedir=DIR C header files [PREFIX/include]
  1289. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1290. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1291. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1292. --infodir=DIR info documentation [DATAROOTDIR/info]
  1293. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1294. --mandir=DIR man documentation [DATAROOTDIR/man]
  1295. --docdir=DIR documentation root [DATAROOTDIR/doc/libsamplerate]
  1296. --htmldir=DIR html documentation [DOCDIR]
  1297. --dvidir=DIR dvi documentation [DOCDIR]
  1298. --pdfdir=DIR pdf documentation [DOCDIR]
  1299. --psdir=DIR ps documentation [DOCDIR]
  1300. _ACEOF
  1301. cat <<\_ACEOF
  1302. Program names:
  1303. --program-prefix=PREFIX prepend PREFIX to installed program names
  1304. --program-suffix=SUFFIX append SUFFIX to installed program names
  1305. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1306. System types:
  1307. --build=BUILD configure for building on BUILD [guessed]
  1308. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1309. --target=TARGET configure for building compilers for TARGET [HOST]
  1310. _ACEOF
  1311. fi
  1312. if test -n "$ac_init_help"; then
  1313. case $ac_init_help in
  1314. short | recursive ) echo "Configuration of libsamplerate 0.1.9:";;
  1315. esac
  1316. cat <<\_ACEOF
  1317. Optional Features:
  1318. --disable-option-checking ignore unrecognized --enable/--with options
  1319. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1320. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1321. --enable-silent-rules less verbose build output (undo: "make V=1")
  1322. --disable-silent-rules verbose build output (undo: "make V=0")
  1323. --enable-dependency-tracking
  1324. do not reject slow dependency extractors
  1325. --disable-dependency-tracking
  1326. speeds up one-time build
  1327. --enable-shared[=PKGS] build shared libraries [default=yes]
  1328. --enable-static[=PKGS] build static libraries [default=yes]
  1329. --enable-fast-install[=PKGS]
  1330. optimize for fast installation [default=yes]
  1331. --disable-libtool-lock avoid locking (might break parallel builds)
  1332. --enable-gcc-werror enable -Werror in all Makefiles
  1333. --disable-gcc-pipe disable gcc -pipe option
  1334. --disable-gcc-opt disable gcc optimisations
  1335. --disable-fftw disable usage of FFTW
  1336. --disable-cpu-clip disable tricky cpu specific clipper
  1337. --disable-sndfile disable support for sndfile (default=autodetect)
  1338. Optional Packages:
  1339. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1340. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1341. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1342. both]
  1343. --with-aix-soname=aix|svr4|both
  1344. shared library versioning (aka "SONAME") variant to
  1345. provide on AIX, [default=aix].
  1346. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1347. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1348. compiler's sysroot if not specified).
  1349. Some influential environment variables:
  1350. CC C compiler command
  1351. CFLAGS C compiler flags
  1352. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1353. nonstandard directory <lib dir>
  1354. LIBS libraries to pass to the linker, e.g. -l<library>
  1355. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1356. you have headers in a nonstandard directory <include dir>
  1357. CXX C++ compiler command
  1358. CXXFLAGS C++ compiler flags
  1359. LT_SYS_LIBRARY_PATH
  1360. User-defined run-time library search path.
  1361. CPP C preprocessor
  1362. CXXCPP C++ preprocessor
  1363. PKG_CONFIG path to pkg-config utility
  1364. PKG_CONFIG_PATH
  1365. directories to add to pkg-config's search path
  1366. PKG_CONFIG_LIBDIR
  1367. path overriding pkg-config's built-in search path
  1368. SNDFILE_CFLAGS
  1369. C compiler flags for SNDFILE, overriding pkg-config
  1370. SNDFILE_LIBS
  1371. linker flags for SNDFILE, overriding pkg-config
  1372. FFTW3_CFLAGS
  1373. C compiler flags for FFTW3, overriding pkg-config
  1374. FFTW3_LIBS linker flags for FFTW3, overriding pkg-config
  1375. Use these variables to override the choices made by `configure' or to help
  1376. it to find libraries and programs with nonstandard names/locations.
  1377. Report bugs to <erikd@mega-nerd.com>.
  1378. libsamplerate home page: <http://www.mega-nerd.com/libsamplerate/>.
  1379. _ACEOF
  1380. ac_status=$?
  1381. fi
  1382. if test "$ac_init_help" = "recursive"; then
  1383. # If there are subdirs, report their specific --help.
  1384. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1385. test -d "$ac_dir" ||
  1386. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1387. continue
  1388. ac_builddir=.
  1389. case "$ac_dir" in
  1390. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1391. *)
  1392. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1393. # A ".." for each directory in $ac_dir_suffix.
  1394. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1395. case $ac_top_builddir_sub in
  1396. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1397. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1398. esac ;;
  1399. esac
  1400. ac_abs_top_builddir=$ac_pwd
  1401. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1402. # for backward compatibility:
  1403. ac_top_builddir=$ac_top_build_prefix
  1404. case $srcdir in
  1405. .) # We are building in place.
  1406. ac_srcdir=.
  1407. ac_top_srcdir=$ac_top_builddir_sub
  1408. ac_abs_top_srcdir=$ac_pwd ;;
  1409. [\\/]* | ?:[\\/]* ) # Absolute name.
  1410. ac_srcdir=$srcdir$ac_dir_suffix;
  1411. ac_top_srcdir=$srcdir
  1412. ac_abs_top_srcdir=$srcdir ;;
  1413. *) # Relative name.
  1414. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1415. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1416. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1417. esac
  1418. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1419. cd "$ac_dir" || { ac_status=$?; continue; }
  1420. # Check for guested configure.
  1421. if test -f "$ac_srcdir/configure.gnu"; then
  1422. echo &&
  1423. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1424. elif test -f "$ac_srcdir/configure"; then
  1425. echo &&
  1426. $SHELL "$ac_srcdir/configure" --help=recursive
  1427. else
  1428. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1429. fi || ac_status=$?
  1430. cd "$ac_pwd" || { ac_status=$?; break; }
  1431. done
  1432. fi
  1433. test -n "$ac_init_help" && exit $ac_status
  1434. if $ac_init_version; then
  1435. cat <<\_ACEOF
  1436. libsamplerate configure 0.1.9
  1437. generated by GNU Autoconf 2.69
  1438. Copyright (C) 2012 Free Software Foundation, Inc.
  1439. This configure script is free software; the Free Software Foundation
  1440. gives unlimited permission to copy, distribute and modify it.
  1441. _ACEOF
  1442. exit
  1443. fi
  1444. ## ------------------------ ##
  1445. ## Autoconf initialization. ##
  1446. ## ------------------------ ##
  1447. # ac_fn_c_try_compile LINENO
  1448. # --------------------------
  1449. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1450. ac_fn_c_try_compile ()
  1451. {
  1452. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1453. rm -f conftest.$ac_objext
  1454. if { { ac_try="$ac_compile"
  1455. case "(($ac_try" in
  1456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1457. *) ac_try_echo=$ac_try;;
  1458. esac
  1459. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1460. $as_echo "$ac_try_echo"; } >&5
  1461. (eval "$ac_compile") 2>conftest.err
  1462. ac_status=$?
  1463. if test -s conftest.err; then
  1464. grep -v '^ *+' conftest.err >conftest.er1
  1465. cat conftest.er1 >&5
  1466. mv -f conftest.er1 conftest.err
  1467. fi
  1468. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1469. test $ac_status = 0; } && {
  1470. test -z "$ac_c_werror_flag" ||
  1471. test ! -s conftest.err
  1472. } && test -s conftest.$ac_objext; then :
  1473. ac_retval=0
  1474. else
  1475. $as_echo "$as_me: failed program was:" >&5
  1476. sed 's/^/| /' conftest.$ac_ext >&5
  1477. ac_retval=1
  1478. fi
  1479. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1480. as_fn_set_status $ac_retval
  1481. } # ac_fn_c_try_compile
  1482. # ac_fn_cxx_try_compile LINENO
  1483. # ----------------------------
  1484. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1485. ac_fn_cxx_try_compile ()
  1486. {
  1487. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1488. rm -f conftest.$ac_objext
  1489. if { { ac_try="$ac_compile"
  1490. case "(($ac_try" in
  1491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1492. *) ac_try_echo=$ac_try;;
  1493. esac
  1494. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1495. $as_echo "$ac_try_echo"; } >&5
  1496. (eval "$ac_compile") 2>conftest.err
  1497. ac_status=$?
  1498. if test -s conftest.err; then
  1499. grep -v '^ *+' conftest.err >conftest.er1
  1500. cat conftest.er1 >&5
  1501. mv -f conftest.er1 conftest.err
  1502. fi
  1503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1504. test $ac_status = 0; } && {
  1505. test -z "$ac_cxx_werror_flag" ||
  1506. test ! -s conftest.err
  1507. } && test -s conftest.$ac_objext; then :
  1508. ac_retval=0
  1509. else
  1510. $as_echo "$as_me: failed program was:" >&5
  1511. sed 's/^/| /' conftest.$ac_ext >&5
  1512. ac_retval=1
  1513. fi
  1514. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1515. as_fn_set_status $ac_retval
  1516. } # ac_fn_cxx_try_compile
  1517. # ac_fn_c_try_link LINENO
  1518. # -----------------------
  1519. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1520. ac_fn_c_try_link ()
  1521. {
  1522. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1523. rm -f conftest.$ac_objext conftest$ac_exeext
  1524. if { { ac_try="$ac_link"
  1525. case "(($ac_try" in
  1526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1527. *) ac_try_echo=$ac_try;;
  1528. esac
  1529. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1530. $as_echo "$ac_try_echo"; } >&5
  1531. (eval "$ac_link") 2>conftest.err
  1532. ac_status=$?
  1533. if test -s conftest.err; then
  1534. grep -v '^ *+' conftest.err >conftest.er1
  1535. cat conftest.er1 >&5
  1536. mv -f conftest.er1 conftest.err
  1537. fi
  1538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1539. test $ac_status = 0; } && {
  1540. test -z "$ac_c_werror_flag" ||
  1541. test ! -s conftest.err
  1542. } && test -s conftest$ac_exeext && {
  1543. test "$cross_compiling" = yes ||
  1544. test -x conftest$ac_exeext
  1545. }; then :
  1546. ac_retval=0
  1547. else
  1548. $as_echo "$as_me: failed program was:" >&5
  1549. sed 's/^/| /' conftest.$ac_ext >&5
  1550. ac_retval=1
  1551. fi
  1552. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1553. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1554. # interfere with the next link command; also delete a directory that is
  1555. # left behind by Apple's compiler. We do this before executing the actions.
  1556. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1557. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1558. as_fn_set_status $ac_retval
  1559. } # ac_fn_c_try_link
  1560. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1561. # -------------------------------------------------------
  1562. # Tests whether HEADER exists and can be compiled using the include files in
  1563. # INCLUDES, setting the cache variable VAR accordingly.
  1564. ac_fn_c_check_header_compile ()
  1565. {
  1566. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1568. $as_echo_n "checking for $2... " >&6; }
  1569. if eval \${$3+:} false; then :
  1570. $as_echo_n "(cached) " >&6
  1571. else
  1572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1573. /* end confdefs.h. */
  1574. $4
  1575. #include <$2>
  1576. _ACEOF
  1577. if ac_fn_c_try_compile "$LINENO"; then :
  1578. eval "$3=yes"
  1579. else
  1580. eval "$3=no"
  1581. fi
  1582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1583. fi
  1584. eval ac_res=\$$3
  1585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1586. $as_echo "$ac_res" >&6; }
  1587. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1588. } # ac_fn_c_check_header_compile
  1589. # ac_fn_c_try_cpp LINENO
  1590. # ----------------------
  1591. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1592. ac_fn_c_try_cpp ()
  1593. {
  1594. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1595. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1596. case "(($ac_try" in
  1597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1598. *) ac_try_echo=$ac_try;;
  1599. esac
  1600. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1601. $as_echo "$ac_try_echo"; } >&5
  1602. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1603. ac_status=$?
  1604. if test -s conftest.err; then
  1605. grep -v '^ *+' conftest.err >conftest.er1
  1606. cat conftest.er1 >&5
  1607. mv -f conftest.er1 conftest.err
  1608. fi
  1609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1610. test $ac_status = 0; } > conftest.i && {
  1611. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1612. test ! -s conftest.err
  1613. }; then :
  1614. ac_retval=0
  1615. else
  1616. $as_echo "$as_me: failed program was:" >&5
  1617. sed 's/^/| /' conftest.$ac_ext >&5
  1618. ac_retval=1
  1619. fi
  1620. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1621. as_fn_set_status $ac_retval
  1622. } # ac_fn_c_try_cpp
  1623. # ac_fn_c_try_run LINENO
  1624. # ----------------------
  1625. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1626. # that executables *can* be run.
  1627. ac_fn_c_try_run ()
  1628. {
  1629. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1630. if { { ac_try="$ac_link"
  1631. case "(($ac_try" in
  1632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1633. *) ac_try_echo=$ac_try;;
  1634. esac
  1635. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1636. $as_echo "$ac_try_echo"; } >&5
  1637. (eval "$ac_link") 2>&5
  1638. ac_status=$?
  1639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1640. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1641. { { case "(($ac_try" in
  1642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1643. *) ac_try_echo=$ac_try;;
  1644. esac
  1645. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1646. $as_echo "$ac_try_echo"; } >&5
  1647. (eval "$ac_try") 2>&5
  1648. ac_status=$?
  1649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1650. test $ac_status = 0; }; }; then :
  1651. ac_retval=0
  1652. else
  1653. $as_echo "$as_me: program exited with status $ac_status" >&5
  1654. $as_echo "$as_me: failed program was:" >&5
  1655. sed 's/^/| /' conftest.$ac_ext >&5
  1656. ac_retval=$ac_status
  1657. fi
  1658. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1659. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1660. as_fn_set_status $ac_retval
  1661. } # ac_fn_c_try_run
  1662. # ac_fn_c_check_func LINENO FUNC VAR
  1663. # ----------------------------------
  1664. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1665. ac_fn_c_check_func ()
  1666. {
  1667. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1669. $as_echo_n "checking for $2... " >&6; }
  1670. if eval \${$3+:} false; then :
  1671. $as_echo_n "(cached) " >&6
  1672. else
  1673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1674. /* end confdefs.h. */
  1675. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1676. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1677. #define $2 innocuous_$2
  1678. /* System header to define __stub macros and hopefully few prototypes,
  1679. which can conflict with char $2 (); below.
  1680. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1681. <limits.h> exists even on freestanding compilers. */
  1682. #ifdef __STDC__
  1683. # include <limits.h>
  1684. #else
  1685. # include <assert.h>
  1686. #endif
  1687. #undef $2
  1688. /* Override any GCC internal prototype to avoid an error.
  1689. Use char because int might match the return type of a GCC
  1690. builtin and then its argument prototype would still apply. */
  1691. #ifdef __cplusplus
  1692. extern "C"
  1693. #endif
  1694. char $2 ();
  1695. /* The GNU C library defines this for functions which it implements
  1696. to always fail with ENOSYS. Some functions are actually named
  1697. something starting with __ and the normal name is an alias. */
  1698. #if defined __stub_$2 || defined __stub___$2
  1699. choke me
  1700. #endif
  1701. int
  1702. main ()
  1703. {
  1704. return $2 ();
  1705. ;
  1706. return 0;
  1707. }
  1708. _ACEOF
  1709. if ac_fn_c_try_link "$LINENO"; then :
  1710. eval "$3=yes"
  1711. else
  1712. eval "$3=no"
  1713. fi
  1714. rm -f core conftest.err conftest.$ac_objext \
  1715. conftest$ac_exeext conftest.$ac_ext
  1716. fi
  1717. eval ac_res=\$$3
  1718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1719. $as_echo "$ac_res" >&6; }
  1720. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1721. } # ac_fn_c_check_func
  1722. # ac_fn_cxx_try_cpp LINENO
  1723. # ------------------------
  1724. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1725. ac_fn_cxx_try_cpp ()
  1726. {
  1727. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1728. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1729. case "(($ac_try" in
  1730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1731. *) ac_try_echo=$ac_try;;
  1732. esac
  1733. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1734. $as_echo "$ac_try_echo"; } >&5
  1735. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1736. ac_status=$?
  1737. if test -s conftest.err; then
  1738. grep -v '^ *+' conftest.err >conftest.er1
  1739. cat conftest.er1 >&5
  1740. mv -f conftest.er1 conftest.err
  1741. fi
  1742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1743. test $ac_status = 0; } > conftest.i && {
  1744. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1745. test ! -s conftest.err
  1746. }; then :
  1747. ac_retval=0
  1748. else
  1749. $as_echo "$as_me: failed program was:" >&5
  1750. sed 's/^/| /' conftest.$ac_ext >&5
  1751. ac_retval=1
  1752. fi
  1753. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1754. as_fn_set_status $ac_retval
  1755. } # ac_fn_cxx_try_cpp
  1756. # ac_fn_cxx_try_link LINENO
  1757. # -------------------------
  1758. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1759. ac_fn_cxx_try_link ()
  1760. {
  1761. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1762. rm -f conftest.$ac_objext conftest$ac_exeext
  1763. if { { ac_try="$ac_link"
  1764. case "(($ac_try" in
  1765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1766. *) ac_try_echo=$ac_try;;
  1767. esac
  1768. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1769. $as_echo "$ac_try_echo"; } >&5
  1770. (eval "$ac_link") 2>conftest.err
  1771. ac_status=$?
  1772. if test -s conftest.err; then
  1773. grep -v '^ *+' conftest.err >conftest.er1
  1774. cat conftest.er1 >&5
  1775. mv -f conftest.er1 conftest.err
  1776. fi
  1777. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1778. test $ac_status = 0; } && {
  1779. test -z "$ac_cxx_werror_flag" ||
  1780. test ! -s conftest.err
  1781. } && test -s conftest$ac_exeext && {
  1782. test "$cross_compiling" = yes ||
  1783. test -x conftest$ac_exeext
  1784. }; then :
  1785. ac_retval=0
  1786. else
  1787. $as_echo "$as_me: failed program was:" >&5
  1788. sed 's/^/| /' conftest.$ac_ext >&5
  1789. ac_retval=1
  1790. fi
  1791. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1792. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1793. # interfere with the next link command; also delete a directory that is
  1794. # left behind by Apple's compiler. We do this before executing the actions.
  1795. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1796. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1797. as_fn_set_status $ac_retval
  1798. } # ac_fn_cxx_try_link
  1799. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1800. # -------------------------------------------------------
  1801. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1802. # the include files in INCLUDES and setting the cache variable VAR
  1803. # accordingly.
  1804. ac_fn_c_check_header_mongrel ()
  1805. {
  1806. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1807. if eval \${$3+:} false; then :
  1808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1809. $as_echo_n "checking for $2... " >&6; }
  1810. if eval \${$3+:} false; then :
  1811. $as_echo_n "(cached) " >&6
  1812. fi
  1813. eval ac_res=\$$3
  1814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1815. $as_echo "$ac_res" >&6; }
  1816. else
  1817. # Is the header compilable?
  1818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1819. $as_echo_n "checking $2 usability... " >&6; }
  1820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1821. /* end confdefs.h. */
  1822. $4
  1823. #include <$2>
  1824. _ACEOF
  1825. if ac_fn_c_try_compile "$LINENO"; then :
  1826. ac_header_compiler=yes
  1827. else
  1828. ac_header_compiler=no
  1829. fi
  1830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1832. $as_echo "$ac_header_compiler" >&6; }
  1833. # Is the header present?
  1834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1835. $as_echo_n "checking $2 presence... " >&6; }
  1836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1837. /* end confdefs.h. */
  1838. #include <$2>
  1839. _ACEOF
  1840. if ac_fn_c_try_cpp "$LINENO"; then :
  1841. ac_header_preproc=yes
  1842. else
  1843. ac_header_preproc=no
  1844. fi
  1845. rm -f conftest.err conftest.i conftest.$ac_ext
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1847. $as_echo "$ac_header_preproc" >&6; }
  1848. # So? What about this header?
  1849. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1850. yes:no: )
  1851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1852. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1854. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1855. ;;
  1856. no:yes:* )
  1857. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1858. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1859. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1860. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1862. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1864. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1866. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1867. ( $as_echo "## ---------------------------------- ##
  1868. ## Report this to erikd@mega-nerd.com ##
  1869. ## ---------------------------------- ##"
  1870. ) | sed "s/^/$as_me: WARNING: /" >&2
  1871. ;;
  1872. esac
  1873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1874. $as_echo_n "checking for $2... " >&6; }
  1875. if eval \${$3+:} false; then :
  1876. $as_echo_n "(cached) " >&6
  1877. else
  1878. eval "$3=\$ac_header_compiler"
  1879. fi
  1880. eval ac_res=\$$3
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1882. $as_echo "$ac_res" >&6; }
  1883. fi
  1884. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1885. } # ac_fn_c_check_header_mongrel
  1886. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1887. # --------------------------------------------
  1888. # Tries to find the compile-time value of EXPR in a program that includes
  1889. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1890. # computed
  1891. ac_fn_c_compute_int ()
  1892. {
  1893. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1894. if test "$cross_compiling" = yes; then
  1895. # Depending upon the size, compute the lo and hi bounds.
  1896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1897. /* end confdefs.h. */
  1898. $4
  1899. int
  1900. main ()
  1901. {
  1902. static int test_array [1 - 2 * !(($2) >= 0)];
  1903. test_array [0] = 0;
  1904. return test_array [0];
  1905. ;
  1906. return 0;
  1907. }
  1908. _ACEOF
  1909. if ac_fn_c_try_compile "$LINENO"; then :
  1910. ac_lo=0 ac_mid=0
  1911. while :; do
  1912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1913. /* end confdefs.h. */
  1914. $4
  1915. int
  1916. main ()
  1917. {
  1918. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1919. test_array [0] = 0;
  1920. return test_array [0];
  1921. ;
  1922. return 0;
  1923. }
  1924. _ACEOF
  1925. if ac_fn_c_try_compile "$LINENO"; then :
  1926. ac_hi=$ac_mid; break
  1927. else
  1928. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1929. if test $ac_lo -le $ac_mid; then
  1930. ac_lo= ac_hi=
  1931. break
  1932. fi
  1933. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1934. fi
  1935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1936. done
  1937. else
  1938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1939. /* end confdefs.h. */
  1940. $4
  1941. int
  1942. main ()
  1943. {
  1944. static int test_array [1 - 2 * !(($2) < 0)];
  1945. test_array [0] = 0;
  1946. return test_array [0];
  1947. ;
  1948. return 0;
  1949. }
  1950. _ACEOF
  1951. if ac_fn_c_try_compile "$LINENO"; then :
  1952. ac_hi=-1 ac_mid=-1
  1953. while :; do
  1954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1955. /* end confdefs.h. */
  1956. $4
  1957. int
  1958. main ()
  1959. {
  1960. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1961. test_array [0] = 0;
  1962. return test_array [0];
  1963. ;
  1964. return 0;
  1965. }
  1966. _ACEOF
  1967. if ac_fn_c_try_compile "$LINENO"; then :
  1968. ac_lo=$ac_mid; break
  1969. else
  1970. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1971. if test $ac_mid -le $ac_hi; then
  1972. ac_lo= ac_hi=
  1973. break
  1974. fi
  1975. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1976. fi
  1977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1978. done
  1979. else
  1980. ac_lo= ac_hi=
  1981. fi
  1982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1983. fi
  1984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1985. # Binary search between lo and hi bounds.
  1986. while test "x$ac_lo" != "x$ac_hi"; do
  1987. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1989. /* end confdefs.h. */
  1990. $4
  1991. int
  1992. main ()
  1993. {
  1994. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1995. test_array [0] = 0;
  1996. return test_array [0];
  1997. ;
  1998. return 0;
  1999. }
  2000. _ACEOF
  2001. if ac_fn_c_try_compile "$LINENO"; then :
  2002. ac_hi=$ac_mid
  2003. else
  2004. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2005. fi
  2006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2007. done
  2008. case $ac_lo in #((
  2009. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2010. '') ac_retval=1 ;;
  2011. esac
  2012. else
  2013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2014. /* end confdefs.h. */
  2015. $4
  2016. static long int longval () { return $2; }
  2017. static unsigned long int ulongval () { return $2; }
  2018. #include <stdio.h>
  2019. #include <stdlib.h>
  2020. int
  2021. main ()
  2022. {
  2023. FILE *f = fopen ("conftest.val", "w");
  2024. if (! f)
  2025. return 1;
  2026. if (($2) < 0)
  2027. {
  2028. long int i = longval ();
  2029. if (i != ($2))
  2030. return 1;
  2031. fprintf (f, "%ld", i);
  2032. }
  2033. else
  2034. {
  2035. unsigned long int i = ulongval ();
  2036. if (i != ($2))
  2037. return 1;
  2038. fprintf (f, "%lu", i);
  2039. }
  2040. /* Do not output a trailing newline, as this causes \r\n confusion
  2041. on some platforms. */
  2042. return ferror (f) || fclose (f) != 0;
  2043. ;
  2044. return 0;
  2045. }
  2046. _ACEOF
  2047. if ac_fn_c_try_run "$LINENO"; then :
  2048. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2049. else
  2050. ac_retval=1
  2051. fi
  2052. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2053. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2054. rm -f conftest.val
  2055. fi
  2056. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2057. as_fn_set_status $ac_retval
  2058. } # ac_fn_c_compute_int
  2059. cat >config.log <<_ACEOF
  2060. This file contains any messages produced by compilers while
  2061. running configure, to aid debugging if configure makes a mistake.
  2062. It was created by libsamplerate $as_me 0.1.9, which was
  2063. generated by GNU Autoconf 2.69. Invocation command line was
  2064. $ $0 $@
  2065. _ACEOF
  2066. exec 5>>config.log
  2067. {
  2068. cat <<_ASUNAME
  2069. ## --------- ##
  2070. ## Platform. ##
  2071. ## --------- ##
  2072. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2073. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2074. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2075. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2076. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2077. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2078. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2079. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2080. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2081. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2082. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2083. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2084. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2085. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2086. _ASUNAME
  2087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2088. for as_dir in $PATH
  2089. do
  2090. IFS=$as_save_IFS
  2091. test -z "$as_dir" && as_dir=.
  2092. $as_echo "PATH: $as_dir"
  2093. done
  2094. IFS=$as_save_IFS
  2095. } >&5
  2096. cat >&5 <<_ACEOF
  2097. ## ----------- ##
  2098. ## Core tests. ##
  2099. ## ----------- ##
  2100. _ACEOF
  2101. # Keep a trace of the command line.
  2102. # Strip out --no-create and --no-recursion so they do not pile up.
  2103. # Strip out --silent because we don't want to record it for future runs.
  2104. # Also quote any args containing shell meta-characters.
  2105. # Make two passes to allow for proper duplicate-argument suppression.
  2106. ac_configure_args=
  2107. ac_configure_args0=
  2108. ac_configure_args1=
  2109. ac_must_keep_next=false
  2110. for ac_pass in 1 2
  2111. do
  2112. for ac_arg
  2113. do
  2114. case $ac_arg in
  2115. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2116. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2117. | -silent | --silent | --silen | --sile | --sil)
  2118. continue ;;
  2119. *\'*)
  2120. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2121. esac
  2122. case $ac_pass in
  2123. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2124. 2)
  2125. as_fn_append ac_configure_args1 " '$ac_arg'"
  2126. if test $ac_must_keep_next = true; then
  2127. ac_must_keep_next=false # Got value, back to normal.
  2128. else
  2129. case $ac_arg in
  2130. *=* | --config-cache | -C | -disable-* | --disable-* \
  2131. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2132. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2133. | -with-* | --with-* | -without-* | --without-* | --x)
  2134. case "$ac_configure_args0 " in
  2135. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2136. esac
  2137. ;;
  2138. -* ) ac_must_keep_next=true ;;
  2139. esac
  2140. fi
  2141. as_fn_append ac_configure_args " '$ac_arg'"
  2142. ;;
  2143. esac
  2144. done
  2145. done
  2146. { ac_configure_args0=; unset ac_configure_args0;}
  2147. { ac_configure_args1=; unset ac_configure_args1;}
  2148. # When interrupted or exit'd, cleanup temporary files, and complete
  2149. # config.log. We remove comments because anyway the quotes in there
  2150. # would cause problems or look ugly.
  2151. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2152. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2153. trap 'exit_status=$?
  2154. # Save into config.log some information that might help in debugging.
  2155. {
  2156. echo
  2157. $as_echo "## ---------------- ##
  2158. ## Cache variables. ##
  2159. ## ---------------- ##"
  2160. echo
  2161. # The following way of writing the cache mishandles newlines in values,
  2162. (
  2163. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2164. eval ac_val=\$$ac_var
  2165. case $ac_val in #(
  2166. *${as_nl}*)
  2167. case $ac_var in #(
  2168. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2169. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2170. esac
  2171. case $ac_var in #(
  2172. _ | IFS | as_nl) ;; #(
  2173. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2174. *) { eval $ac_var=; unset $ac_var;} ;;
  2175. esac ;;
  2176. esac
  2177. done
  2178. (set) 2>&1 |
  2179. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2180. *${as_nl}ac_space=\ *)
  2181. sed -n \
  2182. "s/'\''/'\''\\\\'\'''\''/g;
  2183. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2184. ;; #(
  2185. *)
  2186. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2187. ;;
  2188. esac |
  2189. sort
  2190. )
  2191. echo
  2192. $as_echo "## ----------------- ##
  2193. ## Output variables. ##
  2194. ## ----------------- ##"
  2195. echo
  2196. for ac_var in $ac_subst_vars
  2197. do
  2198. eval ac_val=\$$ac_var
  2199. case $ac_val in
  2200. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2201. esac
  2202. $as_echo "$ac_var='\''$ac_val'\''"
  2203. done | sort
  2204. echo
  2205. if test -n "$ac_subst_files"; then
  2206. $as_echo "## ------------------- ##
  2207. ## File substitutions. ##
  2208. ## ------------------- ##"
  2209. echo
  2210. for ac_var in $ac_subst_files
  2211. do
  2212. eval ac_val=\$$ac_var
  2213. case $ac_val in
  2214. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2215. esac
  2216. $as_echo "$ac_var='\''$ac_val'\''"
  2217. done | sort
  2218. echo
  2219. fi
  2220. if test -s confdefs.h; then
  2221. $as_echo "## ----------- ##
  2222. ## confdefs.h. ##
  2223. ## ----------- ##"
  2224. echo
  2225. cat confdefs.h
  2226. echo
  2227. fi
  2228. test "$ac_signal" != 0 &&
  2229. $as_echo "$as_me: caught signal $ac_signal"
  2230. $as_echo "$as_me: exit $exit_status"
  2231. } >&5
  2232. rm -f core *.core core.conftest.* &&
  2233. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2234. exit $exit_status
  2235. ' 0
  2236. for ac_signal in 1 2 13 15; do
  2237. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2238. done
  2239. ac_signal=0
  2240. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2241. rm -f -r conftest* confdefs.h
  2242. $as_echo "/* confdefs.h */" > confdefs.h
  2243. # Predefined preprocessor variables.
  2244. cat >>confdefs.h <<_ACEOF
  2245. #define PACKAGE_NAME "$PACKAGE_NAME"
  2246. _ACEOF
  2247. cat >>confdefs.h <<_ACEOF
  2248. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2249. _ACEOF
  2250. cat >>confdefs.h <<_ACEOF
  2251. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2252. _ACEOF
  2253. cat >>confdefs.h <<_ACEOF
  2254. #define PACKAGE_STRING "$PACKAGE_STRING"
  2255. _ACEOF
  2256. cat >>confdefs.h <<_ACEOF
  2257. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2258. _ACEOF
  2259. cat >>confdefs.h <<_ACEOF
  2260. #define PACKAGE_URL "$PACKAGE_URL"
  2261. _ACEOF
  2262. # Let the site file select an alternate cache file if it wants to.
  2263. # Prefer an explicitly selected file to automatically selected ones.
  2264. ac_site_file1=NONE
  2265. ac_site_file2=NONE
  2266. if test -n "$CONFIG_SITE"; then
  2267. # We do not want a PATH search for config.site.
  2268. case $CONFIG_SITE in #((
  2269. -*) ac_site_file1=./$CONFIG_SITE;;
  2270. */*) ac_site_file1=$CONFIG_SITE;;
  2271. *) ac_site_file1=./$CONFIG_SITE;;
  2272. esac
  2273. elif test "x$prefix" != xNONE; then
  2274. ac_site_file1=$prefix/share/config.site
  2275. ac_site_file2=$prefix/etc/config.site
  2276. else
  2277. ac_site_file1=$ac_default_prefix/share/config.site
  2278. ac_site_file2=$ac_default_prefix/etc/config.site
  2279. fi
  2280. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2281. do
  2282. test "x$ac_site_file" = xNONE && continue
  2283. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2284. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2285. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2286. sed 's/^/| /' "$ac_site_file" >&5
  2287. . "$ac_site_file" \
  2288. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2289. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2290. as_fn_error $? "failed to load site script $ac_site_file
  2291. See \`config.log' for more details" "$LINENO" 5; }
  2292. fi
  2293. done
  2294. if test -r "$cache_file"; then
  2295. # Some versions of bash will fail to source /dev/null (special files
  2296. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2297. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2299. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2300. case $cache_file in
  2301. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2302. *) . "./$cache_file";;
  2303. esac
  2304. fi
  2305. else
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2307. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2308. >$cache_file
  2309. fi
  2310. # Check that the precious variables saved in the cache have kept the same
  2311. # value.
  2312. ac_cache_corrupted=false
  2313. for ac_var in $ac_precious_vars; do
  2314. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2315. eval ac_new_set=\$ac_env_${ac_var}_set
  2316. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2317. eval ac_new_val=\$ac_env_${ac_var}_value
  2318. case $ac_old_set,$ac_new_set in
  2319. set,)
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2321. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2322. ac_cache_corrupted=: ;;
  2323. ,set)
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2325. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2326. ac_cache_corrupted=: ;;
  2327. ,);;
  2328. *)
  2329. if test "x$ac_old_val" != "x$ac_new_val"; then
  2330. # differences in whitespace do not lead to failure.
  2331. ac_old_val_w=`echo x $ac_old_val`
  2332. ac_new_val_w=`echo x $ac_new_val`
  2333. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2335. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2336. ac_cache_corrupted=:
  2337. else
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2339. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2340. eval $ac_var=\$ac_old_val
  2341. fi
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2343. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2345. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2346. fi;;
  2347. esac
  2348. # Pass precious variables to config.status.
  2349. if test "$ac_new_set" = set; then
  2350. case $ac_new_val in
  2351. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2352. *) ac_arg=$ac_var=$ac_new_val ;;
  2353. esac
  2354. case " $ac_configure_args " in
  2355. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2356. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2357. esac
  2358. fi
  2359. done
  2360. if $ac_cache_corrupted; then
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2362. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2364. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2365. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2366. fi
  2367. ## -------------------- ##
  2368. ## Main body of script. ##
  2369. ## -------------------- ##
  2370. ac_ext=c
  2371. ac_cpp='$CPP $CPPFLAGS'
  2372. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2373. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2374. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2375. # Put config stuff in Cfg.
  2376. ac_aux_dir=
  2377. for ac_dir in Cfg "$srcdir"/Cfg; do
  2378. if test -f "$ac_dir/install-sh"; then
  2379. ac_aux_dir=$ac_dir
  2380. ac_install_sh="$ac_aux_dir/install-sh -c"
  2381. break
  2382. elif test -f "$ac_dir/install.sh"; then
  2383. ac_aux_dir=$ac_dir
  2384. ac_install_sh="$ac_aux_dir/install.sh -c"
  2385. break
  2386. elif test -f "$ac_dir/shtool"; then
  2387. ac_aux_dir=$ac_dir
  2388. ac_install_sh="$ac_aux_dir/shtool install -c"
  2389. break
  2390. fi
  2391. done
  2392. if test -z "$ac_aux_dir"; then
  2393. as_fn_error $? "cannot find install-sh, install.sh, or shtool in Cfg \"$srcdir\"/Cfg" "$LINENO" 5
  2394. fi
  2395. # These three variables are undocumented and unsupported,
  2396. # and are intended to be withdrawn in a future Autoconf release.
  2397. # They can cause serious problems if a builder's source tree is in a directory
  2398. # whose full name contains unusual characters.
  2399. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2400. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2401. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2402. # Make sure we can run config.sub.
  2403. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2404. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2406. $as_echo_n "checking build system type... " >&6; }
  2407. if ${ac_cv_build+:} false; then :
  2408. $as_echo_n "(cached) " >&6
  2409. else
  2410. ac_build_alias=$build_alias
  2411. test "x$ac_build_alias" = x &&
  2412. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2413. test "x$ac_build_alias" = x &&
  2414. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2415. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2416. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2417. fi
  2418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2419. $as_echo "$ac_cv_build" >&6; }
  2420. case $ac_cv_build in
  2421. *-*-*) ;;
  2422. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2423. esac
  2424. build=$ac_cv_build
  2425. ac_save_IFS=$IFS; IFS='-'
  2426. set x $ac_cv_build
  2427. shift
  2428. build_cpu=$1
  2429. build_vendor=$2
  2430. shift; shift
  2431. # Remember, the first character of IFS is used to create $*,
  2432. # except with old shells:
  2433. build_os=$*
  2434. IFS=$ac_save_IFS
  2435. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2437. $as_echo_n "checking host system type... " >&6; }
  2438. if ${ac_cv_host+:} false; then :
  2439. $as_echo_n "(cached) " >&6
  2440. else
  2441. if test "x$host_alias" = x; then
  2442. ac_cv_host=$ac_cv_build
  2443. else
  2444. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2445. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2446. fi
  2447. fi
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2449. $as_echo "$ac_cv_host" >&6; }
  2450. case $ac_cv_host in
  2451. *-*-*) ;;
  2452. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2453. esac
  2454. host=$ac_cv_host
  2455. ac_save_IFS=$IFS; IFS='-'
  2456. set x $ac_cv_host
  2457. shift
  2458. host_cpu=$1
  2459. host_vendor=$2
  2460. shift; shift
  2461. # Remember, the first character of IFS is used to create $*,
  2462. # except with old shells:
  2463. host_os=$*
  2464. IFS=$ac_save_IFS
  2465. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2467. $as_echo_n "checking target system type... " >&6; }
  2468. if ${ac_cv_target+:} false; then :
  2469. $as_echo_n "(cached) " >&6
  2470. else
  2471. if test "x$target_alias" = x; then
  2472. ac_cv_target=$ac_cv_host
  2473. else
  2474. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2475. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2476. fi
  2477. fi
  2478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2479. $as_echo "$ac_cv_target" >&6; }
  2480. case $ac_cv_target in
  2481. *-*-*) ;;
  2482. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2483. esac
  2484. target=$ac_cv_target
  2485. ac_save_IFS=$IFS; IFS='-'
  2486. set x $ac_cv_target
  2487. shift
  2488. target_cpu=$1
  2489. target_vendor=$2
  2490. shift; shift
  2491. # Remember, the first character of IFS is used to create $*,
  2492. # except with old shells:
  2493. target_os=$*
  2494. IFS=$ac_save_IFS
  2495. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2496. # The aliases save the names the user supplied, while $host etc.
  2497. # will get canonicalized.
  2498. test -n "$target_alias" &&
  2499. test "$program_prefix$program_suffix$program_transform_name" = \
  2500. NONENONEs,x,x, &&
  2501. program_prefix=${target_alias}-
  2502. ac_config_headers="$ac_config_headers src/config.h"
  2503. am__api_version='1.15'
  2504. # Find a good install program. We prefer a C program (faster),
  2505. # so one script is as good as another. But avoid the broken or
  2506. # incompatible versions:
  2507. # SysV /etc/install, /usr/sbin/install
  2508. # SunOS /usr/etc/install
  2509. # IRIX /sbin/install
  2510. # AIX /bin/install
  2511. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2512. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2513. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2514. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2515. # OS/2's system install, which has a completely different semantic
  2516. # ./install, which can be erroneously created by make from ./install.sh.
  2517. # Reject install programs that cannot install multiple files.
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2519. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2520. if test -z "$INSTALL"; then
  2521. if ${ac_cv_path_install+:} false; then :
  2522. $as_echo_n "(cached) " >&6
  2523. else
  2524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2525. for as_dir in $PATH
  2526. do
  2527. IFS=$as_save_IFS
  2528. test -z "$as_dir" && as_dir=.
  2529. # Account for people who put trailing slashes in PATH elements.
  2530. case $as_dir/ in #((
  2531. ./ | .// | /[cC]/* | \
  2532. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2533. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2534. /usr/ucb/* ) ;;
  2535. *)
  2536. # OSF1 and SCO ODT 3.0 have their own names for install.
  2537. # Don't use installbsd from OSF since it installs stuff as root
  2538. # by default.
  2539. for ac_prog in ginstall scoinst install; do
  2540. for ac_exec_ext in '' $ac_executable_extensions; do
  2541. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2542. if test $ac_prog = install &&
  2543. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2544. # AIX install. It has an incompatible calling convention.
  2545. :
  2546. elif test $ac_prog = install &&
  2547. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2548. # program-specific install script used by HP pwplus--don't use.
  2549. :
  2550. else
  2551. rm -rf conftest.one conftest.two conftest.dir
  2552. echo one > conftest.one
  2553. echo two > conftest.two
  2554. mkdir conftest.dir
  2555. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2556. test -s conftest.one && test -s conftest.two &&
  2557. test -s conftest.dir/conftest.one &&
  2558. test -s conftest.dir/conftest.two
  2559. then
  2560. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2561. break 3
  2562. fi
  2563. fi
  2564. fi
  2565. done
  2566. done
  2567. ;;
  2568. esac
  2569. done
  2570. IFS=$as_save_IFS
  2571. rm -rf conftest.one conftest.two conftest.dir
  2572. fi
  2573. if test "${ac_cv_path_install+set}" = set; then
  2574. INSTALL=$ac_cv_path_install
  2575. else
  2576. # As a last resort, use the slow shell script. Don't cache a
  2577. # value for INSTALL within a source directory, because that will
  2578. # break other packages using the cache if that directory is
  2579. # removed, or if the value is a relative name.
  2580. INSTALL=$ac_install_sh
  2581. fi
  2582. fi
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2584. $as_echo "$INSTALL" >&6; }
  2585. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2586. # It thinks the first close brace ends the variable substitution.
  2587. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2588. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2589. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2591. $as_echo_n "checking whether build environment is sane... " >&6; }
  2592. # Reject unsafe characters in $srcdir or the absolute working directory
  2593. # name. Accept space and tab only in the latter.
  2594. am_lf='
  2595. '
  2596. case `pwd` in
  2597. *[\\\"\#\$\&\'\`$am_lf]*)
  2598. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2599. esac
  2600. case $srcdir in
  2601. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2602. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2603. esac
  2604. # Do 'set' in a subshell so we don't clobber the current shell's
  2605. # arguments. Must try -L first in case configure is actually a
  2606. # symlink; some systems play weird games with the mod time of symlinks
  2607. # (eg FreeBSD returns the mod time of the symlink's containing
  2608. # directory).
  2609. if (
  2610. am_has_slept=no
  2611. for am_try in 1 2; do
  2612. echo "timestamp, slept: $am_has_slept" > conftest.file
  2613. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2614. if test "$*" = "X"; then
  2615. # -L didn't work.
  2616. set X `ls -t "$srcdir/configure" conftest.file`
  2617. fi
  2618. if test "$*" != "X $srcdir/configure conftest.file" \
  2619. && test "$*" != "X conftest.file $srcdir/configure"; then
  2620. # If neither matched, then we have a broken ls. This can happen
  2621. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2622. # broken ls alias from the environment. This has actually
  2623. # happened. Such a system could not be considered "sane".
  2624. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2625. alias in your environment" "$LINENO" 5
  2626. fi
  2627. if test "$2" = conftest.file || test $am_try -eq 2; then
  2628. break
  2629. fi
  2630. # Just in case.
  2631. sleep 1
  2632. am_has_slept=yes
  2633. done
  2634. test "$2" = conftest.file
  2635. )
  2636. then
  2637. # Ok.
  2638. :
  2639. else
  2640. as_fn_error $? "newly created file is older than distributed files!
  2641. Check your system clock" "$LINENO" 5
  2642. fi
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2644. $as_echo "yes" >&6; }
  2645. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2646. # generated files are strictly newer.
  2647. am_sleep_pid=
  2648. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2649. ( sleep 1 ) &
  2650. am_sleep_pid=$!
  2651. fi
  2652. rm -f conftest.file
  2653. test "$program_prefix" != NONE &&
  2654. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2655. # Use a double $ so make ignores it.
  2656. test "$program_suffix" != NONE &&
  2657. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2658. # Double any \ or $.
  2659. # By default was `s,x,x', remove it if useless.
  2660. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2661. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2662. # Expand $ac_aux_dir to an absolute path.
  2663. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2664. if test x"${MISSING+set}" != xset; then
  2665. case $am_aux_dir in
  2666. *\ * | *\ *)
  2667. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2668. *)
  2669. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2670. esac
  2671. fi
  2672. # Use eval to expand $SHELL
  2673. if eval "$MISSING --is-lightweight"; then
  2674. am_missing_run="$MISSING "
  2675. else
  2676. am_missing_run=
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2678. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2679. fi
  2680. if test x"${install_sh+set}" != xset; then
  2681. case $am_aux_dir in
  2682. *\ * | *\ *)
  2683. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2684. *)
  2685. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2686. esac
  2687. fi
  2688. # Installed binaries are usually stripped using 'strip' when the user
  2689. # run "make install-strip". However 'strip' might not be the right
  2690. # tool to use in cross-compilation environments, therefore Automake
  2691. # will honor the 'STRIP' environment variable to overrule this program.
  2692. if test "$cross_compiling" != no; then
  2693. if test -n "$ac_tool_prefix"; then
  2694. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2695. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2697. $as_echo_n "checking for $ac_word... " >&6; }
  2698. if ${ac_cv_prog_STRIP+:} false; then :
  2699. $as_echo_n "(cached) " >&6
  2700. else
  2701. if test -n "$STRIP"; then
  2702. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2703. else
  2704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2705. for as_dir in $PATH
  2706. do
  2707. IFS=$as_save_IFS
  2708. test -z "$as_dir" && as_dir=.
  2709. for ac_exec_ext in '' $ac_executable_extensions; do
  2710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2711. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2713. break 2
  2714. fi
  2715. done
  2716. done
  2717. IFS=$as_save_IFS
  2718. fi
  2719. fi
  2720. STRIP=$ac_cv_prog_STRIP
  2721. if test -n "$STRIP"; then
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2723. $as_echo "$STRIP" >&6; }
  2724. else
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2726. $as_echo "no" >&6; }
  2727. fi
  2728. fi
  2729. if test -z "$ac_cv_prog_STRIP"; then
  2730. ac_ct_STRIP=$STRIP
  2731. # Extract the first word of "strip", so it can be a program name with args.
  2732. set dummy strip; ac_word=$2
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2734. $as_echo_n "checking for $ac_word... " >&6; }
  2735. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2736. $as_echo_n "(cached) " >&6
  2737. else
  2738. if test -n "$ac_ct_STRIP"; then
  2739. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2740. else
  2741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2742. for as_dir in $PATH
  2743. do
  2744. IFS=$as_save_IFS
  2745. test -z "$as_dir" && as_dir=.
  2746. for ac_exec_ext in '' $ac_executable_extensions; do
  2747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2748. ac_cv_prog_ac_ct_STRIP="strip"
  2749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2750. break 2
  2751. fi
  2752. done
  2753. done
  2754. IFS=$as_save_IFS
  2755. fi
  2756. fi
  2757. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2758. if test -n "$ac_ct_STRIP"; then
  2759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2760. $as_echo "$ac_ct_STRIP" >&6; }
  2761. else
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2763. $as_echo "no" >&6; }
  2764. fi
  2765. if test "x$ac_ct_STRIP" = x; then
  2766. STRIP=":"
  2767. else
  2768. case $cross_compiling:$ac_tool_warned in
  2769. yes:)
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2771. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2772. ac_tool_warned=yes ;;
  2773. esac
  2774. STRIP=$ac_ct_STRIP
  2775. fi
  2776. else
  2777. STRIP="$ac_cv_prog_STRIP"
  2778. fi
  2779. fi
  2780. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2782. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2783. if test -z "$MKDIR_P"; then
  2784. if ${ac_cv_path_mkdir+:} false; then :
  2785. $as_echo_n "(cached) " >&6
  2786. else
  2787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2788. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2789. do
  2790. IFS=$as_save_IFS
  2791. test -z "$as_dir" && as_dir=.
  2792. for ac_prog in mkdir gmkdir; do
  2793. for ac_exec_ext in '' $ac_executable_extensions; do
  2794. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2795. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2796. 'mkdir (GNU coreutils) '* | \
  2797. 'mkdir (coreutils) '* | \
  2798. 'mkdir (fileutils) '4.1*)
  2799. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2800. break 3;;
  2801. esac
  2802. done
  2803. done
  2804. done
  2805. IFS=$as_save_IFS
  2806. fi
  2807. test -d ./--version && rmdir ./--version
  2808. if test "${ac_cv_path_mkdir+set}" = set; then
  2809. MKDIR_P="$ac_cv_path_mkdir -p"
  2810. else
  2811. # As a last resort, use the slow shell script. Don't cache a
  2812. # value for MKDIR_P within a source directory, because that will
  2813. # break other packages using the cache if that directory is
  2814. # removed, or if the value is a relative name.
  2815. MKDIR_P="$ac_install_sh -d"
  2816. fi
  2817. fi
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2819. $as_echo "$MKDIR_P" >&6; }
  2820. for ac_prog in gawk mawk nawk awk
  2821. do
  2822. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2823. set dummy $ac_prog; ac_word=$2
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2825. $as_echo_n "checking for $ac_word... " >&6; }
  2826. if ${ac_cv_prog_AWK+:} false; then :
  2827. $as_echo_n "(cached) " >&6
  2828. else
  2829. if test -n "$AWK"; then
  2830. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2831. else
  2832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2833. for as_dir in $PATH
  2834. do
  2835. IFS=$as_save_IFS
  2836. test -z "$as_dir" && as_dir=.
  2837. for ac_exec_ext in '' $ac_executable_extensions; do
  2838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2839. ac_cv_prog_AWK="$ac_prog"
  2840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2841. break 2
  2842. fi
  2843. done
  2844. done
  2845. IFS=$as_save_IFS
  2846. fi
  2847. fi
  2848. AWK=$ac_cv_prog_AWK
  2849. if test -n "$AWK"; then
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2851. $as_echo "$AWK" >&6; }
  2852. else
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2854. $as_echo "no" >&6; }
  2855. fi
  2856. test -n "$AWK" && break
  2857. done
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2859. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2860. set x ${MAKE-make}
  2861. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2862. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2863. $as_echo_n "(cached) " >&6
  2864. else
  2865. cat >conftest.make <<\_ACEOF
  2866. SHELL = /bin/sh
  2867. all:
  2868. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2869. _ACEOF
  2870. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2871. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2872. *@@@%%%=?*=@@@%%%*)
  2873. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2874. *)
  2875. eval ac_cv_prog_make_${ac_make}_set=no;;
  2876. esac
  2877. rm -f conftest.make
  2878. fi
  2879. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2881. $as_echo "yes" >&6; }
  2882. SET_MAKE=
  2883. else
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2885. $as_echo "no" >&6; }
  2886. SET_MAKE="MAKE=${MAKE-make}"
  2887. fi
  2888. rm -rf .tst 2>/dev/null
  2889. mkdir .tst 2>/dev/null
  2890. if test -d .tst; then
  2891. am__leading_dot=.
  2892. else
  2893. am__leading_dot=_
  2894. fi
  2895. rmdir .tst 2>/dev/null
  2896. # Check whether --enable-silent-rules was given.
  2897. if test "${enable_silent_rules+set}" = set; then :
  2898. enableval=$enable_silent_rules;
  2899. fi
  2900. case $enable_silent_rules in # (((
  2901. yes) AM_DEFAULT_VERBOSITY=0;;
  2902. no) AM_DEFAULT_VERBOSITY=1;;
  2903. *) AM_DEFAULT_VERBOSITY=1;;
  2904. esac
  2905. am_make=${MAKE-make}
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2907. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2908. if ${am_cv_make_support_nested_variables+:} false; then :
  2909. $as_echo_n "(cached) " >&6
  2910. else
  2911. if $as_echo 'TRUE=$(BAR$(V))
  2912. BAR0=false
  2913. BAR1=true
  2914. V=1
  2915. am__doit:
  2916. @$(TRUE)
  2917. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2918. am_cv_make_support_nested_variables=yes
  2919. else
  2920. am_cv_make_support_nested_variables=no
  2921. fi
  2922. fi
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2924. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2925. if test $am_cv_make_support_nested_variables = yes; then
  2926. AM_V='$(V)'
  2927. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2928. else
  2929. AM_V=$AM_DEFAULT_VERBOSITY
  2930. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2931. fi
  2932. AM_BACKSLASH='\'
  2933. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2934. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2935. # is not polluted with repeated "-I."
  2936. am__isrc=' -I$(srcdir)'
  2937. # test to see if srcdir already configured
  2938. if test -f $srcdir/config.status; then
  2939. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2940. fi
  2941. fi
  2942. # test whether we have cygpath
  2943. if test -z "$CYGPATH_W"; then
  2944. if (cygpath --version) >/dev/null 2>/dev/null; then
  2945. CYGPATH_W='cygpath -w'
  2946. else
  2947. CYGPATH_W=echo
  2948. fi
  2949. fi
  2950. # Define the identity of the package.
  2951. PACKAGE=$PACKAGE_NAME
  2952. VERSION=$PACKAGE_VERSION
  2953. cat >>confdefs.h <<_ACEOF
  2954. #define PACKAGE "$PACKAGE"
  2955. _ACEOF
  2956. cat >>confdefs.h <<_ACEOF
  2957. #define VERSION "$VERSION"
  2958. _ACEOF
  2959. # Some tools Automake needs.
  2960. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2961. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2962. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2963. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2964. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2965. # For better backward compatibility. To be removed once Automake 1.9.x
  2966. # dies out for good. For more background, see:
  2967. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2968. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2969. mkdir_p='$(MKDIR_P)'
  2970. # We need awk for the "check" target (and possibly the TAP driver). The
  2971. # system "awk" is bad on some platforms.
  2972. # Always define AMTAR for backward compatibility. Yes, it's still used
  2973. # in the wild :-( We should find a proper way to deprecate it ...
  2974. AMTAR='$${TAR-tar}'
  2975. # We'll loop over all known methods to create a tar archive until one works.
  2976. _am_tools='gnutar pax cpio none'
  2977. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2978. # POSIX will say in a future version that running "rm -f" with no argument
  2979. # is OK; and we want to be able to make that assumption in our Makefile
  2980. # recipes. So use an aggressive probe to check that the usage we want is
  2981. # actually supported "in the wild" to an acceptable degree.
  2982. # See automake bug#10828.
  2983. # To make any issue more visible, cause the running configure to be aborted
  2984. # by default if the 'rm' program in use doesn't match our expectations; the
  2985. # user can still override this though.
  2986. if rm -f && rm -fr && rm -rf; then : OK; else
  2987. cat >&2 <<'END'
  2988. Oops!
  2989. Your 'rm' program seems unable to run without file operands specified
  2990. on the command line, even when the '-f' option is present. This is contrary
  2991. to the behaviour of most rm programs out there, and not conforming with
  2992. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2993. Please tell bug-automake@gnu.org about your system, including the value
  2994. of your $PATH and any error possibly output before this message. This
  2995. can help us improve future automake versions.
  2996. END
  2997. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2998. echo 'Configuration will proceed anyway, since you have set the' >&2
  2999. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3000. echo >&2
  3001. else
  3002. cat >&2 <<'END'
  3003. Aborting the configuration process, to ensure you take notice of the issue.
  3004. You can download and install GNU coreutils to get an 'rm' implementation
  3005. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3006. If you want to complete the configuration process using your problematic
  3007. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3008. to "yes", and re-run configure.
  3009. END
  3010. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3011. fi
  3012. fi
  3013. # Check whether --enable-silent-rules was given.
  3014. if test "${enable_silent_rules+set}" = set; then :
  3015. enableval=$enable_silent_rules;
  3016. fi
  3017. case $enable_silent_rules in # (((
  3018. yes) AM_DEFAULT_VERBOSITY=0;;
  3019. no) AM_DEFAULT_VERBOSITY=1;;
  3020. *) AM_DEFAULT_VERBOSITY=0;;
  3021. esac
  3022. am_make=${MAKE-make}
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3024. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3025. if ${am_cv_make_support_nested_variables+:} false; then :
  3026. $as_echo_n "(cached) " >&6
  3027. else
  3028. if $as_echo 'TRUE=$(BAR$(V))
  3029. BAR0=false
  3030. BAR1=true
  3031. V=1
  3032. am__doit:
  3033. @$(TRUE)
  3034. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3035. am_cv_make_support_nested_variables=yes
  3036. else
  3037. am_cv_make_support_nested_variables=no
  3038. fi
  3039. fi
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3041. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3042. if test $am_cv_make_support_nested_variables = yes; then
  3043. AM_V='$(V)'
  3044. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3045. else
  3046. AM_V=$AM_DEFAULT_VERBOSITY
  3047. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3048. fi
  3049. AM_BACKSLASH='\'
  3050. ACLOCAL_AMFLAGS="-I M4"
  3051. ac_ext=c
  3052. ac_cpp='$CPP $CPPFLAGS'
  3053. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3054. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3055. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3056. ac_ext=c
  3057. ac_cpp='$CPP $CPPFLAGS'
  3058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3061. if test -n "$ac_tool_prefix"; then
  3062. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3063. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3065. $as_echo_n "checking for $ac_word... " >&6; }
  3066. if ${ac_cv_prog_CC+:} false; then :
  3067. $as_echo_n "(cached) " >&6
  3068. else
  3069. if test -n "$CC"; then
  3070. ac_cv_prog_CC="$CC" # Let the user override the test.
  3071. else
  3072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3073. for as_dir in $PATH
  3074. do
  3075. IFS=$as_save_IFS
  3076. test -z "$as_dir" && as_dir=.
  3077. for ac_exec_ext in '' $ac_executable_extensions; do
  3078. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3079. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3080. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3081. break 2
  3082. fi
  3083. done
  3084. done
  3085. IFS=$as_save_IFS
  3086. fi
  3087. fi
  3088. CC=$ac_cv_prog_CC
  3089. if test -n "$CC"; then
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3091. $as_echo "$CC" >&6; }
  3092. else
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3094. $as_echo "no" >&6; }
  3095. fi
  3096. fi
  3097. if test -z "$ac_cv_prog_CC"; then
  3098. ac_ct_CC=$CC
  3099. # Extract the first word of "gcc", so it can be a program name with args.
  3100. set dummy gcc; ac_word=$2
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3102. $as_echo_n "checking for $ac_word... " >&6; }
  3103. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3104. $as_echo_n "(cached) " >&6
  3105. else
  3106. if test -n "$ac_ct_CC"; then
  3107. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3108. else
  3109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3110. for as_dir in $PATH
  3111. do
  3112. IFS=$as_save_IFS
  3113. test -z "$as_dir" && as_dir=.
  3114. for ac_exec_ext in '' $ac_executable_extensions; do
  3115. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3116. ac_cv_prog_ac_ct_CC="gcc"
  3117. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3118. break 2
  3119. fi
  3120. done
  3121. done
  3122. IFS=$as_save_IFS
  3123. fi
  3124. fi
  3125. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3126. if test -n "$ac_ct_CC"; then
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3128. $as_echo "$ac_ct_CC" >&6; }
  3129. else
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3131. $as_echo "no" >&6; }
  3132. fi
  3133. if test "x$ac_ct_CC" = x; then
  3134. CC=""
  3135. else
  3136. case $cross_compiling:$ac_tool_warned in
  3137. yes:)
  3138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3139. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3140. ac_tool_warned=yes ;;
  3141. esac
  3142. CC=$ac_ct_CC
  3143. fi
  3144. else
  3145. CC="$ac_cv_prog_CC"
  3146. fi
  3147. if test -z "$CC"; then
  3148. if test -n "$ac_tool_prefix"; then
  3149. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3150. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3152. $as_echo_n "checking for $ac_word... " >&6; }
  3153. if ${ac_cv_prog_CC+:} false; then :
  3154. $as_echo_n "(cached) " >&6
  3155. else
  3156. if test -n "$CC"; then
  3157. ac_cv_prog_CC="$CC" # Let the user override the test.
  3158. else
  3159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3160. for as_dir in $PATH
  3161. do
  3162. IFS=$as_save_IFS
  3163. test -z "$as_dir" && as_dir=.
  3164. for ac_exec_ext in '' $ac_executable_extensions; do
  3165. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3166. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3168. break 2
  3169. fi
  3170. done
  3171. done
  3172. IFS=$as_save_IFS
  3173. fi
  3174. fi
  3175. CC=$ac_cv_prog_CC
  3176. if test -n "$CC"; then
  3177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3178. $as_echo "$CC" >&6; }
  3179. else
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3181. $as_echo "no" >&6; }
  3182. fi
  3183. fi
  3184. fi
  3185. if test -z "$CC"; then
  3186. # Extract the first word of "cc", so it can be a program name with args.
  3187. set dummy cc; ac_word=$2
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3189. $as_echo_n "checking for $ac_word... " >&6; }
  3190. if ${ac_cv_prog_CC+:} false; then :
  3191. $as_echo_n "(cached) " >&6
  3192. else
  3193. if test -n "$CC"; then
  3194. ac_cv_prog_CC="$CC" # Let the user override the test.
  3195. else
  3196. ac_prog_rejected=no
  3197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3198. for as_dir in $PATH
  3199. do
  3200. IFS=$as_save_IFS
  3201. test -z "$as_dir" && as_dir=.
  3202. for ac_exec_ext in '' $ac_executable_extensions; do
  3203. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3204. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3205. ac_prog_rejected=yes
  3206. continue
  3207. fi
  3208. ac_cv_prog_CC="cc"
  3209. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3210. break 2
  3211. fi
  3212. done
  3213. done
  3214. IFS=$as_save_IFS
  3215. if test $ac_prog_rejected = yes; then
  3216. # We found a bogon in the path, so make sure we never use it.
  3217. set dummy $ac_cv_prog_CC
  3218. shift
  3219. if test $# != 0; then
  3220. # We chose a different compiler from the bogus one.
  3221. # However, it has the same basename, so the bogon will be chosen
  3222. # first if we set CC to just the basename; use the full file name.
  3223. shift
  3224. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3225. fi
  3226. fi
  3227. fi
  3228. fi
  3229. CC=$ac_cv_prog_CC
  3230. if test -n "$CC"; then
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3232. $as_echo "$CC" >&6; }
  3233. else
  3234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3235. $as_echo "no" >&6; }
  3236. fi
  3237. fi
  3238. if test -z "$CC"; then
  3239. if test -n "$ac_tool_prefix"; then
  3240. for ac_prog in cl.exe
  3241. do
  3242. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3243. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3245. $as_echo_n "checking for $ac_word... " >&6; }
  3246. if ${ac_cv_prog_CC+:} false; then :
  3247. $as_echo_n "(cached) " >&6
  3248. else
  3249. if test -n "$CC"; then
  3250. ac_cv_prog_CC="$CC" # Let the user override the test.
  3251. else
  3252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3253. for as_dir in $PATH
  3254. do
  3255. IFS=$as_save_IFS
  3256. test -z "$as_dir" && as_dir=.
  3257. for ac_exec_ext in '' $ac_executable_extensions; do
  3258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3259. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3261. break 2
  3262. fi
  3263. done
  3264. done
  3265. IFS=$as_save_IFS
  3266. fi
  3267. fi
  3268. CC=$ac_cv_prog_CC
  3269. if test -n "$CC"; then
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3271. $as_echo "$CC" >&6; }
  3272. else
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3274. $as_echo "no" >&6; }
  3275. fi
  3276. test -n "$CC" && break
  3277. done
  3278. fi
  3279. if test -z "$CC"; then
  3280. ac_ct_CC=$CC
  3281. for ac_prog in cl.exe
  3282. do
  3283. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3284. set dummy $ac_prog; ac_word=$2
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3286. $as_echo_n "checking for $ac_word... " >&6; }
  3287. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3288. $as_echo_n "(cached) " >&6
  3289. else
  3290. if test -n "$ac_ct_CC"; then
  3291. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3292. else
  3293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3294. for as_dir in $PATH
  3295. do
  3296. IFS=$as_save_IFS
  3297. test -z "$as_dir" && as_dir=.
  3298. for ac_exec_ext in '' $ac_executable_extensions; do
  3299. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3300. ac_cv_prog_ac_ct_CC="$ac_prog"
  3301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3302. break 2
  3303. fi
  3304. done
  3305. done
  3306. IFS=$as_save_IFS
  3307. fi
  3308. fi
  3309. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3310. if test -n "$ac_ct_CC"; then
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3312. $as_echo "$ac_ct_CC" >&6; }
  3313. else
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3315. $as_echo "no" >&6; }
  3316. fi
  3317. test -n "$ac_ct_CC" && break
  3318. done
  3319. if test "x$ac_ct_CC" = x; then
  3320. CC=""
  3321. else
  3322. case $cross_compiling:$ac_tool_warned in
  3323. yes:)
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3325. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3326. ac_tool_warned=yes ;;
  3327. esac
  3328. CC=$ac_ct_CC
  3329. fi
  3330. fi
  3331. fi
  3332. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3333. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3334. as_fn_error $? "no acceptable C compiler found in \$PATH
  3335. See \`config.log' for more details" "$LINENO" 5; }
  3336. # Provide some information about the compiler.
  3337. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3338. set X $ac_compile
  3339. ac_compiler=$2
  3340. for ac_option in --version -v -V -qversion; do
  3341. { { ac_try="$ac_compiler $ac_option >&5"
  3342. case "(($ac_try" in
  3343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3344. *) ac_try_echo=$ac_try;;
  3345. esac
  3346. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3347. $as_echo "$ac_try_echo"; } >&5
  3348. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3349. ac_status=$?
  3350. if test -s conftest.err; then
  3351. sed '10a\
  3352. ... rest of stderr output deleted ...
  3353. 10q' conftest.err >conftest.er1
  3354. cat conftest.er1 >&5
  3355. fi
  3356. rm -f conftest.er1 conftest.err
  3357. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3358. test $ac_status = 0; }
  3359. done
  3360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3361. /* end confdefs.h. */
  3362. int
  3363. main ()
  3364. {
  3365. ;
  3366. return 0;
  3367. }
  3368. _ACEOF
  3369. ac_clean_files_save=$ac_clean_files
  3370. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3371. # Try to create an executable without -o first, disregard a.out.
  3372. # It will help us diagnose broken compilers, and finding out an intuition
  3373. # of exeext.
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3375. $as_echo_n "checking whether the C compiler works... " >&6; }
  3376. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3377. # The possible output files:
  3378. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3379. ac_rmfiles=
  3380. for ac_file in $ac_files
  3381. do
  3382. case $ac_file in
  3383. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3384. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3385. esac
  3386. done
  3387. rm -f $ac_rmfiles
  3388. if { { ac_try="$ac_link_default"
  3389. case "(($ac_try" in
  3390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3391. *) ac_try_echo=$ac_try;;
  3392. esac
  3393. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3394. $as_echo "$ac_try_echo"; } >&5
  3395. (eval "$ac_link_default") 2>&5
  3396. ac_status=$?
  3397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3398. test $ac_status = 0; }; then :
  3399. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3400. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3401. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3402. # so that the user can short-circuit this test for compilers unknown to
  3403. # Autoconf.
  3404. for ac_file in $ac_files ''
  3405. do
  3406. test -f "$ac_file" || continue
  3407. case $ac_file in
  3408. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3409. ;;
  3410. [ab].out )
  3411. # We found the default executable, but exeext='' is most
  3412. # certainly right.
  3413. break;;
  3414. *.* )
  3415. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3416. then :; else
  3417. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3418. fi
  3419. # We set ac_cv_exeext here because the later test for it is not
  3420. # safe: cross compilers may not add the suffix if given an `-o'
  3421. # argument, so we may need to know it at that point already.
  3422. # Even if this section looks crufty: it has the advantage of
  3423. # actually working.
  3424. break;;
  3425. * )
  3426. break;;
  3427. esac
  3428. done
  3429. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3430. else
  3431. ac_file=''
  3432. fi
  3433. if test -z "$ac_file"; then :
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3435. $as_echo "no" >&6; }
  3436. $as_echo "$as_me: failed program was:" >&5
  3437. sed 's/^/| /' conftest.$ac_ext >&5
  3438. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3439. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3440. as_fn_error 77 "C compiler cannot create executables
  3441. See \`config.log' for more details" "$LINENO" 5; }
  3442. else
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3444. $as_echo "yes" >&6; }
  3445. fi
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3447. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3449. $as_echo "$ac_file" >&6; }
  3450. ac_exeext=$ac_cv_exeext
  3451. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3452. ac_clean_files=$ac_clean_files_save
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3454. $as_echo_n "checking for suffix of executables... " >&6; }
  3455. if { { ac_try="$ac_link"
  3456. case "(($ac_try" in
  3457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3458. *) ac_try_echo=$ac_try;;
  3459. esac
  3460. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3461. $as_echo "$ac_try_echo"; } >&5
  3462. (eval "$ac_link") 2>&5
  3463. ac_status=$?
  3464. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3465. test $ac_status = 0; }; then :
  3466. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3467. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3468. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3469. # `rm'.
  3470. for ac_file in conftest.exe conftest conftest.*; do
  3471. test -f "$ac_file" || continue
  3472. case $ac_file in
  3473. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3474. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3475. break;;
  3476. * ) break;;
  3477. esac
  3478. done
  3479. else
  3480. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3481. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3482. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3483. See \`config.log' for more details" "$LINENO" 5; }
  3484. fi
  3485. rm -f conftest conftest$ac_cv_exeext
  3486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3487. $as_echo "$ac_cv_exeext" >&6; }
  3488. rm -f conftest.$ac_ext
  3489. EXEEXT=$ac_cv_exeext
  3490. ac_exeext=$EXEEXT
  3491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3492. /* end confdefs.h. */
  3493. #include <stdio.h>
  3494. int
  3495. main ()
  3496. {
  3497. FILE *f = fopen ("conftest.out", "w");
  3498. return ferror (f) || fclose (f) != 0;
  3499. ;
  3500. return 0;
  3501. }
  3502. _ACEOF
  3503. ac_clean_files="$ac_clean_files conftest.out"
  3504. # Check that the compiler produces executables we can run. If not, either
  3505. # the compiler is broken, or we cross compile.
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3507. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3508. if test "$cross_compiling" != yes; then
  3509. { { ac_try="$ac_link"
  3510. case "(($ac_try" in
  3511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3512. *) ac_try_echo=$ac_try;;
  3513. esac
  3514. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3515. $as_echo "$ac_try_echo"; } >&5
  3516. (eval "$ac_link") 2>&5
  3517. ac_status=$?
  3518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3519. test $ac_status = 0; }
  3520. if { ac_try='./conftest$ac_cv_exeext'
  3521. { { case "(($ac_try" in
  3522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3523. *) ac_try_echo=$ac_try;;
  3524. esac
  3525. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3526. $as_echo "$ac_try_echo"; } >&5
  3527. (eval "$ac_try") 2>&5
  3528. ac_status=$?
  3529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3530. test $ac_status = 0; }; }; then
  3531. cross_compiling=no
  3532. else
  3533. if test "$cross_compiling" = maybe; then
  3534. cross_compiling=yes
  3535. else
  3536. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3537. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3538. as_fn_error $? "cannot run C compiled programs.
  3539. If you meant to cross compile, use \`--host'.
  3540. See \`config.log' for more details" "$LINENO" 5; }
  3541. fi
  3542. fi
  3543. fi
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3545. $as_echo "$cross_compiling" >&6; }
  3546. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3547. ac_clean_files=$ac_clean_files_save
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3549. $as_echo_n "checking for suffix of object files... " >&6; }
  3550. if ${ac_cv_objext+:} false; then :
  3551. $as_echo_n "(cached) " >&6
  3552. else
  3553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3554. /* end confdefs.h. */
  3555. int
  3556. main ()
  3557. {
  3558. ;
  3559. return 0;
  3560. }
  3561. _ACEOF
  3562. rm -f conftest.o conftest.obj
  3563. if { { ac_try="$ac_compile"
  3564. case "(($ac_try" in
  3565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3566. *) ac_try_echo=$ac_try;;
  3567. esac
  3568. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3569. $as_echo "$ac_try_echo"; } >&5
  3570. (eval "$ac_compile") 2>&5
  3571. ac_status=$?
  3572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3573. test $ac_status = 0; }; then :
  3574. for ac_file in conftest.o conftest.obj conftest.*; do
  3575. test -f "$ac_file" || continue;
  3576. case $ac_file in
  3577. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3578. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3579. break;;
  3580. esac
  3581. done
  3582. else
  3583. $as_echo "$as_me: failed program was:" >&5
  3584. sed 's/^/| /' conftest.$ac_ext >&5
  3585. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3586. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3587. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3588. See \`config.log' for more details" "$LINENO" 5; }
  3589. fi
  3590. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3591. fi
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3593. $as_echo "$ac_cv_objext" >&6; }
  3594. OBJEXT=$ac_cv_objext
  3595. ac_objext=$OBJEXT
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3597. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3598. if ${ac_cv_c_compiler_gnu+:} false; then :
  3599. $as_echo_n "(cached) " >&6
  3600. else
  3601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3602. /* end confdefs.h. */
  3603. int
  3604. main ()
  3605. {
  3606. #ifndef __GNUC__
  3607. choke me
  3608. #endif
  3609. ;
  3610. return 0;
  3611. }
  3612. _ACEOF
  3613. if ac_fn_c_try_compile "$LINENO"; then :
  3614. ac_compiler_gnu=yes
  3615. else
  3616. ac_compiler_gnu=no
  3617. fi
  3618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3619. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3620. fi
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3622. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3623. if test $ac_compiler_gnu = yes; then
  3624. GCC=yes
  3625. else
  3626. GCC=
  3627. fi
  3628. ac_test_CFLAGS=${CFLAGS+set}
  3629. ac_save_CFLAGS=$CFLAGS
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3631. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3632. if ${ac_cv_prog_cc_g+:} false; then :
  3633. $as_echo_n "(cached) " >&6
  3634. else
  3635. ac_save_c_werror_flag=$ac_c_werror_flag
  3636. ac_c_werror_flag=yes
  3637. ac_cv_prog_cc_g=no
  3638. CFLAGS="-g"
  3639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3640. /* end confdefs.h. */
  3641. int
  3642. main ()
  3643. {
  3644. ;
  3645. return 0;
  3646. }
  3647. _ACEOF
  3648. if ac_fn_c_try_compile "$LINENO"; then :
  3649. ac_cv_prog_cc_g=yes
  3650. else
  3651. CFLAGS=""
  3652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3653. /* end confdefs.h. */
  3654. int
  3655. main ()
  3656. {
  3657. ;
  3658. return 0;
  3659. }
  3660. _ACEOF
  3661. if ac_fn_c_try_compile "$LINENO"; then :
  3662. else
  3663. ac_c_werror_flag=$ac_save_c_werror_flag
  3664. CFLAGS="-g"
  3665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3666. /* end confdefs.h. */
  3667. int
  3668. main ()
  3669. {
  3670. ;
  3671. return 0;
  3672. }
  3673. _ACEOF
  3674. if ac_fn_c_try_compile "$LINENO"; then :
  3675. ac_cv_prog_cc_g=yes
  3676. fi
  3677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3678. fi
  3679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3680. fi
  3681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3682. ac_c_werror_flag=$ac_save_c_werror_flag
  3683. fi
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3685. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3686. if test "$ac_test_CFLAGS" = set; then
  3687. CFLAGS=$ac_save_CFLAGS
  3688. elif test $ac_cv_prog_cc_g = yes; then
  3689. if test "$GCC" = yes; then
  3690. CFLAGS="-g -O2"
  3691. else
  3692. CFLAGS="-g"
  3693. fi
  3694. else
  3695. if test "$GCC" = yes; then
  3696. CFLAGS="-O2"
  3697. else
  3698. CFLAGS=
  3699. fi
  3700. fi
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3702. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3703. if ${ac_cv_prog_cc_c89+:} false; then :
  3704. $as_echo_n "(cached) " >&6
  3705. else
  3706. ac_cv_prog_cc_c89=no
  3707. ac_save_CC=$CC
  3708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3709. /* end confdefs.h. */
  3710. #include <stdarg.h>
  3711. #include <stdio.h>
  3712. struct stat;
  3713. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3714. struct buf { int x; };
  3715. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3716. static char *e (p, i)
  3717. char **p;
  3718. int i;
  3719. {
  3720. return p[i];
  3721. }
  3722. static char *f (char * (*g) (char **, int), char **p, ...)
  3723. {
  3724. char *s;
  3725. va_list v;
  3726. va_start (v,p);
  3727. s = g (p, va_arg (v,int));
  3728. va_end (v);
  3729. return s;
  3730. }
  3731. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3732. function prototypes and stuff, but not '\xHH' hex character constants.
  3733. These don't provoke an error unfortunately, instead are silently treated
  3734. as 'x'. The following induces an error, until -std is added to get
  3735. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3736. array size at least. It's necessary to write '\x00'==0 to get something
  3737. that's true only with -std. */
  3738. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3739. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3740. inside strings and character constants. */
  3741. #define FOO(x) 'x'
  3742. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3743. int test (int i, double x);
  3744. struct s1 {int (*f) (int a);};
  3745. struct s2 {int (*f) (double a);};
  3746. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3747. int argc;
  3748. char **argv;
  3749. int
  3750. main ()
  3751. {
  3752. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3753. ;
  3754. return 0;
  3755. }
  3756. _ACEOF
  3757. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3758. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3759. do
  3760. CC="$ac_save_CC $ac_arg"
  3761. if ac_fn_c_try_compile "$LINENO"; then :
  3762. ac_cv_prog_cc_c89=$ac_arg
  3763. fi
  3764. rm -f core conftest.err conftest.$ac_objext
  3765. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3766. done
  3767. rm -f conftest.$ac_ext
  3768. CC=$ac_save_CC
  3769. fi
  3770. # AC_CACHE_VAL
  3771. case "x$ac_cv_prog_cc_c89" in
  3772. x)
  3773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3774. $as_echo "none needed" >&6; } ;;
  3775. xno)
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3777. $as_echo "unsupported" >&6; } ;;
  3778. *)
  3779. CC="$CC $ac_cv_prog_cc_c89"
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3781. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3782. esac
  3783. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3784. fi
  3785. ac_ext=c
  3786. ac_cpp='$CPP $CPPFLAGS'
  3787. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3788. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3789. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3790. ac_ext=c
  3791. ac_cpp='$CPP $CPPFLAGS'
  3792. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3793. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3794. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3796. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3797. if ${am_cv_prog_cc_c_o+:} false; then :
  3798. $as_echo_n "(cached) " >&6
  3799. else
  3800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3801. /* end confdefs.h. */
  3802. int
  3803. main ()
  3804. {
  3805. ;
  3806. return 0;
  3807. }
  3808. _ACEOF
  3809. # Make sure it works both with $CC and with simple cc.
  3810. # Following AC_PROG_CC_C_O, we do the test twice because some
  3811. # compilers refuse to overwrite an existing .o file with -o,
  3812. # though they will create one.
  3813. am_cv_prog_cc_c_o=yes
  3814. for am_i in 1 2; do
  3815. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3816. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3817. ac_status=$?
  3818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3819. (exit $ac_status); } \
  3820. && test -f conftest2.$ac_objext; then
  3821. : OK
  3822. else
  3823. am_cv_prog_cc_c_o=no
  3824. break
  3825. fi
  3826. done
  3827. rm -f core conftest*
  3828. unset am_i
  3829. fi
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3831. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3832. if test "$am_cv_prog_cc_c_o" != yes; then
  3833. # Losing compiler, so override with the script.
  3834. # FIXME: It is wrong to rewrite CC.
  3835. # But if we don't then we get into trouble of one sort or another.
  3836. # A longer-term fix would be to have automake use am__CC in this case,
  3837. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3838. CC="$am_aux_dir/compile $CC"
  3839. fi
  3840. ac_ext=c
  3841. ac_cpp='$CPP $CPPFLAGS'
  3842. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3843. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3844. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3845. DEPDIR="${am__leading_dot}deps"
  3846. ac_config_commands="$ac_config_commands depfiles"
  3847. am_make=${MAKE-make}
  3848. cat > confinc << 'END'
  3849. am__doit:
  3850. @echo this is the am__doit target
  3851. .PHONY: am__doit
  3852. END
  3853. # If we don't find an include directive, just comment out the code.
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3855. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3856. am__include="#"
  3857. am__quote=
  3858. _am_result=none
  3859. # First try GNU make style include.
  3860. echo "include confinc" > confmf
  3861. # Ignore all kinds of additional output from 'make'.
  3862. case `$am_make -s -f confmf 2> /dev/null` in #(
  3863. *the\ am__doit\ target*)
  3864. am__include=include
  3865. am__quote=
  3866. _am_result=GNU
  3867. ;;
  3868. esac
  3869. # Now try BSD make style include.
  3870. if test "$am__include" = "#"; then
  3871. echo '.include "confinc"' > confmf
  3872. case `$am_make -s -f confmf 2> /dev/null` in #(
  3873. *the\ am__doit\ target*)
  3874. am__include=.include
  3875. am__quote="\""
  3876. _am_result=BSD
  3877. ;;
  3878. esac
  3879. fi
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3881. $as_echo "$_am_result" >&6; }
  3882. rm -f confinc confmf
  3883. # Check whether --enable-dependency-tracking was given.
  3884. if test "${enable_dependency_tracking+set}" = set; then :
  3885. enableval=$enable_dependency_tracking;
  3886. fi
  3887. if test "x$enable_dependency_tracking" != xno; then
  3888. am_depcomp="$ac_aux_dir/depcomp"
  3889. AMDEPBACKSLASH='\'
  3890. am__nodep='_no'
  3891. fi
  3892. if test "x$enable_dependency_tracking" != xno; then
  3893. AMDEP_TRUE=
  3894. AMDEP_FALSE='#'
  3895. else
  3896. AMDEP_TRUE='#'
  3897. AMDEP_FALSE=
  3898. fi
  3899. depcc="$CC" am_compiler_list=
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3901. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3902. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3903. $as_echo_n "(cached) " >&6
  3904. else
  3905. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3906. # We make a subdir and do the tests there. Otherwise we can end up
  3907. # making bogus files that we don't know about and never remove. For
  3908. # instance it was reported that on HP-UX the gcc test will end up
  3909. # making a dummy file named 'D' -- because '-MD' means "put the output
  3910. # in D".
  3911. rm -rf conftest.dir
  3912. mkdir conftest.dir
  3913. # Copy depcomp to subdir because otherwise we won't find it if we're
  3914. # using a relative directory.
  3915. cp "$am_depcomp" conftest.dir
  3916. cd conftest.dir
  3917. # We will build objects and dependencies in a subdirectory because
  3918. # it helps to detect inapplicable dependency modes. For instance
  3919. # both Tru64's cc and ICC support -MD to output dependencies as a
  3920. # side effect of compilation, but ICC will put the dependencies in
  3921. # the current directory while Tru64 will put them in the object
  3922. # directory.
  3923. mkdir sub
  3924. am_cv_CC_dependencies_compiler_type=none
  3925. if test "$am_compiler_list" = ""; then
  3926. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3927. fi
  3928. am__universal=false
  3929. case " $depcc " in #(
  3930. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3931. esac
  3932. for depmode in $am_compiler_list; do
  3933. # Setup a source with many dependencies, because some compilers
  3934. # like to wrap large dependency lists on column 80 (with \), and
  3935. # we should not choose a depcomp mode which is confused by this.
  3936. #
  3937. # We need to recreate these files for each test, as the compiler may
  3938. # overwrite some of them when testing with obscure command lines.
  3939. # This happens at least with the AIX C compiler.
  3940. : > sub/conftest.c
  3941. for i in 1 2 3 4 5 6; do
  3942. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3943. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3944. # Solaris 10 /bin/sh.
  3945. echo '/* dummy */' > sub/conftst$i.h
  3946. done
  3947. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3948. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3949. # mode. It turns out that the SunPro C++ compiler does not properly
  3950. # handle '-M -o', and we need to detect this. Also, some Intel
  3951. # versions had trouble with output in subdirs.
  3952. am__obj=sub/conftest.${OBJEXT-o}
  3953. am__minus_obj="-o $am__obj"
  3954. case $depmode in
  3955. gcc)
  3956. # This depmode causes a compiler race in universal mode.
  3957. test "$am__universal" = false || continue
  3958. ;;
  3959. nosideeffect)
  3960. # After this tag, mechanisms are not by side-effect, so they'll
  3961. # only be used when explicitly requested.
  3962. if test "x$enable_dependency_tracking" = xyes; then
  3963. continue
  3964. else
  3965. break
  3966. fi
  3967. ;;
  3968. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3969. # This compiler won't grok '-c -o', but also, the minuso test has
  3970. # not run yet. These depmodes are late enough in the game, and
  3971. # so weak that their functioning should not be impacted.
  3972. am__obj=conftest.${OBJEXT-o}
  3973. am__minus_obj=
  3974. ;;
  3975. none) break ;;
  3976. esac
  3977. if depmode=$depmode \
  3978. source=sub/conftest.c object=$am__obj \
  3979. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3980. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3981. >/dev/null 2>conftest.err &&
  3982. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3983. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3984. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3985. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3986. # icc doesn't choke on unknown options, it will just issue warnings
  3987. # or remarks (even with -Werror). So we grep stderr for any message
  3988. # that says an option was ignored or not supported.
  3989. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3990. # icc: Command line warning: ignoring option '-M'; no argument required
  3991. # The diagnosis changed in icc 8.0:
  3992. # icc: Command line remark: option '-MP' not supported
  3993. if (grep 'ignoring option' conftest.err ||
  3994. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3995. am_cv_CC_dependencies_compiler_type=$depmode
  3996. break
  3997. fi
  3998. fi
  3999. done
  4000. cd ..
  4001. rm -rf conftest.dir
  4002. else
  4003. am_cv_CC_dependencies_compiler_type=none
  4004. fi
  4005. fi
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4007. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4008. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4009. if
  4010. test "x$enable_dependency_tracking" != xno \
  4011. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4012. am__fastdepCC_TRUE=
  4013. am__fastdepCC_FALSE='#'
  4014. else
  4015. am__fastdepCC_TRUE='#'
  4016. am__fastdepCC_FALSE=
  4017. fi
  4018. ac_ext=cpp
  4019. ac_cpp='$CXXCPP $CPPFLAGS'
  4020. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4021. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4022. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4023. if test -z "$CXX"; then
  4024. if test -n "$CCC"; then
  4025. CXX=$CCC
  4026. else
  4027. if test -n "$ac_tool_prefix"; then
  4028. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4029. do
  4030. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4031. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4033. $as_echo_n "checking for $ac_word... " >&6; }
  4034. if ${ac_cv_prog_CXX+:} false; then :
  4035. $as_echo_n "(cached) " >&6
  4036. else
  4037. if test -n "$CXX"; then
  4038. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4039. else
  4040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4041. for as_dir in $PATH
  4042. do
  4043. IFS=$as_save_IFS
  4044. test -z "$as_dir" && as_dir=.
  4045. for ac_exec_ext in '' $ac_executable_extensions; do
  4046. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4047. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4048. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4049. break 2
  4050. fi
  4051. done
  4052. done
  4053. IFS=$as_save_IFS
  4054. fi
  4055. fi
  4056. CXX=$ac_cv_prog_CXX
  4057. if test -n "$CXX"; then
  4058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4059. $as_echo "$CXX" >&6; }
  4060. else
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4062. $as_echo "no" >&6; }
  4063. fi
  4064. test -n "$CXX" && break
  4065. done
  4066. fi
  4067. if test -z "$CXX"; then
  4068. ac_ct_CXX=$CXX
  4069. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4070. do
  4071. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4072. set dummy $ac_prog; ac_word=$2
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4074. $as_echo_n "checking for $ac_word... " >&6; }
  4075. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4076. $as_echo_n "(cached) " >&6
  4077. else
  4078. if test -n "$ac_ct_CXX"; then
  4079. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4080. else
  4081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4082. for as_dir in $PATH
  4083. do
  4084. IFS=$as_save_IFS
  4085. test -z "$as_dir" && as_dir=.
  4086. for ac_exec_ext in '' $ac_executable_extensions; do
  4087. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4088. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4089. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4090. break 2
  4091. fi
  4092. done
  4093. done
  4094. IFS=$as_save_IFS
  4095. fi
  4096. fi
  4097. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4098. if test -n "$ac_ct_CXX"; then
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4100. $as_echo "$ac_ct_CXX" >&6; }
  4101. else
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4103. $as_echo "no" >&6; }
  4104. fi
  4105. test -n "$ac_ct_CXX" && break
  4106. done
  4107. if test "x$ac_ct_CXX" = x; then
  4108. CXX="g++"
  4109. else
  4110. case $cross_compiling:$ac_tool_warned in
  4111. yes:)
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4113. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4114. ac_tool_warned=yes ;;
  4115. esac
  4116. CXX=$ac_ct_CXX
  4117. fi
  4118. fi
  4119. fi
  4120. fi
  4121. # Provide some information about the compiler.
  4122. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4123. set X $ac_compile
  4124. ac_compiler=$2
  4125. for ac_option in --version -v -V -qversion; do
  4126. { { ac_try="$ac_compiler $ac_option >&5"
  4127. case "(($ac_try" in
  4128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4129. *) ac_try_echo=$ac_try;;
  4130. esac
  4131. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4132. $as_echo "$ac_try_echo"; } >&5
  4133. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4134. ac_status=$?
  4135. if test -s conftest.err; then
  4136. sed '10a\
  4137. ... rest of stderr output deleted ...
  4138. 10q' conftest.err >conftest.er1
  4139. cat conftest.er1 >&5
  4140. fi
  4141. rm -f conftest.er1 conftest.err
  4142. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4143. test $ac_status = 0; }
  4144. done
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4146. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4147. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4148. $as_echo_n "(cached) " >&6
  4149. else
  4150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4151. /* end confdefs.h. */
  4152. int
  4153. main ()
  4154. {
  4155. #ifndef __GNUC__
  4156. choke me
  4157. #endif
  4158. ;
  4159. return 0;
  4160. }
  4161. _ACEOF
  4162. if ac_fn_cxx_try_compile "$LINENO"; then :
  4163. ac_compiler_gnu=yes
  4164. else
  4165. ac_compiler_gnu=no
  4166. fi
  4167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4168. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4169. fi
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4171. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4172. if test $ac_compiler_gnu = yes; then
  4173. GXX=yes
  4174. else
  4175. GXX=
  4176. fi
  4177. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4178. ac_save_CXXFLAGS=$CXXFLAGS
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4180. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4181. if ${ac_cv_prog_cxx_g+:} false; then :
  4182. $as_echo_n "(cached) " >&6
  4183. else
  4184. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4185. ac_cxx_werror_flag=yes
  4186. ac_cv_prog_cxx_g=no
  4187. CXXFLAGS="-g"
  4188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4189. /* end confdefs.h. */
  4190. int
  4191. main ()
  4192. {
  4193. ;
  4194. return 0;
  4195. }
  4196. _ACEOF
  4197. if ac_fn_cxx_try_compile "$LINENO"; then :
  4198. ac_cv_prog_cxx_g=yes
  4199. else
  4200. CXXFLAGS=""
  4201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4202. /* end confdefs.h. */
  4203. int
  4204. main ()
  4205. {
  4206. ;
  4207. return 0;
  4208. }
  4209. _ACEOF
  4210. if ac_fn_cxx_try_compile "$LINENO"; then :
  4211. else
  4212. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4213. CXXFLAGS="-g"
  4214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4215. /* end confdefs.h. */
  4216. int
  4217. main ()
  4218. {
  4219. ;
  4220. return 0;
  4221. }
  4222. _ACEOF
  4223. if ac_fn_cxx_try_compile "$LINENO"; then :
  4224. ac_cv_prog_cxx_g=yes
  4225. fi
  4226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4227. fi
  4228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4229. fi
  4230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4231. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4232. fi
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4234. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4235. if test "$ac_test_CXXFLAGS" = set; then
  4236. CXXFLAGS=$ac_save_CXXFLAGS
  4237. elif test $ac_cv_prog_cxx_g = yes; then
  4238. if test "$GXX" = yes; then
  4239. CXXFLAGS="-g -O2"
  4240. else
  4241. CXXFLAGS="-g"
  4242. fi
  4243. else
  4244. if test "$GXX" = yes; then
  4245. CXXFLAGS="-O2"
  4246. else
  4247. CXXFLAGS=
  4248. fi
  4249. fi
  4250. ac_ext=c
  4251. ac_cpp='$CPP $CPPFLAGS'
  4252. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4253. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4254. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4255. depcc="$CXX" am_compiler_list=
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4257. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4258. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4259. $as_echo_n "(cached) " >&6
  4260. else
  4261. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4262. # We make a subdir and do the tests there. Otherwise we can end up
  4263. # making bogus files that we don't know about and never remove. For
  4264. # instance it was reported that on HP-UX the gcc test will end up
  4265. # making a dummy file named 'D' -- because '-MD' means "put the output
  4266. # in D".
  4267. rm -rf conftest.dir
  4268. mkdir conftest.dir
  4269. # Copy depcomp to subdir because otherwise we won't find it if we're
  4270. # using a relative directory.
  4271. cp "$am_depcomp" conftest.dir
  4272. cd conftest.dir
  4273. # We will build objects and dependencies in a subdirectory because
  4274. # it helps to detect inapplicable dependency modes. For instance
  4275. # both Tru64's cc and ICC support -MD to output dependencies as a
  4276. # side effect of compilation, but ICC will put the dependencies in
  4277. # the current directory while Tru64 will put them in the object
  4278. # directory.
  4279. mkdir sub
  4280. am_cv_CXX_dependencies_compiler_type=none
  4281. if test "$am_compiler_list" = ""; then
  4282. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4283. fi
  4284. am__universal=false
  4285. case " $depcc " in #(
  4286. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4287. esac
  4288. for depmode in $am_compiler_list; do
  4289. # Setup a source with many dependencies, because some compilers
  4290. # like to wrap large dependency lists on column 80 (with \), and
  4291. # we should not choose a depcomp mode which is confused by this.
  4292. #
  4293. # We need to recreate these files for each test, as the compiler may
  4294. # overwrite some of them when testing with obscure command lines.
  4295. # This happens at least with the AIX C compiler.
  4296. : > sub/conftest.c
  4297. for i in 1 2 3 4 5 6; do
  4298. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4299. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4300. # Solaris 10 /bin/sh.
  4301. echo '/* dummy */' > sub/conftst$i.h
  4302. done
  4303. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4304. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4305. # mode. It turns out that the SunPro C++ compiler does not properly
  4306. # handle '-M -o', and we need to detect this. Also, some Intel
  4307. # versions had trouble with output in subdirs.
  4308. am__obj=sub/conftest.${OBJEXT-o}
  4309. am__minus_obj="-o $am__obj"
  4310. case $depmode in
  4311. gcc)
  4312. # This depmode causes a compiler race in universal mode.
  4313. test "$am__universal" = false || continue
  4314. ;;
  4315. nosideeffect)
  4316. # After this tag, mechanisms are not by side-effect, so they'll
  4317. # only be used when explicitly requested.
  4318. if test "x$enable_dependency_tracking" = xyes; then
  4319. continue
  4320. else
  4321. break
  4322. fi
  4323. ;;
  4324. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4325. # This compiler won't grok '-c -o', but also, the minuso test has
  4326. # not run yet. These depmodes are late enough in the game, and
  4327. # so weak that their functioning should not be impacted.
  4328. am__obj=conftest.${OBJEXT-o}
  4329. am__minus_obj=
  4330. ;;
  4331. none) break ;;
  4332. esac
  4333. if depmode=$depmode \
  4334. source=sub/conftest.c object=$am__obj \
  4335. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4336. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4337. >/dev/null 2>conftest.err &&
  4338. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4339. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4340. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4341. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4342. # icc doesn't choke on unknown options, it will just issue warnings
  4343. # or remarks (even with -Werror). So we grep stderr for any message
  4344. # that says an option was ignored or not supported.
  4345. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4346. # icc: Command line warning: ignoring option '-M'; no argument required
  4347. # The diagnosis changed in icc 8.0:
  4348. # icc: Command line remark: option '-MP' not supported
  4349. if (grep 'ignoring option' conftest.err ||
  4350. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4351. am_cv_CXX_dependencies_compiler_type=$depmode
  4352. break
  4353. fi
  4354. fi
  4355. done
  4356. cd ..
  4357. rm -rf conftest.dir
  4358. else
  4359. am_cv_CXX_dependencies_compiler_type=none
  4360. fi
  4361. fi
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4363. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4364. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4365. if
  4366. test "x$enable_dependency_tracking" != xno \
  4367. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4368. am__fastdepCXX_TRUE=
  4369. am__fastdepCXX_FALSE='#'
  4370. else
  4371. am__fastdepCXX_TRUE='#'
  4372. am__fastdepCXX_FALSE=
  4373. fi
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4375. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4376. if ${ac_cv_path_SED+:} false; then :
  4377. $as_echo_n "(cached) " >&6
  4378. else
  4379. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4380. for ac_i in 1 2 3 4 5 6 7; do
  4381. ac_script="$ac_script$as_nl$ac_script"
  4382. done
  4383. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4384. { ac_script=; unset ac_script;}
  4385. if test -z "$SED"; then
  4386. ac_path_SED_found=false
  4387. # Loop through the user's path and test for each of PROGNAME-LIST
  4388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4389. for as_dir in $PATH
  4390. do
  4391. IFS=$as_save_IFS
  4392. test -z "$as_dir" && as_dir=.
  4393. for ac_prog in sed gsed; do
  4394. for ac_exec_ext in '' $ac_executable_extensions; do
  4395. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4396. as_fn_executable_p "$ac_path_SED" || continue
  4397. # Check for GNU ac_path_SED and select it if it is found.
  4398. # Check for GNU $ac_path_SED
  4399. case `"$ac_path_SED" --version 2>&1` in
  4400. *GNU*)
  4401. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4402. *)
  4403. ac_count=0
  4404. $as_echo_n 0123456789 >"conftest.in"
  4405. while :
  4406. do
  4407. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4408. mv "conftest.tmp" "conftest.in"
  4409. cp "conftest.in" "conftest.nl"
  4410. $as_echo '' >> "conftest.nl"
  4411. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4412. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4413. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4414. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4415. # Best one so far, save it but keep looking for a better one
  4416. ac_cv_path_SED="$ac_path_SED"
  4417. ac_path_SED_max=$ac_count
  4418. fi
  4419. # 10*(2^10) chars as input seems more than enough
  4420. test $ac_count -gt 10 && break
  4421. done
  4422. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4423. esac
  4424. $ac_path_SED_found && break 3
  4425. done
  4426. done
  4427. done
  4428. IFS=$as_save_IFS
  4429. if test -z "$ac_cv_path_SED"; then
  4430. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4431. fi
  4432. else
  4433. ac_cv_path_SED=$SED
  4434. fi
  4435. fi
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4437. $as_echo "$ac_cv_path_SED" >&6; }
  4438. SED="$ac_cv_path_SED"
  4439. rm -f conftest.sed
  4440. # Do not check for F77.
  4441. case `pwd` in
  4442. *\ * | *\ *)
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4444. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4445. esac
  4446. macro_version='2.4.6'
  4447. macro_revision='2.4.6'
  4448. ltmain=$ac_aux_dir/ltmain.sh
  4449. # Backslashify metacharacters that are still active within
  4450. # double-quoted strings.
  4451. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4452. # Same as above, but do not quote variable references.
  4453. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4454. # Sed substitution to delay expansion of an escaped shell variable in a
  4455. # double_quote_subst'ed string.
  4456. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4457. # Sed substitution to delay expansion of an escaped single quote.
  4458. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4459. # Sed substitution to avoid accidental globbing in evaled expressions
  4460. no_glob_subst='s/\*/\\\*/g'
  4461. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4462. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4463. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4465. $as_echo_n "checking how to print strings... " >&6; }
  4466. # Test print first, because it will be a builtin if present.
  4467. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4468. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4469. ECHO='print -r --'
  4470. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4471. ECHO='printf %s\n'
  4472. else
  4473. # Use this function as a fallback that always works.
  4474. func_fallback_echo ()
  4475. {
  4476. eval 'cat <<_LTECHO_EOF
  4477. $1
  4478. _LTECHO_EOF'
  4479. }
  4480. ECHO='func_fallback_echo'
  4481. fi
  4482. # func_echo_all arg...
  4483. # Invoke $ECHO with all args, space-separated.
  4484. func_echo_all ()
  4485. {
  4486. $ECHO ""
  4487. }
  4488. case $ECHO in
  4489. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4490. $as_echo "printf" >&6; } ;;
  4491. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4492. $as_echo "print -r" >&6; } ;;
  4493. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4494. $as_echo "cat" >&6; } ;;
  4495. esac
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4497. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4498. if ${ac_cv_path_SED+:} false; then :
  4499. $as_echo_n "(cached) " >&6
  4500. else
  4501. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4502. for ac_i in 1 2 3 4 5 6 7; do
  4503. ac_script="$ac_script$as_nl$ac_script"
  4504. done
  4505. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4506. { ac_script=; unset ac_script;}
  4507. if test -z "$SED"; then
  4508. ac_path_SED_found=false
  4509. # Loop through the user's path and test for each of PROGNAME-LIST
  4510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4511. for as_dir in $PATH
  4512. do
  4513. IFS=$as_save_IFS
  4514. test -z "$as_dir" && as_dir=.
  4515. for ac_prog in sed gsed; do
  4516. for ac_exec_ext in '' $ac_executable_extensions; do
  4517. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4518. as_fn_executable_p "$ac_path_SED" || continue
  4519. # Check for GNU ac_path_SED and select it if it is found.
  4520. # Check for GNU $ac_path_SED
  4521. case `"$ac_path_SED" --version 2>&1` in
  4522. *GNU*)
  4523. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4524. *)
  4525. ac_count=0
  4526. $as_echo_n 0123456789 >"conftest.in"
  4527. while :
  4528. do
  4529. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4530. mv "conftest.tmp" "conftest.in"
  4531. cp "conftest.in" "conftest.nl"
  4532. $as_echo '' >> "conftest.nl"
  4533. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4534. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4535. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4536. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4537. # Best one so far, save it but keep looking for a better one
  4538. ac_cv_path_SED="$ac_path_SED"
  4539. ac_path_SED_max=$ac_count
  4540. fi
  4541. # 10*(2^10) chars as input seems more than enough
  4542. test $ac_count -gt 10 && break
  4543. done
  4544. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4545. esac
  4546. $ac_path_SED_found && break 3
  4547. done
  4548. done
  4549. done
  4550. IFS=$as_save_IFS
  4551. if test -z "$ac_cv_path_SED"; then
  4552. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4553. fi
  4554. else
  4555. ac_cv_path_SED=$SED
  4556. fi
  4557. fi
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4559. $as_echo "$ac_cv_path_SED" >&6; }
  4560. SED="$ac_cv_path_SED"
  4561. rm -f conftest.sed
  4562. test -z "$SED" && SED=sed
  4563. Xsed="$SED -e 1s/^X//"
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4565. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4566. if ${ac_cv_path_GREP+:} false; then :
  4567. $as_echo_n "(cached) " >&6
  4568. else
  4569. if test -z "$GREP"; then
  4570. ac_path_GREP_found=false
  4571. # Loop through the user's path and test for each of PROGNAME-LIST
  4572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4573. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4574. do
  4575. IFS=$as_save_IFS
  4576. test -z "$as_dir" && as_dir=.
  4577. for ac_prog in grep ggrep; do
  4578. for ac_exec_ext in '' $ac_executable_extensions; do
  4579. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4580. as_fn_executable_p "$ac_path_GREP" || continue
  4581. # Check for GNU ac_path_GREP and select it if it is found.
  4582. # Check for GNU $ac_path_GREP
  4583. case `"$ac_path_GREP" --version 2>&1` in
  4584. *GNU*)
  4585. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4586. *)
  4587. ac_count=0
  4588. $as_echo_n 0123456789 >"conftest.in"
  4589. while :
  4590. do
  4591. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4592. mv "conftest.tmp" "conftest.in"
  4593. cp "conftest.in" "conftest.nl"
  4594. $as_echo 'GREP' >> "conftest.nl"
  4595. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4596. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4597. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4598. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4599. # Best one so far, save it but keep looking for a better one
  4600. ac_cv_path_GREP="$ac_path_GREP"
  4601. ac_path_GREP_max=$ac_count
  4602. fi
  4603. # 10*(2^10) chars as input seems more than enough
  4604. test $ac_count -gt 10 && break
  4605. done
  4606. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4607. esac
  4608. $ac_path_GREP_found && break 3
  4609. done
  4610. done
  4611. done
  4612. IFS=$as_save_IFS
  4613. if test -z "$ac_cv_path_GREP"; then
  4614. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4615. fi
  4616. else
  4617. ac_cv_path_GREP=$GREP
  4618. fi
  4619. fi
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4621. $as_echo "$ac_cv_path_GREP" >&6; }
  4622. GREP="$ac_cv_path_GREP"
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4624. $as_echo_n "checking for egrep... " >&6; }
  4625. if ${ac_cv_path_EGREP+:} false; then :
  4626. $as_echo_n "(cached) " >&6
  4627. else
  4628. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4629. then ac_cv_path_EGREP="$GREP -E"
  4630. else
  4631. if test -z "$EGREP"; then
  4632. ac_path_EGREP_found=false
  4633. # Loop through the user's path and test for each of PROGNAME-LIST
  4634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4635. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4636. do
  4637. IFS=$as_save_IFS
  4638. test -z "$as_dir" && as_dir=.
  4639. for ac_prog in egrep; do
  4640. for ac_exec_ext in '' $ac_executable_extensions; do
  4641. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4642. as_fn_executable_p "$ac_path_EGREP" || continue
  4643. # Check for GNU ac_path_EGREP and select it if it is found.
  4644. # Check for GNU $ac_path_EGREP
  4645. case `"$ac_path_EGREP" --version 2>&1` in
  4646. *GNU*)
  4647. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4648. *)
  4649. ac_count=0
  4650. $as_echo_n 0123456789 >"conftest.in"
  4651. while :
  4652. do
  4653. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4654. mv "conftest.tmp" "conftest.in"
  4655. cp "conftest.in" "conftest.nl"
  4656. $as_echo 'EGREP' >> "conftest.nl"
  4657. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4658. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4659. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4660. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4661. # Best one so far, save it but keep looking for a better one
  4662. ac_cv_path_EGREP="$ac_path_EGREP"
  4663. ac_path_EGREP_max=$ac_count
  4664. fi
  4665. # 10*(2^10) chars as input seems more than enough
  4666. test $ac_count -gt 10 && break
  4667. done
  4668. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4669. esac
  4670. $ac_path_EGREP_found && break 3
  4671. done
  4672. done
  4673. done
  4674. IFS=$as_save_IFS
  4675. if test -z "$ac_cv_path_EGREP"; then
  4676. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4677. fi
  4678. else
  4679. ac_cv_path_EGREP=$EGREP
  4680. fi
  4681. fi
  4682. fi
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4684. $as_echo "$ac_cv_path_EGREP" >&6; }
  4685. EGREP="$ac_cv_path_EGREP"
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4687. $as_echo_n "checking for fgrep... " >&6; }
  4688. if ${ac_cv_path_FGREP+:} false; then :
  4689. $as_echo_n "(cached) " >&6
  4690. else
  4691. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4692. then ac_cv_path_FGREP="$GREP -F"
  4693. else
  4694. if test -z "$FGREP"; then
  4695. ac_path_FGREP_found=false
  4696. # Loop through the user's path and test for each of PROGNAME-LIST
  4697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4698. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4699. do
  4700. IFS=$as_save_IFS
  4701. test -z "$as_dir" && as_dir=.
  4702. for ac_prog in fgrep; do
  4703. for ac_exec_ext in '' $ac_executable_extensions; do
  4704. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4705. as_fn_executable_p "$ac_path_FGREP" || continue
  4706. # Check for GNU ac_path_FGREP and select it if it is found.
  4707. # Check for GNU $ac_path_FGREP
  4708. case `"$ac_path_FGREP" --version 2>&1` in
  4709. *GNU*)
  4710. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4711. *)
  4712. ac_count=0
  4713. $as_echo_n 0123456789 >"conftest.in"
  4714. while :
  4715. do
  4716. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4717. mv "conftest.tmp" "conftest.in"
  4718. cp "conftest.in" "conftest.nl"
  4719. $as_echo 'FGREP' >> "conftest.nl"
  4720. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4721. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4722. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4723. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4724. # Best one so far, save it but keep looking for a better one
  4725. ac_cv_path_FGREP="$ac_path_FGREP"
  4726. ac_path_FGREP_max=$ac_count
  4727. fi
  4728. # 10*(2^10) chars as input seems more than enough
  4729. test $ac_count -gt 10 && break
  4730. done
  4731. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4732. esac
  4733. $ac_path_FGREP_found && break 3
  4734. done
  4735. done
  4736. done
  4737. IFS=$as_save_IFS
  4738. if test -z "$ac_cv_path_FGREP"; then
  4739. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4740. fi
  4741. else
  4742. ac_cv_path_FGREP=$FGREP
  4743. fi
  4744. fi
  4745. fi
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4747. $as_echo "$ac_cv_path_FGREP" >&6; }
  4748. FGREP="$ac_cv_path_FGREP"
  4749. test -z "$GREP" && GREP=grep
  4750. # Check whether --with-gnu-ld was given.
  4751. if test "${with_gnu_ld+set}" = set; then :
  4752. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4753. else
  4754. with_gnu_ld=no
  4755. fi
  4756. ac_prog=ld
  4757. if test yes = "$GCC"; then
  4758. # Check if gcc -print-prog-name=ld gives a path.
  4759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4760. $as_echo_n "checking for ld used by $CC... " >&6; }
  4761. case $host in
  4762. *-*-mingw*)
  4763. # gcc leaves a trailing carriage return, which upsets mingw
  4764. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4765. *)
  4766. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4767. esac
  4768. case $ac_prog in
  4769. # Accept absolute paths.
  4770. [\\/]* | ?:[\\/]*)
  4771. re_direlt='/[^/][^/]*/\.\./'
  4772. # Canonicalize the pathname of ld
  4773. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4774. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4775. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4776. done
  4777. test -z "$LD" && LD=$ac_prog
  4778. ;;
  4779. "")
  4780. # If it fails, then pretend we aren't using GCC.
  4781. ac_prog=ld
  4782. ;;
  4783. *)
  4784. # If it is relative, then search for the first ld in PATH.
  4785. with_gnu_ld=unknown
  4786. ;;
  4787. esac
  4788. elif test yes = "$with_gnu_ld"; then
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4790. $as_echo_n "checking for GNU ld... " >&6; }
  4791. else
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4793. $as_echo_n "checking for non-GNU ld... " >&6; }
  4794. fi
  4795. if ${lt_cv_path_LD+:} false; then :
  4796. $as_echo_n "(cached) " >&6
  4797. else
  4798. if test -z "$LD"; then
  4799. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4800. for ac_dir in $PATH; do
  4801. IFS=$lt_save_ifs
  4802. test -z "$ac_dir" && ac_dir=.
  4803. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4804. lt_cv_path_LD=$ac_dir/$ac_prog
  4805. # Check to see if the program is GNU ld. I'd rather use --version,
  4806. # but apparently some variants of GNU ld only accept -v.
  4807. # Break only if it was the GNU/non-GNU ld that we prefer.
  4808. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4809. *GNU* | *'with BFD'*)
  4810. test no != "$with_gnu_ld" && break
  4811. ;;
  4812. *)
  4813. test yes != "$with_gnu_ld" && break
  4814. ;;
  4815. esac
  4816. fi
  4817. done
  4818. IFS=$lt_save_ifs
  4819. else
  4820. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4821. fi
  4822. fi
  4823. LD=$lt_cv_path_LD
  4824. if test -n "$LD"; then
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4826. $as_echo "$LD" >&6; }
  4827. else
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4829. $as_echo "no" >&6; }
  4830. fi
  4831. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4833. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4834. if ${lt_cv_prog_gnu_ld+:} false; then :
  4835. $as_echo_n "(cached) " >&6
  4836. else
  4837. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4838. case `$LD -v 2>&1 </dev/null` in
  4839. *GNU* | *'with BFD'*)
  4840. lt_cv_prog_gnu_ld=yes
  4841. ;;
  4842. *)
  4843. lt_cv_prog_gnu_ld=no
  4844. ;;
  4845. esac
  4846. fi
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4848. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4849. with_gnu_ld=$lt_cv_prog_gnu_ld
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4851. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4852. if ${lt_cv_path_NM+:} false; then :
  4853. $as_echo_n "(cached) " >&6
  4854. else
  4855. if test -n "$NM"; then
  4856. # Let the user override the test.
  4857. lt_cv_path_NM=$NM
  4858. else
  4859. lt_nm_to_check=${ac_tool_prefix}nm
  4860. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4861. lt_nm_to_check="$lt_nm_to_check nm"
  4862. fi
  4863. for lt_tmp_nm in $lt_nm_to_check; do
  4864. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4865. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4866. IFS=$lt_save_ifs
  4867. test -z "$ac_dir" && ac_dir=.
  4868. tmp_nm=$ac_dir/$lt_tmp_nm
  4869. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4870. # Check to see if the nm accepts a BSD-compat flag.
  4871. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4872. # nm: unknown option "B" ignored
  4873. # Tru64's nm complains that /dev/null is an invalid object file
  4874. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4875. case $build_os in
  4876. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4877. *) lt_bad_file=/dev/null ;;
  4878. esac
  4879. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4880. *$lt_bad_file* | *'Invalid file or object type'*)
  4881. lt_cv_path_NM="$tmp_nm -B"
  4882. break 2
  4883. ;;
  4884. *)
  4885. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4886. */dev/null*)
  4887. lt_cv_path_NM="$tmp_nm -p"
  4888. break 2
  4889. ;;
  4890. *)
  4891. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4892. continue # so that we can try to find one that supports BSD flags
  4893. ;;
  4894. esac
  4895. ;;
  4896. esac
  4897. fi
  4898. done
  4899. IFS=$lt_save_ifs
  4900. done
  4901. : ${lt_cv_path_NM=no}
  4902. fi
  4903. fi
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4905. $as_echo "$lt_cv_path_NM" >&6; }
  4906. if test no != "$lt_cv_path_NM"; then
  4907. NM=$lt_cv_path_NM
  4908. else
  4909. # Didn't find any BSD compatible name lister, look for dumpbin.
  4910. if test -n "$DUMPBIN"; then :
  4911. # Let the user override the test.
  4912. else
  4913. if test -n "$ac_tool_prefix"; then
  4914. for ac_prog in dumpbin "link -dump"
  4915. do
  4916. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4917. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4919. $as_echo_n "checking for $ac_word... " >&6; }
  4920. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4921. $as_echo_n "(cached) " >&6
  4922. else
  4923. if test -n "$DUMPBIN"; then
  4924. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4925. else
  4926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4927. for as_dir in $PATH
  4928. do
  4929. IFS=$as_save_IFS
  4930. test -z "$as_dir" && as_dir=.
  4931. for ac_exec_ext in '' $ac_executable_extensions; do
  4932. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4933. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4935. break 2
  4936. fi
  4937. done
  4938. done
  4939. IFS=$as_save_IFS
  4940. fi
  4941. fi
  4942. DUMPBIN=$ac_cv_prog_DUMPBIN
  4943. if test -n "$DUMPBIN"; then
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4945. $as_echo "$DUMPBIN" >&6; }
  4946. else
  4947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4948. $as_echo "no" >&6; }
  4949. fi
  4950. test -n "$DUMPBIN" && break
  4951. done
  4952. fi
  4953. if test -z "$DUMPBIN"; then
  4954. ac_ct_DUMPBIN=$DUMPBIN
  4955. for ac_prog in dumpbin "link -dump"
  4956. do
  4957. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4958. set dummy $ac_prog; ac_word=$2
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4960. $as_echo_n "checking for $ac_word... " >&6; }
  4961. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4962. $as_echo_n "(cached) " >&6
  4963. else
  4964. if test -n "$ac_ct_DUMPBIN"; then
  4965. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4966. else
  4967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4968. for as_dir in $PATH
  4969. do
  4970. IFS=$as_save_IFS
  4971. test -z "$as_dir" && as_dir=.
  4972. for ac_exec_ext in '' $ac_executable_extensions; do
  4973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4974. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4976. break 2
  4977. fi
  4978. done
  4979. done
  4980. IFS=$as_save_IFS
  4981. fi
  4982. fi
  4983. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4984. if test -n "$ac_ct_DUMPBIN"; then
  4985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4986. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4987. else
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4989. $as_echo "no" >&6; }
  4990. fi
  4991. test -n "$ac_ct_DUMPBIN" && break
  4992. done
  4993. if test "x$ac_ct_DUMPBIN" = x; then
  4994. DUMPBIN=":"
  4995. else
  4996. case $cross_compiling:$ac_tool_warned in
  4997. yes:)
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5000. ac_tool_warned=yes ;;
  5001. esac
  5002. DUMPBIN=$ac_ct_DUMPBIN
  5003. fi
  5004. fi
  5005. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5006. *COFF*)
  5007. DUMPBIN="$DUMPBIN -symbols -headers"
  5008. ;;
  5009. *)
  5010. DUMPBIN=:
  5011. ;;
  5012. esac
  5013. fi
  5014. if test : != "$DUMPBIN"; then
  5015. NM=$DUMPBIN
  5016. fi
  5017. fi
  5018. test -z "$NM" && NM=nm
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5020. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5021. if ${lt_cv_nm_interface+:} false; then :
  5022. $as_echo_n "(cached) " >&6
  5023. else
  5024. lt_cv_nm_interface="BSD nm"
  5025. echo "int some_variable = 0;" > conftest.$ac_ext
  5026. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5027. (eval "$ac_compile" 2>conftest.err)
  5028. cat conftest.err >&5
  5029. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5030. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5031. cat conftest.err >&5
  5032. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5033. cat conftest.out >&5
  5034. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5035. lt_cv_nm_interface="MS dumpbin"
  5036. fi
  5037. rm -f conftest*
  5038. fi
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5040. $as_echo "$lt_cv_nm_interface" >&6; }
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5042. $as_echo_n "checking whether ln -s works... " >&6; }
  5043. LN_S=$as_ln_s
  5044. if test "$LN_S" = "ln -s"; then
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5046. $as_echo "yes" >&6; }
  5047. else
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5049. $as_echo "no, using $LN_S" >&6; }
  5050. fi
  5051. # find the maximum length of command line arguments
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5053. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5054. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5055. $as_echo_n "(cached) " >&6
  5056. else
  5057. i=0
  5058. teststring=ABCD
  5059. case $build_os in
  5060. msdosdjgpp*)
  5061. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5062. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5063. # during glob expansion). Even if it were fixed, the result of this
  5064. # check would be larger than it should be.
  5065. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5066. ;;
  5067. gnu*)
  5068. # Under GNU Hurd, this test is not required because there is
  5069. # no limit to the length of command line arguments.
  5070. # Libtool will interpret -1 as no limit whatsoever
  5071. lt_cv_sys_max_cmd_len=-1;
  5072. ;;
  5073. cygwin* | mingw* | cegcc*)
  5074. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5075. # about 5 minutes as the teststring grows exponentially.
  5076. # Worse, since 9x/ME are not pre-emptively multitasking,
  5077. # you end up with a "frozen" computer, even though with patience
  5078. # the test eventually succeeds (with a max line length of 256k).
  5079. # Instead, let's just punt: use the minimum linelength reported by
  5080. # all of the supported platforms: 8192 (on NT/2K/XP).
  5081. lt_cv_sys_max_cmd_len=8192;
  5082. ;;
  5083. mint*)
  5084. # On MiNT this can take a long time and run out of memory.
  5085. lt_cv_sys_max_cmd_len=8192;
  5086. ;;
  5087. amigaos*)
  5088. # On AmigaOS with pdksh, this test takes hours, literally.
  5089. # So we just punt and use a minimum line length of 8192.
  5090. lt_cv_sys_max_cmd_len=8192;
  5091. ;;
  5092. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5093. # This has been around since 386BSD, at least. Likely further.
  5094. if test -x /sbin/sysctl; then
  5095. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5096. elif test -x /usr/sbin/sysctl; then
  5097. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5098. else
  5099. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5100. fi
  5101. # And add a safety zone
  5102. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5103. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5104. ;;
  5105. interix*)
  5106. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5107. lt_cv_sys_max_cmd_len=196608
  5108. ;;
  5109. os2*)
  5110. # The test takes a long time on OS/2.
  5111. lt_cv_sys_max_cmd_len=8192
  5112. ;;
  5113. osf*)
  5114. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5115. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5116. # nice to cause kernel panics so lets avoid the loop below.
  5117. # First set a reasonable default.
  5118. lt_cv_sys_max_cmd_len=16384
  5119. #
  5120. if test -x /sbin/sysconfig; then
  5121. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5122. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5123. esac
  5124. fi
  5125. ;;
  5126. sco3.2v5*)
  5127. lt_cv_sys_max_cmd_len=102400
  5128. ;;
  5129. sysv5* | sco5v6* | sysv4.2uw2*)
  5130. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5131. if test -n "$kargmax"; then
  5132. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5133. else
  5134. lt_cv_sys_max_cmd_len=32768
  5135. fi
  5136. ;;
  5137. *)
  5138. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5139. if test -n "$lt_cv_sys_max_cmd_len" && \
  5140. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5141. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5142. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5143. else
  5144. # Make teststring a little bigger before we do anything with it.
  5145. # a 1K string should be a reasonable start.
  5146. for i in 1 2 3 4 5 6 7 8; do
  5147. teststring=$teststring$teststring
  5148. done
  5149. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5150. # If test is not a shell built-in, we'll probably end up computing a
  5151. # maximum length that is only half of the actual maximum length, but
  5152. # we can't tell.
  5153. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5154. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5155. test 17 != "$i" # 1/2 MB should be enough
  5156. do
  5157. i=`expr $i + 1`
  5158. teststring=$teststring$teststring
  5159. done
  5160. # Only check the string length outside the loop.
  5161. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5162. teststring=
  5163. # Add a significant safety factor because C++ compilers can tack on
  5164. # massive amounts of additional arguments before passing them to the
  5165. # linker. It appears as though 1/2 is a usable value.
  5166. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5167. fi
  5168. ;;
  5169. esac
  5170. fi
  5171. if test -n "$lt_cv_sys_max_cmd_len"; then
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5173. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5174. else
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5176. $as_echo "none" >&6; }
  5177. fi
  5178. max_cmd_len=$lt_cv_sys_max_cmd_len
  5179. : ${CP="cp -f"}
  5180. : ${MV="mv -f"}
  5181. : ${RM="rm -f"}
  5182. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5183. lt_unset=unset
  5184. else
  5185. lt_unset=false
  5186. fi
  5187. # test EBCDIC or ASCII
  5188. case `echo X|tr X '\101'` in
  5189. A) # ASCII based system
  5190. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5191. lt_SP2NL='tr \040 \012'
  5192. lt_NL2SP='tr \015\012 \040\040'
  5193. ;;
  5194. *) # EBCDIC based system
  5195. lt_SP2NL='tr \100 \n'
  5196. lt_NL2SP='tr \r\n \100\100'
  5197. ;;
  5198. esac
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5200. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5201. if ${lt_cv_to_host_file_cmd+:} false; then :
  5202. $as_echo_n "(cached) " >&6
  5203. else
  5204. case $host in
  5205. *-*-mingw* )
  5206. case $build in
  5207. *-*-mingw* ) # actually msys
  5208. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5209. ;;
  5210. *-*-cygwin* )
  5211. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5212. ;;
  5213. * ) # otherwise, assume *nix
  5214. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5215. ;;
  5216. esac
  5217. ;;
  5218. *-*-cygwin* )
  5219. case $build in
  5220. *-*-mingw* ) # actually msys
  5221. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5222. ;;
  5223. *-*-cygwin* )
  5224. lt_cv_to_host_file_cmd=func_convert_file_noop
  5225. ;;
  5226. * ) # otherwise, assume *nix
  5227. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5228. ;;
  5229. esac
  5230. ;;
  5231. * ) # unhandled hosts (and "normal" native builds)
  5232. lt_cv_to_host_file_cmd=func_convert_file_noop
  5233. ;;
  5234. esac
  5235. fi
  5236. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5238. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5240. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5241. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5242. $as_echo_n "(cached) " >&6
  5243. else
  5244. #assume ordinary cross tools, or native build.
  5245. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5246. case $host in
  5247. *-*-mingw* )
  5248. case $build in
  5249. *-*-mingw* ) # actually msys
  5250. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5251. ;;
  5252. esac
  5253. ;;
  5254. esac
  5255. fi
  5256. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5258. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5260. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5261. if ${lt_cv_ld_reload_flag+:} false; then :
  5262. $as_echo_n "(cached) " >&6
  5263. else
  5264. lt_cv_ld_reload_flag='-r'
  5265. fi
  5266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5267. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5268. reload_flag=$lt_cv_ld_reload_flag
  5269. case $reload_flag in
  5270. "" | " "*) ;;
  5271. *) reload_flag=" $reload_flag" ;;
  5272. esac
  5273. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5274. case $host_os in
  5275. cygwin* | mingw* | pw32* | cegcc*)
  5276. if test yes != "$GCC"; then
  5277. reload_cmds=false
  5278. fi
  5279. ;;
  5280. darwin*)
  5281. if test yes = "$GCC"; then
  5282. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5283. else
  5284. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5285. fi
  5286. ;;
  5287. esac
  5288. if test -n "$ac_tool_prefix"; then
  5289. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5290. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5292. $as_echo_n "checking for $ac_word... " >&6; }
  5293. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5294. $as_echo_n "(cached) " >&6
  5295. else
  5296. if test -n "$OBJDUMP"; then
  5297. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5298. else
  5299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5300. for as_dir in $PATH
  5301. do
  5302. IFS=$as_save_IFS
  5303. test -z "$as_dir" && as_dir=.
  5304. for ac_exec_ext in '' $ac_executable_extensions; do
  5305. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5306. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5308. break 2
  5309. fi
  5310. done
  5311. done
  5312. IFS=$as_save_IFS
  5313. fi
  5314. fi
  5315. OBJDUMP=$ac_cv_prog_OBJDUMP
  5316. if test -n "$OBJDUMP"; then
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5318. $as_echo "$OBJDUMP" >&6; }
  5319. else
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5321. $as_echo "no" >&6; }
  5322. fi
  5323. fi
  5324. if test -z "$ac_cv_prog_OBJDUMP"; then
  5325. ac_ct_OBJDUMP=$OBJDUMP
  5326. # Extract the first word of "objdump", so it can be a program name with args.
  5327. set dummy objdump; ac_word=$2
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5329. $as_echo_n "checking for $ac_word... " >&6; }
  5330. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5331. $as_echo_n "(cached) " >&6
  5332. else
  5333. if test -n "$ac_ct_OBJDUMP"; then
  5334. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5335. else
  5336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5337. for as_dir in $PATH
  5338. do
  5339. IFS=$as_save_IFS
  5340. test -z "$as_dir" && as_dir=.
  5341. for ac_exec_ext in '' $ac_executable_extensions; do
  5342. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5343. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5345. break 2
  5346. fi
  5347. done
  5348. done
  5349. IFS=$as_save_IFS
  5350. fi
  5351. fi
  5352. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5353. if test -n "$ac_ct_OBJDUMP"; then
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5355. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5356. else
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5358. $as_echo "no" >&6; }
  5359. fi
  5360. if test "x$ac_ct_OBJDUMP" = x; then
  5361. OBJDUMP="false"
  5362. else
  5363. case $cross_compiling:$ac_tool_warned in
  5364. yes:)
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5366. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5367. ac_tool_warned=yes ;;
  5368. esac
  5369. OBJDUMP=$ac_ct_OBJDUMP
  5370. fi
  5371. else
  5372. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5373. fi
  5374. test -z "$OBJDUMP" && OBJDUMP=objdump
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5376. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5377. if ${lt_cv_deplibs_check_method+:} false; then :
  5378. $as_echo_n "(cached) " >&6
  5379. else
  5380. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5381. lt_cv_file_magic_test_file=
  5382. lt_cv_deplibs_check_method='unknown'
  5383. # Need to set the preceding variable on all platforms that support
  5384. # interlibrary dependencies.
  5385. # 'none' -- dependencies not supported.
  5386. # 'unknown' -- same as none, but documents that we really don't know.
  5387. # 'pass_all' -- all dependencies passed with no checks.
  5388. # 'test_compile' -- check by making test program.
  5389. # 'file_magic [[regex]]' -- check by looking for files in library path
  5390. # that responds to the $file_magic_cmd with a given extended regex.
  5391. # If you have 'file' or equivalent on your system and you're not sure
  5392. # whether 'pass_all' will *always* work, you probably want this one.
  5393. case $host_os in
  5394. aix[4-9]*)
  5395. lt_cv_deplibs_check_method=pass_all
  5396. ;;
  5397. beos*)
  5398. lt_cv_deplibs_check_method=pass_all
  5399. ;;
  5400. bsdi[45]*)
  5401. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5402. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5403. lt_cv_file_magic_test_file=/shlib/libc.so
  5404. ;;
  5405. cygwin*)
  5406. # func_win32_libid is a shell function defined in ltmain.sh
  5407. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5408. lt_cv_file_magic_cmd='func_win32_libid'
  5409. ;;
  5410. mingw* | pw32*)
  5411. # Base MSYS/MinGW do not provide the 'file' command needed by
  5412. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5413. # unless we find 'file', for example because we are cross-compiling.
  5414. if ( file / ) >/dev/null 2>&1; then
  5415. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5416. lt_cv_file_magic_cmd='func_win32_libid'
  5417. else
  5418. # Keep this pattern in sync with the one in func_win32_libid.
  5419. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5420. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5421. fi
  5422. ;;
  5423. cegcc*)
  5424. # use the weaker test based on 'objdump'. See mingw*.
  5425. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5426. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5427. ;;
  5428. darwin* | rhapsody*)
  5429. lt_cv_deplibs_check_method=pass_all
  5430. ;;
  5431. freebsd* | dragonfly*)
  5432. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5433. case $host_cpu in
  5434. i*86 )
  5435. # Not sure whether the presence of OpenBSD here was a mistake.
  5436. # Let's accept both of them until this is cleared up.
  5437. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5438. lt_cv_file_magic_cmd=/usr/bin/file
  5439. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5440. ;;
  5441. esac
  5442. else
  5443. lt_cv_deplibs_check_method=pass_all
  5444. fi
  5445. ;;
  5446. haiku*)
  5447. lt_cv_deplibs_check_method=pass_all
  5448. ;;
  5449. hpux10.20* | hpux11*)
  5450. lt_cv_file_magic_cmd=/usr/bin/file
  5451. case $host_cpu in
  5452. ia64*)
  5453. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5454. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5455. ;;
  5456. hppa*64*)
  5457. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5458. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5459. ;;
  5460. *)
  5461. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5462. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5463. ;;
  5464. esac
  5465. ;;
  5466. interix[3-9]*)
  5467. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5468. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5469. ;;
  5470. irix5* | irix6* | nonstopux*)
  5471. case $LD in
  5472. *-32|*"-32 ") libmagic=32-bit;;
  5473. *-n32|*"-n32 ") libmagic=N32;;
  5474. *-64|*"-64 ") libmagic=64-bit;;
  5475. *) libmagic=never-match;;
  5476. esac
  5477. lt_cv_deplibs_check_method=pass_all
  5478. ;;
  5479. # This must be glibc/ELF.
  5480. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5481. lt_cv_deplibs_check_method=pass_all
  5482. ;;
  5483. netbsd* | netbsdelf*-gnu)
  5484. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5485. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5486. else
  5487. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5488. fi
  5489. ;;
  5490. newos6*)
  5491. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5492. lt_cv_file_magic_cmd=/usr/bin/file
  5493. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5494. ;;
  5495. *nto* | *qnx*)
  5496. lt_cv_deplibs_check_method=pass_all
  5497. ;;
  5498. openbsd* | bitrig*)
  5499. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5500. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5501. else
  5502. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5503. fi
  5504. ;;
  5505. osf3* | osf4* | osf5*)
  5506. lt_cv_deplibs_check_method=pass_all
  5507. ;;
  5508. rdos*)
  5509. lt_cv_deplibs_check_method=pass_all
  5510. ;;
  5511. solaris*)
  5512. lt_cv_deplibs_check_method=pass_all
  5513. ;;
  5514. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5515. lt_cv_deplibs_check_method=pass_all
  5516. ;;
  5517. sysv4 | sysv4.3*)
  5518. case $host_vendor in
  5519. motorola)
  5520. 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]'
  5521. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5522. ;;
  5523. ncr)
  5524. lt_cv_deplibs_check_method=pass_all
  5525. ;;
  5526. sequent)
  5527. lt_cv_file_magic_cmd='/bin/file'
  5528. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5529. ;;
  5530. sni)
  5531. lt_cv_file_magic_cmd='/bin/file'
  5532. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5533. lt_cv_file_magic_test_file=/lib/libc.so
  5534. ;;
  5535. siemens)
  5536. lt_cv_deplibs_check_method=pass_all
  5537. ;;
  5538. pc)
  5539. lt_cv_deplibs_check_method=pass_all
  5540. ;;
  5541. esac
  5542. ;;
  5543. tpf*)
  5544. lt_cv_deplibs_check_method=pass_all
  5545. ;;
  5546. os2*)
  5547. lt_cv_deplibs_check_method=pass_all
  5548. ;;
  5549. esac
  5550. fi
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5552. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5553. file_magic_glob=
  5554. want_nocaseglob=no
  5555. if test "$build" = "$host"; then
  5556. case $host_os in
  5557. mingw* | pw32*)
  5558. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5559. want_nocaseglob=yes
  5560. else
  5561. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5562. fi
  5563. ;;
  5564. esac
  5565. fi
  5566. file_magic_cmd=$lt_cv_file_magic_cmd
  5567. deplibs_check_method=$lt_cv_deplibs_check_method
  5568. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5569. if test -n "$ac_tool_prefix"; then
  5570. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5571. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5573. $as_echo_n "checking for $ac_word... " >&6; }
  5574. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5575. $as_echo_n "(cached) " >&6
  5576. else
  5577. if test -n "$DLLTOOL"; then
  5578. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5579. else
  5580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5581. for as_dir in $PATH
  5582. do
  5583. IFS=$as_save_IFS
  5584. test -z "$as_dir" && as_dir=.
  5585. for ac_exec_ext in '' $ac_executable_extensions; do
  5586. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5587. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5588. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5589. break 2
  5590. fi
  5591. done
  5592. done
  5593. IFS=$as_save_IFS
  5594. fi
  5595. fi
  5596. DLLTOOL=$ac_cv_prog_DLLTOOL
  5597. if test -n "$DLLTOOL"; then
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5599. $as_echo "$DLLTOOL" >&6; }
  5600. else
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5602. $as_echo "no" >&6; }
  5603. fi
  5604. fi
  5605. if test -z "$ac_cv_prog_DLLTOOL"; then
  5606. ac_ct_DLLTOOL=$DLLTOOL
  5607. # Extract the first word of "dlltool", so it can be a program name with args.
  5608. set dummy dlltool; ac_word=$2
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5610. $as_echo_n "checking for $ac_word... " >&6; }
  5611. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5612. $as_echo_n "(cached) " >&6
  5613. else
  5614. if test -n "$ac_ct_DLLTOOL"; then
  5615. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5616. else
  5617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5618. for as_dir in $PATH
  5619. do
  5620. IFS=$as_save_IFS
  5621. test -z "$as_dir" && as_dir=.
  5622. for ac_exec_ext in '' $ac_executable_extensions; do
  5623. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5624. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5626. break 2
  5627. fi
  5628. done
  5629. done
  5630. IFS=$as_save_IFS
  5631. fi
  5632. fi
  5633. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5634. if test -n "$ac_ct_DLLTOOL"; then
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5636. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5637. else
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5639. $as_echo "no" >&6; }
  5640. fi
  5641. if test "x$ac_ct_DLLTOOL" = x; then
  5642. DLLTOOL="false"
  5643. else
  5644. case $cross_compiling:$ac_tool_warned in
  5645. yes:)
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5647. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5648. ac_tool_warned=yes ;;
  5649. esac
  5650. DLLTOOL=$ac_ct_DLLTOOL
  5651. fi
  5652. else
  5653. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5654. fi
  5655. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5657. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5658. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5659. $as_echo_n "(cached) " >&6
  5660. else
  5661. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5662. case $host_os in
  5663. cygwin* | mingw* | pw32* | cegcc*)
  5664. # two different shell functions defined in ltmain.sh;
  5665. # decide which one to use based on capabilities of $DLLTOOL
  5666. case `$DLLTOOL --help 2>&1` in
  5667. *--identify-strict*)
  5668. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5669. ;;
  5670. *)
  5671. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5672. ;;
  5673. esac
  5674. ;;
  5675. *)
  5676. # fallback: assume linklib IS sharedlib
  5677. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5678. ;;
  5679. esac
  5680. fi
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5682. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5683. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5684. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5685. if test -n "$ac_tool_prefix"; then
  5686. for ac_prog in ar
  5687. do
  5688. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5689. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5691. $as_echo_n "checking for $ac_word... " >&6; }
  5692. if ${ac_cv_prog_AR+:} false; then :
  5693. $as_echo_n "(cached) " >&6
  5694. else
  5695. if test -n "$AR"; then
  5696. ac_cv_prog_AR="$AR" # Let the user override the test.
  5697. else
  5698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5699. for as_dir in $PATH
  5700. do
  5701. IFS=$as_save_IFS
  5702. test -z "$as_dir" && as_dir=.
  5703. for ac_exec_ext in '' $ac_executable_extensions; do
  5704. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5705. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5707. break 2
  5708. fi
  5709. done
  5710. done
  5711. IFS=$as_save_IFS
  5712. fi
  5713. fi
  5714. AR=$ac_cv_prog_AR
  5715. if test -n "$AR"; then
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5717. $as_echo "$AR" >&6; }
  5718. else
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5720. $as_echo "no" >&6; }
  5721. fi
  5722. test -n "$AR" && break
  5723. done
  5724. fi
  5725. if test -z "$AR"; then
  5726. ac_ct_AR=$AR
  5727. for ac_prog in ar
  5728. do
  5729. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5730. set dummy $ac_prog; ac_word=$2
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5732. $as_echo_n "checking for $ac_word... " >&6; }
  5733. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5734. $as_echo_n "(cached) " >&6
  5735. else
  5736. if test -n "$ac_ct_AR"; then
  5737. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5738. else
  5739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5740. for as_dir in $PATH
  5741. do
  5742. IFS=$as_save_IFS
  5743. test -z "$as_dir" && as_dir=.
  5744. for ac_exec_ext in '' $ac_executable_extensions; do
  5745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5746. ac_cv_prog_ac_ct_AR="$ac_prog"
  5747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5748. break 2
  5749. fi
  5750. done
  5751. done
  5752. IFS=$as_save_IFS
  5753. fi
  5754. fi
  5755. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5756. if test -n "$ac_ct_AR"; then
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5758. $as_echo "$ac_ct_AR" >&6; }
  5759. else
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5761. $as_echo "no" >&6; }
  5762. fi
  5763. test -n "$ac_ct_AR" && break
  5764. done
  5765. if test "x$ac_ct_AR" = x; then
  5766. AR="false"
  5767. else
  5768. case $cross_compiling:$ac_tool_warned in
  5769. yes:)
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5771. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5772. ac_tool_warned=yes ;;
  5773. esac
  5774. AR=$ac_ct_AR
  5775. fi
  5776. fi
  5777. : ${AR=ar}
  5778. : ${AR_FLAGS=cru}
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5780. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5781. if ${lt_cv_ar_at_file+:} false; then :
  5782. $as_echo_n "(cached) " >&6
  5783. else
  5784. lt_cv_ar_at_file=no
  5785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5786. /* end confdefs.h. */
  5787. int
  5788. main ()
  5789. {
  5790. ;
  5791. return 0;
  5792. }
  5793. _ACEOF
  5794. if ac_fn_c_try_compile "$LINENO"; then :
  5795. echo conftest.$ac_objext > conftest.lst
  5796. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5797. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5798. (eval $lt_ar_try) 2>&5
  5799. ac_status=$?
  5800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5801. test $ac_status = 0; }
  5802. if test 0 -eq "$ac_status"; then
  5803. # Ensure the archiver fails upon bogus file names.
  5804. rm -f conftest.$ac_objext libconftest.a
  5805. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5806. (eval $lt_ar_try) 2>&5
  5807. ac_status=$?
  5808. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5809. test $ac_status = 0; }
  5810. if test 0 -ne "$ac_status"; then
  5811. lt_cv_ar_at_file=@
  5812. fi
  5813. fi
  5814. rm -f conftest.* libconftest.a
  5815. fi
  5816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5817. fi
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5819. $as_echo "$lt_cv_ar_at_file" >&6; }
  5820. if test no = "$lt_cv_ar_at_file"; then
  5821. archiver_list_spec=
  5822. else
  5823. archiver_list_spec=$lt_cv_ar_at_file
  5824. fi
  5825. if test -n "$ac_tool_prefix"; then
  5826. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5827. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5829. $as_echo_n "checking for $ac_word... " >&6; }
  5830. if ${ac_cv_prog_STRIP+:} false; then :
  5831. $as_echo_n "(cached) " >&6
  5832. else
  5833. if test -n "$STRIP"; then
  5834. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5835. else
  5836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5837. for as_dir in $PATH
  5838. do
  5839. IFS=$as_save_IFS
  5840. test -z "$as_dir" && as_dir=.
  5841. for ac_exec_ext in '' $ac_executable_extensions; do
  5842. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5843. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5845. break 2
  5846. fi
  5847. done
  5848. done
  5849. IFS=$as_save_IFS
  5850. fi
  5851. fi
  5852. STRIP=$ac_cv_prog_STRIP
  5853. if test -n "$STRIP"; then
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5855. $as_echo "$STRIP" >&6; }
  5856. else
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5858. $as_echo "no" >&6; }
  5859. fi
  5860. fi
  5861. if test -z "$ac_cv_prog_STRIP"; then
  5862. ac_ct_STRIP=$STRIP
  5863. # Extract the first word of "strip", so it can be a program name with args.
  5864. set dummy strip; ac_word=$2
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5866. $as_echo_n "checking for $ac_word... " >&6; }
  5867. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. if test -n "$ac_ct_STRIP"; then
  5871. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5872. else
  5873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5874. for as_dir in $PATH
  5875. do
  5876. IFS=$as_save_IFS
  5877. test -z "$as_dir" && as_dir=.
  5878. for ac_exec_ext in '' $ac_executable_extensions; do
  5879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5880. ac_cv_prog_ac_ct_STRIP="strip"
  5881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5882. break 2
  5883. fi
  5884. done
  5885. done
  5886. IFS=$as_save_IFS
  5887. fi
  5888. fi
  5889. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5890. if test -n "$ac_ct_STRIP"; then
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5892. $as_echo "$ac_ct_STRIP" >&6; }
  5893. else
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5895. $as_echo "no" >&6; }
  5896. fi
  5897. if test "x$ac_ct_STRIP" = x; then
  5898. STRIP=":"
  5899. else
  5900. case $cross_compiling:$ac_tool_warned in
  5901. yes:)
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5903. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5904. ac_tool_warned=yes ;;
  5905. esac
  5906. STRIP=$ac_ct_STRIP
  5907. fi
  5908. else
  5909. STRIP="$ac_cv_prog_STRIP"
  5910. fi
  5911. test -z "$STRIP" && STRIP=:
  5912. if test -n "$ac_tool_prefix"; then
  5913. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5914. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5916. $as_echo_n "checking for $ac_word... " >&6; }
  5917. if ${ac_cv_prog_RANLIB+:} false; then :
  5918. $as_echo_n "(cached) " >&6
  5919. else
  5920. if test -n "$RANLIB"; then
  5921. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5922. else
  5923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5924. for as_dir in $PATH
  5925. do
  5926. IFS=$as_save_IFS
  5927. test -z "$as_dir" && as_dir=.
  5928. for ac_exec_ext in '' $ac_executable_extensions; do
  5929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5930. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5932. break 2
  5933. fi
  5934. done
  5935. done
  5936. IFS=$as_save_IFS
  5937. fi
  5938. fi
  5939. RANLIB=$ac_cv_prog_RANLIB
  5940. if test -n "$RANLIB"; then
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5942. $as_echo "$RANLIB" >&6; }
  5943. else
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5945. $as_echo "no" >&6; }
  5946. fi
  5947. fi
  5948. if test -z "$ac_cv_prog_RANLIB"; then
  5949. ac_ct_RANLIB=$RANLIB
  5950. # Extract the first word of "ranlib", so it can be a program name with args.
  5951. set dummy ranlib; ac_word=$2
  5952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5953. $as_echo_n "checking for $ac_word... " >&6; }
  5954. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5955. $as_echo_n "(cached) " >&6
  5956. else
  5957. if test -n "$ac_ct_RANLIB"; then
  5958. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5959. else
  5960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5961. for as_dir in $PATH
  5962. do
  5963. IFS=$as_save_IFS
  5964. test -z "$as_dir" && as_dir=.
  5965. for ac_exec_ext in '' $ac_executable_extensions; do
  5966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5967. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5969. break 2
  5970. fi
  5971. done
  5972. done
  5973. IFS=$as_save_IFS
  5974. fi
  5975. fi
  5976. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5977. if test -n "$ac_ct_RANLIB"; then
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5979. $as_echo "$ac_ct_RANLIB" >&6; }
  5980. else
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5982. $as_echo "no" >&6; }
  5983. fi
  5984. if test "x$ac_ct_RANLIB" = x; then
  5985. RANLIB=":"
  5986. else
  5987. case $cross_compiling:$ac_tool_warned in
  5988. yes:)
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5990. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5991. ac_tool_warned=yes ;;
  5992. esac
  5993. RANLIB=$ac_ct_RANLIB
  5994. fi
  5995. else
  5996. RANLIB="$ac_cv_prog_RANLIB"
  5997. fi
  5998. test -z "$RANLIB" && RANLIB=:
  5999. # Determine commands to create old-style static archives.
  6000. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6001. old_postinstall_cmds='chmod 644 $oldlib'
  6002. old_postuninstall_cmds=
  6003. if test -n "$RANLIB"; then
  6004. case $host_os in
  6005. bitrig* | openbsd*)
  6006. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6007. ;;
  6008. *)
  6009. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6010. ;;
  6011. esac
  6012. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6013. fi
  6014. case $host_os in
  6015. darwin*)
  6016. lock_old_archive_extraction=yes ;;
  6017. *)
  6018. lock_old_archive_extraction=no ;;
  6019. esac
  6020. # If no C compiler was specified, use CC.
  6021. LTCC=${LTCC-"$CC"}
  6022. # If no C compiler flags were specified, use CFLAGS.
  6023. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6024. # Allow CC to be a program name with arguments.
  6025. compiler=$CC
  6026. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6028. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6029. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6030. $as_echo_n "(cached) " >&6
  6031. else
  6032. # These are sane defaults that work on at least a few old systems.
  6033. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6034. # Character class describing NM global symbol codes.
  6035. symcode='[BCDEGRST]'
  6036. # Regexp to match symbols that can be accessed directly from C.
  6037. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6038. # Define system-specific variables.
  6039. case $host_os in
  6040. aix*)
  6041. symcode='[BCDT]'
  6042. ;;
  6043. cygwin* | mingw* | pw32* | cegcc*)
  6044. symcode='[ABCDGISTW]'
  6045. ;;
  6046. hpux*)
  6047. if test ia64 = "$host_cpu"; then
  6048. symcode='[ABCDEGRST]'
  6049. fi
  6050. ;;
  6051. irix* | nonstopux*)
  6052. symcode='[BCDEGRST]'
  6053. ;;
  6054. osf*)
  6055. symcode='[BCDEGQRST]'
  6056. ;;
  6057. solaris*)
  6058. symcode='[BDRT]'
  6059. ;;
  6060. sco3.2v5*)
  6061. symcode='[DT]'
  6062. ;;
  6063. sysv4.2uw2*)
  6064. symcode='[DT]'
  6065. ;;
  6066. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6067. symcode='[ABDT]'
  6068. ;;
  6069. sysv4)
  6070. symcode='[DFNSTU]'
  6071. ;;
  6072. esac
  6073. # If we're using GNU nm, then use its standard symbol codes.
  6074. case `$NM -V 2>&1` in
  6075. *GNU* | *'with BFD'*)
  6076. symcode='[ABCDGIRSTW]' ;;
  6077. esac
  6078. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6079. # Gets list of data symbols to import.
  6080. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6081. # Adjust the below global symbol transforms to fixup imported variables.
  6082. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6083. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6084. lt_c_name_lib_hook="\
  6085. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6086. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6087. else
  6088. # Disable hooks by default.
  6089. lt_cv_sys_global_symbol_to_import=
  6090. lt_cdecl_hook=
  6091. lt_c_name_hook=
  6092. lt_c_name_lib_hook=
  6093. fi
  6094. # Transform an extracted symbol line into a proper C declaration.
  6095. # Some systems (esp. on ia64) link data and code symbols differently,
  6096. # so use this general approach.
  6097. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6098. $lt_cdecl_hook\
  6099. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6100. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6101. # Transform an extracted symbol line into symbol name and symbol address
  6102. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6103. $lt_c_name_hook\
  6104. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6105. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6106. # Transform an extracted symbol line into symbol name with lib prefix and
  6107. # symbol address.
  6108. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6109. $lt_c_name_lib_hook\
  6110. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6111. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6112. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6113. # Handle CRLF in mingw tool chain
  6114. opt_cr=
  6115. case $build_os in
  6116. mingw*)
  6117. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6118. ;;
  6119. esac
  6120. # Try without a prefix underscore, then with it.
  6121. for ac_symprfx in "" "_"; do
  6122. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6123. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6124. # Write the raw and C identifiers.
  6125. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6126. # Fake it for dumpbin and say T for any non-static function,
  6127. # D for any global variable and I for any imported variable.
  6128. # Also find C++ and __fastcall symbols from MSVC++,
  6129. # which start with @ or ?.
  6130. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6131. " {last_section=section; section=\$ 3};"\
  6132. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6133. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6134. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6135. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6136. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6137. " \$ 0!~/External *\|/{next};"\
  6138. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6139. " {if(hide[section]) next};"\
  6140. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6141. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6142. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6143. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6144. " ' prfx=^$ac_symprfx"
  6145. else
  6146. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6147. fi
  6148. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6149. # Check to see that the pipe works correctly.
  6150. pipe_works=no
  6151. rm -f conftest*
  6152. cat > conftest.$ac_ext <<_LT_EOF
  6153. #ifdef __cplusplus
  6154. extern "C" {
  6155. #endif
  6156. char nm_test_var;
  6157. void nm_test_func(void);
  6158. void nm_test_func(void){}
  6159. #ifdef __cplusplus
  6160. }
  6161. #endif
  6162. int main(){nm_test_var='a';nm_test_func();return(0);}
  6163. _LT_EOF
  6164. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6165. (eval $ac_compile) 2>&5
  6166. ac_status=$?
  6167. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6168. test $ac_status = 0; }; then
  6169. # Now try to grab the symbols.
  6170. nlist=conftest.nm
  6171. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6172. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6173. ac_status=$?
  6174. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6175. test $ac_status = 0; } && test -s "$nlist"; then
  6176. # Try sorting and uniquifying the output.
  6177. if sort "$nlist" | uniq > "$nlist"T; then
  6178. mv -f "$nlist"T "$nlist"
  6179. else
  6180. rm -f "$nlist"T
  6181. fi
  6182. # Make sure that we snagged all the symbols we need.
  6183. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6184. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6185. cat <<_LT_EOF > conftest.$ac_ext
  6186. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6187. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6188. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6189. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6190. # define LT_DLSYM_CONST
  6191. #elif defined __osf__
  6192. /* This system does not cope well with relocations in const data. */
  6193. # define LT_DLSYM_CONST
  6194. #else
  6195. # define LT_DLSYM_CONST const
  6196. #endif
  6197. #ifdef __cplusplus
  6198. extern "C" {
  6199. #endif
  6200. _LT_EOF
  6201. # Now generate the symbol file.
  6202. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6203. cat <<_LT_EOF >> conftest.$ac_ext
  6204. /* The mapping between symbol names and symbols. */
  6205. LT_DLSYM_CONST struct {
  6206. const char *name;
  6207. void *address;
  6208. }
  6209. lt__PROGRAM__LTX_preloaded_symbols[] =
  6210. {
  6211. { "@PROGRAM@", (void *) 0 },
  6212. _LT_EOF
  6213. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6214. cat <<\_LT_EOF >> conftest.$ac_ext
  6215. {0, (void *) 0}
  6216. };
  6217. /* This works around a problem in FreeBSD linker */
  6218. #ifdef FREEBSD_WORKAROUND
  6219. static const void *lt_preloaded_setup() {
  6220. return lt__PROGRAM__LTX_preloaded_symbols;
  6221. }
  6222. #endif
  6223. #ifdef __cplusplus
  6224. }
  6225. #endif
  6226. _LT_EOF
  6227. # Now try linking the two files.
  6228. mv conftest.$ac_objext conftstm.$ac_objext
  6229. lt_globsym_save_LIBS=$LIBS
  6230. lt_globsym_save_CFLAGS=$CFLAGS
  6231. LIBS=conftstm.$ac_objext
  6232. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6233. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6234. (eval $ac_link) 2>&5
  6235. ac_status=$?
  6236. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6237. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6238. pipe_works=yes
  6239. fi
  6240. LIBS=$lt_globsym_save_LIBS
  6241. CFLAGS=$lt_globsym_save_CFLAGS
  6242. else
  6243. echo "cannot find nm_test_func in $nlist" >&5
  6244. fi
  6245. else
  6246. echo "cannot find nm_test_var in $nlist" >&5
  6247. fi
  6248. else
  6249. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6250. fi
  6251. else
  6252. echo "$progname: failed program was:" >&5
  6253. cat conftest.$ac_ext >&5
  6254. fi
  6255. rm -rf conftest* conftst*
  6256. # Do not use the global_symbol_pipe unless it works.
  6257. if test yes = "$pipe_works"; then
  6258. break
  6259. else
  6260. lt_cv_sys_global_symbol_pipe=
  6261. fi
  6262. done
  6263. fi
  6264. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6265. lt_cv_sys_global_symbol_to_cdecl=
  6266. fi
  6267. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6269. $as_echo "failed" >&6; }
  6270. else
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6272. $as_echo "ok" >&6; }
  6273. fi
  6274. # Response file support.
  6275. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6276. nm_file_list_spec='@'
  6277. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6278. nm_file_list_spec='@'
  6279. fi
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6281. $as_echo_n "checking for sysroot... " >&6; }
  6282. # Check whether --with-sysroot was given.
  6283. if test "${with_sysroot+set}" = set; then :
  6284. withval=$with_sysroot;
  6285. else
  6286. with_sysroot=no
  6287. fi
  6288. lt_sysroot=
  6289. case $with_sysroot in #(
  6290. yes)
  6291. if test yes = "$GCC"; then
  6292. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6293. fi
  6294. ;; #(
  6295. /*)
  6296. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6297. ;; #(
  6298. no|'')
  6299. ;; #(
  6300. *)
  6301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6302. $as_echo "$with_sysroot" >&6; }
  6303. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6304. ;;
  6305. esac
  6306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6307. $as_echo "${lt_sysroot:-no}" >&6; }
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6309. $as_echo_n "checking for a working dd... " >&6; }
  6310. if ${ac_cv_path_lt_DD+:} false; then :
  6311. $as_echo_n "(cached) " >&6
  6312. else
  6313. printf 0123456789abcdef0123456789abcdef >conftest.i
  6314. cat conftest.i conftest.i >conftest2.i
  6315. : ${lt_DD:=$DD}
  6316. if test -z "$lt_DD"; then
  6317. ac_path_lt_DD_found=false
  6318. # Loop through the user's path and test for each of PROGNAME-LIST
  6319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6320. for as_dir in $PATH
  6321. do
  6322. IFS=$as_save_IFS
  6323. test -z "$as_dir" && as_dir=.
  6324. for ac_prog in dd; do
  6325. for ac_exec_ext in '' $ac_executable_extensions; do
  6326. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6327. as_fn_executable_p "$ac_path_lt_DD" || continue
  6328. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6329. cmp -s conftest.i conftest.out \
  6330. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6331. fi
  6332. $ac_path_lt_DD_found && break 3
  6333. done
  6334. done
  6335. done
  6336. IFS=$as_save_IFS
  6337. if test -z "$ac_cv_path_lt_DD"; then
  6338. :
  6339. fi
  6340. else
  6341. ac_cv_path_lt_DD=$lt_DD
  6342. fi
  6343. rm -f conftest.i conftest2.i conftest.out
  6344. fi
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6346. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6348. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6349. if ${lt_cv_truncate_bin+:} false; then :
  6350. $as_echo_n "(cached) " >&6
  6351. else
  6352. printf 0123456789abcdef0123456789abcdef >conftest.i
  6353. cat conftest.i conftest.i >conftest2.i
  6354. lt_cv_truncate_bin=
  6355. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6356. cmp -s conftest.i conftest.out \
  6357. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6358. fi
  6359. rm -f conftest.i conftest2.i conftest.out
  6360. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6361. fi
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6363. $as_echo "$lt_cv_truncate_bin" >&6; }
  6364. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6365. func_cc_basename ()
  6366. {
  6367. for cc_temp in $*""; do
  6368. case $cc_temp in
  6369. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6370. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6371. \-*) ;;
  6372. *) break;;
  6373. esac
  6374. done
  6375. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6376. }
  6377. # Check whether --enable-libtool-lock was given.
  6378. if test "${enable_libtool_lock+set}" = set; then :
  6379. enableval=$enable_libtool_lock;
  6380. fi
  6381. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6382. # Some flags need to be propagated to the compiler or linker for good
  6383. # libtool support.
  6384. case $host in
  6385. ia64-*-hpux*)
  6386. # Find out what ABI is being produced by ac_compile, and set mode
  6387. # options accordingly.
  6388. echo 'int i;' > conftest.$ac_ext
  6389. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6390. (eval $ac_compile) 2>&5
  6391. ac_status=$?
  6392. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6393. test $ac_status = 0; }; then
  6394. case `/usr/bin/file conftest.$ac_objext` in
  6395. *ELF-32*)
  6396. HPUX_IA64_MODE=32
  6397. ;;
  6398. *ELF-64*)
  6399. HPUX_IA64_MODE=64
  6400. ;;
  6401. esac
  6402. fi
  6403. rm -rf conftest*
  6404. ;;
  6405. *-*-irix6*)
  6406. # Find out what ABI is being produced by ac_compile, and set linker
  6407. # options accordingly.
  6408. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6409. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6410. (eval $ac_compile) 2>&5
  6411. ac_status=$?
  6412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6413. test $ac_status = 0; }; then
  6414. if test yes = "$lt_cv_prog_gnu_ld"; then
  6415. case `/usr/bin/file conftest.$ac_objext` in
  6416. *32-bit*)
  6417. LD="${LD-ld} -melf32bsmip"
  6418. ;;
  6419. *N32*)
  6420. LD="${LD-ld} -melf32bmipn32"
  6421. ;;
  6422. *64-bit*)
  6423. LD="${LD-ld} -melf64bmip"
  6424. ;;
  6425. esac
  6426. else
  6427. case `/usr/bin/file conftest.$ac_objext` in
  6428. *32-bit*)
  6429. LD="${LD-ld} -32"
  6430. ;;
  6431. *N32*)
  6432. LD="${LD-ld} -n32"
  6433. ;;
  6434. *64-bit*)
  6435. LD="${LD-ld} -64"
  6436. ;;
  6437. esac
  6438. fi
  6439. fi
  6440. rm -rf conftest*
  6441. ;;
  6442. mips64*-*linux*)
  6443. # Find out what ABI is being produced by ac_compile, and set linker
  6444. # options accordingly.
  6445. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6446. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6447. (eval $ac_compile) 2>&5
  6448. ac_status=$?
  6449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6450. test $ac_status = 0; }; then
  6451. emul=elf
  6452. case `/usr/bin/file conftest.$ac_objext` in
  6453. *32-bit*)
  6454. emul="${emul}32"
  6455. ;;
  6456. *64-bit*)
  6457. emul="${emul}64"
  6458. ;;
  6459. esac
  6460. case `/usr/bin/file conftest.$ac_objext` in
  6461. *MSB*)
  6462. emul="${emul}btsmip"
  6463. ;;
  6464. *LSB*)
  6465. emul="${emul}ltsmip"
  6466. ;;
  6467. esac
  6468. case `/usr/bin/file conftest.$ac_objext` in
  6469. *N32*)
  6470. emul="${emul}n32"
  6471. ;;
  6472. esac
  6473. LD="${LD-ld} -m $emul"
  6474. fi
  6475. rm -rf conftest*
  6476. ;;
  6477. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6478. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6479. # Find out what ABI is being produced by ac_compile, and set linker
  6480. # options accordingly. Note that the listed cases only cover the
  6481. # situations where additional linker options are needed (such as when
  6482. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6483. # vice versa); the common cases where no linker options are needed do
  6484. # not appear in the list.
  6485. echo 'int i;' > conftest.$ac_ext
  6486. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6487. (eval $ac_compile) 2>&5
  6488. ac_status=$?
  6489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6490. test $ac_status = 0; }; then
  6491. case `/usr/bin/file conftest.o` in
  6492. *32-bit*)
  6493. case $host in
  6494. x86_64-*kfreebsd*-gnu)
  6495. LD="${LD-ld} -m elf_i386_fbsd"
  6496. ;;
  6497. x86_64-*linux*)
  6498. case `/usr/bin/file conftest.o` in
  6499. *x86-64*)
  6500. LD="${LD-ld} -m elf32_x86_64"
  6501. ;;
  6502. *)
  6503. LD="${LD-ld} -m elf_i386"
  6504. ;;
  6505. esac
  6506. ;;
  6507. powerpc64le-*linux*)
  6508. LD="${LD-ld} -m elf32lppclinux"
  6509. ;;
  6510. powerpc64-*linux*)
  6511. LD="${LD-ld} -m elf32ppclinux"
  6512. ;;
  6513. s390x-*linux*)
  6514. LD="${LD-ld} -m elf_s390"
  6515. ;;
  6516. sparc64-*linux*)
  6517. LD="${LD-ld} -m elf32_sparc"
  6518. ;;
  6519. esac
  6520. ;;
  6521. *64-bit*)
  6522. case $host in
  6523. x86_64-*kfreebsd*-gnu)
  6524. LD="${LD-ld} -m elf_x86_64_fbsd"
  6525. ;;
  6526. x86_64-*linux*)
  6527. LD="${LD-ld} -m elf_x86_64"
  6528. ;;
  6529. powerpcle-*linux*)
  6530. LD="${LD-ld} -m elf64lppc"
  6531. ;;
  6532. powerpc-*linux*)
  6533. LD="${LD-ld} -m elf64ppc"
  6534. ;;
  6535. s390*-*linux*|s390*-*tpf*)
  6536. LD="${LD-ld} -m elf64_s390"
  6537. ;;
  6538. sparc*-*linux*)
  6539. LD="${LD-ld} -m elf64_sparc"
  6540. ;;
  6541. esac
  6542. ;;
  6543. esac
  6544. fi
  6545. rm -rf conftest*
  6546. ;;
  6547. *-*-sco3.2v5*)
  6548. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6549. SAVE_CFLAGS=$CFLAGS
  6550. CFLAGS="$CFLAGS -belf"
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6552. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6553. if ${lt_cv_cc_needs_belf+:} false; then :
  6554. $as_echo_n "(cached) " >&6
  6555. else
  6556. ac_ext=c
  6557. ac_cpp='$CPP $CPPFLAGS'
  6558. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6559. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6560. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6562. /* end confdefs.h. */
  6563. int
  6564. main ()
  6565. {
  6566. ;
  6567. return 0;
  6568. }
  6569. _ACEOF
  6570. if ac_fn_c_try_link "$LINENO"; then :
  6571. lt_cv_cc_needs_belf=yes
  6572. else
  6573. lt_cv_cc_needs_belf=no
  6574. fi
  6575. rm -f core conftest.err conftest.$ac_objext \
  6576. conftest$ac_exeext conftest.$ac_ext
  6577. ac_ext=c
  6578. ac_cpp='$CPP $CPPFLAGS'
  6579. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6580. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6581. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6582. fi
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6584. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6585. if test yes != "$lt_cv_cc_needs_belf"; then
  6586. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6587. CFLAGS=$SAVE_CFLAGS
  6588. fi
  6589. ;;
  6590. *-*solaris*)
  6591. # Find out what ABI is being produced by ac_compile, and set linker
  6592. # options accordingly.
  6593. echo 'int i;' > conftest.$ac_ext
  6594. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6595. (eval $ac_compile) 2>&5
  6596. ac_status=$?
  6597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6598. test $ac_status = 0; }; then
  6599. case `/usr/bin/file conftest.o` in
  6600. *64-bit*)
  6601. case $lt_cv_prog_gnu_ld in
  6602. yes*)
  6603. case $host in
  6604. i?86-*-solaris*|x86_64-*-solaris*)
  6605. LD="${LD-ld} -m elf_x86_64"
  6606. ;;
  6607. sparc*-*-solaris*)
  6608. LD="${LD-ld} -m elf64_sparc"
  6609. ;;
  6610. esac
  6611. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6612. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6613. LD=${LD-ld}_sol2
  6614. fi
  6615. ;;
  6616. *)
  6617. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6618. LD="${LD-ld} -64"
  6619. fi
  6620. ;;
  6621. esac
  6622. ;;
  6623. esac
  6624. fi
  6625. rm -rf conftest*
  6626. ;;
  6627. esac
  6628. need_locks=$enable_libtool_lock
  6629. if test -n "$ac_tool_prefix"; then
  6630. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6631. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6633. $as_echo_n "checking for $ac_word... " >&6; }
  6634. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6635. $as_echo_n "(cached) " >&6
  6636. else
  6637. if test -n "$MANIFEST_TOOL"; then
  6638. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6639. else
  6640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6641. for as_dir in $PATH
  6642. do
  6643. IFS=$as_save_IFS
  6644. test -z "$as_dir" && as_dir=.
  6645. for ac_exec_ext in '' $ac_executable_extensions; do
  6646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6647. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6649. break 2
  6650. fi
  6651. done
  6652. done
  6653. IFS=$as_save_IFS
  6654. fi
  6655. fi
  6656. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6657. if test -n "$MANIFEST_TOOL"; then
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6659. $as_echo "$MANIFEST_TOOL" >&6; }
  6660. else
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6662. $as_echo "no" >&6; }
  6663. fi
  6664. fi
  6665. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6666. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6667. # Extract the first word of "mt", so it can be a program name with args.
  6668. set dummy mt; ac_word=$2
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6670. $as_echo_n "checking for $ac_word... " >&6; }
  6671. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6672. $as_echo_n "(cached) " >&6
  6673. else
  6674. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6675. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6676. else
  6677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6678. for as_dir in $PATH
  6679. do
  6680. IFS=$as_save_IFS
  6681. test -z "$as_dir" && as_dir=.
  6682. for ac_exec_ext in '' $ac_executable_extensions; do
  6683. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6684. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6686. break 2
  6687. fi
  6688. done
  6689. done
  6690. IFS=$as_save_IFS
  6691. fi
  6692. fi
  6693. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6694. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6696. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6697. else
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6699. $as_echo "no" >&6; }
  6700. fi
  6701. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6702. MANIFEST_TOOL=":"
  6703. else
  6704. case $cross_compiling:$ac_tool_warned in
  6705. yes:)
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6707. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6708. ac_tool_warned=yes ;;
  6709. esac
  6710. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6711. fi
  6712. else
  6713. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6714. fi
  6715. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6717. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6718. if ${lt_cv_path_mainfest_tool+:} false; then :
  6719. $as_echo_n "(cached) " >&6
  6720. else
  6721. lt_cv_path_mainfest_tool=no
  6722. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6723. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6724. cat conftest.err >&5
  6725. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6726. lt_cv_path_mainfest_tool=yes
  6727. fi
  6728. rm -f conftest*
  6729. fi
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6731. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6732. if test yes != "$lt_cv_path_mainfest_tool"; then
  6733. MANIFEST_TOOL=:
  6734. fi
  6735. case $host_os in
  6736. rhapsody* | darwin*)
  6737. if test -n "$ac_tool_prefix"; then
  6738. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6739. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6741. $as_echo_n "checking for $ac_word... " >&6; }
  6742. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6743. $as_echo_n "(cached) " >&6
  6744. else
  6745. if test -n "$DSYMUTIL"; then
  6746. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6747. else
  6748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6749. for as_dir in $PATH
  6750. do
  6751. IFS=$as_save_IFS
  6752. test -z "$as_dir" && as_dir=.
  6753. for ac_exec_ext in '' $ac_executable_extensions; do
  6754. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6755. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6757. break 2
  6758. fi
  6759. done
  6760. done
  6761. IFS=$as_save_IFS
  6762. fi
  6763. fi
  6764. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6765. if test -n "$DSYMUTIL"; then
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6767. $as_echo "$DSYMUTIL" >&6; }
  6768. else
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6770. $as_echo "no" >&6; }
  6771. fi
  6772. fi
  6773. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6774. ac_ct_DSYMUTIL=$DSYMUTIL
  6775. # Extract the first word of "dsymutil", so it can be a program name with args.
  6776. set dummy dsymutil; ac_word=$2
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6778. $as_echo_n "checking for $ac_word... " >&6; }
  6779. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6780. $as_echo_n "(cached) " >&6
  6781. else
  6782. if test -n "$ac_ct_DSYMUTIL"; then
  6783. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6784. else
  6785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6786. for as_dir in $PATH
  6787. do
  6788. IFS=$as_save_IFS
  6789. test -z "$as_dir" && as_dir=.
  6790. for ac_exec_ext in '' $ac_executable_extensions; do
  6791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6792. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6794. break 2
  6795. fi
  6796. done
  6797. done
  6798. IFS=$as_save_IFS
  6799. fi
  6800. fi
  6801. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6802. if test -n "$ac_ct_DSYMUTIL"; then
  6803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6804. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6805. else
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6807. $as_echo "no" >&6; }
  6808. fi
  6809. if test "x$ac_ct_DSYMUTIL" = x; then
  6810. DSYMUTIL=":"
  6811. else
  6812. case $cross_compiling:$ac_tool_warned in
  6813. yes:)
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6815. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6816. ac_tool_warned=yes ;;
  6817. esac
  6818. DSYMUTIL=$ac_ct_DSYMUTIL
  6819. fi
  6820. else
  6821. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6822. fi
  6823. if test -n "$ac_tool_prefix"; then
  6824. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6825. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6827. $as_echo_n "checking for $ac_word... " >&6; }
  6828. if ${ac_cv_prog_NMEDIT+:} false; then :
  6829. $as_echo_n "(cached) " >&6
  6830. else
  6831. if test -n "$NMEDIT"; then
  6832. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6833. else
  6834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6835. for as_dir in $PATH
  6836. do
  6837. IFS=$as_save_IFS
  6838. test -z "$as_dir" && as_dir=.
  6839. for ac_exec_ext in '' $ac_executable_extensions; do
  6840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6841. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6843. break 2
  6844. fi
  6845. done
  6846. done
  6847. IFS=$as_save_IFS
  6848. fi
  6849. fi
  6850. NMEDIT=$ac_cv_prog_NMEDIT
  6851. if test -n "$NMEDIT"; then
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6853. $as_echo "$NMEDIT" >&6; }
  6854. else
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6856. $as_echo "no" >&6; }
  6857. fi
  6858. fi
  6859. if test -z "$ac_cv_prog_NMEDIT"; then
  6860. ac_ct_NMEDIT=$NMEDIT
  6861. # Extract the first word of "nmedit", so it can be a program name with args.
  6862. set dummy nmedit; ac_word=$2
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6864. $as_echo_n "checking for $ac_word... " >&6; }
  6865. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6866. $as_echo_n "(cached) " >&6
  6867. else
  6868. if test -n "$ac_ct_NMEDIT"; then
  6869. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6870. else
  6871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6872. for as_dir in $PATH
  6873. do
  6874. IFS=$as_save_IFS
  6875. test -z "$as_dir" && as_dir=.
  6876. for ac_exec_ext in '' $ac_executable_extensions; do
  6877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6878. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6880. break 2
  6881. fi
  6882. done
  6883. done
  6884. IFS=$as_save_IFS
  6885. fi
  6886. fi
  6887. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6888. if test -n "$ac_ct_NMEDIT"; then
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6890. $as_echo "$ac_ct_NMEDIT" >&6; }
  6891. else
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6893. $as_echo "no" >&6; }
  6894. fi
  6895. if test "x$ac_ct_NMEDIT" = x; then
  6896. NMEDIT=":"
  6897. else
  6898. case $cross_compiling:$ac_tool_warned in
  6899. yes:)
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6901. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6902. ac_tool_warned=yes ;;
  6903. esac
  6904. NMEDIT=$ac_ct_NMEDIT
  6905. fi
  6906. else
  6907. NMEDIT="$ac_cv_prog_NMEDIT"
  6908. fi
  6909. if test -n "$ac_tool_prefix"; then
  6910. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6911. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6913. $as_echo_n "checking for $ac_word... " >&6; }
  6914. if ${ac_cv_prog_LIPO+:} false; then :
  6915. $as_echo_n "(cached) " >&6
  6916. else
  6917. if test -n "$LIPO"; then
  6918. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6919. else
  6920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6921. for as_dir in $PATH
  6922. do
  6923. IFS=$as_save_IFS
  6924. test -z "$as_dir" && as_dir=.
  6925. for ac_exec_ext in '' $ac_executable_extensions; do
  6926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6927. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6929. break 2
  6930. fi
  6931. done
  6932. done
  6933. IFS=$as_save_IFS
  6934. fi
  6935. fi
  6936. LIPO=$ac_cv_prog_LIPO
  6937. if test -n "$LIPO"; then
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6939. $as_echo "$LIPO" >&6; }
  6940. else
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6942. $as_echo "no" >&6; }
  6943. fi
  6944. fi
  6945. if test -z "$ac_cv_prog_LIPO"; then
  6946. ac_ct_LIPO=$LIPO
  6947. # Extract the first word of "lipo", so it can be a program name with args.
  6948. set dummy lipo; ac_word=$2
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6950. $as_echo_n "checking for $ac_word... " >&6; }
  6951. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6952. $as_echo_n "(cached) " >&6
  6953. else
  6954. if test -n "$ac_ct_LIPO"; then
  6955. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6956. else
  6957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6958. for as_dir in $PATH
  6959. do
  6960. IFS=$as_save_IFS
  6961. test -z "$as_dir" && as_dir=.
  6962. for ac_exec_ext in '' $ac_executable_extensions; do
  6963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6964. ac_cv_prog_ac_ct_LIPO="lipo"
  6965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6966. break 2
  6967. fi
  6968. done
  6969. done
  6970. IFS=$as_save_IFS
  6971. fi
  6972. fi
  6973. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6974. if test -n "$ac_ct_LIPO"; then
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6976. $as_echo "$ac_ct_LIPO" >&6; }
  6977. else
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6979. $as_echo "no" >&6; }
  6980. fi
  6981. if test "x$ac_ct_LIPO" = x; then
  6982. LIPO=":"
  6983. else
  6984. case $cross_compiling:$ac_tool_warned in
  6985. yes:)
  6986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6987. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6988. ac_tool_warned=yes ;;
  6989. esac
  6990. LIPO=$ac_ct_LIPO
  6991. fi
  6992. else
  6993. LIPO="$ac_cv_prog_LIPO"
  6994. fi
  6995. if test -n "$ac_tool_prefix"; then
  6996. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6997. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6999. $as_echo_n "checking for $ac_word... " >&6; }
  7000. if ${ac_cv_prog_OTOOL+:} false; then :
  7001. $as_echo_n "(cached) " >&6
  7002. else
  7003. if test -n "$OTOOL"; then
  7004. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7005. else
  7006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7007. for as_dir in $PATH
  7008. do
  7009. IFS=$as_save_IFS
  7010. test -z "$as_dir" && as_dir=.
  7011. for ac_exec_ext in '' $ac_executable_extensions; do
  7012. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7013. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7015. break 2
  7016. fi
  7017. done
  7018. done
  7019. IFS=$as_save_IFS
  7020. fi
  7021. fi
  7022. OTOOL=$ac_cv_prog_OTOOL
  7023. if test -n "$OTOOL"; then
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7025. $as_echo "$OTOOL" >&6; }
  7026. else
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7028. $as_echo "no" >&6; }
  7029. fi
  7030. fi
  7031. if test -z "$ac_cv_prog_OTOOL"; then
  7032. ac_ct_OTOOL=$OTOOL
  7033. # Extract the first word of "otool", so it can be a program name with args.
  7034. set dummy otool; ac_word=$2
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7036. $as_echo_n "checking for $ac_word... " >&6; }
  7037. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7038. $as_echo_n "(cached) " >&6
  7039. else
  7040. if test -n "$ac_ct_OTOOL"; then
  7041. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7042. else
  7043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7044. for as_dir in $PATH
  7045. do
  7046. IFS=$as_save_IFS
  7047. test -z "$as_dir" && as_dir=.
  7048. for ac_exec_ext in '' $ac_executable_extensions; do
  7049. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7050. ac_cv_prog_ac_ct_OTOOL="otool"
  7051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7052. break 2
  7053. fi
  7054. done
  7055. done
  7056. IFS=$as_save_IFS
  7057. fi
  7058. fi
  7059. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7060. if test -n "$ac_ct_OTOOL"; then
  7061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7062. $as_echo "$ac_ct_OTOOL" >&6; }
  7063. else
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7065. $as_echo "no" >&6; }
  7066. fi
  7067. if test "x$ac_ct_OTOOL" = x; then
  7068. OTOOL=":"
  7069. else
  7070. case $cross_compiling:$ac_tool_warned in
  7071. yes:)
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7073. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7074. ac_tool_warned=yes ;;
  7075. esac
  7076. OTOOL=$ac_ct_OTOOL
  7077. fi
  7078. else
  7079. OTOOL="$ac_cv_prog_OTOOL"
  7080. fi
  7081. if test -n "$ac_tool_prefix"; then
  7082. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7083. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7085. $as_echo_n "checking for $ac_word... " >&6; }
  7086. if ${ac_cv_prog_OTOOL64+:} false; then :
  7087. $as_echo_n "(cached) " >&6
  7088. else
  7089. if test -n "$OTOOL64"; then
  7090. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7091. else
  7092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7093. for as_dir in $PATH
  7094. do
  7095. IFS=$as_save_IFS
  7096. test -z "$as_dir" && as_dir=.
  7097. for ac_exec_ext in '' $ac_executable_extensions; do
  7098. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7099. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7101. break 2
  7102. fi
  7103. done
  7104. done
  7105. IFS=$as_save_IFS
  7106. fi
  7107. fi
  7108. OTOOL64=$ac_cv_prog_OTOOL64
  7109. if test -n "$OTOOL64"; then
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7111. $as_echo "$OTOOL64" >&6; }
  7112. else
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7114. $as_echo "no" >&6; }
  7115. fi
  7116. fi
  7117. if test -z "$ac_cv_prog_OTOOL64"; then
  7118. ac_ct_OTOOL64=$OTOOL64
  7119. # Extract the first word of "otool64", so it can be a program name with args.
  7120. set dummy otool64; ac_word=$2
  7121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7122. $as_echo_n "checking for $ac_word... " >&6; }
  7123. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7124. $as_echo_n "(cached) " >&6
  7125. else
  7126. if test -n "$ac_ct_OTOOL64"; then
  7127. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7128. else
  7129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7130. for as_dir in $PATH
  7131. do
  7132. IFS=$as_save_IFS
  7133. test -z "$as_dir" && as_dir=.
  7134. for ac_exec_ext in '' $ac_executable_extensions; do
  7135. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7136. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7138. break 2
  7139. fi
  7140. done
  7141. done
  7142. IFS=$as_save_IFS
  7143. fi
  7144. fi
  7145. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7146. if test -n "$ac_ct_OTOOL64"; then
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7148. $as_echo "$ac_ct_OTOOL64" >&6; }
  7149. else
  7150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7151. $as_echo "no" >&6; }
  7152. fi
  7153. if test "x$ac_ct_OTOOL64" = x; then
  7154. OTOOL64=":"
  7155. else
  7156. case $cross_compiling:$ac_tool_warned in
  7157. yes:)
  7158. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7159. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7160. ac_tool_warned=yes ;;
  7161. esac
  7162. OTOOL64=$ac_ct_OTOOL64
  7163. fi
  7164. else
  7165. OTOOL64="$ac_cv_prog_OTOOL64"
  7166. fi
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7168. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7169. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7170. $as_echo_n "(cached) " >&6
  7171. else
  7172. lt_cv_apple_cc_single_mod=no
  7173. if test -z "$LT_MULTI_MODULE"; then
  7174. # By default we will add the -single_module flag. You can override
  7175. # by either setting the environment variable LT_MULTI_MODULE
  7176. # non-empty at configure time, or by adding -multi_module to the
  7177. # link flags.
  7178. rm -rf libconftest.dylib*
  7179. echo "int foo(void){return 1;}" > conftest.c
  7180. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7181. -dynamiclib -Wl,-single_module conftest.c" >&5
  7182. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7183. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7184. _lt_result=$?
  7185. # If there is a non-empty error log, and "single_module"
  7186. # appears in it, assume the flag caused a linker warning
  7187. if test -s conftest.err && $GREP single_module conftest.err; then
  7188. cat conftest.err >&5
  7189. # Otherwise, if the output was created with a 0 exit code from
  7190. # the compiler, it worked.
  7191. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7192. lt_cv_apple_cc_single_mod=yes
  7193. else
  7194. cat conftest.err >&5
  7195. fi
  7196. rm -rf libconftest.dylib*
  7197. rm -f conftest.*
  7198. fi
  7199. fi
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7201. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7203. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7204. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7205. $as_echo_n "(cached) " >&6
  7206. else
  7207. lt_cv_ld_exported_symbols_list=no
  7208. save_LDFLAGS=$LDFLAGS
  7209. echo "_main" > conftest.sym
  7210. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7212. /* end confdefs.h. */
  7213. int
  7214. main ()
  7215. {
  7216. ;
  7217. return 0;
  7218. }
  7219. _ACEOF
  7220. if ac_fn_c_try_link "$LINENO"; then :
  7221. lt_cv_ld_exported_symbols_list=yes
  7222. else
  7223. lt_cv_ld_exported_symbols_list=no
  7224. fi
  7225. rm -f core conftest.err conftest.$ac_objext \
  7226. conftest$ac_exeext conftest.$ac_ext
  7227. LDFLAGS=$save_LDFLAGS
  7228. fi
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7230. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7232. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7233. if ${lt_cv_ld_force_load+:} false; then :
  7234. $as_echo_n "(cached) " >&6
  7235. else
  7236. lt_cv_ld_force_load=no
  7237. cat > conftest.c << _LT_EOF
  7238. int forced_loaded() { return 2;}
  7239. _LT_EOF
  7240. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7241. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7242. echo "$AR cru libconftest.a conftest.o" >&5
  7243. $AR cru libconftest.a conftest.o 2>&5
  7244. echo "$RANLIB libconftest.a" >&5
  7245. $RANLIB libconftest.a 2>&5
  7246. cat > conftest.c << _LT_EOF
  7247. int main() { return 0;}
  7248. _LT_EOF
  7249. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7250. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7251. _lt_result=$?
  7252. if test -s conftest.err && $GREP force_load conftest.err; then
  7253. cat conftest.err >&5
  7254. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7255. lt_cv_ld_force_load=yes
  7256. else
  7257. cat conftest.err >&5
  7258. fi
  7259. rm -f conftest.err libconftest.a conftest conftest.c
  7260. rm -rf conftest.dSYM
  7261. fi
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7263. $as_echo "$lt_cv_ld_force_load" >&6; }
  7264. case $host_os in
  7265. rhapsody* | darwin1.[012])
  7266. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7267. darwin1.*)
  7268. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7269. darwin*) # darwin 5.x on
  7270. # if running on 10.5 or later, the deployment target defaults
  7271. # to the OS version, if on x86, and 10.4, the deployment
  7272. # target defaults to 10.4. Don't you love it?
  7273. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7274. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7275. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7276. 10.[012][,.]*)
  7277. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7278. 10.*)
  7279. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7280. esac
  7281. ;;
  7282. esac
  7283. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7284. _lt_dar_single_mod='$single_module'
  7285. fi
  7286. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7287. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7288. else
  7289. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7290. fi
  7291. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7292. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7293. else
  7294. _lt_dsymutil=
  7295. fi
  7296. ;;
  7297. esac
  7298. # func_munge_path_list VARIABLE PATH
  7299. # -----------------------------------
  7300. # VARIABLE is name of variable containing _space_ separated list of
  7301. # directories to be munged by the contents of PATH, which is string
  7302. # having a format:
  7303. # "DIR[:DIR]:"
  7304. # string "DIR[ DIR]" will be prepended to VARIABLE
  7305. # ":DIR[:DIR]"
  7306. # string "DIR[ DIR]" will be appended to VARIABLE
  7307. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7308. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7309. # "DIRA[ DIRA]" will be appended to VARIABLE
  7310. # "DIR[:DIR]"
  7311. # VARIABLE will be replaced by "DIR[ DIR]"
  7312. func_munge_path_list ()
  7313. {
  7314. case x$2 in
  7315. x)
  7316. ;;
  7317. *:)
  7318. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7319. ;;
  7320. x:*)
  7321. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7322. ;;
  7323. *::*)
  7324. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7325. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7326. ;;
  7327. *)
  7328. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7329. ;;
  7330. esac
  7331. }
  7332. ac_ext=c
  7333. ac_cpp='$CPP $CPPFLAGS'
  7334. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7335. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7336. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7338. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7339. # On Suns, sometimes $CPP names a directory.
  7340. if test -n "$CPP" && test -d "$CPP"; then
  7341. CPP=
  7342. fi
  7343. if test -z "$CPP"; then
  7344. if ${ac_cv_prog_CPP+:} false; then :
  7345. $as_echo_n "(cached) " >&6
  7346. else
  7347. # Double quotes because CPP needs to be expanded
  7348. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7349. do
  7350. ac_preproc_ok=false
  7351. for ac_c_preproc_warn_flag in '' yes
  7352. do
  7353. # Use a header file that comes with gcc, so configuring glibc
  7354. # with a fresh cross-compiler works.
  7355. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7356. # <limits.h> exists even on freestanding compilers.
  7357. # On the NeXT, cc -E runs the code through the compiler's parser,
  7358. # not just through cpp. "Syntax error" is here to catch this case.
  7359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7360. /* end confdefs.h. */
  7361. #ifdef __STDC__
  7362. # include <limits.h>
  7363. #else
  7364. # include <assert.h>
  7365. #endif
  7366. Syntax error
  7367. _ACEOF
  7368. if ac_fn_c_try_cpp "$LINENO"; then :
  7369. else
  7370. # Broken: fails on valid input.
  7371. continue
  7372. fi
  7373. rm -f conftest.err conftest.i conftest.$ac_ext
  7374. # OK, works on sane cases. Now check whether nonexistent headers
  7375. # can be detected and how.
  7376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7377. /* end confdefs.h. */
  7378. #include <ac_nonexistent.h>
  7379. _ACEOF
  7380. if ac_fn_c_try_cpp "$LINENO"; then :
  7381. # Broken: success on invalid input.
  7382. continue
  7383. else
  7384. # Passes both tests.
  7385. ac_preproc_ok=:
  7386. break
  7387. fi
  7388. rm -f conftest.err conftest.i conftest.$ac_ext
  7389. done
  7390. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7391. rm -f conftest.i conftest.err conftest.$ac_ext
  7392. if $ac_preproc_ok; then :
  7393. break
  7394. fi
  7395. done
  7396. ac_cv_prog_CPP=$CPP
  7397. fi
  7398. CPP=$ac_cv_prog_CPP
  7399. else
  7400. ac_cv_prog_CPP=$CPP
  7401. fi
  7402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7403. $as_echo "$CPP" >&6; }
  7404. ac_preproc_ok=false
  7405. for ac_c_preproc_warn_flag in '' yes
  7406. do
  7407. # Use a header file that comes with gcc, so configuring glibc
  7408. # with a fresh cross-compiler works.
  7409. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7410. # <limits.h> exists even on freestanding compilers.
  7411. # On the NeXT, cc -E runs the code through the compiler's parser,
  7412. # not just through cpp. "Syntax error" is here to catch this case.
  7413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7414. /* end confdefs.h. */
  7415. #ifdef __STDC__
  7416. # include <limits.h>
  7417. #else
  7418. # include <assert.h>
  7419. #endif
  7420. Syntax error
  7421. _ACEOF
  7422. if ac_fn_c_try_cpp "$LINENO"; then :
  7423. else
  7424. # Broken: fails on valid input.
  7425. continue
  7426. fi
  7427. rm -f conftest.err conftest.i conftest.$ac_ext
  7428. # OK, works on sane cases. Now check whether nonexistent headers
  7429. # can be detected and how.
  7430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7431. /* end confdefs.h. */
  7432. #include <ac_nonexistent.h>
  7433. _ACEOF
  7434. if ac_fn_c_try_cpp "$LINENO"; then :
  7435. # Broken: success on invalid input.
  7436. continue
  7437. else
  7438. # Passes both tests.
  7439. ac_preproc_ok=:
  7440. break
  7441. fi
  7442. rm -f conftest.err conftest.i conftest.$ac_ext
  7443. done
  7444. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7445. rm -f conftest.i conftest.err conftest.$ac_ext
  7446. if $ac_preproc_ok; then :
  7447. else
  7448. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7449. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7450. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7451. See \`config.log' for more details" "$LINENO" 5; }
  7452. fi
  7453. ac_ext=c
  7454. ac_cpp='$CPP $CPPFLAGS'
  7455. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7456. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7457. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7459. $as_echo_n "checking for ANSI C header files... " >&6; }
  7460. if ${ac_cv_header_stdc+:} false; then :
  7461. $as_echo_n "(cached) " >&6
  7462. else
  7463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7464. /* end confdefs.h. */
  7465. #include <stdlib.h>
  7466. #include <stdarg.h>
  7467. #include <string.h>
  7468. #include <float.h>
  7469. int
  7470. main ()
  7471. {
  7472. ;
  7473. return 0;
  7474. }
  7475. _ACEOF
  7476. if ac_fn_c_try_compile "$LINENO"; then :
  7477. ac_cv_header_stdc=yes
  7478. else
  7479. ac_cv_header_stdc=no
  7480. fi
  7481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7482. if test $ac_cv_header_stdc = yes; then
  7483. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7485. /* end confdefs.h. */
  7486. #include <string.h>
  7487. _ACEOF
  7488. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7489. $EGREP "memchr" >/dev/null 2>&1; then :
  7490. else
  7491. ac_cv_header_stdc=no
  7492. fi
  7493. rm -f conftest*
  7494. fi
  7495. if test $ac_cv_header_stdc = yes; then
  7496. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7498. /* end confdefs.h. */
  7499. #include <stdlib.h>
  7500. _ACEOF
  7501. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7502. $EGREP "free" >/dev/null 2>&1; then :
  7503. else
  7504. ac_cv_header_stdc=no
  7505. fi
  7506. rm -f conftest*
  7507. fi
  7508. if test $ac_cv_header_stdc = yes; then
  7509. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7510. if test "$cross_compiling" = yes; then :
  7511. :
  7512. else
  7513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7514. /* end confdefs.h. */
  7515. #include <ctype.h>
  7516. #include <stdlib.h>
  7517. #if ((' ' & 0x0FF) == 0x020)
  7518. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7519. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7520. #else
  7521. # define ISLOWER(c) \
  7522. (('a' <= (c) && (c) <= 'i') \
  7523. || ('j' <= (c) && (c) <= 'r') \
  7524. || ('s' <= (c) && (c) <= 'z'))
  7525. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7526. #endif
  7527. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7528. int
  7529. main ()
  7530. {
  7531. int i;
  7532. for (i = 0; i < 256; i++)
  7533. if (XOR (islower (i), ISLOWER (i))
  7534. || toupper (i) != TOUPPER (i))
  7535. return 2;
  7536. return 0;
  7537. }
  7538. _ACEOF
  7539. if ac_fn_c_try_run "$LINENO"; then :
  7540. else
  7541. ac_cv_header_stdc=no
  7542. fi
  7543. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7544. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7545. fi
  7546. fi
  7547. fi
  7548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7549. $as_echo "$ac_cv_header_stdc" >&6; }
  7550. if test $ac_cv_header_stdc = yes; then
  7551. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7552. fi
  7553. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7554. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7555. inttypes.h stdint.h unistd.h
  7556. do :
  7557. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7558. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7559. "
  7560. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7561. cat >>confdefs.h <<_ACEOF
  7562. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7563. _ACEOF
  7564. fi
  7565. done
  7566. for ac_header in dlfcn.h
  7567. do :
  7568. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7569. "
  7570. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7571. cat >>confdefs.h <<_ACEOF
  7572. #define HAVE_DLFCN_H 1
  7573. _ACEOF
  7574. fi
  7575. done
  7576. func_stripname_cnf ()
  7577. {
  7578. case $2 in
  7579. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  7580. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  7581. esac
  7582. } # func_stripname_cnf
  7583. # Set options
  7584. enable_dlopen=no
  7585. enable_win32_dll=no
  7586. # Check whether --enable-shared was given.
  7587. if test "${enable_shared+set}" = set; then :
  7588. enableval=$enable_shared; p=${PACKAGE-default}
  7589. case $enableval in
  7590. yes) enable_shared=yes ;;
  7591. no) enable_shared=no ;;
  7592. *)
  7593. enable_shared=no
  7594. # Look at the argument we got. We use all the common list separators.
  7595. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7596. for pkg in $enableval; do
  7597. IFS=$lt_save_ifs
  7598. if test "X$pkg" = "X$p"; then
  7599. enable_shared=yes
  7600. fi
  7601. done
  7602. IFS=$lt_save_ifs
  7603. ;;
  7604. esac
  7605. else
  7606. enable_shared=yes
  7607. fi
  7608. # Check whether --enable-static was given.
  7609. if test "${enable_static+set}" = set; then :
  7610. enableval=$enable_static; p=${PACKAGE-default}
  7611. case $enableval in
  7612. yes) enable_static=yes ;;
  7613. no) enable_static=no ;;
  7614. *)
  7615. enable_static=no
  7616. # Look at the argument we got. We use all the common list separators.
  7617. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7618. for pkg in $enableval; do
  7619. IFS=$lt_save_ifs
  7620. if test "X$pkg" = "X$p"; then
  7621. enable_static=yes
  7622. fi
  7623. done
  7624. IFS=$lt_save_ifs
  7625. ;;
  7626. esac
  7627. else
  7628. enable_static=yes
  7629. fi
  7630. # Check whether --with-pic was given.
  7631. if test "${with_pic+set}" = set; then :
  7632. withval=$with_pic; lt_p=${PACKAGE-default}
  7633. case $withval in
  7634. yes|no) pic_mode=$withval ;;
  7635. *)
  7636. pic_mode=default
  7637. # Look at the argument we got. We use all the common list separators.
  7638. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7639. for lt_pkg in $withval; do
  7640. IFS=$lt_save_ifs
  7641. if test "X$lt_pkg" = "X$lt_p"; then
  7642. pic_mode=yes
  7643. fi
  7644. done
  7645. IFS=$lt_save_ifs
  7646. ;;
  7647. esac
  7648. else
  7649. pic_mode=default
  7650. fi
  7651. # Check whether --enable-fast-install was given.
  7652. if test "${enable_fast_install+set}" = set; then :
  7653. enableval=$enable_fast_install; p=${PACKAGE-default}
  7654. case $enableval in
  7655. yes) enable_fast_install=yes ;;
  7656. no) enable_fast_install=no ;;
  7657. *)
  7658. enable_fast_install=no
  7659. # Look at the argument we got. We use all the common list separators.
  7660. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7661. for pkg in $enableval; do
  7662. IFS=$lt_save_ifs
  7663. if test "X$pkg" = "X$p"; then
  7664. enable_fast_install=yes
  7665. fi
  7666. done
  7667. IFS=$lt_save_ifs
  7668. ;;
  7669. esac
  7670. else
  7671. enable_fast_install=yes
  7672. fi
  7673. shared_archive_member_spec=
  7674. case $host,$enable_shared in
  7675. power*-*-aix[5-9]*,yes)
  7676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7677. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7678. # Check whether --with-aix-soname was given.
  7679. if test "${with_aix_soname+set}" = set; then :
  7680. withval=$with_aix_soname; case $withval in
  7681. aix|svr4|both)
  7682. ;;
  7683. *)
  7684. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7685. ;;
  7686. esac
  7687. lt_cv_with_aix_soname=$with_aix_soname
  7688. else
  7689. if ${lt_cv_with_aix_soname+:} false; then :
  7690. $as_echo_n "(cached) " >&6
  7691. else
  7692. lt_cv_with_aix_soname=aix
  7693. fi
  7694. with_aix_soname=$lt_cv_with_aix_soname
  7695. fi
  7696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7697. $as_echo "$with_aix_soname" >&6; }
  7698. if test aix != "$with_aix_soname"; then
  7699. # For the AIX way of multilib, we name the shared archive member
  7700. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7701. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7702. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7703. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7704. if test 64 = "${OBJECT_MODE-32}"; then
  7705. shared_archive_member_spec=shr_64
  7706. else
  7707. shared_archive_member_spec=shr
  7708. fi
  7709. fi
  7710. ;;
  7711. *)
  7712. with_aix_soname=aix
  7713. ;;
  7714. esac
  7715. # This can be used to rebuild libtool when needed
  7716. LIBTOOL_DEPS=$ltmain
  7717. # Always use our own libtool.
  7718. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7719. test -z "$LN_S" && LN_S="ln -s"
  7720. if test -n "${ZSH_VERSION+set}"; then
  7721. setopt NO_GLOB_SUBST
  7722. fi
  7723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7724. $as_echo_n "checking for objdir... " >&6; }
  7725. if ${lt_cv_objdir+:} false; then :
  7726. $as_echo_n "(cached) " >&6
  7727. else
  7728. rm -f .libs 2>/dev/null
  7729. mkdir .libs 2>/dev/null
  7730. if test -d .libs; then
  7731. lt_cv_objdir=.libs
  7732. else
  7733. # MS-DOS does not allow filenames that begin with a dot.
  7734. lt_cv_objdir=_libs
  7735. fi
  7736. rmdir .libs 2>/dev/null
  7737. fi
  7738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7739. $as_echo "$lt_cv_objdir" >&6; }
  7740. objdir=$lt_cv_objdir
  7741. cat >>confdefs.h <<_ACEOF
  7742. #define LT_OBJDIR "$lt_cv_objdir/"
  7743. _ACEOF
  7744. case $host_os in
  7745. aix3*)
  7746. # AIX sometimes has problems with the GCC collect2 program. For some
  7747. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7748. # vanish in a puff of smoke.
  7749. if test set != "${COLLECT_NAMES+set}"; then
  7750. COLLECT_NAMES=
  7751. export COLLECT_NAMES
  7752. fi
  7753. ;;
  7754. esac
  7755. # Global variables:
  7756. ofile=libtool
  7757. can_build_shared=yes
  7758. # All known linkers require a '.a' archive for static linking (except MSVC,
  7759. # which needs '.lib').
  7760. libext=a
  7761. with_gnu_ld=$lt_cv_prog_gnu_ld
  7762. old_CC=$CC
  7763. old_CFLAGS=$CFLAGS
  7764. # Set sane defaults for various variables
  7765. test -z "$CC" && CC=cc
  7766. test -z "$LTCC" && LTCC=$CC
  7767. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7768. test -z "$LD" && LD=ld
  7769. test -z "$ac_objext" && ac_objext=o
  7770. func_cc_basename $compiler
  7771. cc_basename=$func_cc_basename_result
  7772. # Only perform the check for file, if the check method requires it
  7773. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7774. case $deplibs_check_method in
  7775. file_magic*)
  7776. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7778. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7779. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7780. $as_echo_n "(cached) " >&6
  7781. else
  7782. case $MAGIC_CMD in
  7783. [\\/*] | ?:[\\/]*)
  7784. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7785. ;;
  7786. *)
  7787. lt_save_MAGIC_CMD=$MAGIC_CMD
  7788. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7789. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7790. for ac_dir in $ac_dummy; do
  7791. IFS=$lt_save_ifs
  7792. test -z "$ac_dir" && ac_dir=.
  7793. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7794. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7795. if test -n "$file_magic_test_file"; then
  7796. case $deplibs_check_method in
  7797. "file_magic "*)
  7798. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7799. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7800. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7801. $EGREP "$file_magic_regex" > /dev/null; then
  7802. :
  7803. else
  7804. cat <<_LT_EOF 1>&2
  7805. *** Warning: the command libtool uses to detect shared libraries,
  7806. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7807. *** The result is that libtool may fail to recognize shared libraries
  7808. *** as such. This will affect the creation of libtool libraries that
  7809. *** depend on shared libraries, but programs linked with such libtool
  7810. *** libraries will work regardless of this problem. Nevertheless, you
  7811. *** may want to report the problem to your system manager and/or to
  7812. *** bug-libtool@gnu.org
  7813. _LT_EOF
  7814. fi ;;
  7815. esac
  7816. fi
  7817. break
  7818. fi
  7819. done
  7820. IFS=$lt_save_ifs
  7821. MAGIC_CMD=$lt_save_MAGIC_CMD
  7822. ;;
  7823. esac
  7824. fi
  7825. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7826. if test -n "$MAGIC_CMD"; then
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7828. $as_echo "$MAGIC_CMD" >&6; }
  7829. else
  7830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7831. $as_echo "no" >&6; }
  7832. fi
  7833. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7834. if test -n "$ac_tool_prefix"; then
  7835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7836. $as_echo_n "checking for file... " >&6; }
  7837. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7838. $as_echo_n "(cached) " >&6
  7839. else
  7840. case $MAGIC_CMD in
  7841. [\\/*] | ?:[\\/]*)
  7842. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7843. ;;
  7844. *)
  7845. lt_save_MAGIC_CMD=$MAGIC_CMD
  7846. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7847. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7848. for ac_dir in $ac_dummy; do
  7849. IFS=$lt_save_ifs
  7850. test -z "$ac_dir" && ac_dir=.
  7851. if test -f "$ac_dir/file"; then
  7852. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7853. if test -n "$file_magic_test_file"; then
  7854. case $deplibs_check_method in
  7855. "file_magic "*)
  7856. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7857. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7858. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7859. $EGREP "$file_magic_regex" > /dev/null; then
  7860. :
  7861. else
  7862. cat <<_LT_EOF 1>&2
  7863. *** Warning: the command libtool uses to detect shared libraries,
  7864. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7865. *** The result is that libtool may fail to recognize shared libraries
  7866. *** as such. This will affect the creation of libtool libraries that
  7867. *** depend on shared libraries, but programs linked with such libtool
  7868. *** libraries will work regardless of this problem. Nevertheless, you
  7869. *** may want to report the problem to your system manager and/or to
  7870. *** bug-libtool@gnu.org
  7871. _LT_EOF
  7872. fi ;;
  7873. esac
  7874. fi
  7875. break
  7876. fi
  7877. done
  7878. IFS=$lt_save_ifs
  7879. MAGIC_CMD=$lt_save_MAGIC_CMD
  7880. ;;
  7881. esac
  7882. fi
  7883. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7884. if test -n "$MAGIC_CMD"; then
  7885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7886. $as_echo "$MAGIC_CMD" >&6; }
  7887. else
  7888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7889. $as_echo "no" >&6; }
  7890. fi
  7891. else
  7892. MAGIC_CMD=:
  7893. fi
  7894. fi
  7895. fi
  7896. ;;
  7897. esac
  7898. # Use C for the default configuration in the libtool script
  7899. lt_save_CC=$CC
  7900. ac_ext=c
  7901. ac_cpp='$CPP $CPPFLAGS'
  7902. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7903. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7904. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7905. # Source file extension for C test sources.
  7906. ac_ext=c
  7907. # Object file extension for compiled C test sources.
  7908. objext=o
  7909. objext=$objext
  7910. # Code to be used in simple compile tests
  7911. lt_simple_compile_test_code="int some_variable = 0;"
  7912. # Code to be used in simple link tests
  7913. lt_simple_link_test_code='int main(){return(0);}'
  7914. # If no C compiler was specified, use CC.
  7915. LTCC=${LTCC-"$CC"}
  7916. # If no C compiler flags were specified, use CFLAGS.
  7917. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7918. # Allow CC to be a program name with arguments.
  7919. compiler=$CC
  7920. # Save the default compiler, since it gets overwritten when the other
  7921. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7922. compiler_DEFAULT=$CC
  7923. # save warnings/boilerplate of simple test code
  7924. ac_outfile=conftest.$ac_objext
  7925. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7926. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7927. _lt_compiler_boilerplate=`cat conftest.err`
  7928. $RM conftest*
  7929. ac_outfile=conftest.$ac_objext
  7930. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7931. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7932. _lt_linker_boilerplate=`cat conftest.err`
  7933. $RM -r conftest*
  7934. ## CAVEAT EMPTOR:
  7935. ## There is no encapsulation within the following macros, do not change
  7936. ## the running order or otherwise move them around unless you know exactly
  7937. ## what you are doing...
  7938. if test -n "$compiler"; then
  7939. lt_prog_compiler_no_builtin_flag=
  7940. if test yes = "$GCC"; then
  7941. case $cc_basename in
  7942. nvcc*)
  7943. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7944. *)
  7945. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7946. esac
  7947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7948. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7949. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7950. $as_echo_n "(cached) " >&6
  7951. else
  7952. lt_cv_prog_compiler_rtti_exceptions=no
  7953. ac_outfile=conftest.$ac_objext
  7954. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7955. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7956. # Insert the option either (1) after the last *FLAGS variable, or
  7957. # (2) before a word containing "conftest.", or (3) at the end.
  7958. # Note that $ac_compile itself does not contain backslashes and begins
  7959. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7960. # The option is referenced via a variable to avoid confusing sed.
  7961. lt_compile=`echo "$ac_compile" | $SED \
  7962. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7963. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7964. -e 's:$: $lt_compiler_flag:'`
  7965. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7966. (eval "$lt_compile" 2>conftest.err)
  7967. ac_status=$?
  7968. cat conftest.err >&5
  7969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7970. if (exit $ac_status) && test -s "$ac_outfile"; then
  7971. # The compiler can only warn and ignore the option if not recognized
  7972. # So say no if there are warnings other than the usual output.
  7973. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7974. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7975. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7976. lt_cv_prog_compiler_rtti_exceptions=yes
  7977. fi
  7978. fi
  7979. $RM conftest*
  7980. fi
  7981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7982. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7983. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7984. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7985. else
  7986. :
  7987. fi
  7988. fi
  7989. lt_prog_compiler_wl=
  7990. lt_prog_compiler_pic=
  7991. lt_prog_compiler_static=
  7992. if test yes = "$GCC"; then
  7993. lt_prog_compiler_wl='-Wl,'
  7994. lt_prog_compiler_static='-static'
  7995. case $host_os in
  7996. aix*)
  7997. # All AIX code is PIC.
  7998. if test ia64 = "$host_cpu"; then
  7999. # AIX 5 now supports IA64 processor
  8000. lt_prog_compiler_static='-Bstatic'
  8001. fi
  8002. lt_prog_compiler_pic='-fPIC'
  8003. ;;
  8004. amigaos*)
  8005. case $host_cpu in
  8006. powerpc)
  8007. # see comment about AmigaOS4 .so support
  8008. lt_prog_compiler_pic='-fPIC'
  8009. ;;
  8010. m68k)
  8011. # FIXME: we need at least 68020 code to build shared libraries, but
  8012. # adding the '-m68020' flag to GCC prevents building anything better,
  8013. # like '-m68040'.
  8014. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8015. ;;
  8016. esac
  8017. ;;
  8018. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8019. # PIC is the default for these OSes.
  8020. ;;
  8021. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8022. # This hack is so that the source file can tell whether it is being
  8023. # built for inclusion in a dll (and should export symbols for example).
  8024. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8025. # (--disable-auto-import) libraries
  8026. lt_prog_compiler_pic='-DDLL_EXPORT'
  8027. case $host_os in
  8028. os2*)
  8029. lt_prog_compiler_static='$wl-static'
  8030. ;;
  8031. esac
  8032. ;;
  8033. darwin* | rhapsody*)
  8034. # PIC is the default on this platform
  8035. # Common symbols not allowed in MH_DYLIB files
  8036. lt_prog_compiler_pic='-fno-common'
  8037. ;;
  8038. haiku*)
  8039. # PIC is the default for Haiku.
  8040. # The "-static" flag exists, but is broken.
  8041. lt_prog_compiler_static=
  8042. ;;
  8043. hpux*)
  8044. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8045. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8046. # sets the default TLS model and affects inlining.
  8047. case $host_cpu in
  8048. hppa*64*)
  8049. # +Z the default
  8050. ;;
  8051. *)
  8052. lt_prog_compiler_pic='-fPIC'
  8053. ;;
  8054. esac
  8055. ;;
  8056. interix[3-9]*)
  8057. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8058. # Instead, we relocate shared libraries at runtime.
  8059. ;;
  8060. msdosdjgpp*)
  8061. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8062. # on systems that don't support them.
  8063. lt_prog_compiler_can_build_shared=no
  8064. enable_shared=no
  8065. ;;
  8066. *nto* | *qnx*)
  8067. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8068. # it will coredump.
  8069. lt_prog_compiler_pic='-fPIC -shared'
  8070. ;;
  8071. sysv4*MP*)
  8072. if test -d /usr/nec; then
  8073. lt_prog_compiler_pic=-Kconform_pic
  8074. fi
  8075. ;;
  8076. *)
  8077. lt_prog_compiler_pic='-fPIC'
  8078. ;;
  8079. esac
  8080. case $cc_basename in
  8081. nvcc*) # Cuda Compiler Driver 2.2
  8082. lt_prog_compiler_wl='-Xlinker '
  8083. if test -n "$lt_prog_compiler_pic"; then
  8084. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8085. fi
  8086. ;;
  8087. esac
  8088. else
  8089. # PORTME Check for flag to pass linker flags through the system compiler.
  8090. case $host_os in
  8091. aix*)
  8092. lt_prog_compiler_wl='-Wl,'
  8093. if test ia64 = "$host_cpu"; then
  8094. # AIX 5 now supports IA64 processor
  8095. lt_prog_compiler_static='-Bstatic'
  8096. else
  8097. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8098. fi
  8099. ;;
  8100. darwin* | rhapsody*)
  8101. # PIC is the default on this platform
  8102. # Common symbols not allowed in MH_DYLIB files
  8103. lt_prog_compiler_pic='-fno-common'
  8104. case $cc_basename in
  8105. nagfor*)
  8106. # NAG Fortran compiler
  8107. lt_prog_compiler_wl='-Wl,-Wl,,'
  8108. lt_prog_compiler_pic='-PIC'
  8109. lt_prog_compiler_static='-Bstatic'
  8110. ;;
  8111. esac
  8112. ;;
  8113. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8114. # This hack is so that the source file can tell whether it is being
  8115. # built for inclusion in a dll (and should export symbols for example).
  8116. lt_prog_compiler_pic='-DDLL_EXPORT'
  8117. case $host_os in
  8118. os2*)
  8119. lt_prog_compiler_static='$wl-static'
  8120. ;;
  8121. esac
  8122. ;;
  8123. hpux9* | hpux10* | hpux11*)
  8124. lt_prog_compiler_wl='-Wl,'
  8125. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8126. # not for PA HP-UX.
  8127. case $host_cpu in
  8128. hppa*64*|ia64*)
  8129. # +Z the default
  8130. ;;
  8131. *)
  8132. lt_prog_compiler_pic='+Z'
  8133. ;;
  8134. esac
  8135. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8136. lt_prog_compiler_static='$wl-a ${wl}archive'
  8137. ;;
  8138. irix5* | irix6* | nonstopux*)
  8139. lt_prog_compiler_wl='-Wl,'
  8140. # PIC (with -KPIC) is the default.
  8141. lt_prog_compiler_static='-non_shared'
  8142. ;;
  8143. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8144. case $cc_basename in
  8145. # old Intel for x86_64, which still supported -KPIC.
  8146. ecc*)
  8147. lt_prog_compiler_wl='-Wl,'
  8148. lt_prog_compiler_pic='-KPIC'
  8149. lt_prog_compiler_static='-static'
  8150. ;;
  8151. # icc used to be incompatible with GCC.
  8152. # ICC 10 doesn't accept -KPIC any more.
  8153. icc* | ifort*)
  8154. lt_prog_compiler_wl='-Wl,'
  8155. lt_prog_compiler_pic='-fPIC'
  8156. lt_prog_compiler_static='-static'
  8157. ;;
  8158. # Lahey Fortran 8.1.
  8159. lf95*)
  8160. lt_prog_compiler_wl='-Wl,'
  8161. lt_prog_compiler_pic='--shared'
  8162. lt_prog_compiler_static='--static'
  8163. ;;
  8164. nagfor*)
  8165. # NAG Fortran compiler
  8166. lt_prog_compiler_wl='-Wl,-Wl,,'
  8167. lt_prog_compiler_pic='-PIC'
  8168. lt_prog_compiler_static='-Bstatic'
  8169. ;;
  8170. tcc*)
  8171. # Fabrice Bellard et al's Tiny C Compiler
  8172. lt_prog_compiler_wl='-Wl,'
  8173. lt_prog_compiler_pic='-fPIC'
  8174. lt_prog_compiler_static='-static'
  8175. ;;
  8176. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8177. # Portland Group compilers (*not* the Pentium gcc compiler,
  8178. # which looks to be a dead project)
  8179. lt_prog_compiler_wl='-Wl,'
  8180. lt_prog_compiler_pic='-fpic'
  8181. lt_prog_compiler_static='-Bstatic'
  8182. ;;
  8183. ccc*)
  8184. lt_prog_compiler_wl='-Wl,'
  8185. # All Alpha code is PIC.
  8186. lt_prog_compiler_static='-non_shared'
  8187. ;;
  8188. xl* | bgxl* | bgf* | mpixl*)
  8189. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8190. lt_prog_compiler_wl='-Wl,'
  8191. lt_prog_compiler_pic='-qpic'
  8192. lt_prog_compiler_static='-qstaticlink'
  8193. ;;
  8194. *)
  8195. case `$CC -V 2>&1 | sed 5q` in
  8196. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8197. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8198. lt_prog_compiler_pic='-KPIC'
  8199. lt_prog_compiler_static='-Bstatic'
  8200. lt_prog_compiler_wl=''
  8201. ;;
  8202. *Sun\ F* | *Sun*Fortran*)
  8203. lt_prog_compiler_pic='-KPIC'
  8204. lt_prog_compiler_static='-Bstatic'
  8205. lt_prog_compiler_wl='-Qoption ld '
  8206. ;;
  8207. *Sun\ C*)
  8208. # Sun C 5.9
  8209. lt_prog_compiler_pic='-KPIC'
  8210. lt_prog_compiler_static='-Bstatic'
  8211. lt_prog_compiler_wl='-Wl,'
  8212. ;;
  8213. *Intel*\ [CF]*Compiler*)
  8214. lt_prog_compiler_wl='-Wl,'
  8215. lt_prog_compiler_pic='-fPIC'
  8216. lt_prog_compiler_static='-static'
  8217. ;;
  8218. *Portland\ Group*)
  8219. lt_prog_compiler_wl='-Wl,'
  8220. lt_prog_compiler_pic='-fpic'
  8221. lt_prog_compiler_static='-Bstatic'
  8222. ;;
  8223. esac
  8224. ;;
  8225. esac
  8226. ;;
  8227. newsos6)
  8228. lt_prog_compiler_pic='-KPIC'
  8229. lt_prog_compiler_static='-Bstatic'
  8230. ;;
  8231. *nto* | *qnx*)
  8232. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8233. # it will coredump.
  8234. lt_prog_compiler_pic='-fPIC -shared'
  8235. ;;
  8236. osf3* | osf4* | osf5*)
  8237. lt_prog_compiler_wl='-Wl,'
  8238. # All OSF/1 code is PIC.
  8239. lt_prog_compiler_static='-non_shared'
  8240. ;;
  8241. rdos*)
  8242. lt_prog_compiler_static='-non_shared'
  8243. ;;
  8244. solaris*)
  8245. lt_prog_compiler_pic='-KPIC'
  8246. lt_prog_compiler_static='-Bstatic'
  8247. case $cc_basename in
  8248. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8249. lt_prog_compiler_wl='-Qoption ld ';;
  8250. *)
  8251. lt_prog_compiler_wl='-Wl,';;
  8252. esac
  8253. ;;
  8254. sunos4*)
  8255. lt_prog_compiler_wl='-Qoption ld '
  8256. lt_prog_compiler_pic='-PIC'
  8257. lt_prog_compiler_static='-Bstatic'
  8258. ;;
  8259. sysv4 | sysv4.2uw2* | sysv4.3*)
  8260. lt_prog_compiler_wl='-Wl,'
  8261. lt_prog_compiler_pic='-KPIC'
  8262. lt_prog_compiler_static='-Bstatic'
  8263. ;;
  8264. sysv4*MP*)
  8265. if test -d /usr/nec; then
  8266. lt_prog_compiler_pic='-Kconform_pic'
  8267. lt_prog_compiler_static='-Bstatic'
  8268. fi
  8269. ;;
  8270. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8271. lt_prog_compiler_wl='-Wl,'
  8272. lt_prog_compiler_pic='-KPIC'
  8273. lt_prog_compiler_static='-Bstatic'
  8274. ;;
  8275. unicos*)
  8276. lt_prog_compiler_wl='-Wl,'
  8277. lt_prog_compiler_can_build_shared=no
  8278. ;;
  8279. uts4*)
  8280. lt_prog_compiler_pic='-pic'
  8281. lt_prog_compiler_static='-Bstatic'
  8282. ;;
  8283. *)
  8284. lt_prog_compiler_can_build_shared=no
  8285. ;;
  8286. esac
  8287. fi
  8288. case $host_os in
  8289. # For platforms that do not support PIC, -DPIC is meaningless:
  8290. *djgpp*)
  8291. lt_prog_compiler_pic=
  8292. ;;
  8293. *)
  8294. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8295. ;;
  8296. esac
  8297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8298. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8299. if ${lt_cv_prog_compiler_pic+:} false; then :
  8300. $as_echo_n "(cached) " >&6
  8301. else
  8302. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8303. fi
  8304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8305. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8306. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8307. #
  8308. # Check to make sure the PIC flag actually works.
  8309. #
  8310. if test -n "$lt_prog_compiler_pic"; then
  8311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8312. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8313. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8314. $as_echo_n "(cached) " >&6
  8315. else
  8316. lt_cv_prog_compiler_pic_works=no
  8317. ac_outfile=conftest.$ac_objext
  8318. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8319. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8320. # Insert the option either (1) after the last *FLAGS variable, or
  8321. # (2) before a word containing "conftest.", or (3) at the end.
  8322. # Note that $ac_compile itself does not contain backslashes and begins
  8323. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8324. # The option is referenced via a variable to avoid confusing sed.
  8325. lt_compile=`echo "$ac_compile" | $SED \
  8326. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8327. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8328. -e 's:$: $lt_compiler_flag:'`
  8329. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8330. (eval "$lt_compile" 2>conftest.err)
  8331. ac_status=$?
  8332. cat conftest.err >&5
  8333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8334. if (exit $ac_status) && test -s "$ac_outfile"; then
  8335. # The compiler can only warn and ignore the option if not recognized
  8336. # So say no if there are warnings other than the usual output.
  8337. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8338. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8339. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8340. lt_cv_prog_compiler_pic_works=yes
  8341. fi
  8342. fi
  8343. $RM conftest*
  8344. fi
  8345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8346. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8347. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8348. case $lt_prog_compiler_pic in
  8349. "" | " "*) ;;
  8350. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8351. esac
  8352. else
  8353. lt_prog_compiler_pic=
  8354. lt_prog_compiler_can_build_shared=no
  8355. fi
  8356. fi
  8357. #
  8358. # Check to make sure the static flag actually works.
  8359. #
  8360. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8362. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8363. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8364. $as_echo_n "(cached) " >&6
  8365. else
  8366. lt_cv_prog_compiler_static_works=no
  8367. save_LDFLAGS=$LDFLAGS
  8368. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8369. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8370. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8371. # The linker can only warn and ignore the option if not recognized
  8372. # So say no if there are warnings
  8373. if test -s conftest.err; then
  8374. # Append any errors to the config.log.
  8375. cat conftest.err 1>&5
  8376. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8377. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8378. if diff conftest.exp conftest.er2 >/dev/null; then
  8379. lt_cv_prog_compiler_static_works=yes
  8380. fi
  8381. else
  8382. lt_cv_prog_compiler_static_works=yes
  8383. fi
  8384. fi
  8385. $RM -r conftest*
  8386. LDFLAGS=$save_LDFLAGS
  8387. fi
  8388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8389. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8390. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8391. :
  8392. else
  8393. lt_prog_compiler_static=
  8394. fi
  8395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8396. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8397. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8398. $as_echo_n "(cached) " >&6
  8399. else
  8400. lt_cv_prog_compiler_c_o=no
  8401. $RM -r conftest 2>/dev/null
  8402. mkdir conftest
  8403. cd conftest
  8404. mkdir out
  8405. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8406. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8407. # Insert the option either (1) after the last *FLAGS variable, or
  8408. # (2) before a word containing "conftest.", or (3) at the end.
  8409. # Note that $ac_compile itself does not contain backslashes and begins
  8410. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8411. lt_compile=`echo "$ac_compile" | $SED \
  8412. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8413. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8414. -e 's:$: $lt_compiler_flag:'`
  8415. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8416. (eval "$lt_compile" 2>out/conftest.err)
  8417. ac_status=$?
  8418. cat out/conftest.err >&5
  8419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8420. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8421. then
  8422. # The compiler can only warn and ignore the option if not recognized
  8423. # So say no if there are warnings
  8424. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8425. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8426. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8427. lt_cv_prog_compiler_c_o=yes
  8428. fi
  8429. fi
  8430. chmod u+w . 2>&5
  8431. $RM conftest*
  8432. # SGI C++ compiler will create directory out/ii_files/ for
  8433. # template instantiation
  8434. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8435. $RM out/* && rmdir out
  8436. cd ..
  8437. $RM -r conftest
  8438. $RM conftest*
  8439. fi
  8440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8441. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8443. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8444. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8445. $as_echo_n "(cached) " >&6
  8446. else
  8447. lt_cv_prog_compiler_c_o=no
  8448. $RM -r conftest 2>/dev/null
  8449. mkdir conftest
  8450. cd conftest
  8451. mkdir out
  8452. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8453. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8454. # Insert the option either (1) after the last *FLAGS variable, or
  8455. # (2) before a word containing "conftest.", or (3) at the end.
  8456. # Note that $ac_compile itself does not contain backslashes and begins
  8457. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8458. lt_compile=`echo "$ac_compile" | $SED \
  8459. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8460. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8461. -e 's:$: $lt_compiler_flag:'`
  8462. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8463. (eval "$lt_compile" 2>out/conftest.err)
  8464. ac_status=$?
  8465. cat out/conftest.err >&5
  8466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8467. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8468. then
  8469. # The compiler can only warn and ignore the option if not recognized
  8470. # So say no if there are warnings
  8471. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8472. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8473. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8474. lt_cv_prog_compiler_c_o=yes
  8475. fi
  8476. fi
  8477. chmod u+w . 2>&5
  8478. $RM conftest*
  8479. # SGI C++ compiler will create directory out/ii_files/ for
  8480. # template instantiation
  8481. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8482. $RM out/* && rmdir out
  8483. cd ..
  8484. $RM -r conftest
  8485. $RM conftest*
  8486. fi
  8487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8488. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8489. hard_links=nottested
  8490. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8491. # do not overwrite the value of need_locks provided by the user
  8492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8493. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8494. hard_links=yes
  8495. $RM conftest*
  8496. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8497. touch conftest.a
  8498. ln conftest.a conftest.b 2>&5 || hard_links=no
  8499. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8501. $as_echo "$hard_links" >&6; }
  8502. if test no = "$hard_links"; then
  8503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8504. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8505. need_locks=warn
  8506. fi
  8507. else
  8508. need_locks=no
  8509. fi
  8510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8511. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8512. runpath_var=
  8513. allow_undefined_flag=
  8514. always_export_symbols=no
  8515. archive_cmds=
  8516. archive_expsym_cmds=
  8517. compiler_needs_object=no
  8518. enable_shared_with_static_runtimes=no
  8519. export_dynamic_flag_spec=
  8520. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8521. hardcode_automatic=no
  8522. hardcode_direct=no
  8523. hardcode_direct_absolute=no
  8524. hardcode_libdir_flag_spec=
  8525. hardcode_libdir_separator=
  8526. hardcode_minus_L=no
  8527. hardcode_shlibpath_var=unsupported
  8528. inherit_rpath=no
  8529. link_all_deplibs=unknown
  8530. module_cmds=
  8531. module_expsym_cmds=
  8532. old_archive_from_new_cmds=
  8533. old_archive_from_expsyms_cmds=
  8534. thread_safe_flag_spec=
  8535. whole_archive_flag_spec=
  8536. # include_expsyms should be a list of space-separated symbols to be *always*
  8537. # included in the symbol list
  8538. include_expsyms=
  8539. # exclude_expsyms can be an extended regexp of symbols to exclude
  8540. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8541. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8542. # as well as any symbol that contains 'd'.
  8543. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8544. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8545. # platforms (ab)use it in PIC code, but their linkers get confused if
  8546. # the symbol is explicitly referenced. Since portable code cannot
  8547. # rely on this symbol name, it's probably fine to never include it in
  8548. # preloaded symbol tables.
  8549. # Exclude shared library initialization/finalization symbols.
  8550. extract_expsyms_cmds=
  8551. case $host_os in
  8552. cygwin* | mingw* | pw32* | cegcc*)
  8553. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8554. # When not using gcc, we currently assume that we are using
  8555. # Microsoft Visual C++.
  8556. if test yes != "$GCC"; then
  8557. with_gnu_ld=no
  8558. fi
  8559. ;;
  8560. interix*)
  8561. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8562. with_gnu_ld=yes
  8563. ;;
  8564. openbsd* | bitrig*)
  8565. with_gnu_ld=no
  8566. ;;
  8567. linux* | k*bsd*-gnu | gnu*)
  8568. link_all_deplibs=no
  8569. ;;
  8570. esac
  8571. ld_shlibs=yes
  8572. # On some targets, GNU ld is compatible enough with the native linker
  8573. # that we're better off using the native interface for both.
  8574. lt_use_gnu_ld_interface=no
  8575. if test yes = "$with_gnu_ld"; then
  8576. case $host_os in
  8577. aix*)
  8578. # The AIX port of GNU ld has always aspired to compatibility
  8579. # with the native linker. However, as the warning in the GNU ld
  8580. # block says, versions before 2.19.5* couldn't really create working
  8581. # shared libraries, regardless of the interface used.
  8582. case `$LD -v 2>&1` in
  8583. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8584. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8585. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8586. *)
  8587. lt_use_gnu_ld_interface=yes
  8588. ;;
  8589. esac
  8590. ;;
  8591. *)
  8592. lt_use_gnu_ld_interface=yes
  8593. ;;
  8594. esac
  8595. fi
  8596. if test yes = "$lt_use_gnu_ld_interface"; then
  8597. # If archive_cmds runs LD, not CC, wlarc should be empty
  8598. wlarc='$wl'
  8599. # Set some defaults for GNU ld with shared library support. These
  8600. # are reset later if shared libraries are not supported. Putting them
  8601. # here allows them to be overridden if necessary.
  8602. runpath_var=LD_RUN_PATH
  8603. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8604. export_dynamic_flag_spec='$wl--export-dynamic'
  8605. # ancient GNU ld didn't support --whole-archive et. al.
  8606. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8607. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8608. else
  8609. whole_archive_flag_spec=
  8610. fi
  8611. supports_anon_versioning=no
  8612. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8613. *GNU\ gold*) supports_anon_versioning=yes ;;
  8614. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8615. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8616. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8617. *\ 2.11.*) ;; # other 2.11 versions
  8618. *) supports_anon_versioning=yes ;;
  8619. esac
  8620. # See if GNU ld supports shared libraries.
  8621. case $host_os in
  8622. aix[3-9]*)
  8623. # On AIX/PPC, the GNU linker is very broken
  8624. if test ia64 != "$host_cpu"; then
  8625. ld_shlibs=no
  8626. cat <<_LT_EOF 1>&2
  8627. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8628. *** to be unable to reliably create shared libraries on AIX.
  8629. *** Therefore, libtool is disabling shared libraries support. If you
  8630. *** really care for shared libraries, you may want to install binutils
  8631. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8632. *** You will then need to restart the configuration process.
  8633. _LT_EOF
  8634. fi
  8635. ;;
  8636. amigaos*)
  8637. case $host_cpu in
  8638. powerpc)
  8639. # see comment about AmigaOS4 .so support
  8640. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8641. archive_expsym_cmds=''
  8642. ;;
  8643. m68k)
  8644. 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)'
  8645. hardcode_libdir_flag_spec='-L$libdir'
  8646. hardcode_minus_L=yes
  8647. ;;
  8648. esac
  8649. ;;
  8650. beos*)
  8651. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8652. allow_undefined_flag=unsupported
  8653. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8654. # support --undefined. This deserves some investigation. FIXME
  8655. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8656. else
  8657. ld_shlibs=no
  8658. fi
  8659. ;;
  8660. cygwin* | mingw* | pw32* | cegcc*)
  8661. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8662. # as there is no search path for DLLs.
  8663. hardcode_libdir_flag_spec='-L$libdir'
  8664. export_dynamic_flag_spec='$wl--export-all-symbols'
  8665. allow_undefined_flag=unsupported
  8666. always_export_symbols=no
  8667. enable_shared_with_static_runtimes=yes
  8668. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8669. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8670. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8671. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8672. # If the export-symbols file already is a .def file, use it as
  8673. # is; otherwise, prepend EXPORTS...
  8674. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8675. cp $export_symbols $output_objdir/$soname.def;
  8676. else
  8677. echo EXPORTS > $output_objdir/$soname.def;
  8678. cat $export_symbols >> $output_objdir/$soname.def;
  8679. fi~
  8680. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8681. else
  8682. ld_shlibs=no
  8683. fi
  8684. ;;
  8685. haiku*)
  8686. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8687. link_all_deplibs=yes
  8688. ;;
  8689. os2*)
  8690. hardcode_libdir_flag_spec='-L$libdir'
  8691. hardcode_minus_L=yes
  8692. allow_undefined_flag=unsupported
  8693. shrext_cmds=.dll
  8694. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8695. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8696. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8697. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8698. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8699. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8700. emximp -o $lib $output_objdir/$libname.def'
  8701. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8702. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8703. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8704. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8705. prefix_cmds="$SED"~
  8706. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8707. prefix_cmds="$prefix_cmds -e 1d";
  8708. fi~
  8709. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8710. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8711. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8712. emximp -o $lib $output_objdir/$libname.def'
  8713. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8714. enable_shared_with_static_runtimes=yes
  8715. ;;
  8716. interix[3-9]*)
  8717. hardcode_direct=no
  8718. hardcode_shlibpath_var=no
  8719. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8720. export_dynamic_flag_spec='$wl-E'
  8721. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8722. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8723. # default) and relocated if they conflict, which is a slow very memory
  8724. # consuming and fragmenting process. To avoid this, we pick a random,
  8725. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8726. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8727. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8728. 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'
  8729. ;;
  8730. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8731. tmp_diet=no
  8732. if test linux-dietlibc = "$host_os"; then
  8733. case $cc_basename in
  8734. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8735. esac
  8736. fi
  8737. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8738. && test no = "$tmp_diet"
  8739. then
  8740. tmp_addflag=' $pic_flag'
  8741. tmp_sharedflag='-shared'
  8742. case $cc_basename,$host_cpu in
  8743. pgcc*) # Portland Group C compiler
  8744. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8745. tmp_addflag=' $pic_flag'
  8746. ;;
  8747. pgf77* | pgf90* | pgf95* | pgfortran*)
  8748. # Portland Group f77 and f90 compilers
  8749. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8750. tmp_addflag=' $pic_flag -Mnomain' ;;
  8751. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8752. tmp_addflag=' -i_dynamic' ;;
  8753. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8754. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8755. ifc* | ifort*) # Intel Fortran compiler
  8756. tmp_addflag=' -nofor_main' ;;
  8757. lf95*) # Lahey Fortran 8.1
  8758. whole_archive_flag_spec=
  8759. tmp_sharedflag='--shared' ;;
  8760. nagfor*) # NAGFOR 5.3
  8761. tmp_sharedflag='-Wl,-shared' ;;
  8762. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8763. tmp_sharedflag='-qmkshrobj'
  8764. tmp_addflag= ;;
  8765. nvcc*) # Cuda Compiler Driver 2.2
  8766. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8767. compiler_needs_object=yes
  8768. ;;
  8769. esac
  8770. case `$CC -V 2>&1 | sed 5q` in
  8771. *Sun\ C*) # Sun C 5.9
  8772. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8773. compiler_needs_object=yes
  8774. tmp_sharedflag='-G' ;;
  8775. *Sun\ F*) # Sun Fortran 8.3
  8776. tmp_sharedflag='-G' ;;
  8777. esac
  8778. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8779. if test yes = "$supports_anon_versioning"; then
  8780. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8781. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8782. echo "local: *; };" >> $output_objdir/$libname.ver~
  8783. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8784. fi
  8785. case $cc_basename in
  8786. tcc*)
  8787. export_dynamic_flag_spec='-rdynamic'
  8788. ;;
  8789. xlf* | bgf* | bgxlf* | mpixlf*)
  8790. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8791. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8792. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8793. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8794. if test yes = "$supports_anon_versioning"; then
  8795. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8796. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8797. echo "local: *; };" >> $output_objdir/$libname.ver~
  8798. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8799. fi
  8800. ;;
  8801. esac
  8802. else
  8803. ld_shlibs=no
  8804. fi
  8805. ;;
  8806. netbsd* | netbsdelf*-gnu)
  8807. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8808. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8809. wlarc=
  8810. else
  8811. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8812. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8813. fi
  8814. ;;
  8815. solaris*)
  8816. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8817. ld_shlibs=no
  8818. cat <<_LT_EOF 1>&2
  8819. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8820. *** create shared libraries on Solaris systems. Therefore, libtool
  8821. *** is disabling shared libraries support. We urge you to upgrade GNU
  8822. *** binutils to release 2.9.1 or newer. Another option is to modify
  8823. *** your PATH or compiler configuration so that the native linker is
  8824. *** used, and then restart.
  8825. _LT_EOF
  8826. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8827. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8828. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8829. else
  8830. ld_shlibs=no
  8831. fi
  8832. ;;
  8833. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8834. case `$LD -v 2>&1` in
  8835. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8836. ld_shlibs=no
  8837. cat <<_LT_EOF 1>&2
  8838. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8839. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8840. *** is disabling shared libraries support. We urge you to upgrade GNU
  8841. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8842. *** your PATH or compiler configuration so that the native linker is
  8843. *** used, and then restart.
  8844. _LT_EOF
  8845. ;;
  8846. *)
  8847. # For security reasons, it is highly recommended that you always
  8848. # use absolute paths for naming shared libraries, and exclude the
  8849. # DT_RUNPATH tag from executables and libraries. But doing so
  8850. # requires that you compile everything twice, which is a pain.
  8851. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8852. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8853. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8854. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8855. else
  8856. ld_shlibs=no
  8857. fi
  8858. ;;
  8859. esac
  8860. ;;
  8861. sunos4*)
  8862. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8863. wlarc=
  8864. hardcode_direct=yes
  8865. hardcode_shlibpath_var=no
  8866. ;;
  8867. *)
  8868. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8869. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8870. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8871. else
  8872. ld_shlibs=no
  8873. fi
  8874. ;;
  8875. esac
  8876. if test no = "$ld_shlibs"; then
  8877. runpath_var=
  8878. hardcode_libdir_flag_spec=
  8879. export_dynamic_flag_spec=
  8880. whole_archive_flag_spec=
  8881. fi
  8882. else
  8883. # PORTME fill in a description of your system's linker (not GNU ld)
  8884. case $host_os in
  8885. aix3*)
  8886. allow_undefined_flag=unsupported
  8887. always_export_symbols=yes
  8888. 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'
  8889. # Note: this linker hardcodes the directories in LIBPATH if there
  8890. # are no directories specified by -L.
  8891. hardcode_minus_L=yes
  8892. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8893. # Neither direct hardcoding nor static linking is supported with a
  8894. # broken collect2.
  8895. hardcode_direct=unsupported
  8896. fi
  8897. ;;
  8898. aix[4-9]*)
  8899. if test ia64 = "$host_cpu"; then
  8900. # On IA64, the linker does run time linking by default, so we don't
  8901. # have to do anything special.
  8902. aix_use_runtimelinking=no
  8903. exp_sym_flag='-Bexport'
  8904. no_entry_flag=
  8905. else
  8906. # If we're using GNU nm, then we don't want the "-C" option.
  8907. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8908. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8909. # weak defined symbols like other global defined symbols, whereas
  8910. # GNU nm marks them as "W".
  8911. # While the 'weak' keyword is ignored in the Export File, we need
  8912. # it in the Import File for the 'aix-soname' feature, so we have
  8913. # to replace the "-B" option with "-P" for AIX nm.
  8914. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8915. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8916. else
  8917. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8918. fi
  8919. aix_use_runtimelinking=no
  8920. # Test if we are trying to use run time linking or normal
  8921. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8922. # have runtime linking enabled, and use it for executables.
  8923. # For shared libraries, we enable/disable runtime linking
  8924. # depending on the kind of the shared library created -
  8925. # when "with_aix_soname,aix_use_runtimelinking" is:
  8926. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8927. # "aix,yes" lib.so shared, rtl:yes, for executables
  8928. # lib.a static archive
  8929. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8930. # lib.a(lib.so.V) shared, rtl:no, for executables
  8931. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8932. # lib.a(lib.so.V) shared, rtl:no
  8933. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8934. # lib.a static archive
  8935. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8936. for ld_flag in $LDFLAGS; do
  8937. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8938. aix_use_runtimelinking=yes
  8939. break
  8940. fi
  8941. done
  8942. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8943. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8944. # so we don't have lib.a shared libs to link our executables.
  8945. # We have to force runtime linking in this case.
  8946. aix_use_runtimelinking=yes
  8947. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8948. fi
  8949. ;;
  8950. esac
  8951. exp_sym_flag='-bexport'
  8952. no_entry_flag='-bnoentry'
  8953. fi
  8954. # When large executables or shared objects are built, AIX ld can
  8955. # have problems creating the table of contents. If linking a library
  8956. # or program results in "error TOC overflow" add -mminimal-toc to
  8957. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8958. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8959. archive_cmds=''
  8960. hardcode_direct=yes
  8961. hardcode_direct_absolute=yes
  8962. hardcode_libdir_separator=':'
  8963. link_all_deplibs=yes
  8964. file_list_spec='$wl-f,'
  8965. case $with_aix_soname,$aix_use_runtimelinking in
  8966. aix,*) ;; # traditional, no import file
  8967. svr4,* | *,yes) # use import file
  8968. # The Import File defines what to hardcode.
  8969. hardcode_direct=no
  8970. hardcode_direct_absolute=no
  8971. ;;
  8972. esac
  8973. if test yes = "$GCC"; then
  8974. case $host_os in aix4.[012]|aix4.[012].*)
  8975. # We only want to do this on AIX 4.2 and lower, the check
  8976. # below for broken collect2 doesn't work under 4.3+
  8977. collect2name=`$CC -print-prog-name=collect2`
  8978. if test -f "$collect2name" &&
  8979. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8980. then
  8981. # We have reworked collect2
  8982. :
  8983. else
  8984. # We have old collect2
  8985. hardcode_direct=unsupported
  8986. # It fails to find uninstalled libraries when the uninstalled
  8987. # path is not listed in the libpath. Setting hardcode_minus_L
  8988. # to unsupported forces relinking
  8989. hardcode_minus_L=yes
  8990. hardcode_libdir_flag_spec='-L$libdir'
  8991. hardcode_libdir_separator=
  8992. fi
  8993. ;;
  8994. esac
  8995. shared_flag='-shared'
  8996. if test yes = "$aix_use_runtimelinking"; then
  8997. shared_flag="$shared_flag "'$wl-G'
  8998. fi
  8999. # Need to ensure runtime linking is disabled for the traditional
  9000. # shared library, or the linker may eventually find shared libraries
  9001. # /with/ Import File - we do not want to mix them.
  9002. shared_flag_aix='-shared'
  9003. shared_flag_svr4='-shared $wl-G'
  9004. else
  9005. # not using gcc
  9006. if test ia64 = "$host_cpu"; then
  9007. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9008. # chokes on -Wl,-G. The following line is correct:
  9009. shared_flag='-G'
  9010. else
  9011. if test yes = "$aix_use_runtimelinking"; then
  9012. shared_flag='$wl-G'
  9013. else
  9014. shared_flag='$wl-bM:SRE'
  9015. fi
  9016. shared_flag_aix='$wl-bM:SRE'
  9017. shared_flag_svr4='$wl-G'
  9018. fi
  9019. fi
  9020. export_dynamic_flag_spec='$wl-bexpall'
  9021. # It seems that -bexpall does not export symbols beginning with
  9022. # underscore (_), so it is better to generate a list of symbols to export.
  9023. always_export_symbols=yes
  9024. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9025. # Warning - without using the other runtime loading flags (-brtl),
  9026. # -berok will link without error, but may produce a broken library.
  9027. allow_undefined_flag='-berok'
  9028. # Determine the default libpath from the value encoded in an
  9029. # empty executable.
  9030. if test set = "${lt_cv_aix_libpath+set}"; then
  9031. aix_libpath=$lt_cv_aix_libpath
  9032. else
  9033. if ${lt_cv_aix_libpath_+:} false; then :
  9034. $as_echo_n "(cached) " >&6
  9035. else
  9036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9037. /* end confdefs.h. */
  9038. int
  9039. main ()
  9040. {
  9041. ;
  9042. return 0;
  9043. }
  9044. _ACEOF
  9045. if ac_fn_c_try_link "$LINENO"; then :
  9046. lt_aix_libpath_sed='
  9047. /Import File Strings/,/^$/ {
  9048. /^0/ {
  9049. s/^0 *\([^ ]*\) *$/\1/
  9050. p
  9051. }
  9052. }'
  9053. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9054. # Check for a 64-bit object if we didn't find anything.
  9055. if test -z "$lt_cv_aix_libpath_"; then
  9056. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9057. fi
  9058. fi
  9059. rm -f core conftest.err conftest.$ac_objext \
  9060. conftest$ac_exeext conftest.$ac_ext
  9061. if test -z "$lt_cv_aix_libpath_"; then
  9062. lt_cv_aix_libpath_=/usr/lib:/lib
  9063. fi
  9064. fi
  9065. aix_libpath=$lt_cv_aix_libpath_
  9066. fi
  9067. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9068. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9069. else
  9070. if test ia64 = "$host_cpu"; then
  9071. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9072. allow_undefined_flag="-z nodefs"
  9073. 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"
  9074. else
  9075. # Determine the default libpath from the value encoded in an
  9076. # empty executable.
  9077. if test set = "${lt_cv_aix_libpath+set}"; then
  9078. aix_libpath=$lt_cv_aix_libpath
  9079. else
  9080. if ${lt_cv_aix_libpath_+:} false; then :
  9081. $as_echo_n "(cached) " >&6
  9082. else
  9083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9084. /* end confdefs.h. */
  9085. int
  9086. main ()
  9087. {
  9088. ;
  9089. return 0;
  9090. }
  9091. _ACEOF
  9092. if ac_fn_c_try_link "$LINENO"; then :
  9093. lt_aix_libpath_sed='
  9094. /Import File Strings/,/^$/ {
  9095. /^0/ {
  9096. s/^0 *\([^ ]*\) *$/\1/
  9097. p
  9098. }
  9099. }'
  9100. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9101. # Check for a 64-bit object if we didn't find anything.
  9102. if test -z "$lt_cv_aix_libpath_"; then
  9103. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9104. fi
  9105. fi
  9106. rm -f core conftest.err conftest.$ac_objext \
  9107. conftest$ac_exeext conftest.$ac_ext
  9108. if test -z "$lt_cv_aix_libpath_"; then
  9109. lt_cv_aix_libpath_=/usr/lib:/lib
  9110. fi
  9111. fi
  9112. aix_libpath=$lt_cv_aix_libpath_
  9113. fi
  9114. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9115. # Warning - without using the other run time loading flags,
  9116. # -berok will link without error, but may produce a broken library.
  9117. no_undefined_flag=' $wl-bernotok'
  9118. allow_undefined_flag=' $wl-berok'
  9119. if test yes = "$with_gnu_ld"; then
  9120. # We only use this code for GNU lds that support --whole-archive.
  9121. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9122. else
  9123. # Exported symbols can be pulled into shared objects from archives
  9124. whole_archive_flag_spec='$convenience'
  9125. fi
  9126. archive_cmds_need_lc=yes
  9127. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9128. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9129. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9130. if test svr4 != "$with_aix_soname"; then
  9131. # This is similar to how AIX traditionally builds its shared libraries.
  9132. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9133. fi
  9134. if test aix != "$with_aix_soname"; then
  9135. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9136. else
  9137. # used by -dlpreopen to get the symbols
  9138. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9139. fi
  9140. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9141. fi
  9142. fi
  9143. ;;
  9144. amigaos*)
  9145. case $host_cpu in
  9146. powerpc)
  9147. # see comment about AmigaOS4 .so support
  9148. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9149. archive_expsym_cmds=''
  9150. ;;
  9151. m68k)
  9152. 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)'
  9153. hardcode_libdir_flag_spec='-L$libdir'
  9154. hardcode_minus_L=yes
  9155. ;;
  9156. esac
  9157. ;;
  9158. bsdi[45]*)
  9159. export_dynamic_flag_spec=-rdynamic
  9160. ;;
  9161. cygwin* | mingw* | pw32* | cegcc*)
  9162. # When not using gcc, we currently assume that we are using
  9163. # Microsoft Visual C++.
  9164. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9165. # no search path for DLLs.
  9166. case $cc_basename in
  9167. cl*)
  9168. # Native MSVC
  9169. hardcode_libdir_flag_spec=' '
  9170. allow_undefined_flag=unsupported
  9171. always_export_symbols=yes
  9172. file_list_spec='@'
  9173. # Tell ltmain to make .lib files, not .a files.
  9174. libext=lib
  9175. # Tell ltmain to make .dll files, not .so files.
  9176. shrext_cmds=.dll
  9177. # FIXME: Setting linknames here is a bad hack.
  9178. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9179. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9180. cp "$export_symbols" "$output_objdir/$soname.def";
  9181. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9182. else
  9183. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9184. fi~
  9185. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9186. linknames='
  9187. # The linker will not automatically build a static lib if we build a DLL.
  9188. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9189. enable_shared_with_static_runtimes=yes
  9190. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9191. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9192. # Don't use ranlib
  9193. old_postinstall_cmds='chmod 644 $oldlib'
  9194. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9195. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9196. case $lt_outputfile in
  9197. *.exe|*.EXE) ;;
  9198. *)
  9199. lt_outputfile=$lt_outputfile.exe
  9200. lt_tool_outputfile=$lt_tool_outputfile.exe
  9201. ;;
  9202. esac~
  9203. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9204. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9205. $RM "$lt_outputfile.manifest";
  9206. fi'
  9207. ;;
  9208. *)
  9209. # Assume MSVC wrapper
  9210. hardcode_libdir_flag_spec=' '
  9211. allow_undefined_flag=unsupported
  9212. # Tell ltmain to make .lib files, not .a files.
  9213. libext=lib
  9214. # Tell ltmain to make .dll files, not .so files.
  9215. shrext_cmds=.dll
  9216. # FIXME: Setting linknames here is a bad hack.
  9217. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9218. # The linker will automatically build a .lib file if we build a DLL.
  9219. old_archive_from_new_cmds='true'
  9220. # FIXME: Should let the user specify the lib program.
  9221. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9222. enable_shared_with_static_runtimes=yes
  9223. ;;
  9224. esac
  9225. ;;
  9226. darwin* | rhapsody*)
  9227. archive_cmds_need_lc=no
  9228. hardcode_direct=no
  9229. hardcode_automatic=yes
  9230. hardcode_shlibpath_var=unsupported
  9231. if test yes = "$lt_cv_ld_force_load"; then
  9232. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9233. else
  9234. whole_archive_flag_spec=''
  9235. fi
  9236. link_all_deplibs=yes
  9237. allow_undefined_flag=$_lt_dar_allow_undefined
  9238. case $cc_basename in
  9239. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9240. *) _lt_dar_can_shared=$GCC ;;
  9241. esac
  9242. if test yes = "$_lt_dar_can_shared"; then
  9243. output_verbose_link_cmd=func_echo_all
  9244. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9245. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9246. 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"
  9247. 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"
  9248. else
  9249. ld_shlibs=no
  9250. fi
  9251. ;;
  9252. dgux*)
  9253. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9254. hardcode_libdir_flag_spec='-L$libdir'
  9255. hardcode_shlibpath_var=no
  9256. ;;
  9257. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9258. # support. Future versions do this automatically, but an explicit c++rt0.o
  9259. # does not break anything, and helps significantly (at the cost of a little
  9260. # extra space).
  9261. freebsd2.2*)
  9262. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9263. hardcode_libdir_flag_spec='-R$libdir'
  9264. hardcode_direct=yes
  9265. hardcode_shlibpath_var=no
  9266. ;;
  9267. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9268. freebsd2.*)
  9269. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9270. hardcode_direct=yes
  9271. hardcode_minus_L=yes
  9272. hardcode_shlibpath_var=no
  9273. ;;
  9274. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9275. freebsd* | dragonfly*)
  9276. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9277. hardcode_libdir_flag_spec='-R$libdir'
  9278. hardcode_direct=yes
  9279. hardcode_shlibpath_var=no
  9280. ;;
  9281. hpux9*)
  9282. if test yes = "$GCC"; then
  9283. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9284. else
  9285. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9286. fi
  9287. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9288. hardcode_libdir_separator=:
  9289. hardcode_direct=yes
  9290. # hardcode_minus_L: Not really in the search PATH,
  9291. # but as the default location of the library.
  9292. hardcode_minus_L=yes
  9293. export_dynamic_flag_spec='$wl-E'
  9294. ;;
  9295. hpux10*)
  9296. if test yes,no = "$GCC,$with_gnu_ld"; then
  9297. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9298. else
  9299. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9300. fi
  9301. if test no = "$with_gnu_ld"; then
  9302. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9303. hardcode_libdir_separator=:
  9304. hardcode_direct=yes
  9305. hardcode_direct_absolute=yes
  9306. export_dynamic_flag_spec='$wl-E'
  9307. # hardcode_minus_L: Not really in the search PATH,
  9308. # but as the default location of the library.
  9309. hardcode_minus_L=yes
  9310. fi
  9311. ;;
  9312. hpux11*)
  9313. if test yes,no = "$GCC,$with_gnu_ld"; then
  9314. case $host_cpu in
  9315. hppa*64*)
  9316. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9317. ;;
  9318. ia64*)
  9319. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9320. ;;
  9321. *)
  9322. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9323. ;;
  9324. esac
  9325. else
  9326. case $host_cpu in
  9327. hppa*64*)
  9328. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9329. ;;
  9330. ia64*)
  9331. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9332. ;;
  9333. *)
  9334. # Older versions of the 11.00 compiler do not understand -b yet
  9335. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9337. $as_echo_n "checking if $CC understands -b... " >&6; }
  9338. if ${lt_cv_prog_compiler__b+:} false; then :
  9339. $as_echo_n "(cached) " >&6
  9340. else
  9341. lt_cv_prog_compiler__b=no
  9342. save_LDFLAGS=$LDFLAGS
  9343. LDFLAGS="$LDFLAGS -b"
  9344. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9345. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9346. # The linker can only warn and ignore the option if not recognized
  9347. # So say no if there are warnings
  9348. if test -s conftest.err; then
  9349. # Append any errors to the config.log.
  9350. cat conftest.err 1>&5
  9351. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9352. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9353. if diff conftest.exp conftest.er2 >/dev/null; then
  9354. lt_cv_prog_compiler__b=yes
  9355. fi
  9356. else
  9357. lt_cv_prog_compiler__b=yes
  9358. fi
  9359. fi
  9360. $RM -r conftest*
  9361. LDFLAGS=$save_LDFLAGS
  9362. fi
  9363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9364. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9365. if test yes = "$lt_cv_prog_compiler__b"; then
  9366. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9367. else
  9368. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9369. fi
  9370. ;;
  9371. esac
  9372. fi
  9373. if test no = "$with_gnu_ld"; then
  9374. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9375. hardcode_libdir_separator=:
  9376. case $host_cpu in
  9377. hppa*64*|ia64*)
  9378. hardcode_direct=no
  9379. hardcode_shlibpath_var=no
  9380. ;;
  9381. *)
  9382. hardcode_direct=yes
  9383. hardcode_direct_absolute=yes
  9384. export_dynamic_flag_spec='$wl-E'
  9385. # hardcode_minus_L: Not really in the search PATH,
  9386. # but as the default location of the library.
  9387. hardcode_minus_L=yes
  9388. ;;
  9389. esac
  9390. fi
  9391. ;;
  9392. irix5* | irix6* | nonstopux*)
  9393. if test yes = "$GCC"; then
  9394. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9395. # Try to use the -exported_symbol ld option, if it does not
  9396. # work, assume that -exports_file does not work either and
  9397. # implicitly export all symbols.
  9398. # This should be the same for all languages, so no per-tag cache variable.
  9399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9400. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9401. if ${lt_cv_irix_exported_symbol+:} false; then :
  9402. $as_echo_n "(cached) " >&6
  9403. else
  9404. save_LDFLAGS=$LDFLAGS
  9405. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9407. /* end confdefs.h. */
  9408. int foo (void) { return 0; }
  9409. _ACEOF
  9410. if ac_fn_c_try_link "$LINENO"; then :
  9411. lt_cv_irix_exported_symbol=yes
  9412. else
  9413. lt_cv_irix_exported_symbol=no
  9414. fi
  9415. rm -f core conftest.err conftest.$ac_objext \
  9416. conftest$ac_exeext conftest.$ac_ext
  9417. LDFLAGS=$save_LDFLAGS
  9418. fi
  9419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9420. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9421. if test yes = "$lt_cv_irix_exported_symbol"; then
  9422. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9423. fi
  9424. link_all_deplibs=no
  9425. else
  9426. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9427. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  9428. fi
  9429. archive_cmds_need_lc='no'
  9430. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9431. hardcode_libdir_separator=:
  9432. inherit_rpath=yes
  9433. link_all_deplibs=yes
  9434. ;;
  9435. linux*)
  9436. case $cc_basename in
  9437. tcc*)
  9438. # Fabrice Bellard et al's Tiny C Compiler
  9439. ld_shlibs=yes
  9440. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9441. ;;
  9442. esac
  9443. ;;
  9444. netbsd* | netbsdelf*-gnu)
  9445. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9446. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9447. else
  9448. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9449. fi
  9450. hardcode_libdir_flag_spec='-R$libdir'
  9451. hardcode_direct=yes
  9452. hardcode_shlibpath_var=no
  9453. ;;
  9454. newsos6)
  9455. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9456. hardcode_direct=yes
  9457. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9458. hardcode_libdir_separator=:
  9459. hardcode_shlibpath_var=no
  9460. ;;
  9461. *nto* | *qnx*)
  9462. ;;
  9463. openbsd* | bitrig*)
  9464. if test -f /usr/libexec/ld.so; then
  9465. hardcode_direct=yes
  9466. hardcode_shlibpath_var=no
  9467. hardcode_direct_absolute=yes
  9468. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9469. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9470. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9471. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9472. export_dynamic_flag_spec='$wl-E'
  9473. else
  9474. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9475. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9476. fi
  9477. else
  9478. ld_shlibs=no
  9479. fi
  9480. ;;
  9481. os2*)
  9482. hardcode_libdir_flag_spec='-L$libdir'
  9483. hardcode_minus_L=yes
  9484. allow_undefined_flag=unsupported
  9485. shrext_cmds=.dll
  9486. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9487. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9488. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9489. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9490. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9491. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9492. emximp -o $lib $output_objdir/$libname.def'
  9493. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9494. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9495. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9496. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9497. prefix_cmds="$SED"~
  9498. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9499. prefix_cmds="$prefix_cmds -e 1d";
  9500. fi~
  9501. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9502. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9503. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9504. emximp -o $lib $output_objdir/$libname.def'
  9505. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9506. enable_shared_with_static_runtimes=yes
  9507. ;;
  9508. osf3*)
  9509. if test yes = "$GCC"; then
  9510. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9511. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9512. else
  9513. allow_undefined_flag=' -expect_unresolved \*'
  9514. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9515. fi
  9516. archive_cmds_need_lc='no'
  9517. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9518. hardcode_libdir_separator=:
  9519. ;;
  9520. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9521. if test yes = "$GCC"; then
  9522. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9523. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9524. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9525. else
  9526. allow_undefined_flag=' -expect_unresolved \*'
  9527. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9528. 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~
  9529. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  9530. # Both c and cxx compiler support -rpath directly
  9531. hardcode_libdir_flag_spec='-rpath $libdir'
  9532. fi
  9533. archive_cmds_need_lc='no'
  9534. hardcode_libdir_separator=:
  9535. ;;
  9536. solaris*)
  9537. no_undefined_flag=' -z defs'
  9538. if test yes = "$GCC"; then
  9539. wlarc='$wl'
  9540. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9541. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9542. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9543. else
  9544. case `$CC -V 2>&1` in
  9545. *"Compilers 5.0"*)
  9546. wlarc=''
  9547. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9548. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9549. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9550. ;;
  9551. *)
  9552. wlarc='$wl'
  9553. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9554. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9555. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9556. ;;
  9557. esac
  9558. fi
  9559. hardcode_libdir_flag_spec='-R$libdir'
  9560. hardcode_shlibpath_var=no
  9561. case $host_os in
  9562. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9563. *)
  9564. # The compiler driver will combine and reorder linker options,
  9565. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9566. # but is careful enough not to reorder.
  9567. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9568. if test yes = "$GCC"; then
  9569. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9570. else
  9571. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9572. fi
  9573. ;;
  9574. esac
  9575. link_all_deplibs=yes
  9576. ;;
  9577. sunos4*)
  9578. if test sequent = "$host_vendor"; then
  9579. # Use $CC to link under sequent, because it throws in some extra .o
  9580. # files that make .init and .fini sections work.
  9581. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9582. else
  9583. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9584. fi
  9585. hardcode_libdir_flag_spec='-L$libdir'
  9586. hardcode_direct=yes
  9587. hardcode_minus_L=yes
  9588. hardcode_shlibpath_var=no
  9589. ;;
  9590. sysv4)
  9591. case $host_vendor in
  9592. sni)
  9593. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9594. hardcode_direct=yes # is this really true???
  9595. ;;
  9596. siemens)
  9597. ## LD is ld it makes a PLAMLIB
  9598. ## CC just makes a GrossModule.
  9599. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9600. reload_cmds='$CC -r -o $output$reload_objs'
  9601. hardcode_direct=no
  9602. ;;
  9603. motorola)
  9604. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9605. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9606. ;;
  9607. esac
  9608. runpath_var='LD_RUN_PATH'
  9609. hardcode_shlibpath_var=no
  9610. ;;
  9611. sysv4.3*)
  9612. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9613. hardcode_shlibpath_var=no
  9614. export_dynamic_flag_spec='-Bexport'
  9615. ;;
  9616. sysv4*MP*)
  9617. if test -d /usr/nec; then
  9618. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9619. hardcode_shlibpath_var=no
  9620. runpath_var=LD_RUN_PATH
  9621. hardcode_runpath_var=yes
  9622. ld_shlibs=yes
  9623. fi
  9624. ;;
  9625. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9626. no_undefined_flag='$wl-z,text'
  9627. archive_cmds_need_lc=no
  9628. hardcode_shlibpath_var=no
  9629. runpath_var='LD_RUN_PATH'
  9630. if test yes = "$GCC"; then
  9631. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9632. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9633. else
  9634. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9635. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9636. fi
  9637. ;;
  9638. sysv5* | sco3.2v5* | sco5v6*)
  9639. # Note: We CANNOT use -z defs as we might desire, because we do not
  9640. # link with -lc, and that would cause any symbols used from libc to
  9641. # always be unresolved, which means just about no library would
  9642. # ever link correctly. If we're not using GNU ld we use -z text
  9643. # though, which does catch some bad symbols but isn't as heavy-handed
  9644. # as -z defs.
  9645. no_undefined_flag='$wl-z,text'
  9646. allow_undefined_flag='$wl-z,nodefs'
  9647. archive_cmds_need_lc=no
  9648. hardcode_shlibpath_var=no
  9649. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9650. hardcode_libdir_separator=':'
  9651. link_all_deplibs=yes
  9652. export_dynamic_flag_spec='$wl-Bexport'
  9653. runpath_var='LD_RUN_PATH'
  9654. if test yes = "$GCC"; then
  9655. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9656. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9657. else
  9658. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9659. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9660. fi
  9661. ;;
  9662. uts4*)
  9663. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9664. hardcode_libdir_flag_spec='-L$libdir'
  9665. hardcode_shlibpath_var=no
  9666. ;;
  9667. *)
  9668. ld_shlibs=no
  9669. ;;
  9670. esac
  9671. if test sni = "$host_vendor"; then
  9672. case $host in
  9673. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9674. export_dynamic_flag_spec='$wl-Blargedynsym'
  9675. ;;
  9676. esac
  9677. fi
  9678. fi
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9680. $as_echo "$ld_shlibs" >&6; }
  9681. test no = "$ld_shlibs" && can_build_shared=no
  9682. with_gnu_ld=$with_gnu_ld
  9683. #
  9684. # Do we need to explicitly link libc?
  9685. #
  9686. case "x$archive_cmds_need_lc" in
  9687. x|xyes)
  9688. # Assume -lc should be added
  9689. archive_cmds_need_lc=yes
  9690. if test yes,yes = "$GCC,$enable_shared"; then
  9691. case $archive_cmds in
  9692. *'~'*)
  9693. # FIXME: we may have to deal with multi-command sequences.
  9694. ;;
  9695. '$CC '*)
  9696. # Test whether the compiler implicitly links with -lc since on some
  9697. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9698. # to ld, don't add -lc before -lgcc.
  9699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9700. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9701. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9702. $as_echo_n "(cached) " >&6
  9703. else
  9704. $RM conftest*
  9705. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9706. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9707. (eval $ac_compile) 2>&5
  9708. ac_status=$?
  9709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9710. test $ac_status = 0; } 2>conftest.err; then
  9711. soname=conftest
  9712. lib=conftest
  9713. libobjs=conftest.$ac_objext
  9714. deplibs=
  9715. wl=$lt_prog_compiler_wl
  9716. pic_flag=$lt_prog_compiler_pic
  9717. compiler_flags=-v
  9718. linker_flags=-v
  9719. verstring=
  9720. output_objdir=.
  9721. libname=conftest
  9722. lt_save_allow_undefined_flag=$allow_undefined_flag
  9723. allow_undefined_flag=
  9724. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9725. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9726. ac_status=$?
  9727. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9728. test $ac_status = 0; }
  9729. then
  9730. lt_cv_archive_cmds_need_lc=no
  9731. else
  9732. lt_cv_archive_cmds_need_lc=yes
  9733. fi
  9734. allow_undefined_flag=$lt_save_allow_undefined_flag
  9735. else
  9736. cat conftest.err 1>&5
  9737. fi
  9738. $RM conftest*
  9739. fi
  9740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9741. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9742. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9743. ;;
  9744. esac
  9745. fi
  9746. ;;
  9747. esac
  9748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9749. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9750. if test yes = "$GCC"; then
  9751. case $host_os in
  9752. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9753. *) lt_awk_arg='/^libraries:/' ;;
  9754. esac
  9755. case $host_os in
  9756. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9757. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9758. esac
  9759. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9760. case $lt_search_path_spec in
  9761. *\;*)
  9762. # if the path contains ";" then we assume it to be the separator
  9763. # otherwise default to the standard path separator (i.e. ":") - it is
  9764. # assumed that no part of a normal pathname contains ";" but that should
  9765. # okay in the real world where ";" in dirpaths is itself problematic.
  9766. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9767. ;;
  9768. *)
  9769. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9770. ;;
  9771. esac
  9772. # Ok, now we have the path, separated by spaces, we can step through it
  9773. # and add multilib dir if necessary...
  9774. lt_tmp_lt_search_path_spec=
  9775. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9776. # ...but if some path component already ends with the multilib dir we assume
  9777. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9778. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9779. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9780. lt_multi_os_dir=
  9781. ;;
  9782. esac
  9783. for lt_sys_path in $lt_search_path_spec; do
  9784. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9785. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9786. elif test -n "$lt_multi_os_dir"; then
  9787. test -d "$lt_sys_path" && \
  9788. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9789. fi
  9790. done
  9791. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9792. BEGIN {RS = " "; FS = "/|\n";} {
  9793. lt_foo = "";
  9794. lt_count = 0;
  9795. for (lt_i = NF; lt_i > 0; lt_i--) {
  9796. if ($lt_i != "" && $lt_i != ".") {
  9797. if ($lt_i == "..") {
  9798. lt_count++;
  9799. } else {
  9800. if (lt_count == 0) {
  9801. lt_foo = "/" $lt_i lt_foo;
  9802. } else {
  9803. lt_count--;
  9804. }
  9805. }
  9806. }
  9807. }
  9808. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9809. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9810. }'`
  9811. # AWK program above erroneously prepends '/' to C:/dos/paths
  9812. # for these hosts.
  9813. case $host_os in
  9814. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9815. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9816. esac
  9817. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9818. else
  9819. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9820. fi
  9821. library_names_spec=
  9822. libname_spec='lib$name'
  9823. soname_spec=
  9824. shrext_cmds=.so
  9825. postinstall_cmds=
  9826. postuninstall_cmds=
  9827. finish_cmds=
  9828. finish_eval=
  9829. shlibpath_var=
  9830. shlibpath_overrides_runpath=unknown
  9831. version_type=none
  9832. dynamic_linker="$host_os ld.so"
  9833. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9834. need_lib_prefix=unknown
  9835. hardcode_into_libs=no
  9836. # when you set need_version to no, make sure it does not cause -set_version
  9837. # flags to be left without arguments
  9838. need_version=unknown
  9839. case $host_os in
  9840. aix3*)
  9841. version_type=linux # correct to gnu/linux during the next big refactor
  9842. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9843. shlibpath_var=LIBPATH
  9844. # AIX 3 has no versioning support, so we append a major version to the name.
  9845. soname_spec='$libname$release$shared_ext$major'
  9846. ;;
  9847. aix[4-9]*)
  9848. version_type=linux # correct to gnu/linux during the next big refactor
  9849. need_lib_prefix=no
  9850. need_version=no
  9851. hardcode_into_libs=yes
  9852. if test ia64 = "$host_cpu"; then
  9853. # AIX 5 supports IA64
  9854. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9855. shlibpath_var=LD_LIBRARY_PATH
  9856. else
  9857. # With GCC up to 2.95.x, collect2 would create an import file
  9858. # for dependence libraries. The import file would start with
  9859. # the line '#! .'. This would cause the generated library to
  9860. # depend on '.', always an invalid library. This was fixed in
  9861. # development snapshots of GCC prior to 3.0.
  9862. case $host_os in
  9863. aix4 | aix4.[01] | aix4.[01].*)
  9864. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9865. echo ' yes '
  9866. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9867. :
  9868. else
  9869. can_build_shared=no
  9870. fi
  9871. ;;
  9872. esac
  9873. # Using Import Files as archive members, it is possible to support
  9874. # filename-based versioning of shared library archives on AIX. While
  9875. # this would work for both with and without runtime linking, it will
  9876. # prevent static linking of such archives. So we do filename-based
  9877. # shared library versioning with .so extension only, which is used
  9878. # when both runtime linking and shared linking is enabled.
  9879. # Unfortunately, runtime linking may impact performance, so we do
  9880. # not want this to be the default eventually. Also, we use the
  9881. # versioned .so libs for executables only if there is the -brtl
  9882. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9883. # To allow for filename-based versioning support, we need to create
  9884. # libNAME.so.V as an archive file, containing:
  9885. # *) an Import File, referring to the versioned filename of the
  9886. # archive as well as the shared archive member, telling the
  9887. # bitwidth (32 or 64) of that shared object, and providing the
  9888. # list of exported symbols of that shared object, eventually
  9889. # decorated with the 'weak' keyword
  9890. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9891. # it being seen by the linker.
  9892. # At run time we better use the real file rather than another symlink,
  9893. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9894. case $with_aix_soname,$aix_use_runtimelinking in
  9895. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9896. # soname into executable. Probably we can add versioning support to
  9897. # collect2, so additional links can be useful in future.
  9898. aix,yes) # traditional libtool
  9899. dynamic_linker='AIX unversionable lib.so'
  9900. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9901. # instead of lib<name>.a to let people know that these are not
  9902. # typical AIX shared libraries.
  9903. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9904. ;;
  9905. aix,no) # traditional AIX only
  9906. dynamic_linker='AIX lib.a(lib.so.V)'
  9907. # We preserve .a as extension for shared libraries through AIX4.2
  9908. # and later when we are not doing run time linking.
  9909. library_names_spec='$libname$release.a $libname.a'
  9910. soname_spec='$libname$release$shared_ext$major'
  9911. ;;
  9912. svr4,*) # full svr4 only
  9913. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9914. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9915. # We do not specify a path in Import Files, so LIBPATH fires.
  9916. shlibpath_overrides_runpath=yes
  9917. ;;
  9918. *,yes) # both, prefer svr4
  9919. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9920. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9921. # unpreferred sharedlib libNAME.a needs extra handling
  9922. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9923. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9924. # We do not specify a path in Import Files, so LIBPATH fires.
  9925. shlibpath_overrides_runpath=yes
  9926. ;;
  9927. *,no) # both, prefer aix
  9928. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9929. library_names_spec='$libname$release.a $libname.a'
  9930. soname_spec='$libname$release$shared_ext$major'
  9931. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9932. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9933. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9934. ;;
  9935. esac
  9936. shlibpath_var=LIBPATH
  9937. fi
  9938. ;;
  9939. amigaos*)
  9940. case $host_cpu in
  9941. powerpc)
  9942. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9943. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9944. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9945. ;;
  9946. m68k)
  9947. library_names_spec='$libname.ixlibrary $libname.a'
  9948. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9949. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  9950. ;;
  9951. esac
  9952. ;;
  9953. beos*)
  9954. library_names_spec='$libname$shared_ext'
  9955. dynamic_linker="$host_os ld.so"
  9956. shlibpath_var=LIBRARY_PATH
  9957. ;;
  9958. bsdi[45]*)
  9959. version_type=linux # correct to gnu/linux during the next big refactor
  9960. need_version=no
  9961. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9962. soname_spec='$libname$release$shared_ext$major'
  9963. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9964. shlibpath_var=LD_LIBRARY_PATH
  9965. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9966. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9967. # the default ld.so.conf also contains /usr/contrib/lib and
  9968. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9969. # libtool to hard-code these into programs
  9970. ;;
  9971. cygwin* | mingw* | pw32* | cegcc*)
  9972. version_type=windows
  9973. shrext_cmds=.dll
  9974. need_version=no
  9975. need_lib_prefix=no
  9976. case $GCC,$cc_basename in
  9977. yes,*)
  9978. # gcc
  9979. library_names_spec='$libname.dll.a'
  9980. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9981. postinstall_cmds='base_file=`basename \$file`~
  9982. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9983. dldir=$destdir/`dirname \$dlpath`~
  9984. test -d \$dldir || mkdir -p \$dldir~
  9985. $install_prog $dir/$dlname \$dldir/$dlname~
  9986. chmod a+x \$dldir/$dlname~
  9987. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9988. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9989. fi'
  9990. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9991. dlpath=$dir/\$dldll~
  9992. $RM \$dlpath'
  9993. shlibpath_overrides_runpath=yes
  9994. case $host_os in
  9995. cygwin*)
  9996. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9997. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9998. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9999. ;;
  10000. mingw* | cegcc*)
  10001. # MinGW DLLs use traditional 'lib' prefix
  10002. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10003. ;;
  10004. pw32*)
  10005. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10006. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10007. ;;
  10008. esac
  10009. dynamic_linker='Win32 ld.exe'
  10010. ;;
  10011. *,cl*)
  10012. # Native MSVC
  10013. libname_spec='$name'
  10014. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10015. library_names_spec='$libname.dll.lib'
  10016. case $build_os in
  10017. mingw*)
  10018. sys_lib_search_path_spec=
  10019. lt_save_ifs=$IFS
  10020. IFS=';'
  10021. for lt_path in $LIB
  10022. do
  10023. IFS=$lt_save_ifs
  10024. # Let DOS variable expansion print the short 8.3 style file name.
  10025. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10026. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10027. done
  10028. IFS=$lt_save_ifs
  10029. # Convert to MSYS style.
  10030. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10031. ;;
  10032. cygwin*)
  10033. # Convert to unix form, then to dos form, then back to unix form
  10034. # but this time dos style (no spaces!) so that the unix form looks
  10035. # like /cygdrive/c/PROGRA~1:/cygdr...
  10036. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10037. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10038. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10039. ;;
  10040. *)
  10041. sys_lib_search_path_spec=$LIB
  10042. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10043. # It is most probably a Windows format PATH.
  10044. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10045. else
  10046. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10047. fi
  10048. # FIXME: find the short name or the path components, as spaces are
  10049. # common. (e.g. "Program Files" -> "PROGRA~1")
  10050. ;;
  10051. esac
  10052. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10053. postinstall_cmds='base_file=`basename \$file`~
  10054. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10055. dldir=$destdir/`dirname \$dlpath`~
  10056. test -d \$dldir || mkdir -p \$dldir~
  10057. $install_prog $dir/$dlname \$dldir/$dlname'
  10058. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10059. dlpath=$dir/\$dldll~
  10060. $RM \$dlpath'
  10061. shlibpath_overrides_runpath=yes
  10062. dynamic_linker='Win32 link.exe'
  10063. ;;
  10064. *)
  10065. # Assume MSVC wrapper
  10066. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10067. dynamic_linker='Win32 ld.exe'
  10068. ;;
  10069. esac
  10070. # FIXME: first we should search . and the directory the executable is in
  10071. shlibpath_var=PATH
  10072. ;;
  10073. darwin* | rhapsody*)
  10074. dynamic_linker="$host_os dyld"
  10075. version_type=darwin
  10076. need_lib_prefix=no
  10077. need_version=no
  10078. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10079. soname_spec='$libname$release$major$shared_ext'
  10080. shlibpath_overrides_runpath=yes
  10081. shlibpath_var=DYLD_LIBRARY_PATH
  10082. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10083. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10084. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10085. ;;
  10086. dgux*)
  10087. version_type=linux # correct to gnu/linux during the next big refactor
  10088. need_lib_prefix=no
  10089. need_version=no
  10090. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10091. soname_spec='$libname$release$shared_ext$major'
  10092. shlibpath_var=LD_LIBRARY_PATH
  10093. ;;
  10094. freebsd* | dragonfly*)
  10095. # DragonFly does not have aout. When/if they implement a new
  10096. # versioning mechanism, adjust this.
  10097. if test -x /usr/bin/objformat; then
  10098. objformat=`/usr/bin/objformat`
  10099. else
  10100. case $host_os in
  10101. freebsd[23].*) objformat=aout ;;
  10102. *) objformat=elf ;;
  10103. esac
  10104. fi
  10105. version_type=freebsd-$objformat
  10106. case $version_type in
  10107. freebsd-elf*)
  10108. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10109. soname_spec='$libname$release$shared_ext$major'
  10110. need_version=no
  10111. need_lib_prefix=no
  10112. ;;
  10113. freebsd-*)
  10114. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10115. need_version=yes
  10116. ;;
  10117. esac
  10118. shlibpath_var=LD_LIBRARY_PATH
  10119. case $host_os in
  10120. freebsd2.*)
  10121. shlibpath_overrides_runpath=yes
  10122. ;;
  10123. freebsd3.[01]* | freebsdelf3.[01]*)
  10124. shlibpath_overrides_runpath=yes
  10125. hardcode_into_libs=yes
  10126. ;;
  10127. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10128. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10129. shlibpath_overrides_runpath=no
  10130. hardcode_into_libs=yes
  10131. ;;
  10132. *) # from 4.6 on, and DragonFly
  10133. shlibpath_overrides_runpath=yes
  10134. hardcode_into_libs=yes
  10135. ;;
  10136. esac
  10137. ;;
  10138. haiku*)
  10139. version_type=linux # correct to gnu/linux during the next big refactor
  10140. need_lib_prefix=no
  10141. need_version=no
  10142. dynamic_linker="$host_os runtime_loader"
  10143. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10144. soname_spec='$libname$release$shared_ext$major'
  10145. shlibpath_var=LIBRARY_PATH
  10146. shlibpath_overrides_runpath=no
  10147. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10148. hardcode_into_libs=yes
  10149. ;;
  10150. hpux9* | hpux10* | hpux11*)
  10151. # Give a soname corresponding to the major version so that dld.sl refuses to
  10152. # link against other versions.
  10153. version_type=sunos
  10154. need_lib_prefix=no
  10155. need_version=no
  10156. case $host_cpu in
  10157. ia64*)
  10158. shrext_cmds='.so'
  10159. hardcode_into_libs=yes
  10160. dynamic_linker="$host_os dld.so"
  10161. shlibpath_var=LD_LIBRARY_PATH
  10162. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10163. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10164. soname_spec='$libname$release$shared_ext$major'
  10165. if test 32 = "$HPUX_IA64_MODE"; then
  10166. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10167. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10168. else
  10169. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10170. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10171. fi
  10172. ;;
  10173. hppa*64*)
  10174. shrext_cmds='.sl'
  10175. hardcode_into_libs=yes
  10176. dynamic_linker="$host_os dld.sl"
  10177. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10178. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10179. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10180. soname_spec='$libname$release$shared_ext$major'
  10181. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10182. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10183. ;;
  10184. *)
  10185. shrext_cmds='.sl'
  10186. dynamic_linker="$host_os dld.sl"
  10187. shlibpath_var=SHLIB_PATH
  10188. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10189. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10190. soname_spec='$libname$release$shared_ext$major'
  10191. ;;
  10192. esac
  10193. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10194. postinstall_cmds='chmod 555 $lib'
  10195. # or fails outright, so override atomically:
  10196. install_override_mode=555
  10197. ;;
  10198. interix[3-9]*)
  10199. version_type=linux # correct to gnu/linux during the next big refactor
  10200. need_lib_prefix=no
  10201. need_version=no
  10202. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10203. soname_spec='$libname$release$shared_ext$major'
  10204. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10205. shlibpath_var=LD_LIBRARY_PATH
  10206. shlibpath_overrides_runpath=no
  10207. hardcode_into_libs=yes
  10208. ;;
  10209. irix5* | irix6* | nonstopux*)
  10210. case $host_os in
  10211. nonstopux*) version_type=nonstopux ;;
  10212. *)
  10213. if test yes = "$lt_cv_prog_gnu_ld"; then
  10214. version_type=linux # correct to gnu/linux during the next big refactor
  10215. else
  10216. version_type=irix
  10217. fi ;;
  10218. esac
  10219. need_lib_prefix=no
  10220. need_version=no
  10221. soname_spec='$libname$release$shared_ext$major'
  10222. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10223. case $host_os in
  10224. irix5* | nonstopux*)
  10225. libsuff= shlibsuff=
  10226. ;;
  10227. *)
  10228. case $LD in # libtool.m4 will add one of these switches to LD
  10229. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10230. libsuff= shlibsuff= libmagic=32-bit;;
  10231. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10232. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10233. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10234. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10235. *) libsuff= shlibsuff= libmagic=never-match;;
  10236. esac
  10237. ;;
  10238. esac
  10239. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10240. shlibpath_overrides_runpath=no
  10241. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10242. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10243. hardcode_into_libs=yes
  10244. ;;
  10245. # No shared lib support for Linux oldld, aout, or coff.
  10246. linux*oldld* | linux*aout* | linux*coff*)
  10247. dynamic_linker=no
  10248. ;;
  10249. linux*android*)
  10250. version_type=none # Android doesn't support versioned libraries.
  10251. need_lib_prefix=no
  10252. need_version=no
  10253. library_names_spec='$libname$release$shared_ext'
  10254. soname_spec='$libname$release$shared_ext'
  10255. finish_cmds=
  10256. shlibpath_var=LD_LIBRARY_PATH
  10257. shlibpath_overrides_runpath=yes
  10258. # This implies no fast_install, which is unacceptable.
  10259. # Some rework will be needed to allow for fast_install
  10260. # before this can be enabled.
  10261. hardcode_into_libs=yes
  10262. dynamic_linker='Android linker'
  10263. # Don't embed -rpath directories since the linker doesn't support them.
  10264. hardcode_libdir_flag_spec='-L$libdir'
  10265. ;;
  10266. # This must be glibc/ELF.
  10267. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10268. version_type=linux # correct to gnu/linux during the next big refactor
  10269. need_lib_prefix=no
  10270. need_version=no
  10271. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10272. soname_spec='$libname$release$shared_ext$major'
  10273. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10274. shlibpath_var=LD_LIBRARY_PATH
  10275. shlibpath_overrides_runpath=no
  10276. # Some binutils ld are patched to set DT_RUNPATH
  10277. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10278. $as_echo_n "(cached) " >&6
  10279. else
  10280. lt_cv_shlibpath_overrides_runpath=no
  10281. save_LDFLAGS=$LDFLAGS
  10282. save_libdir=$libdir
  10283. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10284. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10286. /* end confdefs.h. */
  10287. int
  10288. main ()
  10289. {
  10290. ;
  10291. return 0;
  10292. }
  10293. _ACEOF
  10294. if ac_fn_c_try_link "$LINENO"; then :
  10295. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10296. lt_cv_shlibpath_overrides_runpath=yes
  10297. fi
  10298. fi
  10299. rm -f core conftest.err conftest.$ac_objext \
  10300. conftest$ac_exeext conftest.$ac_ext
  10301. LDFLAGS=$save_LDFLAGS
  10302. libdir=$save_libdir
  10303. fi
  10304. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10305. # This implies no fast_install, which is unacceptable.
  10306. # Some rework will be needed to allow for fast_install
  10307. # before this can be enabled.
  10308. hardcode_into_libs=yes
  10309. # Ideally, we could use ldconfig to report *all* directores which are
  10310. # searched for libraries, however this is still not possible. Aside from not
  10311. # being certain /sbin/ldconfig is available, command
  10312. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10313. # even though it is searched at run-time. Try to do the best guess by
  10314. # appending ld.so.conf contents (and includes) to the search path.
  10315. if test -f /etc/ld.so.conf; then
  10316. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10317. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10318. fi
  10319. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10320. # powerpc, because MkLinux only supported shared libraries with the
  10321. # GNU dynamic linker. Since this was broken with cross compilers,
  10322. # most powerpc-linux boxes support dynamic linking these days and
  10323. # people can always --disable-shared, the test was removed, and we
  10324. # assume the GNU/Linux dynamic linker is in use.
  10325. dynamic_linker='GNU/Linux ld.so'
  10326. ;;
  10327. netbsdelf*-gnu)
  10328. version_type=linux
  10329. need_lib_prefix=no
  10330. need_version=no
  10331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10332. soname_spec='${libname}${release}${shared_ext}$major'
  10333. shlibpath_var=LD_LIBRARY_PATH
  10334. shlibpath_overrides_runpath=no
  10335. hardcode_into_libs=yes
  10336. dynamic_linker='NetBSD ld.elf_so'
  10337. ;;
  10338. netbsd*)
  10339. version_type=sunos
  10340. need_lib_prefix=no
  10341. need_version=no
  10342. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10343. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10344. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10345. dynamic_linker='NetBSD (a.out) ld.so'
  10346. else
  10347. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10348. soname_spec='$libname$release$shared_ext$major'
  10349. dynamic_linker='NetBSD ld.elf_so'
  10350. fi
  10351. shlibpath_var=LD_LIBRARY_PATH
  10352. shlibpath_overrides_runpath=yes
  10353. hardcode_into_libs=yes
  10354. ;;
  10355. newsos6)
  10356. version_type=linux # correct to gnu/linux during the next big refactor
  10357. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10358. shlibpath_var=LD_LIBRARY_PATH
  10359. shlibpath_overrides_runpath=yes
  10360. ;;
  10361. *nto* | *qnx*)
  10362. version_type=qnx
  10363. need_lib_prefix=no
  10364. need_version=no
  10365. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10366. soname_spec='$libname$release$shared_ext$major'
  10367. shlibpath_var=LD_LIBRARY_PATH
  10368. shlibpath_overrides_runpath=no
  10369. hardcode_into_libs=yes
  10370. dynamic_linker='ldqnx.so'
  10371. ;;
  10372. openbsd* | bitrig*)
  10373. version_type=sunos
  10374. sys_lib_dlsearch_path_spec=/usr/lib
  10375. need_lib_prefix=no
  10376. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10377. need_version=no
  10378. else
  10379. need_version=yes
  10380. fi
  10381. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10382. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10383. shlibpath_var=LD_LIBRARY_PATH
  10384. shlibpath_overrides_runpath=yes
  10385. ;;
  10386. os2*)
  10387. libname_spec='$name'
  10388. version_type=windows
  10389. shrext_cmds=.dll
  10390. need_version=no
  10391. need_lib_prefix=no
  10392. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10393. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10394. v=$($ECHO $release$versuffix | tr -d .-);
  10395. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10396. $ECHO $n$v`$shared_ext'
  10397. library_names_spec='${libname}_dll.$libext'
  10398. dynamic_linker='OS/2 ld.exe'
  10399. shlibpath_var=BEGINLIBPATH
  10400. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10401. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10402. postinstall_cmds='base_file=`basename \$file`~
  10403. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10404. dldir=$destdir/`dirname \$dlpath`~
  10405. test -d \$dldir || mkdir -p \$dldir~
  10406. $install_prog $dir/$dlname \$dldir/$dlname~
  10407. chmod a+x \$dldir/$dlname~
  10408. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10409. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10410. fi'
  10411. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10412. dlpath=$dir/\$dldll~
  10413. $RM \$dlpath'
  10414. ;;
  10415. osf3* | osf4* | osf5*)
  10416. version_type=osf
  10417. need_lib_prefix=no
  10418. need_version=no
  10419. soname_spec='$libname$release$shared_ext$major'
  10420. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10421. shlibpath_var=LD_LIBRARY_PATH
  10422. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10423. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10424. ;;
  10425. rdos*)
  10426. dynamic_linker=no
  10427. ;;
  10428. solaris*)
  10429. version_type=linux # correct to gnu/linux during the next big refactor
  10430. need_lib_prefix=no
  10431. need_version=no
  10432. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10433. soname_spec='$libname$release$shared_ext$major'
  10434. shlibpath_var=LD_LIBRARY_PATH
  10435. shlibpath_overrides_runpath=yes
  10436. hardcode_into_libs=yes
  10437. # ldd complains unless libraries are executable
  10438. postinstall_cmds='chmod +x $lib'
  10439. ;;
  10440. sunos4*)
  10441. version_type=sunos
  10442. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10443. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10444. shlibpath_var=LD_LIBRARY_PATH
  10445. shlibpath_overrides_runpath=yes
  10446. if test yes = "$with_gnu_ld"; then
  10447. need_lib_prefix=no
  10448. fi
  10449. need_version=yes
  10450. ;;
  10451. sysv4 | sysv4.3*)
  10452. version_type=linux # correct to gnu/linux during the next big refactor
  10453. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10454. soname_spec='$libname$release$shared_ext$major'
  10455. shlibpath_var=LD_LIBRARY_PATH
  10456. case $host_vendor in
  10457. sni)
  10458. shlibpath_overrides_runpath=no
  10459. need_lib_prefix=no
  10460. runpath_var=LD_RUN_PATH
  10461. ;;
  10462. siemens)
  10463. need_lib_prefix=no
  10464. ;;
  10465. motorola)
  10466. need_lib_prefix=no
  10467. need_version=no
  10468. shlibpath_overrides_runpath=no
  10469. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10470. ;;
  10471. esac
  10472. ;;
  10473. sysv4*MP*)
  10474. if test -d /usr/nec; then
  10475. version_type=linux # correct to gnu/linux during the next big refactor
  10476. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10477. soname_spec='$libname$shared_ext.$major'
  10478. shlibpath_var=LD_LIBRARY_PATH
  10479. fi
  10480. ;;
  10481. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10482. version_type=sco
  10483. need_lib_prefix=no
  10484. need_version=no
  10485. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10486. soname_spec='$libname$release$shared_ext$major'
  10487. shlibpath_var=LD_LIBRARY_PATH
  10488. shlibpath_overrides_runpath=yes
  10489. hardcode_into_libs=yes
  10490. if test yes = "$with_gnu_ld"; then
  10491. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10492. else
  10493. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10494. case $host_os in
  10495. sco3.2v5*)
  10496. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10497. ;;
  10498. esac
  10499. fi
  10500. sys_lib_dlsearch_path_spec='/usr/lib'
  10501. ;;
  10502. tpf*)
  10503. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10504. version_type=linux # correct to gnu/linux during the next big refactor
  10505. need_lib_prefix=no
  10506. need_version=no
  10507. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10508. shlibpath_var=LD_LIBRARY_PATH
  10509. shlibpath_overrides_runpath=no
  10510. hardcode_into_libs=yes
  10511. ;;
  10512. uts4*)
  10513. version_type=linux # correct to gnu/linux during the next big refactor
  10514. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10515. soname_spec='$libname$release$shared_ext$major'
  10516. shlibpath_var=LD_LIBRARY_PATH
  10517. ;;
  10518. *)
  10519. dynamic_linker=no
  10520. ;;
  10521. esac
  10522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10523. $as_echo "$dynamic_linker" >&6; }
  10524. test no = "$dynamic_linker" && can_build_shared=no
  10525. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10526. if test yes = "$GCC"; then
  10527. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10528. fi
  10529. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10530. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10531. fi
  10532. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10533. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10534. fi
  10535. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10536. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10537. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10538. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10539. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10540. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10542. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10543. hardcode_action=
  10544. if test -n "$hardcode_libdir_flag_spec" ||
  10545. test -n "$runpath_var" ||
  10546. test yes = "$hardcode_automatic"; then
  10547. # We can hardcode non-existent directories.
  10548. if test no != "$hardcode_direct" &&
  10549. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10550. # have to relink, otherwise we might link with an installed library
  10551. # when we should be linking with a yet-to-be-installed one
  10552. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10553. test no != "$hardcode_minus_L"; then
  10554. # Linking always hardcodes the temporary library directory.
  10555. hardcode_action=relink
  10556. else
  10557. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10558. hardcode_action=immediate
  10559. fi
  10560. else
  10561. # We cannot hardcode anything, or else we can only hardcode existing
  10562. # directories.
  10563. hardcode_action=unsupported
  10564. fi
  10565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10566. $as_echo "$hardcode_action" >&6; }
  10567. if test relink = "$hardcode_action" ||
  10568. test yes = "$inherit_rpath"; then
  10569. # Fast installation is not supported
  10570. enable_fast_install=no
  10571. elif test yes = "$shlibpath_overrides_runpath" ||
  10572. test no = "$enable_shared"; then
  10573. # Fast installation is not necessary
  10574. enable_fast_install=needless
  10575. fi
  10576. if test yes != "$enable_dlopen"; then
  10577. enable_dlopen=unknown
  10578. enable_dlopen_self=unknown
  10579. enable_dlopen_self_static=unknown
  10580. else
  10581. lt_cv_dlopen=no
  10582. lt_cv_dlopen_libs=
  10583. case $host_os in
  10584. beos*)
  10585. lt_cv_dlopen=load_add_on
  10586. lt_cv_dlopen_libs=
  10587. lt_cv_dlopen_self=yes
  10588. ;;
  10589. mingw* | pw32* | cegcc*)
  10590. lt_cv_dlopen=LoadLibrary
  10591. lt_cv_dlopen_libs=
  10592. ;;
  10593. cygwin*)
  10594. lt_cv_dlopen=dlopen
  10595. lt_cv_dlopen_libs=
  10596. ;;
  10597. darwin*)
  10598. # if libdl is installed we need to link against it
  10599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10600. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10601. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10602. $as_echo_n "(cached) " >&6
  10603. else
  10604. ac_check_lib_save_LIBS=$LIBS
  10605. LIBS="-ldl $LIBS"
  10606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10607. /* end confdefs.h. */
  10608. /* Override any GCC internal prototype to avoid an error.
  10609. Use char because int might match the return type of a GCC
  10610. builtin and then its argument prototype would still apply. */
  10611. #ifdef __cplusplus
  10612. extern "C"
  10613. #endif
  10614. char dlopen ();
  10615. int
  10616. main ()
  10617. {
  10618. return dlopen ();
  10619. ;
  10620. return 0;
  10621. }
  10622. _ACEOF
  10623. if ac_fn_c_try_link "$LINENO"; then :
  10624. ac_cv_lib_dl_dlopen=yes
  10625. else
  10626. ac_cv_lib_dl_dlopen=no
  10627. fi
  10628. rm -f core conftest.err conftest.$ac_objext \
  10629. conftest$ac_exeext conftest.$ac_ext
  10630. LIBS=$ac_check_lib_save_LIBS
  10631. fi
  10632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10633. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10634. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10635. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10636. else
  10637. lt_cv_dlopen=dyld
  10638. lt_cv_dlopen_libs=
  10639. lt_cv_dlopen_self=yes
  10640. fi
  10641. ;;
  10642. tpf*)
  10643. # Don't try to run any link tests for TPF. We know it's impossible
  10644. # because TPF is a cross-compiler, and we know how we open DSOs.
  10645. lt_cv_dlopen=dlopen
  10646. lt_cv_dlopen_libs=
  10647. lt_cv_dlopen_self=no
  10648. ;;
  10649. *)
  10650. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10651. if test "x$ac_cv_func_shl_load" = xyes; then :
  10652. lt_cv_dlopen=shl_load
  10653. else
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10655. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10656. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10657. $as_echo_n "(cached) " >&6
  10658. else
  10659. ac_check_lib_save_LIBS=$LIBS
  10660. LIBS="-ldld $LIBS"
  10661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10662. /* end confdefs.h. */
  10663. /* Override any GCC internal prototype to avoid an error.
  10664. Use char because int might match the return type of a GCC
  10665. builtin and then its argument prototype would still apply. */
  10666. #ifdef __cplusplus
  10667. extern "C"
  10668. #endif
  10669. char shl_load ();
  10670. int
  10671. main ()
  10672. {
  10673. return shl_load ();
  10674. ;
  10675. return 0;
  10676. }
  10677. _ACEOF
  10678. if ac_fn_c_try_link "$LINENO"; then :
  10679. ac_cv_lib_dld_shl_load=yes
  10680. else
  10681. ac_cv_lib_dld_shl_load=no
  10682. fi
  10683. rm -f core conftest.err conftest.$ac_objext \
  10684. conftest$ac_exeext conftest.$ac_ext
  10685. LIBS=$ac_check_lib_save_LIBS
  10686. fi
  10687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10688. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10689. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10690. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10691. else
  10692. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10693. if test "x$ac_cv_func_dlopen" = xyes; then :
  10694. lt_cv_dlopen=dlopen
  10695. else
  10696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10697. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10698. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10699. $as_echo_n "(cached) " >&6
  10700. else
  10701. ac_check_lib_save_LIBS=$LIBS
  10702. LIBS="-ldl $LIBS"
  10703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10704. /* end confdefs.h. */
  10705. /* Override any GCC internal prototype to avoid an error.
  10706. Use char because int might match the return type of a GCC
  10707. builtin and then its argument prototype would still apply. */
  10708. #ifdef __cplusplus
  10709. extern "C"
  10710. #endif
  10711. char dlopen ();
  10712. int
  10713. main ()
  10714. {
  10715. return dlopen ();
  10716. ;
  10717. return 0;
  10718. }
  10719. _ACEOF
  10720. if ac_fn_c_try_link "$LINENO"; then :
  10721. ac_cv_lib_dl_dlopen=yes
  10722. else
  10723. ac_cv_lib_dl_dlopen=no
  10724. fi
  10725. rm -f core conftest.err conftest.$ac_objext \
  10726. conftest$ac_exeext conftest.$ac_ext
  10727. LIBS=$ac_check_lib_save_LIBS
  10728. fi
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10730. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10731. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10732. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10733. else
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10735. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10736. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10737. $as_echo_n "(cached) " >&6
  10738. else
  10739. ac_check_lib_save_LIBS=$LIBS
  10740. LIBS="-lsvld $LIBS"
  10741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10742. /* end confdefs.h. */
  10743. /* Override any GCC internal prototype to avoid an error.
  10744. Use char because int might match the return type of a GCC
  10745. builtin and then its argument prototype would still apply. */
  10746. #ifdef __cplusplus
  10747. extern "C"
  10748. #endif
  10749. char dlopen ();
  10750. int
  10751. main ()
  10752. {
  10753. return dlopen ();
  10754. ;
  10755. return 0;
  10756. }
  10757. _ACEOF
  10758. if ac_fn_c_try_link "$LINENO"; then :
  10759. ac_cv_lib_svld_dlopen=yes
  10760. else
  10761. ac_cv_lib_svld_dlopen=no
  10762. fi
  10763. rm -f core conftest.err conftest.$ac_objext \
  10764. conftest$ac_exeext conftest.$ac_ext
  10765. LIBS=$ac_check_lib_save_LIBS
  10766. fi
  10767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10768. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10769. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10770. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10771. else
  10772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10773. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10774. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10775. $as_echo_n "(cached) " >&6
  10776. else
  10777. ac_check_lib_save_LIBS=$LIBS
  10778. LIBS="-ldld $LIBS"
  10779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10780. /* end confdefs.h. */
  10781. /* Override any GCC internal prototype to avoid an error.
  10782. Use char because int might match the return type of a GCC
  10783. builtin and then its argument prototype would still apply. */
  10784. #ifdef __cplusplus
  10785. extern "C"
  10786. #endif
  10787. char dld_link ();
  10788. int
  10789. main ()
  10790. {
  10791. return dld_link ();
  10792. ;
  10793. return 0;
  10794. }
  10795. _ACEOF
  10796. if ac_fn_c_try_link "$LINENO"; then :
  10797. ac_cv_lib_dld_dld_link=yes
  10798. else
  10799. ac_cv_lib_dld_dld_link=no
  10800. fi
  10801. rm -f core conftest.err conftest.$ac_objext \
  10802. conftest$ac_exeext conftest.$ac_ext
  10803. LIBS=$ac_check_lib_save_LIBS
  10804. fi
  10805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10806. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10807. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10808. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10809. fi
  10810. fi
  10811. fi
  10812. fi
  10813. fi
  10814. fi
  10815. ;;
  10816. esac
  10817. if test no = "$lt_cv_dlopen"; then
  10818. enable_dlopen=no
  10819. else
  10820. enable_dlopen=yes
  10821. fi
  10822. case $lt_cv_dlopen in
  10823. dlopen)
  10824. save_CPPFLAGS=$CPPFLAGS
  10825. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10826. save_LDFLAGS=$LDFLAGS
  10827. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10828. save_LIBS=$LIBS
  10829. LIBS="$lt_cv_dlopen_libs $LIBS"
  10830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10831. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10832. if ${lt_cv_dlopen_self+:} false; then :
  10833. $as_echo_n "(cached) " >&6
  10834. else
  10835. if test yes = "$cross_compiling"; then :
  10836. lt_cv_dlopen_self=cross
  10837. else
  10838. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10839. lt_status=$lt_dlunknown
  10840. cat > conftest.$ac_ext <<_LT_EOF
  10841. #line $LINENO "configure"
  10842. #include "confdefs.h"
  10843. #if HAVE_DLFCN_H
  10844. #include <dlfcn.h>
  10845. #endif
  10846. #include <stdio.h>
  10847. #ifdef RTLD_GLOBAL
  10848. # define LT_DLGLOBAL RTLD_GLOBAL
  10849. #else
  10850. # ifdef DL_GLOBAL
  10851. # define LT_DLGLOBAL DL_GLOBAL
  10852. # else
  10853. # define LT_DLGLOBAL 0
  10854. # endif
  10855. #endif
  10856. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10857. find out it does not work in some platform. */
  10858. #ifndef LT_DLLAZY_OR_NOW
  10859. # ifdef RTLD_LAZY
  10860. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10861. # else
  10862. # ifdef DL_LAZY
  10863. # define LT_DLLAZY_OR_NOW DL_LAZY
  10864. # else
  10865. # ifdef RTLD_NOW
  10866. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10867. # else
  10868. # ifdef DL_NOW
  10869. # define LT_DLLAZY_OR_NOW DL_NOW
  10870. # else
  10871. # define LT_DLLAZY_OR_NOW 0
  10872. # endif
  10873. # endif
  10874. # endif
  10875. # endif
  10876. #endif
  10877. /* When -fvisibility=hidden is used, assume the code has been annotated
  10878. correspondingly for the symbols needed. */
  10879. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10880. int fnord () __attribute__((visibility("default")));
  10881. #endif
  10882. int fnord () { return 42; }
  10883. int main ()
  10884. {
  10885. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10886. int status = $lt_dlunknown;
  10887. if (self)
  10888. {
  10889. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10890. else
  10891. {
  10892. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10893. else puts (dlerror ());
  10894. }
  10895. /* dlclose (self); */
  10896. }
  10897. else
  10898. puts (dlerror ());
  10899. return status;
  10900. }
  10901. _LT_EOF
  10902. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10903. (eval $ac_link) 2>&5
  10904. ac_status=$?
  10905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10906. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10907. (./conftest; exit; ) >&5 2>/dev/null
  10908. lt_status=$?
  10909. case x$lt_status in
  10910. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10911. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10912. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10913. esac
  10914. else :
  10915. # compilation failed
  10916. lt_cv_dlopen_self=no
  10917. fi
  10918. fi
  10919. rm -fr conftest*
  10920. fi
  10921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10922. $as_echo "$lt_cv_dlopen_self" >&6; }
  10923. if test yes = "$lt_cv_dlopen_self"; then
  10924. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10926. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10927. if ${lt_cv_dlopen_self_static+:} false; then :
  10928. $as_echo_n "(cached) " >&6
  10929. else
  10930. if test yes = "$cross_compiling"; then :
  10931. lt_cv_dlopen_self_static=cross
  10932. else
  10933. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10934. lt_status=$lt_dlunknown
  10935. cat > conftest.$ac_ext <<_LT_EOF
  10936. #line $LINENO "configure"
  10937. #include "confdefs.h"
  10938. #if HAVE_DLFCN_H
  10939. #include <dlfcn.h>
  10940. #endif
  10941. #include <stdio.h>
  10942. #ifdef RTLD_GLOBAL
  10943. # define LT_DLGLOBAL RTLD_GLOBAL
  10944. #else
  10945. # ifdef DL_GLOBAL
  10946. # define LT_DLGLOBAL DL_GLOBAL
  10947. # else
  10948. # define LT_DLGLOBAL 0
  10949. # endif
  10950. #endif
  10951. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10952. find out it does not work in some platform. */
  10953. #ifndef LT_DLLAZY_OR_NOW
  10954. # ifdef RTLD_LAZY
  10955. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10956. # else
  10957. # ifdef DL_LAZY
  10958. # define LT_DLLAZY_OR_NOW DL_LAZY
  10959. # else
  10960. # ifdef RTLD_NOW
  10961. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10962. # else
  10963. # ifdef DL_NOW
  10964. # define LT_DLLAZY_OR_NOW DL_NOW
  10965. # else
  10966. # define LT_DLLAZY_OR_NOW 0
  10967. # endif
  10968. # endif
  10969. # endif
  10970. # endif
  10971. #endif
  10972. /* When -fvisibility=hidden is used, assume the code has been annotated
  10973. correspondingly for the symbols needed. */
  10974. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10975. int fnord () __attribute__((visibility("default")));
  10976. #endif
  10977. int fnord () { return 42; }
  10978. int main ()
  10979. {
  10980. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10981. int status = $lt_dlunknown;
  10982. if (self)
  10983. {
  10984. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10985. else
  10986. {
  10987. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10988. else puts (dlerror ());
  10989. }
  10990. /* dlclose (self); */
  10991. }
  10992. else
  10993. puts (dlerror ());
  10994. return status;
  10995. }
  10996. _LT_EOF
  10997. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10998. (eval $ac_link) 2>&5
  10999. ac_status=$?
  11000. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11001. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11002. (./conftest; exit; ) >&5 2>/dev/null
  11003. lt_status=$?
  11004. case x$lt_status in
  11005. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11006. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11007. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11008. esac
  11009. else :
  11010. # compilation failed
  11011. lt_cv_dlopen_self_static=no
  11012. fi
  11013. fi
  11014. rm -fr conftest*
  11015. fi
  11016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11017. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11018. fi
  11019. CPPFLAGS=$save_CPPFLAGS
  11020. LDFLAGS=$save_LDFLAGS
  11021. LIBS=$save_LIBS
  11022. ;;
  11023. esac
  11024. case $lt_cv_dlopen_self in
  11025. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11026. *) enable_dlopen_self=unknown ;;
  11027. esac
  11028. case $lt_cv_dlopen_self_static in
  11029. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11030. *) enable_dlopen_self_static=unknown ;;
  11031. esac
  11032. fi
  11033. striplib=
  11034. old_striplib=
  11035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11036. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11037. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11038. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11039. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11041. $as_echo "yes" >&6; }
  11042. else
  11043. # FIXME - insert some real tests, host_os isn't really good enough
  11044. case $host_os in
  11045. darwin*)
  11046. if test -n "$STRIP"; then
  11047. striplib="$STRIP -x"
  11048. old_striplib="$STRIP -S"
  11049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11050. $as_echo "yes" >&6; }
  11051. else
  11052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11053. $as_echo "no" >&6; }
  11054. fi
  11055. ;;
  11056. *)
  11057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11058. $as_echo "no" >&6; }
  11059. ;;
  11060. esac
  11061. fi
  11062. # Report what library types will actually be built
  11063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11064. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11066. $as_echo "$can_build_shared" >&6; }
  11067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11068. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11069. test no = "$can_build_shared" && enable_shared=no
  11070. # On AIX, shared libraries and static libraries use the same namespace, and
  11071. # are all built from PIC.
  11072. case $host_os in
  11073. aix3*)
  11074. test yes = "$enable_shared" && enable_static=no
  11075. if test -n "$RANLIB"; then
  11076. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11077. postinstall_cmds='$RANLIB $lib'
  11078. fi
  11079. ;;
  11080. aix[4-9]*)
  11081. if test ia64 != "$host_cpu"; then
  11082. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11083. yes,aix,yes) ;; # shared object as lib.so file only
  11084. yes,svr4,*) ;; # shared object as lib.so archive member only
  11085. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11086. esac
  11087. fi
  11088. ;;
  11089. esac
  11090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11091. $as_echo "$enable_shared" >&6; }
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11093. $as_echo_n "checking whether to build static libraries... " >&6; }
  11094. # Make sure either enable_shared or enable_static is yes.
  11095. test yes = "$enable_shared" || enable_static=yes
  11096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11097. $as_echo "$enable_static" >&6; }
  11098. fi
  11099. ac_ext=c
  11100. ac_cpp='$CPP $CPPFLAGS'
  11101. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11102. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11103. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11104. CC=$lt_save_CC
  11105. if test -n "$CXX" && ( test no != "$CXX" &&
  11106. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11107. (test g++ != "$CXX"))); then
  11108. ac_ext=cpp
  11109. ac_cpp='$CXXCPP $CPPFLAGS'
  11110. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11111. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11112. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11114. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11115. if test -z "$CXXCPP"; then
  11116. if ${ac_cv_prog_CXXCPP+:} false; then :
  11117. $as_echo_n "(cached) " >&6
  11118. else
  11119. # Double quotes because CXXCPP needs to be expanded
  11120. for CXXCPP in "$CXX -E" "/lib/cpp"
  11121. do
  11122. ac_preproc_ok=false
  11123. for ac_cxx_preproc_warn_flag in '' yes
  11124. do
  11125. # Use a header file that comes with gcc, so configuring glibc
  11126. # with a fresh cross-compiler works.
  11127. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11128. # <limits.h> exists even on freestanding compilers.
  11129. # On the NeXT, cc -E runs the code through the compiler's parser,
  11130. # not just through cpp. "Syntax error" is here to catch this case.
  11131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11132. /* end confdefs.h. */
  11133. #ifdef __STDC__
  11134. # include <limits.h>
  11135. #else
  11136. # include <assert.h>
  11137. #endif
  11138. Syntax error
  11139. _ACEOF
  11140. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11141. else
  11142. # Broken: fails on valid input.
  11143. continue
  11144. fi
  11145. rm -f conftest.err conftest.i conftest.$ac_ext
  11146. # OK, works on sane cases. Now check whether nonexistent headers
  11147. # can be detected and how.
  11148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11149. /* end confdefs.h. */
  11150. #include <ac_nonexistent.h>
  11151. _ACEOF
  11152. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11153. # Broken: success on invalid input.
  11154. continue
  11155. else
  11156. # Passes both tests.
  11157. ac_preproc_ok=:
  11158. break
  11159. fi
  11160. rm -f conftest.err conftest.i conftest.$ac_ext
  11161. done
  11162. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11163. rm -f conftest.i conftest.err conftest.$ac_ext
  11164. if $ac_preproc_ok; then :
  11165. break
  11166. fi
  11167. done
  11168. ac_cv_prog_CXXCPP=$CXXCPP
  11169. fi
  11170. CXXCPP=$ac_cv_prog_CXXCPP
  11171. else
  11172. ac_cv_prog_CXXCPP=$CXXCPP
  11173. fi
  11174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11175. $as_echo "$CXXCPP" >&6; }
  11176. ac_preproc_ok=false
  11177. for ac_cxx_preproc_warn_flag in '' yes
  11178. do
  11179. # Use a header file that comes with gcc, so configuring glibc
  11180. # with a fresh cross-compiler works.
  11181. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11182. # <limits.h> exists even on freestanding compilers.
  11183. # On the NeXT, cc -E runs the code through the compiler's parser,
  11184. # not just through cpp. "Syntax error" is here to catch this case.
  11185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11186. /* end confdefs.h. */
  11187. #ifdef __STDC__
  11188. # include <limits.h>
  11189. #else
  11190. # include <assert.h>
  11191. #endif
  11192. Syntax error
  11193. _ACEOF
  11194. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11195. else
  11196. # Broken: fails on valid input.
  11197. continue
  11198. fi
  11199. rm -f conftest.err conftest.i conftest.$ac_ext
  11200. # OK, works on sane cases. Now check whether nonexistent headers
  11201. # can be detected and how.
  11202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11203. /* end confdefs.h. */
  11204. #include <ac_nonexistent.h>
  11205. _ACEOF
  11206. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11207. # Broken: success on invalid input.
  11208. continue
  11209. else
  11210. # Passes both tests.
  11211. ac_preproc_ok=:
  11212. break
  11213. fi
  11214. rm -f conftest.err conftest.i conftest.$ac_ext
  11215. done
  11216. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11217. rm -f conftest.i conftest.err conftest.$ac_ext
  11218. if $ac_preproc_ok; then :
  11219. else
  11220. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11221. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11222. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11223. See \`config.log' for more details" "$LINENO" 5; }
  11224. fi
  11225. ac_ext=c
  11226. ac_cpp='$CPP $CPPFLAGS'
  11227. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11228. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11229. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11230. else
  11231. _lt_caught_CXX_error=yes
  11232. fi
  11233. ac_ext=cpp
  11234. ac_cpp='$CXXCPP $CPPFLAGS'
  11235. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11236. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11237. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11238. archive_cmds_need_lc_CXX=no
  11239. allow_undefined_flag_CXX=
  11240. always_export_symbols_CXX=no
  11241. archive_expsym_cmds_CXX=
  11242. compiler_needs_object_CXX=no
  11243. export_dynamic_flag_spec_CXX=
  11244. hardcode_direct_CXX=no
  11245. hardcode_direct_absolute_CXX=no
  11246. hardcode_libdir_flag_spec_CXX=
  11247. hardcode_libdir_separator_CXX=
  11248. hardcode_minus_L_CXX=no
  11249. hardcode_shlibpath_var_CXX=unsupported
  11250. hardcode_automatic_CXX=no
  11251. inherit_rpath_CXX=no
  11252. module_cmds_CXX=
  11253. module_expsym_cmds_CXX=
  11254. link_all_deplibs_CXX=unknown
  11255. old_archive_cmds_CXX=$old_archive_cmds
  11256. reload_flag_CXX=$reload_flag
  11257. reload_cmds_CXX=$reload_cmds
  11258. no_undefined_flag_CXX=
  11259. whole_archive_flag_spec_CXX=
  11260. enable_shared_with_static_runtimes_CXX=no
  11261. # Source file extension for C++ test sources.
  11262. ac_ext=cpp
  11263. # Object file extension for compiled C++ test sources.
  11264. objext=o
  11265. objext_CXX=$objext
  11266. # No sense in running all these tests if we already determined that
  11267. # the CXX compiler isn't working. Some variables (like enable_shared)
  11268. # are currently assumed to apply to all compilers on this platform,
  11269. # and will be corrupted by setting them based on a non-working compiler.
  11270. if test yes != "$_lt_caught_CXX_error"; then
  11271. # Code to be used in simple compile tests
  11272. lt_simple_compile_test_code="int some_variable = 0;"
  11273. # Code to be used in simple link tests
  11274. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11275. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11276. # If no C compiler was specified, use CC.
  11277. LTCC=${LTCC-"$CC"}
  11278. # If no C compiler flags were specified, use CFLAGS.
  11279. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11280. # Allow CC to be a program name with arguments.
  11281. compiler=$CC
  11282. # save warnings/boilerplate of simple test code
  11283. ac_outfile=conftest.$ac_objext
  11284. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11285. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11286. _lt_compiler_boilerplate=`cat conftest.err`
  11287. $RM conftest*
  11288. ac_outfile=conftest.$ac_objext
  11289. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11290. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11291. _lt_linker_boilerplate=`cat conftest.err`
  11292. $RM -r conftest*
  11293. # Allow CC to be a program name with arguments.
  11294. lt_save_CC=$CC
  11295. lt_save_CFLAGS=$CFLAGS
  11296. lt_save_LD=$LD
  11297. lt_save_GCC=$GCC
  11298. GCC=$GXX
  11299. lt_save_with_gnu_ld=$with_gnu_ld
  11300. lt_save_path_LD=$lt_cv_path_LD
  11301. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11302. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11303. else
  11304. $as_unset lt_cv_prog_gnu_ld
  11305. fi
  11306. if test -n "${lt_cv_path_LDCXX+set}"; then
  11307. lt_cv_path_LD=$lt_cv_path_LDCXX
  11308. else
  11309. $as_unset lt_cv_path_LD
  11310. fi
  11311. test -z "${LDCXX+set}" || LD=$LDCXX
  11312. CC=${CXX-"c++"}
  11313. CFLAGS=$CXXFLAGS
  11314. compiler=$CC
  11315. compiler_CXX=$CC
  11316. func_cc_basename $compiler
  11317. cc_basename=$func_cc_basename_result
  11318. if test -n "$compiler"; then
  11319. # We don't want -fno-exception when compiling C++ code, so set the
  11320. # no_builtin_flag separately
  11321. if test yes = "$GXX"; then
  11322. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11323. else
  11324. lt_prog_compiler_no_builtin_flag_CXX=
  11325. fi
  11326. if test yes = "$GXX"; then
  11327. # Set up default GNU C++ configuration
  11328. # Check whether --with-gnu-ld was given.
  11329. if test "${with_gnu_ld+set}" = set; then :
  11330. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11331. else
  11332. with_gnu_ld=no
  11333. fi
  11334. ac_prog=ld
  11335. if test yes = "$GCC"; then
  11336. # Check if gcc -print-prog-name=ld gives a path.
  11337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11338. $as_echo_n "checking for ld used by $CC... " >&6; }
  11339. case $host in
  11340. *-*-mingw*)
  11341. # gcc leaves a trailing carriage return, which upsets mingw
  11342. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11343. *)
  11344. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11345. esac
  11346. case $ac_prog in
  11347. # Accept absolute paths.
  11348. [\\/]* | ?:[\\/]*)
  11349. re_direlt='/[^/][^/]*/\.\./'
  11350. # Canonicalize the pathname of ld
  11351. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11352. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11353. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11354. done
  11355. test -z "$LD" && LD=$ac_prog
  11356. ;;
  11357. "")
  11358. # If it fails, then pretend we aren't using GCC.
  11359. ac_prog=ld
  11360. ;;
  11361. *)
  11362. # If it is relative, then search for the first ld in PATH.
  11363. with_gnu_ld=unknown
  11364. ;;
  11365. esac
  11366. elif test yes = "$with_gnu_ld"; then
  11367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11368. $as_echo_n "checking for GNU ld... " >&6; }
  11369. else
  11370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11371. $as_echo_n "checking for non-GNU ld... " >&6; }
  11372. fi
  11373. if ${lt_cv_path_LD+:} false; then :
  11374. $as_echo_n "(cached) " >&6
  11375. else
  11376. if test -z "$LD"; then
  11377. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11378. for ac_dir in $PATH; do
  11379. IFS=$lt_save_ifs
  11380. test -z "$ac_dir" && ac_dir=.
  11381. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11382. lt_cv_path_LD=$ac_dir/$ac_prog
  11383. # Check to see if the program is GNU ld. I'd rather use --version,
  11384. # but apparently some variants of GNU ld only accept -v.
  11385. # Break only if it was the GNU/non-GNU ld that we prefer.
  11386. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11387. *GNU* | *'with BFD'*)
  11388. test no != "$with_gnu_ld" && break
  11389. ;;
  11390. *)
  11391. test yes != "$with_gnu_ld" && break
  11392. ;;
  11393. esac
  11394. fi
  11395. done
  11396. IFS=$lt_save_ifs
  11397. else
  11398. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11399. fi
  11400. fi
  11401. LD=$lt_cv_path_LD
  11402. if test -n "$LD"; then
  11403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11404. $as_echo "$LD" >&6; }
  11405. else
  11406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11407. $as_echo "no" >&6; }
  11408. fi
  11409. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11411. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11412. if ${lt_cv_prog_gnu_ld+:} false; then :
  11413. $as_echo_n "(cached) " >&6
  11414. else
  11415. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11416. case `$LD -v 2>&1 </dev/null` in
  11417. *GNU* | *'with BFD'*)
  11418. lt_cv_prog_gnu_ld=yes
  11419. ;;
  11420. *)
  11421. lt_cv_prog_gnu_ld=no
  11422. ;;
  11423. esac
  11424. fi
  11425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11426. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11427. with_gnu_ld=$lt_cv_prog_gnu_ld
  11428. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11429. # archiving commands below assume that GNU ld is being used.
  11430. if test yes = "$with_gnu_ld"; then
  11431. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11432. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11433. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11434. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11435. # If archive_cmds runs LD, not CC, wlarc should be empty
  11436. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11437. # investigate it a little bit more. (MM)
  11438. wlarc='$wl'
  11439. # ancient GNU ld didn't support --whole-archive et. al.
  11440. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11441. $GREP 'no-whole-archive' > /dev/null; then
  11442. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11443. else
  11444. whole_archive_flag_spec_CXX=
  11445. fi
  11446. else
  11447. with_gnu_ld=no
  11448. wlarc=
  11449. # A generic and very simple default shared library creation
  11450. # command for GNU C++ for the case where it uses the native
  11451. # linker, instead of GNU ld. If possible, this setting should
  11452. # overridden to take advantage of the native linker features on
  11453. # the platform it is being used on.
  11454. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11455. fi
  11456. # Commands to make compiler produce verbose output that lists
  11457. # what "hidden" libraries, object files and flags are used when
  11458. # linking a shared library.
  11459. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11460. else
  11461. GXX=no
  11462. with_gnu_ld=no
  11463. wlarc=
  11464. fi
  11465. # PORTME: fill in a description of your system's C++ link characteristics
  11466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11467. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11468. ld_shlibs_CXX=yes
  11469. case $host_os in
  11470. aix3*)
  11471. # FIXME: insert proper C++ library support
  11472. ld_shlibs_CXX=no
  11473. ;;
  11474. aix[4-9]*)
  11475. if test ia64 = "$host_cpu"; then
  11476. # On IA64, the linker does run time linking by default, so we don't
  11477. # have to do anything special.
  11478. aix_use_runtimelinking=no
  11479. exp_sym_flag='-Bexport'
  11480. no_entry_flag=
  11481. else
  11482. aix_use_runtimelinking=no
  11483. # Test if we are trying to use run time linking or normal
  11484. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11485. # have runtime linking enabled, and use it for executables.
  11486. # For shared libraries, we enable/disable runtime linking
  11487. # depending on the kind of the shared library created -
  11488. # when "with_aix_soname,aix_use_runtimelinking" is:
  11489. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11490. # "aix,yes" lib.so shared, rtl:yes, for executables
  11491. # lib.a static archive
  11492. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11493. # lib.a(lib.so.V) shared, rtl:no, for executables
  11494. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11495. # lib.a(lib.so.V) shared, rtl:no
  11496. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11497. # lib.a static archive
  11498. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11499. for ld_flag in $LDFLAGS; do
  11500. case $ld_flag in
  11501. *-brtl*)
  11502. aix_use_runtimelinking=yes
  11503. break
  11504. ;;
  11505. esac
  11506. done
  11507. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11508. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11509. # so we don't have lib.a shared libs to link our executables.
  11510. # We have to force runtime linking in this case.
  11511. aix_use_runtimelinking=yes
  11512. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11513. fi
  11514. ;;
  11515. esac
  11516. exp_sym_flag='-bexport'
  11517. no_entry_flag='-bnoentry'
  11518. fi
  11519. # When large executables or shared objects are built, AIX ld can
  11520. # have problems creating the table of contents. If linking a library
  11521. # or program results in "error TOC overflow" add -mminimal-toc to
  11522. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11523. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11524. archive_cmds_CXX=''
  11525. hardcode_direct_CXX=yes
  11526. hardcode_direct_absolute_CXX=yes
  11527. hardcode_libdir_separator_CXX=':'
  11528. link_all_deplibs_CXX=yes
  11529. file_list_spec_CXX='$wl-f,'
  11530. case $with_aix_soname,$aix_use_runtimelinking in
  11531. aix,*) ;; # no import file
  11532. svr4,* | *,yes) # use import file
  11533. # The Import File defines what to hardcode.
  11534. hardcode_direct_CXX=no
  11535. hardcode_direct_absolute_CXX=no
  11536. ;;
  11537. esac
  11538. if test yes = "$GXX"; then
  11539. case $host_os in aix4.[012]|aix4.[012].*)
  11540. # We only want to do this on AIX 4.2 and lower, the check
  11541. # below for broken collect2 doesn't work under 4.3+
  11542. collect2name=`$CC -print-prog-name=collect2`
  11543. if test -f "$collect2name" &&
  11544. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11545. then
  11546. # We have reworked collect2
  11547. :
  11548. else
  11549. # We have old collect2
  11550. hardcode_direct_CXX=unsupported
  11551. # It fails to find uninstalled libraries when the uninstalled
  11552. # path is not listed in the libpath. Setting hardcode_minus_L
  11553. # to unsupported forces relinking
  11554. hardcode_minus_L_CXX=yes
  11555. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11556. hardcode_libdir_separator_CXX=
  11557. fi
  11558. esac
  11559. shared_flag='-shared'
  11560. if test yes = "$aix_use_runtimelinking"; then
  11561. shared_flag=$shared_flag' $wl-G'
  11562. fi
  11563. # Need to ensure runtime linking is disabled for the traditional
  11564. # shared library, or the linker may eventually find shared libraries
  11565. # /with/ Import File - we do not want to mix them.
  11566. shared_flag_aix='-shared'
  11567. shared_flag_svr4='-shared $wl-G'
  11568. else
  11569. # not using gcc
  11570. if test ia64 = "$host_cpu"; then
  11571. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11572. # chokes on -Wl,-G. The following line is correct:
  11573. shared_flag='-G'
  11574. else
  11575. if test yes = "$aix_use_runtimelinking"; then
  11576. shared_flag='$wl-G'
  11577. else
  11578. shared_flag='$wl-bM:SRE'
  11579. fi
  11580. shared_flag_aix='$wl-bM:SRE'
  11581. shared_flag_svr4='$wl-G'
  11582. fi
  11583. fi
  11584. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11585. # It seems that -bexpall does not export symbols beginning with
  11586. # underscore (_), so it is better to generate a list of symbols to
  11587. # export.
  11588. always_export_symbols_CXX=yes
  11589. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11590. # Warning - without using the other runtime loading flags (-brtl),
  11591. # -berok will link without error, but may produce a broken library.
  11592. # The "-G" linker flag allows undefined symbols.
  11593. no_undefined_flag_CXX='-bernotok'
  11594. # Determine the default libpath from the value encoded in an empty
  11595. # executable.
  11596. if test set = "${lt_cv_aix_libpath+set}"; then
  11597. aix_libpath=$lt_cv_aix_libpath
  11598. else
  11599. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11600. $as_echo_n "(cached) " >&6
  11601. else
  11602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11603. /* end confdefs.h. */
  11604. int
  11605. main ()
  11606. {
  11607. ;
  11608. return 0;
  11609. }
  11610. _ACEOF
  11611. if ac_fn_cxx_try_link "$LINENO"; then :
  11612. lt_aix_libpath_sed='
  11613. /Import File Strings/,/^$/ {
  11614. /^0/ {
  11615. s/^0 *\([^ ]*\) *$/\1/
  11616. p
  11617. }
  11618. }'
  11619. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11620. # Check for a 64-bit object if we didn't find anything.
  11621. if test -z "$lt_cv_aix_libpath__CXX"; then
  11622. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11623. fi
  11624. fi
  11625. rm -f core conftest.err conftest.$ac_objext \
  11626. conftest$ac_exeext conftest.$ac_ext
  11627. if test -z "$lt_cv_aix_libpath__CXX"; then
  11628. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11629. fi
  11630. fi
  11631. aix_libpath=$lt_cv_aix_libpath__CXX
  11632. fi
  11633. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11634. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  11635. else
  11636. if test ia64 = "$host_cpu"; then
  11637. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11638. allow_undefined_flag_CXX="-z nodefs"
  11639. 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"
  11640. else
  11641. # Determine the default libpath from the value encoded in an
  11642. # empty executable.
  11643. if test set = "${lt_cv_aix_libpath+set}"; then
  11644. aix_libpath=$lt_cv_aix_libpath
  11645. else
  11646. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11647. $as_echo_n "(cached) " >&6
  11648. else
  11649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11650. /* end confdefs.h. */
  11651. int
  11652. main ()
  11653. {
  11654. ;
  11655. return 0;
  11656. }
  11657. _ACEOF
  11658. if ac_fn_cxx_try_link "$LINENO"; then :
  11659. lt_aix_libpath_sed='
  11660. /Import File Strings/,/^$/ {
  11661. /^0/ {
  11662. s/^0 *\([^ ]*\) *$/\1/
  11663. p
  11664. }
  11665. }'
  11666. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11667. # Check for a 64-bit object if we didn't find anything.
  11668. if test -z "$lt_cv_aix_libpath__CXX"; then
  11669. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11670. fi
  11671. fi
  11672. rm -f core conftest.err conftest.$ac_objext \
  11673. conftest$ac_exeext conftest.$ac_ext
  11674. if test -z "$lt_cv_aix_libpath__CXX"; then
  11675. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11676. fi
  11677. fi
  11678. aix_libpath=$lt_cv_aix_libpath__CXX
  11679. fi
  11680. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11681. # Warning - without using the other run time loading flags,
  11682. # -berok will link without error, but may produce a broken library.
  11683. no_undefined_flag_CXX=' $wl-bernotok'
  11684. allow_undefined_flag_CXX=' $wl-berok'
  11685. if test yes = "$with_gnu_ld"; then
  11686. # We only use this code for GNU lds that support --whole-archive.
  11687. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11688. else
  11689. # Exported symbols can be pulled into shared objects from archives
  11690. whole_archive_flag_spec_CXX='$convenience'
  11691. fi
  11692. archive_cmds_need_lc_CXX=yes
  11693. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11694. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11695. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11696. if test svr4 != "$with_aix_soname"; then
  11697. # This is similar to how AIX traditionally builds its shared
  11698. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11699. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  11700. fi
  11701. if test aix != "$with_aix_soname"; then
  11702. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  11703. else
  11704. # used by -dlpreopen to get the symbols
  11705. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11706. fi
  11707. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11708. fi
  11709. fi
  11710. ;;
  11711. beos*)
  11712. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11713. allow_undefined_flag_CXX=unsupported
  11714. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11715. # support --undefined. This deserves some investigation. FIXME
  11716. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11717. else
  11718. ld_shlibs_CXX=no
  11719. fi
  11720. ;;
  11721. chorus*)
  11722. case $cc_basename in
  11723. *)
  11724. # FIXME: insert proper C++ library support
  11725. ld_shlibs_CXX=no
  11726. ;;
  11727. esac
  11728. ;;
  11729. cygwin* | mingw* | pw32* | cegcc*)
  11730. case $GXX,$cc_basename in
  11731. ,cl* | no,cl*)
  11732. # Native MSVC
  11733. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11734. # no search path for DLLs.
  11735. hardcode_libdir_flag_spec_CXX=' '
  11736. allow_undefined_flag_CXX=unsupported
  11737. always_export_symbols_CXX=yes
  11738. file_list_spec_CXX='@'
  11739. # Tell ltmain to make .lib files, not .a files.
  11740. libext=lib
  11741. # Tell ltmain to make .dll files, not .so files.
  11742. shrext_cmds=.dll
  11743. # FIXME: Setting linknames here is a bad hack.
  11744. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11745. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11746. cp "$export_symbols" "$output_objdir/$soname.def";
  11747. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11748. else
  11749. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11750. fi~
  11751. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11752. linknames='
  11753. # The linker will not automatically build a static lib if we build a DLL.
  11754. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11755. enable_shared_with_static_runtimes_CXX=yes
  11756. # Don't use ranlib
  11757. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11758. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11759. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11760. case $lt_outputfile in
  11761. *.exe|*.EXE) ;;
  11762. *)
  11763. lt_outputfile=$lt_outputfile.exe
  11764. lt_tool_outputfile=$lt_tool_outputfile.exe
  11765. ;;
  11766. esac~
  11767. func_to_tool_file "$lt_outputfile"~
  11768. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11769. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11770. $RM "$lt_outputfile.manifest";
  11771. fi'
  11772. ;;
  11773. *)
  11774. # g++
  11775. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11776. # as there is no search path for DLLs.
  11777. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11778. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11779. allow_undefined_flag_CXX=unsupported
  11780. always_export_symbols_CXX=no
  11781. enable_shared_with_static_runtimes_CXX=yes
  11782. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11783. 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'
  11784. # If the export-symbols file already is a .def file, use it as
  11785. # is; otherwise, prepend EXPORTS...
  11786. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11787. cp $export_symbols $output_objdir/$soname.def;
  11788. else
  11789. echo EXPORTS > $output_objdir/$soname.def;
  11790. cat $export_symbols >> $output_objdir/$soname.def;
  11791. fi~
  11792. $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'
  11793. else
  11794. ld_shlibs_CXX=no
  11795. fi
  11796. ;;
  11797. esac
  11798. ;;
  11799. darwin* | rhapsody*)
  11800. archive_cmds_need_lc_CXX=no
  11801. hardcode_direct_CXX=no
  11802. hardcode_automatic_CXX=yes
  11803. hardcode_shlibpath_var_CXX=unsupported
  11804. if test yes = "$lt_cv_ld_force_load"; then
  11805. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11806. else
  11807. whole_archive_flag_spec_CXX=''
  11808. fi
  11809. link_all_deplibs_CXX=yes
  11810. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11811. case $cc_basename in
  11812. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11813. *) _lt_dar_can_shared=$GCC ;;
  11814. esac
  11815. if test yes = "$_lt_dar_can_shared"; then
  11816. output_verbose_link_cmd=func_echo_all
  11817. 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"
  11818. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11819. 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"
  11820. 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"
  11821. if test yes != "$lt_cv_apple_cc_single_mod"; then
  11822. 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"
  11823. 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"
  11824. fi
  11825. else
  11826. ld_shlibs_CXX=no
  11827. fi
  11828. ;;
  11829. os2*)
  11830. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11831. hardcode_minus_L_CXX=yes
  11832. allow_undefined_flag_CXX=unsupported
  11833. shrext_cmds=.dll
  11834. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11835. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11836. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11837. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11838. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  11839. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11840. emximp -o $lib $output_objdir/$libname.def'
  11841. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11842. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11843. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11844. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11845. prefix_cmds="$SED"~
  11846. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  11847. prefix_cmds="$prefix_cmds -e 1d";
  11848. fi~
  11849. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  11850. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  11851. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11852. emximp -o $lib $output_objdir/$libname.def'
  11853. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  11854. enable_shared_with_static_runtimes_CXX=yes
  11855. ;;
  11856. dgux*)
  11857. case $cc_basename in
  11858. ec++*)
  11859. # FIXME: insert proper C++ library support
  11860. ld_shlibs_CXX=no
  11861. ;;
  11862. ghcx*)
  11863. # Green Hills C++ Compiler
  11864. # FIXME: insert proper C++ library support
  11865. ld_shlibs_CXX=no
  11866. ;;
  11867. *)
  11868. # FIXME: insert proper C++ library support
  11869. ld_shlibs_CXX=no
  11870. ;;
  11871. esac
  11872. ;;
  11873. freebsd2.*)
  11874. # C++ shared libraries reported to be fairly broken before
  11875. # switch to ELF
  11876. ld_shlibs_CXX=no
  11877. ;;
  11878. freebsd-elf*)
  11879. archive_cmds_need_lc_CXX=no
  11880. ;;
  11881. freebsd* | dragonfly*)
  11882. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11883. # conventions
  11884. ld_shlibs_CXX=yes
  11885. ;;
  11886. haiku*)
  11887. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11888. link_all_deplibs_CXX=yes
  11889. ;;
  11890. hpux9*)
  11891. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  11892. hardcode_libdir_separator_CXX=:
  11893. export_dynamic_flag_spec_CXX='$wl-E'
  11894. hardcode_direct_CXX=yes
  11895. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11896. # but as the default
  11897. # location of the library.
  11898. case $cc_basename in
  11899. CC*)
  11900. # FIXME: insert proper C++ library support
  11901. ld_shlibs_CXX=no
  11902. ;;
  11903. aCC*)
  11904. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  11905. # Commands to make compiler produce verbose output that lists
  11906. # what "hidden" libraries, object files and flags are used when
  11907. # linking a shared library.
  11908. #
  11909. # There doesn't appear to be a way to prevent this compiler from
  11910. # explicitly linking system object files so we need to strip them
  11911. # from the output so that they don't get included in the library
  11912. # dependencies.
  11913. 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; func_echo_all "$list"'
  11914. ;;
  11915. *)
  11916. if test yes = "$GXX"; then
  11917. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  11918. else
  11919. # FIXME: insert proper C++ library support
  11920. ld_shlibs_CXX=no
  11921. fi
  11922. ;;
  11923. esac
  11924. ;;
  11925. hpux10*|hpux11*)
  11926. if test no = "$with_gnu_ld"; then
  11927. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  11928. hardcode_libdir_separator_CXX=:
  11929. case $host_cpu in
  11930. hppa*64*|ia64*)
  11931. ;;
  11932. *)
  11933. export_dynamic_flag_spec_CXX='$wl-E'
  11934. ;;
  11935. esac
  11936. fi
  11937. case $host_cpu in
  11938. hppa*64*|ia64*)
  11939. hardcode_direct_CXX=no
  11940. hardcode_shlibpath_var_CXX=no
  11941. ;;
  11942. *)
  11943. hardcode_direct_CXX=yes
  11944. hardcode_direct_absolute_CXX=yes
  11945. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11946. # but as the default
  11947. # location of the library.
  11948. ;;
  11949. esac
  11950. case $cc_basename in
  11951. CC*)
  11952. # FIXME: insert proper C++ library support
  11953. ld_shlibs_CXX=no
  11954. ;;
  11955. aCC*)
  11956. case $host_cpu in
  11957. hppa*64*)
  11958. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11959. ;;
  11960. ia64*)
  11961. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11962. ;;
  11963. *)
  11964. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11965. ;;
  11966. esac
  11967. # Commands to make compiler produce verbose output that lists
  11968. # what "hidden" libraries, object files and flags are used when
  11969. # linking a shared library.
  11970. #
  11971. # There doesn't appear to be a way to prevent this compiler from
  11972. # explicitly linking system object files so we need to strip them
  11973. # from the output so that they don't get included in the library
  11974. # dependencies.
  11975. 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; func_echo_all "$list"'
  11976. ;;
  11977. *)
  11978. if test yes = "$GXX"; then
  11979. if test no = "$with_gnu_ld"; then
  11980. case $host_cpu in
  11981. hppa*64*)
  11982. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11983. ;;
  11984. ia64*)
  11985. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11986. ;;
  11987. *)
  11988. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11989. ;;
  11990. esac
  11991. fi
  11992. else
  11993. # FIXME: insert proper C++ library support
  11994. ld_shlibs_CXX=no
  11995. fi
  11996. ;;
  11997. esac
  11998. ;;
  11999. interix[3-9]*)
  12000. hardcode_direct_CXX=no
  12001. hardcode_shlibpath_var_CXX=no
  12002. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12003. export_dynamic_flag_spec_CXX='$wl-E'
  12004. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12005. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12006. # default) and relocated if they conflict, which is a slow very memory
  12007. # consuming and fragmenting process. To avoid this, we pick a random,
  12008. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12009. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12010. 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'
  12011. 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'
  12012. ;;
  12013. irix5* | irix6*)
  12014. case $cc_basename in
  12015. CC*)
  12016. # SGI C++
  12017. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12018. # Archives containing C++ object files must be created using
  12019. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12020. # necessary to make sure instantiated templates are included
  12021. # in the archive.
  12022. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12023. ;;
  12024. *)
  12025. if test yes = "$GXX"; then
  12026. if test no = "$with_gnu_ld"; then
  12027. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12028. else
  12029. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  12030. fi
  12031. fi
  12032. link_all_deplibs_CXX=yes
  12033. ;;
  12034. esac
  12035. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12036. hardcode_libdir_separator_CXX=:
  12037. inherit_rpath_CXX=yes
  12038. ;;
  12039. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12040. case $cc_basename in
  12041. KCC*)
  12042. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12043. # KCC will only create a shared library if the output file
  12044. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12045. # to its proper name (with version) after linking.
  12046. 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'
  12047. 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'
  12048. # Commands to make compiler produce verbose output that lists
  12049. # what "hidden" libraries, object files and flags are used when
  12050. # linking a shared library.
  12051. #
  12052. # There doesn't appear to be a way to prevent this compiler from
  12053. # explicitly linking system object files so we need to strip them
  12054. # from the output so that they don't get included in the library
  12055. # dependencies.
  12056. 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; func_echo_all "$list"'
  12057. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12058. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12059. # Archives containing C++ object files must be created using
  12060. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12061. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12062. ;;
  12063. icpc* | ecpc* )
  12064. # Intel C++
  12065. with_gnu_ld=yes
  12066. # version 8.0 and above of icpc choke on multiply defined symbols
  12067. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12068. # earlier do not add the objects themselves.
  12069. case `$CC -V 2>&1` in
  12070. *"Version 7."*)
  12071. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12072. 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'
  12073. ;;
  12074. *) # Version 8.0 or newer
  12075. tmp_idyn=
  12076. case $host_cpu in
  12077. ia64*) tmp_idyn=' -i_dynamic';;
  12078. esac
  12079. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12080. 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'
  12081. ;;
  12082. esac
  12083. archive_cmds_need_lc_CXX=no
  12084. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12085. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12086. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12087. ;;
  12088. pgCC* | pgcpp*)
  12089. # Portland Group C++ compiler
  12090. case `$CC -V` in
  12091. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12092. prelink_cmds_CXX='tpldir=Template.dir~
  12093. rm -rf $tpldir~
  12094. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12095. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12096. old_archive_cmds_CXX='tpldir=Template.dir~
  12097. rm -rf $tpldir~
  12098. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12099. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12100. $RANLIB $oldlib'
  12101. archive_cmds_CXX='tpldir=Template.dir~
  12102. rm -rf $tpldir~
  12103. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12104. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12105. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12106. rm -rf $tpldir~
  12107. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12108. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12109. ;;
  12110. *) # Version 6 and above use weak symbols
  12111. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12112. 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'
  12113. ;;
  12114. esac
  12115. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12116. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12117. whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  12118. ;;
  12119. cxx*)
  12120. # Compaq C++
  12121. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12122. 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'
  12123. runpath_var=LD_RUN_PATH
  12124. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12125. hardcode_libdir_separator_CXX=:
  12126. # Commands to make compiler produce verbose output that lists
  12127. # what "hidden" libraries, object files and flags are used when
  12128. # linking a shared library.
  12129. #
  12130. # There doesn't appear to be a way to prevent this compiler from
  12131. # explicitly linking system object files so we need to strip them
  12132. # from the output so that they don't get included in the library
  12133. # dependencies.
  12134. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  12135. ;;
  12136. xl* | mpixl* | bgxl*)
  12137. # IBM XL 8.0 on PPC, with GNU ld
  12138. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12139. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12140. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12141. if test yes = "$supports_anon_versioning"; then
  12142. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12143. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12144. echo "local: *; };" >> $output_objdir/$libname.ver~
  12145. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12146. fi
  12147. ;;
  12148. *)
  12149. case `$CC -V 2>&1 | sed 5q` in
  12150. *Sun\ C*)
  12151. # Sun C++ 5.9
  12152. no_undefined_flag_CXX=' -zdefs'
  12153. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12154. 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'
  12155. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12156. whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  12157. compiler_needs_object_CXX=yes
  12158. # Not sure whether something based on
  12159. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12160. # would be better.
  12161. output_verbose_link_cmd='func_echo_all'
  12162. # Archives containing C++ object files must be created using
  12163. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12164. # necessary to make sure instantiated templates are included
  12165. # in the archive.
  12166. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12167. ;;
  12168. esac
  12169. ;;
  12170. esac
  12171. ;;
  12172. lynxos*)
  12173. # FIXME: insert proper C++ library support
  12174. ld_shlibs_CXX=no
  12175. ;;
  12176. m88k*)
  12177. # FIXME: insert proper C++ library support
  12178. ld_shlibs_CXX=no
  12179. ;;
  12180. mvs*)
  12181. case $cc_basename in
  12182. cxx*)
  12183. # FIXME: insert proper C++ library support
  12184. ld_shlibs_CXX=no
  12185. ;;
  12186. *)
  12187. # FIXME: insert proper C++ library support
  12188. ld_shlibs_CXX=no
  12189. ;;
  12190. esac
  12191. ;;
  12192. netbsd*)
  12193. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12194. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12195. wlarc=
  12196. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12197. hardcode_direct_CXX=yes
  12198. hardcode_shlibpath_var_CXX=no
  12199. fi
  12200. # Workaround some broken pre-1.5 toolchains
  12201. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12202. ;;
  12203. *nto* | *qnx*)
  12204. ld_shlibs_CXX=yes
  12205. ;;
  12206. openbsd* | bitrig*)
  12207. if test -f /usr/libexec/ld.so; then
  12208. hardcode_direct_CXX=yes
  12209. hardcode_shlibpath_var_CXX=no
  12210. hardcode_direct_absolute_CXX=yes
  12211. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12212. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12213. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12214. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12215. export_dynamic_flag_spec_CXX='$wl-E'
  12216. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12217. fi
  12218. output_verbose_link_cmd=func_echo_all
  12219. else
  12220. ld_shlibs_CXX=no
  12221. fi
  12222. ;;
  12223. osf3* | osf4* | osf5*)
  12224. case $cc_basename in
  12225. KCC*)
  12226. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12227. # KCC will only create a shared library if the output file
  12228. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12229. # to its proper name (with version) after linking.
  12230. 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'
  12231. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12232. hardcode_libdir_separator_CXX=:
  12233. # Archives containing C++ object files must be created using
  12234. # the KAI C++ compiler.
  12235. case $host in
  12236. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12237. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12238. esac
  12239. ;;
  12240. RCC*)
  12241. # Rational C++ 2.4.1
  12242. # FIXME: insert proper C++ library support
  12243. ld_shlibs_CXX=no
  12244. ;;
  12245. cxx*)
  12246. case $host in
  12247. osf3*)
  12248. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12249. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12250. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12251. ;;
  12252. *)
  12253. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12254. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12255. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12256. echo "-hidden">> $lib.exp~
  12257. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  12258. $RM $lib.exp'
  12259. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12260. ;;
  12261. esac
  12262. hardcode_libdir_separator_CXX=:
  12263. # Commands to make compiler produce verbose output that lists
  12264. # what "hidden" libraries, object files and flags are used when
  12265. # linking a shared library.
  12266. #
  12267. # There doesn't appear to be a way to prevent this compiler from
  12268. # explicitly linking system object files so we need to strip them
  12269. # from the output so that they don't get included in the library
  12270. # dependencies.
  12271. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12272. ;;
  12273. *)
  12274. if test yes,no = "$GXX,$with_gnu_ld"; then
  12275. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12276. case $host in
  12277. osf3*)
  12278. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12279. ;;
  12280. *)
  12281. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12282. ;;
  12283. esac
  12284. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12285. hardcode_libdir_separator_CXX=:
  12286. # Commands to make compiler produce verbose output that lists
  12287. # what "hidden" libraries, object files and flags are used when
  12288. # linking a shared library.
  12289. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12290. else
  12291. # FIXME: insert proper C++ library support
  12292. ld_shlibs_CXX=no
  12293. fi
  12294. ;;
  12295. esac
  12296. ;;
  12297. psos*)
  12298. # FIXME: insert proper C++ library support
  12299. ld_shlibs_CXX=no
  12300. ;;
  12301. sunos4*)
  12302. case $cc_basename in
  12303. CC*)
  12304. # Sun C++ 4.x
  12305. # FIXME: insert proper C++ library support
  12306. ld_shlibs_CXX=no
  12307. ;;
  12308. lcc*)
  12309. # Lucid
  12310. # FIXME: insert proper C++ library support
  12311. ld_shlibs_CXX=no
  12312. ;;
  12313. *)
  12314. # FIXME: insert proper C++ library support
  12315. ld_shlibs_CXX=no
  12316. ;;
  12317. esac
  12318. ;;
  12319. solaris*)
  12320. case $cc_basename in
  12321. CC* | sunCC*)
  12322. # Sun C++ 4.2, 5.x and Centerline C++
  12323. archive_cmds_need_lc_CXX=yes
  12324. no_undefined_flag_CXX=' -zdefs'
  12325. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12326. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12327. $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'
  12328. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12329. hardcode_shlibpath_var_CXX=no
  12330. case $host_os in
  12331. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12332. *)
  12333. # The compiler driver will combine and reorder linker options,
  12334. # but understands '-z linker_flag'.
  12335. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12336. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12337. ;;
  12338. esac
  12339. link_all_deplibs_CXX=yes
  12340. output_verbose_link_cmd='func_echo_all'
  12341. # Archives containing C++ object files must be created using
  12342. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12343. # necessary to make sure instantiated templates are included
  12344. # in the archive.
  12345. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12346. ;;
  12347. gcx*)
  12348. # Green Hills C++ Compiler
  12349. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12350. # The C++ compiler must be used to create the archive.
  12351. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12352. ;;
  12353. *)
  12354. # GNU C++ compiler with Solaris linker
  12355. if test yes,no = "$GXX,$with_gnu_ld"; then
  12356. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12357. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12358. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12359. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12360. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12361. # Commands to make compiler produce verbose output that lists
  12362. # what "hidden" libraries, object files and flags are used when
  12363. # linking a shared library.
  12364. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12365. else
  12366. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12367. # platform.
  12368. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12369. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12370. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12371. # Commands to make compiler produce verbose output that lists
  12372. # what "hidden" libraries, object files and flags are used when
  12373. # linking a shared library.
  12374. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12375. fi
  12376. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12377. case $host_os in
  12378. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12379. *)
  12380. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12381. ;;
  12382. esac
  12383. fi
  12384. ;;
  12385. esac
  12386. ;;
  12387. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12388. no_undefined_flag_CXX='$wl-z,text'
  12389. archive_cmds_need_lc_CXX=no
  12390. hardcode_shlibpath_var_CXX=no
  12391. runpath_var='LD_RUN_PATH'
  12392. case $cc_basename in
  12393. CC*)
  12394. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12395. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12396. ;;
  12397. *)
  12398. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12399. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12400. ;;
  12401. esac
  12402. ;;
  12403. sysv5* | sco3.2v5* | sco5v6*)
  12404. # Note: We CANNOT use -z defs as we might desire, because we do not
  12405. # link with -lc, and that would cause any symbols used from libc to
  12406. # always be unresolved, which means just about no library would
  12407. # ever link correctly. If we're not using GNU ld we use -z text
  12408. # though, which does catch some bad symbols but isn't as heavy-handed
  12409. # as -z defs.
  12410. no_undefined_flag_CXX='$wl-z,text'
  12411. allow_undefined_flag_CXX='$wl-z,nodefs'
  12412. archive_cmds_need_lc_CXX=no
  12413. hardcode_shlibpath_var_CXX=no
  12414. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12415. hardcode_libdir_separator_CXX=':'
  12416. link_all_deplibs_CXX=yes
  12417. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12418. runpath_var='LD_RUN_PATH'
  12419. case $cc_basename in
  12420. CC*)
  12421. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12422. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12423. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12424. '"$old_archive_cmds_CXX"
  12425. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12426. '"$reload_cmds_CXX"
  12427. ;;
  12428. *)
  12429. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12430. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12431. ;;
  12432. esac
  12433. ;;
  12434. tandem*)
  12435. case $cc_basename in
  12436. NCC*)
  12437. # NonStop-UX NCC 3.20
  12438. # FIXME: insert proper C++ library support
  12439. ld_shlibs_CXX=no
  12440. ;;
  12441. *)
  12442. # FIXME: insert proper C++ library support
  12443. ld_shlibs_CXX=no
  12444. ;;
  12445. esac
  12446. ;;
  12447. vxworks*)
  12448. # FIXME: insert proper C++ library support
  12449. ld_shlibs_CXX=no
  12450. ;;
  12451. *)
  12452. # FIXME: insert proper C++ library support
  12453. ld_shlibs_CXX=no
  12454. ;;
  12455. esac
  12456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12457. $as_echo "$ld_shlibs_CXX" >&6; }
  12458. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12459. GCC_CXX=$GXX
  12460. LD_CXX=$LD
  12461. ## CAVEAT EMPTOR:
  12462. ## There is no encapsulation within the following macros, do not change
  12463. ## the running order or otherwise move them around unless you know exactly
  12464. ## what you are doing...
  12465. # Dependencies to place before and after the object being linked:
  12466. predep_objects_CXX=
  12467. postdep_objects_CXX=
  12468. predeps_CXX=
  12469. postdeps_CXX=
  12470. compiler_lib_search_path_CXX=
  12471. cat > conftest.$ac_ext <<_LT_EOF
  12472. class Foo
  12473. {
  12474. public:
  12475. Foo (void) { a = 0; }
  12476. private:
  12477. int a;
  12478. };
  12479. _LT_EOF
  12480. _lt_libdeps_save_CFLAGS=$CFLAGS
  12481. case "$CC $CFLAGS " in #(
  12482. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12483. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12484. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12485. esac
  12486. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12487. (eval $ac_compile) 2>&5
  12488. ac_status=$?
  12489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12490. test $ac_status = 0; }; then
  12491. # Parse the compiler output and extract the necessary
  12492. # objects, libraries and library flags.
  12493. # Sentinel used to keep track of whether or not we are before
  12494. # the conftest object file.
  12495. pre_test_object_deps_done=no
  12496. for p in `eval "$output_verbose_link_cmd"`; do
  12497. case $prev$p in
  12498. -L* | -R* | -l*)
  12499. # Some compilers place space between "-{L,R}" and the path.
  12500. # Remove the space.
  12501. if test x-L = "$p" ||
  12502. test x-R = "$p"; then
  12503. prev=$p
  12504. continue
  12505. fi
  12506. # Expand the sysroot to ease extracting the directories later.
  12507. if test -z "$prev"; then
  12508. case $p in
  12509. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12510. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12511. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12512. esac
  12513. fi
  12514. case $p in
  12515. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12516. esac
  12517. if test no = "$pre_test_object_deps_done"; then
  12518. case $prev in
  12519. -L | -R)
  12520. # Internal compiler library paths should come after those
  12521. # provided the user. The postdeps already come after the
  12522. # user supplied libs so there is no need to process them.
  12523. if test -z "$compiler_lib_search_path_CXX"; then
  12524. compiler_lib_search_path_CXX=$prev$p
  12525. else
  12526. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12527. fi
  12528. ;;
  12529. # The "-l" case would never come before the object being
  12530. # linked, so don't bother handling this case.
  12531. esac
  12532. else
  12533. if test -z "$postdeps_CXX"; then
  12534. postdeps_CXX=$prev$p
  12535. else
  12536. postdeps_CXX="${postdeps_CXX} $prev$p"
  12537. fi
  12538. fi
  12539. prev=
  12540. ;;
  12541. *.lto.$objext) ;; # Ignore GCC LTO objects
  12542. *.$objext)
  12543. # This assumes that the test object file only shows up
  12544. # once in the compiler output.
  12545. if test "$p" = "conftest.$objext"; then
  12546. pre_test_object_deps_done=yes
  12547. continue
  12548. fi
  12549. if test no = "$pre_test_object_deps_done"; then
  12550. if test -z "$predep_objects_CXX"; then
  12551. predep_objects_CXX=$p
  12552. else
  12553. predep_objects_CXX="$predep_objects_CXX $p"
  12554. fi
  12555. else
  12556. if test -z "$postdep_objects_CXX"; then
  12557. postdep_objects_CXX=$p
  12558. else
  12559. postdep_objects_CXX="$postdep_objects_CXX $p"
  12560. fi
  12561. fi
  12562. ;;
  12563. *) ;; # Ignore the rest.
  12564. esac
  12565. done
  12566. # Clean up.
  12567. rm -f a.out a.exe
  12568. else
  12569. echo "libtool.m4: error: problem compiling CXX test program"
  12570. fi
  12571. $RM -f confest.$objext
  12572. CFLAGS=$_lt_libdeps_save_CFLAGS
  12573. # PORTME: override above test on systems where it is broken
  12574. case $host_os in
  12575. interix[3-9]*)
  12576. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12577. # hack all around it, let's just trust "g++" to DTRT.
  12578. predep_objects_CXX=
  12579. postdep_objects_CXX=
  12580. postdeps_CXX=
  12581. ;;
  12582. esac
  12583. case " $postdeps_CXX " in
  12584. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12585. esac
  12586. compiler_lib_search_dirs_CXX=
  12587. if test -n "${compiler_lib_search_path_CXX}"; then
  12588. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12589. fi
  12590. lt_prog_compiler_wl_CXX=
  12591. lt_prog_compiler_pic_CXX=
  12592. lt_prog_compiler_static_CXX=
  12593. # C++ specific cases for pic, static, wl, etc.
  12594. if test yes = "$GXX"; then
  12595. lt_prog_compiler_wl_CXX='-Wl,'
  12596. lt_prog_compiler_static_CXX='-static'
  12597. case $host_os in
  12598. aix*)
  12599. # All AIX code is PIC.
  12600. if test ia64 = "$host_cpu"; then
  12601. # AIX 5 now supports IA64 processor
  12602. lt_prog_compiler_static_CXX='-Bstatic'
  12603. fi
  12604. lt_prog_compiler_pic_CXX='-fPIC'
  12605. ;;
  12606. amigaos*)
  12607. case $host_cpu in
  12608. powerpc)
  12609. # see comment about AmigaOS4 .so support
  12610. lt_prog_compiler_pic_CXX='-fPIC'
  12611. ;;
  12612. m68k)
  12613. # FIXME: we need at least 68020 code to build shared libraries, but
  12614. # adding the '-m68020' flag to GCC prevents building anything better,
  12615. # like '-m68040'.
  12616. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12617. ;;
  12618. esac
  12619. ;;
  12620. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12621. # PIC is the default for these OSes.
  12622. ;;
  12623. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12624. # This hack is so that the source file can tell whether it is being
  12625. # built for inclusion in a dll (and should export symbols for example).
  12626. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12627. # (--disable-auto-import) libraries
  12628. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12629. case $host_os in
  12630. os2*)
  12631. lt_prog_compiler_static_CXX='$wl-static'
  12632. ;;
  12633. esac
  12634. ;;
  12635. darwin* | rhapsody*)
  12636. # PIC is the default on this platform
  12637. # Common symbols not allowed in MH_DYLIB files
  12638. lt_prog_compiler_pic_CXX='-fno-common'
  12639. ;;
  12640. *djgpp*)
  12641. # DJGPP does not support shared libraries at all
  12642. lt_prog_compiler_pic_CXX=
  12643. ;;
  12644. haiku*)
  12645. # PIC is the default for Haiku.
  12646. # The "-static" flag exists, but is broken.
  12647. lt_prog_compiler_static_CXX=
  12648. ;;
  12649. interix[3-9]*)
  12650. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12651. # Instead, we relocate shared libraries at runtime.
  12652. ;;
  12653. sysv4*MP*)
  12654. if test -d /usr/nec; then
  12655. lt_prog_compiler_pic_CXX=-Kconform_pic
  12656. fi
  12657. ;;
  12658. hpux*)
  12659. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12660. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12661. # sets the default TLS model and affects inlining.
  12662. case $host_cpu in
  12663. hppa*64*)
  12664. ;;
  12665. *)
  12666. lt_prog_compiler_pic_CXX='-fPIC'
  12667. ;;
  12668. esac
  12669. ;;
  12670. *qnx* | *nto*)
  12671. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12672. # it will coredump.
  12673. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12674. ;;
  12675. *)
  12676. lt_prog_compiler_pic_CXX='-fPIC'
  12677. ;;
  12678. esac
  12679. else
  12680. case $host_os in
  12681. aix[4-9]*)
  12682. # All AIX code is PIC.
  12683. if test ia64 = "$host_cpu"; then
  12684. # AIX 5 now supports IA64 processor
  12685. lt_prog_compiler_static_CXX='-Bstatic'
  12686. else
  12687. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12688. fi
  12689. ;;
  12690. chorus*)
  12691. case $cc_basename in
  12692. cxch68*)
  12693. # Green Hills C++ Compiler
  12694. # _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"
  12695. ;;
  12696. esac
  12697. ;;
  12698. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12699. # This hack is so that the source file can tell whether it is being
  12700. # built for inclusion in a dll (and should export symbols for example).
  12701. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12702. ;;
  12703. dgux*)
  12704. case $cc_basename in
  12705. ec++*)
  12706. lt_prog_compiler_pic_CXX='-KPIC'
  12707. ;;
  12708. ghcx*)
  12709. # Green Hills C++ Compiler
  12710. lt_prog_compiler_pic_CXX='-pic'
  12711. ;;
  12712. *)
  12713. ;;
  12714. esac
  12715. ;;
  12716. freebsd* | dragonfly*)
  12717. # FreeBSD uses GNU C++
  12718. ;;
  12719. hpux9* | hpux10* | hpux11*)
  12720. case $cc_basename in
  12721. CC*)
  12722. lt_prog_compiler_wl_CXX='-Wl,'
  12723. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12724. if test ia64 != "$host_cpu"; then
  12725. lt_prog_compiler_pic_CXX='+Z'
  12726. fi
  12727. ;;
  12728. aCC*)
  12729. lt_prog_compiler_wl_CXX='-Wl,'
  12730. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12731. case $host_cpu in
  12732. hppa*64*|ia64*)
  12733. # +Z the default
  12734. ;;
  12735. *)
  12736. lt_prog_compiler_pic_CXX='+Z'
  12737. ;;
  12738. esac
  12739. ;;
  12740. *)
  12741. ;;
  12742. esac
  12743. ;;
  12744. interix*)
  12745. # This is c89, which is MS Visual C++ (no shared libs)
  12746. # Anyone wants to do a port?
  12747. ;;
  12748. irix5* | irix6* | nonstopux*)
  12749. case $cc_basename in
  12750. CC*)
  12751. lt_prog_compiler_wl_CXX='-Wl,'
  12752. lt_prog_compiler_static_CXX='-non_shared'
  12753. # CC pic flag -KPIC is the default.
  12754. ;;
  12755. *)
  12756. ;;
  12757. esac
  12758. ;;
  12759. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12760. case $cc_basename in
  12761. KCC*)
  12762. # KAI C++ Compiler
  12763. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12764. lt_prog_compiler_pic_CXX='-fPIC'
  12765. ;;
  12766. ecpc* )
  12767. # old Intel C++ for x86_64, which still supported -KPIC.
  12768. lt_prog_compiler_wl_CXX='-Wl,'
  12769. lt_prog_compiler_pic_CXX='-KPIC'
  12770. lt_prog_compiler_static_CXX='-static'
  12771. ;;
  12772. icpc* )
  12773. # Intel C++, used to be incompatible with GCC.
  12774. # ICC 10 doesn't accept -KPIC any more.
  12775. lt_prog_compiler_wl_CXX='-Wl,'
  12776. lt_prog_compiler_pic_CXX='-fPIC'
  12777. lt_prog_compiler_static_CXX='-static'
  12778. ;;
  12779. pgCC* | pgcpp*)
  12780. # Portland Group C++ compiler
  12781. lt_prog_compiler_wl_CXX='-Wl,'
  12782. lt_prog_compiler_pic_CXX='-fpic'
  12783. lt_prog_compiler_static_CXX='-Bstatic'
  12784. ;;
  12785. cxx*)
  12786. # Compaq C++
  12787. # Make sure the PIC flag is empty. It appears that all Alpha
  12788. # Linux and Compaq Tru64 Unix objects are PIC.
  12789. lt_prog_compiler_pic_CXX=
  12790. lt_prog_compiler_static_CXX='-non_shared'
  12791. ;;
  12792. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12793. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12794. lt_prog_compiler_wl_CXX='-Wl,'
  12795. lt_prog_compiler_pic_CXX='-qpic'
  12796. lt_prog_compiler_static_CXX='-qstaticlink'
  12797. ;;
  12798. *)
  12799. case `$CC -V 2>&1 | sed 5q` in
  12800. *Sun\ C*)
  12801. # Sun C++ 5.9
  12802. lt_prog_compiler_pic_CXX='-KPIC'
  12803. lt_prog_compiler_static_CXX='-Bstatic'
  12804. lt_prog_compiler_wl_CXX='-Qoption ld '
  12805. ;;
  12806. esac
  12807. ;;
  12808. esac
  12809. ;;
  12810. lynxos*)
  12811. ;;
  12812. m88k*)
  12813. ;;
  12814. mvs*)
  12815. case $cc_basename in
  12816. cxx*)
  12817. lt_prog_compiler_pic_CXX='-W c,exportall'
  12818. ;;
  12819. *)
  12820. ;;
  12821. esac
  12822. ;;
  12823. netbsd* | netbsdelf*-gnu)
  12824. ;;
  12825. *qnx* | *nto*)
  12826. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12827. # it will coredump.
  12828. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12829. ;;
  12830. osf3* | osf4* | osf5*)
  12831. case $cc_basename in
  12832. KCC*)
  12833. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12834. ;;
  12835. RCC*)
  12836. # Rational C++ 2.4.1
  12837. lt_prog_compiler_pic_CXX='-pic'
  12838. ;;
  12839. cxx*)
  12840. # Digital/Compaq C++
  12841. lt_prog_compiler_wl_CXX='-Wl,'
  12842. # Make sure the PIC flag is empty. It appears that all Alpha
  12843. # Linux and Compaq Tru64 Unix objects are PIC.
  12844. lt_prog_compiler_pic_CXX=
  12845. lt_prog_compiler_static_CXX='-non_shared'
  12846. ;;
  12847. *)
  12848. ;;
  12849. esac
  12850. ;;
  12851. psos*)
  12852. ;;
  12853. solaris*)
  12854. case $cc_basename in
  12855. CC* | sunCC*)
  12856. # Sun C++ 4.2, 5.x and Centerline C++
  12857. lt_prog_compiler_pic_CXX='-KPIC'
  12858. lt_prog_compiler_static_CXX='-Bstatic'
  12859. lt_prog_compiler_wl_CXX='-Qoption ld '
  12860. ;;
  12861. gcx*)
  12862. # Green Hills C++ Compiler
  12863. lt_prog_compiler_pic_CXX='-PIC'
  12864. ;;
  12865. *)
  12866. ;;
  12867. esac
  12868. ;;
  12869. sunos4*)
  12870. case $cc_basename in
  12871. CC*)
  12872. # Sun C++ 4.x
  12873. lt_prog_compiler_pic_CXX='-pic'
  12874. lt_prog_compiler_static_CXX='-Bstatic'
  12875. ;;
  12876. lcc*)
  12877. # Lucid
  12878. lt_prog_compiler_pic_CXX='-pic'
  12879. ;;
  12880. *)
  12881. ;;
  12882. esac
  12883. ;;
  12884. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12885. case $cc_basename in
  12886. CC*)
  12887. lt_prog_compiler_wl_CXX='-Wl,'
  12888. lt_prog_compiler_pic_CXX='-KPIC'
  12889. lt_prog_compiler_static_CXX='-Bstatic'
  12890. ;;
  12891. esac
  12892. ;;
  12893. tandem*)
  12894. case $cc_basename in
  12895. NCC*)
  12896. # NonStop-UX NCC 3.20
  12897. lt_prog_compiler_pic_CXX='-KPIC'
  12898. ;;
  12899. *)
  12900. ;;
  12901. esac
  12902. ;;
  12903. vxworks*)
  12904. ;;
  12905. *)
  12906. lt_prog_compiler_can_build_shared_CXX=no
  12907. ;;
  12908. esac
  12909. fi
  12910. case $host_os in
  12911. # For platforms that do not support PIC, -DPIC is meaningless:
  12912. *djgpp*)
  12913. lt_prog_compiler_pic_CXX=
  12914. ;;
  12915. *)
  12916. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12917. ;;
  12918. esac
  12919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12920. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12921. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12922. $as_echo_n "(cached) " >&6
  12923. else
  12924. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12925. fi
  12926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12927. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12928. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12929. #
  12930. # Check to make sure the PIC flag actually works.
  12931. #
  12932. if test -n "$lt_prog_compiler_pic_CXX"; then
  12933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12934. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12935. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12936. $as_echo_n "(cached) " >&6
  12937. else
  12938. lt_cv_prog_compiler_pic_works_CXX=no
  12939. ac_outfile=conftest.$ac_objext
  12940. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12941. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  12942. # Insert the option either (1) after the last *FLAGS variable, or
  12943. # (2) before a word containing "conftest.", or (3) at the end.
  12944. # Note that $ac_compile itself does not contain backslashes and begins
  12945. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12946. # The option is referenced via a variable to avoid confusing sed.
  12947. lt_compile=`echo "$ac_compile" | $SED \
  12948. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12949. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12950. -e 's:$: $lt_compiler_flag:'`
  12951. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12952. (eval "$lt_compile" 2>conftest.err)
  12953. ac_status=$?
  12954. cat conftest.err >&5
  12955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12956. if (exit $ac_status) && test -s "$ac_outfile"; then
  12957. # The compiler can only warn and ignore the option if not recognized
  12958. # So say no if there are warnings other than the usual output.
  12959. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12960. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12961. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12962. lt_cv_prog_compiler_pic_works_CXX=yes
  12963. fi
  12964. fi
  12965. $RM conftest*
  12966. fi
  12967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12968. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12969. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  12970. case $lt_prog_compiler_pic_CXX in
  12971. "" | " "*) ;;
  12972. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12973. esac
  12974. else
  12975. lt_prog_compiler_pic_CXX=
  12976. lt_prog_compiler_can_build_shared_CXX=no
  12977. fi
  12978. fi
  12979. #
  12980. # Check to make sure the static flag actually works.
  12981. #
  12982. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12984. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12985. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12986. $as_echo_n "(cached) " >&6
  12987. else
  12988. lt_cv_prog_compiler_static_works_CXX=no
  12989. save_LDFLAGS=$LDFLAGS
  12990. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12991. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12992. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12993. # The linker can only warn and ignore the option if not recognized
  12994. # So say no if there are warnings
  12995. if test -s conftest.err; then
  12996. # Append any errors to the config.log.
  12997. cat conftest.err 1>&5
  12998. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12999. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13000. if diff conftest.exp conftest.er2 >/dev/null; then
  13001. lt_cv_prog_compiler_static_works_CXX=yes
  13002. fi
  13003. else
  13004. lt_cv_prog_compiler_static_works_CXX=yes
  13005. fi
  13006. fi
  13007. $RM -r conftest*
  13008. LDFLAGS=$save_LDFLAGS
  13009. fi
  13010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13011. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13012. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13013. :
  13014. else
  13015. lt_prog_compiler_static_CXX=
  13016. fi
  13017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13018. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13019. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13020. $as_echo_n "(cached) " >&6
  13021. else
  13022. lt_cv_prog_compiler_c_o_CXX=no
  13023. $RM -r conftest 2>/dev/null
  13024. mkdir conftest
  13025. cd conftest
  13026. mkdir out
  13027. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13028. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13029. # Insert the option either (1) after the last *FLAGS variable, or
  13030. # (2) before a word containing "conftest.", or (3) at the end.
  13031. # Note that $ac_compile itself does not contain backslashes and begins
  13032. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13033. lt_compile=`echo "$ac_compile" | $SED \
  13034. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13035. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13036. -e 's:$: $lt_compiler_flag:'`
  13037. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13038. (eval "$lt_compile" 2>out/conftest.err)
  13039. ac_status=$?
  13040. cat out/conftest.err >&5
  13041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13042. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13043. then
  13044. # The compiler can only warn and ignore the option if not recognized
  13045. # So say no if there are warnings
  13046. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13047. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13048. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13049. lt_cv_prog_compiler_c_o_CXX=yes
  13050. fi
  13051. fi
  13052. chmod u+w . 2>&5
  13053. $RM conftest*
  13054. # SGI C++ compiler will create directory out/ii_files/ for
  13055. # template instantiation
  13056. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13057. $RM out/* && rmdir out
  13058. cd ..
  13059. $RM -r conftest
  13060. $RM conftest*
  13061. fi
  13062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13063. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13065. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13066. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13067. $as_echo_n "(cached) " >&6
  13068. else
  13069. lt_cv_prog_compiler_c_o_CXX=no
  13070. $RM -r conftest 2>/dev/null
  13071. mkdir conftest
  13072. cd conftest
  13073. mkdir out
  13074. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13075. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13076. # Insert the option either (1) after the last *FLAGS variable, or
  13077. # (2) before a word containing "conftest.", or (3) at the end.
  13078. # Note that $ac_compile itself does not contain backslashes and begins
  13079. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13080. lt_compile=`echo "$ac_compile" | $SED \
  13081. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13082. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13083. -e 's:$: $lt_compiler_flag:'`
  13084. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13085. (eval "$lt_compile" 2>out/conftest.err)
  13086. ac_status=$?
  13087. cat out/conftest.err >&5
  13088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13089. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13090. then
  13091. # The compiler can only warn and ignore the option if not recognized
  13092. # So say no if there are warnings
  13093. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13094. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13095. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13096. lt_cv_prog_compiler_c_o_CXX=yes
  13097. fi
  13098. fi
  13099. chmod u+w . 2>&5
  13100. $RM conftest*
  13101. # SGI C++ compiler will create directory out/ii_files/ for
  13102. # template instantiation
  13103. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13104. $RM out/* && rmdir out
  13105. cd ..
  13106. $RM -r conftest
  13107. $RM conftest*
  13108. fi
  13109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13110. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13111. hard_links=nottested
  13112. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13113. # do not overwrite the value of need_locks provided by the user
  13114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13115. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13116. hard_links=yes
  13117. $RM conftest*
  13118. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13119. touch conftest.a
  13120. ln conftest.a conftest.b 2>&5 || hard_links=no
  13121. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13123. $as_echo "$hard_links" >&6; }
  13124. if test no = "$hard_links"; then
  13125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13126. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13127. need_locks=warn
  13128. fi
  13129. else
  13130. need_locks=no
  13131. fi
  13132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13133. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13134. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13135. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13136. case $host_os in
  13137. aix[4-9]*)
  13138. # If we're using GNU nm, then we don't want the "-C" option.
  13139. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13140. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13141. # weak defined symbols like other global defined symbols, whereas
  13142. # GNU nm marks them as "W".
  13143. # While the 'weak' keyword is ignored in the Export File, we need
  13144. # it in the Import File for the 'aix-soname' feature, so we have
  13145. # to replace the "-B" option with "-P" for AIX nm.
  13146. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13147. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  13148. else
  13149. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  13150. fi
  13151. ;;
  13152. pw32*)
  13153. export_symbols_cmds_CXX=$ltdll_cmds
  13154. ;;
  13155. cygwin* | mingw* | cegcc*)
  13156. case $cc_basename in
  13157. cl*)
  13158. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13159. ;;
  13160. *)
  13161. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  13162. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13163. ;;
  13164. esac
  13165. ;;
  13166. linux* | k*bsd*-gnu | gnu*)
  13167. link_all_deplibs_CXX=no
  13168. ;;
  13169. *)
  13170. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13171. ;;
  13172. esac
  13173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13174. $as_echo "$ld_shlibs_CXX" >&6; }
  13175. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13176. with_gnu_ld_CXX=$with_gnu_ld
  13177. #
  13178. # Do we need to explicitly link libc?
  13179. #
  13180. case "x$archive_cmds_need_lc_CXX" in
  13181. x|xyes)
  13182. # Assume -lc should be added
  13183. archive_cmds_need_lc_CXX=yes
  13184. if test yes,yes = "$GCC,$enable_shared"; then
  13185. case $archive_cmds_CXX in
  13186. *'~'*)
  13187. # FIXME: we may have to deal with multi-command sequences.
  13188. ;;
  13189. '$CC '*)
  13190. # Test whether the compiler implicitly links with -lc since on some
  13191. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13192. # to ld, don't add -lc before -lgcc.
  13193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13194. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13195. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13196. $as_echo_n "(cached) " >&6
  13197. else
  13198. $RM conftest*
  13199. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13200. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13201. (eval $ac_compile) 2>&5
  13202. ac_status=$?
  13203. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13204. test $ac_status = 0; } 2>conftest.err; then
  13205. soname=conftest
  13206. lib=conftest
  13207. libobjs=conftest.$ac_objext
  13208. deplibs=
  13209. wl=$lt_prog_compiler_wl_CXX
  13210. pic_flag=$lt_prog_compiler_pic_CXX
  13211. compiler_flags=-v
  13212. linker_flags=-v
  13213. verstring=
  13214. output_objdir=.
  13215. libname=conftest
  13216. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13217. allow_undefined_flag_CXX=
  13218. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13219. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13220. ac_status=$?
  13221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13222. test $ac_status = 0; }
  13223. then
  13224. lt_cv_archive_cmds_need_lc_CXX=no
  13225. else
  13226. lt_cv_archive_cmds_need_lc_CXX=yes
  13227. fi
  13228. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13229. else
  13230. cat conftest.err 1>&5
  13231. fi
  13232. $RM conftest*
  13233. fi
  13234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13235. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13236. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13237. ;;
  13238. esac
  13239. fi
  13240. ;;
  13241. esac
  13242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13243. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13244. library_names_spec=
  13245. libname_spec='lib$name'
  13246. soname_spec=
  13247. shrext_cmds=.so
  13248. postinstall_cmds=
  13249. postuninstall_cmds=
  13250. finish_cmds=
  13251. finish_eval=
  13252. shlibpath_var=
  13253. shlibpath_overrides_runpath=unknown
  13254. version_type=none
  13255. dynamic_linker="$host_os ld.so"
  13256. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13257. need_lib_prefix=unknown
  13258. hardcode_into_libs=no
  13259. # when you set need_version to no, make sure it does not cause -set_version
  13260. # flags to be left without arguments
  13261. need_version=unknown
  13262. case $host_os in
  13263. aix3*)
  13264. version_type=linux # correct to gnu/linux during the next big refactor
  13265. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13266. shlibpath_var=LIBPATH
  13267. # AIX 3 has no versioning support, so we append a major version to the name.
  13268. soname_spec='$libname$release$shared_ext$major'
  13269. ;;
  13270. aix[4-9]*)
  13271. version_type=linux # correct to gnu/linux during the next big refactor
  13272. need_lib_prefix=no
  13273. need_version=no
  13274. hardcode_into_libs=yes
  13275. if test ia64 = "$host_cpu"; then
  13276. # AIX 5 supports IA64
  13277. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13278. shlibpath_var=LD_LIBRARY_PATH
  13279. else
  13280. # With GCC up to 2.95.x, collect2 would create an import file
  13281. # for dependence libraries. The import file would start with
  13282. # the line '#! .'. This would cause the generated library to
  13283. # depend on '.', always an invalid library. This was fixed in
  13284. # development snapshots of GCC prior to 3.0.
  13285. case $host_os in
  13286. aix4 | aix4.[01] | aix4.[01].*)
  13287. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13288. echo ' yes '
  13289. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13290. :
  13291. else
  13292. can_build_shared=no
  13293. fi
  13294. ;;
  13295. esac
  13296. # Using Import Files as archive members, it is possible to support
  13297. # filename-based versioning of shared library archives on AIX. While
  13298. # this would work for both with and without runtime linking, it will
  13299. # prevent static linking of such archives. So we do filename-based
  13300. # shared library versioning with .so extension only, which is used
  13301. # when both runtime linking and shared linking is enabled.
  13302. # Unfortunately, runtime linking may impact performance, so we do
  13303. # not want this to be the default eventually. Also, we use the
  13304. # versioned .so libs for executables only if there is the -brtl
  13305. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13306. # To allow for filename-based versioning support, we need to create
  13307. # libNAME.so.V as an archive file, containing:
  13308. # *) an Import File, referring to the versioned filename of the
  13309. # archive as well as the shared archive member, telling the
  13310. # bitwidth (32 or 64) of that shared object, and providing the
  13311. # list of exported symbols of that shared object, eventually
  13312. # decorated with the 'weak' keyword
  13313. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13314. # it being seen by the linker.
  13315. # At run time we better use the real file rather than another symlink,
  13316. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13317. case $with_aix_soname,$aix_use_runtimelinking in
  13318. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13319. # soname into executable. Probably we can add versioning support to
  13320. # collect2, so additional links can be useful in future.
  13321. aix,yes) # traditional libtool
  13322. dynamic_linker='AIX unversionable lib.so'
  13323. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13324. # instead of lib<name>.a to let people know that these are not
  13325. # typical AIX shared libraries.
  13326. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13327. ;;
  13328. aix,no) # traditional AIX only
  13329. dynamic_linker='AIX lib.a(lib.so.V)'
  13330. # We preserve .a as extension for shared libraries through AIX4.2
  13331. # and later when we are not doing run time linking.
  13332. library_names_spec='$libname$release.a $libname.a'
  13333. soname_spec='$libname$release$shared_ext$major'
  13334. ;;
  13335. svr4,*) # full svr4 only
  13336. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13337. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13338. # We do not specify a path in Import Files, so LIBPATH fires.
  13339. shlibpath_overrides_runpath=yes
  13340. ;;
  13341. *,yes) # both, prefer svr4
  13342. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13343. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13344. # unpreferred sharedlib libNAME.a needs extra handling
  13345. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  13346. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  13347. # We do not specify a path in Import Files, so LIBPATH fires.
  13348. shlibpath_overrides_runpath=yes
  13349. ;;
  13350. *,no) # both, prefer aix
  13351. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13352. library_names_spec='$libname$release.a $libname.a'
  13353. soname_spec='$libname$release$shared_ext$major'
  13354. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13355. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  13356. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  13357. ;;
  13358. esac
  13359. shlibpath_var=LIBPATH
  13360. fi
  13361. ;;
  13362. amigaos*)
  13363. case $host_cpu in
  13364. powerpc)
  13365. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13366. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13367. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13368. ;;
  13369. m68k)
  13370. library_names_spec='$libname.ixlibrary $libname.a'
  13371. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13372. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  13373. ;;
  13374. esac
  13375. ;;
  13376. beos*)
  13377. library_names_spec='$libname$shared_ext'
  13378. dynamic_linker="$host_os ld.so"
  13379. shlibpath_var=LIBRARY_PATH
  13380. ;;
  13381. bsdi[45]*)
  13382. version_type=linux # correct to gnu/linux during the next big refactor
  13383. need_version=no
  13384. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13385. soname_spec='$libname$release$shared_ext$major'
  13386. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13387. shlibpath_var=LD_LIBRARY_PATH
  13388. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13389. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13390. # the default ld.so.conf also contains /usr/contrib/lib and
  13391. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13392. # libtool to hard-code these into programs
  13393. ;;
  13394. cygwin* | mingw* | pw32* | cegcc*)
  13395. version_type=windows
  13396. shrext_cmds=.dll
  13397. need_version=no
  13398. need_lib_prefix=no
  13399. case $GCC,$cc_basename in
  13400. yes,*)
  13401. # gcc
  13402. library_names_spec='$libname.dll.a'
  13403. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13404. postinstall_cmds='base_file=`basename \$file`~
  13405. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13406. dldir=$destdir/`dirname \$dlpath`~
  13407. test -d \$dldir || mkdir -p \$dldir~
  13408. $install_prog $dir/$dlname \$dldir/$dlname~
  13409. chmod a+x \$dldir/$dlname~
  13410. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13411. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13412. fi'
  13413. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13414. dlpath=$dir/\$dldll~
  13415. $RM \$dlpath'
  13416. shlibpath_overrides_runpath=yes
  13417. case $host_os in
  13418. cygwin*)
  13419. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13420. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13421. ;;
  13422. mingw* | cegcc*)
  13423. # MinGW DLLs use traditional 'lib' prefix
  13424. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13425. ;;
  13426. pw32*)
  13427. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13428. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13429. ;;
  13430. esac
  13431. dynamic_linker='Win32 ld.exe'
  13432. ;;
  13433. *,cl*)
  13434. # Native MSVC
  13435. libname_spec='$name'
  13436. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13437. library_names_spec='$libname.dll.lib'
  13438. case $build_os in
  13439. mingw*)
  13440. sys_lib_search_path_spec=
  13441. lt_save_ifs=$IFS
  13442. IFS=';'
  13443. for lt_path in $LIB
  13444. do
  13445. IFS=$lt_save_ifs
  13446. # Let DOS variable expansion print the short 8.3 style file name.
  13447. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13448. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13449. done
  13450. IFS=$lt_save_ifs
  13451. # Convert to MSYS style.
  13452. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13453. ;;
  13454. cygwin*)
  13455. # Convert to unix form, then to dos form, then back to unix form
  13456. # but this time dos style (no spaces!) so that the unix form looks
  13457. # like /cygdrive/c/PROGRA~1:/cygdr...
  13458. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13459. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13460. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13461. ;;
  13462. *)
  13463. sys_lib_search_path_spec=$LIB
  13464. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13465. # It is most probably a Windows format PATH.
  13466. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13467. else
  13468. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13469. fi
  13470. # FIXME: find the short name or the path components, as spaces are
  13471. # common. (e.g. "Program Files" -> "PROGRA~1")
  13472. ;;
  13473. esac
  13474. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13475. postinstall_cmds='base_file=`basename \$file`~
  13476. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13477. dldir=$destdir/`dirname \$dlpath`~
  13478. test -d \$dldir || mkdir -p \$dldir~
  13479. $install_prog $dir/$dlname \$dldir/$dlname'
  13480. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13481. dlpath=$dir/\$dldll~
  13482. $RM \$dlpath'
  13483. shlibpath_overrides_runpath=yes
  13484. dynamic_linker='Win32 link.exe'
  13485. ;;
  13486. *)
  13487. # Assume MSVC wrapper
  13488. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13489. dynamic_linker='Win32 ld.exe'
  13490. ;;
  13491. esac
  13492. # FIXME: first we should search . and the directory the executable is in
  13493. shlibpath_var=PATH
  13494. ;;
  13495. darwin* | rhapsody*)
  13496. dynamic_linker="$host_os dyld"
  13497. version_type=darwin
  13498. need_lib_prefix=no
  13499. need_version=no
  13500. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13501. soname_spec='$libname$release$major$shared_ext'
  13502. shlibpath_overrides_runpath=yes
  13503. shlibpath_var=DYLD_LIBRARY_PATH
  13504. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13505. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13506. ;;
  13507. dgux*)
  13508. version_type=linux # correct to gnu/linux during the next big refactor
  13509. need_lib_prefix=no
  13510. need_version=no
  13511. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13512. soname_spec='$libname$release$shared_ext$major'
  13513. shlibpath_var=LD_LIBRARY_PATH
  13514. ;;
  13515. freebsd* | dragonfly*)
  13516. # DragonFly does not have aout. When/if they implement a new
  13517. # versioning mechanism, adjust this.
  13518. if test -x /usr/bin/objformat; then
  13519. objformat=`/usr/bin/objformat`
  13520. else
  13521. case $host_os in
  13522. freebsd[23].*) objformat=aout ;;
  13523. *) objformat=elf ;;
  13524. esac
  13525. fi
  13526. version_type=freebsd-$objformat
  13527. case $version_type in
  13528. freebsd-elf*)
  13529. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13530. soname_spec='$libname$release$shared_ext$major'
  13531. need_version=no
  13532. need_lib_prefix=no
  13533. ;;
  13534. freebsd-*)
  13535. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13536. need_version=yes
  13537. ;;
  13538. esac
  13539. shlibpath_var=LD_LIBRARY_PATH
  13540. case $host_os in
  13541. freebsd2.*)
  13542. shlibpath_overrides_runpath=yes
  13543. ;;
  13544. freebsd3.[01]* | freebsdelf3.[01]*)
  13545. shlibpath_overrides_runpath=yes
  13546. hardcode_into_libs=yes
  13547. ;;
  13548. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13549. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13550. shlibpath_overrides_runpath=no
  13551. hardcode_into_libs=yes
  13552. ;;
  13553. *) # from 4.6 on, and DragonFly
  13554. shlibpath_overrides_runpath=yes
  13555. hardcode_into_libs=yes
  13556. ;;
  13557. esac
  13558. ;;
  13559. haiku*)
  13560. version_type=linux # correct to gnu/linux during the next big refactor
  13561. need_lib_prefix=no
  13562. need_version=no
  13563. dynamic_linker="$host_os runtime_loader"
  13564. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13565. soname_spec='$libname$release$shared_ext$major'
  13566. shlibpath_var=LIBRARY_PATH
  13567. shlibpath_overrides_runpath=no
  13568. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13569. hardcode_into_libs=yes
  13570. ;;
  13571. hpux9* | hpux10* | hpux11*)
  13572. # Give a soname corresponding to the major version so that dld.sl refuses to
  13573. # link against other versions.
  13574. version_type=sunos
  13575. need_lib_prefix=no
  13576. need_version=no
  13577. case $host_cpu in
  13578. ia64*)
  13579. shrext_cmds='.so'
  13580. hardcode_into_libs=yes
  13581. dynamic_linker="$host_os dld.so"
  13582. shlibpath_var=LD_LIBRARY_PATH
  13583. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13584. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13585. soname_spec='$libname$release$shared_ext$major'
  13586. if test 32 = "$HPUX_IA64_MODE"; then
  13587. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13588. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13589. else
  13590. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13591. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13592. fi
  13593. ;;
  13594. hppa*64*)
  13595. shrext_cmds='.sl'
  13596. hardcode_into_libs=yes
  13597. dynamic_linker="$host_os dld.sl"
  13598. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13599. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13600. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13601. soname_spec='$libname$release$shared_ext$major'
  13602. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13603. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13604. ;;
  13605. *)
  13606. shrext_cmds='.sl'
  13607. dynamic_linker="$host_os dld.sl"
  13608. shlibpath_var=SHLIB_PATH
  13609. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13610. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13611. soname_spec='$libname$release$shared_ext$major'
  13612. ;;
  13613. esac
  13614. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13615. postinstall_cmds='chmod 555 $lib'
  13616. # or fails outright, so override atomically:
  13617. install_override_mode=555
  13618. ;;
  13619. interix[3-9]*)
  13620. version_type=linux # correct to gnu/linux during the next big refactor
  13621. need_lib_prefix=no
  13622. need_version=no
  13623. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13624. soname_spec='$libname$release$shared_ext$major'
  13625. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13626. shlibpath_var=LD_LIBRARY_PATH
  13627. shlibpath_overrides_runpath=no
  13628. hardcode_into_libs=yes
  13629. ;;
  13630. irix5* | irix6* | nonstopux*)
  13631. case $host_os in
  13632. nonstopux*) version_type=nonstopux ;;
  13633. *)
  13634. if test yes = "$lt_cv_prog_gnu_ld"; then
  13635. version_type=linux # correct to gnu/linux during the next big refactor
  13636. else
  13637. version_type=irix
  13638. fi ;;
  13639. esac
  13640. need_lib_prefix=no
  13641. need_version=no
  13642. soname_spec='$libname$release$shared_ext$major'
  13643. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13644. case $host_os in
  13645. irix5* | nonstopux*)
  13646. libsuff= shlibsuff=
  13647. ;;
  13648. *)
  13649. case $LD in # libtool.m4 will add one of these switches to LD
  13650. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13651. libsuff= shlibsuff= libmagic=32-bit;;
  13652. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13653. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13654. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13655. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13656. *) libsuff= shlibsuff= libmagic=never-match;;
  13657. esac
  13658. ;;
  13659. esac
  13660. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13661. shlibpath_overrides_runpath=no
  13662. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13663. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13664. hardcode_into_libs=yes
  13665. ;;
  13666. # No shared lib support for Linux oldld, aout, or coff.
  13667. linux*oldld* | linux*aout* | linux*coff*)
  13668. dynamic_linker=no
  13669. ;;
  13670. linux*android*)
  13671. version_type=none # Android doesn't support versioned libraries.
  13672. need_lib_prefix=no
  13673. need_version=no
  13674. library_names_spec='$libname$release$shared_ext'
  13675. soname_spec='$libname$release$shared_ext'
  13676. finish_cmds=
  13677. shlibpath_var=LD_LIBRARY_PATH
  13678. shlibpath_overrides_runpath=yes
  13679. # This implies no fast_install, which is unacceptable.
  13680. # Some rework will be needed to allow for fast_install
  13681. # before this can be enabled.
  13682. hardcode_into_libs=yes
  13683. dynamic_linker='Android linker'
  13684. # Don't embed -rpath directories since the linker doesn't support them.
  13685. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13686. ;;
  13687. # This must be glibc/ELF.
  13688. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13689. version_type=linux # correct to gnu/linux during the next big refactor
  13690. need_lib_prefix=no
  13691. need_version=no
  13692. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13693. soname_spec='$libname$release$shared_ext$major'
  13694. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13695. shlibpath_var=LD_LIBRARY_PATH
  13696. shlibpath_overrides_runpath=no
  13697. # Some binutils ld are patched to set DT_RUNPATH
  13698. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13699. $as_echo_n "(cached) " >&6
  13700. else
  13701. lt_cv_shlibpath_overrides_runpath=no
  13702. save_LDFLAGS=$LDFLAGS
  13703. save_libdir=$libdir
  13704. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13705. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13707. /* end confdefs.h. */
  13708. int
  13709. main ()
  13710. {
  13711. ;
  13712. return 0;
  13713. }
  13714. _ACEOF
  13715. if ac_fn_cxx_try_link "$LINENO"; then :
  13716. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13717. lt_cv_shlibpath_overrides_runpath=yes
  13718. fi
  13719. fi
  13720. rm -f core conftest.err conftest.$ac_objext \
  13721. conftest$ac_exeext conftest.$ac_ext
  13722. LDFLAGS=$save_LDFLAGS
  13723. libdir=$save_libdir
  13724. fi
  13725. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13726. # This implies no fast_install, which is unacceptable.
  13727. # Some rework will be needed to allow for fast_install
  13728. # before this can be enabled.
  13729. hardcode_into_libs=yes
  13730. # Ideally, we could use ldconfig to report *all* directores which are
  13731. # searched for libraries, however this is still not possible. Aside from not
  13732. # being certain /sbin/ldconfig is available, command
  13733. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13734. # even though it is searched at run-time. Try to do the best guess by
  13735. # appending ld.so.conf contents (and includes) to the search path.
  13736. if test -f /etc/ld.so.conf; then
  13737. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  13738. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13739. fi
  13740. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13741. # powerpc, because MkLinux only supported shared libraries with the
  13742. # GNU dynamic linker. Since this was broken with cross compilers,
  13743. # most powerpc-linux boxes support dynamic linking these days and
  13744. # people can always --disable-shared, the test was removed, and we
  13745. # assume the GNU/Linux dynamic linker is in use.
  13746. dynamic_linker='GNU/Linux ld.so'
  13747. ;;
  13748. netbsdelf*-gnu)
  13749. version_type=linux
  13750. need_lib_prefix=no
  13751. need_version=no
  13752. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13753. soname_spec='${libname}${release}${shared_ext}$major'
  13754. shlibpath_var=LD_LIBRARY_PATH
  13755. shlibpath_overrides_runpath=no
  13756. hardcode_into_libs=yes
  13757. dynamic_linker='NetBSD ld.elf_so'
  13758. ;;
  13759. netbsd*)
  13760. version_type=sunos
  13761. need_lib_prefix=no
  13762. need_version=no
  13763. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13764. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13765. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13766. dynamic_linker='NetBSD (a.out) ld.so'
  13767. else
  13768. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13769. soname_spec='$libname$release$shared_ext$major'
  13770. dynamic_linker='NetBSD ld.elf_so'
  13771. fi
  13772. shlibpath_var=LD_LIBRARY_PATH
  13773. shlibpath_overrides_runpath=yes
  13774. hardcode_into_libs=yes
  13775. ;;
  13776. newsos6)
  13777. version_type=linux # correct to gnu/linux during the next big refactor
  13778. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13779. shlibpath_var=LD_LIBRARY_PATH
  13780. shlibpath_overrides_runpath=yes
  13781. ;;
  13782. *nto* | *qnx*)
  13783. version_type=qnx
  13784. need_lib_prefix=no
  13785. need_version=no
  13786. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13787. soname_spec='$libname$release$shared_ext$major'
  13788. shlibpath_var=LD_LIBRARY_PATH
  13789. shlibpath_overrides_runpath=no
  13790. hardcode_into_libs=yes
  13791. dynamic_linker='ldqnx.so'
  13792. ;;
  13793. openbsd* | bitrig*)
  13794. version_type=sunos
  13795. sys_lib_dlsearch_path_spec=/usr/lib
  13796. need_lib_prefix=no
  13797. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13798. need_version=no
  13799. else
  13800. need_version=yes
  13801. fi
  13802. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13803. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13804. shlibpath_var=LD_LIBRARY_PATH
  13805. shlibpath_overrides_runpath=yes
  13806. ;;
  13807. os2*)
  13808. libname_spec='$name'
  13809. version_type=windows
  13810. shrext_cmds=.dll
  13811. need_version=no
  13812. need_lib_prefix=no
  13813. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13814. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13815. v=$($ECHO $release$versuffix | tr -d .-);
  13816. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13817. $ECHO $n$v`$shared_ext'
  13818. library_names_spec='${libname}_dll.$libext'
  13819. dynamic_linker='OS/2 ld.exe'
  13820. shlibpath_var=BEGINLIBPATH
  13821. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13822. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13823. postinstall_cmds='base_file=`basename \$file`~
  13824. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13825. dldir=$destdir/`dirname \$dlpath`~
  13826. test -d \$dldir || mkdir -p \$dldir~
  13827. $install_prog $dir/$dlname \$dldir/$dlname~
  13828. chmod a+x \$dldir/$dlname~
  13829. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13830. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13831. fi'
  13832. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  13833. dlpath=$dir/\$dldll~
  13834. $RM \$dlpath'
  13835. ;;
  13836. osf3* | osf4* | osf5*)
  13837. version_type=osf
  13838. need_lib_prefix=no
  13839. need_version=no
  13840. soname_spec='$libname$release$shared_ext$major'
  13841. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13842. shlibpath_var=LD_LIBRARY_PATH
  13843. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13844. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13845. ;;
  13846. rdos*)
  13847. dynamic_linker=no
  13848. ;;
  13849. solaris*)
  13850. version_type=linux # correct to gnu/linux during the next big refactor
  13851. need_lib_prefix=no
  13852. need_version=no
  13853. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13854. soname_spec='$libname$release$shared_ext$major'
  13855. shlibpath_var=LD_LIBRARY_PATH
  13856. shlibpath_overrides_runpath=yes
  13857. hardcode_into_libs=yes
  13858. # ldd complains unless libraries are executable
  13859. postinstall_cmds='chmod +x $lib'
  13860. ;;
  13861. sunos4*)
  13862. version_type=sunos
  13863. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13864. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13865. shlibpath_var=LD_LIBRARY_PATH
  13866. shlibpath_overrides_runpath=yes
  13867. if test yes = "$with_gnu_ld"; then
  13868. need_lib_prefix=no
  13869. fi
  13870. need_version=yes
  13871. ;;
  13872. sysv4 | sysv4.3*)
  13873. version_type=linux # correct to gnu/linux during the next big refactor
  13874. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13875. soname_spec='$libname$release$shared_ext$major'
  13876. shlibpath_var=LD_LIBRARY_PATH
  13877. case $host_vendor in
  13878. sni)
  13879. shlibpath_overrides_runpath=no
  13880. need_lib_prefix=no
  13881. runpath_var=LD_RUN_PATH
  13882. ;;
  13883. siemens)
  13884. need_lib_prefix=no
  13885. ;;
  13886. motorola)
  13887. need_lib_prefix=no
  13888. need_version=no
  13889. shlibpath_overrides_runpath=no
  13890. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13891. ;;
  13892. esac
  13893. ;;
  13894. sysv4*MP*)
  13895. if test -d /usr/nec; then
  13896. version_type=linux # correct to gnu/linux during the next big refactor
  13897. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  13898. soname_spec='$libname$shared_ext.$major'
  13899. shlibpath_var=LD_LIBRARY_PATH
  13900. fi
  13901. ;;
  13902. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13903. version_type=sco
  13904. need_lib_prefix=no
  13905. need_version=no
  13906. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  13907. soname_spec='$libname$release$shared_ext$major'
  13908. shlibpath_var=LD_LIBRARY_PATH
  13909. shlibpath_overrides_runpath=yes
  13910. hardcode_into_libs=yes
  13911. if test yes = "$with_gnu_ld"; then
  13912. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13913. else
  13914. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13915. case $host_os in
  13916. sco3.2v5*)
  13917. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13918. ;;
  13919. esac
  13920. fi
  13921. sys_lib_dlsearch_path_spec='/usr/lib'
  13922. ;;
  13923. tpf*)
  13924. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13925. version_type=linux # correct to gnu/linux during the next big refactor
  13926. need_lib_prefix=no
  13927. need_version=no
  13928. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13929. shlibpath_var=LD_LIBRARY_PATH
  13930. shlibpath_overrides_runpath=no
  13931. hardcode_into_libs=yes
  13932. ;;
  13933. uts4*)
  13934. version_type=linux # correct to gnu/linux during the next big refactor
  13935. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13936. soname_spec='$libname$release$shared_ext$major'
  13937. shlibpath_var=LD_LIBRARY_PATH
  13938. ;;
  13939. *)
  13940. dynamic_linker=no
  13941. ;;
  13942. esac
  13943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13944. $as_echo "$dynamic_linker" >&6; }
  13945. test no = "$dynamic_linker" && can_build_shared=no
  13946. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13947. if test yes = "$GCC"; then
  13948. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13949. fi
  13950. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  13951. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  13952. fi
  13953. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  13954. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  13955. fi
  13956. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  13957. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  13958. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  13959. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  13960. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  13961. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  13962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13963. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13964. hardcode_action_CXX=
  13965. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13966. test -n "$runpath_var_CXX" ||
  13967. test yes = "$hardcode_automatic_CXX"; then
  13968. # We can hardcode non-existent directories.
  13969. if test no != "$hardcode_direct_CXX" &&
  13970. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13971. # have to relink, otherwise we might link with an installed library
  13972. # when we should be linking with a yet-to-be-installed one
  13973. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  13974. test no != "$hardcode_minus_L_CXX"; then
  13975. # Linking always hardcodes the temporary library directory.
  13976. hardcode_action_CXX=relink
  13977. else
  13978. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13979. hardcode_action_CXX=immediate
  13980. fi
  13981. else
  13982. # We cannot hardcode anything, or else we can only hardcode existing
  13983. # directories.
  13984. hardcode_action_CXX=unsupported
  13985. fi
  13986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13987. $as_echo "$hardcode_action_CXX" >&6; }
  13988. if test relink = "$hardcode_action_CXX" ||
  13989. test yes = "$inherit_rpath_CXX"; then
  13990. # Fast installation is not supported
  13991. enable_fast_install=no
  13992. elif test yes = "$shlibpath_overrides_runpath" ||
  13993. test no = "$enable_shared"; then
  13994. # Fast installation is not necessary
  13995. enable_fast_install=needless
  13996. fi
  13997. fi # test -n "$compiler"
  13998. CC=$lt_save_CC
  13999. CFLAGS=$lt_save_CFLAGS
  14000. LDCXX=$LD
  14001. LD=$lt_save_LD
  14002. GCC=$lt_save_GCC
  14003. with_gnu_ld=$lt_save_with_gnu_ld
  14004. lt_cv_path_LDCXX=$lt_cv_path_LD
  14005. lt_cv_path_LD=$lt_save_path_LD
  14006. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14007. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14008. fi # test yes != "$_lt_caught_CXX_error"
  14009. ac_ext=c
  14010. ac_cpp='$CPP $CPPFLAGS'
  14011. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14012. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14013. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14014. ac_config_commands="$ac_config_commands libtool"
  14015. # Only expand once:
  14016. if test -n "$ac_tool_prefix"; then
  14017. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  14018. set dummy ${ac_tool_prefix}windres; ac_word=$2
  14019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14020. $as_echo_n "checking for $ac_word... " >&6; }
  14021. if ${ac_cv_prog_RC+:} false; then :
  14022. $as_echo_n "(cached) " >&6
  14023. else
  14024. if test -n "$RC"; then
  14025. ac_cv_prog_RC="$RC" # Let the user override the test.
  14026. else
  14027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14028. for as_dir in $PATH
  14029. do
  14030. IFS=$as_save_IFS
  14031. test -z "$as_dir" && as_dir=.
  14032. for ac_exec_ext in '' $ac_executable_extensions; do
  14033. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14034. ac_cv_prog_RC="${ac_tool_prefix}windres"
  14035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14036. break 2
  14037. fi
  14038. done
  14039. done
  14040. IFS=$as_save_IFS
  14041. fi
  14042. fi
  14043. RC=$ac_cv_prog_RC
  14044. if test -n "$RC"; then
  14045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  14046. $as_echo "$RC" >&6; }
  14047. else
  14048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14049. $as_echo "no" >&6; }
  14050. fi
  14051. fi
  14052. if test -z "$ac_cv_prog_RC"; then
  14053. ac_ct_RC=$RC
  14054. # Extract the first word of "windres", so it can be a program name with args.
  14055. set dummy windres; ac_word=$2
  14056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14057. $as_echo_n "checking for $ac_word... " >&6; }
  14058. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  14059. $as_echo_n "(cached) " >&6
  14060. else
  14061. if test -n "$ac_ct_RC"; then
  14062. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  14063. else
  14064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14065. for as_dir in $PATH
  14066. do
  14067. IFS=$as_save_IFS
  14068. test -z "$as_dir" && as_dir=.
  14069. for ac_exec_ext in '' $ac_executable_extensions; do
  14070. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14071. ac_cv_prog_ac_ct_RC="windres"
  14072. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14073. break 2
  14074. fi
  14075. done
  14076. done
  14077. IFS=$as_save_IFS
  14078. fi
  14079. fi
  14080. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  14081. if test -n "$ac_ct_RC"; then
  14082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  14083. $as_echo "$ac_ct_RC" >&6; }
  14084. else
  14085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14086. $as_echo "no" >&6; }
  14087. fi
  14088. if test "x$ac_ct_RC" = x; then
  14089. RC=""
  14090. else
  14091. case $cross_compiling:$ac_tool_warned in
  14092. yes:)
  14093. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14094. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14095. ac_tool_warned=yes ;;
  14096. esac
  14097. RC=$ac_ct_RC
  14098. fi
  14099. else
  14100. RC="$ac_cv_prog_RC"
  14101. fi
  14102. # Source file extension for RC test sources.
  14103. ac_ext=rc
  14104. # Object file extension for compiled RC test sources.
  14105. objext=o
  14106. objext_RC=$objext
  14107. # Code to be used in simple compile tests
  14108. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  14109. # Code to be used in simple link tests
  14110. lt_simple_link_test_code=$lt_simple_compile_test_code
  14111. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14112. # If no C compiler was specified, use CC.
  14113. LTCC=${LTCC-"$CC"}
  14114. # If no C compiler flags were specified, use CFLAGS.
  14115. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14116. # Allow CC to be a program name with arguments.
  14117. compiler=$CC
  14118. # save warnings/boilerplate of simple test code
  14119. ac_outfile=conftest.$ac_objext
  14120. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14121. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14122. _lt_compiler_boilerplate=`cat conftest.err`
  14123. $RM conftest*
  14124. ac_outfile=conftest.$ac_objext
  14125. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14126. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14127. _lt_linker_boilerplate=`cat conftest.err`
  14128. $RM -r conftest*
  14129. # Allow CC to be a program name with arguments.
  14130. lt_save_CC=$CC
  14131. lt_save_CFLAGS=$CFLAGS
  14132. lt_save_GCC=$GCC
  14133. GCC=
  14134. CC=${RC-"windres"}
  14135. CFLAGS=
  14136. compiler=$CC
  14137. compiler_RC=$CC
  14138. func_cc_basename $compiler
  14139. cc_basename=$func_cc_basename_result
  14140. lt_cv_prog_compiler_c_o_RC=yes
  14141. if test -n "$compiler"; then
  14142. :
  14143. fi
  14144. GCC=$lt_save_GCC
  14145. ac_ext=c
  14146. ac_cpp='$CPP $CPPFLAGS'
  14147. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14148. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14149. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14150. CC=$lt_save_CC
  14151. CFLAGS=$lt_save_CFLAGS
  14152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  14153. $as_echo_n "checking whether ln -s works... " >&6; }
  14154. LN_S=$as_ln_s
  14155. if test "$LN_S" = "ln -s"; then
  14156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14157. $as_echo "yes" >&6; }
  14158. else
  14159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  14160. $as_echo "no, using $LN_S" >&6; }
  14161. fi
  14162. #------------------------------------------------------------------------------------
  14163. # Rules for library version information:
  14164. #
  14165. # 1. Start with version information of `0:0:0' for each libtool library.
  14166. # 2. Update the version information only immediately before a public release of
  14167. # your software. More frequent updates are unnecessary, and only guarantee
  14168. # that the current interface number gets larger faster.
  14169. # 3. If the library source code has changed at all since the last update, then
  14170. # increment revision (`c:r:a' becomes `c:r+1:a').
  14171. # 4. If any interfaces have been added, removed, or changed since the last update,
  14172. # increment current, and set revision to 0.
  14173. # 5. If any interfaces have been added since the last public release, then increment
  14174. # age.
  14175. # 6. If any interfaces have been removed since the last public release, then set age
  14176. # to 0.
  14177. SHARED_VERSION_INFO="1:8:1"
  14178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14179. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14180. set x ${MAKE-make}
  14181. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14182. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14183. $as_echo_n "(cached) " >&6
  14184. else
  14185. cat >conftest.make <<\_ACEOF
  14186. SHELL = /bin/sh
  14187. all:
  14188. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14189. _ACEOF
  14190. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14191. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14192. *@@@%%%=?*=@@@%%%*)
  14193. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14194. *)
  14195. eval ac_cv_prog_make_${ac_make}_set=no;;
  14196. esac
  14197. rm -f conftest.make
  14198. fi
  14199. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14201. $as_echo "yes" >&6; }
  14202. SET_MAKE=
  14203. else
  14204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14205. $as_echo "no" >&6; }
  14206. SET_MAKE="MAKE=${MAKE-make}"
  14207. fi
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  14209. $as_echo_n "checking whether ln -s works... " >&6; }
  14210. LN_S=$as_ln_s
  14211. if test "$LN_S" = "ln -s"; then
  14212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14213. $as_echo "yes" >&6; }
  14214. else
  14215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  14216. $as_echo "no, using $LN_S" >&6; }
  14217. fi
  14218. if test "x-$build_os-$host_os-$target_os" = x-mingw32-mingw32-mingw32 ; then
  14219. # Extract the first word of "dlltool", so it can be a program name with args.
  14220. set dummy dlltool; ac_word=$2
  14221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14222. $as_echo_n "checking for $ac_word... " >&6; }
  14223. if ${ac_cv_prog_DLLTOOL+:} false; then :
  14224. $as_echo_n "(cached) " >&6
  14225. else
  14226. if test -n "$DLLTOOL"; then
  14227. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  14228. else
  14229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14230. for as_dir in $PATH
  14231. do
  14232. IFS=$as_save_IFS
  14233. test -z "$as_dir" && as_dir=.
  14234. for ac_exec_ext in '' $ac_executable_extensions; do
  14235. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14236. ac_cv_prog_DLLTOOL="dlltool"
  14237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14238. break 2
  14239. fi
  14240. done
  14241. done
  14242. IFS=$as_save_IFS
  14243. fi
  14244. fi
  14245. DLLTOOL=$ac_cv_prog_DLLTOOL
  14246. if test -n "$DLLTOOL"; then
  14247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  14248. $as_echo "$DLLTOOL" >&6; }
  14249. else
  14250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14251. $as_echo "no" >&6; }
  14252. fi
  14253. # Extract the first word of "dllwrap", so it can be a program name with args.
  14254. set dummy dllwrap; ac_word=$2
  14255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14256. $as_echo_n "checking for $ac_word... " >&6; }
  14257. if ${ac_cv_prog_DLLWRAP+:} false; then :
  14258. $as_echo_n "(cached) " >&6
  14259. else
  14260. if test -n "$DLLWRAP"; then
  14261. ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
  14262. else
  14263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14264. for as_dir in $PATH
  14265. do
  14266. IFS=$as_save_IFS
  14267. test -z "$as_dir" && as_dir=.
  14268. for ac_exec_ext in '' $ac_executable_extensions; do
  14269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14270. ac_cv_prog_DLLWRAP="dllwrap"
  14271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14272. break 2
  14273. fi
  14274. done
  14275. done
  14276. IFS=$as_save_IFS
  14277. fi
  14278. fi
  14279. DLLWRAP=$ac_cv_prog_DLLWRAP
  14280. if test -n "$DLLWRAP"; then
  14281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
  14282. $as_echo "$DLLWRAP" >&6; }
  14283. else
  14284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14285. $as_echo "no" >&6; }
  14286. fi
  14287. # Extract the first word of "pexports", so it can be a program name with args.
  14288. set dummy pexports; ac_word=$2
  14289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14290. $as_echo_n "checking for $ac_word... " >&6; }
  14291. if ${ac_cv_prog_PEXPORTS+:} false; then :
  14292. $as_echo_n "(cached) " >&6
  14293. else
  14294. if test -n "$PEXPORTS"; then
  14295. ac_cv_prog_PEXPORTS="$PEXPORTS" # Let the user override the test.
  14296. else
  14297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14298. for as_dir in $PATH
  14299. do
  14300. IFS=$as_save_IFS
  14301. test -z "$as_dir" && as_dir=.
  14302. for ac_exec_ext in '' $ac_executable_extensions; do
  14303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14304. ac_cv_prog_PEXPORTS="pexports"
  14305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14306. break 2
  14307. fi
  14308. done
  14309. done
  14310. IFS=$as_save_IFS
  14311. fi
  14312. fi
  14313. PEXPORTS=$ac_cv_prog_PEXPORTS
  14314. if test -n "$PEXPORTS"; then
  14315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PEXPORTS" >&5
  14316. $as_echo "$PEXPORTS" >&6; }
  14317. else
  14318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14319. $as_echo "no" >&6; }
  14320. fi
  14321. fi
  14322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14323. $as_echo_n "checking for ANSI C header files... " >&6; }
  14324. if ${ac_cv_header_stdc+:} false; then :
  14325. $as_echo_n "(cached) " >&6
  14326. else
  14327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14328. /* end confdefs.h. */
  14329. #include <stdlib.h>
  14330. #include <stdarg.h>
  14331. #include <string.h>
  14332. #include <float.h>
  14333. int
  14334. main ()
  14335. {
  14336. ;
  14337. return 0;
  14338. }
  14339. _ACEOF
  14340. if ac_fn_c_try_compile "$LINENO"; then :
  14341. ac_cv_header_stdc=yes
  14342. else
  14343. ac_cv_header_stdc=no
  14344. fi
  14345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14346. if test $ac_cv_header_stdc = yes; then
  14347. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14349. /* end confdefs.h. */
  14350. #include <string.h>
  14351. _ACEOF
  14352. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14353. $EGREP "memchr" >/dev/null 2>&1; then :
  14354. else
  14355. ac_cv_header_stdc=no
  14356. fi
  14357. rm -f conftest*
  14358. fi
  14359. if test $ac_cv_header_stdc = yes; then
  14360. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14362. /* end confdefs.h. */
  14363. #include <stdlib.h>
  14364. _ACEOF
  14365. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14366. $EGREP "free" >/dev/null 2>&1; then :
  14367. else
  14368. ac_cv_header_stdc=no
  14369. fi
  14370. rm -f conftest*
  14371. fi
  14372. if test $ac_cv_header_stdc = yes; then
  14373. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14374. if test "$cross_compiling" = yes; then :
  14375. :
  14376. else
  14377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14378. /* end confdefs.h. */
  14379. #include <ctype.h>
  14380. #include <stdlib.h>
  14381. #if ((' ' & 0x0FF) == 0x020)
  14382. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14383. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14384. #else
  14385. # define ISLOWER(c) \
  14386. (('a' <= (c) && (c) <= 'i') \
  14387. || ('j' <= (c) && (c) <= 'r') \
  14388. || ('s' <= (c) && (c) <= 'z'))
  14389. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14390. #endif
  14391. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14392. int
  14393. main ()
  14394. {
  14395. int i;
  14396. for (i = 0; i < 256; i++)
  14397. if (XOR (islower (i), ISLOWER (i))
  14398. || toupper (i) != TOUPPER (i))
  14399. return 2;
  14400. return 0;
  14401. }
  14402. _ACEOF
  14403. if ac_fn_c_try_run "$LINENO"; then :
  14404. else
  14405. ac_cv_header_stdc=no
  14406. fi
  14407. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14408. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14409. fi
  14410. fi
  14411. fi
  14412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14413. $as_echo "$ac_cv_header_stdc" >&6; }
  14414. if test $ac_cv_header_stdc = yes; then
  14415. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14416. fi
  14417. for ac_header in stdint.h sys/times.h
  14418. do :
  14419. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14420. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14421. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14422. cat >>confdefs.h <<_ACEOF
  14423. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14424. _ACEOF
  14425. fi
  14426. done
  14427. #====================================================================================
  14428. # Couple of initializations here. Fill in real values later.
  14429. SHLIB_VERSION_ARG=""
  14430. #====================================================================================
  14431. # Finished checking, handle options.
  14432. # Check whether --enable-gcc-werror was given.
  14433. if test "${enable_gcc_werror+set}" = set; then :
  14434. enableval=$enable_gcc_werror; ac_arg_gcc_werror=yes
  14435. else
  14436. ac_arg_gcc_werror=no
  14437. fi
  14438. # Check whether --enable-gcc-pipe was given.
  14439. if test "${enable_gcc_pipe+set}" = set; then :
  14440. enableval=$enable_gcc_pipe; ac_arg_gcc_pipe="N"
  14441. else
  14442. ac_arg_gcc_pipe="Y"
  14443. fi
  14444. # Check whether --enable-gcc-opt was given.
  14445. if test "${enable_gcc_opt+set}" = set; then :
  14446. enableval=$enable_gcc_opt; ac_arg_gcc_opt="N"
  14447. else
  14448. ac_arg_gcc_opt="Y"
  14449. fi
  14450. # Check whether --enable-fftw was given.
  14451. if test "${enable_fftw+set}" = set; then :
  14452. enableval=$enable_fftw; ac_arg_fftw="N"
  14453. else
  14454. ac_arg_fftw="Y"
  14455. fi
  14456. # Check whether --enable-cpu-clip was given.
  14457. if test "${enable_cpu_clip+set}" = set; then :
  14458. enableval=$enable_cpu_clip; ac_arg_cpu_clip="N"
  14459. else
  14460. ac_arg_cpu_clip="Y"
  14461. fi
  14462. #====================================================================================
  14463. # Check types and their sizes.
  14464. # The cast to long int works around a bug in the HP C Compiler
  14465. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14466. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14467. # This bug is HP SR number 8606223364.
  14468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  14469. $as_echo_n "checking size of int... " >&6; }
  14470. if ${ac_cv_sizeof_int+:} false; then :
  14471. $as_echo_n "(cached) " >&6
  14472. else
  14473. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  14474. else
  14475. if test "$ac_cv_type_int" = yes; then
  14476. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14477. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14478. as_fn_error 77 "cannot compute sizeof (int)
  14479. See \`config.log' for more details" "$LINENO" 5; }
  14480. else
  14481. ac_cv_sizeof_int=0
  14482. fi
  14483. fi
  14484. fi
  14485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  14486. $as_echo "$ac_cv_sizeof_int" >&6; }
  14487. cat >>confdefs.h <<_ACEOF
  14488. #define SIZEOF_INT $ac_cv_sizeof_int
  14489. _ACEOF
  14490. # The cast to long int works around a bug in the HP C Compiler
  14491. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14492. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14493. # This bug is HP SR number 8606223364.
  14494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  14495. $as_echo_n "checking size of long... " >&6; }
  14496. if ${ac_cv_sizeof_long+:} false; then :
  14497. $as_echo_n "(cached) " >&6
  14498. else
  14499. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  14500. else
  14501. if test "$ac_cv_type_long" = yes; then
  14502. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14503. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14504. as_fn_error 77 "cannot compute sizeof (long)
  14505. See \`config.log' for more details" "$LINENO" 5; }
  14506. else
  14507. ac_cv_sizeof_long=0
  14508. fi
  14509. fi
  14510. fi
  14511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  14512. $as_echo "$ac_cv_sizeof_long" >&6; }
  14513. cat >>confdefs.h <<_ACEOF
  14514. #define SIZEOF_LONG $ac_cv_sizeof_long
  14515. _ACEOF
  14516. # The cast to long int works around a bug in the HP C Compiler
  14517. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14518. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14519. # This bug is HP SR number 8606223364.
  14520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
  14521. $as_echo_n "checking size of float... " >&6; }
  14522. if ${ac_cv_sizeof_float+:} false; then :
  14523. $as_echo_n "(cached) " >&6
  14524. else
  14525. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
  14526. else
  14527. if test "$ac_cv_type_float" = yes; then
  14528. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14529. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14530. as_fn_error 77 "cannot compute sizeof (float)
  14531. See \`config.log' for more details" "$LINENO" 5; }
  14532. else
  14533. ac_cv_sizeof_float=0
  14534. fi
  14535. fi
  14536. fi
  14537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
  14538. $as_echo "$ac_cv_sizeof_float" >&6; }
  14539. cat >>confdefs.h <<_ACEOF
  14540. #define SIZEOF_FLOAT $ac_cv_sizeof_float
  14541. _ACEOF
  14542. # The cast to long int works around a bug in the HP C Compiler
  14543. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14544. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14545. # This bug is HP SR number 8606223364.
  14546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
  14547. $as_echo_n "checking size of double... " >&6; }
  14548. if ${ac_cv_sizeof_double+:} false; then :
  14549. $as_echo_n "(cached) " >&6
  14550. else
  14551. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
  14552. else
  14553. if test "$ac_cv_type_double" = yes; then
  14554. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14555. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14556. as_fn_error 77 "cannot compute sizeof (double)
  14557. See \`config.log' for more details" "$LINENO" 5; }
  14558. else
  14559. ac_cv_sizeof_double=0
  14560. fi
  14561. fi
  14562. fi
  14563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
  14564. $as_echo "$ac_cv_sizeof_double" >&6; }
  14565. cat >>confdefs.h <<_ACEOF
  14566. #define SIZEOF_DOUBLE $ac_cv_sizeof_double
  14567. _ACEOF
  14568. #====================================================================================
  14569. # Determine endian-ness of target processor.
  14570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor byte ordering" >&5
  14571. $as_echo_n "checking processor byte ordering... " >&6; }
  14572. if ${ac_cv_c_byte_order+:} false; then :
  14573. $as_echo_n "(cached) " >&6
  14574. else
  14575. # Initialize to unknown
  14576. ac_cv_c_byte_order=unknown
  14577. if test x$ac_cv_header_endian_h = xyes ; then
  14578. # First try <endian.h> which should set BYTE_ORDER.
  14579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14580. /* end confdefs.h. */
  14581. #include <endian.h>
  14582. #if BYTE_ORDER != LITTLE_ENDIAN
  14583. not big endian
  14584. #endif
  14585. int
  14586. main ()
  14587. {
  14588. return 0 ;
  14589. ;
  14590. return 0;
  14591. }
  14592. _ACEOF
  14593. if ac_fn_c_try_link "$LINENO"; then :
  14594. ac_cv_c_byte_order=little
  14595. fi
  14596. rm -f core conftest.err conftest.$ac_objext \
  14597. conftest$ac_exeext conftest.$ac_ext
  14598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14599. /* end confdefs.h. */
  14600. #include <endian.h>
  14601. #if BYTE_ORDER != BIG_ENDIAN
  14602. not big endian
  14603. #endif
  14604. int
  14605. main ()
  14606. {
  14607. return 0 ;
  14608. ;
  14609. return 0;
  14610. }
  14611. _ACEOF
  14612. if ac_fn_c_try_link "$LINENO"; then :
  14613. ac_cv_c_byte_order=big
  14614. fi
  14615. rm -f core conftest.err conftest.$ac_objext \
  14616. conftest$ac_exeext conftest.$ac_ext
  14617. fi
  14618. if test $ac_cv_c_byte_order = unknown ; then
  14619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14620. /* end confdefs.h. */
  14621. #include <sys/types.h>
  14622. #include <sys/param.h>
  14623. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  14624. bogus endian macros
  14625. #endif
  14626. int
  14627. main ()
  14628. {
  14629. return 0 ;
  14630. ;
  14631. return 0;
  14632. }
  14633. _ACEOF
  14634. if ac_fn_c_try_link "$LINENO"; then :
  14635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14636. /* end confdefs.h. */
  14637. #include <sys/types.h>
  14638. #include <sys/param.h>
  14639. #if BYTE_ORDER != LITTLE_ENDIAN
  14640. not big endian
  14641. #endif
  14642. int
  14643. main ()
  14644. {
  14645. return 0 ;
  14646. ;
  14647. return 0;
  14648. }
  14649. _ACEOF
  14650. if ac_fn_c_try_link "$LINENO"; then :
  14651. ac_cv_c_byte_order=little
  14652. fi
  14653. rm -f core conftest.err conftest.$ac_objext \
  14654. conftest$ac_exeext conftest.$ac_ext
  14655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14656. /* end confdefs.h. */
  14657. #include <sys/types.h>
  14658. #include <sys/param.h>
  14659. #if BYTE_ORDER != LITTLE_ENDIAN
  14660. not big endian
  14661. #endif
  14662. int
  14663. main ()
  14664. {
  14665. return 0 ;
  14666. ;
  14667. return 0;
  14668. }
  14669. _ACEOF
  14670. if ac_fn_c_try_link "$LINENO"; then :
  14671. ac_cv_c_byte_order=little
  14672. fi
  14673. rm -f core conftest.err conftest.$ac_objext \
  14674. conftest$ac_exeext conftest.$ac_ext
  14675. fi
  14676. rm -f core conftest.err conftest.$ac_objext \
  14677. conftest$ac_exeext conftest.$ac_ext
  14678. fi
  14679. if test $ac_cv_c_byte_order = unknown ; then
  14680. if test $cross_compiling = yes ; then
  14681. # This is the last resort. Try to guess the target processor endian-ness
  14682. # by looking at the target CPU type.
  14683. case "$target_cpu" in
  14684. alpha* | i?86* | mipsel* | ia64*)
  14685. ac_cv_c_byte_order=little
  14686. ;;
  14687. m68* | mips* | powerpc* | hppa* | sparc*)
  14688. ac_cv_c_byte_order=big
  14689. ;;
  14690. esac
  14691. else
  14692. if test "$cross_compiling" = yes; then :
  14693. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14694. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14695. as_fn_error $? "cannot run test program while cross compiling
  14696. See \`config.log' for more details" "$LINENO" 5; }
  14697. else
  14698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14699. /* end confdefs.h. */
  14700. int main (void)
  14701. { /* Are we little or big endian? From Harbison&Steele. */
  14702. union
  14703. { long l ;
  14704. char c [sizeof (long)] ;
  14705. } u ;
  14706. u.l = 1 ;
  14707. return (u.c [sizeof (long) - 1] == 1);
  14708. }
  14709. _ACEOF
  14710. if ac_fn_c_try_run "$LINENO"; then :
  14711. else
  14712. ac_cv_c_byte_order=big
  14713. fi
  14714. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14715. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14716. fi
  14717. if test "$cross_compiling" = yes; then :
  14718. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14719. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14720. as_fn_error $? "cannot run test program while cross compiling
  14721. See \`config.log' for more details" "$LINENO" 5; }
  14722. else
  14723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14724. /* end confdefs.h. */
  14725. int main (void)
  14726. { /* Are we little or big endian? From Harbison&Steele. */
  14727. union
  14728. { long l ;
  14729. char c [sizeof (long)] ;
  14730. } u ;
  14731. u.l = 1 ;
  14732. return (u.c [0] == 1);
  14733. }
  14734. _ACEOF
  14735. if ac_fn_c_try_run "$LINENO"; then :
  14736. else
  14737. ac_cv_c_byte_order=little
  14738. fi
  14739. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14740. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14741. fi
  14742. fi
  14743. fi
  14744. fi
  14745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_byte_order" >&5
  14746. $as_echo "$ac_cv_c_byte_order" >&6; }
  14747. if test $ac_cv_c_byte_order = big ; then
  14748. ac_cv_c_big_endian=1
  14749. ac_cv_c_little_endian=0
  14750. elif test $ac_cv_c_byte_order = little ; then
  14751. ac_cv_c_big_endian=0
  14752. ac_cv_c_little_endian=1
  14753. else
  14754. ac_cv_c_big_endian=0
  14755. ac_cv_c_little_endian=0
  14756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
  14757. $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
  14758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor. " >&5
  14759. $as_echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2;}
  14760. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&5
  14761. $as_echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2;}
  14762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** src/config.h may need to be hand editied. " >&5
  14763. $as_echo "$as_me: WARNING: *** src/config.h may need to be hand editied. " >&2;}
  14764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
  14765. $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
  14766. fi
  14767. cat >>confdefs.h <<_ACEOF
  14768. #define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}
  14769. _ACEOF
  14770. cat >>confdefs.h <<_ACEOF
  14771. #define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}
  14772. _ACEOF
  14773. #====================================================================================
  14774. # Check for functions.
  14775. for ac_func in malloc calloc free memcpy memmove alarm signal
  14776. do :
  14777. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14778. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14779. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14780. cat >>confdefs.h <<_ACEOF
  14781. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14782. _ACEOF
  14783. fi
  14784. done
  14785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
  14786. $as_echo_n "checking for floor in -lm... " >&6; }
  14787. if ${ac_cv_lib_m_floor+:} false; then :
  14788. $as_echo_n "(cached) " >&6
  14789. else
  14790. ac_check_lib_save_LIBS=$LIBS
  14791. LIBS="-lm $LIBS"
  14792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14793. /* end confdefs.h. */
  14794. /* Override any GCC internal prototype to avoid an error.
  14795. Use char because int might match the return type of a GCC
  14796. builtin and then its argument prototype would still apply. */
  14797. #ifdef __cplusplus
  14798. extern "C"
  14799. #endif
  14800. char floor ();
  14801. int
  14802. main ()
  14803. {
  14804. return floor ();
  14805. ;
  14806. return 0;
  14807. }
  14808. _ACEOF
  14809. if ac_fn_c_try_link "$LINENO"; then :
  14810. ac_cv_lib_m_floor=yes
  14811. else
  14812. ac_cv_lib_m_floor=no
  14813. fi
  14814. rm -f core conftest.err conftest.$ac_objext \
  14815. conftest$ac_exeext conftest.$ac_ext
  14816. LIBS=$ac_check_lib_save_LIBS
  14817. fi
  14818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
  14819. $as_echo "$ac_cv_lib_m_floor" >&6; }
  14820. if test "x$ac_cv_lib_m_floor" = xyes; then :
  14821. cat >>confdefs.h <<_ACEOF
  14822. #define HAVE_LIBM 1
  14823. _ACEOF
  14824. LIBS="-lm $LIBS"
  14825. fi
  14826. for ac_func in floor ceil fmod
  14827. do :
  14828. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14829. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14830. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14831. cat >>confdefs.h <<_ACEOF
  14832. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14833. _ACEOF
  14834. fi
  14835. done
  14836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGALRM" >&5
  14837. $as_echo_n "checking for SIGALRM... " >&6; }
  14838. if ${ac_cv_signal_SIGALRM+:} false; then :
  14839. $as_echo_n "(cached) " >&6
  14840. else
  14841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14842. /* end confdefs.h. */
  14843. #include <signal.h>
  14844. int
  14845. main ()
  14846. {
  14847. signal(SIGALRM, SIG_DFL) ;
  14848. ;
  14849. return 0;
  14850. }
  14851. _ACEOF
  14852. if ac_fn_c_try_link "$LINENO"; then :
  14853. ac_cv_signal_SIGALRM=yes
  14854. else
  14855. ac_cv_signal_SIGALRM=no
  14856. fi
  14857. rm -f core conftest.err conftest.$ac_objext \
  14858. conftest$ac_exeext conftest.$ac_ext
  14859. fi
  14860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_signal_SIGALRM" >&5
  14861. $as_echo "$ac_cv_signal_SIGALRM" >&6; }
  14862. if test "$ac_cv_signal_SIGALRM" = yes; then
  14863. $as_echo "#define HAVE_SIGALRM 1" >>confdefs.h
  14864. fi
  14865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint" >&5
  14866. $as_echo_n "checking for lrint... " >&6; }
  14867. if ${ac_cv_c99_lrint+:} false; then :
  14868. $as_echo_n "(cached) " >&6
  14869. else
  14870. lrint_save_CFLAGS=$CFLAGS
  14871. CFLAGS="-lm"
  14872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14873. /* end confdefs.h. */
  14874. #define _ISOC9X_SOURCE 1
  14875. #define _ISOC99_SOURCE 1
  14876. #define __USE_ISOC99 1
  14877. #define __USE_ISOC9X 1
  14878. #include <math.h>
  14879. int
  14880. main ()
  14881. {
  14882. if (!lrint(3.14159)) lrint(2.7183);
  14883. ;
  14884. return 0;
  14885. }
  14886. _ACEOF
  14887. if ac_fn_c_try_link "$LINENO"; then :
  14888. ac_cv_c99_lrint=yes
  14889. else
  14890. ac_cv_c99_lrint=no
  14891. fi
  14892. rm -f core conftest.err conftest.$ac_objext \
  14893. conftest$ac_exeext conftest.$ac_ext
  14894. CFLAGS=$lrint_save_CFLAGS
  14895. fi
  14896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrint" >&5
  14897. $as_echo "$ac_cv_c99_lrint" >&6; }
  14898. if test "$ac_cv_c99_lrint" = yes; then
  14899. $as_echo "#define HAVE_LRINT 1" >>confdefs.h
  14900. fi
  14901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5
  14902. $as_echo_n "checking for lrintf... " >&6; }
  14903. if ${ac_cv_c99_lrintf+:} false; then :
  14904. $as_echo_n "(cached) " >&6
  14905. else
  14906. lrintf_save_CFLAGS=$CFLAGS
  14907. CFLAGS="-lm"
  14908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14909. /* end confdefs.h. */
  14910. #define _ISOC9X_SOURCE 1
  14911. #define _ISOC99_SOURCE 1
  14912. #define __USE_ISOC99 1
  14913. #define __USE_ISOC9X 1
  14914. #include <math.h>
  14915. int
  14916. main ()
  14917. {
  14918. if (!lrintf(3.14159)) lrintf(2.7183);
  14919. ;
  14920. return 0;
  14921. }
  14922. _ACEOF
  14923. if ac_fn_c_try_link "$LINENO"; then :
  14924. ac_cv_c99_lrintf=yes
  14925. else
  14926. ac_cv_c99_lrintf=no
  14927. fi
  14928. rm -f core conftest.err conftest.$ac_objext \
  14929. conftest$ac_exeext conftest.$ac_ext
  14930. CFLAGS=$lrintf_save_CFLAGS
  14931. fi
  14932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5
  14933. $as_echo "$ac_cv_c99_lrintf" >&6; }
  14934. if test "$ac_cv_c99_lrintf" = yes; then
  14935. $as_echo "#define HAVE_LRINTF 1" >>confdefs.h
  14936. fi
  14937. # AC_C99_FUNC_LLRINT Don't need this (yet?).
  14938. case "x$ac_cv_c99_lrint$ac_cv_c99_lrintf" in
  14939. xyesyes)
  14940. ;;
  14941. *)
  14942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&5
  14943. $as_echo "$as_me: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&2;}
  14944. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&5
  14945. $as_echo "$as_me: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&2;}
  14946. ;;
  14947. esac
  14948. #====================================================================================
  14949. # Determine if the processor can do clipping on float to int conversions.
  14950. if test x$ac_arg_cpu_clip = "xY" ; then
  14951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor clipping capabilities" >&5
  14952. $as_echo_n "checking processor clipping capabilities... " >&6; }
  14953. if ${ac_cv_c_clip_type+:} false; then :
  14954. $as_echo_n "(cached) " >&6
  14955. else
  14956. # Initialize to unknown
  14957. ac_cv_c_clip_positive=unknown
  14958. ac_cv_c_clip_negative=unknown
  14959. if test $ac_cv_c_clip_positive = unknown ; then
  14960. if test "$cross_compiling" = yes; then :
  14961. ac_cv_c_clip_positive=unknown
  14962. else
  14963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14964. /* end confdefs.h. */
  14965. #define _ISOC9X_SOURCE 1
  14966. #define _ISOC99_SOURCE 1
  14967. #define __USE_ISOC99 1
  14968. #define __USE_ISOC9X 1
  14969. #include <math.h>
  14970. int main (void)
  14971. { double fval ;
  14972. int k, ival ;
  14973. fval = 1.0 * 0x7FFFFFFF ;
  14974. for (k = 0 ; k < 100 ; k++)
  14975. { ival = (lrint (fval)) >> 24 ;
  14976. if (ival != 127)
  14977. return 1 ;
  14978. fval *= 1.2499999 ;
  14979. } ;
  14980. return 0 ;
  14981. }
  14982. _ACEOF
  14983. if ac_fn_c_try_run "$LINENO"; then :
  14984. ac_cv_c_clip_positive=yes
  14985. else
  14986. ac_cv_c_clip_positive=no
  14987. fi
  14988. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14989. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14990. fi
  14991. if test "$cross_compiling" = yes; then :
  14992. ac_cv_c_clip_negative=unknown
  14993. else
  14994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14995. /* end confdefs.h. */
  14996. #define _ISOC9X_SOURCE 1
  14997. #define _ISOC99_SOURCE 1
  14998. #define __USE_ISOC99 1
  14999. #define __USE_ISOC9X 1
  15000. #include <math.h>
  15001. int main (void)
  15002. { double fval ;
  15003. int k, ival ;
  15004. fval = -8.0 * 0x10000000 ;
  15005. for (k = 0 ; k < 100 ; k++)
  15006. { ival = (lrint (fval)) >> 24 ;
  15007. if (ival != -128)
  15008. return 1 ;
  15009. fval *= 1.2499999 ;
  15010. } ;
  15011. return 0 ;
  15012. }
  15013. _ACEOF
  15014. if ac_fn_c_try_run "$LINENO"; then :
  15015. ac_cv_c_clip_negative=yes
  15016. else
  15017. ac_cv_c_clip_negative=no
  15018. fi
  15019. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15020. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15021. fi
  15022. fi
  15023. if test $ac_cv_c_clip_positive = yes ; then
  15024. ac_cv_c_clip_positive=1
  15025. else
  15026. ac_cv_c_clip_positive=0
  15027. fi
  15028. if test $ac_cv_c_clip_negative = yes ; then
  15029. ac_cv_c_clip_negative=1
  15030. else
  15031. ac_cv_c_clip_negative=0
  15032. fi
  15033. case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
  15034. "00")
  15035. ac_cv_c_clip_type="none"
  15036. ;;
  15037. "10")
  15038. ac_cv_c_clip_type="positive"
  15039. ;;
  15040. "01")
  15041. ac_cv_c_clip_type="negative"
  15042. ;;
  15043. "11")
  15044. ac_cv_c_clip_type="both"
  15045. ;;
  15046. esac
  15047. fi
  15048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_clip_type" >&5
  15049. $as_echo "$ac_cv_c_clip_type" >&6; }
  15050. else
  15051. echo "checking processor clipping capabilities... disabled"
  15052. ac_cv_c_clip_positive=0
  15053. ac_cv_c_clip_negative=0
  15054. fi
  15055. cat >>confdefs.h <<_ACEOF
  15056. #define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive}
  15057. _ACEOF
  15058. cat >>confdefs.h <<_ACEOF
  15059. #define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative}
  15060. _ACEOF
  15061. #====================================================================================
  15062. # Check for libsndfile which is required for the test and example programs.
  15063. # Check whether --enable-sndfile was given.
  15064. if test "${enable_sndfile+set}" = set; then :
  15065. enableval=$enable_sndfile; enable_sndfile=$enableval
  15066. else
  15067. enable_sndfile=yes
  15068. fi
  15069. # Check for pkg-config outside the if statement.
  15070. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15071. if test -n "$ac_tool_prefix"; then
  15072. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15073. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15075. $as_echo_n "checking for $ac_word... " >&6; }
  15076. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15077. $as_echo_n "(cached) " >&6
  15078. else
  15079. case $PKG_CONFIG in
  15080. [\\/]* | ?:[\\/]*)
  15081. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15082. ;;
  15083. *)
  15084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15085. for as_dir in $PATH
  15086. do
  15087. IFS=$as_save_IFS
  15088. test -z "$as_dir" && as_dir=.
  15089. for ac_exec_ext in '' $ac_executable_extensions; do
  15090. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15091. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15093. break 2
  15094. fi
  15095. done
  15096. done
  15097. IFS=$as_save_IFS
  15098. ;;
  15099. esac
  15100. fi
  15101. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15102. if test -n "$PKG_CONFIG"; then
  15103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15104. $as_echo "$PKG_CONFIG" >&6; }
  15105. else
  15106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15107. $as_echo "no" >&6; }
  15108. fi
  15109. fi
  15110. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15111. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15112. # Extract the first word of "pkg-config", so it can be a program name with args.
  15113. set dummy pkg-config; ac_word=$2
  15114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15115. $as_echo_n "checking for $ac_word... " >&6; }
  15116. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  15117. $as_echo_n "(cached) " >&6
  15118. else
  15119. case $ac_pt_PKG_CONFIG in
  15120. [\\/]* | ?:[\\/]*)
  15121. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15122. ;;
  15123. *)
  15124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15125. for as_dir in $PATH
  15126. do
  15127. IFS=$as_save_IFS
  15128. test -z "$as_dir" && as_dir=.
  15129. for ac_exec_ext in '' $ac_executable_extensions; do
  15130. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15131. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15133. break 2
  15134. fi
  15135. done
  15136. done
  15137. IFS=$as_save_IFS
  15138. ;;
  15139. esac
  15140. fi
  15141. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15142. if test -n "$ac_pt_PKG_CONFIG"; then
  15143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15144. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  15145. else
  15146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15147. $as_echo "no" >&6; }
  15148. fi
  15149. if test "x$ac_pt_PKG_CONFIG" = x; then
  15150. PKG_CONFIG=""
  15151. else
  15152. case $cross_compiling:$ac_tool_warned in
  15153. yes:)
  15154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15155. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15156. ac_tool_warned=yes ;;
  15157. esac
  15158. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15159. fi
  15160. else
  15161. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15162. fi
  15163. fi
  15164. if test -n "$PKG_CONFIG"; then
  15165. _pkg_min_version=0.9.0
  15166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15167. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15168. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15170. $as_echo "yes" >&6; }
  15171. else
  15172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15173. $as_echo "no" >&6; }
  15174. PKG_CONFIG=""
  15175. fi
  15176. fi
  15177. if test "x$enable_sndfile" = "xyes"; then
  15178. pkg_failed=no
  15179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
  15180. $as_echo_n "checking for SNDFILE... " >&6; }
  15181. if test -n "$SNDFILE_CFLAGS"; then
  15182. pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
  15183. elif test -n "$PKG_CONFIG"; then
  15184. if test -n "$PKG_CONFIG" && \
  15185. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5
  15186. ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5
  15187. ac_status=$?
  15188. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15189. test $ac_status = 0; }; then
  15190. pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.6" 2>/dev/null`
  15191. test "x$?" != "x0" && pkg_failed=yes
  15192. else
  15193. pkg_failed=yes
  15194. fi
  15195. else
  15196. pkg_failed=untried
  15197. fi
  15198. if test -n "$SNDFILE_LIBS"; then
  15199. pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
  15200. elif test -n "$PKG_CONFIG"; then
  15201. if test -n "$PKG_CONFIG" && \
  15202. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5
  15203. ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5
  15204. ac_status=$?
  15205. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15206. test $ac_status = 0; }; then
  15207. pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.6" 2>/dev/null`
  15208. test "x$?" != "x0" && pkg_failed=yes
  15209. else
  15210. pkg_failed=yes
  15211. fi
  15212. else
  15213. pkg_failed=untried
  15214. fi
  15215. if test $pkg_failed = yes; then
  15216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15217. $as_echo "no" >&6; }
  15218. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15219. _pkg_short_errors_supported=yes
  15220. else
  15221. _pkg_short_errors_supported=no
  15222. fi
  15223. if test $_pkg_short_errors_supported = yes; then
  15224. SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1`
  15225. else
  15226. SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1`
  15227. fi
  15228. # Put the nasty error message in config.log where it belongs
  15229. echo "$SNDFILE_PKG_ERRORS" >&5
  15230. ac_cv_sndfile=0
  15231. elif test $pkg_failed = untried; then
  15232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15233. $as_echo "no" >&6; }
  15234. ac_cv_sndfile=0
  15235. else
  15236. SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
  15237. SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
  15238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15239. $as_echo "yes" >&6; }
  15240. ac_cv_sndfile=1
  15241. fi
  15242. else
  15243. ac_cv_sndfile=0
  15244. fi
  15245. cat >>confdefs.h <<_ACEOF
  15246. #define HAVE_SNDFILE $ac_cv_sndfile
  15247. _ACEOF
  15248. if test x$ac_cv_sndfile = x1 ; then
  15249. ac_cv_sndfile=yes
  15250. HAVE_SNDFILE=1
  15251. else
  15252. ac_cv_sndfile=no
  15253. HAVE_SNDFILE=0
  15254. fi
  15255. #====================================================================================
  15256. # Check for ALSA.
  15257. ALSA_LIBS=""
  15258. if test x$enable_alsa != xno ; then
  15259. for ac_header in alsa/asoundlib.h
  15260. do :
  15261. ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
  15262. if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
  15263. cat >>confdefs.h <<_ACEOF
  15264. #define HAVE_ALSA_ASOUNDLIB_H 1
  15265. _ACEOF
  15266. fi
  15267. done
  15268. if test x$ac_cv_header_alsa_asoundlib_h = xyes ; then
  15269. ALSA_LIBS="-lasound"
  15270. enable_alsa=yes
  15271. fi
  15272. fi
  15273. #====================================================================================
  15274. # Check for libfftw3 which is required for the test and example programs.
  15275. if test $ac_arg_fftw = "Y" ; then
  15276. pkg_failed=no
  15277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW3" >&5
  15278. $as_echo_n "checking for FFTW3... " >&6; }
  15279. if test -n "$FFTW3_CFLAGS"; then
  15280. pkg_cv_FFTW3_CFLAGS="$FFTW3_CFLAGS"
  15281. elif test -n "$PKG_CONFIG"; then
  15282. if test -n "$PKG_CONFIG" && \
  15283. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5
  15284. ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5
  15285. ac_status=$?
  15286. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15287. test $ac_status = 0; }; then
  15288. pkg_cv_FFTW3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 0.15.0" 2>/dev/null`
  15289. test "x$?" != "x0" && pkg_failed=yes
  15290. else
  15291. pkg_failed=yes
  15292. fi
  15293. else
  15294. pkg_failed=untried
  15295. fi
  15296. if test -n "$FFTW3_LIBS"; then
  15297. pkg_cv_FFTW3_LIBS="$FFTW3_LIBS"
  15298. elif test -n "$PKG_CONFIG"; then
  15299. if test -n "$PKG_CONFIG" && \
  15300. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5
  15301. ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5
  15302. ac_status=$?
  15303. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15304. test $ac_status = 0; }; then
  15305. pkg_cv_FFTW3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 0.15.0" 2>/dev/null`
  15306. test "x$?" != "x0" && pkg_failed=yes
  15307. else
  15308. pkg_failed=yes
  15309. fi
  15310. else
  15311. pkg_failed=untried
  15312. fi
  15313. if test $pkg_failed = yes; then
  15314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15315. $as_echo "no" >&6; }
  15316. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15317. _pkg_short_errors_supported=yes
  15318. else
  15319. _pkg_short_errors_supported=no
  15320. fi
  15321. if test $_pkg_short_errors_supported = yes; then
  15322. FFTW3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1`
  15323. else
  15324. FFTW3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1`
  15325. fi
  15326. # Put the nasty error message in config.log where it belongs
  15327. echo "$FFTW3_PKG_ERRORS" >&5
  15328. ac_cv_fftw3=0
  15329. elif test $pkg_failed = untried; then
  15330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15331. $as_echo "no" >&6; }
  15332. ac_cv_fftw3=0
  15333. else
  15334. FFTW3_CFLAGS=$pkg_cv_FFTW3_CFLAGS
  15335. FFTW3_LIBS=$pkg_cv_FFTW3_LIBS
  15336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15337. $as_echo "yes" >&6; }
  15338. ac_cv_fftw3=1
  15339. fi
  15340. cat >>confdefs.h <<_ACEOF
  15341. #define HAVE_FFTW3 $ac_cv_fftw3
  15342. _ACEOF
  15343. if test x$ac_cv_fftw3 = x1 ; then
  15344. ac_cv_fftw3=yes
  15345. HAVE_FFTW3=1
  15346. fi
  15347. fi
  15348. if test x$ac_cv_fftw3 != xyes ; then
  15349. ac_cv_fftw3=no
  15350. HAVE_FFTW3=0
  15351. fi
  15352. #====================================================================================
  15353. # GCC stuff.
  15354. if test $ac_cv_c_compiler_gnu = yes ; then
  15355. CFLAGS="$CFLAGS -std=gnu99 -W -Wstrict-prototypes -Wmissing-prototypes -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wpointer-arith"
  15356. # -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion -Winline"
  15357. if test "$ac_arg_gcc_opt" = "N" ; then
  15358. temp_CFLAGS=`echo $CFLAGS | sed "s/O2/O0/"`
  15359. CFLAGS=$temp_CFLAGS
  15360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Compiler optimisations switched off. ***" >&5
  15361. $as_echo "$as_me: WARNING: *** Compiler optimisations switched off. ***" >&2;}
  15362. fi
  15363. # Disable -Wall for Apple Darwin/Rhapsody.
  15364. # System headers on these systems are broken.
  15365. case "$target_os" in
  15366. darwin* | rhapsody*)
  15367. temp_CFLAGS=`echo $CFLAGS | sed "s/-Wall//"`
  15368. CFLAGS=$temp_CFLAGS
  15369. ;;
  15370. linux*|kfreebsd*-gnu*|gnu*)
  15371. SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
  15372. ;;
  15373. *)
  15374. ;;
  15375. esac
  15376. if test x$ac_arg_gcc_pipe != "xN" ; then
  15377. CFLAGS="$CFLAGS -pipe"
  15378. fi
  15379. if test x$ac_arg_gcc_werror = "xyes" ; then
  15380. CFLAGS="-Werror $CFLAGS"
  15381. fi
  15382. $as_echo "#define COMPILER_IS_GCC 1" >>confdefs.h
  15383. GCC_MAJOR_VERSION=`$CC -dumpversion | sed "s/\..*//"`
  15384. cat >>confdefs.h <<_ACEOF
  15385. #define GCC_MAJOR_VERSION ${GCC_MAJOR_VERSION}
  15386. _ACEOF
  15387. fi
  15388. #====================================================================================
  15389. # Find known target OS.
  15390. OS_SPECIFIC_INCLUDES=""
  15391. os_is_win32=0
  15392. case "$target_os" in
  15393. darwin* | rhapsody*)
  15394. OS_SPECIFIC_INCLUDES="-fpascal-strings -I/Developer/Headers/FlatCarbon"
  15395. OS_SPECIFIC_LINKS="-framework CoreAudio"
  15396. ;;
  15397. mingw32*)
  15398. OS_SPECIFIC_LINKS="-lwinmm"
  15399. os_is_win32=1
  15400. ;;
  15401. *)
  15402. OS_SPECIFIC_INCLUDES=""
  15403. OS_SPECIFIC_LINKS=""
  15404. ;;
  15405. esac
  15406. htmldocdir=$prefix/share/doc/libsamplerate0-dev/html
  15407. if test $prefix = "NONE" ; then
  15408. htmldocdir=/usr/local/share/doc/libsamplerate0-dev/html
  15409. else
  15410. htmldocdir=$prefix/share/doc/libsamplerate0-dev/html
  15411. fi
  15412. #====================================================================================
  15413. # Now use the information from the checking stage.
  15414. cat >>confdefs.h <<_ACEOF
  15415. #define OS_IS_WIN32 ${os_is_win32}
  15416. _ACEOF
  15417. ac_config_files="$ac_config_files Makefile M4/Makefile src/Version_script Win32/Makefile Win32/Makefile.mingw src/Makefile examples/Makefile tests/Makefile doc/Makefile libsamplerate.spec samplerate.pc"
  15418. cat >confcache <<\_ACEOF
  15419. # This file is a shell script that caches the results of configure
  15420. # tests run on this system so they can be shared between configure
  15421. # scripts and configure runs, see configure's option --config-cache.
  15422. # It is not useful on other systems. If it contains results you don't
  15423. # want to keep, you may remove or edit it.
  15424. #
  15425. # config.status only pays attention to the cache file if you give it
  15426. # the --recheck option to rerun configure.
  15427. #
  15428. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15429. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15430. # following values.
  15431. _ACEOF
  15432. # The following way of writing the cache mishandles newlines in values,
  15433. # but we know of no workaround that is simple, portable, and efficient.
  15434. # So, we kill variables containing newlines.
  15435. # Ultrix sh set writes to stderr and can't be redirected directly,
  15436. # and sets the high bit in the cache file unless we assign to the vars.
  15437. (
  15438. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15439. eval ac_val=\$$ac_var
  15440. case $ac_val in #(
  15441. *${as_nl}*)
  15442. case $ac_var in #(
  15443. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15444. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15445. esac
  15446. case $ac_var in #(
  15447. _ | IFS | as_nl) ;; #(
  15448. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15449. *) { eval $ac_var=; unset $ac_var;} ;;
  15450. esac ;;
  15451. esac
  15452. done
  15453. (set) 2>&1 |
  15454. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15455. *${as_nl}ac_space=\ *)
  15456. # `set' does not quote correctly, so add quotes: double-quote
  15457. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15458. sed -n \
  15459. "s/'/'\\\\''/g;
  15460. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15461. ;; #(
  15462. *)
  15463. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15464. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15465. ;;
  15466. esac |
  15467. sort
  15468. ) |
  15469. sed '
  15470. /^ac_cv_env_/b end
  15471. t clear
  15472. :clear
  15473. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15474. t end
  15475. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15476. :end' >>confcache
  15477. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15478. if test -w "$cache_file"; then
  15479. if test "x$cache_file" != "x/dev/null"; then
  15480. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15481. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15482. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15483. cat confcache >"$cache_file"
  15484. else
  15485. case $cache_file in #(
  15486. */* | ?:*)
  15487. mv -f confcache "$cache_file"$$ &&
  15488. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15489. *)
  15490. mv -f confcache "$cache_file" ;;
  15491. esac
  15492. fi
  15493. fi
  15494. else
  15495. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15496. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15497. fi
  15498. fi
  15499. rm -f confcache
  15500. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15501. # Let make expand exec_prefix.
  15502. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15503. DEFS=-DHAVE_CONFIG_H
  15504. ac_libobjs=
  15505. ac_ltlibobjs=
  15506. U=
  15507. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15508. # 1. Remove the extension, and $U if already installed.
  15509. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15510. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15511. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15512. # will be set to the directory where LIBOBJS objects are built.
  15513. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15514. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15515. done
  15516. LIBOBJS=$ac_libobjs
  15517. LTLIBOBJS=$ac_ltlibobjs
  15518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  15519. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  15520. if test -n "$am_sleep_pid"; then
  15521. # Hide warnings about reused PIDs.
  15522. wait $am_sleep_pid 2>/dev/null
  15523. fi
  15524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  15525. $as_echo "done" >&6; }
  15526. if test -n "$EXEEXT"; then
  15527. am__EXEEXT_TRUE=
  15528. am__EXEEXT_FALSE='#'
  15529. else
  15530. am__EXEEXT_TRUE='#'
  15531. am__EXEEXT_FALSE=
  15532. fi
  15533. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15534. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15535. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15536. fi
  15537. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15538. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15539. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15540. fi
  15541. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15542. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  15543. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15544. fi
  15545. : "${CONFIG_STATUS=./config.status}"
  15546. ac_write_fail=0
  15547. ac_clean_files_save=$ac_clean_files
  15548. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15549. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15550. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15551. as_write_fail=0
  15552. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15553. #! $SHELL
  15554. # Generated by $as_me.
  15555. # Run this file to recreate the current configuration.
  15556. # Compiler output produced by configure, useful for debugging
  15557. # configure, is in config.log if it exists.
  15558. debug=false
  15559. ac_cs_recheck=false
  15560. ac_cs_silent=false
  15561. SHELL=\${CONFIG_SHELL-$SHELL}
  15562. export SHELL
  15563. _ASEOF
  15564. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15565. ## -------------------- ##
  15566. ## M4sh Initialization. ##
  15567. ## -------------------- ##
  15568. # Be more Bourne compatible
  15569. DUALCASE=1; export DUALCASE # for MKS sh
  15570. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15571. emulate sh
  15572. NULLCMD=:
  15573. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15574. # is contrary to our usage. Disable this feature.
  15575. alias -g '${1+"$@"}'='"$@"'
  15576. setopt NO_GLOB_SUBST
  15577. else
  15578. case `(set -o) 2>/dev/null` in #(
  15579. *posix*) :
  15580. set -o posix ;; #(
  15581. *) :
  15582. ;;
  15583. esac
  15584. fi
  15585. as_nl='
  15586. '
  15587. export as_nl
  15588. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15589. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15590. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15591. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15592. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15593. # but without wasting forks for bash or zsh.
  15594. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15595. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15596. as_echo='print -r --'
  15597. as_echo_n='print -rn --'
  15598. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15599. as_echo='printf %s\n'
  15600. as_echo_n='printf %s'
  15601. else
  15602. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15603. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15604. as_echo_n='/usr/ucb/echo -n'
  15605. else
  15606. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15607. as_echo_n_body='eval
  15608. arg=$1;
  15609. case $arg in #(
  15610. *"$as_nl"*)
  15611. expr "X$arg" : "X\\(.*\\)$as_nl";
  15612. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15613. esac;
  15614. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15615. '
  15616. export as_echo_n_body
  15617. as_echo_n='sh -c $as_echo_n_body as_echo'
  15618. fi
  15619. export as_echo_body
  15620. as_echo='sh -c $as_echo_body as_echo'
  15621. fi
  15622. # The user is always right.
  15623. if test "${PATH_SEPARATOR+set}" != set; then
  15624. PATH_SEPARATOR=:
  15625. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15626. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15627. PATH_SEPARATOR=';'
  15628. }
  15629. fi
  15630. # IFS
  15631. # We need space, tab and new line, in precisely that order. Quoting is
  15632. # there to prevent editors from complaining about space-tab.
  15633. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15634. # splitting by setting IFS to empty value.)
  15635. IFS=" "" $as_nl"
  15636. # Find who we are. Look in the path if we contain no directory separator.
  15637. as_myself=
  15638. case $0 in #((
  15639. *[\\/]* ) as_myself=$0 ;;
  15640. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15641. for as_dir in $PATH
  15642. do
  15643. IFS=$as_save_IFS
  15644. test -z "$as_dir" && as_dir=.
  15645. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15646. done
  15647. IFS=$as_save_IFS
  15648. ;;
  15649. esac
  15650. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15651. # in which case we are not to be found in the path.
  15652. if test "x$as_myself" = x; then
  15653. as_myself=$0
  15654. fi
  15655. if test ! -f "$as_myself"; then
  15656. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15657. exit 1
  15658. fi
  15659. # Unset variables that we do not need and which cause bugs (e.g. in
  15660. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15661. # suppresses any "Segmentation fault" message there. '((' could
  15662. # trigger a bug in pdksh 5.2.14.
  15663. for as_var in BASH_ENV ENV MAIL MAILPATH
  15664. do eval test x\${$as_var+set} = xset \
  15665. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15666. done
  15667. PS1='$ '
  15668. PS2='> '
  15669. PS4='+ '
  15670. # NLS nuisances.
  15671. LC_ALL=C
  15672. export LC_ALL
  15673. LANGUAGE=C
  15674. export LANGUAGE
  15675. # CDPATH.
  15676. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15677. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15678. # ----------------------------------------
  15679. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15680. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15681. # script with STATUS, using 1 if that was 0.
  15682. as_fn_error ()
  15683. {
  15684. as_status=$1; test $as_status -eq 0 && as_status=1
  15685. if test "$4"; then
  15686. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15687. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15688. fi
  15689. $as_echo "$as_me: error: $2" >&2
  15690. as_fn_exit $as_status
  15691. } # as_fn_error
  15692. # as_fn_set_status STATUS
  15693. # -----------------------
  15694. # Set $? to STATUS, without forking.
  15695. as_fn_set_status ()
  15696. {
  15697. return $1
  15698. } # as_fn_set_status
  15699. # as_fn_exit STATUS
  15700. # -----------------
  15701. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15702. as_fn_exit ()
  15703. {
  15704. set +e
  15705. as_fn_set_status $1
  15706. exit $1
  15707. } # as_fn_exit
  15708. # as_fn_unset VAR
  15709. # ---------------
  15710. # Portably unset VAR.
  15711. as_fn_unset ()
  15712. {
  15713. { eval $1=; unset $1;}
  15714. }
  15715. as_unset=as_fn_unset
  15716. # as_fn_append VAR VALUE
  15717. # ----------------------
  15718. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15719. # advantage of any shell optimizations that allow amortized linear growth over
  15720. # repeated appends, instead of the typical quadratic growth present in naive
  15721. # implementations.
  15722. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15723. eval 'as_fn_append ()
  15724. {
  15725. eval $1+=\$2
  15726. }'
  15727. else
  15728. as_fn_append ()
  15729. {
  15730. eval $1=\$$1\$2
  15731. }
  15732. fi # as_fn_append
  15733. # as_fn_arith ARG...
  15734. # ------------------
  15735. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15736. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15737. # must be portable across $(()) and expr.
  15738. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15739. eval 'as_fn_arith ()
  15740. {
  15741. as_val=$(( $* ))
  15742. }'
  15743. else
  15744. as_fn_arith ()
  15745. {
  15746. as_val=`expr "$@" || test $? -eq 1`
  15747. }
  15748. fi # as_fn_arith
  15749. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15750. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15751. as_expr=expr
  15752. else
  15753. as_expr=false
  15754. fi
  15755. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15756. as_basename=basename
  15757. else
  15758. as_basename=false
  15759. fi
  15760. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15761. as_dirname=dirname
  15762. else
  15763. as_dirname=false
  15764. fi
  15765. as_me=`$as_basename -- "$0" ||
  15766. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15767. X"$0" : 'X\(//\)$' \| \
  15768. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15769. $as_echo X/"$0" |
  15770. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15771. s//\1/
  15772. q
  15773. }
  15774. /^X\/\(\/\/\)$/{
  15775. s//\1/
  15776. q
  15777. }
  15778. /^X\/\(\/\).*/{
  15779. s//\1/
  15780. q
  15781. }
  15782. s/.*/./; q'`
  15783. # Avoid depending upon Character Ranges.
  15784. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15785. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15786. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15787. as_cr_digits='0123456789'
  15788. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15789. ECHO_C= ECHO_N= ECHO_T=
  15790. case `echo -n x` in #(((((
  15791. -n*)
  15792. case `echo 'xy\c'` in
  15793. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15794. xy) ECHO_C='\c';;
  15795. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15796. ECHO_T=' ';;
  15797. esac;;
  15798. *)
  15799. ECHO_N='-n';;
  15800. esac
  15801. rm -f conf$$ conf$$.exe conf$$.file
  15802. if test -d conf$$.dir; then
  15803. rm -f conf$$.dir/conf$$.file
  15804. else
  15805. rm -f conf$$.dir
  15806. mkdir conf$$.dir 2>/dev/null
  15807. fi
  15808. if (echo >conf$$.file) 2>/dev/null; then
  15809. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15810. as_ln_s='ln -s'
  15811. # ... but there are two gotchas:
  15812. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15813. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15814. # In both cases, we have to default to `cp -pR'.
  15815. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15816. as_ln_s='cp -pR'
  15817. elif ln conf$$.file conf$$ 2>/dev/null; then
  15818. as_ln_s=ln
  15819. else
  15820. as_ln_s='cp -pR'
  15821. fi
  15822. else
  15823. as_ln_s='cp -pR'
  15824. fi
  15825. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15826. rmdir conf$$.dir 2>/dev/null
  15827. # as_fn_mkdir_p
  15828. # -------------
  15829. # Create "$as_dir" as a directory, including parents if necessary.
  15830. as_fn_mkdir_p ()
  15831. {
  15832. case $as_dir in #(
  15833. -*) as_dir=./$as_dir;;
  15834. esac
  15835. test -d "$as_dir" || eval $as_mkdir_p || {
  15836. as_dirs=
  15837. while :; do
  15838. case $as_dir in #(
  15839. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15840. *) as_qdir=$as_dir;;
  15841. esac
  15842. as_dirs="'$as_qdir' $as_dirs"
  15843. as_dir=`$as_dirname -- "$as_dir" ||
  15844. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15845. X"$as_dir" : 'X\(//\)[^/]' \| \
  15846. X"$as_dir" : 'X\(//\)$' \| \
  15847. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15848. $as_echo X"$as_dir" |
  15849. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15850. s//\1/
  15851. q
  15852. }
  15853. /^X\(\/\/\)[^/].*/{
  15854. s//\1/
  15855. q
  15856. }
  15857. /^X\(\/\/\)$/{
  15858. s//\1/
  15859. q
  15860. }
  15861. /^X\(\/\).*/{
  15862. s//\1/
  15863. q
  15864. }
  15865. s/.*/./; q'`
  15866. test -d "$as_dir" && break
  15867. done
  15868. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15869. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15870. } # as_fn_mkdir_p
  15871. if mkdir -p . 2>/dev/null; then
  15872. as_mkdir_p='mkdir -p "$as_dir"'
  15873. else
  15874. test -d ./-p && rmdir ./-p
  15875. as_mkdir_p=false
  15876. fi
  15877. # as_fn_executable_p FILE
  15878. # -----------------------
  15879. # Test if FILE is an executable regular file.
  15880. as_fn_executable_p ()
  15881. {
  15882. test -f "$1" && test -x "$1"
  15883. } # as_fn_executable_p
  15884. as_test_x='test -x'
  15885. as_executable_p=as_fn_executable_p
  15886. # Sed expression to map a string onto a valid CPP name.
  15887. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15888. # Sed expression to map a string onto a valid variable name.
  15889. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15890. exec 6>&1
  15891. ## ----------------------------------- ##
  15892. ## Main body of $CONFIG_STATUS script. ##
  15893. ## ----------------------------------- ##
  15894. _ASEOF
  15895. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15896. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15897. # Save the log message, to keep $0 and so on meaningful, and to
  15898. # report actual input values of CONFIG_FILES etc. instead of their
  15899. # values after options handling.
  15900. ac_log="
  15901. This file was extended by libsamplerate $as_me 0.1.9, which was
  15902. generated by GNU Autoconf 2.69. Invocation command line was
  15903. CONFIG_FILES = $CONFIG_FILES
  15904. CONFIG_HEADERS = $CONFIG_HEADERS
  15905. CONFIG_LINKS = $CONFIG_LINKS
  15906. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15907. $ $0 $@
  15908. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15909. "
  15910. _ACEOF
  15911. case $ac_config_files in *"
  15912. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15913. esac
  15914. case $ac_config_headers in *"
  15915. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15916. esac
  15917. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15918. # Files that config.status was made for.
  15919. config_files="$ac_config_files"
  15920. config_headers="$ac_config_headers"
  15921. config_commands="$ac_config_commands"
  15922. _ACEOF
  15923. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15924. ac_cs_usage="\
  15925. \`$as_me' instantiates files and other configuration actions
  15926. from templates according to the current configuration. Unless the files
  15927. and actions are specified as TAGs, all are instantiated by default.
  15928. Usage: $0 [OPTION]... [TAG]...
  15929. -h, --help print this help, then exit
  15930. -V, --version print version number and configuration settings, then exit
  15931. --config print configuration, then exit
  15932. -q, --quiet, --silent
  15933. do not print progress messages
  15934. -d, --debug don't remove temporary files
  15935. --recheck update $as_me by reconfiguring in the same conditions
  15936. --file=FILE[:TEMPLATE]
  15937. instantiate the configuration file FILE
  15938. --header=FILE[:TEMPLATE]
  15939. instantiate the configuration header FILE
  15940. Configuration files:
  15941. $config_files
  15942. Configuration headers:
  15943. $config_headers
  15944. Configuration commands:
  15945. $config_commands
  15946. Report bugs to <erikd@mega-nerd.com>.
  15947. libsamplerate home page: <http://www.mega-nerd.com/libsamplerate/>."
  15948. _ACEOF
  15949. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15950. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15951. ac_cs_version="\\
  15952. libsamplerate config.status 0.1.9
  15953. configured by $0, generated by GNU Autoconf 2.69,
  15954. with options \\"\$ac_cs_config\\"
  15955. Copyright (C) 2012 Free Software Foundation, Inc.
  15956. This config.status script is free software; the Free Software Foundation
  15957. gives unlimited permission to copy, distribute and modify it."
  15958. ac_pwd='$ac_pwd'
  15959. srcdir='$srcdir'
  15960. INSTALL='$INSTALL'
  15961. MKDIR_P='$MKDIR_P'
  15962. AWK='$AWK'
  15963. test -n "\$AWK" || AWK=awk
  15964. _ACEOF
  15965. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15966. # The default lists apply if the user does not specify any file.
  15967. ac_need_defaults=:
  15968. while test $# != 0
  15969. do
  15970. case $1 in
  15971. --*=?*)
  15972. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15973. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15974. ac_shift=:
  15975. ;;
  15976. --*=)
  15977. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15978. ac_optarg=
  15979. ac_shift=:
  15980. ;;
  15981. *)
  15982. ac_option=$1
  15983. ac_optarg=$2
  15984. ac_shift=shift
  15985. ;;
  15986. esac
  15987. case $ac_option in
  15988. # Handling of the options.
  15989. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15990. ac_cs_recheck=: ;;
  15991. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15992. $as_echo "$ac_cs_version"; exit ;;
  15993. --config | --confi | --conf | --con | --co | --c )
  15994. $as_echo "$ac_cs_config"; exit ;;
  15995. --debug | --debu | --deb | --de | --d | -d )
  15996. debug=: ;;
  15997. --file | --fil | --fi | --f )
  15998. $ac_shift
  15999. case $ac_optarg in
  16000. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16001. '') as_fn_error $? "missing file argument" ;;
  16002. esac
  16003. as_fn_append CONFIG_FILES " '$ac_optarg'"
  16004. ac_need_defaults=false;;
  16005. --header | --heade | --head | --hea )
  16006. $ac_shift
  16007. case $ac_optarg in
  16008. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16009. esac
  16010. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  16011. ac_need_defaults=false;;
  16012. --he | --h)
  16013. # Conflict between --help and --header
  16014. as_fn_error $? "ambiguous option: \`$1'
  16015. Try \`$0 --help' for more information.";;
  16016. --help | --hel | -h )
  16017. $as_echo "$ac_cs_usage"; exit ;;
  16018. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16019. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16020. ac_cs_silent=: ;;
  16021. # This is an error.
  16022. -*) as_fn_error $? "unrecognized option: \`$1'
  16023. Try \`$0 --help' for more information." ;;
  16024. *) as_fn_append ac_config_targets " $1"
  16025. ac_need_defaults=false ;;
  16026. esac
  16027. shift
  16028. done
  16029. ac_configure_extra_args=
  16030. if $ac_cs_silent; then
  16031. exec 6>/dev/null
  16032. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16033. fi
  16034. _ACEOF
  16035. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16036. if \$ac_cs_recheck; then
  16037. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16038. shift
  16039. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16040. CONFIG_SHELL='$SHELL'
  16041. export CONFIG_SHELL
  16042. exec "\$@"
  16043. fi
  16044. _ACEOF
  16045. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16046. exec 5>>config.log
  16047. {
  16048. echo
  16049. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16050. ## Running $as_me. ##
  16051. _ASBOX
  16052. $as_echo "$ac_log"
  16053. } >&5
  16054. _ACEOF
  16055. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16056. #
  16057. # INIT-COMMANDS
  16058. #
  16059. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16060. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16061. # if CDPATH is set.
  16062. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16063. sed_quote_subst='$sed_quote_subst'
  16064. double_quote_subst='$double_quote_subst'
  16065. delay_variable_subst='$delay_variable_subst'
  16066. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  16067. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  16068. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  16069. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  16070. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  16071. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  16072. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  16073. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  16074. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  16075. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  16076. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  16077. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  16078. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  16079. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  16080. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  16081. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  16082. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  16083. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  16084. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  16085. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  16086. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  16087. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  16088. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  16089. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  16090. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  16091. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  16092. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  16093. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  16094. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  16095. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  16096. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  16097. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  16098. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  16099. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  16100. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  16101. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  16102. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  16103. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  16104. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  16105. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  16106. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  16107. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  16108. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  16109. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  16110. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  16111. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  16112. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16113. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16114. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  16115. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  16116. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  16117. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  16118. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  16119. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  16120. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  16121. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  16122. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  16123. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  16124. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  16125. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  16126. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  16127. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  16128. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  16129. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  16130. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  16131. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  16132. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  16133. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  16134. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  16135. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  16136. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  16137. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  16138. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  16139. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  16140. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  16141. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  16142. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  16143. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  16144. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  16145. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16146. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  16147. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  16148. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  16149. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  16150. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  16151. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  16152. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16153. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  16154. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16155. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  16156. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16157. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  16158. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16159. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16160. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  16161. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  16162. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  16163. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  16164. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  16165. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16166. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  16167. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  16168. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  16169. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  16170. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  16171. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  16172. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  16173. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  16174. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  16175. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  16176. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  16177. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  16178. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  16179. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  16180. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  16181. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16182. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  16183. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  16184. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  16185. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  16186. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  16187. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16188. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16189. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  16190. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  16191. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  16192. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  16193. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  16194. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  16195. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  16196. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  16197. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  16198. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  16199. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  16200. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  16201. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  16202. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  16203. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  16204. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  16205. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  16206. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  16207. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  16208. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  16209. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16210. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  16211. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16212. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  16213. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16214. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  16215. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  16216. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  16217. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  16218. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  16219. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16220. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  16221. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  16222. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  16223. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  16224. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  16225. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  16226. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  16227. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  16228. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  16229. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  16230. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  16231. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  16232. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  16233. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16234. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  16235. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16236. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  16237. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  16238. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  16239. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16240. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  16241. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16242. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  16243. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16244. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  16245. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16246. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  16247. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16248. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  16249. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16250. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  16251. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  16252. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  16253. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16254. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  16255. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16256. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  16257. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16258. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  16259. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  16260. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  16261. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  16262. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  16263. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  16264. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  16265. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  16266. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  16267. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  16268. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  16269. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  16270. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  16271. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  16272. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  16273. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  16274. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  16275. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  16276. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  16277. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16278. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  16279. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16280. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  16281. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16282. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  16283. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16284. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  16285. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16286. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  16287. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16288. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  16289. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  16290. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  16291. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  16292. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  16293. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16294. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  16295. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16296. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  16297. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  16298. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  16299. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  16300. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  16301. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  16302. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  16303. LTCC='$LTCC'
  16304. LTCFLAGS='$LTCFLAGS'
  16305. compiler='$compiler_DEFAULT'
  16306. # A function that is used when there is no print builtin or printf.
  16307. func_fallback_echo ()
  16308. {
  16309. eval 'cat <<_LTECHO_EOF
  16310. \$1
  16311. _LTECHO_EOF'
  16312. }
  16313. # Quote evaled strings.
  16314. for var in SHELL \
  16315. ECHO \
  16316. PATH_SEPARATOR \
  16317. SED \
  16318. GREP \
  16319. EGREP \
  16320. FGREP \
  16321. LD \
  16322. NM \
  16323. LN_S \
  16324. lt_SP2NL \
  16325. lt_NL2SP \
  16326. reload_flag \
  16327. OBJDUMP \
  16328. deplibs_check_method \
  16329. file_magic_cmd \
  16330. file_magic_glob \
  16331. want_nocaseglob \
  16332. DLLTOOL \
  16333. sharedlib_from_linklib_cmd \
  16334. AR \
  16335. AR_FLAGS \
  16336. archiver_list_spec \
  16337. STRIP \
  16338. RANLIB \
  16339. CC \
  16340. CFLAGS \
  16341. compiler \
  16342. lt_cv_sys_global_symbol_pipe \
  16343. lt_cv_sys_global_symbol_to_cdecl \
  16344. lt_cv_sys_global_symbol_to_import \
  16345. lt_cv_sys_global_symbol_to_c_name_address \
  16346. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16347. lt_cv_nm_interface \
  16348. nm_file_list_spec \
  16349. lt_cv_truncate_bin \
  16350. lt_prog_compiler_no_builtin_flag \
  16351. lt_prog_compiler_pic \
  16352. lt_prog_compiler_wl \
  16353. lt_prog_compiler_static \
  16354. lt_cv_prog_compiler_c_o \
  16355. need_locks \
  16356. MANIFEST_TOOL \
  16357. DSYMUTIL \
  16358. NMEDIT \
  16359. LIPO \
  16360. OTOOL \
  16361. OTOOL64 \
  16362. shrext_cmds \
  16363. export_dynamic_flag_spec \
  16364. whole_archive_flag_spec \
  16365. compiler_needs_object \
  16366. with_gnu_ld \
  16367. allow_undefined_flag \
  16368. no_undefined_flag \
  16369. hardcode_libdir_flag_spec \
  16370. hardcode_libdir_separator \
  16371. exclude_expsyms \
  16372. include_expsyms \
  16373. file_list_spec \
  16374. variables_saved_for_relink \
  16375. libname_spec \
  16376. library_names_spec \
  16377. soname_spec \
  16378. install_override_mode \
  16379. finish_eval \
  16380. old_striplib \
  16381. striplib \
  16382. compiler_lib_search_dirs \
  16383. predep_objects \
  16384. postdep_objects \
  16385. predeps \
  16386. postdeps \
  16387. compiler_lib_search_path \
  16388. LD_CXX \
  16389. LD_RC \
  16390. reload_flag_CXX \
  16391. reload_flag_RC \
  16392. compiler_CXX \
  16393. compiler_RC \
  16394. lt_prog_compiler_no_builtin_flag_CXX \
  16395. lt_prog_compiler_no_builtin_flag_RC \
  16396. lt_prog_compiler_pic_CXX \
  16397. lt_prog_compiler_pic_RC \
  16398. lt_prog_compiler_wl_CXX \
  16399. lt_prog_compiler_wl_RC \
  16400. lt_prog_compiler_static_CXX \
  16401. lt_prog_compiler_static_RC \
  16402. lt_cv_prog_compiler_c_o_CXX \
  16403. lt_cv_prog_compiler_c_o_RC \
  16404. export_dynamic_flag_spec_CXX \
  16405. export_dynamic_flag_spec_RC \
  16406. whole_archive_flag_spec_CXX \
  16407. whole_archive_flag_spec_RC \
  16408. compiler_needs_object_CXX \
  16409. compiler_needs_object_RC \
  16410. with_gnu_ld_CXX \
  16411. with_gnu_ld_RC \
  16412. allow_undefined_flag_CXX \
  16413. allow_undefined_flag_RC \
  16414. no_undefined_flag_CXX \
  16415. no_undefined_flag_RC \
  16416. hardcode_libdir_flag_spec_CXX \
  16417. hardcode_libdir_flag_spec_RC \
  16418. hardcode_libdir_separator_CXX \
  16419. hardcode_libdir_separator_RC \
  16420. exclude_expsyms_CXX \
  16421. exclude_expsyms_RC \
  16422. include_expsyms_CXX \
  16423. include_expsyms_RC \
  16424. file_list_spec_CXX \
  16425. file_list_spec_RC \
  16426. compiler_lib_search_dirs_CXX \
  16427. compiler_lib_search_dirs_RC \
  16428. predep_objects_CXX \
  16429. predep_objects_RC \
  16430. postdep_objects_CXX \
  16431. postdep_objects_RC \
  16432. predeps_CXX \
  16433. predeps_RC \
  16434. postdeps_CXX \
  16435. postdeps_RC \
  16436. compiler_lib_search_path_CXX \
  16437. compiler_lib_search_path_RC; do
  16438. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16439. *[\\\\\\\`\\"\\\$]*)
  16440. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16441. ;;
  16442. *)
  16443. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16444. ;;
  16445. esac
  16446. done
  16447. # Double-quote double-evaled strings.
  16448. for var in reload_cmds \
  16449. old_postinstall_cmds \
  16450. old_postuninstall_cmds \
  16451. old_archive_cmds \
  16452. extract_expsyms_cmds \
  16453. old_archive_from_new_cmds \
  16454. old_archive_from_expsyms_cmds \
  16455. archive_cmds \
  16456. archive_expsym_cmds \
  16457. module_cmds \
  16458. module_expsym_cmds \
  16459. export_symbols_cmds \
  16460. prelink_cmds \
  16461. postlink_cmds \
  16462. postinstall_cmds \
  16463. postuninstall_cmds \
  16464. finish_cmds \
  16465. sys_lib_search_path_spec \
  16466. configure_time_dlsearch_path \
  16467. configure_time_lt_sys_library_path \
  16468. reload_cmds_CXX \
  16469. reload_cmds_RC \
  16470. old_archive_cmds_CXX \
  16471. old_archive_cmds_RC \
  16472. old_archive_from_new_cmds_CXX \
  16473. old_archive_from_new_cmds_RC \
  16474. old_archive_from_expsyms_cmds_CXX \
  16475. old_archive_from_expsyms_cmds_RC \
  16476. archive_cmds_CXX \
  16477. archive_cmds_RC \
  16478. archive_expsym_cmds_CXX \
  16479. archive_expsym_cmds_RC \
  16480. module_cmds_CXX \
  16481. module_cmds_RC \
  16482. module_expsym_cmds_CXX \
  16483. module_expsym_cmds_RC \
  16484. export_symbols_cmds_CXX \
  16485. export_symbols_cmds_RC \
  16486. prelink_cmds_CXX \
  16487. prelink_cmds_RC \
  16488. postlink_cmds_CXX \
  16489. postlink_cmds_RC; do
  16490. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16491. *[\\\\\\\`\\"\\\$]*)
  16492. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16493. ;;
  16494. *)
  16495. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16496. ;;
  16497. esac
  16498. done
  16499. ac_aux_dir='$ac_aux_dir'
  16500. # See if we are running on zsh, and set the options that allow our
  16501. # commands through without removal of \ escapes INIT.
  16502. if test -n "\${ZSH_VERSION+set}"; then
  16503. setopt NO_GLOB_SUBST
  16504. fi
  16505. PACKAGE='$PACKAGE'
  16506. VERSION='$VERSION'
  16507. RM='$RM'
  16508. ofile='$ofile'
  16509. _ACEOF
  16510. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16511. # Handling of arguments.
  16512. for ac_config_target in $ac_config_targets
  16513. do
  16514. case $ac_config_target in
  16515. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  16516. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16517. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16518. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16519. "M4/Makefile") CONFIG_FILES="$CONFIG_FILES M4/Makefile" ;;
  16520. "src/Version_script") CONFIG_FILES="$CONFIG_FILES src/Version_script" ;;
  16521. "Win32/Makefile") CONFIG_FILES="$CONFIG_FILES Win32/Makefile" ;;
  16522. "Win32/Makefile.mingw") CONFIG_FILES="$CONFIG_FILES Win32/Makefile.mingw" ;;
  16523. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  16524. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  16525. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  16526. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  16527. "libsamplerate.spec") CONFIG_FILES="$CONFIG_FILES libsamplerate.spec" ;;
  16528. "samplerate.pc") CONFIG_FILES="$CONFIG_FILES samplerate.pc" ;;
  16529. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16530. esac
  16531. done
  16532. # If the user did not use the arguments to specify the items to instantiate,
  16533. # then the envvar interface is used. Set only those that are not.
  16534. # We use the long form for the default assignment because of an extremely
  16535. # bizarre bug on SunOS 4.1.3.
  16536. if $ac_need_defaults; then
  16537. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16538. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  16539. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16540. fi
  16541. # Have a temporary directory for convenience. Make it in the build tree
  16542. # simply because there is no reason against having it here, and in addition,
  16543. # creating and moving files from /tmp can sometimes cause problems.
  16544. # Hook for its removal unless debugging.
  16545. # Note that there is a small window in which the directory will not be cleaned:
  16546. # after its creation but before its name has been assigned to `$tmp'.
  16547. $debug ||
  16548. {
  16549. tmp= ac_tmp=
  16550. trap 'exit_status=$?
  16551. : "${ac_tmp:=$tmp}"
  16552. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16553. ' 0
  16554. trap 'as_fn_exit 1' 1 2 13 15
  16555. }
  16556. # Create a (secure) tmp directory for tmp files.
  16557. {
  16558. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16559. test -d "$tmp"
  16560. } ||
  16561. {
  16562. tmp=./conf$$-$RANDOM
  16563. (umask 077 && mkdir "$tmp")
  16564. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16565. ac_tmp=$tmp
  16566. # Set up the scripts for CONFIG_FILES section.
  16567. # No need to generate them if there are no CONFIG_FILES.
  16568. # This happens for instance with `./config.status config.h'.
  16569. if test -n "$CONFIG_FILES"; then
  16570. ac_cr=`echo X | tr X '\015'`
  16571. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16572. # But we know of no other shell where ac_cr would be empty at this
  16573. # point, so we can use a bashism as a fallback.
  16574. if test "x$ac_cr" = x; then
  16575. eval ac_cr=\$\'\\r\'
  16576. fi
  16577. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16578. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16579. ac_cs_awk_cr='\\r'
  16580. else
  16581. ac_cs_awk_cr=$ac_cr
  16582. fi
  16583. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16584. _ACEOF
  16585. {
  16586. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16587. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16588. echo "_ACEOF"
  16589. } >conf$$subs.sh ||
  16590. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16591. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16592. ac_delim='%!_!# '
  16593. for ac_last_try in false false false false false :; do
  16594. . ./conf$$subs.sh ||
  16595. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16596. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16597. if test $ac_delim_n = $ac_delim_num; then
  16598. break
  16599. elif $ac_last_try; then
  16600. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16601. else
  16602. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16603. fi
  16604. done
  16605. rm -f conf$$subs.sh
  16606. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16607. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16608. _ACEOF
  16609. sed -n '
  16610. h
  16611. s/^/S["/; s/!.*/"]=/
  16612. p
  16613. g
  16614. s/^[^!]*!//
  16615. :repl
  16616. t repl
  16617. s/'"$ac_delim"'$//
  16618. t delim
  16619. :nl
  16620. h
  16621. s/\(.\{148\}\)..*/\1/
  16622. t more1
  16623. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16624. p
  16625. n
  16626. b repl
  16627. :more1
  16628. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16629. p
  16630. g
  16631. s/.\{148\}//
  16632. t nl
  16633. :delim
  16634. h
  16635. s/\(.\{148\}\)..*/\1/
  16636. t more2
  16637. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16638. p
  16639. b
  16640. :more2
  16641. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16642. p
  16643. g
  16644. s/.\{148\}//
  16645. t delim
  16646. ' <conf$$subs.awk | sed '
  16647. /^[^""]/{
  16648. N
  16649. s/\n//
  16650. }
  16651. ' >>$CONFIG_STATUS || ac_write_fail=1
  16652. rm -f conf$$subs.awk
  16653. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16654. _ACAWK
  16655. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16656. for (key in S) S_is_set[key] = 1
  16657. FS = ""
  16658. }
  16659. {
  16660. line = $ 0
  16661. nfields = split(line, field, "@")
  16662. substed = 0
  16663. len = length(field[1])
  16664. for (i = 2; i < nfields; i++) {
  16665. key = field[i]
  16666. keylen = length(key)
  16667. if (S_is_set[key]) {
  16668. value = S[key]
  16669. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16670. len += length(value) + length(field[++i])
  16671. substed = 1
  16672. } else
  16673. len += 1 + keylen
  16674. }
  16675. print line
  16676. }
  16677. _ACAWK
  16678. _ACEOF
  16679. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16680. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16681. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16682. else
  16683. cat
  16684. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16685. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16686. _ACEOF
  16687. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16688. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16689. # trailing colons and then remove the whole line if VPATH becomes empty
  16690. # (actually we leave an empty line to preserve line numbers).
  16691. if test "x$srcdir" = x.; then
  16692. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16693. h
  16694. s///
  16695. s/^/:/
  16696. s/[ ]*$/:/
  16697. s/:\$(srcdir):/:/g
  16698. s/:\${srcdir}:/:/g
  16699. s/:@srcdir@:/:/g
  16700. s/^:*//
  16701. s/:*$//
  16702. x
  16703. s/\(=[ ]*\).*/\1/
  16704. G
  16705. s/\n//
  16706. s/^[^=]*=[ ]*$//
  16707. }'
  16708. fi
  16709. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16710. fi # test -n "$CONFIG_FILES"
  16711. # Set up the scripts for CONFIG_HEADERS section.
  16712. # No need to generate them if there are no CONFIG_HEADERS.
  16713. # This happens for instance with `./config.status Makefile'.
  16714. if test -n "$CONFIG_HEADERS"; then
  16715. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  16716. BEGIN {
  16717. _ACEOF
  16718. # Transform confdefs.h into an awk script `defines.awk', embedded as
  16719. # here-document in config.status, that substitutes the proper values into
  16720. # config.h.in to produce config.h.
  16721. # Create a delimiter string that does not exist in confdefs.h, to ease
  16722. # handling of long lines.
  16723. ac_delim='%!_!# '
  16724. for ac_last_try in false false :; do
  16725. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  16726. if test -z "$ac_tt"; then
  16727. break
  16728. elif $ac_last_try; then
  16729. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  16730. else
  16731. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16732. fi
  16733. done
  16734. # For the awk script, D is an array of macro values keyed by name,
  16735. # likewise P contains macro parameters if any. Preserve backslash
  16736. # newline sequences.
  16737. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16738. sed -n '
  16739. s/.\{148\}/&'"$ac_delim"'/g
  16740. t rset
  16741. :rset
  16742. s/^[ ]*#[ ]*define[ ][ ]*/ /
  16743. t def
  16744. d
  16745. :def
  16746. s/\\$//
  16747. t bsnl
  16748. s/["\\]/\\&/g
  16749. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16750. D["\1"]=" \3"/p
  16751. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  16752. d
  16753. :bsnl
  16754. s/["\\]/\\&/g
  16755. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16756. D["\1"]=" \3\\\\\\n"\\/p
  16757. t cont
  16758. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  16759. t cont
  16760. d
  16761. :cont
  16762. n
  16763. s/.\{148\}/&'"$ac_delim"'/g
  16764. t clear
  16765. :clear
  16766. s/\\$//
  16767. t bsnlc
  16768. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  16769. d
  16770. :bsnlc
  16771. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  16772. b cont
  16773. ' <confdefs.h | sed '
  16774. s/'"$ac_delim"'/"\\\
  16775. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  16776. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16777. for (key in D) D_is_set[key] = 1
  16778. FS = ""
  16779. }
  16780. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  16781. line = \$ 0
  16782. split(line, arg, " ")
  16783. if (arg[1] == "#") {
  16784. defundef = arg[2]
  16785. mac1 = arg[3]
  16786. } else {
  16787. defundef = substr(arg[1], 2)
  16788. mac1 = arg[2]
  16789. }
  16790. split(mac1, mac2, "(") #)
  16791. macro = mac2[1]
  16792. prefix = substr(line, 1, index(line, defundef) - 1)
  16793. if (D_is_set[macro]) {
  16794. # Preserve the white space surrounding the "#".
  16795. print prefix "define", macro P[macro] D[macro]
  16796. next
  16797. } else {
  16798. # Replace #undef with comments. This is necessary, for example,
  16799. # in the case of _POSIX_SOURCE, which is predefined and required
  16800. # on some systems where configure will not decide to define it.
  16801. if (defundef == "undef") {
  16802. print "/*", prefix defundef, macro, "*/"
  16803. next
  16804. }
  16805. }
  16806. }
  16807. { print }
  16808. _ACAWK
  16809. _ACEOF
  16810. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16811. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  16812. fi # test -n "$CONFIG_HEADERS"
  16813. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16814. shift
  16815. for ac_tag
  16816. do
  16817. case $ac_tag in
  16818. :[FHLC]) ac_mode=$ac_tag; continue;;
  16819. esac
  16820. case $ac_mode$ac_tag in
  16821. :[FHL]*:*);;
  16822. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16823. :[FH]-) ac_tag=-:-;;
  16824. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16825. esac
  16826. ac_save_IFS=$IFS
  16827. IFS=:
  16828. set x $ac_tag
  16829. IFS=$ac_save_IFS
  16830. shift
  16831. ac_file=$1
  16832. shift
  16833. case $ac_mode in
  16834. :L) ac_source=$1;;
  16835. :[FH])
  16836. ac_file_inputs=
  16837. for ac_f
  16838. do
  16839. case $ac_f in
  16840. -) ac_f="$ac_tmp/stdin";;
  16841. *) # Look for the file first in the build tree, then in the source tree
  16842. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16843. # because $ac_f cannot contain `:'.
  16844. test -f "$ac_f" ||
  16845. case $ac_f in
  16846. [\\/$]*) false;;
  16847. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16848. esac ||
  16849. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16850. esac
  16851. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16852. as_fn_append ac_file_inputs " '$ac_f'"
  16853. done
  16854. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16855. # use $as_me), people would be surprised to read:
  16856. # /* config.h. Generated by config.status. */
  16857. configure_input='Generated from '`
  16858. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16859. `' by configure.'
  16860. if test x"$ac_file" != x-; then
  16861. configure_input="$ac_file. $configure_input"
  16862. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16863. $as_echo "$as_me: creating $ac_file" >&6;}
  16864. fi
  16865. # Neutralize special characters interpreted by sed in replacement strings.
  16866. case $configure_input in #(
  16867. *\&* | *\|* | *\\* )
  16868. ac_sed_conf_input=`$as_echo "$configure_input" |
  16869. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16870. *) ac_sed_conf_input=$configure_input;;
  16871. esac
  16872. case $ac_tag in
  16873. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16874. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16875. esac
  16876. ;;
  16877. esac
  16878. ac_dir=`$as_dirname -- "$ac_file" ||
  16879. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16880. X"$ac_file" : 'X\(//\)[^/]' \| \
  16881. X"$ac_file" : 'X\(//\)$' \| \
  16882. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16883. $as_echo X"$ac_file" |
  16884. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16885. s//\1/
  16886. q
  16887. }
  16888. /^X\(\/\/\)[^/].*/{
  16889. s//\1/
  16890. q
  16891. }
  16892. /^X\(\/\/\)$/{
  16893. s//\1/
  16894. q
  16895. }
  16896. /^X\(\/\).*/{
  16897. s//\1/
  16898. q
  16899. }
  16900. s/.*/./; q'`
  16901. as_dir="$ac_dir"; as_fn_mkdir_p
  16902. ac_builddir=.
  16903. case "$ac_dir" in
  16904. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16905. *)
  16906. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16907. # A ".." for each directory in $ac_dir_suffix.
  16908. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16909. case $ac_top_builddir_sub in
  16910. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16911. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16912. esac ;;
  16913. esac
  16914. ac_abs_top_builddir=$ac_pwd
  16915. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16916. # for backward compatibility:
  16917. ac_top_builddir=$ac_top_build_prefix
  16918. case $srcdir in
  16919. .) # We are building in place.
  16920. ac_srcdir=.
  16921. ac_top_srcdir=$ac_top_builddir_sub
  16922. ac_abs_top_srcdir=$ac_pwd ;;
  16923. [\\/]* | ?:[\\/]* ) # Absolute name.
  16924. ac_srcdir=$srcdir$ac_dir_suffix;
  16925. ac_top_srcdir=$srcdir
  16926. ac_abs_top_srcdir=$srcdir ;;
  16927. *) # Relative name.
  16928. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16929. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16930. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16931. esac
  16932. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16933. case $ac_mode in
  16934. :F)
  16935. #
  16936. # CONFIG_FILE
  16937. #
  16938. case $INSTALL in
  16939. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16940. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16941. esac
  16942. ac_MKDIR_P=$MKDIR_P
  16943. case $MKDIR_P in
  16944. [\\/$]* | ?:[\\/]* ) ;;
  16945. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16946. esac
  16947. _ACEOF
  16948. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16949. # If the template does not know about datarootdir, expand it.
  16950. # FIXME: This hack should be removed a few years after 2.60.
  16951. ac_datarootdir_hack=; ac_datarootdir_seen=
  16952. ac_sed_dataroot='
  16953. /datarootdir/ {
  16954. p
  16955. q
  16956. }
  16957. /@datadir@/p
  16958. /@docdir@/p
  16959. /@infodir@/p
  16960. /@localedir@/p
  16961. /@mandir@/p'
  16962. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16963. *datarootdir*) ac_datarootdir_seen=yes;;
  16964. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16966. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16967. _ACEOF
  16968. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16969. ac_datarootdir_hack='
  16970. s&@datadir@&$datadir&g
  16971. s&@docdir@&$docdir&g
  16972. s&@infodir@&$infodir&g
  16973. s&@localedir@&$localedir&g
  16974. s&@mandir@&$mandir&g
  16975. s&\\\${datarootdir}&$datarootdir&g' ;;
  16976. esac
  16977. _ACEOF
  16978. # Neutralize VPATH when `$srcdir' = `.'.
  16979. # Shell code in configure.ac might set extrasub.
  16980. # FIXME: do we really want to maintain this feature?
  16981. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16982. ac_sed_extra="$ac_vpsub
  16983. $extrasub
  16984. _ACEOF
  16985. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16986. :t
  16987. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16988. s|@configure_input@|$ac_sed_conf_input|;t t
  16989. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16990. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16991. s&@srcdir@&$ac_srcdir&;t t
  16992. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16993. s&@top_srcdir@&$ac_top_srcdir&;t t
  16994. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16995. s&@builddir@&$ac_builddir&;t t
  16996. s&@abs_builddir@&$ac_abs_builddir&;t t
  16997. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16998. s&@INSTALL@&$ac_INSTALL&;t t
  16999. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  17000. $ac_datarootdir_hack
  17001. "
  17002. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  17003. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17004. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17005. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  17006. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  17007. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  17008. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17009. which seems to be undefined. Please make sure it is defined" >&5
  17010. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17011. which seems to be undefined. Please make sure it is defined" >&2;}
  17012. rm -f "$ac_tmp/stdin"
  17013. case $ac_file in
  17014. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  17015. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  17016. esac \
  17017. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17018. ;;
  17019. :H)
  17020. #
  17021. # CONFIG_HEADER
  17022. #
  17023. if test x"$ac_file" != x-; then
  17024. {
  17025. $as_echo "/* $configure_input */" \
  17026. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  17027. } >"$ac_tmp/config.h" \
  17028. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17029. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  17030. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  17031. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  17032. else
  17033. rm -f "$ac_file"
  17034. mv "$ac_tmp/config.h" "$ac_file" \
  17035. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17036. fi
  17037. else
  17038. $as_echo "/* $configure_input */" \
  17039. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  17040. || as_fn_error $? "could not create -" "$LINENO" 5
  17041. fi
  17042. # Compute "$ac_file"'s index in $config_headers.
  17043. _am_arg="$ac_file"
  17044. _am_stamp_count=1
  17045. for _am_header in $config_headers :; do
  17046. case $_am_header in
  17047. $_am_arg | $_am_arg:* )
  17048. break ;;
  17049. * )
  17050. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  17051. esac
  17052. done
  17053. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  17054. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17055. X"$_am_arg" : 'X\(//\)[^/]' \| \
  17056. X"$_am_arg" : 'X\(//\)$' \| \
  17057. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  17058. $as_echo X"$_am_arg" |
  17059. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17060. s//\1/
  17061. q
  17062. }
  17063. /^X\(\/\/\)[^/].*/{
  17064. s//\1/
  17065. q
  17066. }
  17067. /^X\(\/\/\)$/{
  17068. s//\1/
  17069. q
  17070. }
  17071. /^X\(\/\).*/{
  17072. s//\1/
  17073. q
  17074. }
  17075. s/.*/./; q'`/stamp-h$_am_stamp_count
  17076. ;;
  17077. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  17078. $as_echo "$as_me: executing $ac_file commands" >&6;}
  17079. ;;
  17080. esac
  17081. case $ac_file$ac_mode in
  17082. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  17083. # Older Autoconf quotes --file arguments for eval, but not when files
  17084. # are listed without --file. Let's play safe and only enable the eval
  17085. # if we detect the quoting.
  17086. case $CONFIG_FILES in
  17087. *\'*) eval set x "$CONFIG_FILES" ;;
  17088. *) set x $CONFIG_FILES ;;
  17089. esac
  17090. shift
  17091. for mf
  17092. do
  17093. # Strip MF so we end up with the name of the file.
  17094. mf=`echo "$mf" | sed -e 's/:.*$//'`
  17095. # Check whether this is an Automake generated Makefile or not.
  17096. # We used to match only the files named 'Makefile.in', but
  17097. # some people rename them; so instead we look at the file content.
  17098. # Grep'ing the first line is not enough: some people post-process
  17099. # each Makefile.in and add a new line on top of each file to say so.
  17100. # Grep'ing the whole file is not good either: AIX grep has a line
  17101. # limit of 2048, but all sed's we know have understand at least 4000.
  17102. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  17103. dirpart=`$as_dirname -- "$mf" ||
  17104. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17105. X"$mf" : 'X\(//\)[^/]' \| \
  17106. X"$mf" : 'X\(//\)$' \| \
  17107. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  17108. $as_echo X"$mf" |
  17109. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17110. s//\1/
  17111. q
  17112. }
  17113. /^X\(\/\/\)[^/].*/{
  17114. s//\1/
  17115. q
  17116. }
  17117. /^X\(\/\/\)$/{
  17118. s//\1/
  17119. q
  17120. }
  17121. /^X\(\/\).*/{
  17122. s//\1/
  17123. q
  17124. }
  17125. s/.*/./; q'`
  17126. else
  17127. continue
  17128. fi
  17129. # Extract the definition of DEPDIR, am__include, and am__quote
  17130. # from the Makefile without running 'make'.
  17131. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  17132. test -z "$DEPDIR" && continue
  17133. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  17134. test -z "$am__include" && continue
  17135. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  17136. # Find all dependency output files, they are included files with
  17137. # $(DEPDIR) in their names. We invoke sed twice because it is the
  17138. # simplest approach to changing $(DEPDIR) to its actual value in the
  17139. # expansion.
  17140. for file in `sed -n "
  17141. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  17142. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  17143. # Make sure the directory exists.
  17144. test -f "$dirpart/$file" && continue
  17145. fdir=`$as_dirname -- "$file" ||
  17146. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17147. X"$file" : 'X\(//\)[^/]' \| \
  17148. X"$file" : 'X\(//\)$' \| \
  17149. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  17150. $as_echo X"$file" |
  17151. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17152. s//\1/
  17153. q
  17154. }
  17155. /^X\(\/\/\)[^/].*/{
  17156. s//\1/
  17157. q
  17158. }
  17159. /^X\(\/\/\)$/{
  17160. s//\1/
  17161. q
  17162. }
  17163. /^X\(\/\).*/{
  17164. s//\1/
  17165. q
  17166. }
  17167. s/.*/./; q'`
  17168. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  17169. # echo "creating $dirpart/$file"
  17170. echo '# dummy' > "$dirpart/$file"
  17171. done
  17172. done
  17173. }
  17174. ;;
  17175. "libtool":C)
  17176. # See if we are running on zsh, and set the options that allow our
  17177. # commands through without removal of \ escapes.
  17178. if test -n "${ZSH_VERSION+set}"; then
  17179. setopt NO_GLOB_SUBST
  17180. fi
  17181. cfgfile=${ofile}T
  17182. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17183. $RM "$cfgfile"
  17184. cat <<_LT_EOF >> "$cfgfile"
  17185. #! $SHELL
  17186. # Generated automatically by $as_me ($PACKAGE) $VERSION
  17187. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17188. # Provide generalized library-building support services.
  17189. # Written by Gordon Matzigkeit, 1996
  17190. # Copyright (C) 2014 Free Software Foundation, Inc.
  17191. # This is free software; see the source for copying conditions. There is NO
  17192. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17193. # GNU Libtool is free software; you can redistribute it and/or modify
  17194. # it under the terms of the GNU General Public License as published by
  17195. # the Free Software Foundation; either version 2 of of the License, or
  17196. # (at your option) any later version.
  17197. #
  17198. # As a special exception to the GNU General Public License, if you
  17199. # distribute this file as part of a program or library that is built
  17200. # using GNU Libtool, you may include this file under the same
  17201. # distribution terms that you use for the rest of that program.
  17202. #
  17203. # GNU Libtool is distributed in the hope that it will be useful, but
  17204. # WITHOUT ANY WARRANTY; without even the implied warranty of
  17205. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17206. # GNU General Public License for more details.
  17207. #
  17208. # You should have received a copy of the GNU General Public License
  17209. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17210. # The names of the tagged configurations supported by this script.
  17211. available_tags='CXX RC '
  17212. # Configured defaults for sys_lib_dlsearch_path munging.
  17213. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  17214. # ### BEGIN LIBTOOL CONFIG
  17215. # Which release of libtool.m4 was used?
  17216. macro_version=$macro_version
  17217. macro_revision=$macro_revision
  17218. # Whether or not to build shared libraries.
  17219. build_libtool_libs=$enable_shared
  17220. # Whether or not to build static libraries.
  17221. build_old_libs=$enable_static
  17222. # What type of objects to build.
  17223. pic_mode=$pic_mode
  17224. # Whether or not to optimize for fast installation.
  17225. fast_install=$enable_fast_install
  17226. # Shared archive member basename,for filename based shared library versioning on AIX.
  17227. shared_archive_member_spec=$shared_archive_member_spec
  17228. # Shell to use when invoking shell scripts.
  17229. SHELL=$lt_SHELL
  17230. # An echo program that protects backslashes.
  17231. ECHO=$lt_ECHO
  17232. # The PATH separator for the build system.
  17233. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  17234. # The host system.
  17235. host_alias=$host_alias
  17236. host=$host
  17237. host_os=$host_os
  17238. # The build system.
  17239. build_alias=$build_alias
  17240. build=$build
  17241. build_os=$build_os
  17242. # A sed program that does not truncate output.
  17243. SED=$lt_SED
  17244. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17245. Xsed="\$SED -e 1s/^X//"
  17246. # A grep program that handles long lines.
  17247. GREP=$lt_GREP
  17248. # An ERE matcher.
  17249. EGREP=$lt_EGREP
  17250. # A literal string matcher.
  17251. FGREP=$lt_FGREP
  17252. # A BSD- or MS-compatible name lister.
  17253. NM=$lt_NM
  17254. # Whether we need soft or hard links.
  17255. LN_S=$lt_LN_S
  17256. # What is the maximum length of a command?
  17257. max_cmd_len=$max_cmd_len
  17258. # Object file suffix (normally "o").
  17259. objext=$ac_objext
  17260. # Executable file suffix (normally "").
  17261. exeext=$exeext
  17262. # whether the shell understands "unset".
  17263. lt_unset=$lt_unset
  17264. # turn spaces into newlines.
  17265. SP2NL=$lt_lt_SP2NL
  17266. # turn newlines into spaces.
  17267. NL2SP=$lt_lt_NL2SP
  17268. # convert \$build file names to \$host format.
  17269. to_host_file_cmd=$lt_cv_to_host_file_cmd
  17270. # convert \$build files to toolchain format.
  17271. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  17272. # An object symbol dumper.
  17273. OBJDUMP=$lt_OBJDUMP
  17274. # Method to check whether dependent libraries are shared objects.
  17275. deplibs_check_method=$lt_deplibs_check_method
  17276. # Command to use when deplibs_check_method = "file_magic".
  17277. file_magic_cmd=$lt_file_magic_cmd
  17278. # How to find potential files when deplibs_check_method = "file_magic".
  17279. file_magic_glob=$lt_file_magic_glob
  17280. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  17281. want_nocaseglob=$lt_want_nocaseglob
  17282. # DLL creation program.
  17283. DLLTOOL=$lt_DLLTOOL
  17284. # Command to associate shared and link libraries.
  17285. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  17286. # The archiver.
  17287. AR=$lt_AR
  17288. # Flags to create an archive.
  17289. AR_FLAGS=$lt_AR_FLAGS
  17290. # How to feed a file listing to the archiver.
  17291. archiver_list_spec=$lt_archiver_list_spec
  17292. # A symbol stripping program.
  17293. STRIP=$lt_STRIP
  17294. # Commands used to install an old-style archive.
  17295. RANLIB=$lt_RANLIB
  17296. old_postinstall_cmds=$lt_old_postinstall_cmds
  17297. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17298. # Whether to use a lock for old archive extraction.
  17299. lock_old_archive_extraction=$lock_old_archive_extraction
  17300. # A C compiler.
  17301. LTCC=$lt_CC
  17302. # LTCC compiler flags.
  17303. LTCFLAGS=$lt_CFLAGS
  17304. # Take the output of nm and produce a listing of raw symbols and C names.
  17305. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17306. # Transform the output of nm in a proper C declaration.
  17307. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17308. # Transform the output of nm into a list of symbols to manually relocate.
  17309. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  17310. # Transform the output of nm in a C name address pair.
  17311. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17312. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17313. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17314. # The name lister interface.
  17315. nm_interface=$lt_lt_cv_nm_interface
  17316. # Specify filename containing input files for \$NM.
  17317. nm_file_list_spec=$lt_nm_file_list_spec
  17318. # The root where to search for dependent libraries,and where our libraries should be installed.
  17319. lt_sysroot=$lt_sysroot
  17320. # Command to truncate a binary pipe.
  17321. lt_truncate_bin=$lt_lt_cv_truncate_bin
  17322. # The name of the directory that contains temporary libtool files.
  17323. objdir=$objdir
  17324. # Used to examine libraries when file_magic_cmd begins with "file".
  17325. MAGIC_CMD=$MAGIC_CMD
  17326. # Must we lock files when doing compilation?
  17327. need_locks=$lt_need_locks
  17328. # Manifest tool.
  17329. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  17330. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17331. DSYMUTIL=$lt_DSYMUTIL
  17332. # Tool to change global to local symbols on Mac OS X.
  17333. NMEDIT=$lt_NMEDIT
  17334. # Tool to manipulate fat objects and archives on Mac OS X.
  17335. LIPO=$lt_LIPO
  17336. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17337. OTOOL=$lt_OTOOL
  17338. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17339. OTOOL64=$lt_OTOOL64
  17340. # Old archive suffix (normally "a").
  17341. libext=$libext
  17342. # Shared library suffix (normally ".so").
  17343. shrext_cmds=$lt_shrext_cmds
  17344. # The commands to extract the exported symbol list from a shared archive.
  17345. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17346. # Variables whose values should be saved in libtool wrapper scripts and
  17347. # restored at link time.
  17348. variables_saved_for_relink=$lt_variables_saved_for_relink
  17349. # Do we need the "lib" prefix for modules?
  17350. need_lib_prefix=$need_lib_prefix
  17351. # Do we need a version for libraries?
  17352. need_version=$need_version
  17353. # Library versioning type.
  17354. version_type=$version_type
  17355. # Shared library runtime path variable.
  17356. runpath_var=$runpath_var
  17357. # Shared library path variable.
  17358. shlibpath_var=$shlibpath_var
  17359. # Is shlibpath searched before the hard-coded library search path?
  17360. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17361. # Format of library name prefix.
  17362. libname_spec=$lt_libname_spec
  17363. # List of archive names. First name is the real one, the rest are links.
  17364. # The last name is the one that the linker finds with -lNAME
  17365. library_names_spec=$lt_library_names_spec
  17366. # The coded name of the library, if different from the real name.
  17367. soname_spec=$lt_soname_spec
  17368. # Permission mode override for installation of shared libraries.
  17369. install_override_mode=$lt_install_override_mode
  17370. # Command to use after installation of a shared archive.
  17371. postinstall_cmds=$lt_postinstall_cmds
  17372. # Command to use after uninstallation of a shared archive.
  17373. postuninstall_cmds=$lt_postuninstall_cmds
  17374. # Commands used to finish a libtool library installation in a directory.
  17375. finish_cmds=$lt_finish_cmds
  17376. # As "finish_cmds", except a single script fragment to be evaled but
  17377. # not shown.
  17378. finish_eval=$lt_finish_eval
  17379. # Whether we should hardcode library paths into libraries.
  17380. hardcode_into_libs=$hardcode_into_libs
  17381. # Compile-time system search path for libraries.
  17382. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17383. # Detected run-time system search path for libraries.
  17384. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  17385. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  17386. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  17387. # Whether dlopen is supported.
  17388. dlopen_support=$enable_dlopen
  17389. # Whether dlopen of programs is supported.
  17390. dlopen_self=$enable_dlopen_self
  17391. # Whether dlopen of statically linked programs is supported.
  17392. dlopen_self_static=$enable_dlopen_self_static
  17393. # Commands to strip libraries.
  17394. old_striplib=$lt_old_striplib
  17395. striplib=$lt_striplib
  17396. # The linker used to build libraries.
  17397. LD=$lt_LD
  17398. # How to create reloadable object files.
  17399. reload_flag=$lt_reload_flag
  17400. reload_cmds=$lt_reload_cmds
  17401. # Commands used to build an old-style archive.
  17402. old_archive_cmds=$lt_old_archive_cmds
  17403. # A language specific compiler.
  17404. CC=$lt_compiler
  17405. # Is the compiler the GNU compiler?
  17406. with_gcc=$GCC
  17407. # Compiler flag to turn off builtin functions.
  17408. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17409. # Additional compiler flags for building library objects.
  17410. pic_flag=$lt_lt_prog_compiler_pic
  17411. # How to pass a linker flag through the compiler.
  17412. wl=$lt_lt_prog_compiler_wl
  17413. # Compiler flag to prevent dynamic linking.
  17414. link_static_flag=$lt_lt_prog_compiler_static
  17415. # Does compiler simultaneously support -c and -o options?
  17416. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17417. # Whether or not to add -lc for building shared libraries.
  17418. build_libtool_need_lc=$archive_cmds_need_lc
  17419. # Whether or not to disallow shared libs when runtime libs are static.
  17420. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17421. # Compiler flag to allow reflexive dlopens.
  17422. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17423. # Compiler flag to generate shared objects directly from archives.
  17424. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17425. # Whether the compiler copes with passing no objects directly.
  17426. compiler_needs_object=$lt_compiler_needs_object
  17427. # Create an old-style archive from a shared archive.
  17428. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17429. # Create a temporary old-style archive to link instead of a shared archive.
  17430. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17431. # Commands used to build a shared archive.
  17432. archive_cmds=$lt_archive_cmds
  17433. archive_expsym_cmds=$lt_archive_expsym_cmds
  17434. # Commands used to build a loadable module if different from building
  17435. # a shared archive.
  17436. module_cmds=$lt_module_cmds
  17437. module_expsym_cmds=$lt_module_expsym_cmds
  17438. # Whether we are building with GNU ld or not.
  17439. with_gnu_ld=$lt_with_gnu_ld
  17440. # Flag that allows shared libraries with undefined symbols to be built.
  17441. allow_undefined_flag=$lt_allow_undefined_flag
  17442. # Flag that enforces no undefined symbols.
  17443. no_undefined_flag=$lt_no_undefined_flag
  17444. # Flag to hardcode \$libdir into a binary during linking.
  17445. # This must work even if \$libdir does not exist
  17446. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17447. # Whether we need a single "-rpath" flag with a separated argument.
  17448. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17449. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17450. # DIR into the resulting binary.
  17451. hardcode_direct=$hardcode_direct
  17452. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17453. # DIR into the resulting binary and the resulting library dependency is
  17454. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17455. # library is relocated.
  17456. hardcode_direct_absolute=$hardcode_direct_absolute
  17457. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17458. # into the resulting binary.
  17459. hardcode_minus_L=$hardcode_minus_L
  17460. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17461. # into the resulting binary.
  17462. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17463. # Set to "yes" if building a shared library automatically hardcodes DIR
  17464. # into the library and all subsequent libraries and executables linked
  17465. # against it.
  17466. hardcode_automatic=$hardcode_automatic
  17467. # Set to yes if linker adds runtime paths of dependent libraries
  17468. # to runtime path list.
  17469. inherit_rpath=$inherit_rpath
  17470. # Whether libtool must link a program against all its dependency libraries.
  17471. link_all_deplibs=$link_all_deplibs
  17472. # Set to "yes" if exported symbols are required.
  17473. always_export_symbols=$always_export_symbols
  17474. # The commands to list exported symbols.
  17475. export_symbols_cmds=$lt_export_symbols_cmds
  17476. # Symbols that should not be listed in the preloaded symbols.
  17477. exclude_expsyms=$lt_exclude_expsyms
  17478. # Symbols that must always be exported.
  17479. include_expsyms=$lt_include_expsyms
  17480. # Commands necessary for linking programs (against libraries) with templates.
  17481. prelink_cmds=$lt_prelink_cmds
  17482. # Commands necessary for finishing linking programs.
  17483. postlink_cmds=$lt_postlink_cmds
  17484. # Specify filename containing input files.
  17485. file_list_spec=$lt_file_list_spec
  17486. # How to hardcode a shared library path into an executable.
  17487. hardcode_action=$hardcode_action
  17488. # The directories searched by this compiler when creating a shared library.
  17489. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17490. # Dependencies to place before and after the objects being linked to
  17491. # create a shared library.
  17492. predep_objects=$lt_predep_objects
  17493. postdep_objects=$lt_postdep_objects
  17494. predeps=$lt_predeps
  17495. postdeps=$lt_postdeps
  17496. # The library search path used internally by the compiler when linking
  17497. # a shared library.
  17498. compiler_lib_search_path=$lt_compiler_lib_search_path
  17499. # ### END LIBTOOL CONFIG
  17500. _LT_EOF
  17501. cat <<'_LT_EOF' >> "$cfgfile"
  17502. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  17503. # func_munge_path_list VARIABLE PATH
  17504. # -----------------------------------
  17505. # VARIABLE is name of variable containing _space_ separated list of
  17506. # directories to be munged by the contents of PATH, which is string
  17507. # having a format:
  17508. # "DIR[:DIR]:"
  17509. # string "DIR[ DIR]" will be prepended to VARIABLE
  17510. # ":DIR[:DIR]"
  17511. # string "DIR[ DIR]" will be appended to VARIABLE
  17512. # "DIRP[:DIRP]::[DIRA:]DIRA"
  17513. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  17514. # "DIRA[ DIRA]" will be appended to VARIABLE
  17515. # "DIR[:DIR]"
  17516. # VARIABLE will be replaced by "DIR[ DIR]"
  17517. func_munge_path_list ()
  17518. {
  17519. case x$2 in
  17520. x)
  17521. ;;
  17522. *:)
  17523. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  17524. ;;
  17525. x:*)
  17526. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  17527. ;;
  17528. *::*)
  17529. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  17530. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  17531. ;;
  17532. *)
  17533. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  17534. ;;
  17535. esac
  17536. }
  17537. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  17538. func_cc_basename ()
  17539. {
  17540. for cc_temp in $*""; do
  17541. case $cc_temp in
  17542. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17543. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17544. \-*) ;;
  17545. *) break;;
  17546. esac
  17547. done
  17548. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  17549. }
  17550. # ### END FUNCTIONS SHARED WITH CONFIGURE
  17551. _LT_EOF
  17552. case $host_os in
  17553. aix3*)
  17554. cat <<\_LT_EOF >> "$cfgfile"
  17555. # AIX sometimes has problems with the GCC collect2 program. For some
  17556. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17557. # vanish in a puff of smoke.
  17558. if test set != "${COLLECT_NAMES+set}"; then
  17559. COLLECT_NAMES=
  17560. export COLLECT_NAMES
  17561. fi
  17562. _LT_EOF
  17563. ;;
  17564. esac
  17565. ltmain=$ac_aux_dir/ltmain.sh
  17566. # We use sed instead of cat because bash on DJGPP gets confused if
  17567. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17568. # text mode, it properly converts lines to CR/LF. This bash problem
  17569. # is reportedly fixed, but why not run on old versions too?
  17570. sed '$q' "$ltmain" >> "$cfgfile" \
  17571. || (rm -f "$cfgfile"; exit 1)
  17572. mv -f "$cfgfile" "$ofile" ||
  17573. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17574. chmod +x "$ofile"
  17575. cat <<_LT_EOF >> "$ofile"
  17576. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17577. # The linker used to build libraries.
  17578. LD=$lt_LD_CXX
  17579. # How to create reloadable object files.
  17580. reload_flag=$lt_reload_flag_CXX
  17581. reload_cmds=$lt_reload_cmds_CXX
  17582. # Commands used to build an old-style archive.
  17583. old_archive_cmds=$lt_old_archive_cmds_CXX
  17584. # A language specific compiler.
  17585. CC=$lt_compiler_CXX
  17586. # Is the compiler the GNU compiler?
  17587. with_gcc=$GCC_CXX
  17588. # Compiler flag to turn off builtin functions.
  17589. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17590. # Additional compiler flags for building library objects.
  17591. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17592. # How to pass a linker flag through the compiler.
  17593. wl=$lt_lt_prog_compiler_wl_CXX
  17594. # Compiler flag to prevent dynamic linking.
  17595. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17596. # Does compiler simultaneously support -c and -o options?
  17597. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17598. # Whether or not to add -lc for building shared libraries.
  17599. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17600. # Whether or not to disallow shared libs when runtime libs are static.
  17601. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17602. # Compiler flag to allow reflexive dlopens.
  17603. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17604. # Compiler flag to generate shared objects directly from archives.
  17605. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17606. # Whether the compiler copes with passing no objects directly.
  17607. compiler_needs_object=$lt_compiler_needs_object_CXX
  17608. # Create an old-style archive from a shared archive.
  17609. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17610. # Create a temporary old-style archive to link instead of a shared archive.
  17611. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17612. # Commands used to build a shared archive.
  17613. archive_cmds=$lt_archive_cmds_CXX
  17614. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17615. # Commands used to build a loadable module if different from building
  17616. # a shared archive.
  17617. module_cmds=$lt_module_cmds_CXX
  17618. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17619. # Whether we are building with GNU ld or not.
  17620. with_gnu_ld=$lt_with_gnu_ld_CXX
  17621. # Flag that allows shared libraries with undefined symbols to be built.
  17622. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17623. # Flag that enforces no undefined symbols.
  17624. no_undefined_flag=$lt_no_undefined_flag_CXX
  17625. # Flag to hardcode \$libdir into a binary during linking.
  17626. # This must work even if \$libdir does not exist
  17627. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17628. # Whether we need a single "-rpath" flag with a separated argument.
  17629. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17630. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17631. # DIR into the resulting binary.
  17632. hardcode_direct=$hardcode_direct_CXX
  17633. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17634. # DIR into the resulting binary and the resulting library dependency is
  17635. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17636. # library is relocated.
  17637. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17638. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17639. # into the resulting binary.
  17640. hardcode_minus_L=$hardcode_minus_L_CXX
  17641. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17642. # into the resulting binary.
  17643. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17644. # Set to "yes" if building a shared library automatically hardcodes DIR
  17645. # into the library and all subsequent libraries and executables linked
  17646. # against it.
  17647. hardcode_automatic=$hardcode_automatic_CXX
  17648. # Set to yes if linker adds runtime paths of dependent libraries
  17649. # to runtime path list.
  17650. inherit_rpath=$inherit_rpath_CXX
  17651. # Whether libtool must link a program against all its dependency libraries.
  17652. link_all_deplibs=$link_all_deplibs_CXX
  17653. # Set to "yes" if exported symbols are required.
  17654. always_export_symbols=$always_export_symbols_CXX
  17655. # The commands to list exported symbols.
  17656. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17657. # Symbols that should not be listed in the preloaded symbols.
  17658. exclude_expsyms=$lt_exclude_expsyms_CXX
  17659. # Symbols that must always be exported.
  17660. include_expsyms=$lt_include_expsyms_CXX
  17661. # Commands necessary for linking programs (against libraries) with templates.
  17662. prelink_cmds=$lt_prelink_cmds_CXX
  17663. # Commands necessary for finishing linking programs.
  17664. postlink_cmds=$lt_postlink_cmds_CXX
  17665. # Specify filename containing input files.
  17666. file_list_spec=$lt_file_list_spec_CXX
  17667. # How to hardcode a shared library path into an executable.
  17668. hardcode_action=$hardcode_action_CXX
  17669. # The directories searched by this compiler when creating a shared library.
  17670. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17671. # Dependencies to place before and after the objects being linked to
  17672. # create a shared library.
  17673. predep_objects=$lt_predep_objects_CXX
  17674. postdep_objects=$lt_postdep_objects_CXX
  17675. predeps=$lt_predeps_CXX
  17676. postdeps=$lt_postdeps_CXX
  17677. # The library search path used internally by the compiler when linking
  17678. # a shared library.
  17679. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17680. # ### END LIBTOOL TAG CONFIG: CXX
  17681. _LT_EOF
  17682. cat <<_LT_EOF >> "$ofile"
  17683. # ### BEGIN LIBTOOL TAG CONFIG: RC
  17684. # The linker used to build libraries.
  17685. LD=$lt_LD_RC
  17686. # How to create reloadable object files.
  17687. reload_flag=$lt_reload_flag_RC
  17688. reload_cmds=$lt_reload_cmds_RC
  17689. # Commands used to build an old-style archive.
  17690. old_archive_cmds=$lt_old_archive_cmds_RC
  17691. # A language specific compiler.
  17692. CC=$lt_compiler_RC
  17693. # Is the compiler the GNU compiler?
  17694. with_gcc=$GCC_RC
  17695. # Compiler flag to turn off builtin functions.
  17696. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17697. # Additional compiler flags for building library objects.
  17698. pic_flag=$lt_lt_prog_compiler_pic_RC
  17699. # How to pass a linker flag through the compiler.
  17700. wl=$lt_lt_prog_compiler_wl_RC
  17701. # Compiler flag to prevent dynamic linking.
  17702. link_static_flag=$lt_lt_prog_compiler_static_RC
  17703. # Does compiler simultaneously support -c and -o options?
  17704. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17705. # Whether or not to add -lc for building shared libraries.
  17706. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17707. # Whether or not to disallow shared libs when runtime libs are static.
  17708. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17709. # Compiler flag to allow reflexive dlopens.
  17710. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17711. # Compiler flag to generate shared objects directly from archives.
  17712. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17713. # Whether the compiler copes with passing no objects directly.
  17714. compiler_needs_object=$lt_compiler_needs_object_RC
  17715. # Create an old-style archive from a shared archive.
  17716. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17717. # Create a temporary old-style archive to link instead of a shared archive.
  17718. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17719. # Commands used to build a shared archive.
  17720. archive_cmds=$lt_archive_cmds_RC
  17721. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17722. # Commands used to build a loadable module if different from building
  17723. # a shared archive.
  17724. module_cmds=$lt_module_cmds_RC
  17725. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17726. # Whether we are building with GNU ld or not.
  17727. with_gnu_ld=$lt_with_gnu_ld_RC
  17728. # Flag that allows shared libraries with undefined symbols to be built.
  17729. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17730. # Flag that enforces no undefined symbols.
  17731. no_undefined_flag=$lt_no_undefined_flag_RC
  17732. # Flag to hardcode \$libdir into a binary during linking.
  17733. # This must work even if \$libdir does not exist
  17734. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17735. # Whether we need a single "-rpath" flag with a separated argument.
  17736. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17737. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17738. # DIR into the resulting binary.
  17739. hardcode_direct=$hardcode_direct_RC
  17740. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17741. # DIR into the resulting binary and the resulting library dependency is
  17742. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17743. # library is relocated.
  17744. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  17745. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17746. # into the resulting binary.
  17747. hardcode_minus_L=$hardcode_minus_L_RC
  17748. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17749. # into the resulting binary.
  17750. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17751. # Set to "yes" if building a shared library automatically hardcodes DIR
  17752. # into the library and all subsequent libraries and executables linked
  17753. # against it.
  17754. hardcode_automatic=$hardcode_automatic_RC
  17755. # Set to yes if linker adds runtime paths of dependent libraries
  17756. # to runtime path list.
  17757. inherit_rpath=$inherit_rpath_RC
  17758. # Whether libtool must link a program against all its dependency libraries.
  17759. link_all_deplibs=$link_all_deplibs_RC
  17760. # Set to "yes" if exported symbols are required.
  17761. always_export_symbols=$always_export_symbols_RC
  17762. # The commands to list exported symbols.
  17763. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17764. # Symbols that should not be listed in the preloaded symbols.
  17765. exclude_expsyms=$lt_exclude_expsyms_RC
  17766. # Symbols that must always be exported.
  17767. include_expsyms=$lt_include_expsyms_RC
  17768. # Commands necessary for linking programs (against libraries) with templates.
  17769. prelink_cmds=$lt_prelink_cmds_RC
  17770. # Commands necessary for finishing linking programs.
  17771. postlink_cmds=$lt_postlink_cmds_RC
  17772. # Specify filename containing input files.
  17773. file_list_spec=$lt_file_list_spec_RC
  17774. # How to hardcode a shared library path into an executable.
  17775. hardcode_action=$hardcode_action_RC
  17776. # The directories searched by this compiler when creating a shared library.
  17777. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  17778. # Dependencies to place before and after the objects being linked to
  17779. # create a shared library.
  17780. predep_objects=$lt_predep_objects_RC
  17781. postdep_objects=$lt_postdep_objects_RC
  17782. predeps=$lt_predeps_RC
  17783. postdeps=$lt_postdeps_RC
  17784. # The library search path used internally by the compiler when linking
  17785. # a shared library.
  17786. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17787. # ### END LIBTOOL TAG CONFIG: RC
  17788. _LT_EOF
  17789. ;;
  17790. esac
  17791. done # for ac_tag
  17792. as_fn_exit 0
  17793. _ACEOF
  17794. ac_clean_files=$ac_clean_files_save
  17795. test $ac_write_fail = 0 ||
  17796. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17797. # configure is writing to config.log, and then calls config.status.
  17798. # config.status does its own redirection, appending to config.log.
  17799. # Unfortunately, on DOS this fails, as config.log is still kept open
  17800. # by configure, so config.status won't be able to write to it; its
  17801. # output is simply discarded. So we exec the FD to /dev/null,
  17802. # effectively closing config.log, so it can be properly (re)opened and
  17803. # appended to by config.status. When coming back to configure, we
  17804. # need to make the FD available again.
  17805. if test "$no_create" != yes; then
  17806. ac_cs_success=:
  17807. ac_config_status_args=
  17808. test "$silent" = yes &&
  17809. ac_config_status_args="$ac_config_status_args --quiet"
  17810. exec 5>/dev/null
  17811. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17812. exec 5>>config.log
  17813. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17814. # would make configure fail if this is the last instruction.
  17815. $ac_cs_success || as_fn_exit 1
  17816. fi
  17817. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17819. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17820. fi
  17821. #====================================================================================
  17822. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  17823. -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
  17824. Configuration summary :
  17825. Version : ..................... ${VERSION}
  17826. Host CPU : .................... ${host_cpu}
  17827. Host Vendor : ................. ${host_vendor}
  17828. Host OS : ..................... ${host_os}
  17829. " >&5
  17830. $as_echo "
  17831. -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
  17832. Configuration summary :
  17833. Version : ..................... ${VERSION}
  17834. Host CPU : .................... ${host_cpu}
  17835. Host Vendor : ................. ${host_vendor}
  17836. Host OS : ..................... ${host_os}
  17837. " >&6; }
  17838. if test x$ac_cv_c_compiler_gnu = xyes ; then
  17839. echo -e " Tools :\n"
  17840. echo " Compiler is GCC : ............. ${ac_cv_c_compiler_gnu}"
  17841. echo " GCC major version : ........... ${GCC_MAJOR_VERSION}"
  17842. fi
  17843. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  17844. Extra tools required for testing and examples :
  17845. Have FFTW : ................... ${ac_cv_fftw3}" >&5
  17846. $as_echo "
  17847. Extra tools required for testing and examples :
  17848. Have FFTW : ................... ${ac_cv_fftw3}" >&6; }
  17849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have libsndfile : ............. ${ac_cv_sndfile}" >&5
  17850. $as_echo " Have libsndfile : ............. ${ac_cv_sndfile}" >&6; }
  17851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have ALSA : ................... ${ac_cv_header_alsa_asoundlib_h}
  17852. " >&5
  17853. $as_echo " Have ALSA : ................... ${ac_cv_header_alsa_asoundlib_h}
  17854. " >&6; }
  17855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Installation directories :
  17856. Library directory : ........... ${prefix}/lib
  17857. Program directory : ........... ${prefix}/bin
  17858. Pkgconfig directory : ......... ${prefix}/lib/pkgconfig
  17859. " >&5
  17860. $as_echo " Installation directories :
  17861. Library directory : ........... ${prefix}/lib
  17862. Program directory : ........... ${prefix}/bin
  17863. Pkgconfig directory : ......... ${prefix}/lib/pkgconfig
  17864. " >&6; }
  17865. if test x$prefix != "x/usr" ; then
  17866. echo "Compiling some other packages against ${PACKAGE} may require "
  17867. echo -e "the addition of \"${prefix}/lib/pkgconfig\" to the "
  17868. echo -e "PKG_CONFIG_PATH environment variable.\n"
  17869. fi