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.

17999 lines
542 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for gmm 5.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='gmm'
  539. PACKAGE_TARNAME='gmm'
  540. PACKAGE_VERSION='5.0'
  541. PACKAGE_STRING='gmm 5.0'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. # Factoring default headers for most tests.
  545. ac_includes_default="\
  546. #include <stdio.h>
  547. #ifdef HAVE_SYS_TYPES_H
  548. # include <sys/types.h>
  549. #endif
  550. #ifdef HAVE_SYS_STAT_H
  551. # include <sys/stat.h>
  552. #endif
  553. #ifdef STDC_HEADERS
  554. # include <stdlib.h>
  555. # include <stddef.h>
  556. #else
  557. # ifdef HAVE_STDLIB_H
  558. # include <stdlib.h>
  559. # endif
  560. #endif
  561. #ifdef HAVE_STRING_H
  562. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  563. # include <memory.h>
  564. # endif
  565. # include <string.h>
  566. #endif
  567. #ifdef HAVE_STRINGS_H
  568. # include <strings.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_UNISTD_H
  577. # include <unistd.h>
  578. #endif"
  579. ac_subst_vars='am__EXEEXT_FALSE
  580. am__EXEEXT_TRUE
  581. LTLIBOBJS
  582. LIBOBJS
  583. LIBTOOL_VERSION_INFO
  584. CONFIGURE_ARGS
  585. BUILDDATE
  586. BUILDER
  587. LIBTOOL_DEPS
  588. CPP
  589. OTOOL64
  590. OTOOL
  591. LIPO
  592. NMEDIT
  593. DSYMUTIL
  594. MANIFEST_TOOL
  595. RANLIB
  596. ac_ct_AR
  597. AR
  598. DLLTOOL
  599. OBJDUMP
  600. LN_S
  601. NM
  602. ac_ct_DUMPBIN
  603. DUMPBIN
  604. LD
  605. FGREP
  606. EGREP
  607. GREP
  608. SED
  609. am__fastdepCC_FALSE
  610. am__fastdepCC_TRUE
  611. CCDEPMODE
  612. ac_ct_CC
  613. CFLAGS
  614. CC
  615. LIBTOOL
  616. SUPLDFLAGS
  617. host_os
  618. host_vendor
  619. host_cpu
  620. host
  621. build_os
  622. build_vendor
  623. build_cpu
  624. build
  625. CXXCPP
  626. am__fastdepCXX_FALSE
  627. am__fastdepCXX_TRUE
  628. CXXDEPMODE
  629. am__nodep
  630. AMDEPBACKSLASH
  631. AMDEP_FALSE
  632. AMDEP_TRUE
  633. am__quote
  634. am__include
  635. DEPDIR
  636. OBJEXT
  637. EXEEXT
  638. ac_ct_CXX
  639. CPPFLAGS
  640. LDFLAGS
  641. CXXFLAGS
  642. CXX
  643. AM_BACKSLASH
  644. AM_DEFAULT_VERBOSITY
  645. AM_DEFAULT_V
  646. AM_V
  647. am__untar
  648. am__tar
  649. AMTAR
  650. am__leading_dot
  651. SET_MAKE
  652. AWK
  653. mkdir_p
  654. MKDIR_P
  655. INSTALL_STRIP_PROGRAM
  656. STRIP
  657. install_sh
  658. MAKEINFO
  659. AUTOHEADER
  660. AUTOMAKE
  661. AUTOCONF
  662. ACLOCAL
  663. VERSION
  664. PACKAGE
  665. CYGPATH_W
  666. am__isrc
  667. INSTALL_DATA
  668. INSTALL_SCRIPT
  669. INSTALL_PROGRAM
  670. target_alias
  671. host_alias
  672. build_alias
  673. LIBS
  674. ECHO_T
  675. ECHO_N
  676. ECHO_C
  677. DEFS
  678. mandir
  679. localedir
  680. libdir
  681. psdir
  682. pdfdir
  683. dvidir
  684. htmldir
  685. infodir
  686. docdir
  687. oldincludedir
  688. includedir
  689. localstatedir
  690. sharedstatedir
  691. sysconfdir
  692. datadir
  693. datarootdir
  694. libexecdir
  695. sbindir
  696. bindir
  697. program_transform_name
  698. prefix
  699. exec_prefix
  700. PACKAGE_URL
  701. PACKAGE_BUGREPORT
  702. PACKAGE_STRING
  703. PACKAGE_VERSION
  704. PACKAGE_TARNAME
  705. PACKAGE_NAME
  706. PATH_SEPARATOR
  707. SHELL'
  708. ac_subst_files=''
  709. ac_user_opts='
  710. enable_option_checking
  711. enable_silent_rules
  712. enable_dependency_tracking
  713. enable_static
  714. enable_shared
  715. with_pic
  716. enable_fast_install
  717. with_gnu_ld
  718. with_sysroot
  719. enable_libtool_lock
  720. '
  721. ac_precious_vars='build_alias
  722. host_alias
  723. target_alias
  724. CXX
  725. CXXFLAGS
  726. LDFLAGS
  727. LIBS
  728. CPPFLAGS
  729. CCC
  730. CXXCPP
  731. CC
  732. CFLAGS
  733. CPP'
  734. # Initialize some variables set by options.
  735. ac_init_help=
  736. ac_init_version=false
  737. ac_unrecognized_opts=
  738. ac_unrecognized_sep=
  739. # The variables have the same names as the options, with
  740. # dashes changed to underlines.
  741. cache_file=/dev/null
  742. exec_prefix=NONE
  743. no_create=
  744. no_recursion=
  745. prefix=NONE
  746. program_prefix=NONE
  747. program_suffix=NONE
  748. program_transform_name=s,x,x,
  749. silent=
  750. site=
  751. srcdir=
  752. verbose=
  753. x_includes=NONE
  754. x_libraries=NONE
  755. # Installation directory options.
  756. # These are left unexpanded so users can "make install exec_prefix=/foo"
  757. # and all the variables that are supposed to be based on exec_prefix
  758. # by default will actually change.
  759. # Use braces instead of parens because sh, perl, etc. also accept them.
  760. # (The list follows the same order as the GNU Coding Standards.)
  761. bindir='${exec_prefix}/bin'
  762. sbindir='${exec_prefix}/sbin'
  763. libexecdir='${exec_prefix}/libexec'
  764. datarootdir='${prefix}/share'
  765. datadir='${datarootdir}'
  766. sysconfdir='${prefix}/etc'
  767. sharedstatedir='${prefix}/com'
  768. localstatedir='${prefix}/var'
  769. includedir='${prefix}/include'
  770. oldincludedir='/usr/include'
  771. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  772. infodir='${datarootdir}/info'
  773. htmldir='${docdir}'
  774. dvidir='${docdir}'
  775. pdfdir='${docdir}'
  776. psdir='${docdir}'
  777. libdir='${exec_prefix}/lib'
  778. localedir='${datarootdir}/locale'
  779. mandir='${datarootdir}/man'
  780. ac_prev=
  781. ac_dashdash=
  782. for ac_option
  783. do
  784. # If the previous option needs an argument, assign it.
  785. if test -n "$ac_prev"; then
  786. eval $ac_prev=\$ac_option
  787. ac_prev=
  788. continue
  789. fi
  790. case $ac_option in
  791. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  792. *=) ac_optarg= ;;
  793. *) ac_optarg=yes ;;
  794. esac
  795. # Accept the important Cygnus configure options, so we can diagnose typos.
  796. case $ac_dashdash$ac_option in
  797. --)
  798. ac_dashdash=yes ;;
  799. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  800. ac_prev=bindir ;;
  801. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  802. bindir=$ac_optarg ;;
  803. -build | --build | --buil | --bui | --bu)
  804. ac_prev=build_alias ;;
  805. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  806. build_alias=$ac_optarg ;;
  807. -cache-file | --cache-file | --cache-fil | --cache-fi \
  808. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  809. ac_prev=cache_file ;;
  810. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  811. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  812. cache_file=$ac_optarg ;;
  813. --config-cache | -C)
  814. cache_file=config.cache ;;
  815. -datadir | --datadir | --datadi | --datad)
  816. ac_prev=datadir ;;
  817. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  818. datadir=$ac_optarg ;;
  819. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  820. | --dataroo | --dataro | --datar)
  821. ac_prev=datarootdir ;;
  822. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  823. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  824. datarootdir=$ac_optarg ;;
  825. -disable-* | --disable-*)
  826. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  827. # Reject names that are not valid shell variable names.
  828. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  829. as_fn_error $? "invalid feature name: $ac_useropt"
  830. ac_useropt_orig=$ac_useropt
  831. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  832. case $ac_user_opts in
  833. *"
  834. "enable_$ac_useropt"
  835. "*) ;;
  836. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  837. ac_unrecognized_sep=', ';;
  838. esac
  839. eval enable_$ac_useropt=no ;;
  840. -docdir | --docdir | --docdi | --doc | --do)
  841. ac_prev=docdir ;;
  842. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  843. docdir=$ac_optarg ;;
  844. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  845. ac_prev=dvidir ;;
  846. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  847. dvidir=$ac_optarg ;;
  848. -enable-* | --enable-*)
  849. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  850. # Reject names that are not valid shell variable names.
  851. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  852. as_fn_error $? "invalid feature name: $ac_useropt"
  853. ac_useropt_orig=$ac_useropt
  854. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  855. case $ac_user_opts in
  856. *"
  857. "enable_$ac_useropt"
  858. "*) ;;
  859. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  860. ac_unrecognized_sep=', ';;
  861. esac
  862. eval enable_$ac_useropt=\$ac_optarg ;;
  863. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  864. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  865. | --exec | --exe | --ex)
  866. ac_prev=exec_prefix ;;
  867. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  868. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  869. | --exec=* | --exe=* | --ex=*)
  870. exec_prefix=$ac_optarg ;;
  871. -gas | --gas | --ga | --g)
  872. # Obsolete; use --with-gas.
  873. with_gas=yes ;;
  874. -help | --help | --hel | --he | -h)
  875. ac_init_help=long ;;
  876. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  877. ac_init_help=recursive ;;
  878. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  879. ac_init_help=short ;;
  880. -host | --host | --hos | --ho)
  881. ac_prev=host_alias ;;
  882. -host=* | --host=* | --hos=* | --ho=*)
  883. host_alias=$ac_optarg ;;
  884. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  885. ac_prev=htmldir ;;
  886. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  887. | --ht=*)
  888. htmldir=$ac_optarg ;;
  889. -includedir | --includedir | --includedi | --included | --include \
  890. | --includ | --inclu | --incl | --inc)
  891. ac_prev=includedir ;;
  892. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  893. | --includ=* | --inclu=* | --incl=* | --inc=*)
  894. includedir=$ac_optarg ;;
  895. -infodir | --infodir | --infodi | --infod | --info | --inf)
  896. ac_prev=infodir ;;
  897. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  898. infodir=$ac_optarg ;;
  899. -libdir | --libdir | --libdi | --libd)
  900. ac_prev=libdir ;;
  901. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  902. libdir=$ac_optarg ;;
  903. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  904. | --libexe | --libex | --libe)
  905. ac_prev=libexecdir ;;
  906. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  907. | --libexe=* | --libex=* | --libe=*)
  908. libexecdir=$ac_optarg ;;
  909. -localedir | --localedir | --localedi | --localed | --locale)
  910. ac_prev=localedir ;;
  911. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  912. localedir=$ac_optarg ;;
  913. -localstatedir | --localstatedir | --localstatedi | --localstated \
  914. | --localstate | --localstat | --localsta | --localst | --locals)
  915. ac_prev=localstatedir ;;
  916. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  917. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  918. localstatedir=$ac_optarg ;;
  919. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  920. ac_prev=mandir ;;
  921. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  922. mandir=$ac_optarg ;;
  923. -nfp | --nfp | --nf)
  924. # Obsolete; use --without-fp.
  925. with_fp=no ;;
  926. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  927. | --no-cr | --no-c | -n)
  928. no_create=yes ;;
  929. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  930. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  931. no_recursion=yes ;;
  932. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  933. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  934. | --oldin | --oldi | --old | --ol | --o)
  935. ac_prev=oldincludedir ;;
  936. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  937. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  938. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  939. oldincludedir=$ac_optarg ;;
  940. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  941. ac_prev=prefix ;;
  942. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  943. prefix=$ac_optarg ;;
  944. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  945. | --program-pre | --program-pr | --program-p)
  946. ac_prev=program_prefix ;;
  947. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  948. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  949. program_prefix=$ac_optarg ;;
  950. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  951. | --program-suf | --program-su | --program-s)
  952. ac_prev=program_suffix ;;
  953. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  954. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  955. program_suffix=$ac_optarg ;;
  956. -program-transform-name | --program-transform-name \
  957. | --program-transform-nam | --program-transform-na \
  958. | --program-transform-n | --program-transform- \
  959. | --program-transform | --program-transfor \
  960. | --program-transfo | --program-transf \
  961. | --program-trans | --program-tran \
  962. | --progr-tra | --program-tr | --program-t)
  963. ac_prev=program_transform_name ;;
  964. -program-transform-name=* | --program-transform-name=* \
  965. | --program-transform-nam=* | --program-transform-na=* \
  966. | --program-transform-n=* | --program-transform-=* \
  967. | --program-transform=* | --program-transfor=* \
  968. | --program-transfo=* | --program-transf=* \
  969. | --program-trans=* | --program-tran=* \
  970. | --progr-tra=* | --program-tr=* | --program-t=*)
  971. program_transform_name=$ac_optarg ;;
  972. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  973. ac_prev=pdfdir ;;
  974. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  975. pdfdir=$ac_optarg ;;
  976. -psdir | --psdir | --psdi | --psd | --ps)
  977. ac_prev=psdir ;;
  978. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  979. psdir=$ac_optarg ;;
  980. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  981. | -silent | --silent | --silen | --sile | --sil)
  982. silent=yes ;;
  983. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  984. ac_prev=sbindir ;;
  985. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  986. | --sbi=* | --sb=*)
  987. sbindir=$ac_optarg ;;
  988. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  989. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  990. | --sharedst | --shareds | --shared | --share | --shar \
  991. | --sha | --sh)
  992. ac_prev=sharedstatedir ;;
  993. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  994. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  995. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  996. | --sha=* | --sh=*)
  997. sharedstatedir=$ac_optarg ;;
  998. -site | --site | --sit)
  999. ac_prev=site ;;
  1000. -site=* | --site=* | --sit=*)
  1001. site=$ac_optarg ;;
  1002. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1003. ac_prev=srcdir ;;
  1004. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1005. srcdir=$ac_optarg ;;
  1006. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1007. | --syscon | --sysco | --sysc | --sys | --sy)
  1008. ac_prev=sysconfdir ;;
  1009. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1010. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1011. sysconfdir=$ac_optarg ;;
  1012. -target | --target | --targe | --targ | --tar | --ta | --t)
  1013. ac_prev=target_alias ;;
  1014. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1015. target_alias=$ac_optarg ;;
  1016. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1017. verbose=yes ;;
  1018. -version | --version | --versio | --versi | --vers | -V)
  1019. ac_init_version=: ;;
  1020. -with-* | --with-*)
  1021. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1022. # Reject names that are not valid shell variable names.
  1023. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1024. as_fn_error $? "invalid package name: $ac_useropt"
  1025. ac_useropt_orig=$ac_useropt
  1026. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1027. case $ac_user_opts in
  1028. *"
  1029. "with_$ac_useropt"
  1030. "*) ;;
  1031. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1032. ac_unrecognized_sep=', ';;
  1033. esac
  1034. eval with_$ac_useropt=\$ac_optarg ;;
  1035. -without-* | --without-*)
  1036. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1037. # Reject names that are not valid shell variable names.
  1038. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1039. as_fn_error $? "invalid package name: $ac_useropt"
  1040. ac_useropt_orig=$ac_useropt
  1041. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1042. case $ac_user_opts in
  1043. *"
  1044. "with_$ac_useropt"
  1045. "*) ;;
  1046. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1047. ac_unrecognized_sep=', ';;
  1048. esac
  1049. eval with_$ac_useropt=no ;;
  1050. --x)
  1051. # Obsolete; use --with-x.
  1052. with_x=yes ;;
  1053. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1054. | --x-incl | --x-inc | --x-in | --x-i)
  1055. ac_prev=x_includes ;;
  1056. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1057. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1058. x_includes=$ac_optarg ;;
  1059. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1060. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1061. ac_prev=x_libraries ;;
  1062. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1063. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1064. x_libraries=$ac_optarg ;;
  1065. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1066. Try \`$0 --help' for more information"
  1067. ;;
  1068. *=*)
  1069. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1070. # Reject names that are not valid shell variable names.
  1071. case $ac_envvar in #(
  1072. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1073. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1074. esac
  1075. eval $ac_envvar=\$ac_optarg
  1076. export $ac_envvar ;;
  1077. *)
  1078. # FIXME: should be removed in autoconf 3.0.
  1079. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1080. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1081. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1082. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1083. ;;
  1084. esac
  1085. done
  1086. if test -n "$ac_prev"; then
  1087. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1088. as_fn_error $? "missing argument to $ac_option"
  1089. fi
  1090. if test -n "$ac_unrecognized_opts"; then
  1091. case $enable_option_checking in
  1092. no) ;;
  1093. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1094. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1095. esac
  1096. fi
  1097. # Check all directory arguments for consistency.
  1098. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1099. datadir sysconfdir sharedstatedir localstatedir includedir \
  1100. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1101. libdir localedir mandir
  1102. do
  1103. eval ac_val=\$$ac_var
  1104. # Remove trailing slashes.
  1105. case $ac_val in
  1106. */ )
  1107. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1108. eval $ac_var=\$ac_val;;
  1109. esac
  1110. # Be sure to have absolute directory names.
  1111. case $ac_val in
  1112. [\\/$]* | ?:[\\/]* ) continue;;
  1113. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1114. esac
  1115. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1116. done
  1117. # There might be people who depend on the old broken behavior: `$host'
  1118. # used to hold the argument of --host etc.
  1119. # FIXME: To remove some day.
  1120. build=$build_alias
  1121. host=$host_alias
  1122. target=$target_alias
  1123. # FIXME: To remove some day.
  1124. if test "x$host_alias" != x; then
  1125. if test "x$build_alias" = x; then
  1126. cross_compiling=maybe
  1127. elif test "x$build_alias" != "x$host_alias"; then
  1128. cross_compiling=yes
  1129. fi
  1130. fi
  1131. ac_tool_prefix=
  1132. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1133. test "$silent" = yes && exec 6>/dev/null
  1134. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1135. ac_ls_di=`ls -di .` &&
  1136. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1137. as_fn_error $? "working directory cannot be determined"
  1138. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1139. as_fn_error $? "pwd does not report name of working directory"
  1140. # Find the source files, if location was not specified.
  1141. if test -z "$srcdir"; then
  1142. ac_srcdir_defaulted=yes
  1143. # Try the directory containing this script, then the parent directory.
  1144. ac_confdir=`$as_dirname -- "$as_myself" ||
  1145. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1146. X"$as_myself" : 'X\(//\)[^/]' \| \
  1147. X"$as_myself" : 'X\(//\)$' \| \
  1148. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1149. $as_echo X"$as_myself" |
  1150. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1151. s//\1/
  1152. q
  1153. }
  1154. /^X\(\/\/\)[^/].*/{
  1155. s//\1/
  1156. q
  1157. }
  1158. /^X\(\/\/\)$/{
  1159. s//\1/
  1160. q
  1161. }
  1162. /^X\(\/\).*/{
  1163. s//\1/
  1164. q
  1165. }
  1166. s/.*/./; q'`
  1167. srcdir=$ac_confdir
  1168. if test ! -r "$srcdir/$ac_unique_file"; then
  1169. srcdir=..
  1170. fi
  1171. else
  1172. ac_srcdir_defaulted=no
  1173. fi
  1174. if test ! -r "$srcdir/$ac_unique_file"; then
  1175. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1176. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1177. fi
  1178. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1179. ac_abs_confdir=`(
  1180. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1181. pwd)`
  1182. # When building in place, set srcdir=.
  1183. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1184. srcdir=.
  1185. fi
  1186. # Remove unnecessary trailing slashes from srcdir.
  1187. # Double slashes in file names in object file debugging info
  1188. # mess up M-x gdb in Emacs.
  1189. case $srcdir in
  1190. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1191. esac
  1192. for ac_var in $ac_precious_vars; do
  1193. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1194. eval ac_env_${ac_var}_value=\$${ac_var}
  1195. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1196. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1197. done
  1198. #
  1199. # Report the --help message.
  1200. #
  1201. if test "$ac_init_help" = "long"; then
  1202. # Omit some internal or obsolete options to make the list less imposing.
  1203. # This message is too long to be a string in the A/UX 3.1 sh.
  1204. cat <<_ACEOF
  1205. \`configure' configures gmm 5.0 to adapt to many kinds of systems.
  1206. Usage: $0 [OPTION]... [VAR=VALUE]...
  1207. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1208. VAR=VALUE. See below for descriptions of some of the useful variables.
  1209. Defaults for the options are specified in brackets.
  1210. Configuration:
  1211. -h, --help display this help and exit
  1212. --help=short display options specific to this package
  1213. --help=recursive display the short help of all the included packages
  1214. -V, --version display version information and exit
  1215. -q, --quiet, --silent do not print \`checking ...' messages
  1216. --cache-file=FILE cache test results in FILE [disabled]
  1217. -C, --config-cache alias for \`--cache-file=config.cache'
  1218. -n, --no-create do not create output files
  1219. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1220. Installation directories:
  1221. --prefix=PREFIX install architecture-independent files in PREFIX
  1222. [$ac_default_prefix]
  1223. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1224. [PREFIX]
  1225. By default, \`make install' will install all the files in
  1226. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1227. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1228. for instance \`--prefix=\$HOME'.
  1229. For better control, use the options below.
  1230. Fine tuning of the installation directories:
  1231. --bindir=DIR user executables [EPREFIX/bin]
  1232. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1233. --libexecdir=DIR program executables [EPREFIX/libexec]
  1234. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1235. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1236. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1237. --libdir=DIR object code libraries [EPREFIX/lib]
  1238. --includedir=DIR C header files [PREFIX/include]
  1239. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1240. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1241. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1242. --infodir=DIR info documentation [DATAROOTDIR/info]
  1243. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1244. --mandir=DIR man documentation [DATAROOTDIR/man]
  1245. --docdir=DIR documentation root [DATAROOTDIR/doc/gmm]
  1246. --htmldir=DIR html documentation [DOCDIR]
  1247. --dvidir=DIR dvi documentation [DOCDIR]
  1248. --pdfdir=DIR pdf documentation [DOCDIR]
  1249. --psdir=DIR ps documentation [DOCDIR]
  1250. _ACEOF
  1251. cat <<\_ACEOF
  1252. Program names:
  1253. --program-prefix=PREFIX prepend PREFIX to installed program names
  1254. --program-suffix=SUFFIX append SUFFIX to installed program names
  1255. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1256. System types:
  1257. --build=BUILD configure for building on BUILD [guessed]
  1258. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1259. _ACEOF
  1260. fi
  1261. if test -n "$ac_init_help"; then
  1262. case $ac_init_help in
  1263. short | recursive ) echo "Configuration of gmm 5.0:";;
  1264. esac
  1265. cat <<\_ACEOF
  1266. Optional Features:
  1267. --disable-option-checking ignore unrecognized --enable/--with options
  1268. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1269. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1270. --enable-silent-rules less verbose build output (undo: "make V=1")
  1271. --disable-silent-rules verbose build output (undo: "make V=0")
  1272. --enable-dependency-tracking
  1273. do not reject slow dependency extractors
  1274. --disable-dependency-tracking
  1275. speeds up one-time build
  1276. --enable-static[=PKGS] build static libraries [default=yes]
  1277. --enable-shared[=PKGS] build shared libraries [default=yes]
  1278. --enable-fast-install[=PKGS]
  1279. optimize for fast installation [default=yes]
  1280. --disable-libtool-lock avoid locking (might break parallel builds)
  1281. Optional Packages:
  1282. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1283. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1284. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1285. both]
  1286. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1287. --with-sysroot=DIR Search for dependent libraries within DIR
  1288. (or the compiler's sysroot if not specified).
  1289. Some influential environment variables:
  1290. CXX C++ compiler command
  1291. CXXFLAGS C++ compiler flags
  1292. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1293. nonstandard directory <lib dir>
  1294. LIBS libraries to pass to the linker, e.g. -l<library>
  1295. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1296. you have headers in a nonstandard directory <include dir>
  1297. CXXCPP C++ preprocessor
  1298. CC C compiler command
  1299. CFLAGS C compiler flags
  1300. CPP C preprocessor
  1301. Use these variables to override the choices made by `configure' or to help
  1302. it to find libraries and programs with nonstandard names/locations.
  1303. Report bugs to the package provider.
  1304. _ACEOF
  1305. ac_status=$?
  1306. fi
  1307. if test "$ac_init_help" = "recursive"; then
  1308. # If there are subdirs, report their specific --help.
  1309. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1310. test -d "$ac_dir" ||
  1311. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1312. continue
  1313. ac_builddir=.
  1314. case "$ac_dir" in
  1315. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1316. *)
  1317. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1318. # A ".." for each directory in $ac_dir_suffix.
  1319. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1320. case $ac_top_builddir_sub in
  1321. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1322. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1323. esac ;;
  1324. esac
  1325. ac_abs_top_builddir=$ac_pwd
  1326. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1327. # for backward compatibility:
  1328. ac_top_builddir=$ac_top_build_prefix
  1329. case $srcdir in
  1330. .) # We are building in place.
  1331. ac_srcdir=.
  1332. ac_top_srcdir=$ac_top_builddir_sub
  1333. ac_abs_top_srcdir=$ac_pwd ;;
  1334. [\\/]* | ?:[\\/]* ) # Absolute name.
  1335. ac_srcdir=$srcdir$ac_dir_suffix;
  1336. ac_top_srcdir=$srcdir
  1337. ac_abs_top_srcdir=$srcdir ;;
  1338. *) # Relative name.
  1339. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1340. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1341. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1342. esac
  1343. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1344. cd "$ac_dir" || { ac_status=$?; continue; }
  1345. # Check for guested configure.
  1346. if test -f "$ac_srcdir/configure.gnu"; then
  1347. echo &&
  1348. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1349. elif test -f "$ac_srcdir/configure"; then
  1350. echo &&
  1351. $SHELL "$ac_srcdir/configure" --help=recursive
  1352. else
  1353. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1354. fi || ac_status=$?
  1355. cd "$ac_pwd" || { ac_status=$?; break; }
  1356. done
  1357. fi
  1358. test -n "$ac_init_help" && exit $ac_status
  1359. if $ac_init_version; then
  1360. cat <<\_ACEOF
  1361. gmm configure 5.0
  1362. generated by GNU Autoconf 2.69
  1363. Copyright (C) 2012 Free Software Foundation, Inc.
  1364. This configure script is free software; the Free Software Foundation
  1365. gives unlimited permission to copy, distribute and modify it.
  1366. _ACEOF
  1367. exit
  1368. fi
  1369. ## ------------------------ ##
  1370. ## Autoconf initialization. ##
  1371. ## ------------------------ ##
  1372. # ac_fn_cxx_try_compile LINENO
  1373. # ----------------------------
  1374. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1375. ac_fn_cxx_try_compile ()
  1376. {
  1377. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1378. rm -f conftest.$ac_objext
  1379. if { { ac_try="$ac_compile"
  1380. case "(($ac_try" in
  1381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1382. *) ac_try_echo=$ac_try;;
  1383. esac
  1384. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1385. $as_echo "$ac_try_echo"; } >&5
  1386. (eval "$ac_compile") 2>conftest.err
  1387. ac_status=$?
  1388. if test -s conftest.err; then
  1389. grep -v '^ *+' conftest.err >conftest.er1
  1390. cat conftest.er1 >&5
  1391. mv -f conftest.er1 conftest.err
  1392. fi
  1393. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1394. test $ac_status = 0; } && {
  1395. test -z "$ac_cxx_werror_flag" ||
  1396. test ! -s conftest.err
  1397. } && test -s conftest.$ac_objext; then :
  1398. ac_retval=0
  1399. else
  1400. $as_echo "$as_me: failed program was:" >&5
  1401. sed 's/^/| /' conftest.$ac_ext >&5
  1402. ac_retval=1
  1403. fi
  1404. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1405. as_fn_set_status $ac_retval
  1406. } # ac_fn_cxx_try_compile
  1407. # ac_fn_cxx_try_cpp LINENO
  1408. # ------------------------
  1409. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1410. ac_fn_cxx_try_cpp ()
  1411. {
  1412. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1413. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1414. case "(($ac_try" in
  1415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1416. *) ac_try_echo=$ac_try;;
  1417. esac
  1418. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1419. $as_echo "$ac_try_echo"; } >&5
  1420. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1421. ac_status=$?
  1422. if test -s conftest.err; then
  1423. grep -v '^ *+' conftest.err >conftest.er1
  1424. cat conftest.er1 >&5
  1425. mv -f conftest.er1 conftest.err
  1426. fi
  1427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1428. test $ac_status = 0; } > conftest.i && {
  1429. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1430. test ! -s conftest.err
  1431. }; then :
  1432. ac_retval=0
  1433. else
  1434. $as_echo "$as_me: failed program was:" >&5
  1435. sed 's/^/| /' conftest.$ac_ext >&5
  1436. ac_retval=1
  1437. fi
  1438. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1439. as_fn_set_status $ac_retval
  1440. } # ac_fn_cxx_try_cpp
  1441. # ac_fn_c_try_compile LINENO
  1442. # --------------------------
  1443. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1444. ac_fn_c_try_compile ()
  1445. {
  1446. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1447. rm -f conftest.$ac_objext
  1448. if { { ac_try="$ac_compile"
  1449. case "(($ac_try" in
  1450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1451. *) ac_try_echo=$ac_try;;
  1452. esac
  1453. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1454. $as_echo "$ac_try_echo"; } >&5
  1455. (eval "$ac_compile") 2>conftest.err
  1456. ac_status=$?
  1457. if test -s conftest.err; then
  1458. grep -v '^ *+' conftest.err >conftest.er1
  1459. cat conftest.er1 >&5
  1460. mv -f conftest.er1 conftest.err
  1461. fi
  1462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1463. test $ac_status = 0; } && {
  1464. test -z "$ac_c_werror_flag" ||
  1465. test ! -s conftest.err
  1466. } && test -s conftest.$ac_objext; then :
  1467. ac_retval=0
  1468. else
  1469. $as_echo "$as_me: failed program was:" >&5
  1470. sed 's/^/| /' conftest.$ac_ext >&5
  1471. ac_retval=1
  1472. fi
  1473. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1474. as_fn_set_status $ac_retval
  1475. } # ac_fn_c_try_compile
  1476. # ac_fn_c_try_link LINENO
  1477. # -----------------------
  1478. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1479. ac_fn_c_try_link ()
  1480. {
  1481. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1482. rm -f conftest.$ac_objext conftest$ac_exeext
  1483. if { { ac_try="$ac_link"
  1484. case "(($ac_try" in
  1485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1486. *) ac_try_echo=$ac_try;;
  1487. esac
  1488. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1489. $as_echo "$ac_try_echo"; } >&5
  1490. (eval "$ac_link") 2>conftest.err
  1491. ac_status=$?
  1492. if test -s conftest.err; then
  1493. grep -v '^ *+' conftest.err >conftest.er1
  1494. cat conftest.er1 >&5
  1495. mv -f conftest.er1 conftest.err
  1496. fi
  1497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1498. test $ac_status = 0; } && {
  1499. test -z "$ac_c_werror_flag" ||
  1500. test ! -s conftest.err
  1501. } && test -s conftest$ac_exeext && {
  1502. test "$cross_compiling" = yes ||
  1503. test -x conftest$ac_exeext
  1504. }; then :
  1505. ac_retval=0
  1506. else
  1507. $as_echo "$as_me: failed program was:" >&5
  1508. sed 's/^/| /' conftest.$ac_ext >&5
  1509. ac_retval=1
  1510. fi
  1511. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1512. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1513. # interfere with the next link command; also delete a directory that is
  1514. # left behind by Apple's compiler. We do this before executing the actions.
  1515. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1516. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1517. as_fn_set_status $ac_retval
  1518. } # ac_fn_c_try_link
  1519. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1520. # -------------------------------------------------------
  1521. # Tests whether HEADER exists and can be compiled using the include files in
  1522. # INCLUDES, setting the cache variable VAR accordingly.
  1523. ac_fn_c_check_header_compile ()
  1524. {
  1525. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1527. $as_echo_n "checking for $2... " >&6; }
  1528. if eval \${$3+:} false; then :
  1529. $as_echo_n "(cached) " >&6
  1530. else
  1531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1532. /* end confdefs.h. */
  1533. $4
  1534. #include <$2>
  1535. _ACEOF
  1536. if ac_fn_c_try_compile "$LINENO"; then :
  1537. eval "$3=yes"
  1538. else
  1539. eval "$3=no"
  1540. fi
  1541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1542. fi
  1543. eval ac_res=\$$3
  1544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1545. $as_echo "$ac_res" >&6; }
  1546. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1547. } # ac_fn_c_check_header_compile
  1548. # ac_fn_c_try_cpp LINENO
  1549. # ----------------------
  1550. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1551. ac_fn_c_try_cpp ()
  1552. {
  1553. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1554. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1555. case "(($ac_try" in
  1556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1557. *) ac_try_echo=$ac_try;;
  1558. esac
  1559. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1560. $as_echo "$ac_try_echo"; } >&5
  1561. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1562. ac_status=$?
  1563. if test -s conftest.err; then
  1564. grep -v '^ *+' conftest.err >conftest.er1
  1565. cat conftest.er1 >&5
  1566. mv -f conftest.er1 conftest.err
  1567. fi
  1568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1569. test $ac_status = 0; } > conftest.i && {
  1570. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1571. test ! -s conftest.err
  1572. }; then :
  1573. ac_retval=0
  1574. else
  1575. $as_echo "$as_me: failed program was:" >&5
  1576. sed 's/^/| /' conftest.$ac_ext >&5
  1577. ac_retval=1
  1578. fi
  1579. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1580. as_fn_set_status $ac_retval
  1581. } # ac_fn_c_try_cpp
  1582. # ac_fn_c_try_run LINENO
  1583. # ----------------------
  1584. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1585. # that executables *can* be run.
  1586. ac_fn_c_try_run ()
  1587. {
  1588. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1589. if { { ac_try="$ac_link"
  1590. case "(($ac_try" in
  1591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1592. *) ac_try_echo=$ac_try;;
  1593. esac
  1594. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1595. $as_echo "$ac_try_echo"; } >&5
  1596. (eval "$ac_link") 2>&5
  1597. ac_status=$?
  1598. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1599. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1600. { { case "(($ac_try" in
  1601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1602. *) ac_try_echo=$ac_try;;
  1603. esac
  1604. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1605. $as_echo "$ac_try_echo"; } >&5
  1606. (eval "$ac_try") 2>&5
  1607. ac_status=$?
  1608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1609. test $ac_status = 0; }; }; then :
  1610. ac_retval=0
  1611. else
  1612. $as_echo "$as_me: program exited with status $ac_status" >&5
  1613. $as_echo "$as_me: failed program was:" >&5
  1614. sed 's/^/| /' conftest.$ac_ext >&5
  1615. ac_retval=$ac_status
  1616. fi
  1617. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1618. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1619. as_fn_set_status $ac_retval
  1620. } # ac_fn_c_try_run
  1621. # ac_fn_c_check_func LINENO FUNC VAR
  1622. # ----------------------------------
  1623. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1624. ac_fn_c_check_func ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1628. $as_echo_n "checking for $2... " >&6; }
  1629. if eval \${$3+:} false; then :
  1630. $as_echo_n "(cached) " >&6
  1631. else
  1632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1633. /* end confdefs.h. */
  1634. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1635. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1636. #define $2 innocuous_$2
  1637. /* System header to define __stub macros and hopefully few prototypes,
  1638. which can conflict with char $2 (); below.
  1639. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1640. <limits.h> exists even on freestanding compilers. */
  1641. #ifdef __STDC__
  1642. # include <limits.h>
  1643. #else
  1644. # include <assert.h>
  1645. #endif
  1646. #undef $2
  1647. /* Override any GCC internal prototype to avoid an error.
  1648. Use char because int might match the return type of a GCC
  1649. builtin and then its argument prototype would still apply. */
  1650. #ifdef __cplusplus
  1651. extern "C"
  1652. #endif
  1653. char $2 ();
  1654. /* The GNU C library defines this for functions which it implements
  1655. to always fail with ENOSYS. Some functions are actually named
  1656. something starting with __ and the normal name is an alias. */
  1657. #if defined __stub_$2 || defined __stub___$2
  1658. choke me
  1659. #endif
  1660. int
  1661. main ()
  1662. {
  1663. return $2 ();
  1664. ;
  1665. return 0;
  1666. }
  1667. _ACEOF
  1668. if ac_fn_c_try_link "$LINENO"; then :
  1669. eval "$3=yes"
  1670. else
  1671. eval "$3=no"
  1672. fi
  1673. rm -f core conftest.err conftest.$ac_objext \
  1674. conftest$ac_exeext conftest.$ac_ext
  1675. fi
  1676. eval ac_res=\$$3
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1678. $as_echo "$ac_res" >&6; }
  1679. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1680. } # ac_fn_c_check_func
  1681. # ac_fn_cxx_try_link LINENO
  1682. # -------------------------
  1683. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1684. ac_fn_cxx_try_link ()
  1685. {
  1686. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1687. rm -f conftest.$ac_objext conftest$ac_exeext
  1688. if { { ac_try="$ac_link"
  1689. case "(($ac_try" in
  1690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1691. *) ac_try_echo=$ac_try;;
  1692. esac
  1693. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1694. $as_echo "$ac_try_echo"; } >&5
  1695. (eval "$ac_link") 2>conftest.err
  1696. ac_status=$?
  1697. if test -s conftest.err; then
  1698. grep -v '^ *+' conftest.err >conftest.er1
  1699. cat conftest.er1 >&5
  1700. mv -f conftest.er1 conftest.err
  1701. fi
  1702. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1703. test $ac_status = 0; } && {
  1704. test -z "$ac_cxx_werror_flag" ||
  1705. test ! -s conftest.err
  1706. } && test -s conftest$ac_exeext && {
  1707. test "$cross_compiling" = yes ||
  1708. test -x conftest$ac_exeext
  1709. }; then :
  1710. ac_retval=0
  1711. else
  1712. $as_echo "$as_me: failed program was:" >&5
  1713. sed 's/^/| /' conftest.$ac_ext >&5
  1714. ac_retval=1
  1715. fi
  1716. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1717. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1718. # interfere with the next link command; also delete a directory that is
  1719. # left behind by Apple's compiler. We do this before executing the actions.
  1720. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1721. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1722. as_fn_set_status $ac_retval
  1723. } # ac_fn_cxx_try_link
  1724. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1725. # ---------------------------------------------------------
  1726. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1727. # the include files in INCLUDES and setting the cache variable VAR
  1728. # accordingly.
  1729. ac_fn_cxx_check_header_mongrel ()
  1730. {
  1731. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1732. if eval \${$3+:} false; then :
  1733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1734. $as_echo_n "checking for $2... " >&6; }
  1735. if eval \${$3+:} false; then :
  1736. $as_echo_n "(cached) " >&6
  1737. fi
  1738. eval ac_res=\$$3
  1739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1740. $as_echo "$ac_res" >&6; }
  1741. else
  1742. # Is the header compilable?
  1743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1744. $as_echo_n "checking $2 usability... " >&6; }
  1745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1746. /* end confdefs.h. */
  1747. $4
  1748. #include <$2>
  1749. _ACEOF
  1750. if ac_fn_cxx_try_compile "$LINENO"; then :
  1751. ac_header_compiler=yes
  1752. else
  1753. ac_header_compiler=no
  1754. fi
  1755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1757. $as_echo "$ac_header_compiler" >&6; }
  1758. # Is the header present?
  1759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1760. $as_echo_n "checking $2 presence... " >&6; }
  1761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1762. /* end confdefs.h. */
  1763. #include <$2>
  1764. _ACEOF
  1765. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1766. ac_header_preproc=yes
  1767. else
  1768. ac_header_preproc=no
  1769. fi
  1770. rm -f conftest.err conftest.i conftest.$ac_ext
  1771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1772. $as_echo "$ac_header_preproc" >&6; }
  1773. # So? What about this header?
  1774. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1775. yes:no: )
  1776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1777. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1779. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1780. ;;
  1781. no:yes:* )
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1783. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1785. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1787. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1789. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1791. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1792. ;;
  1793. esac
  1794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1795. $as_echo_n "checking for $2... " >&6; }
  1796. if eval \${$3+:} false; then :
  1797. $as_echo_n "(cached) " >&6
  1798. else
  1799. eval "$3=\$ac_header_compiler"
  1800. fi
  1801. eval ac_res=\$$3
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1803. $as_echo "$ac_res" >&6; }
  1804. fi
  1805. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1806. } # ac_fn_cxx_check_header_mongrel
  1807. cat >config.log <<_ACEOF
  1808. This file contains any messages produced by compilers while
  1809. running configure, to aid debugging if configure makes a mistake.
  1810. It was created by gmm $as_me 5.0, which was
  1811. generated by GNU Autoconf 2.69. Invocation command line was
  1812. $ $0 $@
  1813. _ACEOF
  1814. exec 5>>config.log
  1815. {
  1816. cat <<_ASUNAME
  1817. ## --------- ##
  1818. ## Platform. ##
  1819. ## --------- ##
  1820. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1821. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1822. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1823. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1824. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1825. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1826. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1827. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1828. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1829. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1830. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1831. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1832. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1833. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1834. _ASUNAME
  1835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1836. for as_dir in $PATH
  1837. do
  1838. IFS=$as_save_IFS
  1839. test -z "$as_dir" && as_dir=.
  1840. $as_echo "PATH: $as_dir"
  1841. done
  1842. IFS=$as_save_IFS
  1843. } >&5
  1844. cat >&5 <<_ACEOF
  1845. ## ----------- ##
  1846. ## Core tests. ##
  1847. ## ----------- ##
  1848. _ACEOF
  1849. # Keep a trace of the command line.
  1850. # Strip out --no-create and --no-recursion so they do not pile up.
  1851. # Strip out --silent because we don't want to record it for future runs.
  1852. # Also quote any args containing shell meta-characters.
  1853. # Make two passes to allow for proper duplicate-argument suppression.
  1854. ac_configure_args=
  1855. ac_configure_args0=
  1856. ac_configure_args1=
  1857. ac_must_keep_next=false
  1858. for ac_pass in 1 2
  1859. do
  1860. for ac_arg
  1861. do
  1862. case $ac_arg in
  1863. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1864. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1865. | -silent | --silent | --silen | --sile | --sil)
  1866. continue ;;
  1867. *\'*)
  1868. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1869. esac
  1870. case $ac_pass in
  1871. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1872. 2)
  1873. as_fn_append ac_configure_args1 " '$ac_arg'"
  1874. if test $ac_must_keep_next = true; then
  1875. ac_must_keep_next=false # Got value, back to normal.
  1876. else
  1877. case $ac_arg in
  1878. *=* | --config-cache | -C | -disable-* | --disable-* \
  1879. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1880. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1881. | -with-* | --with-* | -without-* | --without-* | --x)
  1882. case "$ac_configure_args0 " in
  1883. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1884. esac
  1885. ;;
  1886. -* ) ac_must_keep_next=true ;;
  1887. esac
  1888. fi
  1889. as_fn_append ac_configure_args " '$ac_arg'"
  1890. ;;
  1891. esac
  1892. done
  1893. done
  1894. { ac_configure_args0=; unset ac_configure_args0;}
  1895. { ac_configure_args1=; unset ac_configure_args1;}
  1896. # When interrupted or exit'd, cleanup temporary files, and complete
  1897. # config.log. We remove comments because anyway the quotes in there
  1898. # would cause problems or look ugly.
  1899. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1900. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1901. trap 'exit_status=$?
  1902. # Save into config.log some information that might help in debugging.
  1903. {
  1904. echo
  1905. $as_echo "## ---------------- ##
  1906. ## Cache variables. ##
  1907. ## ---------------- ##"
  1908. echo
  1909. # The following way of writing the cache mishandles newlines in values,
  1910. (
  1911. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1912. eval ac_val=\$$ac_var
  1913. case $ac_val in #(
  1914. *${as_nl}*)
  1915. case $ac_var in #(
  1916. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1917. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1918. esac
  1919. case $ac_var in #(
  1920. _ | IFS | as_nl) ;; #(
  1921. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1922. *) { eval $ac_var=; unset $ac_var;} ;;
  1923. esac ;;
  1924. esac
  1925. done
  1926. (set) 2>&1 |
  1927. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1928. *${as_nl}ac_space=\ *)
  1929. sed -n \
  1930. "s/'\''/'\''\\\\'\'''\''/g;
  1931. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1932. ;; #(
  1933. *)
  1934. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1935. ;;
  1936. esac |
  1937. sort
  1938. )
  1939. echo
  1940. $as_echo "## ----------------- ##
  1941. ## Output variables. ##
  1942. ## ----------------- ##"
  1943. echo
  1944. for ac_var in $ac_subst_vars
  1945. do
  1946. eval ac_val=\$$ac_var
  1947. case $ac_val in
  1948. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1949. esac
  1950. $as_echo "$ac_var='\''$ac_val'\''"
  1951. done | sort
  1952. echo
  1953. if test -n "$ac_subst_files"; then
  1954. $as_echo "## ------------------- ##
  1955. ## File substitutions. ##
  1956. ## ------------------- ##"
  1957. echo
  1958. for ac_var in $ac_subst_files
  1959. do
  1960. eval ac_val=\$$ac_var
  1961. case $ac_val in
  1962. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1963. esac
  1964. $as_echo "$ac_var='\''$ac_val'\''"
  1965. done | sort
  1966. echo
  1967. fi
  1968. if test -s confdefs.h; then
  1969. $as_echo "## ----------- ##
  1970. ## confdefs.h. ##
  1971. ## ----------- ##"
  1972. echo
  1973. cat confdefs.h
  1974. echo
  1975. fi
  1976. test "$ac_signal" != 0 &&
  1977. $as_echo "$as_me: caught signal $ac_signal"
  1978. $as_echo "$as_me: exit $exit_status"
  1979. } >&5
  1980. rm -f core *.core core.conftest.* &&
  1981. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1982. exit $exit_status
  1983. ' 0
  1984. for ac_signal in 1 2 13 15; do
  1985. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1986. done
  1987. ac_signal=0
  1988. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1989. rm -f -r conftest* confdefs.h
  1990. $as_echo "/* confdefs.h */" > confdefs.h
  1991. # Predefined preprocessor variables.
  1992. cat >>confdefs.h <<_ACEOF
  1993. #define PACKAGE_NAME "$PACKAGE_NAME"
  1994. _ACEOF
  1995. cat >>confdefs.h <<_ACEOF
  1996. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1997. _ACEOF
  1998. cat >>confdefs.h <<_ACEOF
  1999. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2000. _ACEOF
  2001. cat >>confdefs.h <<_ACEOF
  2002. #define PACKAGE_STRING "$PACKAGE_STRING"
  2003. _ACEOF
  2004. cat >>confdefs.h <<_ACEOF
  2005. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2006. _ACEOF
  2007. cat >>confdefs.h <<_ACEOF
  2008. #define PACKAGE_URL "$PACKAGE_URL"
  2009. _ACEOF
  2010. # Let the site file select an alternate cache file if it wants to.
  2011. # Prefer an explicitly selected file to automatically selected ones.
  2012. ac_site_file1=NONE
  2013. ac_site_file2=NONE
  2014. if test -n "$CONFIG_SITE"; then
  2015. # We do not want a PATH search for config.site.
  2016. case $CONFIG_SITE in #((
  2017. -*) ac_site_file1=./$CONFIG_SITE;;
  2018. */*) ac_site_file1=$CONFIG_SITE;;
  2019. *) ac_site_file1=./$CONFIG_SITE;;
  2020. esac
  2021. elif test "x$prefix" != xNONE; then
  2022. ac_site_file1=$prefix/share/config.site
  2023. ac_site_file2=$prefix/etc/config.site
  2024. else
  2025. ac_site_file1=$ac_default_prefix/share/config.site
  2026. ac_site_file2=$ac_default_prefix/etc/config.site
  2027. fi
  2028. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2029. do
  2030. test "x$ac_site_file" = xNONE && continue
  2031. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2033. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2034. sed 's/^/| /' "$ac_site_file" >&5
  2035. . "$ac_site_file" \
  2036. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2037. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2038. as_fn_error $? "failed to load site script $ac_site_file
  2039. See \`config.log' for more details" "$LINENO" 5; }
  2040. fi
  2041. done
  2042. # Check that the precious variables saved in the cache have kept the same
  2043. # value.
  2044. ac_cache_corrupted=false
  2045. for ac_var in $ac_precious_vars; do
  2046. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2047. eval ac_new_set=\$ac_env_${ac_var}_set
  2048. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2049. eval ac_new_val=\$ac_env_${ac_var}_value
  2050. case $ac_old_set,$ac_new_set in
  2051. set,)
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2053. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2054. ac_cache_corrupted=: ;;
  2055. ,set)
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2057. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2058. ac_cache_corrupted=: ;;
  2059. ,);;
  2060. *)
  2061. if test "x$ac_old_val" != "x$ac_new_val"; then
  2062. # differences in whitespace do not lead to failure.
  2063. ac_old_val_w=`echo x $ac_old_val`
  2064. ac_new_val_w=`echo x $ac_new_val`
  2065. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2067. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2068. ac_cache_corrupted=:
  2069. else
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2071. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2072. eval $ac_var=\$ac_old_val
  2073. fi
  2074. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2075. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2076. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2077. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2078. fi;;
  2079. esac
  2080. # Pass precious variables to config.status.
  2081. if test "$ac_new_set" = set; then
  2082. case $ac_new_val in
  2083. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2084. *) ac_arg=$ac_var=$ac_new_val ;;
  2085. esac
  2086. case " $ac_configure_args " in
  2087. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2088. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2089. esac
  2090. fi
  2091. done
  2092. if $ac_cache_corrupted; then
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2094. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2096. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2097. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2098. fi
  2099. ## -------------------- ##
  2100. ## Main body of script. ##
  2101. ## -------------------- ##
  2102. ac_ext=c
  2103. ac_cpp='$CPP $CPPFLAGS'
  2104. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2105. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2106. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2107. ac_config_headers="$ac_config_headers config.h"
  2108. test "$program_prefix" != NONE &&
  2109. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2110. # Use a double $ so make ignores it.
  2111. test "$program_suffix" != NONE &&
  2112. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2113. # Double any \ or $.
  2114. # By default was `s,x,x', remove it if useless.
  2115. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2116. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2117. PACKAGE="gmm"
  2118. MAJOR_VERSION="5"
  2119. MINOR_VERSION="0"
  2120. VERSION=$MAJOR_VERSION.$MINOR_VERSION
  2121. echo "configuring $PACKAGE $VERSION..."
  2122. am__api_version='1.14'
  2123. ac_aux_dir=
  2124. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2125. if test -f "$ac_dir/install-sh"; then
  2126. ac_aux_dir=$ac_dir
  2127. ac_install_sh="$ac_aux_dir/install-sh -c"
  2128. break
  2129. elif test -f "$ac_dir/install.sh"; then
  2130. ac_aux_dir=$ac_dir
  2131. ac_install_sh="$ac_aux_dir/install.sh -c"
  2132. break
  2133. elif test -f "$ac_dir/shtool"; then
  2134. ac_aux_dir=$ac_dir
  2135. ac_install_sh="$ac_aux_dir/shtool install -c"
  2136. break
  2137. fi
  2138. done
  2139. if test -z "$ac_aux_dir"; then
  2140. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2141. fi
  2142. # These three variables are undocumented and unsupported,
  2143. # and are intended to be withdrawn in a future Autoconf release.
  2144. # They can cause serious problems if a builder's source tree is in a directory
  2145. # whose full name contains unusual characters.
  2146. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2147. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2148. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2149. # Find a good install program. We prefer a C program (faster),
  2150. # so one script is as good as another. But avoid the broken or
  2151. # incompatible versions:
  2152. # SysV /etc/install, /usr/sbin/install
  2153. # SunOS /usr/etc/install
  2154. # IRIX /sbin/install
  2155. # AIX /bin/install
  2156. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2157. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2158. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2159. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2160. # OS/2's system install, which has a completely different semantic
  2161. # ./install, which can be erroneously created by make from ./install.sh.
  2162. # Reject install programs that cannot install multiple files.
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2164. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2165. if test -z "$INSTALL"; then
  2166. if ${ac_cv_path_install+:} false; then :
  2167. $as_echo_n "(cached) " >&6
  2168. else
  2169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2170. for as_dir in $PATH
  2171. do
  2172. IFS=$as_save_IFS
  2173. test -z "$as_dir" && as_dir=.
  2174. # Account for people who put trailing slashes in PATH elements.
  2175. case $as_dir/ in #((
  2176. ./ | .// | /[cC]/* | \
  2177. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2178. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2179. /usr/ucb/* ) ;;
  2180. *)
  2181. # OSF1 and SCO ODT 3.0 have their own names for install.
  2182. # Don't use installbsd from OSF since it installs stuff as root
  2183. # by default.
  2184. for ac_prog in ginstall scoinst install; do
  2185. for ac_exec_ext in '' $ac_executable_extensions; do
  2186. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2187. if test $ac_prog = install &&
  2188. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2189. # AIX install. It has an incompatible calling convention.
  2190. :
  2191. elif test $ac_prog = install &&
  2192. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2193. # program-specific install script used by HP pwplus--don't use.
  2194. :
  2195. else
  2196. rm -rf conftest.one conftest.two conftest.dir
  2197. echo one > conftest.one
  2198. echo two > conftest.two
  2199. mkdir conftest.dir
  2200. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2201. test -s conftest.one && test -s conftest.two &&
  2202. test -s conftest.dir/conftest.one &&
  2203. test -s conftest.dir/conftest.two
  2204. then
  2205. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2206. break 3
  2207. fi
  2208. fi
  2209. fi
  2210. done
  2211. done
  2212. ;;
  2213. esac
  2214. done
  2215. IFS=$as_save_IFS
  2216. rm -rf conftest.one conftest.two conftest.dir
  2217. fi
  2218. if test "${ac_cv_path_install+set}" = set; then
  2219. INSTALL=$ac_cv_path_install
  2220. else
  2221. # As a last resort, use the slow shell script. Don't cache a
  2222. # value for INSTALL within a source directory, because that will
  2223. # break other packages using the cache if that directory is
  2224. # removed, or if the value is a relative name.
  2225. INSTALL=$ac_install_sh
  2226. fi
  2227. fi
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2229. $as_echo "$INSTALL" >&6; }
  2230. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2231. # It thinks the first close brace ends the variable substitution.
  2232. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2233. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2234. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2236. $as_echo_n "checking whether build environment is sane... " >&6; }
  2237. # Reject unsafe characters in $srcdir or the absolute working directory
  2238. # name. Accept space and tab only in the latter.
  2239. am_lf='
  2240. '
  2241. case `pwd` in
  2242. *[\\\"\#\$\&\'\`$am_lf]*)
  2243. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2244. esac
  2245. case $srcdir in
  2246. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2247. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2248. esac
  2249. # Do 'set' in a subshell so we don't clobber the current shell's
  2250. # arguments. Must try -L first in case configure is actually a
  2251. # symlink; some systems play weird games with the mod time of symlinks
  2252. # (eg FreeBSD returns the mod time of the symlink's containing
  2253. # directory).
  2254. if (
  2255. am_has_slept=no
  2256. for am_try in 1 2; do
  2257. echo "timestamp, slept: $am_has_slept" > conftest.file
  2258. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2259. if test "$*" = "X"; then
  2260. # -L didn't work.
  2261. set X `ls -t "$srcdir/configure" conftest.file`
  2262. fi
  2263. if test "$*" != "X $srcdir/configure conftest.file" \
  2264. && test "$*" != "X conftest.file $srcdir/configure"; then
  2265. # If neither matched, then we have a broken ls. This can happen
  2266. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2267. # broken ls alias from the environment. This has actually
  2268. # happened. Such a system could not be considered "sane".
  2269. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2270. alias in your environment" "$LINENO" 5
  2271. fi
  2272. if test "$2" = conftest.file || test $am_try -eq 2; then
  2273. break
  2274. fi
  2275. # Just in case.
  2276. sleep 1
  2277. am_has_slept=yes
  2278. done
  2279. test "$2" = conftest.file
  2280. )
  2281. then
  2282. # Ok.
  2283. :
  2284. else
  2285. as_fn_error $? "newly created file is older than distributed files!
  2286. Check your system clock" "$LINENO" 5
  2287. fi
  2288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2289. $as_echo "yes" >&6; }
  2290. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2291. # generated files are strictly newer.
  2292. am_sleep_pid=
  2293. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2294. ( sleep 1 ) &
  2295. am_sleep_pid=$!
  2296. fi
  2297. rm -f conftest.file
  2298. # expand $ac_aux_dir to an absolute path
  2299. am_aux_dir=`cd $ac_aux_dir && pwd`
  2300. if test x"${MISSING+set}" != xset; then
  2301. case $am_aux_dir in
  2302. *\ * | *\ *)
  2303. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2304. *)
  2305. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2306. esac
  2307. fi
  2308. # Use eval to expand $SHELL
  2309. if eval "$MISSING --is-lightweight"; then
  2310. am_missing_run="$MISSING "
  2311. else
  2312. am_missing_run=
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2314. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2315. fi
  2316. if test x"${install_sh}" != xset; then
  2317. case $am_aux_dir in
  2318. *\ * | *\ *)
  2319. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2320. *)
  2321. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2322. esac
  2323. fi
  2324. # Installed binaries are usually stripped using 'strip' when the user
  2325. # run "make install-strip". However 'strip' might not be the right
  2326. # tool to use in cross-compilation environments, therefore Automake
  2327. # will honor the 'STRIP' environment variable to overrule this program.
  2328. if test "$cross_compiling" != no; then
  2329. if test -n "$ac_tool_prefix"; then
  2330. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2331. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2333. $as_echo_n "checking for $ac_word... " >&6; }
  2334. if ${ac_cv_prog_STRIP+:} false; then :
  2335. $as_echo_n "(cached) " >&6
  2336. else
  2337. if test -n "$STRIP"; then
  2338. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2339. else
  2340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2341. for as_dir in $PATH
  2342. do
  2343. IFS=$as_save_IFS
  2344. test -z "$as_dir" && as_dir=.
  2345. for ac_exec_ext in '' $ac_executable_extensions; do
  2346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2347. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2349. break 2
  2350. fi
  2351. done
  2352. done
  2353. IFS=$as_save_IFS
  2354. fi
  2355. fi
  2356. STRIP=$ac_cv_prog_STRIP
  2357. if test -n "$STRIP"; then
  2358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2359. $as_echo "$STRIP" >&6; }
  2360. else
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2362. $as_echo "no" >&6; }
  2363. fi
  2364. fi
  2365. if test -z "$ac_cv_prog_STRIP"; then
  2366. ac_ct_STRIP=$STRIP
  2367. # Extract the first word of "strip", so it can be a program name with args.
  2368. set dummy strip; ac_word=$2
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2370. $as_echo_n "checking for $ac_word... " >&6; }
  2371. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2372. $as_echo_n "(cached) " >&6
  2373. else
  2374. if test -n "$ac_ct_STRIP"; then
  2375. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2376. else
  2377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2378. for as_dir in $PATH
  2379. do
  2380. IFS=$as_save_IFS
  2381. test -z "$as_dir" && as_dir=.
  2382. for ac_exec_ext in '' $ac_executable_extensions; do
  2383. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2384. ac_cv_prog_ac_ct_STRIP="strip"
  2385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2386. break 2
  2387. fi
  2388. done
  2389. done
  2390. IFS=$as_save_IFS
  2391. fi
  2392. fi
  2393. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2394. if test -n "$ac_ct_STRIP"; then
  2395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2396. $as_echo "$ac_ct_STRIP" >&6; }
  2397. else
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2399. $as_echo "no" >&6; }
  2400. fi
  2401. if test "x$ac_ct_STRIP" = x; then
  2402. STRIP=":"
  2403. else
  2404. case $cross_compiling:$ac_tool_warned in
  2405. yes:)
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2407. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2408. ac_tool_warned=yes ;;
  2409. esac
  2410. STRIP=$ac_ct_STRIP
  2411. fi
  2412. else
  2413. STRIP="$ac_cv_prog_STRIP"
  2414. fi
  2415. fi
  2416. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2418. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2419. if test -z "$MKDIR_P"; then
  2420. if ${ac_cv_path_mkdir+:} false; then :
  2421. $as_echo_n "(cached) " >&6
  2422. else
  2423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2424. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2425. do
  2426. IFS=$as_save_IFS
  2427. test -z "$as_dir" && as_dir=.
  2428. for ac_prog in mkdir gmkdir; do
  2429. for ac_exec_ext in '' $ac_executable_extensions; do
  2430. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2431. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2432. 'mkdir (GNU coreutils) '* | \
  2433. 'mkdir (coreutils) '* | \
  2434. 'mkdir (fileutils) '4.1*)
  2435. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2436. break 3;;
  2437. esac
  2438. done
  2439. done
  2440. done
  2441. IFS=$as_save_IFS
  2442. fi
  2443. test -d ./--version && rmdir ./--version
  2444. if test "${ac_cv_path_mkdir+set}" = set; then
  2445. MKDIR_P="$ac_cv_path_mkdir -p"
  2446. else
  2447. # As a last resort, use the slow shell script. Don't cache a
  2448. # value for MKDIR_P within a source directory, because that will
  2449. # break other packages using the cache if that directory is
  2450. # removed, or if the value is a relative name.
  2451. MKDIR_P="$ac_install_sh -d"
  2452. fi
  2453. fi
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2455. $as_echo "$MKDIR_P" >&6; }
  2456. for ac_prog in gawk mawk nawk awk
  2457. do
  2458. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2459. set dummy $ac_prog; ac_word=$2
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2461. $as_echo_n "checking for $ac_word... " >&6; }
  2462. if ${ac_cv_prog_AWK+:} false; then :
  2463. $as_echo_n "(cached) " >&6
  2464. else
  2465. if test -n "$AWK"; then
  2466. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2467. else
  2468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2469. for as_dir in $PATH
  2470. do
  2471. IFS=$as_save_IFS
  2472. test -z "$as_dir" && as_dir=.
  2473. for ac_exec_ext in '' $ac_executable_extensions; do
  2474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2475. ac_cv_prog_AWK="$ac_prog"
  2476. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2477. break 2
  2478. fi
  2479. done
  2480. done
  2481. IFS=$as_save_IFS
  2482. fi
  2483. fi
  2484. AWK=$ac_cv_prog_AWK
  2485. if test -n "$AWK"; then
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2487. $as_echo "$AWK" >&6; }
  2488. else
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2490. $as_echo "no" >&6; }
  2491. fi
  2492. test -n "$AWK" && break
  2493. done
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2495. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2496. set x ${MAKE-make}
  2497. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2498. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2499. $as_echo_n "(cached) " >&6
  2500. else
  2501. cat >conftest.make <<\_ACEOF
  2502. SHELL = /bin/sh
  2503. all:
  2504. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2505. _ACEOF
  2506. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2507. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2508. *@@@%%%=?*=@@@%%%*)
  2509. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2510. *)
  2511. eval ac_cv_prog_make_${ac_make}_set=no;;
  2512. esac
  2513. rm -f conftest.make
  2514. fi
  2515. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2517. $as_echo "yes" >&6; }
  2518. SET_MAKE=
  2519. else
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2521. $as_echo "no" >&6; }
  2522. SET_MAKE="MAKE=${MAKE-make}"
  2523. fi
  2524. rm -rf .tst 2>/dev/null
  2525. mkdir .tst 2>/dev/null
  2526. if test -d .tst; then
  2527. am__leading_dot=.
  2528. else
  2529. am__leading_dot=_
  2530. fi
  2531. rmdir .tst 2>/dev/null
  2532. # Check whether --enable-silent-rules was given.
  2533. if test "${enable_silent_rules+set}" = set; then :
  2534. enableval=$enable_silent_rules;
  2535. fi
  2536. case $enable_silent_rules in # (((
  2537. yes) AM_DEFAULT_VERBOSITY=0;;
  2538. no) AM_DEFAULT_VERBOSITY=1;;
  2539. *) AM_DEFAULT_VERBOSITY=1;;
  2540. esac
  2541. am_make=${MAKE-make}
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2543. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2544. if ${am_cv_make_support_nested_variables+:} false; then :
  2545. $as_echo_n "(cached) " >&6
  2546. else
  2547. if $as_echo 'TRUE=$(BAR$(V))
  2548. BAR0=false
  2549. BAR1=true
  2550. V=1
  2551. am__doit:
  2552. @$(TRUE)
  2553. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2554. am_cv_make_support_nested_variables=yes
  2555. else
  2556. am_cv_make_support_nested_variables=no
  2557. fi
  2558. fi
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2560. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2561. if test $am_cv_make_support_nested_variables = yes; then
  2562. AM_V='$(V)'
  2563. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2564. else
  2565. AM_V=$AM_DEFAULT_VERBOSITY
  2566. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2567. fi
  2568. AM_BACKSLASH='\'
  2569. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2570. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2571. # is not polluted with repeated "-I."
  2572. am__isrc=' -I$(srcdir)'
  2573. # test to see if srcdir already configured
  2574. if test -f $srcdir/config.status; then
  2575. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2576. fi
  2577. fi
  2578. # test whether we have cygpath
  2579. if test -z "$CYGPATH_W"; then
  2580. if (cygpath --version) >/dev/null 2>/dev/null; then
  2581. CYGPATH_W='cygpath -w'
  2582. else
  2583. CYGPATH_W=echo
  2584. fi
  2585. fi
  2586. # Define the identity of the package.
  2587. PACKAGE='gmm'
  2588. VERSION='5.0'
  2589. cat >>confdefs.h <<_ACEOF
  2590. #define PACKAGE "$PACKAGE"
  2591. _ACEOF
  2592. cat >>confdefs.h <<_ACEOF
  2593. #define VERSION "$VERSION"
  2594. _ACEOF
  2595. # Some tools Automake needs.
  2596. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2597. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2598. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2599. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2600. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2601. # For better backward compatibility. To be removed once Automake 1.9.x
  2602. # dies out for good. For more background, see:
  2603. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2604. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2605. mkdir_p='$(MKDIR_P)'
  2606. # We need awk for the "check" target. The system "awk" is bad on
  2607. # some platforms.
  2608. # Always define AMTAR for backward compatibility. Yes, it's still used
  2609. # in the wild :-( We should find a proper way to deprecate it ...
  2610. AMTAR='$${TAR-tar}'
  2611. # We'll loop over all known methods to create a tar archive until one works.
  2612. _am_tools='gnutar pax cpio none'
  2613. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2614. # POSIX will say in a future version that running "rm -f" with no argument
  2615. # is OK; and we want to be able to make that assumption in our Makefile
  2616. # recipes. So use an aggressive probe to check that the usage we want is
  2617. # actually supported "in the wild" to an acceptable degree.
  2618. # See automake bug#10828.
  2619. # To make any issue more visible, cause the running configure to be aborted
  2620. # by default if the 'rm' program in use doesn't match our expectations; the
  2621. # user can still override this though.
  2622. if rm -f && rm -fr && rm -rf; then : OK; else
  2623. cat >&2 <<'END'
  2624. Oops!
  2625. Your 'rm' program seems unable to run without file operands specified
  2626. on the command line, even when the '-f' option is present. This is contrary
  2627. to the behaviour of most rm programs out there, and not conforming with
  2628. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2629. Please tell bug-automake@gnu.org about your system, including the value
  2630. of your $PATH and any error possibly output before this message. This
  2631. can help us improve future automake versions.
  2632. END
  2633. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2634. echo 'Configuration will proceed anyway, since you have set the' >&2
  2635. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2636. echo >&2
  2637. else
  2638. cat >&2 <<'END'
  2639. Aborting the configuration process, to ensure you take notice of the issue.
  2640. You can download and install GNU coreutils to get an 'rm' implementation
  2641. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2642. If you want to complete the configuration process using your problematic
  2643. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2644. to "yes", and re-run configure.
  2645. END
  2646. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2647. fi
  2648. fi
  2649. USER_CXXFLAGS="$CXXFLAGS"
  2650. ac_ext=cpp
  2651. ac_cpp='$CXXCPP $CPPFLAGS'
  2652. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2653. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2654. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2655. if test -z "$CXX"; then
  2656. if test -n "$CCC"; then
  2657. CXX=$CCC
  2658. else
  2659. if test -n "$ac_tool_prefix"; then
  2660. for ac_prog in cxx KCC CC cc++ xlC aCC g++ c++ icc
  2661. do
  2662. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2663. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2665. $as_echo_n "checking for $ac_word... " >&6; }
  2666. if ${ac_cv_prog_CXX+:} false; then :
  2667. $as_echo_n "(cached) " >&6
  2668. else
  2669. if test -n "$CXX"; then
  2670. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2671. else
  2672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2673. for as_dir in $PATH
  2674. do
  2675. IFS=$as_save_IFS
  2676. test -z "$as_dir" && as_dir=.
  2677. for ac_exec_ext in '' $ac_executable_extensions; do
  2678. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2679. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2681. break 2
  2682. fi
  2683. done
  2684. done
  2685. IFS=$as_save_IFS
  2686. fi
  2687. fi
  2688. CXX=$ac_cv_prog_CXX
  2689. if test -n "$CXX"; then
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2691. $as_echo "$CXX" >&6; }
  2692. else
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2694. $as_echo "no" >&6; }
  2695. fi
  2696. test -n "$CXX" && break
  2697. done
  2698. fi
  2699. if test -z "$CXX"; then
  2700. ac_ct_CXX=$CXX
  2701. for ac_prog in cxx KCC CC cc++ xlC aCC g++ c++ icc
  2702. do
  2703. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2704. set dummy $ac_prog; ac_word=$2
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2706. $as_echo_n "checking for $ac_word... " >&6; }
  2707. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2708. $as_echo_n "(cached) " >&6
  2709. else
  2710. if test -n "$ac_ct_CXX"; then
  2711. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2712. else
  2713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2714. for as_dir in $PATH
  2715. do
  2716. IFS=$as_save_IFS
  2717. test -z "$as_dir" && as_dir=.
  2718. for ac_exec_ext in '' $ac_executable_extensions; do
  2719. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2720. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2722. break 2
  2723. fi
  2724. done
  2725. done
  2726. IFS=$as_save_IFS
  2727. fi
  2728. fi
  2729. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2730. if test -n "$ac_ct_CXX"; then
  2731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2732. $as_echo "$ac_ct_CXX" >&6; }
  2733. else
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2735. $as_echo "no" >&6; }
  2736. fi
  2737. test -n "$ac_ct_CXX" && break
  2738. done
  2739. if test "x$ac_ct_CXX" = x; then
  2740. CXX="g++"
  2741. else
  2742. case $cross_compiling:$ac_tool_warned in
  2743. yes:)
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2745. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2746. ac_tool_warned=yes ;;
  2747. esac
  2748. CXX=$ac_ct_CXX
  2749. fi
  2750. fi
  2751. fi
  2752. fi
  2753. # Provide some information about the compiler.
  2754. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2755. set X $ac_compile
  2756. ac_compiler=$2
  2757. for ac_option in --version -v -V -qversion; do
  2758. { { ac_try="$ac_compiler $ac_option >&5"
  2759. case "(($ac_try" in
  2760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2761. *) ac_try_echo=$ac_try;;
  2762. esac
  2763. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2764. $as_echo "$ac_try_echo"; } >&5
  2765. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2766. ac_status=$?
  2767. if test -s conftest.err; then
  2768. sed '10a\
  2769. ... rest of stderr output deleted ...
  2770. 10q' conftest.err >conftest.er1
  2771. cat conftest.er1 >&5
  2772. fi
  2773. rm -f conftest.er1 conftest.err
  2774. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2775. test $ac_status = 0; }
  2776. done
  2777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2778. /* end confdefs.h. */
  2779. int
  2780. main ()
  2781. {
  2782. ;
  2783. return 0;
  2784. }
  2785. _ACEOF
  2786. ac_clean_files_save=$ac_clean_files
  2787. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2788. # Try to create an executable without -o first, disregard a.out.
  2789. # It will help us diagnose broken compilers, and finding out an intuition
  2790. # of exeext.
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2792. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2793. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2794. # The possible output files:
  2795. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2796. ac_rmfiles=
  2797. for ac_file in $ac_files
  2798. do
  2799. case $ac_file in
  2800. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2801. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2802. esac
  2803. done
  2804. rm -f $ac_rmfiles
  2805. if { { ac_try="$ac_link_default"
  2806. case "(($ac_try" in
  2807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2808. *) ac_try_echo=$ac_try;;
  2809. esac
  2810. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2811. $as_echo "$ac_try_echo"; } >&5
  2812. (eval "$ac_link_default") 2>&5
  2813. ac_status=$?
  2814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2815. test $ac_status = 0; }; then :
  2816. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2817. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2818. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2819. # so that the user can short-circuit this test for compilers unknown to
  2820. # Autoconf.
  2821. for ac_file in $ac_files ''
  2822. do
  2823. test -f "$ac_file" || continue
  2824. case $ac_file in
  2825. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2826. ;;
  2827. [ab].out )
  2828. # We found the default executable, but exeext='' is most
  2829. # certainly right.
  2830. break;;
  2831. *.* )
  2832. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2833. then :; else
  2834. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2835. fi
  2836. # We set ac_cv_exeext here because the later test for it is not
  2837. # safe: cross compilers may not add the suffix if given an `-o'
  2838. # argument, so we may need to know it at that point already.
  2839. # Even if this section looks crufty: it has the advantage of
  2840. # actually working.
  2841. break;;
  2842. * )
  2843. break;;
  2844. esac
  2845. done
  2846. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2847. else
  2848. ac_file=''
  2849. fi
  2850. if test -z "$ac_file"; then :
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2852. $as_echo "no" >&6; }
  2853. $as_echo "$as_me: failed program was:" >&5
  2854. sed 's/^/| /' conftest.$ac_ext >&5
  2855. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2856. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2857. as_fn_error 77 "C++ compiler cannot create executables
  2858. See \`config.log' for more details" "$LINENO" 5; }
  2859. else
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2861. $as_echo "yes" >&6; }
  2862. fi
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2864. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2866. $as_echo "$ac_file" >&6; }
  2867. ac_exeext=$ac_cv_exeext
  2868. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2869. ac_clean_files=$ac_clean_files_save
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2871. $as_echo_n "checking for suffix of executables... " >&6; }
  2872. if { { ac_try="$ac_link"
  2873. case "(($ac_try" in
  2874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2875. *) ac_try_echo=$ac_try;;
  2876. esac
  2877. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2878. $as_echo "$ac_try_echo"; } >&5
  2879. (eval "$ac_link") 2>&5
  2880. ac_status=$?
  2881. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2882. test $ac_status = 0; }; then :
  2883. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2884. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2885. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2886. # `rm'.
  2887. for ac_file in conftest.exe conftest conftest.*; do
  2888. test -f "$ac_file" || continue
  2889. case $ac_file in
  2890. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2891. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2892. break;;
  2893. * ) break;;
  2894. esac
  2895. done
  2896. else
  2897. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2898. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2899. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2900. See \`config.log' for more details" "$LINENO" 5; }
  2901. fi
  2902. rm -f conftest conftest$ac_cv_exeext
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2904. $as_echo "$ac_cv_exeext" >&6; }
  2905. rm -f conftest.$ac_ext
  2906. EXEEXT=$ac_cv_exeext
  2907. ac_exeext=$EXEEXT
  2908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2909. /* end confdefs.h. */
  2910. #include <stdio.h>
  2911. int
  2912. main ()
  2913. {
  2914. FILE *f = fopen ("conftest.out", "w");
  2915. return ferror (f) || fclose (f) != 0;
  2916. ;
  2917. return 0;
  2918. }
  2919. _ACEOF
  2920. ac_clean_files="$ac_clean_files conftest.out"
  2921. # Check that the compiler produces executables we can run. If not, either
  2922. # the compiler is broken, or we cross compile.
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2924. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2925. if test "$cross_compiling" != yes; then
  2926. { { ac_try="$ac_link"
  2927. case "(($ac_try" in
  2928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2929. *) ac_try_echo=$ac_try;;
  2930. esac
  2931. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2932. $as_echo "$ac_try_echo"; } >&5
  2933. (eval "$ac_link") 2>&5
  2934. ac_status=$?
  2935. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2936. test $ac_status = 0; }
  2937. if { ac_try='./conftest$ac_cv_exeext'
  2938. { { case "(($ac_try" in
  2939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2940. *) ac_try_echo=$ac_try;;
  2941. esac
  2942. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2943. $as_echo "$ac_try_echo"; } >&5
  2944. (eval "$ac_try") 2>&5
  2945. ac_status=$?
  2946. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2947. test $ac_status = 0; }; }; then
  2948. cross_compiling=no
  2949. else
  2950. if test "$cross_compiling" = maybe; then
  2951. cross_compiling=yes
  2952. else
  2953. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2954. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2955. as_fn_error $? "cannot run C++ compiled programs.
  2956. If you meant to cross compile, use \`--host'.
  2957. See \`config.log' for more details" "$LINENO" 5; }
  2958. fi
  2959. fi
  2960. fi
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2962. $as_echo "$cross_compiling" >&6; }
  2963. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2964. ac_clean_files=$ac_clean_files_save
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2966. $as_echo_n "checking for suffix of object files... " >&6; }
  2967. if ${ac_cv_objext+:} false; then :
  2968. $as_echo_n "(cached) " >&6
  2969. else
  2970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2971. /* end confdefs.h. */
  2972. int
  2973. main ()
  2974. {
  2975. ;
  2976. return 0;
  2977. }
  2978. _ACEOF
  2979. rm -f conftest.o conftest.obj
  2980. if { { ac_try="$ac_compile"
  2981. case "(($ac_try" in
  2982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2983. *) ac_try_echo=$ac_try;;
  2984. esac
  2985. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2986. $as_echo "$ac_try_echo"; } >&5
  2987. (eval "$ac_compile") 2>&5
  2988. ac_status=$?
  2989. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2990. test $ac_status = 0; }; then :
  2991. for ac_file in conftest.o conftest.obj conftest.*; do
  2992. test -f "$ac_file" || continue;
  2993. case $ac_file in
  2994. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2995. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2996. break;;
  2997. esac
  2998. done
  2999. else
  3000. $as_echo "$as_me: failed program was:" >&5
  3001. sed 's/^/| /' conftest.$ac_ext >&5
  3002. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3003. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3004. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3005. See \`config.log' for more details" "$LINENO" 5; }
  3006. fi
  3007. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3008. fi
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3010. $as_echo "$ac_cv_objext" >&6; }
  3011. OBJEXT=$ac_cv_objext
  3012. ac_objext=$OBJEXT
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3014. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3015. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3016. $as_echo_n "(cached) " >&6
  3017. else
  3018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3019. /* end confdefs.h. */
  3020. int
  3021. main ()
  3022. {
  3023. #ifndef __GNUC__
  3024. choke me
  3025. #endif
  3026. ;
  3027. return 0;
  3028. }
  3029. _ACEOF
  3030. if ac_fn_cxx_try_compile "$LINENO"; then :
  3031. ac_compiler_gnu=yes
  3032. else
  3033. ac_compiler_gnu=no
  3034. fi
  3035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3036. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3037. fi
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3039. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3040. if test $ac_compiler_gnu = yes; then
  3041. GXX=yes
  3042. else
  3043. GXX=
  3044. fi
  3045. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3046. ac_save_CXXFLAGS=$CXXFLAGS
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3048. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3049. if ${ac_cv_prog_cxx_g+:} false; then :
  3050. $as_echo_n "(cached) " >&6
  3051. else
  3052. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3053. ac_cxx_werror_flag=yes
  3054. ac_cv_prog_cxx_g=no
  3055. CXXFLAGS="-g"
  3056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3057. /* end confdefs.h. */
  3058. int
  3059. main ()
  3060. {
  3061. ;
  3062. return 0;
  3063. }
  3064. _ACEOF
  3065. if ac_fn_cxx_try_compile "$LINENO"; then :
  3066. ac_cv_prog_cxx_g=yes
  3067. else
  3068. CXXFLAGS=""
  3069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3070. /* end confdefs.h. */
  3071. int
  3072. main ()
  3073. {
  3074. ;
  3075. return 0;
  3076. }
  3077. _ACEOF
  3078. if ac_fn_cxx_try_compile "$LINENO"; then :
  3079. else
  3080. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3081. CXXFLAGS="-g"
  3082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3083. /* end confdefs.h. */
  3084. int
  3085. main ()
  3086. {
  3087. ;
  3088. return 0;
  3089. }
  3090. _ACEOF
  3091. if ac_fn_cxx_try_compile "$LINENO"; then :
  3092. ac_cv_prog_cxx_g=yes
  3093. fi
  3094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3095. fi
  3096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3097. fi
  3098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3099. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3100. fi
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3102. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3103. if test "$ac_test_CXXFLAGS" = set; then
  3104. CXXFLAGS=$ac_save_CXXFLAGS
  3105. elif test $ac_cv_prog_cxx_g = yes; then
  3106. if test "$GXX" = yes; then
  3107. CXXFLAGS="-g -O2"
  3108. else
  3109. CXXFLAGS="-g"
  3110. fi
  3111. else
  3112. if test "$GXX" = yes; then
  3113. CXXFLAGS="-O2"
  3114. else
  3115. CXXFLAGS=
  3116. fi
  3117. fi
  3118. ac_ext=c
  3119. ac_cpp='$CPP $CPPFLAGS'
  3120. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3121. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3122. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3123. DEPDIR="${am__leading_dot}deps"
  3124. ac_config_commands="$ac_config_commands depfiles"
  3125. am_make=${MAKE-make}
  3126. cat > confinc << 'END'
  3127. am__doit:
  3128. @echo this is the am__doit target
  3129. .PHONY: am__doit
  3130. END
  3131. # If we don't find an include directive, just comment out the code.
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3133. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3134. am__include="#"
  3135. am__quote=
  3136. _am_result=none
  3137. # First try GNU make style include.
  3138. echo "include confinc" > confmf
  3139. # Ignore all kinds of additional output from 'make'.
  3140. case `$am_make -s -f confmf 2> /dev/null` in #(
  3141. *the\ am__doit\ target*)
  3142. am__include=include
  3143. am__quote=
  3144. _am_result=GNU
  3145. ;;
  3146. esac
  3147. # Now try BSD make style include.
  3148. if test "$am__include" = "#"; then
  3149. echo '.include "confinc"' > confmf
  3150. case `$am_make -s -f confmf 2> /dev/null` in #(
  3151. *the\ am__doit\ target*)
  3152. am__include=.include
  3153. am__quote="\""
  3154. _am_result=BSD
  3155. ;;
  3156. esac
  3157. fi
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3159. $as_echo "$_am_result" >&6; }
  3160. rm -f confinc confmf
  3161. # Check whether --enable-dependency-tracking was given.
  3162. if test "${enable_dependency_tracking+set}" = set; then :
  3163. enableval=$enable_dependency_tracking;
  3164. fi
  3165. if test "x$enable_dependency_tracking" != xno; then
  3166. am_depcomp="$ac_aux_dir/depcomp"
  3167. AMDEPBACKSLASH='\'
  3168. am__nodep='_no'
  3169. fi
  3170. if test "x$enable_dependency_tracking" != xno; then
  3171. AMDEP_TRUE=
  3172. AMDEP_FALSE='#'
  3173. else
  3174. AMDEP_TRUE='#'
  3175. AMDEP_FALSE=
  3176. fi
  3177. depcc="$CXX" am_compiler_list=
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3179. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3180. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3181. $as_echo_n "(cached) " >&6
  3182. else
  3183. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3184. # We make a subdir and do the tests there. Otherwise we can end up
  3185. # making bogus files that we don't know about and never remove. For
  3186. # instance it was reported that on HP-UX the gcc test will end up
  3187. # making a dummy file named 'D' -- because '-MD' means "put the output
  3188. # in D".
  3189. rm -rf conftest.dir
  3190. mkdir conftest.dir
  3191. # Copy depcomp to subdir because otherwise we won't find it if we're
  3192. # using a relative directory.
  3193. cp "$am_depcomp" conftest.dir
  3194. cd conftest.dir
  3195. # We will build objects and dependencies in a subdirectory because
  3196. # it helps to detect inapplicable dependency modes. For instance
  3197. # both Tru64's cc and ICC support -MD to output dependencies as a
  3198. # side effect of compilation, but ICC will put the dependencies in
  3199. # the current directory while Tru64 will put them in the object
  3200. # directory.
  3201. mkdir sub
  3202. am_cv_CXX_dependencies_compiler_type=none
  3203. if test "$am_compiler_list" = ""; then
  3204. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3205. fi
  3206. am__universal=false
  3207. case " $depcc " in #(
  3208. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3209. esac
  3210. for depmode in $am_compiler_list; do
  3211. # Setup a source with many dependencies, because some compilers
  3212. # like to wrap large dependency lists on column 80 (with \), and
  3213. # we should not choose a depcomp mode which is confused by this.
  3214. #
  3215. # We need to recreate these files for each test, as the compiler may
  3216. # overwrite some of them when testing with obscure command lines.
  3217. # This happens at least with the AIX C compiler.
  3218. : > sub/conftest.c
  3219. for i in 1 2 3 4 5 6; do
  3220. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3221. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3222. # Solaris 10 /bin/sh.
  3223. echo '/* dummy */' > sub/conftst$i.h
  3224. done
  3225. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3226. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3227. # mode. It turns out that the SunPro C++ compiler does not properly
  3228. # handle '-M -o', and we need to detect this. Also, some Intel
  3229. # versions had trouble with output in subdirs.
  3230. am__obj=sub/conftest.${OBJEXT-o}
  3231. am__minus_obj="-o $am__obj"
  3232. case $depmode in
  3233. gcc)
  3234. # This depmode causes a compiler race in universal mode.
  3235. test "$am__universal" = false || continue
  3236. ;;
  3237. nosideeffect)
  3238. # After this tag, mechanisms are not by side-effect, so they'll
  3239. # only be used when explicitly requested.
  3240. if test "x$enable_dependency_tracking" = xyes; then
  3241. continue
  3242. else
  3243. break
  3244. fi
  3245. ;;
  3246. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3247. # This compiler won't grok '-c -o', but also, the minuso test has
  3248. # not run yet. These depmodes are late enough in the game, and
  3249. # so weak that their functioning should not be impacted.
  3250. am__obj=conftest.${OBJEXT-o}
  3251. am__minus_obj=
  3252. ;;
  3253. none) break ;;
  3254. esac
  3255. if depmode=$depmode \
  3256. source=sub/conftest.c object=$am__obj \
  3257. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3258. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3259. >/dev/null 2>conftest.err &&
  3260. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3261. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3262. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3263. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3264. # icc doesn't choke on unknown options, it will just issue warnings
  3265. # or remarks (even with -Werror). So we grep stderr for any message
  3266. # that says an option was ignored or not supported.
  3267. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3268. # icc: Command line warning: ignoring option '-M'; no argument required
  3269. # The diagnosis changed in icc 8.0:
  3270. # icc: Command line remark: option '-MP' not supported
  3271. if (grep 'ignoring option' conftest.err ||
  3272. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3273. am_cv_CXX_dependencies_compiler_type=$depmode
  3274. break
  3275. fi
  3276. fi
  3277. done
  3278. cd ..
  3279. rm -rf conftest.dir
  3280. else
  3281. am_cv_CXX_dependencies_compiler_type=none
  3282. fi
  3283. fi
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3285. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3286. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3287. if
  3288. test "x$enable_dependency_tracking" != xno \
  3289. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3290. am__fastdepCXX_TRUE=
  3291. am__fastdepCXX_FALSE='#'
  3292. else
  3293. am__fastdepCXX_TRUE='#'
  3294. am__fastdepCXX_FALSE=
  3295. fi
  3296. ac_ext=cpp
  3297. ac_cpp='$CXXCPP $CPPFLAGS'
  3298. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3299. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3300. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  3302. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  3303. if test -z "$CXXCPP"; then
  3304. if ${ac_cv_prog_CXXCPP+:} false; then :
  3305. $as_echo_n "(cached) " >&6
  3306. else
  3307. # Double quotes because CXXCPP needs to be expanded
  3308. for CXXCPP in "$CXX -E" "/lib/cpp"
  3309. do
  3310. ac_preproc_ok=false
  3311. for ac_cxx_preproc_warn_flag in '' yes
  3312. do
  3313. # Use a header file that comes with gcc, so configuring glibc
  3314. # with a fresh cross-compiler works.
  3315. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3316. # <limits.h> exists even on freestanding compilers.
  3317. # On the NeXT, cc -E runs the code through the compiler's parser,
  3318. # not just through cpp. "Syntax error" is here to catch this case.
  3319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3320. /* end confdefs.h. */
  3321. #ifdef __STDC__
  3322. # include <limits.h>
  3323. #else
  3324. # include <assert.h>
  3325. #endif
  3326. Syntax error
  3327. _ACEOF
  3328. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3329. else
  3330. # Broken: fails on valid input.
  3331. continue
  3332. fi
  3333. rm -f conftest.err conftest.i conftest.$ac_ext
  3334. # OK, works on sane cases. Now check whether nonexistent headers
  3335. # can be detected and how.
  3336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3337. /* end confdefs.h. */
  3338. #include <ac_nonexistent.h>
  3339. _ACEOF
  3340. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3341. # Broken: success on invalid input.
  3342. continue
  3343. else
  3344. # Passes both tests.
  3345. ac_preproc_ok=:
  3346. break
  3347. fi
  3348. rm -f conftest.err conftest.i conftest.$ac_ext
  3349. done
  3350. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3351. rm -f conftest.i conftest.err conftest.$ac_ext
  3352. if $ac_preproc_ok; then :
  3353. break
  3354. fi
  3355. done
  3356. ac_cv_prog_CXXCPP=$CXXCPP
  3357. fi
  3358. CXXCPP=$ac_cv_prog_CXXCPP
  3359. else
  3360. ac_cv_prog_CXXCPP=$CXXCPP
  3361. fi
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  3363. $as_echo "$CXXCPP" >&6; }
  3364. ac_preproc_ok=false
  3365. for ac_cxx_preproc_warn_flag in '' yes
  3366. do
  3367. # Use a header file that comes with gcc, so configuring glibc
  3368. # with a fresh cross-compiler works.
  3369. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3370. # <limits.h> exists even on freestanding compilers.
  3371. # On the NeXT, cc -E runs the code through the compiler's parser,
  3372. # not just through cpp. "Syntax error" is here to catch this case.
  3373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3374. /* end confdefs.h. */
  3375. #ifdef __STDC__
  3376. # include <limits.h>
  3377. #else
  3378. # include <assert.h>
  3379. #endif
  3380. Syntax error
  3381. _ACEOF
  3382. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3383. else
  3384. # Broken: fails on valid input.
  3385. continue
  3386. fi
  3387. rm -f conftest.err conftest.i conftest.$ac_ext
  3388. # OK, works on sane cases. Now check whether nonexistent headers
  3389. # can be detected and how.
  3390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3391. /* end confdefs.h. */
  3392. #include <ac_nonexistent.h>
  3393. _ACEOF
  3394. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3395. # Broken: success on invalid input.
  3396. continue
  3397. else
  3398. # Passes both tests.
  3399. ac_preproc_ok=:
  3400. break
  3401. fi
  3402. rm -f conftest.err conftest.i conftest.$ac_ext
  3403. done
  3404. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3405. rm -f conftest.i conftest.err conftest.$ac_ext
  3406. if $ac_preproc_ok; then :
  3407. else
  3408. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3409. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3410. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  3411. See \`config.log' for more details" "$LINENO" 5; }
  3412. fi
  3413. ac_ext=c
  3414. ac_cpp='$CPP $CPPFLAGS'
  3415. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3416. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3417. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3418. CXXFLAGS="${USER_CXXFLAGS}"
  3419. SUPLDFLAGS=""
  3420. ac_ext=cpp
  3421. ac_cpp='$CXXCPP $CPPFLAGS'
  3422. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3423. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3424. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3425. if test "x$prefix" = "xNONE"; then
  3426. GFPREFIX=/usr/local;
  3427. else
  3428. GFPREFIX="$prefix";
  3429. fi;
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes the partial specialization syntax" >&5
  3431. $as_echo_n "checking whether the compiler recognizes the partial specialization syntax... " >&6; }
  3432. if ${ac_cv_cxx_partial_specialization_syntax+:} false; then :
  3433. $as_echo_n "(cached) " >&6
  3434. else
  3435. ac_ext=cpp
  3436. ac_cpp='$CXXCPP $CPPFLAGS'
  3437. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3438. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3439. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3441. /* end confdefs.h. */
  3442. template<class T> class A { public : int f () const { return 1; } };
  3443. template<class T> class A<T*> { public: int f () const { return 0; } };
  3444. int
  3445. main ()
  3446. {
  3447. A<float*> a; return a.f();
  3448. ;
  3449. return 0;
  3450. }
  3451. _ACEOF
  3452. if ac_fn_cxx_try_compile "$LINENO"; then :
  3453. ac_cv_cxx_partial_specialization_syntax=yes
  3454. else
  3455. ac_cv_cxx_partial_specialization_s
  3456. yntax=no
  3457. fi
  3458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3459. ac_ext=cpp
  3460. ac_cpp='$CXXCPP $CPPFLAGS'
  3461. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3462. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3463. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3464. fi
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_partial_specialization_syntax" >&5
  3466. $as_echo "$ac_cv_cxx_partial_specialization_syntax" >&6; }
  3467. if test "$ac_cv_cxx_partial_specialization_syntax" != yes; then
  3468. echo "Your compiler ($CXX) does not support partial template specialization, trash it"
  3469. exit 1;
  3470. fi
  3471. # Make sure we can run config.sub.
  3472. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3473. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3475. $as_echo_n "checking build system type... " >&6; }
  3476. if ${ac_cv_build+:} false; then :
  3477. $as_echo_n "(cached) " >&6
  3478. else
  3479. ac_build_alias=$build_alias
  3480. test "x$ac_build_alias" = x &&
  3481. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3482. test "x$ac_build_alias" = x &&
  3483. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3484. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3485. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3486. fi
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3488. $as_echo "$ac_cv_build" >&6; }
  3489. case $ac_cv_build in
  3490. *-*-*) ;;
  3491. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3492. esac
  3493. build=$ac_cv_build
  3494. ac_save_IFS=$IFS; IFS='-'
  3495. set x $ac_cv_build
  3496. shift
  3497. build_cpu=$1
  3498. build_vendor=$2
  3499. shift; shift
  3500. # Remember, the first character of IFS is used to create $*,
  3501. # except with old shells:
  3502. build_os=$*
  3503. IFS=$ac_save_IFS
  3504. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3506. $as_echo_n "checking host system type... " >&6; }
  3507. if ${ac_cv_host+:} false; then :
  3508. $as_echo_n "(cached) " >&6
  3509. else
  3510. if test "x$host_alias" = x; then
  3511. ac_cv_host=$ac_cv_build
  3512. else
  3513. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3514. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3515. fi
  3516. fi
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3518. $as_echo "$ac_cv_host" >&6; }
  3519. case $ac_cv_host in
  3520. *-*-*) ;;
  3521. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3522. esac
  3523. host=$ac_cv_host
  3524. ac_save_IFS=$IFS; IFS='-'
  3525. set x $ac_cv_host
  3526. shift
  3527. host_cpu=$1
  3528. host_vendor=$2
  3529. shift; shift
  3530. # Remember, the first character of IFS is used to create $*,
  3531. # except with old shells:
  3532. host_os=$*
  3533. IFS=$ac_save_IFS
  3534. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3535. echo "you are compiling gmm on a $host"
  3536. case $CXX in
  3537. cxx)
  3538. echo "Using Compaq cxx compiler"
  3539. echo "WARNING : Control that you have at least Compaq C++ V6.3"
  3540. here=`pwd`
  3541. cd $srcdir
  3542. CXXFLAGS="$CXXFLAGS -tweak -std strict_ansi -fast -Wl,-S -nopure_cname"
  3543. cd $here
  3544. ;;
  3545. CC)
  3546. case $host in
  3547. *irix*)
  3548. echo "Using MIPSPRO CC on IRIX (LD is set to CC)"
  3549. LD=CC
  3550. CXXFLAGS="$CXXFLAGS -LANG:std -O3 "
  3551. SUPLDFLAGS="-lCio"
  3552. ;;
  3553. *sun*)
  3554. echo "Using SUN C++ WorkShop Compiler"
  3555. CXXFLAGS="$CXXFLAGS +w2 -O3"
  3556. ;;
  3557. esac
  3558. ;;
  3559. aCC)
  3560. echo "Using HP ANSI C++ Compiler aCC"
  3561. CXXFLAGS="$CXXFLAGS -AA -fast"
  3562. ;;
  3563. g++* | c++)
  3564. GCCVER=`$CXX --version | head -1 | cut -d ' ' -f3`
  3565. echo "Using the GNU g++ compiler $GCCVER"
  3566. case $GCCVER in
  3567. 2.95*)
  3568. WSHADOW=""
  3569. ;;
  3570. *)
  3571. WSHADOW="-Wshadow"
  3572. ;;
  3573. esac
  3574. CXXFLAGS="$CXXFLAGS -ftemplate-depth-40 -pedantic -O3 -Wall -W $WSHADOW -Wpointer-arith -Wcast-qual -Wwrite-strings -Wconversion -Wredundant-decls -Wno-long-long"
  3575. ;;
  3576. icc | icpc)
  3577. echo "Using INTEL icc"
  3578. CXXFLAGS="$CXXFLAGS -O3 -tpp6"
  3579. ;;
  3580. *)
  3581. echo "Using a unknown compiler"
  3582. CXXFLAGS="$CXXFLAGS -O3"
  3583. ;;
  3584. esac
  3585. # Check whether --enable-static was given.
  3586. if test "${enable_static+set}" = set; then :
  3587. enableval=$enable_static; p=${PACKAGE-default}
  3588. case $enableval in
  3589. yes) enable_static=yes ;;
  3590. no) enable_static=no ;;
  3591. *)
  3592. enable_static=no
  3593. # Look at the argument we got. We use all the common list separators.
  3594. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3595. for pkg in $enableval; do
  3596. IFS="$lt_save_ifs"
  3597. if test "X$pkg" = "X$p"; then
  3598. enable_static=yes
  3599. fi
  3600. done
  3601. IFS="$lt_save_ifs"
  3602. ;;
  3603. esac
  3604. else
  3605. enable_static=yes
  3606. fi
  3607. case `pwd` in
  3608. *\ * | *\ *)
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3610. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3611. esac
  3612. macro_version='2.4.2'
  3613. macro_revision='1.3337'
  3614. ltmain="$ac_aux_dir/ltmain.sh"
  3615. # Backslashify metacharacters that are still active within
  3616. # double-quoted strings.
  3617. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3618. # Same as above, but do not quote variable references.
  3619. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3620. # Sed substitution to delay expansion of an escaped shell variable in a
  3621. # double_quote_subst'ed string.
  3622. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3623. # Sed substitution to delay expansion of an escaped single quote.
  3624. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3625. # Sed substitution to avoid accidental globbing in evaled expressions
  3626. no_glob_subst='s/\*/\\\*/g'
  3627. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3628. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3629. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3631. $as_echo_n "checking how to print strings... " >&6; }
  3632. # Test print first, because it will be a builtin if present.
  3633. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3634. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3635. ECHO='print -r --'
  3636. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3637. ECHO='printf %s\n'
  3638. else
  3639. # Use this function as a fallback that always works.
  3640. func_fallback_echo ()
  3641. {
  3642. eval 'cat <<_LTECHO_EOF
  3643. $1
  3644. _LTECHO_EOF'
  3645. }
  3646. ECHO='func_fallback_echo'
  3647. fi
  3648. # func_echo_all arg...
  3649. # Invoke $ECHO with all args, space-separated.
  3650. func_echo_all ()
  3651. {
  3652. $ECHO ""
  3653. }
  3654. case "$ECHO" in
  3655. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3656. $as_echo "printf" >&6; } ;;
  3657. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3658. $as_echo "print -r" >&6; } ;;
  3659. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3660. $as_echo "cat" >&6; } ;;
  3661. esac
  3662. ac_ext=c
  3663. ac_cpp='$CPP $CPPFLAGS'
  3664. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3665. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3666. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3667. if test -n "$ac_tool_prefix"; then
  3668. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3669. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3671. $as_echo_n "checking for $ac_word... " >&6; }
  3672. if ${ac_cv_prog_CC+:} false; then :
  3673. $as_echo_n "(cached) " >&6
  3674. else
  3675. if test -n "$CC"; then
  3676. ac_cv_prog_CC="$CC" # Let the user override the test.
  3677. else
  3678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3679. for as_dir in $PATH
  3680. do
  3681. IFS=$as_save_IFS
  3682. test -z "$as_dir" && as_dir=.
  3683. for ac_exec_ext in '' $ac_executable_extensions; do
  3684. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3685. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3686. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3687. break 2
  3688. fi
  3689. done
  3690. done
  3691. IFS=$as_save_IFS
  3692. fi
  3693. fi
  3694. CC=$ac_cv_prog_CC
  3695. if test -n "$CC"; then
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3697. $as_echo "$CC" >&6; }
  3698. else
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3700. $as_echo "no" >&6; }
  3701. fi
  3702. fi
  3703. if test -z "$ac_cv_prog_CC"; then
  3704. ac_ct_CC=$CC
  3705. # Extract the first word of "gcc", so it can be a program name with args.
  3706. set dummy gcc; ac_word=$2
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3708. $as_echo_n "checking for $ac_word... " >&6; }
  3709. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3710. $as_echo_n "(cached) " >&6
  3711. else
  3712. if test -n "$ac_ct_CC"; then
  3713. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3714. else
  3715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3716. for as_dir in $PATH
  3717. do
  3718. IFS=$as_save_IFS
  3719. test -z "$as_dir" && as_dir=.
  3720. for ac_exec_ext in '' $ac_executable_extensions; do
  3721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3722. ac_cv_prog_ac_ct_CC="gcc"
  3723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3724. break 2
  3725. fi
  3726. done
  3727. done
  3728. IFS=$as_save_IFS
  3729. fi
  3730. fi
  3731. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3732. if test -n "$ac_ct_CC"; then
  3733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3734. $as_echo "$ac_ct_CC" >&6; }
  3735. else
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3737. $as_echo "no" >&6; }
  3738. fi
  3739. if test "x$ac_ct_CC" = x; then
  3740. CC=""
  3741. else
  3742. case $cross_compiling:$ac_tool_warned in
  3743. yes:)
  3744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3745. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3746. ac_tool_warned=yes ;;
  3747. esac
  3748. CC=$ac_ct_CC
  3749. fi
  3750. else
  3751. CC="$ac_cv_prog_CC"
  3752. fi
  3753. if test -z "$CC"; then
  3754. if test -n "$ac_tool_prefix"; then
  3755. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3756. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3758. $as_echo_n "checking for $ac_word... " >&6; }
  3759. if ${ac_cv_prog_CC+:} false; then :
  3760. $as_echo_n "(cached) " >&6
  3761. else
  3762. if test -n "$CC"; then
  3763. ac_cv_prog_CC="$CC" # Let the user override the test.
  3764. else
  3765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3766. for as_dir in $PATH
  3767. do
  3768. IFS=$as_save_IFS
  3769. test -z "$as_dir" && as_dir=.
  3770. for ac_exec_ext in '' $ac_executable_extensions; do
  3771. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3772. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3774. break 2
  3775. fi
  3776. done
  3777. done
  3778. IFS=$as_save_IFS
  3779. fi
  3780. fi
  3781. CC=$ac_cv_prog_CC
  3782. if test -n "$CC"; then
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3784. $as_echo "$CC" >&6; }
  3785. else
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3787. $as_echo "no" >&6; }
  3788. fi
  3789. fi
  3790. fi
  3791. if test -z "$CC"; then
  3792. # Extract the first word of "cc", so it can be a program name with args.
  3793. set dummy cc; ac_word=$2
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3795. $as_echo_n "checking for $ac_word... " >&6; }
  3796. if ${ac_cv_prog_CC+:} false; then :
  3797. $as_echo_n "(cached) " >&6
  3798. else
  3799. if test -n "$CC"; then
  3800. ac_cv_prog_CC="$CC" # Let the user override the test.
  3801. else
  3802. ac_prog_rejected=no
  3803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3804. for as_dir in $PATH
  3805. do
  3806. IFS=$as_save_IFS
  3807. test -z "$as_dir" && as_dir=.
  3808. for ac_exec_ext in '' $ac_executable_extensions; do
  3809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3810. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3811. ac_prog_rejected=yes
  3812. continue
  3813. fi
  3814. ac_cv_prog_CC="cc"
  3815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3816. break 2
  3817. fi
  3818. done
  3819. done
  3820. IFS=$as_save_IFS
  3821. if test $ac_prog_rejected = yes; then
  3822. # We found a bogon in the path, so make sure we never use it.
  3823. set dummy $ac_cv_prog_CC
  3824. shift
  3825. if test $# != 0; then
  3826. # We chose a different compiler from the bogus one.
  3827. # However, it has the same basename, so the bogon will be chosen
  3828. # first if we set CC to just the basename; use the full file name.
  3829. shift
  3830. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3831. fi
  3832. fi
  3833. fi
  3834. fi
  3835. CC=$ac_cv_prog_CC
  3836. if test -n "$CC"; then
  3837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3838. $as_echo "$CC" >&6; }
  3839. else
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3841. $as_echo "no" >&6; }
  3842. fi
  3843. fi
  3844. if test -z "$CC"; then
  3845. if test -n "$ac_tool_prefix"; then
  3846. for ac_prog in cl.exe
  3847. do
  3848. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3849. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3851. $as_echo_n "checking for $ac_word... " >&6; }
  3852. if ${ac_cv_prog_CC+:} false; then :
  3853. $as_echo_n "(cached) " >&6
  3854. else
  3855. if test -n "$CC"; then
  3856. ac_cv_prog_CC="$CC" # Let the user override the test.
  3857. else
  3858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3859. for as_dir in $PATH
  3860. do
  3861. IFS=$as_save_IFS
  3862. test -z "$as_dir" && as_dir=.
  3863. for ac_exec_ext in '' $ac_executable_extensions; do
  3864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3865. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3867. break 2
  3868. fi
  3869. done
  3870. done
  3871. IFS=$as_save_IFS
  3872. fi
  3873. fi
  3874. CC=$ac_cv_prog_CC
  3875. if test -n "$CC"; then
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3877. $as_echo "$CC" >&6; }
  3878. else
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3880. $as_echo "no" >&6; }
  3881. fi
  3882. test -n "$CC" && break
  3883. done
  3884. fi
  3885. if test -z "$CC"; then
  3886. ac_ct_CC=$CC
  3887. for ac_prog in cl.exe
  3888. do
  3889. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3890. set dummy $ac_prog; ac_word=$2
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3892. $as_echo_n "checking for $ac_word... " >&6; }
  3893. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3894. $as_echo_n "(cached) " >&6
  3895. else
  3896. if test -n "$ac_ct_CC"; then
  3897. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3898. else
  3899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3900. for as_dir in $PATH
  3901. do
  3902. IFS=$as_save_IFS
  3903. test -z "$as_dir" && as_dir=.
  3904. for ac_exec_ext in '' $ac_executable_extensions; do
  3905. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3906. ac_cv_prog_ac_ct_CC="$ac_prog"
  3907. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3908. break 2
  3909. fi
  3910. done
  3911. done
  3912. IFS=$as_save_IFS
  3913. fi
  3914. fi
  3915. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3916. if test -n "$ac_ct_CC"; then
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3918. $as_echo "$ac_ct_CC" >&6; }
  3919. else
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3921. $as_echo "no" >&6; }
  3922. fi
  3923. test -n "$ac_ct_CC" && break
  3924. done
  3925. if test "x$ac_ct_CC" = x; then
  3926. CC=""
  3927. else
  3928. case $cross_compiling:$ac_tool_warned in
  3929. yes:)
  3930. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3931. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3932. ac_tool_warned=yes ;;
  3933. esac
  3934. CC=$ac_ct_CC
  3935. fi
  3936. fi
  3937. fi
  3938. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3939. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3940. as_fn_error $? "no acceptable C compiler found in \$PATH
  3941. See \`config.log' for more details" "$LINENO" 5; }
  3942. # Provide some information about the compiler.
  3943. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3944. set X $ac_compile
  3945. ac_compiler=$2
  3946. for ac_option in --version -v -V -qversion; do
  3947. { { ac_try="$ac_compiler $ac_option >&5"
  3948. case "(($ac_try" in
  3949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3950. *) ac_try_echo=$ac_try;;
  3951. esac
  3952. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3953. $as_echo "$ac_try_echo"; } >&5
  3954. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3955. ac_status=$?
  3956. if test -s conftest.err; then
  3957. sed '10a\
  3958. ... rest of stderr output deleted ...
  3959. 10q' conftest.err >conftest.er1
  3960. cat conftest.er1 >&5
  3961. fi
  3962. rm -f conftest.er1 conftest.err
  3963. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3964. test $ac_status = 0; }
  3965. done
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3967. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3968. if ${ac_cv_c_compiler_gnu+:} false; then :
  3969. $as_echo_n "(cached) " >&6
  3970. else
  3971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3972. /* end confdefs.h. */
  3973. int
  3974. main ()
  3975. {
  3976. #ifndef __GNUC__
  3977. choke me
  3978. #endif
  3979. ;
  3980. return 0;
  3981. }
  3982. _ACEOF
  3983. if ac_fn_c_try_compile "$LINENO"; then :
  3984. ac_compiler_gnu=yes
  3985. else
  3986. ac_compiler_gnu=no
  3987. fi
  3988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3989. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3990. fi
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3992. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3993. if test $ac_compiler_gnu = yes; then
  3994. GCC=yes
  3995. else
  3996. GCC=
  3997. fi
  3998. ac_test_CFLAGS=${CFLAGS+set}
  3999. ac_save_CFLAGS=$CFLAGS
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4001. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4002. if ${ac_cv_prog_cc_g+:} false; then :
  4003. $as_echo_n "(cached) " >&6
  4004. else
  4005. ac_save_c_werror_flag=$ac_c_werror_flag
  4006. ac_c_werror_flag=yes
  4007. ac_cv_prog_cc_g=no
  4008. CFLAGS="-g"
  4009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4010. /* end confdefs.h. */
  4011. int
  4012. main ()
  4013. {
  4014. ;
  4015. return 0;
  4016. }
  4017. _ACEOF
  4018. if ac_fn_c_try_compile "$LINENO"; then :
  4019. ac_cv_prog_cc_g=yes
  4020. else
  4021. CFLAGS=""
  4022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4023. /* end confdefs.h. */
  4024. int
  4025. main ()
  4026. {
  4027. ;
  4028. return 0;
  4029. }
  4030. _ACEOF
  4031. if ac_fn_c_try_compile "$LINENO"; then :
  4032. else
  4033. ac_c_werror_flag=$ac_save_c_werror_flag
  4034. CFLAGS="-g"
  4035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4036. /* end confdefs.h. */
  4037. int
  4038. main ()
  4039. {
  4040. ;
  4041. return 0;
  4042. }
  4043. _ACEOF
  4044. if ac_fn_c_try_compile "$LINENO"; then :
  4045. ac_cv_prog_cc_g=yes
  4046. fi
  4047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4048. fi
  4049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4050. fi
  4051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4052. ac_c_werror_flag=$ac_save_c_werror_flag
  4053. fi
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4055. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4056. if test "$ac_test_CFLAGS" = set; then
  4057. CFLAGS=$ac_save_CFLAGS
  4058. elif test $ac_cv_prog_cc_g = yes; then
  4059. if test "$GCC" = yes; then
  4060. CFLAGS="-g -O2"
  4061. else
  4062. CFLAGS="-g"
  4063. fi
  4064. else
  4065. if test "$GCC" = yes; then
  4066. CFLAGS="-O2"
  4067. else
  4068. CFLAGS=
  4069. fi
  4070. fi
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4072. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4073. if ${ac_cv_prog_cc_c89+:} false; then :
  4074. $as_echo_n "(cached) " >&6
  4075. else
  4076. ac_cv_prog_cc_c89=no
  4077. ac_save_CC=$CC
  4078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4079. /* end confdefs.h. */
  4080. #include <stdarg.h>
  4081. #include <stdio.h>
  4082. struct stat;
  4083. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4084. struct buf { int x; };
  4085. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4086. static char *e (p, i)
  4087. char **p;
  4088. int i;
  4089. {
  4090. return p[i];
  4091. }
  4092. static char *f (char * (*g) (char **, int), char **p, ...)
  4093. {
  4094. char *s;
  4095. va_list v;
  4096. va_start (v,p);
  4097. s = g (p, va_arg (v,int));
  4098. va_end (v);
  4099. return s;
  4100. }
  4101. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4102. function prototypes and stuff, but not '\xHH' hex character constants.
  4103. These don't provoke an error unfortunately, instead are silently treated
  4104. as 'x'. The following induces an error, until -std is added to get
  4105. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4106. array size at least. It's necessary to write '\x00'==0 to get something
  4107. that's true only with -std. */
  4108. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4109. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4110. inside strings and character constants. */
  4111. #define FOO(x) 'x'
  4112. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4113. int test (int i, double x);
  4114. struct s1 {int (*f) (int a);};
  4115. struct s2 {int (*f) (double a);};
  4116. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4117. int argc;
  4118. char **argv;
  4119. int
  4120. main ()
  4121. {
  4122. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4123. ;
  4124. return 0;
  4125. }
  4126. _ACEOF
  4127. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4128. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4129. do
  4130. CC="$ac_save_CC $ac_arg"
  4131. if ac_fn_c_try_compile "$LINENO"; then :
  4132. ac_cv_prog_cc_c89=$ac_arg
  4133. fi
  4134. rm -f core conftest.err conftest.$ac_objext
  4135. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4136. done
  4137. rm -f conftest.$ac_ext
  4138. CC=$ac_save_CC
  4139. fi
  4140. # AC_CACHE_VAL
  4141. case "x$ac_cv_prog_cc_c89" in
  4142. x)
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4144. $as_echo "none needed" >&6; } ;;
  4145. xno)
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4147. $as_echo "unsupported" >&6; } ;;
  4148. *)
  4149. CC="$CC $ac_cv_prog_cc_c89"
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4151. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4152. esac
  4153. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4154. fi
  4155. ac_ext=cpp
  4156. ac_cpp='$CXXCPP $CPPFLAGS'
  4157. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4158. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4159. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4160. ac_ext=c
  4161. ac_cpp='$CPP $CPPFLAGS'
  4162. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4163. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4164. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4166. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4167. if ${am_cv_prog_cc_c_o+:} false; then :
  4168. $as_echo_n "(cached) " >&6
  4169. else
  4170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4171. /* end confdefs.h. */
  4172. int
  4173. main ()
  4174. {
  4175. ;
  4176. return 0;
  4177. }
  4178. _ACEOF
  4179. # Make sure it works both with $CC and with simple cc.
  4180. # Following AC_PROG_CC_C_O, we do the test twice because some
  4181. # compilers refuse to overwrite an existing .o file with -o,
  4182. # though they will create one.
  4183. am_cv_prog_cc_c_o=yes
  4184. for am_i in 1 2; do
  4185. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4186. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4187. ac_status=$?
  4188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4189. (exit $ac_status); } \
  4190. && test -f conftest2.$ac_objext; then
  4191. : OK
  4192. else
  4193. am_cv_prog_cc_c_o=no
  4194. break
  4195. fi
  4196. done
  4197. rm -f core conftest*
  4198. unset am_i
  4199. fi
  4200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4201. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4202. if test "$am_cv_prog_cc_c_o" != yes; then
  4203. # Losing compiler, so override with the script.
  4204. # FIXME: It is wrong to rewrite CC.
  4205. # But if we don't then we get into trouble of one sort or another.
  4206. # A longer-term fix would be to have automake use am__CC in this case,
  4207. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4208. CC="$am_aux_dir/compile $CC"
  4209. fi
  4210. ac_ext=cpp
  4211. ac_cpp='$CXXCPP $CPPFLAGS'
  4212. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4213. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4214. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4215. depcc="$CC" am_compiler_list=
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4217. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4218. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4219. $as_echo_n "(cached) " >&6
  4220. else
  4221. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4222. # We make a subdir and do the tests there. Otherwise we can end up
  4223. # making bogus files that we don't know about and never remove. For
  4224. # instance it was reported that on HP-UX the gcc test will end up
  4225. # making a dummy file named 'D' -- because '-MD' means "put the output
  4226. # in D".
  4227. rm -rf conftest.dir
  4228. mkdir conftest.dir
  4229. # Copy depcomp to subdir because otherwise we won't find it if we're
  4230. # using a relative directory.
  4231. cp "$am_depcomp" conftest.dir
  4232. cd conftest.dir
  4233. # We will build objects and dependencies in a subdirectory because
  4234. # it helps to detect inapplicable dependency modes. For instance
  4235. # both Tru64's cc and ICC support -MD to output dependencies as a
  4236. # side effect of compilation, but ICC will put the dependencies in
  4237. # the current directory while Tru64 will put them in the object
  4238. # directory.
  4239. mkdir sub
  4240. am_cv_CC_dependencies_compiler_type=none
  4241. if test "$am_compiler_list" = ""; then
  4242. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4243. fi
  4244. am__universal=false
  4245. case " $depcc " in #(
  4246. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4247. esac
  4248. for depmode in $am_compiler_list; do
  4249. # Setup a source with many dependencies, because some compilers
  4250. # like to wrap large dependency lists on column 80 (with \), and
  4251. # we should not choose a depcomp mode which is confused by this.
  4252. #
  4253. # We need to recreate these files for each test, as the compiler may
  4254. # overwrite some of them when testing with obscure command lines.
  4255. # This happens at least with the AIX C compiler.
  4256. : > sub/conftest.c
  4257. for i in 1 2 3 4 5 6; do
  4258. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4259. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4260. # Solaris 10 /bin/sh.
  4261. echo '/* dummy */' > sub/conftst$i.h
  4262. done
  4263. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4264. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4265. # mode. It turns out that the SunPro C++ compiler does not properly
  4266. # handle '-M -o', and we need to detect this. Also, some Intel
  4267. # versions had trouble with output in subdirs.
  4268. am__obj=sub/conftest.${OBJEXT-o}
  4269. am__minus_obj="-o $am__obj"
  4270. case $depmode in
  4271. gcc)
  4272. # This depmode causes a compiler race in universal mode.
  4273. test "$am__universal" = false || continue
  4274. ;;
  4275. nosideeffect)
  4276. # After this tag, mechanisms are not by side-effect, so they'll
  4277. # only be used when explicitly requested.
  4278. if test "x$enable_dependency_tracking" = xyes; then
  4279. continue
  4280. else
  4281. break
  4282. fi
  4283. ;;
  4284. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4285. # This compiler won't grok '-c -o', but also, the minuso test has
  4286. # not run yet. These depmodes are late enough in the game, and
  4287. # so weak that their functioning should not be impacted.
  4288. am__obj=conftest.${OBJEXT-o}
  4289. am__minus_obj=
  4290. ;;
  4291. none) break ;;
  4292. esac
  4293. if depmode=$depmode \
  4294. source=sub/conftest.c object=$am__obj \
  4295. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4296. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4297. >/dev/null 2>conftest.err &&
  4298. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4299. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4300. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4301. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4302. # icc doesn't choke on unknown options, it will just issue warnings
  4303. # or remarks (even with -Werror). So we grep stderr for any message
  4304. # that says an option was ignored or not supported.
  4305. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4306. # icc: Command line warning: ignoring option '-M'; no argument required
  4307. # The diagnosis changed in icc 8.0:
  4308. # icc: Command line remark: option '-MP' not supported
  4309. if (grep 'ignoring option' conftest.err ||
  4310. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4311. am_cv_CC_dependencies_compiler_type=$depmode
  4312. break
  4313. fi
  4314. fi
  4315. done
  4316. cd ..
  4317. rm -rf conftest.dir
  4318. else
  4319. am_cv_CC_dependencies_compiler_type=none
  4320. fi
  4321. fi
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4323. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4324. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4325. if
  4326. test "x$enable_dependency_tracking" != xno \
  4327. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4328. am__fastdepCC_TRUE=
  4329. am__fastdepCC_FALSE='#'
  4330. else
  4331. am__fastdepCC_TRUE='#'
  4332. am__fastdepCC_FALSE=
  4333. fi
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4335. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4336. if ${ac_cv_path_SED+:} false; then :
  4337. $as_echo_n "(cached) " >&6
  4338. else
  4339. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4340. for ac_i in 1 2 3 4 5 6 7; do
  4341. ac_script="$ac_script$as_nl$ac_script"
  4342. done
  4343. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4344. { ac_script=; unset ac_script;}
  4345. if test -z "$SED"; then
  4346. ac_path_SED_found=false
  4347. # Loop through the user's path and test for each of PROGNAME-LIST
  4348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4349. for as_dir in $PATH
  4350. do
  4351. IFS=$as_save_IFS
  4352. test -z "$as_dir" && as_dir=.
  4353. for ac_prog in sed gsed; do
  4354. for ac_exec_ext in '' $ac_executable_extensions; do
  4355. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4356. as_fn_executable_p "$ac_path_SED" || continue
  4357. # Check for GNU ac_path_SED and select it if it is found.
  4358. # Check for GNU $ac_path_SED
  4359. case `"$ac_path_SED" --version 2>&1` in
  4360. *GNU*)
  4361. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4362. *)
  4363. ac_count=0
  4364. $as_echo_n 0123456789 >"conftest.in"
  4365. while :
  4366. do
  4367. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4368. mv "conftest.tmp" "conftest.in"
  4369. cp "conftest.in" "conftest.nl"
  4370. $as_echo '' >> "conftest.nl"
  4371. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4372. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4373. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4374. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4375. # Best one so far, save it but keep looking for a better one
  4376. ac_cv_path_SED="$ac_path_SED"
  4377. ac_path_SED_max=$ac_count
  4378. fi
  4379. # 10*(2^10) chars as input seems more than enough
  4380. test $ac_count -gt 10 && break
  4381. done
  4382. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4383. esac
  4384. $ac_path_SED_found && break 3
  4385. done
  4386. done
  4387. done
  4388. IFS=$as_save_IFS
  4389. if test -z "$ac_cv_path_SED"; then
  4390. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4391. fi
  4392. else
  4393. ac_cv_path_SED=$SED
  4394. fi
  4395. fi
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4397. $as_echo "$ac_cv_path_SED" >&6; }
  4398. SED="$ac_cv_path_SED"
  4399. rm -f conftest.sed
  4400. test -z "$SED" && SED=sed
  4401. Xsed="$SED -e 1s/^X//"
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4403. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4404. if ${ac_cv_path_GREP+:} false; then :
  4405. $as_echo_n "(cached) " >&6
  4406. else
  4407. if test -z "$GREP"; then
  4408. ac_path_GREP_found=false
  4409. # Loop through the user's path and test for each of PROGNAME-LIST
  4410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4411. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4412. do
  4413. IFS=$as_save_IFS
  4414. test -z "$as_dir" && as_dir=.
  4415. for ac_prog in grep ggrep; do
  4416. for ac_exec_ext in '' $ac_executable_extensions; do
  4417. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4418. as_fn_executable_p "$ac_path_GREP" || continue
  4419. # Check for GNU ac_path_GREP and select it if it is found.
  4420. # Check for GNU $ac_path_GREP
  4421. case `"$ac_path_GREP" --version 2>&1` in
  4422. *GNU*)
  4423. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4424. *)
  4425. ac_count=0
  4426. $as_echo_n 0123456789 >"conftest.in"
  4427. while :
  4428. do
  4429. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4430. mv "conftest.tmp" "conftest.in"
  4431. cp "conftest.in" "conftest.nl"
  4432. $as_echo 'GREP' >> "conftest.nl"
  4433. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4434. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4435. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4436. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4437. # Best one so far, save it but keep looking for a better one
  4438. ac_cv_path_GREP="$ac_path_GREP"
  4439. ac_path_GREP_max=$ac_count
  4440. fi
  4441. # 10*(2^10) chars as input seems more than enough
  4442. test $ac_count -gt 10 && break
  4443. done
  4444. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4445. esac
  4446. $ac_path_GREP_found && break 3
  4447. done
  4448. done
  4449. done
  4450. IFS=$as_save_IFS
  4451. if test -z "$ac_cv_path_GREP"; then
  4452. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4453. fi
  4454. else
  4455. ac_cv_path_GREP=$GREP
  4456. fi
  4457. fi
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4459. $as_echo "$ac_cv_path_GREP" >&6; }
  4460. GREP="$ac_cv_path_GREP"
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4462. $as_echo_n "checking for egrep... " >&6; }
  4463. if ${ac_cv_path_EGREP+:} false; then :
  4464. $as_echo_n "(cached) " >&6
  4465. else
  4466. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4467. then ac_cv_path_EGREP="$GREP -E"
  4468. else
  4469. if test -z "$EGREP"; then
  4470. ac_path_EGREP_found=false
  4471. # Loop through the user's path and test for each of PROGNAME-LIST
  4472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4473. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4474. do
  4475. IFS=$as_save_IFS
  4476. test -z "$as_dir" && as_dir=.
  4477. for ac_prog in egrep; do
  4478. for ac_exec_ext in '' $ac_executable_extensions; do
  4479. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4480. as_fn_executable_p "$ac_path_EGREP" || continue
  4481. # Check for GNU ac_path_EGREP and select it if it is found.
  4482. # Check for GNU $ac_path_EGREP
  4483. case `"$ac_path_EGREP" --version 2>&1` in
  4484. *GNU*)
  4485. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4486. *)
  4487. ac_count=0
  4488. $as_echo_n 0123456789 >"conftest.in"
  4489. while :
  4490. do
  4491. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4492. mv "conftest.tmp" "conftest.in"
  4493. cp "conftest.in" "conftest.nl"
  4494. $as_echo 'EGREP' >> "conftest.nl"
  4495. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4496. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4497. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4498. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4499. # Best one so far, save it but keep looking for a better one
  4500. ac_cv_path_EGREP="$ac_path_EGREP"
  4501. ac_path_EGREP_max=$ac_count
  4502. fi
  4503. # 10*(2^10) chars as input seems more than enough
  4504. test $ac_count -gt 10 && break
  4505. done
  4506. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4507. esac
  4508. $ac_path_EGREP_found && break 3
  4509. done
  4510. done
  4511. done
  4512. IFS=$as_save_IFS
  4513. if test -z "$ac_cv_path_EGREP"; then
  4514. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4515. fi
  4516. else
  4517. ac_cv_path_EGREP=$EGREP
  4518. fi
  4519. fi
  4520. fi
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4522. $as_echo "$ac_cv_path_EGREP" >&6; }
  4523. EGREP="$ac_cv_path_EGREP"
  4524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4525. $as_echo_n "checking for fgrep... " >&6; }
  4526. if ${ac_cv_path_FGREP+:} false; then :
  4527. $as_echo_n "(cached) " >&6
  4528. else
  4529. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4530. then ac_cv_path_FGREP="$GREP -F"
  4531. else
  4532. if test -z "$FGREP"; then
  4533. ac_path_FGREP_found=false
  4534. # Loop through the user's path and test for each of PROGNAME-LIST
  4535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4536. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4537. do
  4538. IFS=$as_save_IFS
  4539. test -z "$as_dir" && as_dir=.
  4540. for ac_prog in fgrep; do
  4541. for ac_exec_ext in '' $ac_executable_extensions; do
  4542. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4543. as_fn_executable_p "$ac_path_FGREP" || continue
  4544. # Check for GNU ac_path_FGREP and select it if it is found.
  4545. # Check for GNU $ac_path_FGREP
  4546. case `"$ac_path_FGREP" --version 2>&1` in
  4547. *GNU*)
  4548. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4549. *)
  4550. ac_count=0
  4551. $as_echo_n 0123456789 >"conftest.in"
  4552. while :
  4553. do
  4554. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4555. mv "conftest.tmp" "conftest.in"
  4556. cp "conftest.in" "conftest.nl"
  4557. $as_echo 'FGREP' >> "conftest.nl"
  4558. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4559. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4560. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4561. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4562. # Best one so far, save it but keep looking for a better one
  4563. ac_cv_path_FGREP="$ac_path_FGREP"
  4564. ac_path_FGREP_max=$ac_count
  4565. fi
  4566. # 10*(2^10) chars as input seems more than enough
  4567. test $ac_count -gt 10 && break
  4568. done
  4569. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4570. esac
  4571. $ac_path_FGREP_found && break 3
  4572. done
  4573. done
  4574. done
  4575. IFS=$as_save_IFS
  4576. if test -z "$ac_cv_path_FGREP"; then
  4577. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4578. fi
  4579. else
  4580. ac_cv_path_FGREP=$FGREP
  4581. fi
  4582. fi
  4583. fi
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4585. $as_echo "$ac_cv_path_FGREP" >&6; }
  4586. FGREP="$ac_cv_path_FGREP"
  4587. test -z "$GREP" && GREP=grep
  4588. # Check whether --with-gnu-ld was given.
  4589. if test "${with_gnu_ld+set}" = set; then :
  4590. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4591. else
  4592. with_gnu_ld=no
  4593. fi
  4594. ac_prog=ld
  4595. if test "$GCC" = yes; then
  4596. # Check if gcc -print-prog-name=ld gives a path.
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4598. $as_echo_n "checking for ld used by $CC... " >&6; }
  4599. case $host in
  4600. *-*-mingw*)
  4601. # gcc leaves a trailing carriage return which upsets mingw
  4602. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4603. *)
  4604. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4605. esac
  4606. case $ac_prog in
  4607. # Accept absolute paths.
  4608. [\\/]* | ?:[\\/]*)
  4609. re_direlt='/[^/][^/]*/\.\./'
  4610. # Canonicalize the pathname of ld
  4611. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4612. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4613. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4614. done
  4615. test -z "$LD" && LD="$ac_prog"
  4616. ;;
  4617. "")
  4618. # If it fails, then pretend we aren't using GCC.
  4619. ac_prog=ld
  4620. ;;
  4621. *)
  4622. # If it is relative, then search for the first ld in PATH.
  4623. with_gnu_ld=unknown
  4624. ;;
  4625. esac
  4626. elif test "$with_gnu_ld" = yes; then
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4628. $as_echo_n "checking for GNU ld... " >&6; }
  4629. else
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4631. $as_echo_n "checking for non-GNU ld... " >&6; }
  4632. fi
  4633. if ${lt_cv_path_LD+:} false; then :
  4634. $as_echo_n "(cached) " >&6
  4635. else
  4636. if test -z "$LD"; then
  4637. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4638. for ac_dir in $PATH; do
  4639. IFS="$lt_save_ifs"
  4640. test -z "$ac_dir" && ac_dir=.
  4641. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4642. lt_cv_path_LD="$ac_dir/$ac_prog"
  4643. # Check to see if the program is GNU ld. I'd rather use --version,
  4644. # but apparently some variants of GNU ld only accept -v.
  4645. # Break only if it was the GNU/non-GNU ld that we prefer.
  4646. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4647. *GNU* | *'with BFD'*)
  4648. test "$with_gnu_ld" != no && break
  4649. ;;
  4650. *)
  4651. test "$with_gnu_ld" != yes && break
  4652. ;;
  4653. esac
  4654. fi
  4655. done
  4656. IFS="$lt_save_ifs"
  4657. else
  4658. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4659. fi
  4660. fi
  4661. LD="$lt_cv_path_LD"
  4662. if test -n "$LD"; then
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4664. $as_echo "$LD" >&6; }
  4665. else
  4666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4667. $as_echo "no" >&6; }
  4668. fi
  4669. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4671. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4672. if ${lt_cv_prog_gnu_ld+:} false; then :
  4673. $as_echo_n "(cached) " >&6
  4674. else
  4675. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4676. case `$LD -v 2>&1 </dev/null` in
  4677. *GNU* | *'with BFD'*)
  4678. lt_cv_prog_gnu_ld=yes
  4679. ;;
  4680. *)
  4681. lt_cv_prog_gnu_ld=no
  4682. ;;
  4683. esac
  4684. fi
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4686. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4687. with_gnu_ld=$lt_cv_prog_gnu_ld
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4689. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4690. if ${lt_cv_path_NM+:} false; then :
  4691. $as_echo_n "(cached) " >&6
  4692. else
  4693. if test -n "$NM"; then
  4694. # Let the user override the test.
  4695. lt_cv_path_NM="$NM"
  4696. else
  4697. lt_nm_to_check="${ac_tool_prefix}nm"
  4698. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4699. lt_nm_to_check="$lt_nm_to_check nm"
  4700. fi
  4701. for lt_tmp_nm in $lt_nm_to_check; do
  4702. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4703. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4704. IFS="$lt_save_ifs"
  4705. test -z "$ac_dir" && ac_dir=.
  4706. tmp_nm="$ac_dir/$lt_tmp_nm"
  4707. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4708. # Check to see if the nm accepts a BSD-compat flag.
  4709. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4710. # nm: unknown option "B" ignored
  4711. # Tru64's nm complains that /dev/null is an invalid object file
  4712. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4713. */dev/null* | *'Invalid file or object type'*)
  4714. lt_cv_path_NM="$tmp_nm -B"
  4715. break
  4716. ;;
  4717. *)
  4718. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4719. */dev/null*)
  4720. lt_cv_path_NM="$tmp_nm -p"
  4721. break
  4722. ;;
  4723. *)
  4724. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4725. continue # so that we can try to find one that supports BSD flags
  4726. ;;
  4727. esac
  4728. ;;
  4729. esac
  4730. fi
  4731. done
  4732. IFS="$lt_save_ifs"
  4733. done
  4734. : ${lt_cv_path_NM=no}
  4735. fi
  4736. fi
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4738. $as_echo "$lt_cv_path_NM" >&6; }
  4739. if test "$lt_cv_path_NM" != "no"; then
  4740. NM="$lt_cv_path_NM"
  4741. else
  4742. # Didn't find any BSD compatible name lister, look for dumpbin.
  4743. if test -n "$DUMPBIN"; then :
  4744. # Let the user override the test.
  4745. else
  4746. if test -n "$ac_tool_prefix"; then
  4747. for ac_prog in dumpbin "link -dump"
  4748. do
  4749. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4750. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4752. $as_echo_n "checking for $ac_word... " >&6; }
  4753. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4754. $as_echo_n "(cached) " >&6
  4755. else
  4756. if test -n "$DUMPBIN"; then
  4757. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4758. else
  4759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4760. for as_dir in $PATH
  4761. do
  4762. IFS=$as_save_IFS
  4763. test -z "$as_dir" && as_dir=.
  4764. for ac_exec_ext in '' $ac_executable_extensions; do
  4765. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4766. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4767. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4768. break 2
  4769. fi
  4770. done
  4771. done
  4772. IFS=$as_save_IFS
  4773. fi
  4774. fi
  4775. DUMPBIN=$ac_cv_prog_DUMPBIN
  4776. if test -n "$DUMPBIN"; then
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4778. $as_echo "$DUMPBIN" >&6; }
  4779. else
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4781. $as_echo "no" >&6; }
  4782. fi
  4783. test -n "$DUMPBIN" && break
  4784. done
  4785. fi
  4786. if test -z "$DUMPBIN"; then
  4787. ac_ct_DUMPBIN=$DUMPBIN
  4788. for ac_prog in dumpbin "link -dump"
  4789. do
  4790. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4791. set dummy $ac_prog; ac_word=$2
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4793. $as_echo_n "checking for $ac_word... " >&6; }
  4794. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4795. $as_echo_n "(cached) " >&6
  4796. else
  4797. if test -n "$ac_ct_DUMPBIN"; then
  4798. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4799. else
  4800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4801. for as_dir in $PATH
  4802. do
  4803. IFS=$as_save_IFS
  4804. test -z "$as_dir" && as_dir=.
  4805. for ac_exec_ext in '' $ac_executable_extensions; do
  4806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4807. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4809. break 2
  4810. fi
  4811. done
  4812. done
  4813. IFS=$as_save_IFS
  4814. fi
  4815. fi
  4816. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4817. if test -n "$ac_ct_DUMPBIN"; then
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4819. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4820. else
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4822. $as_echo "no" >&6; }
  4823. fi
  4824. test -n "$ac_ct_DUMPBIN" && break
  4825. done
  4826. if test "x$ac_ct_DUMPBIN" = x; then
  4827. DUMPBIN=":"
  4828. else
  4829. case $cross_compiling:$ac_tool_warned in
  4830. yes:)
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4832. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4833. ac_tool_warned=yes ;;
  4834. esac
  4835. DUMPBIN=$ac_ct_DUMPBIN
  4836. fi
  4837. fi
  4838. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4839. *COFF*)
  4840. DUMPBIN="$DUMPBIN -symbols"
  4841. ;;
  4842. *)
  4843. DUMPBIN=:
  4844. ;;
  4845. esac
  4846. fi
  4847. if test "$DUMPBIN" != ":"; then
  4848. NM="$DUMPBIN"
  4849. fi
  4850. fi
  4851. test -z "$NM" && NM=nm
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4853. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4854. if ${lt_cv_nm_interface+:} false; then :
  4855. $as_echo_n "(cached) " >&6
  4856. else
  4857. lt_cv_nm_interface="BSD nm"
  4858. echo "int some_variable = 0;" > conftest.$ac_ext
  4859. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4860. (eval "$ac_compile" 2>conftest.err)
  4861. cat conftest.err >&5
  4862. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4863. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4864. cat conftest.err >&5
  4865. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4866. cat conftest.out >&5
  4867. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4868. lt_cv_nm_interface="MS dumpbin"
  4869. fi
  4870. rm -f conftest*
  4871. fi
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4873. $as_echo "$lt_cv_nm_interface" >&6; }
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4875. $as_echo_n "checking whether ln -s works... " >&6; }
  4876. LN_S=$as_ln_s
  4877. if test "$LN_S" = "ln -s"; then
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4879. $as_echo "yes" >&6; }
  4880. else
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4882. $as_echo "no, using $LN_S" >&6; }
  4883. fi
  4884. # find the maximum length of command line arguments
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4886. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4887. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4888. $as_echo_n "(cached) " >&6
  4889. else
  4890. i=0
  4891. teststring="ABCD"
  4892. case $build_os in
  4893. msdosdjgpp*)
  4894. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4895. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4896. # during glob expansion). Even if it were fixed, the result of this
  4897. # check would be larger than it should be.
  4898. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4899. ;;
  4900. gnu*)
  4901. # Under GNU Hurd, this test is not required because there is
  4902. # no limit to the length of command line arguments.
  4903. # Libtool will interpret -1 as no limit whatsoever
  4904. lt_cv_sys_max_cmd_len=-1;
  4905. ;;
  4906. cygwin* | mingw* | cegcc*)
  4907. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4908. # about 5 minutes as the teststring grows exponentially.
  4909. # Worse, since 9x/ME are not pre-emptively multitasking,
  4910. # you end up with a "frozen" computer, even though with patience
  4911. # the test eventually succeeds (with a max line length of 256k).
  4912. # Instead, let's just punt: use the minimum linelength reported by
  4913. # all of the supported platforms: 8192 (on NT/2K/XP).
  4914. lt_cv_sys_max_cmd_len=8192;
  4915. ;;
  4916. mint*)
  4917. # On MiNT this can take a long time and run out of memory.
  4918. lt_cv_sys_max_cmd_len=8192;
  4919. ;;
  4920. amigaos*)
  4921. # On AmigaOS with pdksh, this test takes hours, literally.
  4922. # So we just punt and use a minimum line length of 8192.
  4923. lt_cv_sys_max_cmd_len=8192;
  4924. ;;
  4925. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4926. # This has been around since 386BSD, at least. Likely further.
  4927. if test -x /sbin/sysctl; then
  4928. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4929. elif test -x /usr/sbin/sysctl; then
  4930. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4931. else
  4932. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4933. fi
  4934. # And add a safety zone
  4935. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4936. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4937. ;;
  4938. interix*)
  4939. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4940. lt_cv_sys_max_cmd_len=196608
  4941. ;;
  4942. os2*)
  4943. # The test takes a long time on OS/2.
  4944. lt_cv_sys_max_cmd_len=8192
  4945. ;;
  4946. osf*)
  4947. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4948. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4949. # nice to cause kernel panics so lets avoid the loop below.
  4950. # First set a reasonable default.
  4951. lt_cv_sys_max_cmd_len=16384
  4952. #
  4953. if test -x /sbin/sysconfig; then
  4954. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4955. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4956. esac
  4957. fi
  4958. ;;
  4959. sco3.2v5*)
  4960. lt_cv_sys_max_cmd_len=102400
  4961. ;;
  4962. sysv5* | sco5v6* | sysv4.2uw2*)
  4963. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4964. if test -n "$kargmax"; then
  4965. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4966. else
  4967. lt_cv_sys_max_cmd_len=32768
  4968. fi
  4969. ;;
  4970. *)
  4971. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4972. if test -n "$lt_cv_sys_max_cmd_len" && \
  4973. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4974. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4975. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4976. else
  4977. # Make teststring a little bigger before we do anything with it.
  4978. # a 1K string should be a reasonable start.
  4979. for i in 1 2 3 4 5 6 7 8 ; do
  4980. teststring=$teststring$teststring
  4981. done
  4982. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4983. # If test is not a shell built-in, we'll probably end up computing a
  4984. # maximum length that is only half of the actual maximum length, but
  4985. # we can't tell.
  4986. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4987. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4988. test $i != 17 # 1/2 MB should be enough
  4989. do
  4990. i=`expr $i + 1`
  4991. teststring=$teststring$teststring
  4992. done
  4993. # Only check the string length outside the loop.
  4994. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4995. teststring=
  4996. # Add a significant safety factor because C++ compilers can tack on
  4997. # massive amounts of additional arguments before passing them to the
  4998. # linker. It appears as though 1/2 is a usable value.
  4999. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5000. fi
  5001. ;;
  5002. esac
  5003. fi
  5004. if test -n $lt_cv_sys_max_cmd_len ; then
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5006. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5007. else
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5009. $as_echo "none" >&6; }
  5010. fi
  5011. max_cmd_len=$lt_cv_sys_max_cmd_len
  5012. : ${CP="cp -f"}
  5013. : ${MV="mv -f"}
  5014. : ${RM="rm -f"}
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5016. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5017. # Try some XSI features
  5018. xsi_shell=no
  5019. ( _lt_dummy="a/b/c"
  5020. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5021. = c,a/b,b/c, \
  5022. && eval 'test $(( 1 + 1 )) -eq 2 \
  5023. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5024. && xsi_shell=yes
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5026. $as_echo "$xsi_shell" >&6; }
  5027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5028. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5029. lt_shell_append=no
  5030. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5031. >/dev/null 2>&1 \
  5032. && lt_shell_append=yes
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5034. $as_echo "$lt_shell_append" >&6; }
  5035. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5036. lt_unset=unset
  5037. else
  5038. lt_unset=false
  5039. fi
  5040. # test EBCDIC or ASCII
  5041. case `echo X|tr X '\101'` in
  5042. A) # ASCII based system
  5043. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5044. lt_SP2NL='tr \040 \012'
  5045. lt_NL2SP='tr \015\012 \040\040'
  5046. ;;
  5047. *) # EBCDIC based system
  5048. lt_SP2NL='tr \100 \n'
  5049. lt_NL2SP='tr \r\n \100\100'
  5050. ;;
  5051. esac
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5053. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5054. if ${lt_cv_to_host_file_cmd+:} false; then :
  5055. $as_echo_n "(cached) " >&6
  5056. else
  5057. case $host in
  5058. *-*-mingw* )
  5059. case $build in
  5060. *-*-mingw* ) # actually msys
  5061. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5062. ;;
  5063. *-*-cygwin* )
  5064. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5065. ;;
  5066. * ) # otherwise, assume *nix
  5067. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5068. ;;
  5069. esac
  5070. ;;
  5071. *-*-cygwin* )
  5072. case $build in
  5073. *-*-mingw* ) # actually msys
  5074. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5075. ;;
  5076. *-*-cygwin* )
  5077. lt_cv_to_host_file_cmd=func_convert_file_noop
  5078. ;;
  5079. * ) # otherwise, assume *nix
  5080. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5081. ;;
  5082. esac
  5083. ;;
  5084. * ) # unhandled hosts (and "normal" native builds)
  5085. lt_cv_to_host_file_cmd=func_convert_file_noop
  5086. ;;
  5087. esac
  5088. fi
  5089. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5091. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5093. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5094. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5095. $as_echo_n "(cached) " >&6
  5096. else
  5097. #assume ordinary cross tools, or native build.
  5098. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5099. case $host in
  5100. *-*-mingw* )
  5101. case $build in
  5102. *-*-mingw* ) # actually msys
  5103. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5104. ;;
  5105. esac
  5106. ;;
  5107. esac
  5108. fi
  5109. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5111. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5113. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5114. if ${lt_cv_ld_reload_flag+:} false; then :
  5115. $as_echo_n "(cached) " >&6
  5116. else
  5117. lt_cv_ld_reload_flag='-r'
  5118. fi
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5120. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5121. reload_flag=$lt_cv_ld_reload_flag
  5122. case $reload_flag in
  5123. "" | " "*) ;;
  5124. *) reload_flag=" $reload_flag" ;;
  5125. esac
  5126. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5127. case $host_os in
  5128. cygwin* | mingw* | pw32* | cegcc*)
  5129. if test "$GCC" != yes; then
  5130. reload_cmds=false
  5131. fi
  5132. ;;
  5133. darwin*)
  5134. if test "$GCC" = yes; then
  5135. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5136. else
  5137. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5138. fi
  5139. ;;
  5140. esac
  5141. if test -n "$ac_tool_prefix"; then
  5142. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5143. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5145. $as_echo_n "checking for $ac_word... " >&6; }
  5146. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5147. $as_echo_n "(cached) " >&6
  5148. else
  5149. if test -n "$OBJDUMP"; then
  5150. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5151. else
  5152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5153. for as_dir in $PATH
  5154. do
  5155. IFS=$as_save_IFS
  5156. test -z "$as_dir" && as_dir=.
  5157. for ac_exec_ext in '' $ac_executable_extensions; do
  5158. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5159. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5160. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5161. break 2
  5162. fi
  5163. done
  5164. done
  5165. IFS=$as_save_IFS
  5166. fi
  5167. fi
  5168. OBJDUMP=$ac_cv_prog_OBJDUMP
  5169. if test -n "$OBJDUMP"; then
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5171. $as_echo "$OBJDUMP" >&6; }
  5172. else
  5173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5174. $as_echo "no" >&6; }
  5175. fi
  5176. fi
  5177. if test -z "$ac_cv_prog_OBJDUMP"; then
  5178. ac_ct_OBJDUMP=$OBJDUMP
  5179. # Extract the first word of "objdump", so it can be a program name with args.
  5180. set dummy objdump; ac_word=$2
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5182. $as_echo_n "checking for $ac_word... " >&6; }
  5183. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5184. $as_echo_n "(cached) " >&6
  5185. else
  5186. if test -n "$ac_ct_OBJDUMP"; then
  5187. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5188. else
  5189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5190. for as_dir in $PATH
  5191. do
  5192. IFS=$as_save_IFS
  5193. test -z "$as_dir" && as_dir=.
  5194. for ac_exec_ext in '' $ac_executable_extensions; do
  5195. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5196. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5198. break 2
  5199. fi
  5200. done
  5201. done
  5202. IFS=$as_save_IFS
  5203. fi
  5204. fi
  5205. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5206. if test -n "$ac_ct_OBJDUMP"; then
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5208. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5209. else
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5211. $as_echo "no" >&6; }
  5212. fi
  5213. if test "x$ac_ct_OBJDUMP" = x; then
  5214. OBJDUMP="false"
  5215. else
  5216. case $cross_compiling:$ac_tool_warned in
  5217. yes:)
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5219. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5220. ac_tool_warned=yes ;;
  5221. esac
  5222. OBJDUMP=$ac_ct_OBJDUMP
  5223. fi
  5224. else
  5225. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5226. fi
  5227. test -z "$OBJDUMP" && OBJDUMP=objdump
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5229. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5230. if ${lt_cv_deplibs_check_method+:} false; then :
  5231. $as_echo_n "(cached) " >&6
  5232. else
  5233. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5234. lt_cv_file_magic_test_file=
  5235. lt_cv_deplibs_check_method='unknown'
  5236. # Need to set the preceding variable on all platforms that support
  5237. # interlibrary dependencies.
  5238. # 'none' -- dependencies not supported.
  5239. # `unknown' -- same as none, but documents that we really don't know.
  5240. # 'pass_all' -- all dependencies passed with no checks.
  5241. # 'test_compile' -- check by making test program.
  5242. # 'file_magic [[regex]]' -- check by looking for files in library path
  5243. # which responds to the $file_magic_cmd with a given extended regex.
  5244. # If you have `file' or equivalent on your system and you're not sure
  5245. # whether `pass_all' will *always* work, you probably want this one.
  5246. case $host_os in
  5247. aix[4-9]*)
  5248. lt_cv_deplibs_check_method=pass_all
  5249. ;;
  5250. beos*)
  5251. lt_cv_deplibs_check_method=pass_all
  5252. ;;
  5253. bsdi[45]*)
  5254. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5255. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5256. lt_cv_file_magic_test_file=/shlib/libc.so
  5257. ;;
  5258. cygwin*)
  5259. # func_win32_libid is a shell function defined in ltmain.sh
  5260. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5261. lt_cv_file_magic_cmd='func_win32_libid'
  5262. ;;
  5263. mingw* | pw32*)
  5264. # Base MSYS/MinGW do not provide the 'file' command needed by
  5265. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5266. # unless we find 'file', for example because we are cross-compiling.
  5267. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5268. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5269. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5270. lt_cv_file_magic_cmd='func_win32_libid'
  5271. else
  5272. # Keep this pattern in sync with the one in func_win32_libid.
  5273. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5274. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5275. fi
  5276. ;;
  5277. cegcc*)
  5278. # use the weaker test based on 'objdump'. See mingw*.
  5279. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5280. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5281. ;;
  5282. darwin* | rhapsody*)
  5283. lt_cv_deplibs_check_method=pass_all
  5284. ;;
  5285. freebsd* | dragonfly*)
  5286. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5287. case $host_cpu in
  5288. i*86 )
  5289. # Not sure whether the presence of OpenBSD here was a mistake.
  5290. # Let's accept both of them until this is cleared up.
  5291. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5292. lt_cv_file_magic_cmd=/usr/bin/file
  5293. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5294. ;;
  5295. esac
  5296. else
  5297. lt_cv_deplibs_check_method=pass_all
  5298. fi
  5299. ;;
  5300. haiku*)
  5301. lt_cv_deplibs_check_method=pass_all
  5302. ;;
  5303. hpux10.20* | hpux11*)
  5304. lt_cv_file_magic_cmd=/usr/bin/file
  5305. case $host_cpu in
  5306. ia64*)
  5307. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5308. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5309. ;;
  5310. hppa*64*)
  5311. 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]'
  5312. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5313. ;;
  5314. *)
  5315. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5316. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5317. ;;
  5318. esac
  5319. ;;
  5320. interix[3-9]*)
  5321. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5322. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5323. ;;
  5324. irix5* | irix6* | nonstopux*)
  5325. case $LD in
  5326. *-32|*"-32 ") libmagic=32-bit;;
  5327. *-n32|*"-n32 ") libmagic=N32;;
  5328. *-64|*"-64 ") libmagic=64-bit;;
  5329. *) libmagic=never-match;;
  5330. esac
  5331. lt_cv_deplibs_check_method=pass_all
  5332. ;;
  5333. # This must be glibc/ELF.
  5334. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5335. lt_cv_deplibs_check_method=pass_all
  5336. ;;
  5337. netbsd* | netbsdelf*-gnu)
  5338. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5339. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5340. else
  5341. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5342. fi
  5343. ;;
  5344. newos6*)
  5345. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5346. lt_cv_file_magic_cmd=/usr/bin/file
  5347. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5348. ;;
  5349. *nto* | *qnx*)
  5350. lt_cv_deplibs_check_method=pass_all
  5351. ;;
  5352. openbsd*)
  5353. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5354. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5355. else
  5356. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5357. fi
  5358. ;;
  5359. osf3* | osf4* | osf5*)
  5360. lt_cv_deplibs_check_method=pass_all
  5361. ;;
  5362. rdos*)
  5363. lt_cv_deplibs_check_method=pass_all
  5364. ;;
  5365. solaris*)
  5366. lt_cv_deplibs_check_method=pass_all
  5367. ;;
  5368. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5369. lt_cv_deplibs_check_method=pass_all
  5370. ;;
  5371. sysv4 | sysv4.3*)
  5372. case $host_vendor in
  5373. motorola)
  5374. 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]'
  5375. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5376. ;;
  5377. ncr)
  5378. lt_cv_deplibs_check_method=pass_all
  5379. ;;
  5380. sequent)
  5381. lt_cv_file_magic_cmd='/bin/file'
  5382. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5383. ;;
  5384. sni)
  5385. lt_cv_file_magic_cmd='/bin/file'
  5386. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5387. lt_cv_file_magic_test_file=/lib/libc.so
  5388. ;;
  5389. siemens)
  5390. lt_cv_deplibs_check_method=pass_all
  5391. ;;
  5392. pc)
  5393. lt_cv_deplibs_check_method=pass_all
  5394. ;;
  5395. esac
  5396. ;;
  5397. tpf*)
  5398. lt_cv_deplibs_check_method=pass_all
  5399. ;;
  5400. esac
  5401. fi
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5403. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5404. file_magic_glob=
  5405. want_nocaseglob=no
  5406. if test "$build" = "$host"; then
  5407. case $host_os in
  5408. mingw* | pw32*)
  5409. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5410. want_nocaseglob=yes
  5411. else
  5412. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5413. fi
  5414. ;;
  5415. esac
  5416. fi
  5417. file_magic_cmd=$lt_cv_file_magic_cmd
  5418. deplibs_check_method=$lt_cv_deplibs_check_method
  5419. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5420. if test -n "$ac_tool_prefix"; then
  5421. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5422. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5424. $as_echo_n "checking for $ac_word... " >&6; }
  5425. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5426. $as_echo_n "(cached) " >&6
  5427. else
  5428. if test -n "$DLLTOOL"; then
  5429. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5430. else
  5431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5432. for as_dir in $PATH
  5433. do
  5434. IFS=$as_save_IFS
  5435. test -z "$as_dir" && as_dir=.
  5436. for ac_exec_ext in '' $ac_executable_extensions; do
  5437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5438. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5440. break 2
  5441. fi
  5442. done
  5443. done
  5444. IFS=$as_save_IFS
  5445. fi
  5446. fi
  5447. DLLTOOL=$ac_cv_prog_DLLTOOL
  5448. if test -n "$DLLTOOL"; then
  5449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5450. $as_echo "$DLLTOOL" >&6; }
  5451. else
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5453. $as_echo "no" >&6; }
  5454. fi
  5455. fi
  5456. if test -z "$ac_cv_prog_DLLTOOL"; then
  5457. ac_ct_DLLTOOL=$DLLTOOL
  5458. # Extract the first word of "dlltool", so it can be a program name with args.
  5459. set dummy dlltool; ac_word=$2
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5461. $as_echo_n "checking for $ac_word... " >&6; }
  5462. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5463. $as_echo_n "(cached) " >&6
  5464. else
  5465. if test -n "$ac_ct_DLLTOOL"; then
  5466. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5467. else
  5468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5469. for as_dir in $PATH
  5470. do
  5471. IFS=$as_save_IFS
  5472. test -z "$as_dir" && as_dir=.
  5473. for ac_exec_ext in '' $ac_executable_extensions; do
  5474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5475. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5476. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5477. break 2
  5478. fi
  5479. done
  5480. done
  5481. IFS=$as_save_IFS
  5482. fi
  5483. fi
  5484. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5485. if test -n "$ac_ct_DLLTOOL"; then
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5487. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5488. else
  5489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5490. $as_echo "no" >&6; }
  5491. fi
  5492. if test "x$ac_ct_DLLTOOL" = x; then
  5493. DLLTOOL="false"
  5494. else
  5495. case $cross_compiling:$ac_tool_warned in
  5496. yes:)
  5497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5498. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5499. ac_tool_warned=yes ;;
  5500. esac
  5501. DLLTOOL=$ac_ct_DLLTOOL
  5502. fi
  5503. else
  5504. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5505. fi
  5506. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5508. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5509. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5510. $as_echo_n "(cached) " >&6
  5511. else
  5512. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5513. case $host_os in
  5514. cygwin* | mingw* | pw32* | cegcc*)
  5515. # two different shell functions defined in ltmain.sh
  5516. # decide which to use based on capabilities of $DLLTOOL
  5517. case `$DLLTOOL --help 2>&1` in
  5518. *--identify-strict*)
  5519. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5520. ;;
  5521. *)
  5522. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5523. ;;
  5524. esac
  5525. ;;
  5526. *)
  5527. # fallback: assume linklib IS sharedlib
  5528. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5529. ;;
  5530. esac
  5531. fi
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5533. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5534. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5535. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5536. if test -n "$ac_tool_prefix"; then
  5537. for ac_prog in ar
  5538. do
  5539. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5540. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5542. $as_echo_n "checking for $ac_word... " >&6; }
  5543. if ${ac_cv_prog_AR+:} false; then :
  5544. $as_echo_n "(cached) " >&6
  5545. else
  5546. if test -n "$AR"; then
  5547. ac_cv_prog_AR="$AR" # Let the user override the test.
  5548. else
  5549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5550. for as_dir in $PATH
  5551. do
  5552. IFS=$as_save_IFS
  5553. test -z "$as_dir" && as_dir=.
  5554. for ac_exec_ext in '' $ac_executable_extensions; do
  5555. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5556. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5557. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5558. break 2
  5559. fi
  5560. done
  5561. done
  5562. IFS=$as_save_IFS
  5563. fi
  5564. fi
  5565. AR=$ac_cv_prog_AR
  5566. if test -n "$AR"; then
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5568. $as_echo "$AR" >&6; }
  5569. else
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5571. $as_echo "no" >&6; }
  5572. fi
  5573. test -n "$AR" && break
  5574. done
  5575. fi
  5576. if test -z "$AR"; then
  5577. ac_ct_AR=$AR
  5578. for ac_prog in ar
  5579. do
  5580. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5581. set dummy $ac_prog; ac_word=$2
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5583. $as_echo_n "checking for $ac_word... " >&6; }
  5584. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5585. $as_echo_n "(cached) " >&6
  5586. else
  5587. if test -n "$ac_ct_AR"; then
  5588. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5589. else
  5590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5591. for as_dir in $PATH
  5592. do
  5593. IFS=$as_save_IFS
  5594. test -z "$as_dir" && as_dir=.
  5595. for ac_exec_ext in '' $ac_executable_extensions; do
  5596. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5597. ac_cv_prog_ac_ct_AR="$ac_prog"
  5598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5599. break 2
  5600. fi
  5601. done
  5602. done
  5603. IFS=$as_save_IFS
  5604. fi
  5605. fi
  5606. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5607. if test -n "$ac_ct_AR"; then
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5609. $as_echo "$ac_ct_AR" >&6; }
  5610. else
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5612. $as_echo "no" >&6; }
  5613. fi
  5614. test -n "$ac_ct_AR" && break
  5615. done
  5616. if test "x$ac_ct_AR" = x; then
  5617. AR="false"
  5618. else
  5619. case $cross_compiling:$ac_tool_warned in
  5620. yes:)
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5622. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5623. ac_tool_warned=yes ;;
  5624. esac
  5625. AR=$ac_ct_AR
  5626. fi
  5627. fi
  5628. : ${AR=ar}
  5629. : ${AR_FLAGS=cru}
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5631. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5632. if ${lt_cv_ar_at_file+:} false; then :
  5633. $as_echo_n "(cached) " >&6
  5634. else
  5635. lt_cv_ar_at_file=no
  5636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5637. /* end confdefs.h. */
  5638. int
  5639. main ()
  5640. {
  5641. ;
  5642. return 0;
  5643. }
  5644. _ACEOF
  5645. if ac_fn_cxx_try_compile "$LINENO"; then :
  5646. echo conftest.$ac_objext > conftest.lst
  5647. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5648. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5649. (eval $lt_ar_try) 2>&5
  5650. ac_status=$?
  5651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5652. test $ac_status = 0; }
  5653. if test "$ac_status" -eq 0; then
  5654. # Ensure the archiver fails upon bogus file names.
  5655. rm -f conftest.$ac_objext libconftest.a
  5656. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5657. (eval $lt_ar_try) 2>&5
  5658. ac_status=$?
  5659. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5660. test $ac_status = 0; }
  5661. if test "$ac_status" -ne 0; then
  5662. lt_cv_ar_at_file=@
  5663. fi
  5664. fi
  5665. rm -f conftest.* libconftest.a
  5666. fi
  5667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5668. fi
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5670. $as_echo "$lt_cv_ar_at_file" >&6; }
  5671. if test "x$lt_cv_ar_at_file" = xno; then
  5672. archiver_list_spec=
  5673. else
  5674. archiver_list_spec=$lt_cv_ar_at_file
  5675. fi
  5676. if test -n "$ac_tool_prefix"; then
  5677. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5678. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5680. $as_echo_n "checking for $ac_word... " >&6; }
  5681. if ${ac_cv_prog_STRIP+:} false; then :
  5682. $as_echo_n "(cached) " >&6
  5683. else
  5684. if test -n "$STRIP"; then
  5685. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5686. else
  5687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5688. for as_dir in $PATH
  5689. do
  5690. IFS=$as_save_IFS
  5691. test -z "$as_dir" && as_dir=.
  5692. for ac_exec_ext in '' $ac_executable_extensions; do
  5693. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5694. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5695. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5696. break 2
  5697. fi
  5698. done
  5699. done
  5700. IFS=$as_save_IFS
  5701. fi
  5702. fi
  5703. STRIP=$ac_cv_prog_STRIP
  5704. if test -n "$STRIP"; then
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5706. $as_echo "$STRIP" >&6; }
  5707. else
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5709. $as_echo "no" >&6; }
  5710. fi
  5711. fi
  5712. if test -z "$ac_cv_prog_STRIP"; then
  5713. ac_ct_STRIP=$STRIP
  5714. # Extract the first word of "strip", so it can be a program name with args.
  5715. set dummy strip; ac_word=$2
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5717. $as_echo_n "checking for $ac_word... " >&6; }
  5718. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5719. $as_echo_n "(cached) " >&6
  5720. else
  5721. if test -n "$ac_ct_STRIP"; then
  5722. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5723. else
  5724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5725. for as_dir in $PATH
  5726. do
  5727. IFS=$as_save_IFS
  5728. test -z "$as_dir" && as_dir=.
  5729. for ac_exec_ext in '' $ac_executable_extensions; do
  5730. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5731. ac_cv_prog_ac_ct_STRIP="strip"
  5732. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5733. break 2
  5734. fi
  5735. done
  5736. done
  5737. IFS=$as_save_IFS
  5738. fi
  5739. fi
  5740. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5741. if test -n "$ac_ct_STRIP"; then
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5743. $as_echo "$ac_ct_STRIP" >&6; }
  5744. else
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5746. $as_echo "no" >&6; }
  5747. fi
  5748. if test "x$ac_ct_STRIP" = x; then
  5749. STRIP=":"
  5750. else
  5751. case $cross_compiling:$ac_tool_warned in
  5752. yes:)
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5754. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5755. ac_tool_warned=yes ;;
  5756. esac
  5757. STRIP=$ac_ct_STRIP
  5758. fi
  5759. else
  5760. STRIP="$ac_cv_prog_STRIP"
  5761. fi
  5762. test -z "$STRIP" && STRIP=:
  5763. if test -n "$ac_tool_prefix"; then
  5764. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5765. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5767. $as_echo_n "checking for $ac_word... " >&6; }
  5768. if ${ac_cv_prog_RANLIB+:} false; then :
  5769. $as_echo_n "(cached) " >&6
  5770. else
  5771. if test -n "$RANLIB"; then
  5772. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5773. else
  5774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5775. for as_dir in $PATH
  5776. do
  5777. IFS=$as_save_IFS
  5778. test -z "$as_dir" && as_dir=.
  5779. for ac_exec_ext in '' $ac_executable_extensions; do
  5780. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5781. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5782. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5783. break 2
  5784. fi
  5785. done
  5786. done
  5787. IFS=$as_save_IFS
  5788. fi
  5789. fi
  5790. RANLIB=$ac_cv_prog_RANLIB
  5791. if test -n "$RANLIB"; then
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5793. $as_echo "$RANLIB" >&6; }
  5794. else
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5796. $as_echo "no" >&6; }
  5797. fi
  5798. fi
  5799. if test -z "$ac_cv_prog_RANLIB"; then
  5800. ac_ct_RANLIB=$RANLIB
  5801. # Extract the first word of "ranlib", so it can be a program name with args.
  5802. set dummy ranlib; ac_word=$2
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5804. $as_echo_n "checking for $ac_word... " >&6; }
  5805. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5806. $as_echo_n "(cached) " >&6
  5807. else
  5808. if test -n "$ac_ct_RANLIB"; then
  5809. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5810. else
  5811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5812. for as_dir in $PATH
  5813. do
  5814. IFS=$as_save_IFS
  5815. test -z "$as_dir" && as_dir=.
  5816. for ac_exec_ext in '' $ac_executable_extensions; do
  5817. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5818. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5820. break 2
  5821. fi
  5822. done
  5823. done
  5824. IFS=$as_save_IFS
  5825. fi
  5826. fi
  5827. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5828. if test -n "$ac_ct_RANLIB"; then
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5830. $as_echo "$ac_ct_RANLIB" >&6; }
  5831. else
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5833. $as_echo "no" >&6; }
  5834. fi
  5835. if test "x$ac_ct_RANLIB" = x; then
  5836. RANLIB=":"
  5837. else
  5838. case $cross_compiling:$ac_tool_warned in
  5839. yes:)
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5841. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5842. ac_tool_warned=yes ;;
  5843. esac
  5844. RANLIB=$ac_ct_RANLIB
  5845. fi
  5846. else
  5847. RANLIB="$ac_cv_prog_RANLIB"
  5848. fi
  5849. test -z "$RANLIB" && RANLIB=:
  5850. # Determine commands to create old-style static archives.
  5851. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5852. old_postinstall_cmds='chmod 644 $oldlib'
  5853. old_postuninstall_cmds=
  5854. if test -n "$RANLIB"; then
  5855. case $host_os in
  5856. openbsd*)
  5857. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5858. ;;
  5859. *)
  5860. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5861. ;;
  5862. esac
  5863. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5864. fi
  5865. case $host_os in
  5866. darwin*)
  5867. lock_old_archive_extraction=yes ;;
  5868. *)
  5869. lock_old_archive_extraction=no ;;
  5870. esac
  5871. # If no C compiler was specified, use CC.
  5872. LTCC=${LTCC-"$CC"}
  5873. # If no C compiler flags were specified, use CFLAGS.
  5874. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5875. # Allow CC to be a program name with arguments.
  5876. compiler=$CC
  5877. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5879. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5880. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5881. $as_echo_n "(cached) " >&6
  5882. else
  5883. # These are sane defaults that work on at least a few old systems.
  5884. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5885. # Character class describing NM global symbol codes.
  5886. symcode='[BCDEGRST]'
  5887. # Regexp to match symbols that can be accessed directly from C.
  5888. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5889. # Define system-specific variables.
  5890. case $host_os in
  5891. aix*)
  5892. symcode='[BCDT]'
  5893. ;;
  5894. cygwin* | mingw* | pw32* | cegcc*)
  5895. symcode='[ABCDGISTW]'
  5896. ;;
  5897. hpux*)
  5898. if test "$host_cpu" = ia64; then
  5899. symcode='[ABCDEGRST]'
  5900. fi
  5901. ;;
  5902. irix* | nonstopux*)
  5903. symcode='[BCDEGRST]'
  5904. ;;
  5905. osf*)
  5906. symcode='[BCDEGQRST]'
  5907. ;;
  5908. solaris*)
  5909. symcode='[BDRT]'
  5910. ;;
  5911. sco3.2v5*)
  5912. symcode='[DT]'
  5913. ;;
  5914. sysv4.2uw2*)
  5915. symcode='[DT]'
  5916. ;;
  5917. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5918. symcode='[ABDT]'
  5919. ;;
  5920. sysv4)
  5921. symcode='[DFNSTU]'
  5922. ;;
  5923. esac
  5924. # If we're using GNU nm, then use its standard symbol codes.
  5925. case `$NM -V 2>&1` in
  5926. *GNU* | *'with BFD'*)
  5927. symcode='[ABCDGIRSTW]' ;;
  5928. esac
  5929. # Transform an extracted symbol line into a proper C declaration.
  5930. # Some systems (esp. on ia64) link data and code symbols differently,
  5931. # so use this general approach.
  5932. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5933. # Transform an extracted symbol line into symbol name and symbol address
  5934. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5935. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5936. # Handle CRLF in mingw tool chain
  5937. opt_cr=
  5938. case $build_os in
  5939. mingw*)
  5940. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5941. ;;
  5942. esac
  5943. # Try without a prefix underscore, then with it.
  5944. for ac_symprfx in "" "_"; do
  5945. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5946. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5947. # Write the raw and C identifiers.
  5948. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5949. # Fake it for dumpbin and say T for any non-static function
  5950. # and D for any global variable.
  5951. # Also find C++ and __fastcall symbols from MSVC++,
  5952. # which start with @ or ?.
  5953. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5954. " {last_section=section; section=\$ 3};"\
  5955. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5956. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5957. " \$ 0!~/External *\|/{next};"\
  5958. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5959. " {if(hide[section]) next};"\
  5960. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5961. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5962. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5963. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5964. " ' prfx=^$ac_symprfx"
  5965. else
  5966. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5967. fi
  5968. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5969. # Check to see that the pipe works correctly.
  5970. pipe_works=no
  5971. rm -f conftest*
  5972. cat > conftest.$ac_ext <<_LT_EOF
  5973. #ifdef __cplusplus
  5974. extern "C" {
  5975. #endif
  5976. char nm_test_var;
  5977. void nm_test_func(void);
  5978. void nm_test_func(void){}
  5979. #ifdef __cplusplus
  5980. }
  5981. #endif
  5982. int main(){nm_test_var='a';nm_test_func();return(0);}
  5983. _LT_EOF
  5984. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5985. (eval $ac_compile) 2>&5
  5986. ac_status=$?
  5987. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5988. test $ac_status = 0; }; then
  5989. # Now try to grab the symbols.
  5990. nlist=conftest.nm
  5991. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5992. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5993. ac_status=$?
  5994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5995. test $ac_status = 0; } && test -s "$nlist"; then
  5996. # Try sorting and uniquifying the output.
  5997. if sort "$nlist" | uniq > "$nlist"T; then
  5998. mv -f "$nlist"T "$nlist"
  5999. else
  6000. rm -f "$nlist"T
  6001. fi
  6002. # Make sure that we snagged all the symbols we need.
  6003. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6004. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6005. cat <<_LT_EOF > conftest.$ac_ext
  6006. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6007. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6008. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6009. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6010. # define LT_DLSYM_CONST
  6011. #elif defined(__osf__)
  6012. /* This system does not cope well with relocations in const data. */
  6013. # define LT_DLSYM_CONST
  6014. #else
  6015. # define LT_DLSYM_CONST const
  6016. #endif
  6017. #ifdef __cplusplus
  6018. extern "C" {
  6019. #endif
  6020. _LT_EOF
  6021. # Now generate the symbol file.
  6022. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6023. cat <<_LT_EOF >> conftest.$ac_ext
  6024. /* The mapping between symbol names and symbols. */
  6025. LT_DLSYM_CONST struct {
  6026. const char *name;
  6027. void *address;
  6028. }
  6029. lt__PROGRAM__LTX_preloaded_symbols[] =
  6030. {
  6031. { "@PROGRAM@", (void *) 0 },
  6032. _LT_EOF
  6033. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6034. cat <<\_LT_EOF >> conftest.$ac_ext
  6035. {0, (void *) 0}
  6036. };
  6037. /* This works around a problem in FreeBSD linker */
  6038. #ifdef FREEBSD_WORKAROUND
  6039. static const void *lt_preloaded_setup() {
  6040. return lt__PROGRAM__LTX_preloaded_symbols;
  6041. }
  6042. #endif
  6043. #ifdef __cplusplus
  6044. }
  6045. #endif
  6046. _LT_EOF
  6047. # Now try linking the two files.
  6048. mv conftest.$ac_objext conftstm.$ac_objext
  6049. lt_globsym_save_LIBS=$LIBS
  6050. lt_globsym_save_CFLAGS=$CFLAGS
  6051. LIBS="conftstm.$ac_objext"
  6052. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6053. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6054. (eval $ac_link) 2>&5
  6055. ac_status=$?
  6056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6057. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6058. pipe_works=yes
  6059. fi
  6060. LIBS=$lt_globsym_save_LIBS
  6061. CFLAGS=$lt_globsym_save_CFLAGS
  6062. else
  6063. echo "cannot find nm_test_func in $nlist" >&5
  6064. fi
  6065. else
  6066. echo "cannot find nm_test_var in $nlist" >&5
  6067. fi
  6068. else
  6069. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6070. fi
  6071. else
  6072. echo "$progname: failed program was:" >&5
  6073. cat conftest.$ac_ext >&5
  6074. fi
  6075. rm -rf conftest* conftst*
  6076. # Do not use the global_symbol_pipe unless it works.
  6077. if test "$pipe_works" = yes; then
  6078. break
  6079. else
  6080. lt_cv_sys_global_symbol_pipe=
  6081. fi
  6082. done
  6083. fi
  6084. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6085. lt_cv_sys_global_symbol_to_cdecl=
  6086. fi
  6087. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6089. $as_echo "failed" >&6; }
  6090. else
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6092. $as_echo "ok" >&6; }
  6093. fi
  6094. # Response file support.
  6095. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6096. nm_file_list_spec='@'
  6097. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6098. nm_file_list_spec='@'
  6099. fi
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6101. $as_echo_n "checking for sysroot... " >&6; }
  6102. # Check whether --with-sysroot was given.
  6103. if test "${with_sysroot+set}" = set; then :
  6104. withval=$with_sysroot;
  6105. else
  6106. with_sysroot=no
  6107. fi
  6108. lt_sysroot=
  6109. case ${with_sysroot} in #(
  6110. yes)
  6111. if test "$GCC" = yes; then
  6112. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6113. fi
  6114. ;; #(
  6115. /*)
  6116. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6117. ;; #(
  6118. no|'')
  6119. ;; #(
  6120. *)
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6122. $as_echo "${with_sysroot}" >&6; }
  6123. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6124. ;;
  6125. esac
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6127. $as_echo "${lt_sysroot:-no}" >&6; }
  6128. # Check whether --enable-libtool-lock was given.
  6129. if test "${enable_libtool_lock+set}" = set; then :
  6130. enableval=$enable_libtool_lock;
  6131. fi
  6132. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6133. # Some flags need to be propagated to the compiler or linker for good
  6134. # libtool support.
  6135. case $host in
  6136. ia64-*-hpux*)
  6137. # Find out which ABI we are using.
  6138. echo 'int i;' > conftest.$ac_ext
  6139. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6140. (eval $ac_compile) 2>&5
  6141. ac_status=$?
  6142. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6143. test $ac_status = 0; }; then
  6144. case `/usr/bin/file conftest.$ac_objext` in
  6145. *ELF-32*)
  6146. HPUX_IA64_MODE="32"
  6147. ;;
  6148. *ELF-64*)
  6149. HPUX_IA64_MODE="64"
  6150. ;;
  6151. esac
  6152. fi
  6153. rm -rf conftest*
  6154. ;;
  6155. *-*-irix6*)
  6156. # Find out which ABI we are using.
  6157. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6158. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6159. (eval $ac_compile) 2>&5
  6160. ac_status=$?
  6161. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6162. test $ac_status = 0; }; then
  6163. if test "$lt_cv_prog_gnu_ld" = yes; then
  6164. case `/usr/bin/file conftest.$ac_objext` in
  6165. *32-bit*)
  6166. LD="${LD-ld} -melf32bsmip"
  6167. ;;
  6168. *N32*)
  6169. LD="${LD-ld} -melf32bmipn32"
  6170. ;;
  6171. *64-bit*)
  6172. LD="${LD-ld} -melf64bmip"
  6173. ;;
  6174. esac
  6175. else
  6176. case `/usr/bin/file conftest.$ac_objext` in
  6177. *32-bit*)
  6178. LD="${LD-ld} -32"
  6179. ;;
  6180. *N32*)
  6181. LD="${LD-ld} -n32"
  6182. ;;
  6183. *64-bit*)
  6184. LD="${LD-ld} -64"
  6185. ;;
  6186. esac
  6187. fi
  6188. fi
  6189. rm -rf conftest*
  6190. ;;
  6191. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6192. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6193. # Find out which ABI we are using.
  6194. echo 'int i;' > conftest.$ac_ext
  6195. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6196. (eval $ac_compile) 2>&5
  6197. ac_status=$?
  6198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6199. test $ac_status = 0; }; then
  6200. case `/usr/bin/file conftest.o` in
  6201. *32-bit*)
  6202. case $host in
  6203. x86_64-*kfreebsd*-gnu)
  6204. LD="${LD-ld} -m elf_i386_fbsd"
  6205. ;;
  6206. x86_64-*linux*)
  6207. case `/usr/bin/file conftest.o` in
  6208. *x86-64*)
  6209. LD="${LD-ld} -m elf32_x86_64"
  6210. ;;
  6211. *)
  6212. LD="${LD-ld} -m elf_i386"
  6213. ;;
  6214. esac
  6215. ;;
  6216. powerpc64le-*)
  6217. LD="${LD-ld} -m elf32lppclinux"
  6218. ;;
  6219. powerpc64-*)
  6220. LD="${LD-ld} -m elf32ppclinux"
  6221. ;;
  6222. s390x-*linux*)
  6223. LD="${LD-ld} -m elf_s390"
  6224. ;;
  6225. sparc64-*linux*)
  6226. LD="${LD-ld} -m elf32_sparc"
  6227. ;;
  6228. esac
  6229. ;;
  6230. *64-bit*)
  6231. case $host in
  6232. x86_64-*kfreebsd*-gnu)
  6233. LD="${LD-ld} -m elf_x86_64_fbsd"
  6234. ;;
  6235. x86_64-*linux*)
  6236. LD="${LD-ld} -m elf_x86_64"
  6237. ;;
  6238. powerpcle-*)
  6239. LD="${LD-ld} -m elf64lppc"
  6240. ;;
  6241. powerpc-*)
  6242. LD="${LD-ld} -m elf64ppc"
  6243. ;;
  6244. s390*-*linux*|s390*-*tpf*)
  6245. LD="${LD-ld} -m elf64_s390"
  6246. ;;
  6247. sparc*-*linux*)
  6248. LD="${LD-ld} -m elf64_sparc"
  6249. ;;
  6250. esac
  6251. ;;
  6252. esac
  6253. fi
  6254. rm -rf conftest*
  6255. ;;
  6256. *-*-sco3.2v5*)
  6257. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6258. SAVE_CFLAGS="$CFLAGS"
  6259. CFLAGS="$CFLAGS -belf"
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6261. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6262. if ${lt_cv_cc_needs_belf+:} false; then :
  6263. $as_echo_n "(cached) " >&6
  6264. else
  6265. ac_ext=c
  6266. ac_cpp='$CPP $CPPFLAGS'
  6267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6271. /* end confdefs.h. */
  6272. int
  6273. main ()
  6274. {
  6275. ;
  6276. return 0;
  6277. }
  6278. _ACEOF
  6279. if ac_fn_c_try_link "$LINENO"; then :
  6280. lt_cv_cc_needs_belf=yes
  6281. else
  6282. lt_cv_cc_needs_belf=no
  6283. fi
  6284. rm -f core conftest.err conftest.$ac_objext \
  6285. conftest$ac_exeext conftest.$ac_ext
  6286. ac_ext=c
  6287. ac_cpp='$CPP $CPPFLAGS'
  6288. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6289. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6290. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6291. fi
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6293. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6294. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6295. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6296. CFLAGS="$SAVE_CFLAGS"
  6297. fi
  6298. ;;
  6299. *-*solaris*)
  6300. # Find out which ABI we are using.
  6301. echo 'int i;' > conftest.$ac_ext
  6302. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6303. (eval $ac_compile) 2>&5
  6304. ac_status=$?
  6305. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6306. test $ac_status = 0; }; then
  6307. case `/usr/bin/file conftest.o` in
  6308. *64-bit*)
  6309. case $lt_cv_prog_gnu_ld in
  6310. yes*)
  6311. case $host in
  6312. i?86-*-solaris*)
  6313. LD="${LD-ld} -m elf_x86_64"
  6314. ;;
  6315. sparc*-*-solaris*)
  6316. LD="${LD-ld} -m elf64_sparc"
  6317. ;;
  6318. esac
  6319. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6320. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6321. LD="${LD-ld}_sol2"
  6322. fi
  6323. ;;
  6324. *)
  6325. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6326. LD="${LD-ld} -64"
  6327. fi
  6328. ;;
  6329. esac
  6330. ;;
  6331. esac
  6332. fi
  6333. rm -rf conftest*
  6334. ;;
  6335. esac
  6336. need_locks="$enable_libtool_lock"
  6337. if test -n "$ac_tool_prefix"; then
  6338. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6339. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6341. $as_echo_n "checking for $ac_word... " >&6; }
  6342. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6343. $as_echo_n "(cached) " >&6
  6344. else
  6345. if test -n "$MANIFEST_TOOL"; then
  6346. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6347. else
  6348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6349. for as_dir in $PATH
  6350. do
  6351. IFS=$as_save_IFS
  6352. test -z "$as_dir" && as_dir=.
  6353. for ac_exec_ext in '' $ac_executable_extensions; do
  6354. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6355. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6356. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6357. break 2
  6358. fi
  6359. done
  6360. done
  6361. IFS=$as_save_IFS
  6362. fi
  6363. fi
  6364. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6365. if test -n "$MANIFEST_TOOL"; then
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6367. $as_echo "$MANIFEST_TOOL" >&6; }
  6368. else
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6370. $as_echo "no" >&6; }
  6371. fi
  6372. fi
  6373. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6374. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6375. # Extract the first word of "mt", so it can be a program name with args.
  6376. set dummy mt; ac_word=$2
  6377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6378. $as_echo_n "checking for $ac_word... " >&6; }
  6379. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6380. $as_echo_n "(cached) " >&6
  6381. else
  6382. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6383. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6384. else
  6385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6386. for as_dir in $PATH
  6387. do
  6388. IFS=$as_save_IFS
  6389. test -z "$as_dir" && as_dir=.
  6390. for ac_exec_ext in '' $ac_executable_extensions; do
  6391. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6392. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6394. break 2
  6395. fi
  6396. done
  6397. done
  6398. IFS=$as_save_IFS
  6399. fi
  6400. fi
  6401. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6402. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6404. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6405. else
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6407. $as_echo "no" >&6; }
  6408. fi
  6409. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6410. MANIFEST_TOOL=":"
  6411. else
  6412. case $cross_compiling:$ac_tool_warned in
  6413. yes:)
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6415. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6416. ac_tool_warned=yes ;;
  6417. esac
  6418. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6419. fi
  6420. else
  6421. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6422. fi
  6423. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6425. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6426. if ${lt_cv_path_mainfest_tool+:} false; then :
  6427. $as_echo_n "(cached) " >&6
  6428. else
  6429. lt_cv_path_mainfest_tool=no
  6430. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6431. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6432. cat conftest.err >&5
  6433. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6434. lt_cv_path_mainfest_tool=yes
  6435. fi
  6436. rm -f conftest*
  6437. fi
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6439. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6440. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6441. MANIFEST_TOOL=:
  6442. fi
  6443. case $host_os in
  6444. rhapsody* | darwin*)
  6445. if test -n "$ac_tool_prefix"; then
  6446. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6447. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6449. $as_echo_n "checking for $ac_word... " >&6; }
  6450. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6451. $as_echo_n "(cached) " >&6
  6452. else
  6453. if test -n "$DSYMUTIL"; then
  6454. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6455. else
  6456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6457. for as_dir in $PATH
  6458. do
  6459. IFS=$as_save_IFS
  6460. test -z "$as_dir" && as_dir=.
  6461. for ac_exec_ext in '' $ac_executable_extensions; do
  6462. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6463. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6465. break 2
  6466. fi
  6467. done
  6468. done
  6469. IFS=$as_save_IFS
  6470. fi
  6471. fi
  6472. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6473. if test -n "$DSYMUTIL"; then
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6475. $as_echo "$DSYMUTIL" >&6; }
  6476. else
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6478. $as_echo "no" >&6; }
  6479. fi
  6480. fi
  6481. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6482. ac_ct_DSYMUTIL=$DSYMUTIL
  6483. # Extract the first word of "dsymutil", so it can be a program name with args.
  6484. set dummy dsymutil; ac_word=$2
  6485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6486. $as_echo_n "checking for $ac_word... " >&6; }
  6487. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6488. $as_echo_n "(cached) " >&6
  6489. else
  6490. if test -n "$ac_ct_DSYMUTIL"; then
  6491. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6492. else
  6493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6494. for as_dir in $PATH
  6495. do
  6496. IFS=$as_save_IFS
  6497. test -z "$as_dir" && as_dir=.
  6498. for ac_exec_ext in '' $ac_executable_extensions; do
  6499. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6500. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6501. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6502. break 2
  6503. fi
  6504. done
  6505. done
  6506. IFS=$as_save_IFS
  6507. fi
  6508. fi
  6509. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6510. if test -n "$ac_ct_DSYMUTIL"; then
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6512. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6513. else
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6515. $as_echo "no" >&6; }
  6516. fi
  6517. if test "x$ac_ct_DSYMUTIL" = x; then
  6518. DSYMUTIL=":"
  6519. else
  6520. case $cross_compiling:$ac_tool_warned in
  6521. yes:)
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6523. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6524. ac_tool_warned=yes ;;
  6525. esac
  6526. DSYMUTIL=$ac_ct_DSYMUTIL
  6527. fi
  6528. else
  6529. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6530. fi
  6531. if test -n "$ac_tool_prefix"; then
  6532. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6533. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6535. $as_echo_n "checking for $ac_word... " >&6; }
  6536. if ${ac_cv_prog_NMEDIT+:} false; then :
  6537. $as_echo_n "(cached) " >&6
  6538. else
  6539. if test -n "$NMEDIT"; then
  6540. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6541. else
  6542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6543. for as_dir in $PATH
  6544. do
  6545. IFS=$as_save_IFS
  6546. test -z "$as_dir" && as_dir=.
  6547. for ac_exec_ext in '' $ac_executable_extensions; do
  6548. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6549. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6551. break 2
  6552. fi
  6553. done
  6554. done
  6555. IFS=$as_save_IFS
  6556. fi
  6557. fi
  6558. NMEDIT=$ac_cv_prog_NMEDIT
  6559. if test -n "$NMEDIT"; then
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6561. $as_echo "$NMEDIT" >&6; }
  6562. else
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6564. $as_echo "no" >&6; }
  6565. fi
  6566. fi
  6567. if test -z "$ac_cv_prog_NMEDIT"; then
  6568. ac_ct_NMEDIT=$NMEDIT
  6569. # Extract the first word of "nmedit", so it can be a program name with args.
  6570. set dummy nmedit; ac_word=$2
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6572. $as_echo_n "checking for $ac_word... " >&6; }
  6573. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6574. $as_echo_n "(cached) " >&6
  6575. else
  6576. if test -n "$ac_ct_NMEDIT"; then
  6577. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6578. else
  6579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6580. for as_dir in $PATH
  6581. do
  6582. IFS=$as_save_IFS
  6583. test -z "$as_dir" && as_dir=.
  6584. for ac_exec_ext in '' $ac_executable_extensions; do
  6585. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6586. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6588. break 2
  6589. fi
  6590. done
  6591. done
  6592. IFS=$as_save_IFS
  6593. fi
  6594. fi
  6595. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6596. if test -n "$ac_ct_NMEDIT"; then
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6598. $as_echo "$ac_ct_NMEDIT" >&6; }
  6599. else
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6601. $as_echo "no" >&6; }
  6602. fi
  6603. if test "x$ac_ct_NMEDIT" = x; then
  6604. NMEDIT=":"
  6605. else
  6606. case $cross_compiling:$ac_tool_warned in
  6607. yes:)
  6608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6609. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6610. ac_tool_warned=yes ;;
  6611. esac
  6612. NMEDIT=$ac_ct_NMEDIT
  6613. fi
  6614. else
  6615. NMEDIT="$ac_cv_prog_NMEDIT"
  6616. fi
  6617. if test -n "$ac_tool_prefix"; then
  6618. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6619. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6621. $as_echo_n "checking for $ac_word... " >&6; }
  6622. if ${ac_cv_prog_LIPO+:} false; then :
  6623. $as_echo_n "(cached) " >&6
  6624. else
  6625. if test -n "$LIPO"; then
  6626. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6627. else
  6628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6629. for as_dir in $PATH
  6630. do
  6631. IFS=$as_save_IFS
  6632. test -z "$as_dir" && as_dir=.
  6633. for ac_exec_ext in '' $ac_executable_extensions; do
  6634. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6635. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6636. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6637. break 2
  6638. fi
  6639. done
  6640. done
  6641. IFS=$as_save_IFS
  6642. fi
  6643. fi
  6644. LIPO=$ac_cv_prog_LIPO
  6645. if test -n "$LIPO"; then
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6647. $as_echo "$LIPO" >&6; }
  6648. else
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6650. $as_echo "no" >&6; }
  6651. fi
  6652. fi
  6653. if test -z "$ac_cv_prog_LIPO"; then
  6654. ac_ct_LIPO=$LIPO
  6655. # Extract the first word of "lipo", so it can be a program name with args.
  6656. set dummy lipo; ac_word=$2
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6658. $as_echo_n "checking for $ac_word... " >&6; }
  6659. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6660. $as_echo_n "(cached) " >&6
  6661. else
  6662. if test -n "$ac_ct_LIPO"; then
  6663. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6664. else
  6665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6666. for as_dir in $PATH
  6667. do
  6668. IFS=$as_save_IFS
  6669. test -z "$as_dir" && as_dir=.
  6670. for ac_exec_ext in '' $ac_executable_extensions; do
  6671. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6672. ac_cv_prog_ac_ct_LIPO="lipo"
  6673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6674. break 2
  6675. fi
  6676. done
  6677. done
  6678. IFS=$as_save_IFS
  6679. fi
  6680. fi
  6681. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6682. if test -n "$ac_ct_LIPO"; then
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6684. $as_echo "$ac_ct_LIPO" >&6; }
  6685. else
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6687. $as_echo "no" >&6; }
  6688. fi
  6689. if test "x$ac_ct_LIPO" = x; then
  6690. LIPO=":"
  6691. else
  6692. case $cross_compiling:$ac_tool_warned in
  6693. yes:)
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6695. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6696. ac_tool_warned=yes ;;
  6697. esac
  6698. LIPO=$ac_ct_LIPO
  6699. fi
  6700. else
  6701. LIPO="$ac_cv_prog_LIPO"
  6702. fi
  6703. if test -n "$ac_tool_prefix"; then
  6704. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6705. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6707. $as_echo_n "checking for $ac_word... " >&6; }
  6708. if ${ac_cv_prog_OTOOL+:} false; then :
  6709. $as_echo_n "(cached) " >&6
  6710. else
  6711. if test -n "$OTOOL"; then
  6712. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6713. else
  6714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6715. for as_dir in $PATH
  6716. do
  6717. IFS=$as_save_IFS
  6718. test -z "$as_dir" && as_dir=.
  6719. for ac_exec_ext in '' $ac_executable_extensions; do
  6720. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6721. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6722. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6723. break 2
  6724. fi
  6725. done
  6726. done
  6727. IFS=$as_save_IFS
  6728. fi
  6729. fi
  6730. OTOOL=$ac_cv_prog_OTOOL
  6731. if test -n "$OTOOL"; then
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6733. $as_echo "$OTOOL" >&6; }
  6734. else
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6736. $as_echo "no" >&6; }
  6737. fi
  6738. fi
  6739. if test -z "$ac_cv_prog_OTOOL"; then
  6740. ac_ct_OTOOL=$OTOOL
  6741. # Extract the first word of "otool", so it can be a program name with args.
  6742. set dummy otool; ac_word=$2
  6743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6744. $as_echo_n "checking for $ac_word... " >&6; }
  6745. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6746. $as_echo_n "(cached) " >&6
  6747. else
  6748. if test -n "$ac_ct_OTOOL"; then
  6749. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6750. else
  6751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6752. for as_dir in $PATH
  6753. do
  6754. IFS=$as_save_IFS
  6755. test -z "$as_dir" && as_dir=.
  6756. for ac_exec_ext in '' $ac_executable_extensions; do
  6757. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6758. ac_cv_prog_ac_ct_OTOOL="otool"
  6759. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6760. break 2
  6761. fi
  6762. done
  6763. done
  6764. IFS=$as_save_IFS
  6765. fi
  6766. fi
  6767. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6768. if test -n "$ac_ct_OTOOL"; then
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6770. $as_echo "$ac_ct_OTOOL" >&6; }
  6771. else
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6773. $as_echo "no" >&6; }
  6774. fi
  6775. if test "x$ac_ct_OTOOL" = x; then
  6776. OTOOL=":"
  6777. else
  6778. case $cross_compiling:$ac_tool_warned in
  6779. yes:)
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6781. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6782. ac_tool_warned=yes ;;
  6783. esac
  6784. OTOOL=$ac_ct_OTOOL
  6785. fi
  6786. else
  6787. OTOOL="$ac_cv_prog_OTOOL"
  6788. fi
  6789. if test -n "$ac_tool_prefix"; then
  6790. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6791. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6793. $as_echo_n "checking for $ac_word... " >&6; }
  6794. if ${ac_cv_prog_OTOOL64+:} false; then :
  6795. $as_echo_n "(cached) " >&6
  6796. else
  6797. if test -n "$OTOOL64"; then
  6798. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6799. else
  6800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6801. for as_dir in $PATH
  6802. do
  6803. IFS=$as_save_IFS
  6804. test -z "$as_dir" && as_dir=.
  6805. for ac_exec_ext in '' $ac_executable_extensions; do
  6806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6807. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6809. break 2
  6810. fi
  6811. done
  6812. done
  6813. IFS=$as_save_IFS
  6814. fi
  6815. fi
  6816. OTOOL64=$ac_cv_prog_OTOOL64
  6817. if test -n "$OTOOL64"; then
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6819. $as_echo "$OTOOL64" >&6; }
  6820. else
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6822. $as_echo "no" >&6; }
  6823. fi
  6824. fi
  6825. if test -z "$ac_cv_prog_OTOOL64"; then
  6826. ac_ct_OTOOL64=$OTOOL64
  6827. # Extract the first word of "otool64", so it can be a program name with args.
  6828. set dummy otool64; ac_word=$2
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6830. $as_echo_n "checking for $ac_word... " >&6; }
  6831. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6832. $as_echo_n "(cached) " >&6
  6833. else
  6834. if test -n "$ac_ct_OTOOL64"; then
  6835. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6836. else
  6837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6838. for as_dir in $PATH
  6839. do
  6840. IFS=$as_save_IFS
  6841. test -z "$as_dir" && as_dir=.
  6842. for ac_exec_ext in '' $ac_executable_extensions; do
  6843. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6844. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6846. break 2
  6847. fi
  6848. done
  6849. done
  6850. IFS=$as_save_IFS
  6851. fi
  6852. fi
  6853. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6854. if test -n "$ac_ct_OTOOL64"; then
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6856. $as_echo "$ac_ct_OTOOL64" >&6; }
  6857. else
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6859. $as_echo "no" >&6; }
  6860. fi
  6861. if test "x$ac_ct_OTOOL64" = x; then
  6862. OTOOL64=":"
  6863. else
  6864. case $cross_compiling:$ac_tool_warned in
  6865. yes:)
  6866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6867. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6868. ac_tool_warned=yes ;;
  6869. esac
  6870. OTOOL64=$ac_ct_OTOOL64
  6871. fi
  6872. else
  6873. OTOOL64="$ac_cv_prog_OTOOL64"
  6874. fi
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6876. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6877. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6878. $as_echo_n "(cached) " >&6
  6879. else
  6880. lt_cv_apple_cc_single_mod=no
  6881. if test -z "${LT_MULTI_MODULE}"; then
  6882. # By default we will add the -single_module flag. You can override
  6883. # by either setting the environment variable LT_MULTI_MODULE
  6884. # non-empty at configure time, or by adding -multi_module to the
  6885. # link flags.
  6886. rm -rf libconftest.dylib*
  6887. echo "int foo(void){return 1;}" > conftest.c
  6888. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6889. -dynamiclib -Wl,-single_module conftest.c" >&5
  6890. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6891. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6892. _lt_result=$?
  6893. # If there is a non-empty error log, and "single_module"
  6894. # appears in it, assume the flag caused a linker warning
  6895. if test -s conftest.err && $GREP single_module conftest.err; then
  6896. cat conftest.err >&5
  6897. # Otherwise, if the output was created with a 0 exit code from
  6898. # the compiler, it worked.
  6899. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6900. lt_cv_apple_cc_single_mod=yes
  6901. else
  6902. cat conftest.err >&5
  6903. fi
  6904. rm -rf libconftest.dylib*
  6905. rm -f conftest.*
  6906. fi
  6907. fi
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6909. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6911. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6912. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6913. $as_echo_n "(cached) " >&6
  6914. else
  6915. lt_cv_ld_exported_symbols_list=no
  6916. save_LDFLAGS=$LDFLAGS
  6917. echo "_main" > conftest.sym
  6918. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6920. /* end confdefs.h. */
  6921. int
  6922. main ()
  6923. {
  6924. ;
  6925. return 0;
  6926. }
  6927. _ACEOF
  6928. if ac_fn_c_try_link "$LINENO"; then :
  6929. lt_cv_ld_exported_symbols_list=yes
  6930. else
  6931. lt_cv_ld_exported_symbols_list=no
  6932. fi
  6933. rm -f core conftest.err conftest.$ac_objext \
  6934. conftest$ac_exeext conftest.$ac_ext
  6935. LDFLAGS="$save_LDFLAGS"
  6936. fi
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6938. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6940. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6941. if ${lt_cv_ld_force_load+:} false; then :
  6942. $as_echo_n "(cached) " >&6
  6943. else
  6944. lt_cv_ld_force_load=no
  6945. cat > conftest.c << _LT_EOF
  6946. int forced_loaded() { return 2;}
  6947. _LT_EOF
  6948. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6949. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6950. echo "$AR cru libconftest.a conftest.o" >&5
  6951. $AR cru libconftest.a conftest.o 2>&5
  6952. echo "$RANLIB libconftest.a" >&5
  6953. $RANLIB libconftest.a 2>&5
  6954. cat > conftest.c << _LT_EOF
  6955. int main() { return 0;}
  6956. _LT_EOF
  6957. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6958. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6959. _lt_result=$?
  6960. if test -s conftest.err && $GREP force_load conftest.err; then
  6961. cat conftest.err >&5
  6962. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6963. lt_cv_ld_force_load=yes
  6964. else
  6965. cat conftest.err >&5
  6966. fi
  6967. rm -f conftest.err libconftest.a conftest conftest.c
  6968. rm -rf conftest.dSYM
  6969. fi
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6971. $as_echo "$lt_cv_ld_force_load" >&6; }
  6972. case $host_os in
  6973. rhapsody* | darwin1.[012])
  6974. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6975. darwin1.*)
  6976. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6977. darwin*) # darwin 5.x on
  6978. # if running on 10.5 or later, the deployment target defaults
  6979. # to the OS version, if on x86, and 10.4, the deployment
  6980. # target defaults to 10.4. Don't you love it?
  6981. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6982. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6983. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6984. 10.[012]*)
  6985. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6986. 10.*)
  6987. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6988. esac
  6989. ;;
  6990. esac
  6991. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6992. _lt_dar_single_mod='$single_module'
  6993. fi
  6994. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6995. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6996. else
  6997. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6998. fi
  6999. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7000. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7001. else
  7002. _lt_dsymutil=
  7003. fi
  7004. ;;
  7005. esac
  7006. ac_ext=c
  7007. ac_cpp='$CPP $CPPFLAGS'
  7008. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7009. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7010. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7012. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7013. # On Suns, sometimes $CPP names a directory.
  7014. if test -n "$CPP" && test -d "$CPP"; then
  7015. CPP=
  7016. fi
  7017. if test -z "$CPP"; then
  7018. if ${ac_cv_prog_CPP+:} false; then :
  7019. $as_echo_n "(cached) " >&6
  7020. else
  7021. # Double quotes because CPP needs to be expanded
  7022. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7023. do
  7024. ac_preproc_ok=false
  7025. for ac_c_preproc_warn_flag in '' yes
  7026. do
  7027. # Use a header file that comes with gcc, so configuring glibc
  7028. # with a fresh cross-compiler works.
  7029. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7030. # <limits.h> exists even on freestanding compilers.
  7031. # On the NeXT, cc -E runs the code through the compiler's parser,
  7032. # not just through cpp. "Syntax error" is here to catch this case.
  7033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7034. /* end confdefs.h. */
  7035. #ifdef __STDC__
  7036. # include <limits.h>
  7037. #else
  7038. # include <assert.h>
  7039. #endif
  7040. Syntax error
  7041. _ACEOF
  7042. if ac_fn_c_try_cpp "$LINENO"; then :
  7043. else
  7044. # Broken: fails on valid input.
  7045. continue
  7046. fi
  7047. rm -f conftest.err conftest.i conftest.$ac_ext
  7048. # OK, works on sane cases. Now check whether nonexistent headers
  7049. # can be detected and how.
  7050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7051. /* end confdefs.h. */
  7052. #include <ac_nonexistent.h>
  7053. _ACEOF
  7054. if ac_fn_c_try_cpp "$LINENO"; then :
  7055. # Broken: success on invalid input.
  7056. continue
  7057. else
  7058. # Passes both tests.
  7059. ac_preproc_ok=:
  7060. break
  7061. fi
  7062. rm -f conftest.err conftest.i conftest.$ac_ext
  7063. done
  7064. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7065. rm -f conftest.i conftest.err conftest.$ac_ext
  7066. if $ac_preproc_ok; then :
  7067. break
  7068. fi
  7069. done
  7070. ac_cv_prog_CPP=$CPP
  7071. fi
  7072. CPP=$ac_cv_prog_CPP
  7073. else
  7074. ac_cv_prog_CPP=$CPP
  7075. fi
  7076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7077. $as_echo "$CPP" >&6; }
  7078. ac_preproc_ok=false
  7079. for ac_c_preproc_warn_flag in '' yes
  7080. do
  7081. # Use a header file that comes with gcc, so configuring glibc
  7082. # with a fresh cross-compiler works.
  7083. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7084. # <limits.h> exists even on freestanding compilers.
  7085. # On the NeXT, cc -E runs the code through the compiler's parser,
  7086. # not just through cpp. "Syntax error" is here to catch this case.
  7087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7088. /* end confdefs.h. */
  7089. #ifdef __STDC__
  7090. # include <limits.h>
  7091. #else
  7092. # include <assert.h>
  7093. #endif
  7094. Syntax error
  7095. _ACEOF
  7096. if ac_fn_c_try_cpp "$LINENO"; then :
  7097. else
  7098. # Broken: fails on valid input.
  7099. continue
  7100. fi
  7101. rm -f conftest.err conftest.i conftest.$ac_ext
  7102. # OK, works on sane cases. Now check whether nonexistent headers
  7103. # can be detected and how.
  7104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7105. /* end confdefs.h. */
  7106. #include <ac_nonexistent.h>
  7107. _ACEOF
  7108. if ac_fn_c_try_cpp "$LINENO"; then :
  7109. # Broken: success on invalid input.
  7110. continue
  7111. else
  7112. # Passes both tests.
  7113. ac_preproc_ok=:
  7114. break
  7115. fi
  7116. rm -f conftest.err conftest.i conftest.$ac_ext
  7117. done
  7118. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7119. rm -f conftest.i conftest.err conftest.$ac_ext
  7120. if $ac_preproc_ok; then :
  7121. else
  7122. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7123. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7124. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7125. See \`config.log' for more details" "$LINENO" 5; }
  7126. fi
  7127. ac_ext=c
  7128. ac_cpp='$CPP $CPPFLAGS'
  7129. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7130. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7131. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7133. $as_echo_n "checking for ANSI C header files... " >&6; }
  7134. if ${ac_cv_header_stdc+:} false; then :
  7135. $as_echo_n "(cached) " >&6
  7136. else
  7137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7138. /* end confdefs.h. */
  7139. #include <stdlib.h>
  7140. #include <stdarg.h>
  7141. #include <string.h>
  7142. #include <float.h>
  7143. int
  7144. main ()
  7145. {
  7146. ;
  7147. return 0;
  7148. }
  7149. _ACEOF
  7150. if ac_fn_c_try_compile "$LINENO"; then :
  7151. ac_cv_header_stdc=yes
  7152. else
  7153. ac_cv_header_stdc=no
  7154. fi
  7155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7156. if test $ac_cv_header_stdc = yes; then
  7157. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7159. /* end confdefs.h. */
  7160. #include <string.h>
  7161. _ACEOF
  7162. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7163. $EGREP "memchr" >/dev/null 2>&1; then :
  7164. else
  7165. ac_cv_header_stdc=no
  7166. fi
  7167. rm -f conftest*
  7168. fi
  7169. if test $ac_cv_header_stdc = yes; then
  7170. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7172. /* end confdefs.h. */
  7173. #include <stdlib.h>
  7174. _ACEOF
  7175. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7176. $EGREP "free" >/dev/null 2>&1; then :
  7177. else
  7178. ac_cv_header_stdc=no
  7179. fi
  7180. rm -f conftest*
  7181. fi
  7182. if test $ac_cv_header_stdc = yes; then
  7183. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7184. if test "$cross_compiling" = yes; then :
  7185. :
  7186. else
  7187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7188. /* end confdefs.h. */
  7189. #include <ctype.h>
  7190. #include <stdlib.h>
  7191. #if ((' ' & 0x0FF) == 0x020)
  7192. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7193. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7194. #else
  7195. # define ISLOWER(c) \
  7196. (('a' <= (c) && (c) <= 'i') \
  7197. || ('j' <= (c) && (c) <= 'r') \
  7198. || ('s' <= (c) && (c) <= 'z'))
  7199. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7200. #endif
  7201. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7202. int
  7203. main ()
  7204. {
  7205. int i;
  7206. for (i = 0; i < 256; i++)
  7207. if (XOR (islower (i), ISLOWER (i))
  7208. || toupper (i) != TOUPPER (i))
  7209. return 2;
  7210. return 0;
  7211. }
  7212. _ACEOF
  7213. if ac_fn_c_try_run "$LINENO"; then :
  7214. else
  7215. ac_cv_header_stdc=no
  7216. fi
  7217. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7218. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7219. fi
  7220. fi
  7221. fi
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7223. $as_echo "$ac_cv_header_stdc" >&6; }
  7224. if test $ac_cv_header_stdc = yes; then
  7225. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7226. fi
  7227. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7228. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7229. inttypes.h stdint.h unistd.h
  7230. do :
  7231. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7232. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7233. "
  7234. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7235. cat >>confdefs.h <<_ACEOF
  7236. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7237. _ACEOF
  7238. fi
  7239. done
  7240. for ac_header in dlfcn.h
  7241. do :
  7242. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7243. "
  7244. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7245. cat >>confdefs.h <<_ACEOF
  7246. #define HAVE_DLFCN_H 1
  7247. _ACEOF
  7248. fi
  7249. done
  7250. func_stripname_cnf ()
  7251. {
  7252. case ${2} in
  7253. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7254. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7255. esac
  7256. } # func_stripname_cnf
  7257. # Set options
  7258. enable_dlopen=no
  7259. enable_win32_dll=no
  7260. # Check whether --enable-shared was given.
  7261. if test "${enable_shared+set}" = set; then :
  7262. enableval=$enable_shared; p=${PACKAGE-default}
  7263. case $enableval in
  7264. yes) enable_shared=yes ;;
  7265. no) enable_shared=no ;;
  7266. *)
  7267. enable_shared=no
  7268. # Look at the argument we got. We use all the common list separators.
  7269. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7270. for pkg in $enableval; do
  7271. IFS="$lt_save_ifs"
  7272. if test "X$pkg" = "X$p"; then
  7273. enable_shared=yes
  7274. fi
  7275. done
  7276. IFS="$lt_save_ifs"
  7277. ;;
  7278. esac
  7279. else
  7280. enable_shared=yes
  7281. fi
  7282. # Check whether --with-pic was given.
  7283. if test "${with_pic+set}" = set; then :
  7284. withval=$with_pic; lt_p=${PACKAGE-default}
  7285. case $withval in
  7286. yes|no) pic_mode=$withval ;;
  7287. *)
  7288. pic_mode=default
  7289. # Look at the argument we got. We use all the common list separators.
  7290. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7291. for lt_pkg in $withval; do
  7292. IFS="$lt_save_ifs"
  7293. if test "X$lt_pkg" = "X$lt_p"; then
  7294. pic_mode=yes
  7295. fi
  7296. done
  7297. IFS="$lt_save_ifs"
  7298. ;;
  7299. esac
  7300. else
  7301. pic_mode=default
  7302. fi
  7303. test -z "$pic_mode" && pic_mode=default
  7304. # Check whether --enable-fast-install was given.
  7305. if test "${enable_fast_install+set}" = set; then :
  7306. enableval=$enable_fast_install; p=${PACKAGE-default}
  7307. case $enableval in
  7308. yes) enable_fast_install=yes ;;
  7309. no) enable_fast_install=no ;;
  7310. *)
  7311. enable_fast_install=no
  7312. # Look at the argument we got. We use all the common list separators.
  7313. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7314. for pkg in $enableval; do
  7315. IFS="$lt_save_ifs"
  7316. if test "X$pkg" = "X$p"; then
  7317. enable_fast_install=yes
  7318. fi
  7319. done
  7320. IFS="$lt_save_ifs"
  7321. ;;
  7322. esac
  7323. else
  7324. enable_fast_install=yes
  7325. fi
  7326. # This can be used to rebuild libtool when needed
  7327. LIBTOOL_DEPS="$ltmain"
  7328. # Always use our own libtool.
  7329. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7330. test -z "$LN_S" && LN_S="ln -s"
  7331. if test -n "${ZSH_VERSION+set}" ; then
  7332. setopt NO_GLOB_SUBST
  7333. fi
  7334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7335. $as_echo_n "checking for objdir... " >&6; }
  7336. if ${lt_cv_objdir+:} false; then :
  7337. $as_echo_n "(cached) " >&6
  7338. else
  7339. rm -f .libs 2>/dev/null
  7340. mkdir .libs 2>/dev/null
  7341. if test -d .libs; then
  7342. lt_cv_objdir=.libs
  7343. else
  7344. # MS-DOS does not allow filenames that begin with a dot.
  7345. lt_cv_objdir=_libs
  7346. fi
  7347. rmdir .libs 2>/dev/null
  7348. fi
  7349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7350. $as_echo "$lt_cv_objdir" >&6; }
  7351. objdir=$lt_cv_objdir
  7352. cat >>confdefs.h <<_ACEOF
  7353. #define LT_OBJDIR "$lt_cv_objdir/"
  7354. _ACEOF
  7355. case $host_os in
  7356. aix3*)
  7357. # AIX sometimes has problems with the GCC collect2 program. For some
  7358. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7359. # vanish in a puff of smoke.
  7360. if test "X${COLLECT_NAMES+set}" != Xset; then
  7361. COLLECT_NAMES=
  7362. export COLLECT_NAMES
  7363. fi
  7364. ;;
  7365. esac
  7366. # Global variables:
  7367. ofile=libtool
  7368. can_build_shared=yes
  7369. # All known linkers require a `.a' archive for static linking (except MSVC,
  7370. # which needs '.lib').
  7371. libext=a
  7372. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7373. old_CC="$CC"
  7374. old_CFLAGS="$CFLAGS"
  7375. # Set sane defaults for various variables
  7376. test -z "$CC" && CC=cc
  7377. test -z "$LTCC" && LTCC=$CC
  7378. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7379. test -z "$LD" && LD=ld
  7380. test -z "$ac_objext" && ac_objext=o
  7381. for cc_temp in $compiler""; do
  7382. case $cc_temp in
  7383. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7384. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7385. \-*) ;;
  7386. *) break;;
  7387. esac
  7388. done
  7389. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7390. # Only perform the check for file, if the check method requires it
  7391. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7392. case $deplibs_check_method in
  7393. file_magic*)
  7394. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7396. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7397. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7398. $as_echo_n "(cached) " >&6
  7399. else
  7400. case $MAGIC_CMD in
  7401. [\\/*] | ?:[\\/]*)
  7402. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7403. ;;
  7404. *)
  7405. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7406. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7407. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7408. for ac_dir in $ac_dummy; do
  7409. IFS="$lt_save_ifs"
  7410. test -z "$ac_dir" && ac_dir=.
  7411. if test -f $ac_dir/${ac_tool_prefix}file; then
  7412. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7413. if test -n "$file_magic_test_file"; then
  7414. case $deplibs_check_method in
  7415. "file_magic "*)
  7416. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7417. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7418. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7419. $EGREP "$file_magic_regex" > /dev/null; then
  7420. :
  7421. else
  7422. cat <<_LT_EOF 1>&2
  7423. *** Warning: the command libtool uses to detect shared libraries,
  7424. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7425. *** The result is that libtool may fail to recognize shared libraries
  7426. *** as such. This will affect the creation of libtool libraries that
  7427. *** depend on shared libraries, but programs linked with such libtool
  7428. *** libraries will work regardless of this problem. Nevertheless, you
  7429. *** may want to report the problem to your system manager and/or to
  7430. *** bug-libtool@gnu.org
  7431. _LT_EOF
  7432. fi ;;
  7433. esac
  7434. fi
  7435. break
  7436. fi
  7437. done
  7438. IFS="$lt_save_ifs"
  7439. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7440. ;;
  7441. esac
  7442. fi
  7443. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7444. if test -n "$MAGIC_CMD"; then
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7446. $as_echo "$MAGIC_CMD" >&6; }
  7447. else
  7448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7449. $as_echo "no" >&6; }
  7450. fi
  7451. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7452. if test -n "$ac_tool_prefix"; then
  7453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7454. $as_echo_n "checking for file... " >&6; }
  7455. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7456. $as_echo_n "(cached) " >&6
  7457. else
  7458. case $MAGIC_CMD in
  7459. [\\/*] | ?:[\\/]*)
  7460. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7461. ;;
  7462. *)
  7463. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7464. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7465. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7466. for ac_dir in $ac_dummy; do
  7467. IFS="$lt_save_ifs"
  7468. test -z "$ac_dir" && ac_dir=.
  7469. if test -f $ac_dir/file; then
  7470. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7471. if test -n "$file_magic_test_file"; then
  7472. case $deplibs_check_method in
  7473. "file_magic "*)
  7474. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7475. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7476. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7477. $EGREP "$file_magic_regex" > /dev/null; then
  7478. :
  7479. else
  7480. cat <<_LT_EOF 1>&2
  7481. *** Warning: the command libtool uses to detect shared libraries,
  7482. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7483. *** The result is that libtool may fail to recognize shared libraries
  7484. *** as such. This will affect the creation of libtool libraries that
  7485. *** depend on shared libraries, but programs linked with such libtool
  7486. *** libraries will work regardless of this problem. Nevertheless, you
  7487. *** may want to report the problem to your system manager and/or to
  7488. *** bug-libtool@gnu.org
  7489. _LT_EOF
  7490. fi ;;
  7491. esac
  7492. fi
  7493. break
  7494. fi
  7495. done
  7496. IFS="$lt_save_ifs"
  7497. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7498. ;;
  7499. esac
  7500. fi
  7501. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7502. if test -n "$MAGIC_CMD"; then
  7503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7504. $as_echo "$MAGIC_CMD" >&6; }
  7505. else
  7506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7507. $as_echo "no" >&6; }
  7508. fi
  7509. else
  7510. MAGIC_CMD=:
  7511. fi
  7512. fi
  7513. fi
  7514. ;;
  7515. esac
  7516. # Use C for the default configuration in the libtool script
  7517. lt_save_CC="$CC"
  7518. ac_ext=c
  7519. ac_cpp='$CPP $CPPFLAGS'
  7520. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7521. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7522. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7523. # Source file extension for C test sources.
  7524. ac_ext=c
  7525. # Object file extension for compiled C test sources.
  7526. objext=o
  7527. objext=$objext
  7528. # Code to be used in simple compile tests
  7529. lt_simple_compile_test_code="int some_variable = 0;"
  7530. # Code to be used in simple link tests
  7531. lt_simple_link_test_code='int main(){return(0);}'
  7532. # If no C compiler was specified, use CC.
  7533. LTCC=${LTCC-"$CC"}
  7534. # If no C compiler flags were specified, use CFLAGS.
  7535. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7536. # Allow CC to be a program name with arguments.
  7537. compiler=$CC
  7538. # Save the default compiler, since it gets overwritten when the other
  7539. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7540. compiler_DEFAULT=$CC
  7541. # save warnings/boilerplate of simple test code
  7542. ac_outfile=conftest.$ac_objext
  7543. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7544. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7545. _lt_compiler_boilerplate=`cat conftest.err`
  7546. $RM conftest*
  7547. ac_outfile=conftest.$ac_objext
  7548. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7549. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7550. _lt_linker_boilerplate=`cat conftest.err`
  7551. $RM -r conftest*
  7552. ## CAVEAT EMPTOR:
  7553. ## There is no encapsulation within the following macros, do not change
  7554. ## the running order or otherwise move them around unless you know exactly
  7555. ## what you are doing...
  7556. if test -n "$compiler"; then
  7557. lt_prog_compiler_no_builtin_flag=
  7558. if test "$GCC" = yes; then
  7559. case $cc_basename in
  7560. nvcc*)
  7561. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7562. *)
  7563. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7564. esac
  7565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7566. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7567. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7568. $as_echo_n "(cached) " >&6
  7569. else
  7570. lt_cv_prog_compiler_rtti_exceptions=no
  7571. ac_outfile=conftest.$ac_objext
  7572. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7573. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7574. # Insert the option either (1) after the last *FLAGS variable, or
  7575. # (2) before a word containing "conftest.", or (3) at the end.
  7576. # Note that $ac_compile itself does not contain backslashes and begins
  7577. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7578. # The option is referenced via a variable to avoid confusing sed.
  7579. lt_compile=`echo "$ac_compile" | $SED \
  7580. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7581. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7582. -e 's:$: $lt_compiler_flag:'`
  7583. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7584. (eval "$lt_compile" 2>conftest.err)
  7585. ac_status=$?
  7586. cat conftest.err >&5
  7587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7588. if (exit $ac_status) && test -s "$ac_outfile"; then
  7589. # The compiler can only warn and ignore the option if not recognized
  7590. # So say no if there are warnings other than the usual output.
  7591. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7592. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7593. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7594. lt_cv_prog_compiler_rtti_exceptions=yes
  7595. fi
  7596. fi
  7597. $RM conftest*
  7598. fi
  7599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7600. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7601. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7602. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7603. else
  7604. :
  7605. fi
  7606. fi
  7607. lt_prog_compiler_wl=
  7608. lt_prog_compiler_pic=
  7609. lt_prog_compiler_static=
  7610. if test "$GCC" = yes; then
  7611. lt_prog_compiler_wl='-Wl,'
  7612. lt_prog_compiler_static='-static'
  7613. case $host_os in
  7614. aix*)
  7615. # All AIX code is PIC.
  7616. if test "$host_cpu" = ia64; then
  7617. # AIX 5 now supports IA64 processor
  7618. lt_prog_compiler_static='-Bstatic'
  7619. fi
  7620. ;;
  7621. amigaos*)
  7622. case $host_cpu in
  7623. powerpc)
  7624. # see comment about AmigaOS4 .so support
  7625. lt_prog_compiler_pic='-fPIC'
  7626. ;;
  7627. m68k)
  7628. # FIXME: we need at least 68020 code to build shared libraries, but
  7629. # adding the `-m68020' flag to GCC prevents building anything better,
  7630. # like `-m68040'.
  7631. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7632. ;;
  7633. esac
  7634. ;;
  7635. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7636. # PIC is the default for these OSes.
  7637. ;;
  7638. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7639. # This hack is so that the source file can tell whether it is being
  7640. # built for inclusion in a dll (and should export symbols for example).
  7641. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7642. # (--disable-auto-import) libraries
  7643. lt_prog_compiler_pic='-DDLL_EXPORT'
  7644. ;;
  7645. darwin* | rhapsody*)
  7646. # PIC is the default on this platform
  7647. # Common symbols not allowed in MH_DYLIB files
  7648. lt_prog_compiler_pic='-fno-common'
  7649. ;;
  7650. haiku*)
  7651. # PIC is the default for Haiku.
  7652. # The "-static" flag exists, but is broken.
  7653. lt_prog_compiler_static=
  7654. ;;
  7655. hpux*)
  7656. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7657. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7658. # sets the default TLS model and affects inlining.
  7659. case $host_cpu in
  7660. hppa*64*)
  7661. # +Z the default
  7662. ;;
  7663. *)
  7664. lt_prog_compiler_pic='-fPIC'
  7665. ;;
  7666. esac
  7667. ;;
  7668. interix[3-9]*)
  7669. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7670. # Instead, we relocate shared libraries at runtime.
  7671. ;;
  7672. msdosdjgpp*)
  7673. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7674. # on systems that don't support them.
  7675. lt_prog_compiler_can_build_shared=no
  7676. enable_shared=no
  7677. ;;
  7678. *nto* | *qnx*)
  7679. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7680. # it will coredump.
  7681. lt_prog_compiler_pic='-fPIC -shared'
  7682. ;;
  7683. sysv4*MP*)
  7684. if test -d /usr/nec; then
  7685. lt_prog_compiler_pic=-Kconform_pic
  7686. fi
  7687. ;;
  7688. *)
  7689. lt_prog_compiler_pic='-fPIC'
  7690. ;;
  7691. esac
  7692. case $cc_basename in
  7693. nvcc*) # Cuda Compiler Driver 2.2
  7694. lt_prog_compiler_wl='-Xlinker '
  7695. if test -n "$lt_prog_compiler_pic"; then
  7696. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7697. fi
  7698. ;;
  7699. esac
  7700. else
  7701. # PORTME Check for flag to pass linker flags through the system compiler.
  7702. case $host_os in
  7703. aix*)
  7704. lt_prog_compiler_wl='-Wl,'
  7705. if test "$host_cpu" = ia64; then
  7706. # AIX 5 now supports IA64 processor
  7707. lt_prog_compiler_static='-Bstatic'
  7708. else
  7709. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7710. fi
  7711. ;;
  7712. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7713. # This hack is so that the source file can tell whether it is being
  7714. # built for inclusion in a dll (and should export symbols for example).
  7715. lt_prog_compiler_pic='-DDLL_EXPORT'
  7716. ;;
  7717. hpux9* | hpux10* | hpux11*)
  7718. lt_prog_compiler_wl='-Wl,'
  7719. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7720. # not for PA HP-UX.
  7721. case $host_cpu in
  7722. hppa*64*|ia64*)
  7723. # +Z the default
  7724. ;;
  7725. *)
  7726. lt_prog_compiler_pic='+Z'
  7727. ;;
  7728. esac
  7729. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7730. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7731. ;;
  7732. irix5* | irix6* | nonstopux*)
  7733. lt_prog_compiler_wl='-Wl,'
  7734. # PIC (with -KPIC) is the default.
  7735. lt_prog_compiler_static='-non_shared'
  7736. ;;
  7737. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7738. case $cc_basename in
  7739. # old Intel for x86_64 which still supported -KPIC.
  7740. ecc*)
  7741. lt_prog_compiler_wl='-Wl,'
  7742. lt_prog_compiler_pic='-KPIC'
  7743. lt_prog_compiler_static='-static'
  7744. ;;
  7745. # icc used to be incompatible with GCC.
  7746. # ICC 10 doesn't accept -KPIC any more.
  7747. icc* | ifort*)
  7748. lt_prog_compiler_wl='-Wl,'
  7749. lt_prog_compiler_pic='-fPIC'
  7750. lt_prog_compiler_static='-static'
  7751. ;;
  7752. # Lahey Fortran 8.1.
  7753. lf95*)
  7754. lt_prog_compiler_wl='-Wl,'
  7755. lt_prog_compiler_pic='--shared'
  7756. lt_prog_compiler_static='--static'
  7757. ;;
  7758. nagfor*)
  7759. # NAG Fortran compiler
  7760. lt_prog_compiler_wl='-Wl,-Wl,,'
  7761. lt_prog_compiler_pic='-PIC'
  7762. lt_prog_compiler_static='-Bstatic'
  7763. ;;
  7764. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7765. # Portland Group compilers (*not* the Pentium gcc compiler,
  7766. # which looks to be a dead project)
  7767. lt_prog_compiler_wl='-Wl,'
  7768. lt_prog_compiler_pic='-fpic'
  7769. lt_prog_compiler_static='-Bstatic'
  7770. ;;
  7771. ccc*)
  7772. lt_prog_compiler_wl='-Wl,'
  7773. # All Alpha code is PIC.
  7774. lt_prog_compiler_static='-non_shared'
  7775. ;;
  7776. xl* | bgxl* | bgf* | mpixl*)
  7777. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7778. lt_prog_compiler_wl='-Wl,'
  7779. lt_prog_compiler_pic='-qpic'
  7780. lt_prog_compiler_static='-qstaticlink'
  7781. ;;
  7782. *)
  7783. case `$CC -V 2>&1 | sed 5q` in
  7784. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7785. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7786. lt_prog_compiler_pic='-KPIC'
  7787. lt_prog_compiler_static='-Bstatic'
  7788. lt_prog_compiler_wl=''
  7789. ;;
  7790. *Sun\ F* | *Sun*Fortran*)
  7791. lt_prog_compiler_pic='-KPIC'
  7792. lt_prog_compiler_static='-Bstatic'
  7793. lt_prog_compiler_wl='-Qoption ld '
  7794. ;;
  7795. *Sun\ C*)
  7796. # Sun C 5.9
  7797. lt_prog_compiler_pic='-KPIC'
  7798. lt_prog_compiler_static='-Bstatic'
  7799. lt_prog_compiler_wl='-Wl,'
  7800. ;;
  7801. *Intel*\ [CF]*Compiler*)
  7802. lt_prog_compiler_wl='-Wl,'
  7803. lt_prog_compiler_pic='-fPIC'
  7804. lt_prog_compiler_static='-static'
  7805. ;;
  7806. *Portland\ Group*)
  7807. lt_prog_compiler_wl='-Wl,'
  7808. lt_prog_compiler_pic='-fpic'
  7809. lt_prog_compiler_static='-Bstatic'
  7810. ;;
  7811. esac
  7812. ;;
  7813. esac
  7814. ;;
  7815. newsos6)
  7816. lt_prog_compiler_pic='-KPIC'
  7817. lt_prog_compiler_static='-Bstatic'
  7818. ;;
  7819. *nto* | *qnx*)
  7820. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7821. # it will coredump.
  7822. lt_prog_compiler_pic='-fPIC -shared'
  7823. ;;
  7824. osf3* | osf4* | osf5*)
  7825. lt_prog_compiler_wl='-Wl,'
  7826. # All OSF/1 code is PIC.
  7827. lt_prog_compiler_static='-non_shared'
  7828. ;;
  7829. rdos*)
  7830. lt_prog_compiler_static='-non_shared'
  7831. ;;
  7832. solaris*)
  7833. lt_prog_compiler_pic='-KPIC'
  7834. lt_prog_compiler_static='-Bstatic'
  7835. case $cc_basename in
  7836. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7837. lt_prog_compiler_wl='-Qoption ld ';;
  7838. *)
  7839. lt_prog_compiler_wl='-Wl,';;
  7840. esac
  7841. ;;
  7842. sunos4*)
  7843. lt_prog_compiler_wl='-Qoption ld '
  7844. lt_prog_compiler_pic='-PIC'
  7845. lt_prog_compiler_static='-Bstatic'
  7846. ;;
  7847. sysv4 | sysv4.2uw2* | sysv4.3*)
  7848. lt_prog_compiler_wl='-Wl,'
  7849. lt_prog_compiler_pic='-KPIC'
  7850. lt_prog_compiler_static='-Bstatic'
  7851. ;;
  7852. sysv4*MP*)
  7853. if test -d /usr/nec ;then
  7854. lt_prog_compiler_pic='-Kconform_pic'
  7855. lt_prog_compiler_static='-Bstatic'
  7856. fi
  7857. ;;
  7858. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7859. lt_prog_compiler_wl='-Wl,'
  7860. lt_prog_compiler_pic='-KPIC'
  7861. lt_prog_compiler_static='-Bstatic'
  7862. ;;
  7863. unicos*)
  7864. lt_prog_compiler_wl='-Wl,'
  7865. lt_prog_compiler_can_build_shared=no
  7866. ;;
  7867. uts4*)
  7868. lt_prog_compiler_pic='-pic'
  7869. lt_prog_compiler_static='-Bstatic'
  7870. ;;
  7871. *)
  7872. lt_prog_compiler_can_build_shared=no
  7873. ;;
  7874. esac
  7875. fi
  7876. case $host_os in
  7877. # For platforms which do not support PIC, -DPIC is meaningless:
  7878. *djgpp*)
  7879. lt_prog_compiler_pic=
  7880. ;;
  7881. *)
  7882. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7883. ;;
  7884. esac
  7885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7886. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7887. if ${lt_cv_prog_compiler_pic+:} false; then :
  7888. $as_echo_n "(cached) " >&6
  7889. else
  7890. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7891. fi
  7892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7893. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7894. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7895. #
  7896. # Check to make sure the PIC flag actually works.
  7897. #
  7898. if test -n "$lt_prog_compiler_pic"; then
  7899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7900. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7901. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7902. $as_echo_n "(cached) " >&6
  7903. else
  7904. lt_cv_prog_compiler_pic_works=no
  7905. ac_outfile=conftest.$ac_objext
  7906. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7907. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7908. # Insert the option either (1) after the last *FLAGS variable, or
  7909. # (2) before a word containing "conftest.", or (3) at the end.
  7910. # Note that $ac_compile itself does not contain backslashes and begins
  7911. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7912. # The option is referenced via a variable to avoid confusing sed.
  7913. lt_compile=`echo "$ac_compile" | $SED \
  7914. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7915. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7916. -e 's:$: $lt_compiler_flag:'`
  7917. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7918. (eval "$lt_compile" 2>conftest.err)
  7919. ac_status=$?
  7920. cat conftest.err >&5
  7921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7922. if (exit $ac_status) && test -s "$ac_outfile"; then
  7923. # The compiler can only warn and ignore the option if not recognized
  7924. # So say no if there are warnings other than the usual output.
  7925. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7926. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7927. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7928. lt_cv_prog_compiler_pic_works=yes
  7929. fi
  7930. fi
  7931. $RM conftest*
  7932. fi
  7933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7934. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7935. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7936. case $lt_prog_compiler_pic in
  7937. "" | " "*) ;;
  7938. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7939. esac
  7940. else
  7941. lt_prog_compiler_pic=
  7942. lt_prog_compiler_can_build_shared=no
  7943. fi
  7944. fi
  7945. #
  7946. # Check to make sure the static flag actually works.
  7947. #
  7948. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7950. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7951. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7952. $as_echo_n "(cached) " >&6
  7953. else
  7954. lt_cv_prog_compiler_static_works=no
  7955. save_LDFLAGS="$LDFLAGS"
  7956. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7957. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7958. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7959. # The linker can only warn and ignore the option if not recognized
  7960. # So say no if there are warnings
  7961. if test -s conftest.err; then
  7962. # Append any errors to the config.log.
  7963. cat conftest.err 1>&5
  7964. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7965. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7966. if diff conftest.exp conftest.er2 >/dev/null; then
  7967. lt_cv_prog_compiler_static_works=yes
  7968. fi
  7969. else
  7970. lt_cv_prog_compiler_static_works=yes
  7971. fi
  7972. fi
  7973. $RM -r conftest*
  7974. LDFLAGS="$save_LDFLAGS"
  7975. fi
  7976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7977. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7978. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7979. :
  7980. else
  7981. lt_prog_compiler_static=
  7982. fi
  7983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7984. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7985. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7986. $as_echo_n "(cached) " >&6
  7987. else
  7988. lt_cv_prog_compiler_c_o=no
  7989. $RM -r conftest 2>/dev/null
  7990. mkdir conftest
  7991. cd conftest
  7992. mkdir out
  7993. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7994. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7995. # Insert the option either (1) after the last *FLAGS variable, or
  7996. # (2) before a word containing "conftest.", or (3) at the end.
  7997. # Note that $ac_compile itself does not contain backslashes and begins
  7998. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7999. lt_compile=`echo "$ac_compile" | $SED \
  8000. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8001. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8002. -e 's:$: $lt_compiler_flag:'`
  8003. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8004. (eval "$lt_compile" 2>out/conftest.err)
  8005. ac_status=$?
  8006. cat out/conftest.err >&5
  8007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8008. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8009. then
  8010. # The compiler can only warn and ignore the option if not recognized
  8011. # So say no if there are warnings
  8012. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8013. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8014. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8015. lt_cv_prog_compiler_c_o=yes
  8016. fi
  8017. fi
  8018. chmod u+w . 2>&5
  8019. $RM conftest*
  8020. # SGI C++ compiler will create directory out/ii_files/ for
  8021. # template instantiation
  8022. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8023. $RM out/* && rmdir out
  8024. cd ..
  8025. $RM -r conftest
  8026. $RM conftest*
  8027. fi
  8028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8029. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8031. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8032. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8033. $as_echo_n "(cached) " >&6
  8034. else
  8035. lt_cv_prog_compiler_c_o=no
  8036. $RM -r conftest 2>/dev/null
  8037. mkdir conftest
  8038. cd conftest
  8039. mkdir out
  8040. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8041. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8042. # Insert the option either (1) after the last *FLAGS variable, or
  8043. # (2) before a word containing "conftest.", or (3) at the end.
  8044. # Note that $ac_compile itself does not contain backslashes and begins
  8045. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8046. lt_compile=`echo "$ac_compile" | $SED \
  8047. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8048. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8049. -e 's:$: $lt_compiler_flag:'`
  8050. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8051. (eval "$lt_compile" 2>out/conftest.err)
  8052. ac_status=$?
  8053. cat out/conftest.err >&5
  8054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8055. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8056. then
  8057. # The compiler can only warn and ignore the option if not recognized
  8058. # So say no if there are warnings
  8059. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8060. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8061. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8062. lt_cv_prog_compiler_c_o=yes
  8063. fi
  8064. fi
  8065. chmod u+w . 2>&5
  8066. $RM conftest*
  8067. # SGI C++ compiler will create directory out/ii_files/ for
  8068. # template instantiation
  8069. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8070. $RM out/* && rmdir out
  8071. cd ..
  8072. $RM -r conftest
  8073. $RM conftest*
  8074. fi
  8075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8076. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8077. hard_links="nottested"
  8078. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8079. # do not overwrite the value of need_locks provided by the user
  8080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8081. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8082. hard_links=yes
  8083. $RM conftest*
  8084. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8085. touch conftest.a
  8086. ln conftest.a conftest.b 2>&5 || hard_links=no
  8087. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8089. $as_echo "$hard_links" >&6; }
  8090. if test "$hard_links" = no; then
  8091. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8092. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8093. need_locks=warn
  8094. fi
  8095. else
  8096. need_locks=no
  8097. fi
  8098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8099. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8100. runpath_var=
  8101. allow_undefined_flag=
  8102. always_export_symbols=no
  8103. archive_cmds=
  8104. archive_expsym_cmds=
  8105. compiler_needs_object=no
  8106. enable_shared_with_static_runtimes=no
  8107. export_dynamic_flag_spec=
  8108. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8109. hardcode_automatic=no
  8110. hardcode_direct=no
  8111. hardcode_direct_absolute=no
  8112. hardcode_libdir_flag_spec=
  8113. hardcode_libdir_separator=
  8114. hardcode_minus_L=no
  8115. hardcode_shlibpath_var=unsupported
  8116. inherit_rpath=no
  8117. link_all_deplibs=unknown
  8118. module_cmds=
  8119. module_expsym_cmds=
  8120. old_archive_from_new_cmds=
  8121. old_archive_from_expsyms_cmds=
  8122. thread_safe_flag_spec=
  8123. whole_archive_flag_spec=
  8124. # include_expsyms should be a list of space-separated symbols to be *always*
  8125. # included in the symbol list
  8126. include_expsyms=
  8127. # exclude_expsyms can be an extended regexp of symbols to exclude
  8128. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8129. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8130. # as well as any symbol that contains `d'.
  8131. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8132. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8133. # platforms (ab)use it in PIC code, but their linkers get confused if
  8134. # the symbol is explicitly referenced. Since portable code cannot
  8135. # rely on this symbol name, it's probably fine to never include it in
  8136. # preloaded symbol tables.
  8137. # Exclude shared library initialization/finalization symbols.
  8138. extract_expsyms_cmds=
  8139. case $host_os in
  8140. cygwin* | mingw* | pw32* | cegcc*)
  8141. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8142. # When not using gcc, we currently assume that we are using
  8143. # Microsoft Visual C++.
  8144. if test "$GCC" != yes; then
  8145. with_gnu_ld=no
  8146. fi
  8147. ;;
  8148. interix*)
  8149. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8150. with_gnu_ld=yes
  8151. ;;
  8152. openbsd*)
  8153. with_gnu_ld=no
  8154. ;;
  8155. linux* | k*bsd*-gnu | gnu*)
  8156. link_all_deplibs=no
  8157. ;;
  8158. esac
  8159. ld_shlibs=yes
  8160. # On some targets, GNU ld is compatible enough with the native linker
  8161. # that we're better off using the native interface for both.
  8162. lt_use_gnu_ld_interface=no
  8163. if test "$with_gnu_ld" = yes; then
  8164. case $host_os in
  8165. aix*)
  8166. # The AIX port of GNU ld has always aspired to compatibility
  8167. # with the native linker. However, as the warning in the GNU ld
  8168. # block says, versions before 2.19.5* couldn't really create working
  8169. # shared libraries, regardless of the interface used.
  8170. case `$LD -v 2>&1` in
  8171. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8172. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8173. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8174. *)
  8175. lt_use_gnu_ld_interface=yes
  8176. ;;
  8177. esac
  8178. ;;
  8179. *)
  8180. lt_use_gnu_ld_interface=yes
  8181. ;;
  8182. esac
  8183. fi
  8184. if test "$lt_use_gnu_ld_interface" = yes; then
  8185. # If archive_cmds runs LD, not CC, wlarc should be empty
  8186. wlarc='${wl}'
  8187. # Set some defaults for GNU ld with shared library support. These
  8188. # are reset later if shared libraries are not supported. Putting them
  8189. # here allows them to be overridden if necessary.
  8190. runpath_var=LD_RUN_PATH
  8191. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8192. export_dynamic_flag_spec='${wl}--export-dynamic'
  8193. # ancient GNU ld didn't support --whole-archive et. al.
  8194. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8195. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8196. else
  8197. whole_archive_flag_spec=
  8198. fi
  8199. supports_anon_versioning=no
  8200. case `$LD -v 2>&1` in
  8201. *GNU\ gold*) supports_anon_versioning=yes ;;
  8202. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8203. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8204. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8205. *\ 2.11.*) ;; # other 2.11 versions
  8206. *) supports_anon_versioning=yes ;;
  8207. esac
  8208. # See if GNU ld supports shared libraries.
  8209. case $host_os in
  8210. aix[3-9]*)
  8211. # On AIX/PPC, the GNU linker is very broken
  8212. if test "$host_cpu" != ia64; then
  8213. ld_shlibs=no
  8214. cat <<_LT_EOF 1>&2
  8215. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8216. *** to be unable to reliably create shared libraries on AIX.
  8217. *** Therefore, libtool is disabling shared libraries support. If you
  8218. *** really care for shared libraries, you may want to install binutils
  8219. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8220. *** You will then need to restart the configuration process.
  8221. _LT_EOF
  8222. fi
  8223. ;;
  8224. amigaos*)
  8225. case $host_cpu in
  8226. powerpc)
  8227. # see comment about AmigaOS4 .so support
  8228. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8229. archive_expsym_cmds=''
  8230. ;;
  8231. m68k)
  8232. 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)'
  8233. hardcode_libdir_flag_spec='-L$libdir'
  8234. hardcode_minus_L=yes
  8235. ;;
  8236. esac
  8237. ;;
  8238. beos*)
  8239. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8240. allow_undefined_flag=unsupported
  8241. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8242. # support --undefined. This deserves some investigation. FIXME
  8243. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8244. else
  8245. ld_shlibs=no
  8246. fi
  8247. ;;
  8248. cygwin* | mingw* | pw32* | cegcc*)
  8249. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8250. # as there is no search path for DLLs.
  8251. hardcode_libdir_flag_spec='-L$libdir'
  8252. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8253. allow_undefined_flag=unsupported
  8254. always_export_symbols=no
  8255. enable_shared_with_static_runtimes=yes
  8256. 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'
  8257. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8258. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8259. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8260. # If the export-symbols file already is a .def file (1st line
  8261. # is EXPORTS), use it as is; otherwise, prepend...
  8262. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8263. cp $export_symbols $output_objdir/$soname.def;
  8264. else
  8265. echo EXPORTS > $output_objdir/$soname.def;
  8266. cat $export_symbols >> $output_objdir/$soname.def;
  8267. fi~
  8268. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8269. else
  8270. ld_shlibs=no
  8271. fi
  8272. ;;
  8273. haiku*)
  8274. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8275. link_all_deplibs=yes
  8276. ;;
  8277. interix[3-9]*)
  8278. hardcode_direct=no
  8279. hardcode_shlibpath_var=no
  8280. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8281. export_dynamic_flag_spec='${wl}-E'
  8282. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8283. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8284. # default) and relocated if they conflict, which is a slow very memory
  8285. # consuming and fragmenting process. To avoid this, we pick a random,
  8286. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8287. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8288. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8289. 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'
  8290. ;;
  8291. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8292. tmp_diet=no
  8293. if test "$host_os" = linux-dietlibc; then
  8294. case $cc_basename in
  8295. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8296. esac
  8297. fi
  8298. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8299. && test "$tmp_diet" = no
  8300. then
  8301. tmp_addflag=' $pic_flag'
  8302. tmp_sharedflag='-shared'
  8303. case $cc_basename,$host_cpu in
  8304. pgcc*) # Portland Group C compiler
  8305. 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'
  8306. tmp_addflag=' $pic_flag'
  8307. ;;
  8308. pgf77* | pgf90* | pgf95* | pgfortran*)
  8309. # Portland Group f77 and f90 compilers
  8310. 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'
  8311. tmp_addflag=' $pic_flag -Mnomain' ;;
  8312. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8313. tmp_addflag=' -i_dynamic' ;;
  8314. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8315. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8316. ifc* | ifort*) # Intel Fortran compiler
  8317. tmp_addflag=' -nofor_main' ;;
  8318. lf95*) # Lahey Fortran 8.1
  8319. whole_archive_flag_spec=
  8320. tmp_sharedflag='--shared' ;;
  8321. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8322. tmp_sharedflag='-qmkshrobj'
  8323. tmp_addflag= ;;
  8324. nvcc*) # Cuda Compiler Driver 2.2
  8325. 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'
  8326. compiler_needs_object=yes
  8327. ;;
  8328. esac
  8329. case `$CC -V 2>&1 | sed 5q` in
  8330. *Sun\ C*) # Sun C 5.9
  8331. 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'
  8332. compiler_needs_object=yes
  8333. tmp_sharedflag='-G' ;;
  8334. *Sun\ F*) # Sun Fortran 8.3
  8335. tmp_sharedflag='-G' ;;
  8336. esac
  8337. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8338. if test "x$supports_anon_versioning" = xyes; then
  8339. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8340. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8341. echo "local: *; };" >> $output_objdir/$libname.ver~
  8342. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8343. fi
  8344. case $cc_basename in
  8345. xlf* | bgf* | bgxlf* | mpixlf*)
  8346. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8347. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8348. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8349. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8350. if test "x$supports_anon_versioning" = xyes; then
  8351. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8352. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8353. echo "local: *; };" >> $output_objdir/$libname.ver~
  8354. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8355. fi
  8356. ;;
  8357. esac
  8358. else
  8359. ld_shlibs=no
  8360. fi
  8361. ;;
  8362. netbsd* | netbsdelf*-gnu)
  8363. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8364. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8365. wlarc=
  8366. else
  8367. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8368. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8369. fi
  8370. ;;
  8371. solaris*)
  8372. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8373. ld_shlibs=no
  8374. cat <<_LT_EOF 1>&2
  8375. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8376. *** create shared libraries on Solaris systems. Therefore, libtool
  8377. *** is disabling shared libraries support. We urge you to upgrade GNU
  8378. *** binutils to release 2.9.1 or newer. Another option is to modify
  8379. *** your PATH or compiler configuration so that the native linker is
  8380. *** used, and then restart.
  8381. _LT_EOF
  8382. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8383. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8384. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8385. else
  8386. ld_shlibs=no
  8387. fi
  8388. ;;
  8389. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8390. case `$LD -v 2>&1` in
  8391. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8392. ld_shlibs=no
  8393. cat <<_LT_EOF 1>&2
  8394. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8395. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8396. *** is disabling shared libraries support. We urge you to upgrade GNU
  8397. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8398. *** your PATH or compiler configuration so that the native linker is
  8399. *** used, and then restart.
  8400. _LT_EOF
  8401. ;;
  8402. *)
  8403. # For security reasons, it is highly recommended that you always
  8404. # use absolute paths for naming shared libraries, and exclude the
  8405. # DT_RUNPATH tag from executables and libraries. But doing so
  8406. # requires that you compile everything twice, which is a pain.
  8407. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8408. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8409. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8410. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8411. else
  8412. ld_shlibs=no
  8413. fi
  8414. ;;
  8415. esac
  8416. ;;
  8417. sunos4*)
  8418. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8419. wlarc=
  8420. hardcode_direct=yes
  8421. hardcode_shlibpath_var=no
  8422. ;;
  8423. *)
  8424. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8425. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8426. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8427. else
  8428. ld_shlibs=no
  8429. fi
  8430. ;;
  8431. esac
  8432. if test "$ld_shlibs" = no; then
  8433. runpath_var=
  8434. hardcode_libdir_flag_spec=
  8435. export_dynamic_flag_spec=
  8436. whole_archive_flag_spec=
  8437. fi
  8438. else
  8439. # PORTME fill in a description of your system's linker (not GNU ld)
  8440. case $host_os in
  8441. aix3*)
  8442. allow_undefined_flag=unsupported
  8443. always_export_symbols=yes
  8444. 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'
  8445. # Note: this linker hardcodes the directories in LIBPATH if there
  8446. # are no directories specified by -L.
  8447. hardcode_minus_L=yes
  8448. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8449. # Neither direct hardcoding nor static linking is supported with a
  8450. # broken collect2.
  8451. hardcode_direct=unsupported
  8452. fi
  8453. ;;
  8454. aix[4-9]*)
  8455. if test "$host_cpu" = ia64; then
  8456. # On IA64, the linker does run time linking by default, so we don't
  8457. # have to do anything special.
  8458. aix_use_runtimelinking=no
  8459. exp_sym_flag='-Bexport'
  8460. no_entry_flag=""
  8461. else
  8462. # If we're using GNU nm, then we don't want the "-C" option.
  8463. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8464. # Also, AIX nm treats weak defined symbols like other global
  8465. # defined symbols, whereas GNU nm marks them as "W".
  8466. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8467. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8468. else
  8469. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8470. fi
  8471. aix_use_runtimelinking=no
  8472. # Test if we are trying to use run time linking or normal
  8473. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8474. # need to do runtime linking.
  8475. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8476. for ld_flag in $LDFLAGS; do
  8477. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8478. aix_use_runtimelinking=yes
  8479. break
  8480. fi
  8481. done
  8482. ;;
  8483. esac
  8484. exp_sym_flag='-bexport'
  8485. no_entry_flag='-bnoentry'
  8486. fi
  8487. # When large executables or shared objects are built, AIX ld can
  8488. # have problems creating the table of contents. If linking a library
  8489. # or program results in "error TOC overflow" add -mminimal-toc to
  8490. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8491. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8492. archive_cmds=''
  8493. hardcode_direct=yes
  8494. hardcode_direct_absolute=yes
  8495. hardcode_libdir_separator=':'
  8496. link_all_deplibs=yes
  8497. file_list_spec='${wl}-f,'
  8498. if test "$GCC" = yes; then
  8499. case $host_os in aix4.[012]|aix4.[012].*)
  8500. # We only want to do this on AIX 4.2 and lower, the check
  8501. # below for broken collect2 doesn't work under 4.3+
  8502. collect2name=`${CC} -print-prog-name=collect2`
  8503. if test -f "$collect2name" &&
  8504. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8505. then
  8506. # We have reworked collect2
  8507. :
  8508. else
  8509. # We have old collect2
  8510. hardcode_direct=unsupported
  8511. # It fails to find uninstalled libraries when the uninstalled
  8512. # path is not listed in the libpath. Setting hardcode_minus_L
  8513. # to unsupported forces relinking
  8514. hardcode_minus_L=yes
  8515. hardcode_libdir_flag_spec='-L$libdir'
  8516. hardcode_libdir_separator=
  8517. fi
  8518. ;;
  8519. esac
  8520. shared_flag='-shared'
  8521. if test "$aix_use_runtimelinking" = yes; then
  8522. shared_flag="$shared_flag "'${wl}-G'
  8523. fi
  8524. link_all_deplibs=no
  8525. else
  8526. # not using gcc
  8527. if test "$host_cpu" = ia64; then
  8528. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8529. # chokes on -Wl,-G. The following line is correct:
  8530. shared_flag='-G'
  8531. else
  8532. if test "$aix_use_runtimelinking" = yes; then
  8533. shared_flag='${wl}-G'
  8534. else
  8535. shared_flag='${wl}-bM:SRE'
  8536. fi
  8537. fi
  8538. fi
  8539. export_dynamic_flag_spec='${wl}-bexpall'
  8540. # It seems that -bexpall does not export symbols beginning with
  8541. # underscore (_), so it is better to generate a list of symbols to export.
  8542. always_export_symbols=yes
  8543. if test "$aix_use_runtimelinking" = yes; then
  8544. # Warning - without using the other runtime loading flags (-brtl),
  8545. # -berok will link without error, but may produce a broken library.
  8546. allow_undefined_flag='-berok'
  8547. # Determine the default libpath from the value encoded in an
  8548. # empty executable.
  8549. if test "${lt_cv_aix_libpath+set}" = set; then
  8550. aix_libpath=$lt_cv_aix_libpath
  8551. else
  8552. if ${lt_cv_aix_libpath_+:} false; then :
  8553. $as_echo_n "(cached) " >&6
  8554. else
  8555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8556. /* end confdefs.h. */
  8557. int
  8558. main ()
  8559. {
  8560. ;
  8561. return 0;
  8562. }
  8563. _ACEOF
  8564. if ac_fn_c_try_link "$LINENO"; then :
  8565. lt_aix_libpath_sed='
  8566. /Import File Strings/,/^$/ {
  8567. /^0/ {
  8568. s/^0 *\([^ ]*\) *$/\1/
  8569. p
  8570. }
  8571. }'
  8572. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8573. # Check for a 64-bit object if we didn't find anything.
  8574. if test -z "$lt_cv_aix_libpath_"; then
  8575. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8576. fi
  8577. fi
  8578. rm -f core conftest.err conftest.$ac_objext \
  8579. conftest$ac_exeext conftest.$ac_ext
  8580. if test -z "$lt_cv_aix_libpath_"; then
  8581. lt_cv_aix_libpath_="/usr/lib:/lib"
  8582. fi
  8583. fi
  8584. aix_libpath=$lt_cv_aix_libpath_
  8585. fi
  8586. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8587. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8588. else
  8589. if test "$host_cpu" = ia64; then
  8590. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8591. allow_undefined_flag="-z nodefs"
  8592. 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"
  8593. else
  8594. # Determine the default libpath from the value encoded in an
  8595. # empty executable.
  8596. if test "${lt_cv_aix_libpath+set}" = set; then
  8597. aix_libpath=$lt_cv_aix_libpath
  8598. else
  8599. if ${lt_cv_aix_libpath_+:} false; then :
  8600. $as_echo_n "(cached) " >&6
  8601. else
  8602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8603. /* end confdefs.h. */
  8604. int
  8605. main ()
  8606. {
  8607. ;
  8608. return 0;
  8609. }
  8610. _ACEOF
  8611. if ac_fn_c_try_link "$LINENO"; then :
  8612. lt_aix_libpath_sed='
  8613. /Import File Strings/,/^$/ {
  8614. /^0/ {
  8615. s/^0 *\([^ ]*\) *$/\1/
  8616. p
  8617. }
  8618. }'
  8619. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8620. # Check for a 64-bit object if we didn't find anything.
  8621. if test -z "$lt_cv_aix_libpath_"; then
  8622. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8623. fi
  8624. fi
  8625. rm -f core conftest.err conftest.$ac_objext \
  8626. conftest$ac_exeext conftest.$ac_ext
  8627. if test -z "$lt_cv_aix_libpath_"; then
  8628. lt_cv_aix_libpath_="/usr/lib:/lib"
  8629. fi
  8630. fi
  8631. aix_libpath=$lt_cv_aix_libpath_
  8632. fi
  8633. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8634. # Warning - without using the other run time loading flags,
  8635. # -berok will link without error, but may produce a broken library.
  8636. no_undefined_flag=' ${wl}-bernotok'
  8637. allow_undefined_flag=' ${wl}-berok'
  8638. if test "$with_gnu_ld" = yes; then
  8639. # We only use this code for GNU lds that support --whole-archive.
  8640. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8641. else
  8642. # Exported symbols can be pulled into shared objects from archives
  8643. whole_archive_flag_spec='$convenience'
  8644. fi
  8645. archive_cmds_need_lc=yes
  8646. # This is similar to how AIX traditionally builds its shared libraries.
  8647. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8648. fi
  8649. fi
  8650. ;;
  8651. amigaos*)
  8652. case $host_cpu in
  8653. powerpc)
  8654. # see comment about AmigaOS4 .so support
  8655. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8656. archive_expsym_cmds=''
  8657. ;;
  8658. m68k)
  8659. 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)'
  8660. hardcode_libdir_flag_spec='-L$libdir'
  8661. hardcode_minus_L=yes
  8662. ;;
  8663. esac
  8664. ;;
  8665. bsdi[45]*)
  8666. export_dynamic_flag_spec=-rdynamic
  8667. ;;
  8668. cygwin* | mingw* | pw32* | cegcc*)
  8669. # When not using gcc, we currently assume that we are using
  8670. # Microsoft Visual C++.
  8671. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8672. # no search path for DLLs.
  8673. case $cc_basename in
  8674. cl*)
  8675. # Native MSVC
  8676. hardcode_libdir_flag_spec=' '
  8677. allow_undefined_flag=unsupported
  8678. always_export_symbols=yes
  8679. file_list_spec='@'
  8680. # Tell ltmain to make .lib files, not .a files.
  8681. libext=lib
  8682. # Tell ltmain to make .dll files, not .so files.
  8683. shrext_cmds=".dll"
  8684. # FIXME: Setting linknames here is a bad hack.
  8685. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8686. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8687. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8688. else
  8689. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8690. fi~
  8691. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8692. linknames='
  8693. # The linker will not automatically build a static lib if we build a DLL.
  8694. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8695. enable_shared_with_static_runtimes=yes
  8696. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8697. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8698. # Don't use ranlib
  8699. old_postinstall_cmds='chmod 644 $oldlib'
  8700. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8701. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8702. case $lt_outputfile in
  8703. *.exe|*.EXE) ;;
  8704. *)
  8705. lt_outputfile="$lt_outputfile.exe"
  8706. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8707. ;;
  8708. esac~
  8709. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8710. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8711. $RM "$lt_outputfile.manifest";
  8712. fi'
  8713. ;;
  8714. *)
  8715. # Assume MSVC wrapper
  8716. hardcode_libdir_flag_spec=' '
  8717. allow_undefined_flag=unsupported
  8718. # Tell ltmain to make .lib files, not .a files.
  8719. libext=lib
  8720. # Tell ltmain to make .dll files, not .so files.
  8721. shrext_cmds=".dll"
  8722. # FIXME: Setting linknames here is a bad hack.
  8723. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8724. # The linker will automatically build a .lib file if we build a DLL.
  8725. old_archive_from_new_cmds='true'
  8726. # FIXME: Should let the user specify the lib program.
  8727. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8728. enable_shared_with_static_runtimes=yes
  8729. ;;
  8730. esac
  8731. ;;
  8732. darwin* | rhapsody*)
  8733. archive_cmds_need_lc=no
  8734. hardcode_direct=no
  8735. hardcode_automatic=yes
  8736. hardcode_shlibpath_var=unsupported
  8737. if test "$lt_cv_ld_force_load" = "yes"; then
  8738. 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\"`'
  8739. else
  8740. whole_archive_flag_spec=''
  8741. fi
  8742. link_all_deplibs=yes
  8743. allow_undefined_flag="$_lt_dar_allow_undefined"
  8744. case $cc_basename in
  8745. ifort*) _lt_dar_can_shared=yes ;;
  8746. *) _lt_dar_can_shared=$GCC ;;
  8747. esac
  8748. if test "$_lt_dar_can_shared" = "yes"; then
  8749. output_verbose_link_cmd=func_echo_all
  8750. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8751. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8752. 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}"
  8753. 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}"
  8754. else
  8755. ld_shlibs=no
  8756. fi
  8757. ;;
  8758. dgux*)
  8759. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8760. hardcode_libdir_flag_spec='-L$libdir'
  8761. hardcode_shlibpath_var=no
  8762. ;;
  8763. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8764. # support. Future versions do this automatically, but an explicit c++rt0.o
  8765. # does not break anything, and helps significantly (at the cost of a little
  8766. # extra space).
  8767. freebsd2.2*)
  8768. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8769. hardcode_libdir_flag_spec='-R$libdir'
  8770. hardcode_direct=yes
  8771. hardcode_shlibpath_var=no
  8772. ;;
  8773. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8774. freebsd2.*)
  8775. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8776. hardcode_direct=yes
  8777. hardcode_minus_L=yes
  8778. hardcode_shlibpath_var=no
  8779. ;;
  8780. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8781. freebsd* | dragonfly*)
  8782. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8783. hardcode_libdir_flag_spec='-R$libdir'
  8784. hardcode_direct=yes
  8785. hardcode_shlibpath_var=no
  8786. ;;
  8787. hpux9*)
  8788. if test "$GCC" = yes; then
  8789. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8790. else
  8791. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8792. fi
  8793. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8794. hardcode_libdir_separator=:
  8795. hardcode_direct=yes
  8796. # hardcode_minus_L: Not really in the search PATH,
  8797. # but as the default location of the library.
  8798. hardcode_minus_L=yes
  8799. export_dynamic_flag_spec='${wl}-E'
  8800. ;;
  8801. hpux10*)
  8802. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8803. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8804. else
  8805. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8806. fi
  8807. if test "$with_gnu_ld" = no; then
  8808. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8809. hardcode_libdir_separator=:
  8810. hardcode_direct=yes
  8811. hardcode_direct_absolute=yes
  8812. export_dynamic_flag_spec='${wl}-E'
  8813. # hardcode_minus_L: Not really in the search PATH,
  8814. # but as the default location of the library.
  8815. hardcode_minus_L=yes
  8816. fi
  8817. ;;
  8818. hpux11*)
  8819. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8820. case $host_cpu in
  8821. hppa*64*)
  8822. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8823. ;;
  8824. ia64*)
  8825. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8826. ;;
  8827. *)
  8828. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8829. ;;
  8830. esac
  8831. else
  8832. case $host_cpu in
  8833. hppa*64*)
  8834. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8835. ;;
  8836. ia64*)
  8837. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8838. ;;
  8839. *)
  8840. # Older versions of the 11.00 compiler do not understand -b yet
  8841. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8843. $as_echo_n "checking if $CC understands -b... " >&6; }
  8844. if ${lt_cv_prog_compiler__b+:} false; then :
  8845. $as_echo_n "(cached) " >&6
  8846. else
  8847. lt_cv_prog_compiler__b=no
  8848. save_LDFLAGS="$LDFLAGS"
  8849. LDFLAGS="$LDFLAGS -b"
  8850. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8851. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8852. # The linker can only warn and ignore the option if not recognized
  8853. # So say no if there are warnings
  8854. if test -s conftest.err; then
  8855. # Append any errors to the config.log.
  8856. cat conftest.err 1>&5
  8857. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8858. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8859. if diff conftest.exp conftest.er2 >/dev/null; then
  8860. lt_cv_prog_compiler__b=yes
  8861. fi
  8862. else
  8863. lt_cv_prog_compiler__b=yes
  8864. fi
  8865. fi
  8866. $RM -r conftest*
  8867. LDFLAGS="$save_LDFLAGS"
  8868. fi
  8869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8870. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8871. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8872. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8873. else
  8874. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8875. fi
  8876. ;;
  8877. esac
  8878. fi
  8879. if test "$with_gnu_ld" = no; then
  8880. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8881. hardcode_libdir_separator=:
  8882. case $host_cpu in
  8883. hppa*64*|ia64*)
  8884. hardcode_direct=no
  8885. hardcode_shlibpath_var=no
  8886. ;;
  8887. *)
  8888. hardcode_direct=yes
  8889. hardcode_direct_absolute=yes
  8890. export_dynamic_flag_spec='${wl}-E'
  8891. # hardcode_minus_L: Not really in the search PATH,
  8892. # but as the default location of the library.
  8893. hardcode_minus_L=yes
  8894. ;;
  8895. esac
  8896. fi
  8897. ;;
  8898. irix5* | irix6* | nonstopux*)
  8899. if test "$GCC" = yes; then
  8900. 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'
  8901. # Try to use the -exported_symbol ld option, if it does not
  8902. # work, assume that -exports_file does not work either and
  8903. # implicitly export all symbols.
  8904. # This should be the same for all languages, so no per-tag cache variable.
  8905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8906. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8907. if ${lt_cv_irix_exported_symbol+:} false; then :
  8908. $as_echo_n "(cached) " >&6
  8909. else
  8910. save_LDFLAGS="$LDFLAGS"
  8911. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8913. /* end confdefs.h. */
  8914. int foo (void) { return 0; }
  8915. _ACEOF
  8916. if ac_fn_c_try_link "$LINENO"; then :
  8917. lt_cv_irix_exported_symbol=yes
  8918. else
  8919. lt_cv_irix_exported_symbol=no
  8920. fi
  8921. rm -f core conftest.err conftest.$ac_objext \
  8922. conftest$ac_exeext conftest.$ac_ext
  8923. LDFLAGS="$save_LDFLAGS"
  8924. fi
  8925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8926. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8927. if test "$lt_cv_irix_exported_symbol" = yes; then
  8928. 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'
  8929. fi
  8930. else
  8931. 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'
  8932. 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'
  8933. fi
  8934. archive_cmds_need_lc='no'
  8935. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8936. hardcode_libdir_separator=:
  8937. inherit_rpath=yes
  8938. link_all_deplibs=yes
  8939. ;;
  8940. netbsd* | netbsdelf*-gnu)
  8941. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8942. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8943. else
  8944. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8945. fi
  8946. hardcode_libdir_flag_spec='-R$libdir'
  8947. hardcode_direct=yes
  8948. hardcode_shlibpath_var=no
  8949. ;;
  8950. newsos6)
  8951. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8952. hardcode_direct=yes
  8953. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8954. hardcode_libdir_separator=:
  8955. hardcode_shlibpath_var=no
  8956. ;;
  8957. *nto* | *qnx*)
  8958. ;;
  8959. openbsd*)
  8960. if test -f /usr/libexec/ld.so; then
  8961. hardcode_direct=yes
  8962. hardcode_shlibpath_var=no
  8963. hardcode_direct_absolute=yes
  8964. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8965. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8966. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8967. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8968. export_dynamic_flag_spec='${wl}-E'
  8969. else
  8970. case $host_os in
  8971. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8972. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8973. hardcode_libdir_flag_spec='-R$libdir'
  8974. ;;
  8975. *)
  8976. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8977. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8978. ;;
  8979. esac
  8980. fi
  8981. else
  8982. ld_shlibs=no
  8983. fi
  8984. ;;
  8985. os2*)
  8986. hardcode_libdir_flag_spec='-L$libdir'
  8987. hardcode_minus_L=yes
  8988. allow_undefined_flag=unsupported
  8989. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8990. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8991. ;;
  8992. osf3*)
  8993. if test "$GCC" = yes; then
  8994. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8995. 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'
  8996. else
  8997. allow_undefined_flag=' -expect_unresolved \*'
  8998. 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'
  8999. fi
  9000. archive_cmds_need_lc='no'
  9001. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9002. hardcode_libdir_separator=:
  9003. ;;
  9004. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9005. if test "$GCC" = yes; then
  9006. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9007. 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'
  9008. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9009. else
  9010. allow_undefined_flag=' -expect_unresolved \*'
  9011. 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'
  9012. 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~
  9013. $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'
  9014. # Both c and cxx compiler support -rpath directly
  9015. hardcode_libdir_flag_spec='-rpath $libdir'
  9016. fi
  9017. archive_cmds_need_lc='no'
  9018. hardcode_libdir_separator=:
  9019. ;;
  9020. solaris*)
  9021. no_undefined_flag=' -z defs'
  9022. if test "$GCC" = yes; then
  9023. wlarc='${wl}'
  9024. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9025. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9026. $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'
  9027. else
  9028. case `$CC -V 2>&1` in
  9029. *"Compilers 5.0"*)
  9030. wlarc=''
  9031. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9032. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9033. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9034. ;;
  9035. *)
  9036. wlarc='${wl}'
  9037. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9038. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9039. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9040. ;;
  9041. esac
  9042. fi
  9043. hardcode_libdir_flag_spec='-R$libdir'
  9044. hardcode_shlibpath_var=no
  9045. case $host_os in
  9046. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9047. *)
  9048. # The compiler driver will combine and reorder linker options,
  9049. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9050. # but is careful enough not to reorder.
  9051. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9052. if test "$GCC" = yes; then
  9053. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9054. else
  9055. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9056. fi
  9057. ;;
  9058. esac
  9059. link_all_deplibs=yes
  9060. ;;
  9061. sunos4*)
  9062. if test "x$host_vendor" = xsequent; then
  9063. # Use $CC to link under sequent, because it throws in some extra .o
  9064. # files that make .init and .fini sections work.
  9065. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9066. else
  9067. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9068. fi
  9069. hardcode_libdir_flag_spec='-L$libdir'
  9070. hardcode_direct=yes
  9071. hardcode_minus_L=yes
  9072. hardcode_shlibpath_var=no
  9073. ;;
  9074. sysv4)
  9075. case $host_vendor in
  9076. sni)
  9077. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9078. hardcode_direct=yes # is this really true???
  9079. ;;
  9080. siemens)
  9081. ## LD is ld it makes a PLAMLIB
  9082. ## CC just makes a GrossModule.
  9083. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9084. reload_cmds='$CC -r -o $output$reload_objs'
  9085. hardcode_direct=no
  9086. ;;
  9087. motorola)
  9088. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9089. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9090. ;;
  9091. esac
  9092. runpath_var='LD_RUN_PATH'
  9093. hardcode_shlibpath_var=no
  9094. ;;
  9095. sysv4.3*)
  9096. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9097. hardcode_shlibpath_var=no
  9098. export_dynamic_flag_spec='-Bexport'
  9099. ;;
  9100. sysv4*MP*)
  9101. if test -d /usr/nec; then
  9102. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9103. hardcode_shlibpath_var=no
  9104. runpath_var=LD_RUN_PATH
  9105. hardcode_runpath_var=yes
  9106. ld_shlibs=yes
  9107. fi
  9108. ;;
  9109. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9110. no_undefined_flag='${wl}-z,text'
  9111. archive_cmds_need_lc=no
  9112. hardcode_shlibpath_var=no
  9113. runpath_var='LD_RUN_PATH'
  9114. if test "$GCC" = yes; then
  9115. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9116. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9117. else
  9118. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9119. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9120. fi
  9121. ;;
  9122. sysv5* | sco3.2v5* | sco5v6*)
  9123. # Note: We can NOT use -z defs as we might desire, because we do not
  9124. # link with -lc, and that would cause any symbols used from libc to
  9125. # always be unresolved, which means just about no library would
  9126. # ever link correctly. If we're not using GNU ld we use -z text
  9127. # though, which does catch some bad symbols but isn't as heavy-handed
  9128. # as -z defs.
  9129. no_undefined_flag='${wl}-z,text'
  9130. allow_undefined_flag='${wl}-z,nodefs'
  9131. archive_cmds_need_lc=no
  9132. hardcode_shlibpath_var=no
  9133. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9134. hardcode_libdir_separator=':'
  9135. link_all_deplibs=yes
  9136. export_dynamic_flag_spec='${wl}-Bexport'
  9137. runpath_var='LD_RUN_PATH'
  9138. if test "$GCC" = yes; then
  9139. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9140. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9141. else
  9142. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9143. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9144. fi
  9145. ;;
  9146. uts4*)
  9147. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9148. hardcode_libdir_flag_spec='-L$libdir'
  9149. hardcode_shlibpath_var=no
  9150. ;;
  9151. *)
  9152. ld_shlibs=no
  9153. ;;
  9154. esac
  9155. if test x$host_vendor = xsni; then
  9156. case $host in
  9157. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9158. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9159. ;;
  9160. esac
  9161. fi
  9162. fi
  9163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9164. $as_echo "$ld_shlibs" >&6; }
  9165. test "$ld_shlibs" = no && can_build_shared=no
  9166. with_gnu_ld=$with_gnu_ld
  9167. #
  9168. # Do we need to explicitly link libc?
  9169. #
  9170. case "x$archive_cmds_need_lc" in
  9171. x|xyes)
  9172. # Assume -lc should be added
  9173. archive_cmds_need_lc=yes
  9174. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9175. case $archive_cmds in
  9176. *'~'*)
  9177. # FIXME: we may have to deal with multi-command sequences.
  9178. ;;
  9179. '$CC '*)
  9180. # Test whether the compiler implicitly links with -lc since on some
  9181. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9182. # to ld, don't add -lc before -lgcc.
  9183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9184. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9185. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9186. $as_echo_n "(cached) " >&6
  9187. else
  9188. $RM conftest*
  9189. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9190. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9191. (eval $ac_compile) 2>&5
  9192. ac_status=$?
  9193. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9194. test $ac_status = 0; } 2>conftest.err; then
  9195. soname=conftest
  9196. lib=conftest
  9197. libobjs=conftest.$ac_objext
  9198. deplibs=
  9199. wl=$lt_prog_compiler_wl
  9200. pic_flag=$lt_prog_compiler_pic
  9201. compiler_flags=-v
  9202. linker_flags=-v
  9203. verstring=
  9204. output_objdir=.
  9205. libname=conftest
  9206. lt_save_allow_undefined_flag=$allow_undefined_flag
  9207. allow_undefined_flag=
  9208. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9209. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9210. ac_status=$?
  9211. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9212. test $ac_status = 0; }
  9213. then
  9214. lt_cv_archive_cmds_need_lc=no
  9215. else
  9216. lt_cv_archive_cmds_need_lc=yes
  9217. fi
  9218. allow_undefined_flag=$lt_save_allow_undefined_flag
  9219. else
  9220. cat conftest.err 1>&5
  9221. fi
  9222. $RM conftest*
  9223. fi
  9224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9225. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9226. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9227. ;;
  9228. esac
  9229. fi
  9230. ;;
  9231. esac
  9232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9233. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9234. if test "$GCC" = yes; then
  9235. case $host_os in
  9236. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9237. *) lt_awk_arg="/^libraries:/" ;;
  9238. esac
  9239. case $host_os in
  9240. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9241. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9242. esac
  9243. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9244. case $lt_search_path_spec in
  9245. *\;*)
  9246. # if the path contains ";" then we assume it to be the separator
  9247. # otherwise default to the standard path separator (i.e. ":") - it is
  9248. # assumed that no part of a normal pathname contains ";" but that should
  9249. # okay in the real world where ";" in dirpaths is itself problematic.
  9250. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9251. ;;
  9252. *)
  9253. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9254. ;;
  9255. esac
  9256. # Ok, now we have the path, separated by spaces, we can step through it
  9257. # and add multilib dir if necessary.
  9258. lt_tmp_lt_search_path_spec=
  9259. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9260. for lt_sys_path in $lt_search_path_spec; do
  9261. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9262. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9263. else
  9264. test -d "$lt_sys_path" && \
  9265. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9266. fi
  9267. done
  9268. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9269. BEGIN {RS=" "; FS="/|\n";} {
  9270. lt_foo="";
  9271. lt_count=0;
  9272. for (lt_i = NF; lt_i > 0; lt_i--) {
  9273. if ($lt_i != "" && $lt_i != ".") {
  9274. if ($lt_i == "..") {
  9275. lt_count++;
  9276. } else {
  9277. if (lt_count == 0) {
  9278. lt_foo="/" $lt_i lt_foo;
  9279. } else {
  9280. lt_count--;
  9281. }
  9282. }
  9283. }
  9284. }
  9285. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9286. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9287. }'`
  9288. # AWK program above erroneously prepends '/' to C:/dos/paths
  9289. # for these hosts.
  9290. case $host_os in
  9291. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9292. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9293. esac
  9294. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9295. else
  9296. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9297. fi
  9298. library_names_spec=
  9299. libname_spec='lib$name'
  9300. soname_spec=
  9301. shrext_cmds=".so"
  9302. postinstall_cmds=
  9303. postuninstall_cmds=
  9304. finish_cmds=
  9305. finish_eval=
  9306. shlibpath_var=
  9307. shlibpath_overrides_runpath=unknown
  9308. version_type=none
  9309. dynamic_linker="$host_os ld.so"
  9310. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9311. need_lib_prefix=unknown
  9312. hardcode_into_libs=no
  9313. # when you set need_version to no, make sure it does not cause -set_version
  9314. # flags to be left without arguments
  9315. need_version=unknown
  9316. case $host_os in
  9317. aix3*)
  9318. version_type=linux # correct to gnu/linux during the next big refactor
  9319. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9320. shlibpath_var=LIBPATH
  9321. # AIX 3 has no versioning support, so we append a major version to the name.
  9322. soname_spec='${libname}${release}${shared_ext}$major'
  9323. ;;
  9324. aix[4-9]*)
  9325. version_type=linux # correct to gnu/linux during the next big refactor
  9326. need_lib_prefix=no
  9327. need_version=no
  9328. hardcode_into_libs=yes
  9329. if test "$host_cpu" = ia64; then
  9330. # AIX 5 supports IA64
  9331. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9332. shlibpath_var=LD_LIBRARY_PATH
  9333. else
  9334. # With GCC up to 2.95.x, collect2 would create an import file
  9335. # for dependence libraries. The import file would start with
  9336. # the line `#! .'. This would cause the generated library to
  9337. # depend on `.', always an invalid library. This was fixed in
  9338. # development snapshots of GCC prior to 3.0.
  9339. case $host_os in
  9340. aix4 | aix4.[01] | aix4.[01].*)
  9341. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9342. echo ' yes '
  9343. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9344. :
  9345. else
  9346. can_build_shared=no
  9347. fi
  9348. ;;
  9349. esac
  9350. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9351. # soname into executable. Probably we can add versioning support to
  9352. # collect2, so additional links can be useful in future.
  9353. if test "$aix_use_runtimelinking" = yes; then
  9354. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9355. # instead of lib<name>.a to let people know that these are not
  9356. # typical AIX shared libraries.
  9357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9358. else
  9359. # We preserve .a as extension for shared libraries through AIX4.2
  9360. # and later when we are not doing run time linking.
  9361. library_names_spec='${libname}${release}.a $libname.a'
  9362. soname_spec='${libname}${release}${shared_ext}$major'
  9363. fi
  9364. shlibpath_var=LIBPATH
  9365. fi
  9366. ;;
  9367. amigaos*)
  9368. case $host_cpu in
  9369. powerpc)
  9370. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9371. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9373. ;;
  9374. m68k)
  9375. library_names_spec='$libname.ixlibrary $libname.a'
  9376. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9377. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9378. ;;
  9379. esac
  9380. ;;
  9381. beos*)
  9382. library_names_spec='${libname}${shared_ext}'
  9383. dynamic_linker="$host_os ld.so"
  9384. shlibpath_var=LIBRARY_PATH
  9385. ;;
  9386. bsdi[45]*)
  9387. version_type=linux # correct to gnu/linux during the next big refactor
  9388. need_version=no
  9389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9390. soname_spec='${libname}${release}${shared_ext}$major'
  9391. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9392. shlibpath_var=LD_LIBRARY_PATH
  9393. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9394. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9395. # the default ld.so.conf also contains /usr/contrib/lib and
  9396. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9397. # libtool to hard-code these into programs
  9398. ;;
  9399. cygwin* | mingw* | pw32* | cegcc*)
  9400. version_type=windows
  9401. shrext_cmds=".dll"
  9402. need_version=no
  9403. need_lib_prefix=no
  9404. case $GCC,$cc_basename in
  9405. yes,*)
  9406. # gcc
  9407. library_names_spec='$libname.dll.a'
  9408. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9409. postinstall_cmds='base_file=`basename \${file}`~
  9410. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9411. dldir=$destdir/`dirname \$dlpath`~
  9412. test -d \$dldir || mkdir -p \$dldir~
  9413. $install_prog $dir/$dlname \$dldir/$dlname~
  9414. chmod a+x \$dldir/$dlname~
  9415. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9416. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9417. fi'
  9418. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9419. dlpath=$dir/\$dldll~
  9420. $RM \$dlpath'
  9421. shlibpath_overrides_runpath=yes
  9422. case $host_os in
  9423. cygwin*)
  9424. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9425. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9426. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9427. ;;
  9428. mingw* | cegcc*)
  9429. # MinGW DLLs use traditional 'lib' prefix
  9430. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9431. ;;
  9432. pw32*)
  9433. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9434. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9435. ;;
  9436. esac
  9437. dynamic_linker='Win32 ld.exe'
  9438. ;;
  9439. *,cl*)
  9440. # Native MSVC
  9441. libname_spec='$name'
  9442. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9443. library_names_spec='${libname}.dll.lib'
  9444. case $build_os in
  9445. mingw*)
  9446. sys_lib_search_path_spec=
  9447. lt_save_ifs=$IFS
  9448. IFS=';'
  9449. for lt_path in $LIB
  9450. do
  9451. IFS=$lt_save_ifs
  9452. # Let DOS variable expansion print the short 8.3 style file name.
  9453. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9454. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9455. done
  9456. IFS=$lt_save_ifs
  9457. # Convert to MSYS style.
  9458. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9459. ;;
  9460. cygwin*)
  9461. # Convert to unix form, then to dos form, then back to unix form
  9462. # but this time dos style (no spaces!) so that the unix form looks
  9463. # like /cygdrive/c/PROGRA~1:/cygdr...
  9464. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9465. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9466. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9467. ;;
  9468. *)
  9469. sys_lib_search_path_spec="$LIB"
  9470. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9471. # It is most probably a Windows format PATH.
  9472. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9473. else
  9474. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9475. fi
  9476. # FIXME: find the short name or the path components, as spaces are
  9477. # common. (e.g. "Program Files" -> "PROGRA~1")
  9478. ;;
  9479. esac
  9480. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9481. postinstall_cmds='base_file=`basename \${file}`~
  9482. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9483. dldir=$destdir/`dirname \$dlpath`~
  9484. test -d \$dldir || mkdir -p \$dldir~
  9485. $install_prog $dir/$dlname \$dldir/$dlname'
  9486. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9487. dlpath=$dir/\$dldll~
  9488. $RM \$dlpath'
  9489. shlibpath_overrides_runpath=yes
  9490. dynamic_linker='Win32 link.exe'
  9491. ;;
  9492. *)
  9493. # Assume MSVC wrapper
  9494. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9495. dynamic_linker='Win32 ld.exe'
  9496. ;;
  9497. esac
  9498. # FIXME: first we should search . and the directory the executable is in
  9499. shlibpath_var=PATH
  9500. ;;
  9501. darwin* | rhapsody*)
  9502. dynamic_linker="$host_os dyld"
  9503. version_type=darwin
  9504. need_lib_prefix=no
  9505. need_version=no
  9506. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9507. soname_spec='${libname}${release}${major}$shared_ext'
  9508. shlibpath_overrides_runpath=yes
  9509. shlibpath_var=DYLD_LIBRARY_PATH
  9510. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9511. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9512. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9513. ;;
  9514. dgux*)
  9515. version_type=linux # correct to gnu/linux during the next big refactor
  9516. need_lib_prefix=no
  9517. need_version=no
  9518. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9519. soname_spec='${libname}${release}${shared_ext}$major'
  9520. shlibpath_var=LD_LIBRARY_PATH
  9521. ;;
  9522. freebsd* | dragonfly*)
  9523. # DragonFly does not have aout. When/if they implement a new
  9524. # versioning mechanism, adjust this.
  9525. if test -x /usr/bin/objformat; then
  9526. objformat=`/usr/bin/objformat`
  9527. else
  9528. case $host_os in
  9529. freebsd[23].*) objformat=aout ;;
  9530. *) objformat=elf ;;
  9531. esac
  9532. fi
  9533. version_type=freebsd-$objformat
  9534. case $version_type in
  9535. freebsd-elf*)
  9536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9537. need_version=no
  9538. need_lib_prefix=no
  9539. ;;
  9540. freebsd-*)
  9541. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9542. need_version=yes
  9543. ;;
  9544. esac
  9545. shlibpath_var=LD_LIBRARY_PATH
  9546. case $host_os in
  9547. freebsd2.*)
  9548. shlibpath_overrides_runpath=yes
  9549. ;;
  9550. freebsd3.[01]* | freebsdelf3.[01]*)
  9551. shlibpath_overrides_runpath=yes
  9552. hardcode_into_libs=yes
  9553. ;;
  9554. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9555. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9556. shlibpath_overrides_runpath=no
  9557. hardcode_into_libs=yes
  9558. ;;
  9559. *) # from 4.6 on, and DragonFly
  9560. shlibpath_overrides_runpath=yes
  9561. hardcode_into_libs=yes
  9562. ;;
  9563. esac
  9564. ;;
  9565. haiku*)
  9566. version_type=linux # correct to gnu/linux during the next big refactor
  9567. need_lib_prefix=no
  9568. need_version=no
  9569. dynamic_linker="$host_os runtime_loader"
  9570. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9571. soname_spec='${libname}${release}${shared_ext}$major'
  9572. shlibpath_var=LIBRARY_PATH
  9573. shlibpath_overrides_runpath=yes
  9574. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9575. hardcode_into_libs=yes
  9576. ;;
  9577. hpux9* | hpux10* | hpux11*)
  9578. # Give a soname corresponding to the major version so that dld.sl refuses to
  9579. # link against other versions.
  9580. version_type=sunos
  9581. need_lib_prefix=no
  9582. need_version=no
  9583. case $host_cpu in
  9584. ia64*)
  9585. shrext_cmds='.so'
  9586. hardcode_into_libs=yes
  9587. dynamic_linker="$host_os dld.so"
  9588. shlibpath_var=LD_LIBRARY_PATH
  9589. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9590. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9591. soname_spec='${libname}${release}${shared_ext}$major'
  9592. if test "X$HPUX_IA64_MODE" = X32; then
  9593. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9594. else
  9595. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9596. fi
  9597. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9598. ;;
  9599. hppa*64*)
  9600. shrext_cmds='.sl'
  9601. hardcode_into_libs=yes
  9602. dynamic_linker="$host_os dld.sl"
  9603. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9604. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9606. soname_spec='${libname}${release}${shared_ext}$major'
  9607. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9608. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9609. ;;
  9610. *)
  9611. shrext_cmds='.sl'
  9612. dynamic_linker="$host_os dld.sl"
  9613. shlibpath_var=SHLIB_PATH
  9614. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9616. soname_spec='${libname}${release}${shared_ext}$major'
  9617. ;;
  9618. esac
  9619. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9620. postinstall_cmds='chmod 555 $lib'
  9621. # or fails outright, so override atomically:
  9622. install_override_mode=555
  9623. ;;
  9624. interix[3-9]*)
  9625. version_type=linux # correct to gnu/linux during the next big refactor
  9626. need_lib_prefix=no
  9627. need_version=no
  9628. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9629. soname_spec='${libname}${release}${shared_ext}$major'
  9630. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9631. shlibpath_var=LD_LIBRARY_PATH
  9632. shlibpath_overrides_runpath=no
  9633. hardcode_into_libs=yes
  9634. ;;
  9635. irix5* | irix6* | nonstopux*)
  9636. case $host_os in
  9637. nonstopux*) version_type=nonstopux ;;
  9638. *)
  9639. if test "$lt_cv_prog_gnu_ld" = yes; then
  9640. version_type=linux # correct to gnu/linux during the next big refactor
  9641. else
  9642. version_type=irix
  9643. fi ;;
  9644. esac
  9645. need_lib_prefix=no
  9646. need_version=no
  9647. soname_spec='${libname}${release}${shared_ext}$major'
  9648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9649. case $host_os in
  9650. irix5* | nonstopux*)
  9651. libsuff= shlibsuff=
  9652. ;;
  9653. *)
  9654. case $LD in # libtool.m4 will add one of these switches to LD
  9655. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9656. libsuff= shlibsuff= libmagic=32-bit;;
  9657. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9658. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9659. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9660. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9661. *) libsuff= shlibsuff= libmagic=never-match;;
  9662. esac
  9663. ;;
  9664. esac
  9665. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9666. shlibpath_overrides_runpath=no
  9667. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9668. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9669. hardcode_into_libs=yes
  9670. ;;
  9671. # No shared lib support for Linux oldld, aout, or coff.
  9672. linux*oldld* | linux*aout* | linux*coff*)
  9673. dynamic_linker=no
  9674. ;;
  9675. # This must be glibc/ELF.
  9676. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9677. version_type=linux # correct to gnu/linux during the next big refactor
  9678. need_lib_prefix=no
  9679. need_version=no
  9680. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9681. soname_spec='${libname}${release}${shared_ext}$major'
  9682. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9683. shlibpath_var=LD_LIBRARY_PATH
  9684. shlibpath_overrides_runpath=no
  9685. # Some binutils ld are patched to set DT_RUNPATH
  9686. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9687. $as_echo_n "(cached) " >&6
  9688. else
  9689. lt_cv_shlibpath_overrides_runpath=no
  9690. save_LDFLAGS=$LDFLAGS
  9691. save_libdir=$libdir
  9692. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9693. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9695. /* end confdefs.h. */
  9696. int
  9697. main ()
  9698. {
  9699. ;
  9700. return 0;
  9701. }
  9702. _ACEOF
  9703. if ac_fn_c_try_link "$LINENO"; then :
  9704. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9705. lt_cv_shlibpath_overrides_runpath=yes
  9706. fi
  9707. fi
  9708. rm -f core conftest.err conftest.$ac_objext \
  9709. conftest$ac_exeext conftest.$ac_ext
  9710. LDFLAGS=$save_LDFLAGS
  9711. libdir=$save_libdir
  9712. fi
  9713. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9714. # This implies no fast_install, which is unacceptable.
  9715. # Some rework will be needed to allow for fast_install
  9716. # before this can be enabled.
  9717. hardcode_into_libs=yes
  9718. # Append ld.so.conf contents to the search path
  9719. if test -f /etc/ld.so.conf; then
  9720. 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' ' '`
  9721. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9722. fi
  9723. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9724. # powerpc, because MkLinux only supported shared libraries with the
  9725. # GNU dynamic linker. Since this was broken with cross compilers,
  9726. # most powerpc-linux boxes support dynamic linking these days and
  9727. # people can always --disable-shared, the test was removed, and we
  9728. # assume the GNU/Linux dynamic linker is in use.
  9729. dynamic_linker='GNU/Linux ld.so'
  9730. ;;
  9731. netbsdelf*-gnu)
  9732. version_type=linux
  9733. need_lib_prefix=no
  9734. need_version=no
  9735. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9736. soname_spec='${libname}${release}${shared_ext}$major'
  9737. shlibpath_var=LD_LIBRARY_PATH
  9738. shlibpath_overrides_runpath=no
  9739. hardcode_into_libs=yes
  9740. dynamic_linker='NetBSD ld.elf_so'
  9741. ;;
  9742. netbsd*)
  9743. version_type=sunos
  9744. need_lib_prefix=no
  9745. need_version=no
  9746. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9748. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9749. dynamic_linker='NetBSD (a.out) ld.so'
  9750. else
  9751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9752. soname_spec='${libname}${release}${shared_ext}$major'
  9753. dynamic_linker='NetBSD ld.elf_so'
  9754. fi
  9755. shlibpath_var=LD_LIBRARY_PATH
  9756. shlibpath_overrides_runpath=yes
  9757. hardcode_into_libs=yes
  9758. ;;
  9759. newsos6)
  9760. version_type=linux # correct to gnu/linux during the next big refactor
  9761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9762. shlibpath_var=LD_LIBRARY_PATH
  9763. shlibpath_overrides_runpath=yes
  9764. ;;
  9765. *nto* | *qnx*)
  9766. version_type=qnx
  9767. need_lib_prefix=no
  9768. need_version=no
  9769. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9770. soname_spec='${libname}${release}${shared_ext}$major'
  9771. shlibpath_var=LD_LIBRARY_PATH
  9772. shlibpath_overrides_runpath=no
  9773. hardcode_into_libs=yes
  9774. dynamic_linker='ldqnx.so'
  9775. ;;
  9776. openbsd*)
  9777. version_type=sunos
  9778. sys_lib_dlsearch_path_spec="/usr/lib"
  9779. need_lib_prefix=no
  9780. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9781. case $host_os in
  9782. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9783. *) need_version=no ;;
  9784. esac
  9785. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9786. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9787. shlibpath_var=LD_LIBRARY_PATH
  9788. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9789. case $host_os in
  9790. openbsd2.[89] | openbsd2.[89].*)
  9791. shlibpath_overrides_runpath=no
  9792. ;;
  9793. *)
  9794. shlibpath_overrides_runpath=yes
  9795. ;;
  9796. esac
  9797. else
  9798. shlibpath_overrides_runpath=yes
  9799. fi
  9800. ;;
  9801. os2*)
  9802. libname_spec='$name'
  9803. shrext_cmds=".dll"
  9804. need_lib_prefix=no
  9805. library_names_spec='$libname${shared_ext} $libname.a'
  9806. dynamic_linker='OS/2 ld.exe'
  9807. shlibpath_var=LIBPATH
  9808. ;;
  9809. osf3* | osf4* | osf5*)
  9810. version_type=osf
  9811. need_lib_prefix=no
  9812. need_version=no
  9813. soname_spec='${libname}${release}${shared_ext}$major'
  9814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9815. shlibpath_var=LD_LIBRARY_PATH
  9816. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9817. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9818. ;;
  9819. rdos*)
  9820. dynamic_linker=no
  9821. ;;
  9822. solaris*)
  9823. version_type=linux # correct to gnu/linux during the next big refactor
  9824. need_lib_prefix=no
  9825. need_version=no
  9826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9827. soname_spec='${libname}${release}${shared_ext}$major'
  9828. shlibpath_var=LD_LIBRARY_PATH
  9829. shlibpath_overrides_runpath=yes
  9830. hardcode_into_libs=yes
  9831. # ldd complains unless libraries are executable
  9832. postinstall_cmds='chmod +x $lib'
  9833. ;;
  9834. sunos4*)
  9835. version_type=sunos
  9836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9837. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9838. shlibpath_var=LD_LIBRARY_PATH
  9839. shlibpath_overrides_runpath=yes
  9840. if test "$with_gnu_ld" = yes; then
  9841. need_lib_prefix=no
  9842. fi
  9843. need_version=yes
  9844. ;;
  9845. sysv4 | sysv4.3*)
  9846. version_type=linux # correct to gnu/linux during the next big refactor
  9847. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9848. soname_spec='${libname}${release}${shared_ext}$major'
  9849. shlibpath_var=LD_LIBRARY_PATH
  9850. case $host_vendor in
  9851. sni)
  9852. shlibpath_overrides_runpath=no
  9853. need_lib_prefix=no
  9854. runpath_var=LD_RUN_PATH
  9855. ;;
  9856. siemens)
  9857. need_lib_prefix=no
  9858. ;;
  9859. motorola)
  9860. need_lib_prefix=no
  9861. need_version=no
  9862. shlibpath_overrides_runpath=no
  9863. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9864. ;;
  9865. esac
  9866. ;;
  9867. sysv4*MP*)
  9868. if test -d /usr/nec ;then
  9869. version_type=linux # correct to gnu/linux during the next big refactor
  9870. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9871. soname_spec='$libname${shared_ext}.$major'
  9872. shlibpath_var=LD_LIBRARY_PATH
  9873. fi
  9874. ;;
  9875. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9876. version_type=freebsd-elf
  9877. need_lib_prefix=no
  9878. need_version=no
  9879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9880. soname_spec='${libname}${release}${shared_ext}$major'
  9881. shlibpath_var=LD_LIBRARY_PATH
  9882. shlibpath_overrides_runpath=yes
  9883. hardcode_into_libs=yes
  9884. if test "$with_gnu_ld" = yes; then
  9885. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9886. else
  9887. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9888. case $host_os in
  9889. sco3.2v5*)
  9890. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9891. ;;
  9892. esac
  9893. fi
  9894. sys_lib_dlsearch_path_spec='/usr/lib'
  9895. ;;
  9896. tpf*)
  9897. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9898. version_type=linux # correct to gnu/linux during the next big refactor
  9899. need_lib_prefix=no
  9900. need_version=no
  9901. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9902. shlibpath_var=LD_LIBRARY_PATH
  9903. shlibpath_overrides_runpath=no
  9904. hardcode_into_libs=yes
  9905. ;;
  9906. uts4*)
  9907. version_type=linux # correct to gnu/linux during the next big refactor
  9908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9909. soname_spec='${libname}${release}${shared_ext}$major'
  9910. shlibpath_var=LD_LIBRARY_PATH
  9911. ;;
  9912. *)
  9913. dynamic_linker=no
  9914. ;;
  9915. esac
  9916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9917. $as_echo "$dynamic_linker" >&6; }
  9918. test "$dynamic_linker" = no && can_build_shared=no
  9919. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9920. if test "$GCC" = yes; then
  9921. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9922. fi
  9923. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9924. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9925. fi
  9926. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9927. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9928. fi
  9929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9930. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9931. hardcode_action=
  9932. if test -n "$hardcode_libdir_flag_spec" ||
  9933. test -n "$runpath_var" ||
  9934. test "X$hardcode_automatic" = "Xyes" ; then
  9935. # We can hardcode non-existent directories.
  9936. if test "$hardcode_direct" != no &&
  9937. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9938. # have to relink, otherwise we might link with an installed library
  9939. # when we should be linking with a yet-to-be-installed one
  9940. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9941. test "$hardcode_minus_L" != no; then
  9942. # Linking always hardcodes the temporary library directory.
  9943. hardcode_action=relink
  9944. else
  9945. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9946. hardcode_action=immediate
  9947. fi
  9948. else
  9949. # We cannot hardcode anything, or else we can only hardcode existing
  9950. # directories.
  9951. hardcode_action=unsupported
  9952. fi
  9953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9954. $as_echo "$hardcode_action" >&6; }
  9955. if test "$hardcode_action" = relink ||
  9956. test "$inherit_rpath" = yes; then
  9957. # Fast installation is not supported
  9958. enable_fast_install=no
  9959. elif test "$shlibpath_overrides_runpath" = yes ||
  9960. test "$enable_shared" = no; then
  9961. # Fast installation is not necessary
  9962. enable_fast_install=needless
  9963. fi
  9964. if test "x$enable_dlopen" != xyes; then
  9965. enable_dlopen=unknown
  9966. enable_dlopen_self=unknown
  9967. enable_dlopen_self_static=unknown
  9968. else
  9969. lt_cv_dlopen=no
  9970. lt_cv_dlopen_libs=
  9971. case $host_os in
  9972. beos*)
  9973. lt_cv_dlopen="load_add_on"
  9974. lt_cv_dlopen_libs=
  9975. lt_cv_dlopen_self=yes
  9976. ;;
  9977. mingw* | pw32* | cegcc*)
  9978. lt_cv_dlopen="LoadLibrary"
  9979. lt_cv_dlopen_libs=
  9980. ;;
  9981. cygwin*)
  9982. lt_cv_dlopen="dlopen"
  9983. lt_cv_dlopen_libs=
  9984. ;;
  9985. darwin*)
  9986. # if libdl is installed we need to link against it
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9988. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9989. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9990. $as_echo_n "(cached) " >&6
  9991. else
  9992. ac_check_lib_save_LIBS=$LIBS
  9993. LIBS="-ldl $LIBS"
  9994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9995. /* end confdefs.h. */
  9996. /* Override any GCC internal prototype to avoid an error.
  9997. Use char because int might match the return type of a GCC
  9998. builtin and then its argument prototype would still apply. */
  9999. #ifdef __cplusplus
  10000. extern "C"
  10001. #endif
  10002. char dlopen ();
  10003. int
  10004. main ()
  10005. {
  10006. return dlopen ();
  10007. ;
  10008. return 0;
  10009. }
  10010. _ACEOF
  10011. if ac_fn_c_try_link "$LINENO"; then :
  10012. ac_cv_lib_dl_dlopen=yes
  10013. else
  10014. ac_cv_lib_dl_dlopen=no
  10015. fi
  10016. rm -f core conftest.err conftest.$ac_objext \
  10017. conftest$ac_exeext conftest.$ac_ext
  10018. LIBS=$ac_check_lib_save_LIBS
  10019. fi
  10020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10021. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10022. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10023. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10024. else
  10025. lt_cv_dlopen="dyld"
  10026. lt_cv_dlopen_libs=
  10027. lt_cv_dlopen_self=yes
  10028. fi
  10029. ;;
  10030. *)
  10031. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10032. if test "x$ac_cv_func_shl_load" = xyes; then :
  10033. lt_cv_dlopen="shl_load"
  10034. else
  10035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10036. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10037. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10038. $as_echo_n "(cached) " >&6
  10039. else
  10040. ac_check_lib_save_LIBS=$LIBS
  10041. LIBS="-ldld $LIBS"
  10042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10043. /* end confdefs.h. */
  10044. /* Override any GCC internal prototype to avoid an error.
  10045. Use char because int might match the return type of a GCC
  10046. builtin and then its argument prototype would still apply. */
  10047. #ifdef __cplusplus
  10048. extern "C"
  10049. #endif
  10050. char shl_load ();
  10051. int
  10052. main ()
  10053. {
  10054. return shl_load ();
  10055. ;
  10056. return 0;
  10057. }
  10058. _ACEOF
  10059. if ac_fn_c_try_link "$LINENO"; then :
  10060. ac_cv_lib_dld_shl_load=yes
  10061. else
  10062. ac_cv_lib_dld_shl_load=no
  10063. fi
  10064. rm -f core conftest.err conftest.$ac_objext \
  10065. conftest$ac_exeext conftest.$ac_ext
  10066. LIBS=$ac_check_lib_save_LIBS
  10067. fi
  10068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10069. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10070. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10071. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10072. else
  10073. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10074. if test "x$ac_cv_func_dlopen" = xyes; then :
  10075. lt_cv_dlopen="dlopen"
  10076. else
  10077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10078. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10079. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10080. $as_echo_n "(cached) " >&6
  10081. else
  10082. ac_check_lib_save_LIBS=$LIBS
  10083. LIBS="-ldl $LIBS"
  10084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10085. /* end confdefs.h. */
  10086. /* Override any GCC internal prototype to avoid an error.
  10087. Use char because int might match the return type of a GCC
  10088. builtin and then its argument prototype would still apply. */
  10089. #ifdef __cplusplus
  10090. extern "C"
  10091. #endif
  10092. char dlopen ();
  10093. int
  10094. main ()
  10095. {
  10096. return dlopen ();
  10097. ;
  10098. return 0;
  10099. }
  10100. _ACEOF
  10101. if ac_fn_c_try_link "$LINENO"; then :
  10102. ac_cv_lib_dl_dlopen=yes
  10103. else
  10104. ac_cv_lib_dl_dlopen=no
  10105. fi
  10106. rm -f core conftest.err conftest.$ac_objext \
  10107. conftest$ac_exeext conftest.$ac_ext
  10108. LIBS=$ac_check_lib_save_LIBS
  10109. fi
  10110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10111. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10112. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10113. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10114. else
  10115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10116. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10117. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10118. $as_echo_n "(cached) " >&6
  10119. else
  10120. ac_check_lib_save_LIBS=$LIBS
  10121. LIBS="-lsvld $LIBS"
  10122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10123. /* end confdefs.h. */
  10124. /* Override any GCC internal prototype to avoid an error.
  10125. Use char because int might match the return type of a GCC
  10126. builtin and then its argument prototype would still apply. */
  10127. #ifdef __cplusplus
  10128. extern "C"
  10129. #endif
  10130. char dlopen ();
  10131. int
  10132. main ()
  10133. {
  10134. return dlopen ();
  10135. ;
  10136. return 0;
  10137. }
  10138. _ACEOF
  10139. if ac_fn_c_try_link "$LINENO"; then :
  10140. ac_cv_lib_svld_dlopen=yes
  10141. else
  10142. ac_cv_lib_svld_dlopen=no
  10143. fi
  10144. rm -f core conftest.err conftest.$ac_objext \
  10145. conftest$ac_exeext conftest.$ac_ext
  10146. LIBS=$ac_check_lib_save_LIBS
  10147. fi
  10148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10149. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10150. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10151. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10152. else
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10154. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10155. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10156. $as_echo_n "(cached) " >&6
  10157. else
  10158. ac_check_lib_save_LIBS=$LIBS
  10159. LIBS="-ldld $LIBS"
  10160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10161. /* end confdefs.h. */
  10162. /* Override any GCC internal prototype to avoid an error.
  10163. Use char because int might match the return type of a GCC
  10164. builtin and then its argument prototype would still apply. */
  10165. #ifdef __cplusplus
  10166. extern "C"
  10167. #endif
  10168. char dld_link ();
  10169. int
  10170. main ()
  10171. {
  10172. return dld_link ();
  10173. ;
  10174. return 0;
  10175. }
  10176. _ACEOF
  10177. if ac_fn_c_try_link "$LINENO"; then :
  10178. ac_cv_lib_dld_dld_link=yes
  10179. else
  10180. ac_cv_lib_dld_dld_link=no
  10181. fi
  10182. rm -f core conftest.err conftest.$ac_objext \
  10183. conftest$ac_exeext conftest.$ac_ext
  10184. LIBS=$ac_check_lib_save_LIBS
  10185. fi
  10186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10187. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10188. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10189. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10190. fi
  10191. fi
  10192. fi
  10193. fi
  10194. fi
  10195. fi
  10196. ;;
  10197. esac
  10198. if test "x$lt_cv_dlopen" != xno; then
  10199. enable_dlopen=yes
  10200. else
  10201. enable_dlopen=no
  10202. fi
  10203. case $lt_cv_dlopen in
  10204. dlopen)
  10205. save_CPPFLAGS="$CPPFLAGS"
  10206. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10207. save_LDFLAGS="$LDFLAGS"
  10208. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10209. save_LIBS="$LIBS"
  10210. LIBS="$lt_cv_dlopen_libs $LIBS"
  10211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10212. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10213. if ${lt_cv_dlopen_self+:} false; then :
  10214. $as_echo_n "(cached) " >&6
  10215. else
  10216. if test "$cross_compiling" = yes; then :
  10217. lt_cv_dlopen_self=cross
  10218. else
  10219. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10220. lt_status=$lt_dlunknown
  10221. cat > conftest.$ac_ext <<_LT_EOF
  10222. #line $LINENO "configure"
  10223. #include "confdefs.h"
  10224. #if HAVE_DLFCN_H
  10225. #include <dlfcn.h>
  10226. #endif
  10227. #include <stdio.h>
  10228. #ifdef RTLD_GLOBAL
  10229. # define LT_DLGLOBAL RTLD_GLOBAL
  10230. #else
  10231. # ifdef DL_GLOBAL
  10232. # define LT_DLGLOBAL DL_GLOBAL
  10233. # else
  10234. # define LT_DLGLOBAL 0
  10235. # endif
  10236. #endif
  10237. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10238. find out it does not work in some platform. */
  10239. #ifndef LT_DLLAZY_OR_NOW
  10240. # ifdef RTLD_LAZY
  10241. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10242. # else
  10243. # ifdef DL_LAZY
  10244. # define LT_DLLAZY_OR_NOW DL_LAZY
  10245. # else
  10246. # ifdef RTLD_NOW
  10247. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10248. # else
  10249. # ifdef DL_NOW
  10250. # define LT_DLLAZY_OR_NOW DL_NOW
  10251. # else
  10252. # define LT_DLLAZY_OR_NOW 0
  10253. # endif
  10254. # endif
  10255. # endif
  10256. # endif
  10257. #endif
  10258. /* When -fvisbility=hidden is used, assume the code has been annotated
  10259. correspondingly for the symbols needed. */
  10260. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10261. int fnord () __attribute__((visibility("default")));
  10262. #endif
  10263. int fnord () { return 42; }
  10264. int main ()
  10265. {
  10266. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10267. int status = $lt_dlunknown;
  10268. if (self)
  10269. {
  10270. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10271. else
  10272. {
  10273. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10274. else puts (dlerror ());
  10275. }
  10276. /* dlclose (self); */
  10277. }
  10278. else
  10279. puts (dlerror ());
  10280. return status;
  10281. }
  10282. _LT_EOF
  10283. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10284. (eval $ac_link) 2>&5
  10285. ac_status=$?
  10286. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10287. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10288. (./conftest; exit; ) >&5 2>/dev/null
  10289. lt_status=$?
  10290. case x$lt_status in
  10291. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10292. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10293. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10294. esac
  10295. else :
  10296. # compilation failed
  10297. lt_cv_dlopen_self=no
  10298. fi
  10299. fi
  10300. rm -fr conftest*
  10301. fi
  10302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10303. $as_echo "$lt_cv_dlopen_self" >&6; }
  10304. if test "x$lt_cv_dlopen_self" = xyes; then
  10305. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10307. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10308. if ${lt_cv_dlopen_self_static+:} false; then :
  10309. $as_echo_n "(cached) " >&6
  10310. else
  10311. if test "$cross_compiling" = yes; then :
  10312. lt_cv_dlopen_self_static=cross
  10313. else
  10314. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10315. lt_status=$lt_dlunknown
  10316. cat > conftest.$ac_ext <<_LT_EOF
  10317. #line $LINENO "configure"
  10318. #include "confdefs.h"
  10319. #if HAVE_DLFCN_H
  10320. #include <dlfcn.h>
  10321. #endif
  10322. #include <stdio.h>
  10323. #ifdef RTLD_GLOBAL
  10324. # define LT_DLGLOBAL RTLD_GLOBAL
  10325. #else
  10326. # ifdef DL_GLOBAL
  10327. # define LT_DLGLOBAL DL_GLOBAL
  10328. # else
  10329. # define LT_DLGLOBAL 0
  10330. # endif
  10331. #endif
  10332. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10333. find out it does not work in some platform. */
  10334. #ifndef LT_DLLAZY_OR_NOW
  10335. # ifdef RTLD_LAZY
  10336. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10337. # else
  10338. # ifdef DL_LAZY
  10339. # define LT_DLLAZY_OR_NOW DL_LAZY
  10340. # else
  10341. # ifdef RTLD_NOW
  10342. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10343. # else
  10344. # ifdef DL_NOW
  10345. # define LT_DLLAZY_OR_NOW DL_NOW
  10346. # else
  10347. # define LT_DLLAZY_OR_NOW 0
  10348. # endif
  10349. # endif
  10350. # endif
  10351. # endif
  10352. #endif
  10353. /* When -fvisbility=hidden is used, assume the code has been annotated
  10354. correspondingly for the symbols needed. */
  10355. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10356. int fnord () __attribute__((visibility("default")));
  10357. #endif
  10358. int fnord () { return 42; }
  10359. int main ()
  10360. {
  10361. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10362. int status = $lt_dlunknown;
  10363. if (self)
  10364. {
  10365. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10366. else
  10367. {
  10368. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10369. else puts (dlerror ());
  10370. }
  10371. /* dlclose (self); */
  10372. }
  10373. else
  10374. puts (dlerror ());
  10375. return status;
  10376. }
  10377. _LT_EOF
  10378. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10379. (eval $ac_link) 2>&5
  10380. ac_status=$?
  10381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10382. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10383. (./conftest; exit; ) >&5 2>/dev/null
  10384. lt_status=$?
  10385. case x$lt_status in
  10386. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10387. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10388. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10389. esac
  10390. else :
  10391. # compilation failed
  10392. lt_cv_dlopen_self_static=no
  10393. fi
  10394. fi
  10395. rm -fr conftest*
  10396. fi
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10398. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10399. fi
  10400. CPPFLAGS="$save_CPPFLAGS"
  10401. LDFLAGS="$save_LDFLAGS"
  10402. LIBS="$save_LIBS"
  10403. ;;
  10404. esac
  10405. case $lt_cv_dlopen_self in
  10406. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10407. *) enable_dlopen_self=unknown ;;
  10408. esac
  10409. case $lt_cv_dlopen_self_static in
  10410. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10411. *) enable_dlopen_self_static=unknown ;;
  10412. esac
  10413. fi
  10414. striplib=
  10415. old_striplib=
  10416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10417. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10418. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10419. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10420. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10422. $as_echo "yes" >&6; }
  10423. else
  10424. # FIXME - insert some real tests, host_os isn't really good enough
  10425. case $host_os in
  10426. darwin*)
  10427. if test -n "$STRIP" ; then
  10428. striplib="$STRIP -x"
  10429. old_striplib="$STRIP -S"
  10430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10431. $as_echo "yes" >&6; }
  10432. else
  10433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10434. $as_echo "no" >&6; }
  10435. fi
  10436. ;;
  10437. *)
  10438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10439. $as_echo "no" >&6; }
  10440. ;;
  10441. esac
  10442. fi
  10443. # Report which library types will actually be built
  10444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10445. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10447. $as_echo "$can_build_shared" >&6; }
  10448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10449. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10450. test "$can_build_shared" = "no" && enable_shared=no
  10451. # On AIX, shared libraries and static libraries use the same namespace, and
  10452. # are all built from PIC.
  10453. case $host_os in
  10454. aix3*)
  10455. test "$enable_shared" = yes && enable_static=no
  10456. if test -n "$RANLIB"; then
  10457. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10458. postinstall_cmds='$RANLIB $lib'
  10459. fi
  10460. ;;
  10461. aix[4-9]*)
  10462. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10463. test "$enable_shared" = yes && enable_static=no
  10464. fi
  10465. ;;
  10466. esac
  10467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10468. $as_echo "$enable_shared" >&6; }
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10470. $as_echo_n "checking whether to build static libraries... " >&6; }
  10471. # Make sure either enable_shared or enable_static is yes.
  10472. test "$enable_shared" = yes || enable_static=yes
  10473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10474. $as_echo "$enable_static" >&6; }
  10475. fi
  10476. ac_ext=cpp
  10477. ac_cpp='$CXXCPP $CPPFLAGS'
  10478. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10479. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10480. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10481. CC="$lt_save_CC"
  10482. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10483. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10484. (test "X$CXX" != "Xg++"))) ; then
  10485. ac_ext=cpp
  10486. ac_cpp='$CXXCPP $CPPFLAGS'
  10487. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10488. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10489. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10491. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10492. if test -z "$CXXCPP"; then
  10493. if ${ac_cv_prog_CXXCPP+:} false; then :
  10494. $as_echo_n "(cached) " >&6
  10495. else
  10496. # Double quotes because CXXCPP needs to be expanded
  10497. for CXXCPP in "$CXX -E" "/lib/cpp"
  10498. do
  10499. ac_preproc_ok=false
  10500. for ac_cxx_preproc_warn_flag in '' yes
  10501. do
  10502. # Use a header file that comes with gcc, so configuring glibc
  10503. # with a fresh cross-compiler works.
  10504. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10505. # <limits.h> exists even on freestanding compilers.
  10506. # On the NeXT, cc -E runs the code through the compiler's parser,
  10507. # not just through cpp. "Syntax error" is here to catch this case.
  10508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10509. /* end confdefs.h. */
  10510. #ifdef __STDC__
  10511. # include <limits.h>
  10512. #else
  10513. # include <assert.h>
  10514. #endif
  10515. Syntax error
  10516. _ACEOF
  10517. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10518. else
  10519. # Broken: fails on valid input.
  10520. continue
  10521. fi
  10522. rm -f conftest.err conftest.i conftest.$ac_ext
  10523. # OK, works on sane cases. Now check whether nonexistent headers
  10524. # can be detected and how.
  10525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10526. /* end confdefs.h. */
  10527. #include <ac_nonexistent.h>
  10528. _ACEOF
  10529. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10530. # Broken: success on invalid input.
  10531. continue
  10532. else
  10533. # Passes both tests.
  10534. ac_preproc_ok=:
  10535. break
  10536. fi
  10537. rm -f conftest.err conftest.i conftest.$ac_ext
  10538. done
  10539. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10540. rm -f conftest.i conftest.err conftest.$ac_ext
  10541. if $ac_preproc_ok; then :
  10542. break
  10543. fi
  10544. done
  10545. ac_cv_prog_CXXCPP=$CXXCPP
  10546. fi
  10547. CXXCPP=$ac_cv_prog_CXXCPP
  10548. else
  10549. ac_cv_prog_CXXCPP=$CXXCPP
  10550. fi
  10551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10552. $as_echo "$CXXCPP" >&6; }
  10553. ac_preproc_ok=false
  10554. for ac_cxx_preproc_warn_flag in '' yes
  10555. do
  10556. # Use a header file that comes with gcc, so configuring glibc
  10557. # with a fresh cross-compiler works.
  10558. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10559. # <limits.h> exists even on freestanding compilers.
  10560. # On the NeXT, cc -E runs the code through the compiler's parser,
  10561. # not just through cpp. "Syntax error" is here to catch this case.
  10562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10563. /* end confdefs.h. */
  10564. #ifdef __STDC__
  10565. # include <limits.h>
  10566. #else
  10567. # include <assert.h>
  10568. #endif
  10569. Syntax error
  10570. _ACEOF
  10571. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10572. else
  10573. # Broken: fails on valid input.
  10574. continue
  10575. fi
  10576. rm -f conftest.err conftest.i conftest.$ac_ext
  10577. # OK, works on sane cases. Now check whether nonexistent headers
  10578. # can be detected and how.
  10579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10580. /* end confdefs.h. */
  10581. #include <ac_nonexistent.h>
  10582. _ACEOF
  10583. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10584. # Broken: success on invalid input.
  10585. continue
  10586. else
  10587. # Passes both tests.
  10588. ac_preproc_ok=:
  10589. break
  10590. fi
  10591. rm -f conftest.err conftest.i conftest.$ac_ext
  10592. done
  10593. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10594. rm -f conftest.i conftest.err conftest.$ac_ext
  10595. if $ac_preproc_ok; then :
  10596. else
  10597. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10598. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10599. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10600. See \`config.log' for more details" "$LINENO" 5; }
  10601. fi
  10602. ac_ext=cpp
  10603. ac_cpp='$CXXCPP $CPPFLAGS'
  10604. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10605. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10606. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10607. else
  10608. _lt_caught_CXX_error=yes
  10609. fi
  10610. ac_ext=cpp
  10611. ac_cpp='$CXXCPP $CPPFLAGS'
  10612. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10613. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10614. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10615. archive_cmds_need_lc_CXX=no
  10616. allow_undefined_flag_CXX=
  10617. always_export_symbols_CXX=no
  10618. archive_expsym_cmds_CXX=
  10619. compiler_needs_object_CXX=no
  10620. export_dynamic_flag_spec_CXX=
  10621. hardcode_direct_CXX=no
  10622. hardcode_direct_absolute_CXX=no
  10623. hardcode_libdir_flag_spec_CXX=
  10624. hardcode_libdir_separator_CXX=
  10625. hardcode_minus_L_CXX=no
  10626. hardcode_shlibpath_var_CXX=unsupported
  10627. hardcode_automatic_CXX=no
  10628. inherit_rpath_CXX=no
  10629. module_cmds_CXX=
  10630. module_expsym_cmds_CXX=
  10631. link_all_deplibs_CXX=unknown
  10632. old_archive_cmds_CXX=$old_archive_cmds
  10633. reload_flag_CXX=$reload_flag
  10634. reload_cmds_CXX=$reload_cmds
  10635. no_undefined_flag_CXX=
  10636. whole_archive_flag_spec_CXX=
  10637. enable_shared_with_static_runtimes_CXX=no
  10638. # Source file extension for C++ test sources.
  10639. ac_ext=cpp
  10640. # Object file extension for compiled C++ test sources.
  10641. objext=o
  10642. objext_CXX=$objext
  10643. # No sense in running all these tests if we already determined that
  10644. # the CXX compiler isn't working. Some variables (like enable_shared)
  10645. # are currently assumed to apply to all compilers on this platform,
  10646. # and will be corrupted by setting them based on a non-working compiler.
  10647. if test "$_lt_caught_CXX_error" != yes; then
  10648. # Code to be used in simple compile tests
  10649. lt_simple_compile_test_code="int some_variable = 0;"
  10650. # Code to be used in simple link tests
  10651. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10652. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10653. # If no C compiler was specified, use CC.
  10654. LTCC=${LTCC-"$CC"}
  10655. # If no C compiler flags were specified, use CFLAGS.
  10656. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10657. # Allow CC to be a program name with arguments.
  10658. compiler=$CC
  10659. # save warnings/boilerplate of simple test code
  10660. ac_outfile=conftest.$ac_objext
  10661. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10662. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10663. _lt_compiler_boilerplate=`cat conftest.err`
  10664. $RM conftest*
  10665. ac_outfile=conftest.$ac_objext
  10666. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10667. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10668. _lt_linker_boilerplate=`cat conftest.err`
  10669. $RM -r conftest*
  10670. # Allow CC to be a program name with arguments.
  10671. lt_save_CC=$CC
  10672. lt_save_CFLAGS=$CFLAGS
  10673. lt_save_LD=$LD
  10674. lt_save_GCC=$GCC
  10675. GCC=$GXX
  10676. lt_save_with_gnu_ld=$with_gnu_ld
  10677. lt_save_path_LD=$lt_cv_path_LD
  10678. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10679. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10680. else
  10681. $as_unset lt_cv_prog_gnu_ld
  10682. fi
  10683. if test -n "${lt_cv_path_LDCXX+set}"; then
  10684. lt_cv_path_LD=$lt_cv_path_LDCXX
  10685. else
  10686. $as_unset lt_cv_path_LD
  10687. fi
  10688. test -z "${LDCXX+set}" || LD=$LDCXX
  10689. CC=${CXX-"c++"}
  10690. CFLAGS=$CXXFLAGS
  10691. compiler=$CC
  10692. compiler_CXX=$CC
  10693. for cc_temp in $compiler""; do
  10694. case $cc_temp in
  10695. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10696. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10697. \-*) ;;
  10698. *) break;;
  10699. esac
  10700. done
  10701. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10702. if test -n "$compiler"; then
  10703. # We don't want -fno-exception when compiling C++ code, so set the
  10704. # no_builtin_flag separately
  10705. if test "$GXX" = yes; then
  10706. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10707. else
  10708. lt_prog_compiler_no_builtin_flag_CXX=
  10709. fi
  10710. if test "$GXX" = yes; then
  10711. # Set up default GNU C++ configuration
  10712. # Check whether --with-gnu-ld was given.
  10713. if test "${with_gnu_ld+set}" = set; then :
  10714. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10715. else
  10716. with_gnu_ld=no
  10717. fi
  10718. ac_prog=ld
  10719. if test "$GCC" = yes; then
  10720. # Check if gcc -print-prog-name=ld gives a path.
  10721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10722. $as_echo_n "checking for ld used by $CC... " >&6; }
  10723. case $host in
  10724. *-*-mingw*)
  10725. # gcc leaves a trailing carriage return which upsets mingw
  10726. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10727. *)
  10728. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10729. esac
  10730. case $ac_prog in
  10731. # Accept absolute paths.
  10732. [\\/]* | ?:[\\/]*)
  10733. re_direlt='/[^/][^/]*/\.\./'
  10734. # Canonicalize the pathname of ld
  10735. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10736. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10737. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10738. done
  10739. test -z "$LD" && LD="$ac_prog"
  10740. ;;
  10741. "")
  10742. # If it fails, then pretend we aren't using GCC.
  10743. ac_prog=ld
  10744. ;;
  10745. *)
  10746. # If it is relative, then search for the first ld in PATH.
  10747. with_gnu_ld=unknown
  10748. ;;
  10749. esac
  10750. elif test "$with_gnu_ld" = yes; then
  10751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10752. $as_echo_n "checking for GNU ld... " >&6; }
  10753. else
  10754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10755. $as_echo_n "checking for non-GNU ld... " >&6; }
  10756. fi
  10757. if ${lt_cv_path_LD+:} false; then :
  10758. $as_echo_n "(cached) " >&6
  10759. else
  10760. if test -z "$LD"; then
  10761. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10762. for ac_dir in $PATH; do
  10763. IFS="$lt_save_ifs"
  10764. test -z "$ac_dir" && ac_dir=.
  10765. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10766. lt_cv_path_LD="$ac_dir/$ac_prog"
  10767. # Check to see if the program is GNU ld. I'd rather use --version,
  10768. # but apparently some variants of GNU ld only accept -v.
  10769. # Break only if it was the GNU/non-GNU ld that we prefer.
  10770. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10771. *GNU* | *'with BFD'*)
  10772. test "$with_gnu_ld" != no && break
  10773. ;;
  10774. *)
  10775. test "$with_gnu_ld" != yes && break
  10776. ;;
  10777. esac
  10778. fi
  10779. done
  10780. IFS="$lt_save_ifs"
  10781. else
  10782. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10783. fi
  10784. fi
  10785. LD="$lt_cv_path_LD"
  10786. if test -n "$LD"; then
  10787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10788. $as_echo "$LD" >&6; }
  10789. else
  10790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10791. $as_echo "no" >&6; }
  10792. fi
  10793. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10795. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10796. if ${lt_cv_prog_gnu_ld+:} false; then :
  10797. $as_echo_n "(cached) " >&6
  10798. else
  10799. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10800. case `$LD -v 2>&1 </dev/null` in
  10801. *GNU* | *'with BFD'*)
  10802. lt_cv_prog_gnu_ld=yes
  10803. ;;
  10804. *)
  10805. lt_cv_prog_gnu_ld=no
  10806. ;;
  10807. esac
  10808. fi
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10810. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10811. with_gnu_ld=$lt_cv_prog_gnu_ld
  10812. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10813. # archiving commands below assume that GNU ld is being used.
  10814. if test "$with_gnu_ld" = yes; then
  10815. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10816. 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'
  10817. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10818. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10819. # If archive_cmds runs LD, not CC, wlarc should be empty
  10820. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10821. # investigate it a little bit more. (MM)
  10822. wlarc='${wl}'
  10823. # ancient GNU ld didn't support --whole-archive et. al.
  10824. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10825. $GREP 'no-whole-archive' > /dev/null; then
  10826. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10827. else
  10828. whole_archive_flag_spec_CXX=
  10829. fi
  10830. else
  10831. with_gnu_ld=no
  10832. wlarc=
  10833. # A generic and very simple default shared library creation
  10834. # command for GNU C++ for the case where it uses the native
  10835. # linker, instead of GNU ld. If possible, this setting should
  10836. # overridden to take advantage of the native linker features on
  10837. # the platform it is being used on.
  10838. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10839. fi
  10840. # Commands to make compiler produce verbose output that lists
  10841. # what "hidden" libraries, object files and flags are used when
  10842. # linking a shared library.
  10843. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10844. else
  10845. GXX=no
  10846. with_gnu_ld=no
  10847. wlarc=
  10848. fi
  10849. # PORTME: fill in a description of your system's C++ link characteristics
  10850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10851. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10852. ld_shlibs_CXX=yes
  10853. case $host_os in
  10854. aix3*)
  10855. # FIXME: insert proper C++ library support
  10856. ld_shlibs_CXX=no
  10857. ;;
  10858. aix[4-9]*)
  10859. if test "$host_cpu" = ia64; then
  10860. # On IA64, the linker does run time linking by default, so we don't
  10861. # have to do anything special.
  10862. aix_use_runtimelinking=no
  10863. exp_sym_flag='-Bexport'
  10864. no_entry_flag=""
  10865. else
  10866. aix_use_runtimelinking=no
  10867. # Test if we are trying to use run time linking or normal
  10868. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10869. # need to do runtime linking.
  10870. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10871. for ld_flag in $LDFLAGS; do
  10872. case $ld_flag in
  10873. *-brtl*)
  10874. aix_use_runtimelinking=yes
  10875. break
  10876. ;;
  10877. esac
  10878. done
  10879. ;;
  10880. esac
  10881. exp_sym_flag='-bexport'
  10882. no_entry_flag='-bnoentry'
  10883. fi
  10884. # When large executables or shared objects are built, AIX ld can
  10885. # have problems creating the table of contents. If linking a library
  10886. # or program results in "error TOC overflow" add -mminimal-toc to
  10887. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10888. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10889. archive_cmds_CXX=''
  10890. hardcode_direct_CXX=yes
  10891. hardcode_direct_absolute_CXX=yes
  10892. hardcode_libdir_separator_CXX=':'
  10893. link_all_deplibs_CXX=yes
  10894. file_list_spec_CXX='${wl}-f,'
  10895. if test "$GXX" = yes; then
  10896. case $host_os in aix4.[012]|aix4.[012].*)
  10897. # We only want to do this on AIX 4.2 and lower, the check
  10898. # below for broken collect2 doesn't work under 4.3+
  10899. collect2name=`${CC} -print-prog-name=collect2`
  10900. if test -f "$collect2name" &&
  10901. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10902. then
  10903. # We have reworked collect2
  10904. :
  10905. else
  10906. # We have old collect2
  10907. hardcode_direct_CXX=unsupported
  10908. # It fails to find uninstalled libraries when the uninstalled
  10909. # path is not listed in the libpath. Setting hardcode_minus_L
  10910. # to unsupported forces relinking
  10911. hardcode_minus_L_CXX=yes
  10912. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10913. hardcode_libdir_separator_CXX=
  10914. fi
  10915. esac
  10916. shared_flag='-shared'
  10917. if test "$aix_use_runtimelinking" = yes; then
  10918. shared_flag="$shared_flag "'${wl}-G'
  10919. fi
  10920. else
  10921. # not using gcc
  10922. if test "$host_cpu" = ia64; then
  10923. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10924. # chokes on -Wl,-G. The following line is correct:
  10925. shared_flag='-G'
  10926. else
  10927. if test "$aix_use_runtimelinking" = yes; then
  10928. shared_flag='${wl}-G'
  10929. else
  10930. shared_flag='${wl}-bM:SRE'
  10931. fi
  10932. fi
  10933. fi
  10934. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10935. # It seems that -bexpall does not export symbols beginning with
  10936. # underscore (_), so it is better to generate a list of symbols to
  10937. # export.
  10938. always_export_symbols_CXX=yes
  10939. if test "$aix_use_runtimelinking" = yes; then
  10940. # Warning - without using the other runtime loading flags (-brtl),
  10941. # -berok will link without error, but may produce a broken library.
  10942. allow_undefined_flag_CXX='-berok'
  10943. # Determine the default libpath from the value encoded in an empty
  10944. # executable.
  10945. if test "${lt_cv_aix_libpath+set}" = set; then
  10946. aix_libpath=$lt_cv_aix_libpath
  10947. else
  10948. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10949. $as_echo_n "(cached) " >&6
  10950. else
  10951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10952. /* end confdefs.h. */
  10953. int
  10954. main ()
  10955. {
  10956. ;
  10957. return 0;
  10958. }
  10959. _ACEOF
  10960. if ac_fn_cxx_try_link "$LINENO"; then :
  10961. lt_aix_libpath_sed='
  10962. /Import File Strings/,/^$/ {
  10963. /^0/ {
  10964. s/^0 *\([^ ]*\) *$/\1/
  10965. p
  10966. }
  10967. }'
  10968. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10969. # Check for a 64-bit object if we didn't find anything.
  10970. if test -z "$lt_cv_aix_libpath__CXX"; then
  10971. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10972. fi
  10973. fi
  10974. rm -f core conftest.err conftest.$ac_objext \
  10975. conftest$ac_exeext conftest.$ac_ext
  10976. if test -z "$lt_cv_aix_libpath__CXX"; then
  10977. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10978. fi
  10979. fi
  10980. aix_libpath=$lt_cv_aix_libpath__CXX
  10981. fi
  10982. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10983. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10984. else
  10985. if test "$host_cpu" = ia64; then
  10986. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10987. allow_undefined_flag_CXX="-z nodefs"
  10988. 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"
  10989. else
  10990. # Determine the default libpath from the value encoded in an
  10991. # empty executable.
  10992. if test "${lt_cv_aix_libpath+set}" = set; then
  10993. aix_libpath=$lt_cv_aix_libpath
  10994. else
  10995. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10996. $as_echo_n "(cached) " >&6
  10997. else
  10998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10999. /* end confdefs.h. */
  11000. int
  11001. main ()
  11002. {
  11003. ;
  11004. return 0;
  11005. }
  11006. _ACEOF
  11007. if ac_fn_cxx_try_link "$LINENO"; then :
  11008. lt_aix_libpath_sed='
  11009. /Import File Strings/,/^$/ {
  11010. /^0/ {
  11011. s/^0 *\([^ ]*\) *$/\1/
  11012. p
  11013. }
  11014. }'
  11015. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11016. # Check for a 64-bit object if we didn't find anything.
  11017. if test -z "$lt_cv_aix_libpath__CXX"; then
  11018. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11019. fi
  11020. fi
  11021. rm -f core conftest.err conftest.$ac_objext \
  11022. conftest$ac_exeext conftest.$ac_ext
  11023. if test -z "$lt_cv_aix_libpath__CXX"; then
  11024. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11025. fi
  11026. fi
  11027. aix_libpath=$lt_cv_aix_libpath__CXX
  11028. fi
  11029. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11030. # Warning - without using the other run time loading flags,
  11031. # -berok will link without error, but may produce a broken library.
  11032. no_undefined_flag_CXX=' ${wl}-bernotok'
  11033. allow_undefined_flag_CXX=' ${wl}-berok'
  11034. if test "$with_gnu_ld" = yes; then
  11035. # We only use this code for GNU lds that support --whole-archive.
  11036. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11037. else
  11038. # Exported symbols can be pulled into shared objects from archives
  11039. whole_archive_flag_spec_CXX='$convenience'
  11040. fi
  11041. archive_cmds_need_lc_CXX=yes
  11042. # This is similar to how AIX traditionally builds its shared
  11043. # libraries.
  11044. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11045. fi
  11046. fi
  11047. ;;
  11048. beos*)
  11049. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11050. allow_undefined_flag_CXX=unsupported
  11051. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11052. # support --undefined. This deserves some investigation. FIXME
  11053. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11054. else
  11055. ld_shlibs_CXX=no
  11056. fi
  11057. ;;
  11058. chorus*)
  11059. case $cc_basename in
  11060. *)
  11061. # FIXME: insert proper C++ library support
  11062. ld_shlibs_CXX=no
  11063. ;;
  11064. esac
  11065. ;;
  11066. cygwin* | mingw* | pw32* | cegcc*)
  11067. case $GXX,$cc_basename in
  11068. ,cl* | no,cl*)
  11069. # Native MSVC
  11070. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11071. # no search path for DLLs.
  11072. hardcode_libdir_flag_spec_CXX=' '
  11073. allow_undefined_flag_CXX=unsupported
  11074. always_export_symbols_CXX=yes
  11075. file_list_spec_CXX='@'
  11076. # Tell ltmain to make .lib files, not .a files.
  11077. libext=lib
  11078. # Tell ltmain to make .dll files, not .so files.
  11079. shrext_cmds=".dll"
  11080. # FIXME: Setting linknames here is a bad hack.
  11081. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11082. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11083. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11084. else
  11085. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11086. fi~
  11087. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11088. linknames='
  11089. # The linker will not automatically build a static lib if we build a DLL.
  11090. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11091. enable_shared_with_static_runtimes_CXX=yes
  11092. # Don't use ranlib
  11093. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11094. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11095. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11096. case $lt_outputfile in
  11097. *.exe|*.EXE) ;;
  11098. *)
  11099. lt_outputfile="$lt_outputfile.exe"
  11100. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11101. ;;
  11102. esac~
  11103. func_to_tool_file "$lt_outputfile"~
  11104. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11105. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11106. $RM "$lt_outputfile.manifest";
  11107. fi'
  11108. ;;
  11109. *)
  11110. # g++
  11111. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11112. # as there is no search path for DLLs.
  11113. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11114. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11115. allow_undefined_flag_CXX=unsupported
  11116. always_export_symbols_CXX=no
  11117. enable_shared_with_static_runtimes_CXX=yes
  11118. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11119. 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'
  11120. # If the export-symbols file already is a .def file (1st line
  11121. # is EXPORTS), use it as is; otherwise, prepend...
  11122. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11123. cp $export_symbols $output_objdir/$soname.def;
  11124. else
  11125. echo EXPORTS > $output_objdir/$soname.def;
  11126. cat $export_symbols >> $output_objdir/$soname.def;
  11127. fi~
  11128. $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'
  11129. else
  11130. ld_shlibs_CXX=no
  11131. fi
  11132. ;;
  11133. esac
  11134. ;;
  11135. darwin* | rhapsody*)
  11136. archive_cmds_need_lc_CXX=no
  11137. hardcode_direct_CXX=no
  11138. hardcode_automatic_CXX=yes
  11139. hardcode_shlibpath_var_CXX=unsupported
  11140. if test "$lt_cv_ld_force_load" = "yes"; then
  11141. 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\"`'
  11142. else
  11143. whole_archive_flag_spec_CXX=''
  11144. fi
  11145. link_all_deplibs_CXX=yes
  11146. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11147. case $cc_basename in
  11148. ifort*) _lt_dar_can_shared=yes ;;
  11149. *) _lt_dar_can_shared=$GCC ;;
  11150. esac
  11151. if test "$_lt_dar_can_shared" = "yes"; then
  11152. output_verbose_link_cmd=func_echo_all
  11153. 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}"
  11154. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11155. 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}"
  11156. 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}"
  11157. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11158. 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}"
  11159. 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}"
  11160. fi
  11161. else
  11162. ld_shlibs_CXX=no
  11163. fi
  11164. ;;
  11165. dgux*)
  11166. case $cc_basename in
  11167. ec++*)
  11168. # FIXME: insert proper C++ library support
  11169. ld_shlibs_CXX=no
  11170. ;;
  11171. ghcx*)
  11172. # Green Hills C++ Compiler
  11173. # FIXME: insert proper C++ library support
  11174. ld_shlibs_CXX=no
  11175. ;;
  11176. *)
  11177. # FIXME: insert proper C++ library support
  11178. ld_shlibs_CXX=no
  11179. ;;
  11180. esac
  11181. ;;
  11182. freebsd2.*)
  11183. # C++ shared libraries reported to be fairly broken before
  11184. # switch to ELF
  11185. ld_shlibs_CXX=no
  11186. ;;
  11187. freebsd-elf*)
  11188. archive_cmds_need_lc_CXX=no
  11189. ;;
  11190. freebsd* | dragonfly*)
  11191. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11192. # conventions
  11193. ld_shlibs_CXX=yes
  11194. ;;
  11195. haiku*)
  11196. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11197. link_all_deplibs_CXX=yes
  11198. ;;
  11199. hpux9*)
  11200. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11201. hardcode_libdir_separator_CXX=:
  11202. export_dynamic_flag_spec_CXX='${wl}-E'
  11203. hardcode_direct_CXX=yes
  11204. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11205. # but as the default
  11206. # location of the library.
  11207. case $cc_basename in
  11208. CC*)
  11209. # FIXME: insert proper C++ library support
  11210. ld_shlibs_CXX=no
  11211. ;;
  11212. aCC*)
  11213. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11214. # Commands to make compiler produce verbose output that lists
  11215. # what "hidden" libraries, object files and flags are used when
  11216. # linking a shared library.
  11217. #
  11218. # There doesn't appear to be a way to prevent this compiler from
  11219. # explicitly linking system object files so we need to strip them
  11220. # from the output so that they don't get included in the library
  11221. # dependencies.
  11222. 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"'
  11223. ;;
  11224. *)
  11225. if test "$GXX" = yes; then
  11226. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11227. else
  11228. # FIXME: insert proper C++ library support
  11229. ld_shlibs_CXX=no
  11230. fi
  11231. ;;
  11232. esac
  11233. ;;
  11234. hpux10*|hpux11*)
  11235. if test $with_gnu_ld = no; then
  11236. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11237. hardcode_libdir_separator_CXX=:
  11238. case $host_cpu in
  11239. hppa*64*|ia64*)
  11240. ;;
  11241. *)
  11242. export_dynamic_flag_spec_CXX='${wl}-E'
  11243. ;;
  11244. esac
  11245. fi
  11246. case $host_cpu in
  11247. hppa*64*|ia64*)
  11248. hardcode_direct_CXX=no
  11249. hardcode_shlibpath_var_CXX=no
  11250. ;;
  11251. *)
  11252. hardcode_direct_CXX=yes
  11253. hardcode_direct_absolute_CXX=yes
  11254. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11255. # but as the default
  11256. # location of the library.
  11257. ;;
  11258. esac
  11259. case $cc_basename in
  11260. CC*)
  11261. # FIXME: insert proper C++ library support
  11262. ld_shlibs_CXX=no
  11263. ;;
  11264. aCC*)
  11265. case $host_cpu in
  11266. hppa*64*)
  11267. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11268. ;;
  11269. ia64*)
  11270. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11271. ;;
  11272. *)
  11273. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11274. ;;
  11275. esac
  11276. # Commands to make compiler produce verbose output that lists
  11277. # what "hidden" libraries, object files and flags are used when
  11278. # linking a shared library.
  11279. #
  11280. # There doesn't appear to be a way to prevent this compiler from
  11281. # explicitly linking system object files so we need to strip them
  11282. # from the output so that they don't get included in the library
  11283. # dependencies.
  11284. 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"'
  11285. ;;
  11286. *)
  11287. if test "$GXX" = yes; then
  11288. if test $with_gnu_ld = no; then
  11289. case $host_cpu in
  11290. hppa*64*)
  11291. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11292. ;;
  11293. ia64*)
  11294. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11295. ;;
  11296. *)
  11297. 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'
  11298. ;;
  11299. esac
  11300. fi
  11301. else
  11302. # FIXME: insert proper C++ library support
  11303. ld_shlibs_CXX=no
  11304. fi
  11305. ;;
  11306. esac
  11307. ;;
  11308. interix[3-9]*)
  11309. hardcode_direct_CXX=no
  11310. hardcode_shlibpath_var_CXX=no
  11311. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11312. export_dynamic_flag_spec_CXX='${wl}-E'
  11313. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11314. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11315. # default) and relocated if they conflict, which is a slow very memory
  11316. # consuming and fragmenting process. To avoid this, we pick a random,
  11317. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11318. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11319. 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'
  11320. 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'
  11321. ;;
  11322. irix5* | irix6*)
  11323. case $cc_basename in
  11324. CC*)
  11325. # SGI C++
  11326. 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'
  11327. # Archives containing C++ object files must be created using
  11328. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11329. # necessary to make sure instantiated templates are included
  11330. # in the archive.
  11331. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11332. ;;
  11333. *)
  11334. if test "$GXX" = yes; then
  11335. if test "$with_gnu_ld" = no; then
  11336. 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'
  11337. else
  11338. 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'
  11339. fi
  11340. fi
  11341. link_all_deplibs_CXX=yes
  11342. ;;
  11343. esac
  11344. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11345. hardcode_libdir_separator_CXX=:
  11346. inherit_rpath_CXX=yes
  11347. ;;
  11348. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11349. case $cc_basename in
  11350. KCC*)
  11351. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11352. # KCC will only create a shared library if the output file
  11353. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11354. # to its proper name (with version) after linking.
  11355. 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'
  11356. 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'
  11357. # Commands to make compiler produce verbose output that lists
  11358. # what "hidden" libraries, object files and flags are used when
  11359. # linking a shared library.
  11360. #
  11361. # There doesn't appear to be a way to prevent this compiler from
  11362. # explicitly linking system object files so we need to strip them
  11363. # from the output so that they don't get included in the library
  11364. # dependencies.
  11365. 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"'
  11366. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11367. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11368. # Archives containing C++ object files must be created using
  11369. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11370. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11371. ;;
  11372. icpc* | ecpc* )
  11373. # Intel C++
  11374. with_gnu_ld=yes
  11375. # version 8.0 and above of icpc choke on multiply defined symbols
  11376. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11377. # earlier do not add the objects themselves.
  11378. case `$CC -V 2>&1` in
  11379. *"Version 7."*)
  11380. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11381. 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'
  11382. ;;
  11383. *) # Version 8.0 or newer
  11384. tmp_idyn=
  11385. case $host_cpu in
  11386. ia64*) tmp_idyn=' -i_dynamic';;
  11387. esac
  11388. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11389. 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'
  11390. ;;
  11391. esac
  11392. archive_cmds_need_lc_CXX=no
  11393. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11394. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11395. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11396. ;;
  11397. pgCC* | pgcpp*)
  11398. # Portland Group C++ compiler
  11399. case `$CC -V` in
  11400. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11401. prelink_cmds_CXX='tpldir=Template.dir~
  11402. rm -rf $tpldir~
  11403. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11404. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11405. old_archive_cmds_CXX='tpldir=Template.dir~
  11406. rm -rf $tpldir~
  11407. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11408. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11409. $RANLIB $oldlib'
  11410. archive_cmds_CXX='tpldir=Template.dir~
  11411. rm -rf $tpldir~
  11412. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11413. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11414. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11415. rm -rf $tpldir~
  11416. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11417. $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'
  11418. ;;
  11419. *) # Version 6 and above use weak symbols
  11420. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11421. 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'
  11422. ;;
  11423. esac
  11424. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11425. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11426. 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'
  11427. ;;
  11428. cxx*)
  11429. # Compaq C++
  11430. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11431. 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'
  11432. runpath_var=LD_RUN_PATH
  11433. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11434. hardcode_libdir_separator_CXX=:
  11435. # Commands to make compiler produce verbose output that lists
  11436. # what "hidden" libraries, object files and flags are used when
  11437. # linking a shared library.
  11438. #
  11439. # There doesn't appear to be a way to prevent this compiler from
  11440. # explicitly linking system object files so we need to strip them
  11441. # from the output so that they don't get included in the library
  11442. # dependencies.
  11443. 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'
  11444. ;;
  11445. xl* | mpixl* | bgxl*)
  11446. # IBM XL 8.0 on PPC, with GNU ld
  11447. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11448. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11449. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11450. if test "x$supports_anon_versioning" = xyes; then
  11451. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11452. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11453. echo "local: *; };" >> $output_objdir/$libname.ver~
  11454. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11455. fi
  11456. ;;
  11457. *)
  11458. case `$CC -V 2>&1 | sed 5q` in
  11459. *Sun\ C*)
  11460. # Sun C++ 5.9
  11461. no_undefined_flag_CXX=' -zdefs'
  11462. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11463. 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'
  11464. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11465. 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'
  11466. compiler_needs_object_CXX=yes
  11467. # Not sure whether something based on
  11468. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11469. # would be better.
  11470. output_verbose_link_cmd='func_echo_all'
  11471. # Archives containing C++ object files must be created using
  11472. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11473. # necessary to make sure instantiated templates are included
  11474. # in the archive.
  11475. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11476. ;;
  11477. esac
  11478. ;;
  11479. esac
  11480. ;;
  11481. lynxos*)
  11482. # FIXME: insert proper C++ library support
  11483. ld_shlibs_CXX=no
  11484. ;;
  11485. m88k*)
  11486. # FIXME: insert proper C++ library support
  11487. ld_shlibs_CXX=no
  11488. ;;
  11489. mvs*)
  11490. case $cc_basename in
  11491. cxx*)
  11492. # FIXME: insert proper C++ library support
  11493. ld_shlibs_CXX=no
  11494. ;;
  11495. *)
  11496. # FIXME: insert proper C++ library support
  11497. ld_shlibs_CXX=no
  11498. ;;
  11499. esac
  11500. ;;
  11501. netbsd*)
  11502. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11503. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11504. wlarc=
  11505. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11506. hardcode_direct_CXX=yes
  11507. hardcode_shlibpath_var_CXX=no
  11508. fi
  11509. # Workaround some broken pre-1.5 toolchains
  11510. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11511. ;;
  11512. *nto* | *qnx*)
  11513. ld_shlibs_CXX=yes
  11514. ;;
  11515. openbsd2*)
  11516. # C++ shared libraries are fairly broken
  11517. ld_shlibs_CXX=no
  11518. ;;
  11519. openbsd*)
  11520. if test -f /usr/libexec/ld.so; then
  11521. hardcode_direct_CXX=yes
  11522. hardcode_shlibpath_var_CXX=no
  11523. hardcode_direct_absolute_CXX=yes
  11524. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11525. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11526. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11527. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11528. export_dynamic_flag_spec_CXX='${wl}-E'
  11529. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11530. fi
  11531. output_verbose_link_cmd=func_echo_all
  11532. else
  11533. ld_shlibs_CXX=no
  11534. fi
  11535. ;;
  11536. osf3* | osf4* | osf5*)
  11537. case $cc_basename in
  11538. KCC*)
  11539. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11540. # KCC will only create a shared library if the output file
  11541. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11542. # to its proper name (with version) after linking.
  11543. 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'
  11544. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11545. hardcode_libdir_separator_CXX=:
  11546. # Archives containing C++ object files must be created using
  11547. # the KAI C++ compiler.
  11548. case $host in
  11549. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11550. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11551. esac
  11552. ;;
  11553. RCC*)
  11554. # Rational C++ 2.4.1
  11555. # FIXME: insert proper C++ library support
  11556. ld_shlibs_CXX=no
  11557. ;;
  11558. cxx*)
  11559. case $host in
  11560. osf3*)
  11561. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11562. 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'
  11563. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11564. ;;
  11565. *)
  11566. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11567. 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'
  11568. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11569. echo "-hidden">> $lib.exp~
  11570. $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~
  11571. $RM $lib.exp'
  11572. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11573. ;;
  11574. esac
  11575. hardcode_libdir_separator_CXX=:
  11576. # Commands to make compiler produce verbose output that lists
  11577. # what "hidden" libraries, object files and flags are used when
  11578. # linking a shared library.
  11579. #
  11580. # There doesn't appear to be a way to prevent this compiler from
  11581. # explicitly linking system object files so we need to strip them
  11582. # from the output so that they don't get included in the library
  11583. # dependencies.
  11584. 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"'
  11585. ;;
  11586. *)
  11587. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11588. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11589. case $host in
  11590. osf3*)
  11591. 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'
  11592. ;;
  11593. *)
  11594. 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'
  11595. ;;
  11596. esac
  11597. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11598. hardcode_libdir_separator_CXX=:
  11599. # Commands to make compiler produce verbose output that lists
  11600. # what "hidden" libraries, object files and flags are used when
  11601. # linking a shared library.
  11602. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11603. else
  11604. # FIXME: insert proper C++ library support
  11605. ld_shlibs_CXX=no
  11606. fi
  11607. ;;
  11608. esac
  11609. ;;
  11610. psos*)
  11611. # FIXME: insert proper C++ library support
  11612. ld_shlibs_CXX=no
  11613. ;;
  11614. sunos4*)
  11615. case $cc_basename in
  11616. CC*)
  11617. # Sun C++ 4.x
  11618. # FIXME: insert proper C++ library support
  11619. ld_shlibs_CXX=no
  11620. ;;
  11621. lcc*)
  11622. # Lucid
  11623. # FIXME: insert proper C++ library support
  11624. ld_shlibs_CXX=no
  11625. ;;
  11626. *)
  11627. # FIXME: insert proper C++ library support
  11628. ld_shlibs_CXX=no
  11629. ;;
  11630. esac
  11631. ;;
  11632. solaris*)
  11633. case $cc_basename in
  11634. CC* | sunCC*)
  11635. # Sun C++ 4.2, 5.x and Centerline C++
  11636. archive_cmds_need_lc_CXX=yes
  11637. no_undefined_flag_CXX=' -zdefs'
  11638. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11639. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11640. $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'
  11641. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11642. hardcode_shlibpath_var_CXX=no
  11643. case $host_os in
  11644. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11645. *)
  11646. # The compiler driver will combine and reorder linker options,
  11647. # but understands `-z linker_flag'.
  11648. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11649. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11650. ;;
  11651. esac
  11652. link_all_deplibs_CXX=yes
  11653. output_verbose_link_cmd='func_echo_all'
  11654. # Archives containing C++ object files must be created using
  11655. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11656. # necessary to make sure instantiated templates are included
  11657. # in the archive.
  11658. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11659. ;;
  11660. gcx*)
  11661. # Green Hills C++ Compiler
  11662. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11663. # The C++ compiler must be used to create the archive.
  11664. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11665. ;;
  11666. *)
  11667. # GNU C++ compiler with Solaris linker
  11668. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11669. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11670. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11671. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11672. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11673. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11674. # Commands to make compiler produce verbose output that lists
  11675. # what "hidden" libraries, object files and flags are used when
  11676. # linking a shared library.
  11677. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11678. else
  11679. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11680. # platform.
  11681. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11682. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11683. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11684. # Commands to make compiler produce verbose output that lists
  11685. # what "hidden" libraries, object files and flags are used when
  11686. # linking a shared library.
  11687. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11688. fi
  11689. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11690. case $host_os in
  11691. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11692. *)
  11693. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11694. ;;
  11695. esac
  11696. fi
  11697. ;;
  11698. esac
  11699. ;;
  11700. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11701. no_undefined_flag_CXX='${wl}-z,text'
  11702. archive_cmds_need_lc_CXX=no
  11703. hardcode_shlibpath_var_CXX=no
  11704. runpath_var='LD_RUN_PATH'
  11705. case $cc_basename in
  11706. CC*)
  11707. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11708. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11709. ;;
  11710. *)
  11711. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11712. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11713. ;;
  11714. esac
  11715. ;;
  11716. sysv5* | sco3.2v5* | sco5v6*)
  11717. # Note: We can NOT use -z defs as we might desire, because we do not
  11718. # link with -lc, and that would cause any symbols used from libc to
  11719. # always be unresolved, which means just about no library would
  11720. # ever link correctly. If we're not using GNU ld we use -z text
  11721. # though, which does catch some bad symbols but isn't as heavy-handed
  11722. # as -z defs.
  11723. no_undefined_flag_CXX='${wl}-z,text'
  11724. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11725. archive_cmds_need_lc_CXX=no
  11726. hardcode_shlibpath_var_CXX=no
  11727. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11728. hardcode_libdir_separator_CXX=':'
  11729. link_all_deplibs_CXX=yes
  11730. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11731. runpath_var='LD_RUN_PATH'
  11732. case $cc_basename in
  11733. CC*)
  11734. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11735. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11736. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11737. '"$old_archive_cmds_CXX"
  11738. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11739. '"$reload_cmds_CXX"
  11740. ;;
  11741. *)
  11742. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11743. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11744. ;;
  11745. esac
  11746. ;;
  11747. tandem*)
  11748. case $cc_basename in
  11749. NCC*)
  11750. # NonStop-UX NCC 3.20
  11751. # FIXME: insert proper C++ library support
  11752. ld_shlibs_CXX=no
  11753. ;;
  11754. *)
  11755. # FIXME: insert proper C++ library support
  11756. ld_shlibs_CXX=no
  11757. ;;
  11758. esac
  11759. ;;
  11760. vxworks*)
  11761. # FIXME: insert proper C++ library support
  11762. ld_shlibs_CXX=no
  11763. ;;
  11764. *)
  11765. # FIXME: insert proper C++ library support
  11766. ld_shlibs_CXX=no
  11767. ;;
  11768. esac
  11769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11770. $as_echo "$ld_shlibs_CXX" >&6; }
  11771. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11772. GCC_CXX="$GXX"
  11773. LD_CXX="$LD"
  11774. ## CAVEAT EMPTOR:
  11775. ## There is no encapsulation within the following macros, do not change
  11776. ## the running order or otherwise move them around unless you know exactly
  11777. ## what you are doing...
  11778. # Dependencies to place before and after the object being linked:
  11779. predep_objects_CXX=
  11780. postdep_objects_CXX=
  11781. predeps_CXX=
  11782. postdeps_CXX=
  11783. compiler_lib_search_path_CXX=
  11784. cat > conftest.$ac_ext <<_LT_EOF
  11785. class Foo
  11786. {
  11787. public:
  11788. Foo (void) { a = 0; }
  11789. private:
  11790. int a;
  11791. };
  11792. _LT_EOF
  11793. _lt_libdeps_save_CFLAGS=$CFLAGS
  11794. case "$CC $CFLAGS " in #(
  11795. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11796. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11797. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11798. esac
  11799. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11800. (eval $ac_compile) 2>&5
  11801. ac_status=$?
  11802. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11803. test $ac_status = 0; }; then
  11804. # Parse the compiler output and extract the necessary
  11805. # objects, libraries and library flags.
  11806. # Sentinel used to keep track of whether or not we are before
  11807. # the conftest object file.
  11808. pre_test_object_deps_done=no
  11809. for p in `eval "$output_verbose_link_cmd"`; do
  11810. case ${prev}${p} in
  11811. -L* | -R* | -l*)
  11812. # Some compilers place space between "-{L,R}" and the path.
  11813. # Remove the space.
  11814. if test $p = "-L" ||
  11815. test $p = "-R"; then
  11816. prev=$p
  11817. continue
  11818. fi
  11819. # Expand the sysroot to ease extracting the directories later.
  11820. if test -z "$prev"; then
  11821. case $p in
  11822. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11823. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11824. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11825. esac
  11826. fi
  11827. case $p in
  11828. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11829. esac
  11830. if test "$pre_test_object_deps_done" = no; then
  11831. case ${prev} in
  11832. -L | -R)
  11833. # Internal compiler library paths should come after those
  11834. # provided the user. The postdeps already come after the
  11835. # user supplied libs so there is no need to process them.
  11836. if test -z "$compiler_lib_search_path_CXX"; then
  11837. compiler_lib_search_path_CXX="${prev}${p}"
  11838. else
  11839. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11840. fi
  11841. ;;
  11842. # The "-l" case would never come before the object being
  11843. # linked, so don't bother handling this case.
  11844. esac
  11845. else
  11846. if test -z "$postdeps_CXX"; then
  11847. postdeps_CXX="${prev}${p}"
  11848. else
  11849. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11850. fi
  11851. fi
  11852. prev=
  11853. ;;
  11854. *.lto.$objext) ;; # Ignore GCC LTO objects
  11855. *.$objext)
  11856. # This assumes that the test object file only shows up
  11857. # once in the compiler output.
  11858. if test "$p" = "conftest.$objext"; then
  11859. pre_test_object_deps_done=yes
  11860. continue
  11861. fi
  11862. if test "$pre_test_object_deps_done" = no; then
  11863. if test -z "$predep_objects_CXX"; then
  11864. predep_objects_CXX="$p"
  11865. else
  11866. predep_objects_CXX="$predep_objects_CXX $p"
  11867. fi
  11868. else
  11869. if test -z "$postdep_objects_CXX"; then
  11870. postdep_objects_CXX="$p"
  11871. else
  11872. postdep_objects_CXX="$postdep_objects_CXX $p"
  11873. fi
  11874. fi
  11875. ;;
  11876. *) ;; # Ignore the rest.
  11877. esac
  11878. done
  11879. # Clean up.
  11880. rm -f a.out a.exe
  11881. else
  11882. echo "libtool.m4: error: problem compiling CXX test program"
  11883. fi
  11884. $RM -f confest.$objext
  11885. CFLAGS=$_lt_libdeps_save_CFLAGS
  11886. # PORTME: override above test on systems where it is broken
  11887. case $host_os in
  11888. interix[3-9]*)
  11889. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11890. # hack all around it, let's just trust "g++" to DTRT.
  11891. predep_objects_CXX=
  11892. postdep_objects_CXX=
  11893. postdeps_CXX=
  11894. ;;
  11895. linux*)
  11896. case `$CC -V 2>&1 | sed 5q` in
  11897. *Sun\ C*)
  11898. # Sun C++ 5.9
  11899. # The more standards-conforming stlport4 library is
  11900. # incompatible with the Cstd library. Avoid specifying
  11901. # it if it's in CXXFLAGS. Ignore libCrun as
  11902. # -library=stlport4 depends on it.
  11903. case " $CXX $CXXFLAGS " in
  11904. *" -library=stlport4 "*)
  11905. solaris_use_stlport4=yes
  11906. ;;
  11907. esac
  11908. if test "$solaris_use_stlport4" != yes; then
  11909. postdeps_CXX='-library=Cstd -library=Crun'
  11910. fi
  11911. ;;
  11912. esac
  11913. ;;
  11914. solaris*)
  11915. case $cc_basename in
  11916. CC* | sunCC*)
  11917. # The more standards-conforming stlport4 library is
  11918. # incompatible with the Cstd library. Avoid specifying
  11919. # it if it's in CXXFLAGS. Ignore libCrun as
  11920. # -library=stlport4 depends on it.
  11921. case " $CXX $CXXFLAGS " in
  11922. *" -library=stlport4 "*)
  11923. solaris_use_stlport4=yes
  11924. ;;
  11925. esac
  11926. # Adding this requires a known-good setup of shared libraries for
  11927. # Sun compiler versions before 5.6, else PIC objects from an old
  11928. # archive will be linked into the output, leading to subtle bugs.
  11929. if test "$solaris_use_stlport4" != yes; then
  11930. postdeps_CXX='-library=Cstd -library=Crun'
  11931. fi
  11932. ;;
  11933. esac
  11934. ;;
  11935. esac
  11936. case " $postdeps_CXX " in
  11937. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11938. esac
  11939. compiler_lib_search_dirs_CXX=
  11940. if test -n "${compiler_lib_search_path_CXX}"; then
  11941. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11942. fi
  11943. lt_prog_compiler_wl_CXX=
  11944. lt_prog_compiler_pic_CXX=
  11945. lt_prog_compiler_static_CXX=
  11946. # C++ specific cases for pic, static, wl, etc.
  11947. if test "$GXX" = yes; then
  11948. lt_prog_compiler_wl_CXX='-Wl,'
  11949. lt_prog_compiler_static_CXX='-static'
  11950. case $host_os in
  11951. aix*)
  11952. # All AIX code is PIC.
  11953. if test "$host_cpu" = ia64; then
  11954. # AIX 5 now supports IA64 processor
  11955. lt_prog_compiler_static_CXX='-Bstatic'
  11956. fi
  11957. ;;
  11958. amigaos*)
  11959. case $host_cpu in
  11960. powerpc)
  11961. # see comment about AmigaOS4 .so support
  11962. lt_prog_compiler_pic_CXX='-fPIC'
  11963. ;;
  11964. m68k)
  11965. # FIXME: we need at least 68020 code to build shared libraries, but
  11966. # adding the `-m68020' flag to GCC prevents building anything better,
  11967. # like `-m68040'.
  11968. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11969. ;;
  11970. esac
  11971. ;;
  11972. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11973. # PIC is the default for these OSes.
  11974. ;;
  11975. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11976. # This hack is so that the source file can tell whether it is being
  11977. # built for inclusion in a dll (and should export symbols for example).
  11978. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11979. # (--disable-auto-import) libraries
  11980. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11981. ;;
  11982. darwin* | rhapsody*)
  11983. # PIC is the default on this platform
  11984. # Common symbols not allowed in MH_DYLIB files
  11985. lt_prog_compiler_pic_CXX='-fno-common'
  11986. ;;
  11987. *djgpp*)
  11988. # DJGPP does not support shared libraries at all
  11989. lt_prog_compiler_pic_CXX=
  11990. ;;
  11991. haiku*)
  11992. # PIC is the default for Haiku.
  11993. # The "-static" flag exists, but is broken.
  11994. lt_prog_compiler_static_CXX=
  11995. ;;
  11996. interix[3-9]*)
  11997. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11998. # Instead, we relocate shared libraries at runtime.
  11999. ;;
  12000. sysv4*MP*)
  12001. if test -d /usr/nec; then
  12002. lt_prog_compiler_pic_CXX=-Kconform_pic
  12003. fi
  12004. ;;
  12005. hpux*)
  12006. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12007. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12008. # sets the default TLS model and affects inlining.
  12009. case $host_cpu in
  12010. hppa*64*)
  12011. ;;
  12012. *)
  12013. lt_prog_compiler_pic_CXX='-fPIC'
  12014. ;;
  12015. esac
  12016. ;;
  12017. *qnx* | *nto*)
  12018. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12019. # it will coredump.
  12020. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12021. ;;
  12022. *)
  12023. lt_prog_compiler_pic_CXX='-fPIC'
  12024. ;;
  12025. esac
  12026. else
  12027. case $host_os in
  12028. aix[4-9]*)
  12029. # All AIX code is PIC.
  12030. if test "$host_cpu" = ia64; then
  12031. # AIX 5 now supports IA64 processor
  12032. lt_prog_compiler_static_CXX='-Bstatic'
  12033. else
  12034. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12035. fi
  12036. ;;
  12037. chorus*)
  12038. case $cc_basename in
  12039. cxch68*)
  12040. # Green Hills C++ Compiler
  12041. # _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"
  12042. ;;
  12043. esac
  12044. ;;
  12045. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12046. # This hack is so that the source file can tell whether it is being
  12047. # built for inclusion in a dll (and should export symbols for example).
  12048. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12049. ;;
  12050. dgux*)
  12051. case $cc_basename in
  12052. ec++*)
  12053. lt_prog_compiler_pic_CXX='-KPIC'
  12054. ;;
  12055. ghcx*)
  12056. # Green Hills C++ Compiler
  12057. lt_prog_compiler_pic_CXX='-pic'
  12058. ;;
  12059. *)
  12060. ;;
  12061. esac
  12062. ;;
  12063. freebsd* | dragonfly*)
  12064. # FreeBSD uses GNU C++
  12065. ;;
  12066. hpux9* | hpux10* | hpux11*)
  12067. case $cc_basename in
  12068. CC*)
  12069. lt_prog_compiler_wl_CXX='-Wl,'
  12070. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12071. if test "$host_cpu" != ia64; then
  12072. lt_prog_compiler_pic_CXX='+Z'
  12073. fi
  12074. ;;
  12075. aCC*)
  12076. lt_prog_compiler_wl_CXX='-Wl,'
  12077. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12078. case $host_cpu in
  12079. hppa*64*|ia64*)
  12080. # +Z the default
  12081. ;;
  12082. *)
  12083. lt_prog_compiler_pic_CXX='+Z'
  12084. ;;
  12085. esac
  12086. ;;
  12087. *)
  12088. ;;
  12089. esac
  12090. ;;
  12091. interix*)
  12092. # This is c89, which is MS Visual C++ (no shared libs)
  12093. # Anyone wants to do a port?
  12094. ;;
  12095. irix5* | irix6* | nonstopux*)
  12096. case $cc_basename in
  12097. CC*)
  12098. lt_prog_compiler_wl_CXX='-Wl,'
  12099. lt_prog_compiler_static_CXX='-non_shared'
  12100. # CC pic flag -KPIC is the default.
  12101. ;;
  12102. *)
  12103. ;;
  12104. esac
  12105. ;;
  12106. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12107. case $cc_basename in
  12108. KCC*)
  12109. # KAI C++ Compiler
  12110. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12111. lt_prog_compiler_pic_CXX='-fPIC'
  12112. ;;
  12113. ecpc* )
  12114. # old Intel C++ for x86_64 which still supported -KPIC.
  12115. lt_prog_compiler_wl_CXX='-Wl,'
  12116. lt_prog_compiler_pic_CXX='-KPIC'
  12117. lt_prog_compiler_static_CXX='-static'
  12118. ;;
  12119. icpc* )
  12120. # Intel C++, used to be incompatible with GCC.
  12121. # ICC 10 doesn't accept -KPIC any more.
  12122. lt_prog_compiler_wl_CXX='-Wl,'
  12123. lt_prog_compiler_pic_CXX='-fPIC'
  12124. lt_prog_compiler_static_CXX='-static'
  12125. ;;
  12126. pgCC* | pgcpp*)
  12127. # Portland Group C++ compiler
  12128. lt_prog_compiler_wl_CXX='-Wl,'
  12129. lt_prog_compiler_pic_CXX='-fpic'
  12130. lt_prog_compiler_static_CXX='-Bstatic'
  12131. ;;
  12132. cxx*)
  12133. # Compaq C++
  12134. # Make sure the PIC flag is empty. It appears that all Alpha
  12135. # Linux and Compaq Tru64 Unix objects are PIC.
  12136. lt_prog_compiler_pic_CXX=
  12137. lt_prog_compiler_static_CXX='-non_shared'
  12138. ;;
  12139. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12140. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12141. lt_prog_compiler_wl_CXX='-Wl,'
  12142. lt_prog_compiler_pic_CXX='-qpic'
  12143. lt_prog_compiler_static_CXX='-qstaticlink'
  12144. ;;
  12145. *)
  12146. case `$CC -V 2>&1 | sed 5q` in
  12147. *Sun\ C*)
  12148. # Sun C++ 5.9
  12149. lt_prog_compiler_pic_CXX='-KPIC'
  12150. lt_prog_compiler_static_CXX='-Bstatic'
  12151. lt_prog_compiler_wl_CXX='-Qoption ld '
  12152. ;;
  12153. esac
  12154. ;;
  12155. esac
  12156. ;;
  12157. lynxos*)
  12158. ;;
  12159. m88k*)
  12160. ;;
  12161. mvs*)
  12162. case $cc_basename in
  12163. cxx*)
  12164. lt_prog_compiler_pic_CXX='-W c,exportall'
  12165. ;;
  12166. *)
  12167. ;;
  12168. esac
  12169. ;;
  12170. netbsd* | netbsdelf*-gnu)
  12171. ;;
  12172. *qnx* | *nto*)
  12173. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12174. # it will coredump.
  12175. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12176. ;;
  12177. osf3* | osf4* | osf5*)
  12178. case $cc_basename in
  12179. KCC*)
  12180. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12181. ;;
  12182. RCC*)
  12183. # Rational C++ 2.4.1
  12184. lt_prog_compiler_pic_CXX='-pic'
  12185. ;;
  12186. cxx*)
  12187. # Digital/Compaq C++
  12188. lt_prog_compiler_wl_CXX='-Wl,'
  12189. # Make sure the PIC flag is empty. It appears that all Alpha
  12190. # Linux and Compaq Tru64 Unix objects are PIC.
  12191. lt_prog_compiler_pic_CXX=
  12192. lt_prog_compiler_static_CXX='-non_shared'
  12193. ;;
  12194. *)
  12195. ;;
  12196. esac
  12197. ;;
  12198. psos*)
  12199. ;;
  12200. solaris*)
  12201. case $cc_basename in
  12202. CC* | sunCC*)
  12203. # Sun C++ 4.2, 5.x and Centerline C++
  12204. lt_prog_compiler_pic_CXX='-KPIC'
  12205. lt_prog_compiler_static_CXX='-Bstatic'
  12206. lt_prog_compiler_wl_CXX='-Qoption ld '
  12207. ;;
  12208. gcx*)
  12209. # Green Hills C++ Compiler
  12210. lt_prog_compiler_pic_CXX='-PIC'
  12211. ;;
  12212. *)
  12213. ;;
  12214. esac
  12215. ;;
  12216. sunos4*)
  12217. case $cc_basename in
  12218. CC*)
  12219. # Sun C++ 4.x
  12220. lt_prog_compiler_pic_CXX='-pic'
  12221. lt_prog_compiler_static_CXX='-Bstatic'
  12222. ;;
  12223. lcc*)
  12224. # Lucid
  12225. lt_prog_compiler_pic_CXX='-pic'
  12226. ;;
  12227. *)
  12228. ;;
  12229. esac
  12230. ;;
  12231. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12232. case $cc_basename in
  12233. CC*)
  12234. lt_prog_compiler_wl_CXX='-Wl,'
  12235. lt_prog_compiler_pic_CXX='-KPIC'
  12236. lt_prog_compiler_static_CXX='-Bstatic'
  12237. ;;
  12238. esac
  12239. ;;
  12240. tandem*)
  12241. case $cc_basename in
  12242. NCC*)
  12243. # NonStop-UX NCC 3.20
  12244. lt_prog_compiler_pic_CXX='-KPIC'
  12245. ;;
  12246. *)
  12247. ;;
  12248. esac
  12249. ;;
  12250. vxworks*)
  12251. ;;
  12252. *)
  12253. lt_prog_compiler_can_build_shared_CXX=no
  12254. ;;
  12255. esac
  12256. fi
  12257. case $host_os in
  12258. # For platforms which do not support PIC, -DPIC is meaningless:
  12259. *djgpp*)
  12260. lt_prog_compiler_pic_CXX=
  12261. ;;
  12262. *)
  12263. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12264. ;;
  12265. esac
  12266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12267. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12268. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12269. $as_echo_n "(cached) " >&6
  12270. else
  12271. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12272. fi
  12273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12274. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12275. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12276. #
  12277. # Check to make sure the PIC flag actually works.
  12278. #
  12279. if test -n "$lt_prog_compiler_pic_CXX"; then
  12280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12281. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12282. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12283. $as_echo_n "(cached) " >&6
  12284. else
  12285. lt_cv_prog_compiler_pic_works_CXX=no
  12286. ac_outfile=conftest.$ac_objext
  12287. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12288. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12289. # Insert the option either (1) after the last *FLAGS variable, or
  12290. # (2) before a word containing "conftest.", or (3) at the end.
  12291. # Note that $ac_compile itself does not contain backslashes and begins
  12292. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12293. # The option is referenced via a variable to avoid confusing sed.
  12294. lt_compile=`echo "$ac_compile" | $SED \
  12295. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12296. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12297. -e 's:$: $lt_compiler_flag:'`
  12298. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12299. (eval "$lt_compile" 2>conftest.err)
  12300. ac_status=$?
  12301. cat conftest.err >&5
  12302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12303. if (exit $ac_status) && test -s "$ac_outfile"; then
  12304. # The compiler can only warn and ignore the option if not recognized
  12305. # So say no if there are warnings other than the usual output.
  12306. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12307. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12308. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12309. lt_cv_prog_compiler_pic_works_CXX=yes
  12310. fi
  12311. fi
  12312. $RM conftest*
  12313. fi
  12314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12315. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12316. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12317. case $lt_prog_compiler_pic_CXX in
  12318. "" | " "*) ;;
  12319. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12320. esac
  12321. else
  12322. lt_prog_compiler_pic_CXX=
  12323. lt_prog_compiler_can_build_shared_CXX=no
  12324. fi
  12325. fi
  12326. #
  12327. # Check to make sure the static flag actually works.
  12328. #
  12329. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12331. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12332. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12333. $as_echo_n "(cached) " >&6
  12334. else
  12335. lt_cv_prog_compiler_static_works_CXX=no
  12336. save_LDFLAGS="$LDFLAGS"
  12337. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12338. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12339. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12340. # The linker can only warn and ignore the option if not recognized
  12341. # So say no if there are warnings
  12342. if test -s conftest.err; then
  12343. # Append any errors to the config.log.
  12344. cat conftest.err 1>&5
  12345. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12346. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12347. if diff conftest.exp conftest.er2 >/dev/null; then
  12348. lt_cv_prog_compiler_static_works_CXX=yes
  12349. fi
  12350. else
  12351. lt_cv_prog_compiler_static_works_CXX=yes
  12352. fi
  12353. fi
  12354. $RM -r conftest*
  12355. LDFLAGS="$save_LDFLAGS"
  12356. fi
  12357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12358. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12359. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12360. :
  12361. else
  12362. lt_prog_compiler_static_CXX=
  12363. fi
  12364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12365. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12366. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12367. $as_echo_n "(cached) " >&6
  12368. else
  12369. lt_cv_prog_compiler_c_o_CXX=no
  12370. $RM -r conftest 2>/dev/null
  12371. mkdir conftest
  12372. cd conftest
  12373. mkdir out
  12374. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12375. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12376. # Insert the option either (1) after the last *FLAGS variable, or
  12377. # (2) before a word containing "conftest.", or (3) at the end.
  12378. # Note that $ac_compile itself does not contain backslashes and begins
  12379. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12380. lt_compile=`echo "$ac_compile" | $SED \
  12381. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12382. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12383. -e 's:$: $lt_compiler_flag:'`
  12384. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12385. (eval "$lt_compile" 2>out/conftest.err)
  12386. ac_status=$?
  12387. cat out/conftest.err >&5
  12388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12389. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12390. then
  12391. # The compiler can only warn and ignore the option if not recognized
  12392. # So say no if there are warnings
  12393. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12394. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12395. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12396. lt_cv_prog_compiler_c_o_CXX=yes
  12397. fi
  12398. fi
  12399. chmod u+w . 2>&5
  12400. $RM conftest*
  12401. # SGI C++ compiler will create directory out/ii_files/ for
  12402. # template instantiation
  12403. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12404. $RM out/* && rmdir out
  12405. cd ..
  12406. $RM -r conftest
  12407. $RM conftest*
  12408. fi
  12409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12410. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12412. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12413. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12414. $as_echo_n "(cached) " >&6
  12415. else
  12416. lt_cv_prog_compiler_c_o_CXX=no
  12417. $RM -r conftest 2>/dev/null
  12418. mkdir conftest
  12419. cd conftest
  12420. mkdir out
  12421. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12422. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12423. # Insert the option either (1) after the last *FLAGS variable, or
  12424. # (2) before a word containing "conftest.", or (3) at the end.
  12425. # Note that $ac_compile itself does not contain backslashes and begins
  12426. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12427. lt_compile=`echo "$ac_compile" | $SED \
  12428. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12429. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12430. -e 's:$: $lt_compiler_flag:'`
  12431. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12432. (eval "$lt_compile" 2>out/conftest.err)
  12433. ac_status=$?
  12434. cat out/conftest.err >&5
  12435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12436. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12437. then
  12438. # The compiler can only warn and ignore the option if not recognized
  12439. # So say no if there are warnings
  12440. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12441. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12442. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12443. lt_cv_prog_compiler_c_o_CXX=yes
  12444. fi
  12445. fi
  12446. chmod u+w . 2>&5
  12447. $RM conftest*
  12448. # SGI C++ compiler will create directory out/ii_files/ for
  12449. # template instantiation
  12450. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12451. $RM out/* && rmdir out
  12452. cd ..
  12453. $RM -r conftest
  12454. $RM conftest*
  12455. fi
  12456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12457. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12458. hard_links="nottested"
  12459. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12460. # do not overwrite the value of need_locks provided by the user
  12461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12462. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12463. hard_links=yes
  12464. $RM conftest*
  12465. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12466. touch conftest.a
  12467. ln conftest.a conftest.b 2>&5 || hard_links=no
  12468. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12470. $as_echo "$hard_links" >&6; }
  12471. if test "$hard_links" = no; then
  12472. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12473. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12474. need_locks=warn
  12475. fi
  12476. else
  12477. need_locks=no
  12478. fi
  12479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12480. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12481. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12482. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12483. case $host_os in
  12484. aix[4-9]*)
  12485. # If we're using GNU nm, then we don't want the "-C" option.
  12486. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12487. # Also, AIX nm treats weak defined symbols like other global defined
  12488. # symbols, whereas GNU nm marks them as "W".
  12489. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12490. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12491. else
  12492. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12493. fi
  12494. ;;
  12495. pw32*)
  12496. export_symbols_cmds_CXX="$ltdll_cmds"
  12497. ;;
  12498. cygwin* | mingw* | cegcc*)
  12499. case $cc_basename in
  12500. cl*)
  12501. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12502. ;;
  12503. *)
  12504. 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'
  12505. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12506. ;;
  12507. esac
  12508. ;;
  12509. linux* | k*bsd*-gnu | gnu*)
  12510. link_all_deplibs_CXX=no
  12511. ;;
  12512. *)
  12513. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12514. ;;
  12515. esac
  12516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12517. $as_echo "$ld_shlibs_CXX" >&6; }
  12518. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12519. with_gnu_ld_CXX=$with_gnu_ld
  12520. #
  12521. # Do we need to explicitly link libc?
  12522. #
  12523. case "x$archive_cmds_need_lc_CXX" in
  12524. x|xyes)
  12525. # Assume -lc should be added
  12526. archive_cmds_need_lc_CXX=yes
  12527. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12528. case $archive_cmds_CXX in
  12529. *'~'*)
  12530. # FIXME: we may have to deal with multi-command sequences.
  12531. ;;
  12532. '$CC '*)
  12533. # Test whether the compiler implicitly links with -lc since on some
  12534. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12535. # to ld, don't add -lc before -lgcc.
  12536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12537. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12538. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12539. $as_echo_n "(cached) " >&6
  12540. else
  12541. $RM conftest*
  12542. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12543. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12544. (eval $ac_compile) 2>&5
  12545. ac_status=$?
  12546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12547. test $ac_status = 0; } 2>conftest.err; then
  12548. soname=conftest
  12549. lib=conftest
  12550. libobjs=conftest.$ac_objext
  12551. deplibs=
  12552. wl=$lt_prog_compiler_wl_CXX
  12553. pic_flag=$lt_prog_compiler_pic_CXX
  12554. compiler_flags=-v
  12555. linker_flags=-v
  12556. verstring=
  12557. output_objdir=.
  12558. libname=conftest
  12559. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12560. allow_undefined_flag_CXX=
  12561. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12562. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12563. ac_status=$?
  12564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12565. test $ac_status = 0; }
  12566. then
  12567. lt_cv_archive_cmds_need_lc_CXX=no
  12568. else
  12569. lt_cv_archive_cmds_need_lc_CXX=yes
  12570. fi
  12571. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12572. else
  12573. cat conftest.err 1>&5
  12574. fi
  12575. $RM conftest*
  12576. fi
  12577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12578. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12579. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12580. ;;
  12581. esac
  12582. fi
  12583. ;;
  12584. esac
  12585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12586. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12587. library_names_spec=
  12588. libname_spec='lib$name'
  12589. soname_spec=
  12590. shrext_cmds=".so"
  12591. postinstall_cmds=
  12592. postuninstall_cmds=
  12593. finish_cmds=
  12594. finish_eval=
  12595. shlibpath_var=
  12596. shlibpath_overrides_runpath=unknown
  12597. version_type=none
  12598. dynamic_linker="$host_os ld.so"
  12599. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12600. need_lib_prefix=unknown
  12601. hardcode_into_libs=no
  12602. # when you set need_version to no, make sure it does not cause -set_version
  12603. # flags to be left without arguments
  12604. need_version=unknown
  12605. case $host_os in
  12606. aix3*)
  12607. version_type=linux # correct to gnu/linux during the next big refactor
  12608. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12609. shlibpath_var=LIBPATH
  12610. # AIX 3 has no versioning support, so we append a major version to the name.
  12611. soname_spec='${libname}${release}${shared_ext}$major'
  12612. ;;
  12613. aix[4-9]*)
  12614. version_type=linux # correct to gnu/linux during the next big refactor
  12615. need_lib_prefix=no
  12616. need_version=no
  12617. hardcode_into_libs=yes
  12618. if test "$host_cpu" = ia64; then
  12619. # AIX 5 supports IA64
  12620. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12621. shlibpath_var=LD_LIBRARY_PATH
  12622. else
  12623. # With GCC up to 2.95.x, collect2 would create an import file
  12624. # for dependence libraries. The import file would start with
  12625. # the line `#! .'. This would cause the generated library to
  12626. # depend on `.', always an invalid library. This was fixed in
  12627. # development snapshots of GCC prior to 3.0.
  12628. case $host_os in
  12629. aix4 | aix4.[01] | aix4.[01].*)
  12630. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12631. echo ' yes '
  12632. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12633. :
  12634. else
  12635. can_build_shared=no
  12636. fi
  12637. ;;
  12638. esac
  12639. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12640. # soname into executable. Probably we can add versioning support to
  12641. # collect2, so additional links can be useful in future.
  12642. if test "$aix_use_runtimelinking" = yes; then
  12643. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12644. # instead of lib<name>.a to let people know that these are not
  12645. # typical AIX shared libraries.
  12646. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12647. else
  12648. # We preserve .a as extension for shared libraries through AIX4.2
  12649. # and later when we are not doing run time linking.
  12650. library_names_spec='${libname}${release}.a $libname.a'
  12651. soname_spec='${libname}${release}${shared_ext}$major'
  12652. fi
  12653. shlibpath_var=LIBPATH
  12654. fi
  12655. ;;
  12656. amigaos*)
  12657. case $host_cpu in
  12658. powerpc)
  12659. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12660. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12662. ;;
  12663. m68k)
  12664. library_names_spec='$libname.ixlibrary $libname.a'
  12665. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12666. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12667. ;;
  12668. esac
  12669. ;;
  12670. beos*)
  12671. library_names_spec='${libname}${shared_ext}'
  12672. dynamic_linker="$host_os ld.so"
  12673. shlibpath_var=LIBRARY_PATH
  12674. ;;
  12675. bsdi[45]*)
  12676. version_type=linux # correct to gnu/linux during the next big refactor
  12677. need_version=no
  12678. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12679. soname_spec='${libname}${release}${shared_ext}$major'
  12680. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12681. shlibpath_var=LD_LIBRARY_PATH
  12682. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12683. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12684. # the default ld.so.conf also contains /usr/contrib/lib and
  12685. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12686. # libtool to hard-code these into programs
  12687. ;;
  12688. cygwin* | mingw* | pw32* | cegcc*)
  12689. version_type=windows
  12690. shrext_cmds=".dll"
  12691. need_version=no
  12692. need_lib_prefix=no
  12693. case $GCC,$cc_basename in
  12694. yes,*)
  12695. # gcc
  12696. library_names_spec='$libname.dll.a'
  12697. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12698. postinstall_cmds='base_file=`basename \${file}`~
  12699. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12700. dldir=$destdir/`dirname \$dlpath`~
  12701. test -d \$dldir || mkdir -p \$dldir~
  12702. $install_prog $dir/$dlname \$dldir/$dlname~
  12703. chmod a+x \$dldir/$dlname~
  12704. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12705. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12706. fi'
  12707. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12708. dlpath=$dir/\$dldll~
  12709. $RM \$dlpath'
  12710. shlibpath_overrides_runpath=yes
  12711. case $host_os in
  12712. cygwin*)
  12713. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12714. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12715. ;;
  12716. mingw* | cegcc*)
  12717. # MinGW DLLs use traditional 'lib' prefix
  12718. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12719. ;;
  12720. pw32*)
  12721. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12722. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12723. ;;
  12724. esac
  12725. dynamic_linker='Win32 ld.exe'
  12726. ;;
  12727. *,cl*)
  12728. # Native MSVC
  12729. libname_spec='$name'
  12730. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12731. library_names_spec='${libname}.dll.lib'
  12732. case $build_os in
  12733. mingw*)
  12734. sys_lib_search_path_spec=
  12735. lt_save_ifs=$IFS
  12736. IFS=';'
  12737. for lt_path in $LIB
  12738. do
  12739. IFS=$lt_save_ifs
  12740. # Let DOS variable expansion print the short 8.3 style file name.
  12741. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12742. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12743. done
  12744. IFS=$lt_save_ifs
  12745. # Convert to MSYS style.
  12746. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12747. ;;
  12748. cygwin*)
  12749. # Convert to unix form, then to dos form, then back to unix form
  12750. # but this time dos style (no spaces!) so that the unix form looks
  12751. # like /cygdrive/c/PROGRA~1:/cygdr...
  12752. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12753. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12754. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12755. ;;
  12756. *)
  12757. sys_lib_search_path_spec="$LIB"
  12758. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12759. # It is most probably a Windows format PATH.
  12760. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12761. else
  12762. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12763. fi
  12764. # FIXME: find the short name or the path components, as spaces are
  12765. # common. (e.g. "Program Files" -> "PROGRA~1")
  12766. ;;
  12767. esac
  12768. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12769. postinstall_cmds='base_file=`basename \${file}`~
  12770. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12771. dldir=$destdir/`dirname \$dlpath`~
  12772. test -d \$dldir || mkdir -p \$dldir~
  12773. $install_prog $dir/$dlname \$dldir/$dlname'
  12774. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12775. dlpath=$dir/\$dldll~
  12776. $RM \$dlpath'
  12777. shlibpath_overrides_runpath=yes
  12778. dynamic_linker='Win32 link.exe'
  12779. ;;
  12780. *)
  12781. # Assume MSVC wrapper
  12782. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12783. dynamic_linker='Win32 ld.exe'
  12784. ;;
  12785. esac
  12786. # FIXME: first we should search . and the directory the executable is in
  12787. shlibpath_var=PATH
  12788. ;;
  12789. darwin* | rhapsody*)
  12790. dynamic_linker="$host_os dyld"
  12791. version_type=darwin
  12792. need_lib_prefix=no
  12793. need_version=no
  12794. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12795. soname_spec='${libname}${release}${major}$shared_ext'
  12796. shlibpath_overrides_runpath=yes
  12797. shlibpath_var=DYLD_LIBRARY_PATH
  12798. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12799. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12800. ;;
  12801. dgux*)
  12802. version_type=linux # correct to gnu/linux during the next big refactor
  12803. need_lib_prefix=no
  12804. need_version=no
  12805. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12806. soname_spec='${libname}${release}${shared_ext}$major'
  12807. shlibpath_var=LD_LIBRARY_PATH
  12808. ;;
  12809. freebsd* | dragonfly*)
  12810. # DragonFly does not have aout. When/if they implement a new
  12811. # versioning mechanism, adjust this.
  12812. if test -x /usr/bin/objformat; then
  12813. objformat=`/usr/bin/objformat`
  12814. else
  12815. case $host_os in
  12816. freebsd[23].*) objformat=aout ;;
  12817. *) objformat=elf ;;
  12818. esac
  12819. fi
  12820. version_type=freebsd-$objformat
  12821. case $version_type in
  12822. freebsd-elf*)
  12823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12824. need_version=no
  12825. need_lib_prefix=no
  12826. ;;
  12827. freebsd-*)
  12828. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12829. need_version=yes
  12830. ;;
  12831. esac
  12832. shlibpath_var=LD_LIBRARY_PATH
  12833. case $host_os in
  12834. freebsd2.*)
  12835. shlibpath_overrides_runpath=yes
  12836. ;;
  12837. freebsd3.[01]* | freebsdelf3.[01]*)
  12838. shlibpath_overrides_runpath=yes
  12839. hardcode_into_libs=yes
  12840. ;;
  12841. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12842. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12843. shlibpath_overrides_runpath=no
  12844. hardcode_into_libs=yes
  12845. ;;
  12846. *) # from 4.6 on, and DragonFly
  12847. shlibpath_overrides_runpath=yes
  12848. hardcode_into_libs=yes
  12849. ;;
  12850. esac
  12851. ;;
  12852. haiku*)
  12853. version_type=linux # correct to gnu/linux during the next big refactor
  12854. need_lib_prefix=no
  12855. need_version=no
  12856. dynamic_linker="$host_os runtime_loader"
  12857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12858. soname_spec='${libname}${release}${shared_ext}$major'
  12859. shlibpath_var=LIBRARY_PATH
  12860. shlibpath_overrides_runpath=yes
  12861. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12862. hardcode_into_libs=yes
  12863. ;;
  12864. hpux9* | hpux10* | hpux11*)
  12865. # Give a soname corresponding to the major version so that dld.sl refuses to
  12866. # link against other versions.
  12867. version_type=sunos
  12868. need_lib_prefix=no
  12869. need_version=no
  12870. case $host_cpu in
  12871. ia64*)
  12872. shrext_cmds='.so'
  12873. hardcode_into_libs=yes
  12874. dynamic_linker="$host_os dld.so"
  12875. shlibpath_var=LD_LIBRARY_PATH
  12876. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12877. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12878. soname_spec='${libname}${release}${shared_ext}$major'
  12879. if test "X$HPUX_IA64_MODE" = X32; then
  12880. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12881. else
  12882. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12883. fi
  12884. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12885. ;;
  12886. hppa*64*)
  12887. shrext_cmds='.sl'
  12888. hardcode_into_libs=yes
  12889. dynamic_linker="$host_os dld.sl"
  12890. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12891. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12893. soname_spec='${libname}${release}${shared_ext}$major'
  12894. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12895. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12896. ;;
  12897. *)
  12898. shrext_cmds='.sl'
  12899. dynamic_linker="$host_os dld.sl"
  12900. shlibpath_var=SHLIB_PATH
  12901. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12903. soname_spec='${libname}${release}${shared_ext}$major'
  12904. ;;
  12905. esac
  12906. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12907. postinstall_cmds='chmod 555 $lib'
  12908. # or fails outright, so override atomically:
  12909. install_override_mode=555
  12910. ;;
  12911. interix[3-9]*)
  12912. version_type=linux # correct to gnu/linux during the next big refactor
  12913. need_lib_prefix=no
  12914. need_version=no
  12915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12916. soname_spec='${libname}${release}${shared_ext}$major'
  12917. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12918. shlibpath_var=LD_LIBRARY_PATH
  12919. shlibpath_overrides_runpath=no
  12920. hardcode_into_libs=yes
  12921. ;;
  12922. irix5* | irix6* | nonstopux*)
  12923. case $host_os in
  12924. nonstopux*) version_type=nonstopux ;;
  12925. *)
  12926. if test "$lt_cv_prog_gnu_ld" = yes; then
  12927. version_type=linux # correct to gnu/linux during the next big refactor
  12928. else
  12929. version_type=irix
  12930. fi ;;
  12931. esac
  12932. need_lib_prefix=no
  12933. need_version=no
  12934. soname_spec='${libname}${release}${shared_ext}$major'
  12935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12936. case $host_os in
  12937. irix5* | nonstopux*)
  12938. libsuff= shlibsuff=
  12939. ;;
  12940. *)
  12941. case $LD in # libtool.m4 will add one of these switches to LD
  12942. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12943. libsuff= shlibsuff= libmagic=32-bit;;
  12944. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12945. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12946. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12947. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12948. *) libsuff= shlibsuff= libmagic=never-match;;
  12949. esac
  12950. ;;
  12951. esac
  12952. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12953. shlibpath_overrides_runpath=no
  12954. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12955. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12956. hardcode_into_libs=yes
  12957. ;;
  12958. # No shared lib support for Linux oldld, aout, or coff.
  12959. linux*oldld* | linux*aout* | linux*coff*)
  12960. dynamic_linker=no
  12961. ;;
  12962. # This must be glibc/ELF.
  12963. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12964. version_type=linux # correct to gnu/linux during the next big refactor
  12965. need_lib_prefix=no
  12966. need_version=no
  12967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12968. soname_spec='${libname}${release}${shared_ext}$major'
  12969. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12970. shlibpath_var=LD_LIBRARY_PATH
  12971. shlibpath_overrides_runpath=no
  12972. # Some binutils ld are patched to set DT_RUNPATH
  12973. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12974. $as_echo_n "(cached) " >&6
  12975. else
  12976. lt_cv_shlibpath_overrides_runpath=no
  12977. save_LDFLAGS=$LDFLAGS
  12978. save_libdir=$libdir
  12979. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12980. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12982. /* end confdefs.h. */
  12983. int
  12984. main ()
  12985. {
  12986. ;
  12987. return 0;
  12988. }
  12989. _ACEOF
  12990. if ac_fn_cxx_try_link "$LINENO"; then :
  12991. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12992. lt_cv_shlibpath_overrides_runpath=yes
  12993. fi
  12994. fi
  12995. rm -f core conftest.err conftest.$ac_objext \
  12996. conftest$ac_exeext conftest.$ac_ext
  12997. LDFLAGS=$save_LDFLAGS
  12998. libdir=$save_libdir
  12999. fi
  13000. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13001. # This implies no fast_install, which is unacceptable.
  13002. # Some rework will be needed to allow for fast_install
  13003. # before this can be enabled.
  13004. hardcode_into_libs=yes
  13005. # Append ld.so.conf contents to the search path
  13006. if test -f /etc/ld.so.conf; then
  13007. 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' ' '`
  13008. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13009. fi
  13010. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13011. # powerpc, because MkLinux only supported shared libraries with the
  13012. # GNU dynamic linker. Since this was broken with cross compilers,
  13013. # most powerpc-linux boxes support dynamic linking these days and
  13014. # people can always --disable-shared, the test was removed, and we
  13015. # assume the GNU/Linux dynamic linker is in use.
  13016. dynamic_linker='GNU/Linux ld.so'
  13017. ;;
  13018. netbsdelf*-gnu)
  13019. version_type=linux
  13020. need_lib_prefix=no
  13021. need_version=no
  13022. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13023. soname_spec='${libname}${release}${shared_ext}$major'
  13024. shlibpath_var=LD_LIBRARY_PATH
  13025. shlibpath_overrides_runpath=no
  13026. hardcode_into_libs=yes
  13027. dynamic_linker='NetBSD ld.elf_so'
  13028. ;;
  13029. netbsd*)
  13030. version_type=sunos
  13031. need_lib_prefix=no
  13032. need_version=no
  13033. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13034. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13035. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13036. dynamic_linker='NetBSD (a.out) ld.so'
  13037. else
  13038. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13039. soname_spec='${libname}${release}${shared_ext}$major'
  13040. dynamic_linker='NetBSD ld.elf_so'
  13041. fi
  13042. shlibpath_var=LD_LIBRARY_PATH
  13043. shlibpath_overrides_runpath=yes
  13044. hardcode_into_libs=yes
  13045. ;;
  13046. newsos6)
  13047. version_type=linux # correct to gnu/linux during the next big refactor
  13048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13049. shlibpath_var=LD_LIBRARY_PATH
  13050. shlibpath_overrides_runpath=yes
  13051. ;;
  13052. *nto* | *qnx*)
  13053. version_type=qnx
  13054. need_lib_prefix=no
  13055. need_version=no
  13056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13057. soname_spec='${libname}${release}${shared_ext}$major'
  13058. shlibpath_var=LD_LIBRARY_PATH
  13059. shlibpath_overrides_runpath=no
  13060. hardcode_into_libs=yes
  13061. dynamic_linker='ldqnx.so'
  13062. ;;
  13063. openbsd*)
  13064. version_type=sunos
  13065. sys_lib_dlsearch_path_spec="/usr/lib"
  13066. need_lib_prefix=no
  13067. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13068. case $host_os in
  13069. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13070. *) need_version=no ;;
  13071. esac
  13072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13073. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13074. shlibpath_var=LD_LIBRARY_PATH
  13075. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13076. case $host_os in
  13077. openbsd2.[89] | openbsd2.[89].*)
  13078. shlibpath_overrides_runpath=no
  13079. ;;
  13080. *)
  13081. shlibpath_overrides_runpath=yes
  13082. ;;
  13083. esac
  13084. else
  13085. shlibpath_overrides_runpath=yes
  13086. fi
  13087. ;;
  13088. os2*)
  13089. libname_spec='$name'
  13090. shrext_cmds=".dll"
  13091. need_lib_prefix=no
  13092. library_names_spec='$libname${shared_ext} $libname.a'
  13093. dynamic_linker='OS/2 ld.exe'
  13094. shlibpath_var=LIBPATH
  13095. ;;
  13096. osf3* | osf4* | osf5*)
  13097. version_type=osf
  13098. need_lib_prefix=no
  13099. need_version=no
  13100. soname_spec='${libname}${release}${shared_ext}$major'
  13101. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13102. shlibpath_var=LD_LIBRARY_PATH
  13103. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13104. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13105. ;;
  13106. rdos*)
  13107. dynamic_linker=no
  13108. ;;
  13109. solaris*)
  13110. version_type=linux # correct to gnu/linux during the next big refactor
  13111. need_lib_prefix=no
  13112. need_version=no
  13113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13114. soname_spec='${libname}${release}${shared_ext}$major'
  13115. shlibpath_var=LD_LIBRARY_PATH
  13116. shlibpath_overrides_runpath=yes
  13117. hardcode_into_libs=yes
  13118. # ldd complains unless libraries are executable
  13119. postinstall_cmds='chmod +x $lib'
  13120. ;;
  13121. sunos4*)
  13122. version_type=sunos
  13123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13124. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13125. shlibpath_var=LD_LIBRARY_PATH
  13126. shlibpath_overrides_runpath=yes
  13127. if test "$with_gnu_ld" = yes; then
  13128. need_lib_prefix=no
  13129. fi
  13130. need_version=yes
  13131. ;;
  13132. sysv4 | sysv4.3*)
  13133. version_type=linux # correct to gnu/linux during the next big refactor
  13134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13135. soname_spec='${libname}${release}${shared_ext}$major'
  13136. shlibpath_var=LD_LIBRARY_PATH
  13137. case $host_vendor in
  13138. sni)
  13139. shlibpath_overrides_runpath=no
  13140. need_lib_prefix=no
  13141. runpath_var=LD_RUN_PATH
  13142. ;;
  13143. siemens)
  13144. need_lib_prefix=no
  13145. ;;
  13146. motorola)
  13147. need_lib_prefix=no
  13148. need_version=no
  13149. shlibpath_overrides_runpath=no
  13150. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13151. ;;
  13152. esac
  13153. ;;
  13154. sysv4*MP*)
  13155. if test -d /usr/nec ;then
  13156. version_type=linux # correct to gnu/linux during the next big refactor
  13157. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13158. soname_spec='$libname${shared_ext}.$major'
  13159. shlibpath_var=LD_LIBRARY_PATH
  13160. fi
  13161. ;;
  13162. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13163. version_type=freebsd-elf
  13164. need_lib_prefix=no
  13165. need_version=no
  13166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13167. soname_spec='${libname}${release}${shared_ext}$major'
  13168. shlibpath_var=LD_LIBRARY_PATH
  13169. shlibpath_overrides_runpath=yes
  13170. hardcode_into_libs=yes
  13171. if test "$with_gnu_ld" = yes; then
  13172. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13173. else
  13174. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13175. case $host_os in
  13176. sco3.2v5*)
  13177. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13178. ;;
  13179. esac
  13180. fi
  13181. sys_lib_dlsearch_path_spec='/usr/lib'
  13182. ;;
  13183. tpf*)
  13184. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13185. version_type=linux # correct to gnu/linux during the next big refactor
  13186. need_lib_prefix=no
  13187. need_version=no
  13188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13189. shlibpath_var=LD_LIBRARY_PATH
  13190. shlibpath_overrides_runpath=no
  13191. hardcode_into_libs=yes
  13192. ;;
  13193. uts4*)
  13194. version_type=linux # correct to gnu/linux during the next big refactor
  13195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13196. soname_spec='${libname}${release}${shared_ext}$major'
  13197. shlibpath_var=LD_LIBRARY_PATH
  13198. ;;
  13199. *)
  13200. dynamic_linker=no
  13201. ;;
  13202. esac
  13203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13204. $as_echo "$dynamic_linker" >&6; }
  13205. test "$dynamic_linker" = no && can_build_shared=no
  13206. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13207. if test "$GCC" = yes; then
  13208. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13209. fi
  13210. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13211. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13212. fi
  13213. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13214. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13215. fi
  13216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13217. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13218. hardcode_action_CXX=
  13219. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13220. test -n "$runpath_var_CXX" ||
  13221. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13222. # We can hardcode non-existent directories.
  13223. if test "$hardcode_direct_CXX" != no &&
  13224. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13225. # have to relink, otherwise we might link with an installed library
  13226. # when we should be linking with a yet-to-be-installed one
  13227. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13228. test "$hardcode_minus_L_CXX" != no; then
  13229. # Linking always hardcodes the temporary library directory.
  13230. hardcode_action_CXX=relink
  13231. else
  13232. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13233. hardcode_action_CXX=immediate
  13234. fi
  13235. else
  13236. # We cannot hardcode anything, or else we can only hardcode existing
  13237. # directories.
  13238. hardcode_action_CXX=unsupported
  13239. fi
  13240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13241. $as_echo "$hardcode_action_CXX" >&6; }
  13242. if test "$hardcode_action_CXX" = relink ||
  13243. test "$inherit_rpath_CXX" = yes; then
  13244. # Fast installation is not supported
  13245. enable_fast_install=no
  13246. elif test "$shlibpath_overrides_runpath" = yes ||
  13247. test "$enable_shared" = no; then
  13248. # Fast installation is not necessary
  13249. enable_fast_install=needless
  13250. fi
  13251. fi # test -n "$compiler"
  13252. CC=$lt_save_CC
  13253. CFLAGS=$lt_save_CFLAGS
  13254. LDCXX=$LD
  13255. LD=$lt_save_LD
  13256. GCC=$lt_save_GCC
  13257. with_gnu_ld=$lt_save_with_gnu_ld
  13258. lt_cv_path_LDCXX=$lt_cv_path_LD
  13259. lt_cv_path_LD=$lt_save_path_LD
  13260. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13261. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13262. fi # test "$_lt_caught_CXX_error" != yes
  13263. ac_ext=cpp
  13264. ac_cpp='$CXXCPP $CPPFLAGS'
  13265. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13266. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13267. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13268. ac_config_commands="$ac_config_commands libtool"
  13269. # Only expand once:
  13270. for ac_header in sys/times.h
  13271. do :
  13272. ac_fn_cxx_check_header_mongrel "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
  13273. if test "x$ac_cv_header_sys_times_h" = xyes; then :
  13274. cat >>confdefs.h <<_ACEOF
  13275. #define HAVE_SYS_TIMES_H 1
  13276. _ACEOF
  13277. fi
  13278. done
  13279. BUILDER=`whoami`
  13280. BUILDDATE=`date +%D,%H:%M:%S`
  13281. CONFIGURE_ARGS=$ac_configure_args
  13282. LIBTOOL_VERSION_INFO="-version-info ${MAJOR_VERSION}:${MINOR_VERSION}:0"
  13283. ac_config_files="$ac_config_files Makefile tests/Makefile include/Makefile gmm-config"
  13284. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13285. # Let make expand exec_prefix.
  13286. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13287. DEFS=-DHAVE_CONFIG_H
  13288. ac_libobjs=
  13289. ac_ltlibobjs=
  13290. U=
  13291. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13292. # 1. Remove the extension, and $U if already installed.
  13293. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13294. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13295. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13296. # will be set to the directory where LIBOBJS objects are built.
  13297. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13298. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13299. done
  13300. LIBOBJS=$ac_libobjs
  13301. LTLIBOBJS=$ac_ltlibobjs
  13302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13303. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  13304. if test -n "$am_sleep_pid"; then
  13305. # Hide warnings about reused PIDs.
  13306. wait $am_sleep_pid 2>/dev/null
  13307. fi
  13308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13309. $as_echo "done" >&6; }
  13310. if test -n "$EXEEXT"; then
  13311. am__EXEEXT_TRUE=
  13312. am__EXEEXT_FALSE='#'
  13313. else
  13314. am__EXEEXT_TRUE='#'
  13315. am__EXEEXT_FALSE=
  13316. fi
  13317. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13318. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13319. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13320. fi
  13321. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13322. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  13323. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13324. fi
  13325. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13326. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13327. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13328. fi
  13329. : "${CONFIG_STATUS=./config.status}"
  13330. ac_write_fail=0
  13331. ac_clean_files_save=$ac_clean_files
  13332. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13333. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13334. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13335. as_write_fail=0
  13336. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13337. #! $SHELL
  13338. # Generated by $as_me.
  13339. # Run this file to recreate the current configuration.
  13340. # Compiler output produced by configure, useful for debugging
  13341. # configure, is in config.log if it exists.
  13342. debug=false
  13343. ac_cs_recheck=false
  13344. ac_cs_silent=false
  13345. SHELL=\${CONFIG_SHELL-$SHELL}
  13346. export SHELL
  13347. _ASEOF
  13348. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13349. ## -------------------- ##
  13350. ## M4sh Initialization. ##
  13351. ## -------------------- ##
  13352. # Be more Bourne compatible
  13353. DUALCASE=1; export DUALCASE # for MKS sh
  13354. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13355. emulate sh
  13356. NULLCMD=:
  13357. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13358. # is contrary to our usage. Disable this feature.
  13359. alias -g '${1+"$@"}'='"$@"'
  13360. setopt NO_GLOB_SUBST
  13361. else
  13362. case `(set -o) 2>/dev/null` in #(
  13363. *posix*) :
  13364. set -o posix ;; #(
  13365. *) :
  13366. ;;
  13367. esac
  13368. fi
  13369. as_nl='
  13370. '
  13371. export as_nl
  13372. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13373. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13374. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13375. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13376. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13377. # but without wasting forks for bash or zsh.
  13378. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13379. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13380. as_echo='print -r --'
  13381. as_echo_n='print -rn --'
  13382. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13383. as_echo='printf %s\n'
  13384. as_echo_n='printf %s'
  13385. else
  13386. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13387. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13388. as_echo_n='/usr/ucb/echo -n'
  13389. else
  13390. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13391. as_echo_n_body='eval
  13392. arg=$1;
  13393. case $arg in #(
  13394. *"$as_nl"*)
  13395. expr "X$arg" : "X\\(.*\\)$as_nl";
  13396. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13397. esac;
  13398. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13399. '
  13400. export as_echo_n_body
  13401. as_echo_n='sh -c $as_echo_n_body as_echo'
  13402. fi
  13403. export as_echo_body
  13404. as_echo='sh -c $as_echo_body as_echo'
  13405. fi
  13406. # The user is always right.
  13407. if test "${PATH_SEPARATOR+set}" != set; then
  13408. PATH_SEPARATOR=:
  13409. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13410. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13411. PATH_SEPARATOR=';'
  13412. }
  13413. fi
  13414. # IFS
  13415. # We need space, tab and new line, in precisely that order. Quoting is
  13416. # there to prevent editors from complaining about space-tab.
  13417. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13418. # splitting by setting IFS to empty value.)
  13419. IFS=" "" $as_nl"
  13420. # Find who we are. Look in the path if we contain no directory separator.
  13421. as_myself=
  13422. case $0 in #((
  13423. *[\\/]* ) as_myself=$0 ;;
  13424. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13425. for as_dir in $PATH
  13426. do
  13427. IFS=$as_save_IFS
  13428. test -z "$as_dir" && as_dir=.
  13429. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13430. done
  13431. IFS=$as_save_IFS
  13432. ;;
  13433. esac
  13434. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13435. # in which case we are not to be found in the path.
  13436. if test "x$as_myself" = x; then
  13437. as_myself=$0
  13438. fi
  13439. if test ! -f "$as_myself"; then
  13440. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13441. exit 1
  13442. fi
  13443. # Unset variables that we do not need and which cause bugs (e.g. in
  13444. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13445. # suppresses any "Segmentation fault" message there. '((' could
  13446. # trigger a bug in pdksh 5.2.14.
  13447. for as_var in BASH_ENV ENV MAIL MAILPATH
  13448. do eval test x\${$as_var+set} = xset \
  13449. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13450. done
  13451. PS1='$ '
  13452. PS2='> '
  13453. PS4='+ '
  13454. # NLS nuisances.
  13455. LC_ALL=C
  13456. export LC_ALL
  13457. LANGUAGE=C
  13458. export LANGUAGE
  13459. # CDPATH.
  13460. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13461. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13462. # ----------------------------------------
  13463. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13464. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13465. # script with STATUS, using 1 if that was 0.
  13466. as_fn_error ()
  13467. {
  13468. as_status=$1; test $as_status -eq 0 && as_status=1
  13469. if test "$4"; then
  13470. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13471. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13472. fi
  13473. $as_echo "$as_me: error: $2" >&2
  13474. as_fn_exit $as_status
  13475. } # as_fn_error
  13476. # as_fn_set_status STATUS
  13477. # -----------------------
  13478. # Set $? to STATUS, without forking.
  13479. as_fn_set_status ()
  13480. {
  13481. return $1
  13482. } # as_fn_set_status
  13483. # as_fn_exit STATUS
  13484. # -----------------
  13485. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13486. as_fn_exit ()
  13487. {
  13488. set +e
  13489. as_fn_set_status $1
  13490. exit $1
  13491. } # as_fn_exit
  13492. # as_fn_unset VAR
  13493. # ---------------
  13494. # Portably unset VAR.
  13495. as_fn_unset ()
  13496. {
  13497. { eval $1=; unset $1;}
  13498. }
  13499. as_unset=as_fn_unset
  13500. # as_fn_append VAR VALUE
  13501. # ----------------------
  13502. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13503. # advantage of any shell optimizations that allow amortized linear growth over
  13504. # repeated appends, instead of the typical quadratic growth present in naive
  13505. # implementations.
  13506. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13507. eval 'as_fn_append ()
  13508. {
  13509. eval $1+=\$2
  13510. }'
  13511. else
  13512. as_fn_append ()
  13513. {
  13514. eval $1=\$$1\$2
  13515. }
  13516. fi # as_fn_append
  13517. # as_fn_arith ARG...
  13518. # ------------------
  13519. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13520. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13521. # must be portable across $(()) and expr.
  13522. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13523. eval 'as_fn_arith ()
  13524. {
  13525. as_val=$(( $* ))
  13526. }'
  13527. else
  13528. as_fn_arith ()
  13529. {
  13530. as_val=`expr "$@" || test $? -eq 1`
  13531. }
  13532. fi # as_fn_arith
  13533. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13534. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13535. as_expr=expr
  13536. else
  13537. as_expr=false
  13538. fi
  13539. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13540. as_basename=basename
  13541. else
  13542. as_basename=false
  13543. fi
  13544. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13545. as_dirname=dirname
  13546. else
  13547. as_dirname=false
  13548. fi
  13549. as_me=`$as_basename -- "$0" ||
  13550. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13551. X"$0" : 'X\(//\)$' \| \
  13552. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13553. $as_echo X/"$0" |
  13554. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13555. s//\1/
  13556. q
  13557. }
  13558. /^X\/\(\/\/\)$/{
  13559. s//\1/
  13560. q
  13561. }
  13562. /^X\/\(\/\).*/{
  13563. s//\1/
  13564. q
  13565. }
  13566. s/.*/./; q'`
  13567. # Avoid depending upon Character Ranges.
  13568. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13569. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13570. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13571. as_cr_digits='0123456789'
  13572. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13573. ECHO_C= ECHO_N= ECHO_T=
  13574. case `echo -n x` in #(((((
  13575. -n*)
  13576. case `echo 'xy\c'` in
  13577. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13578. xy) ECHO_C='\c';;
  13579. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13580. ECHO_T=' ';;
  13581. esac;;
  13582. *)
  13583. ECHO_N='-n';;
  13584. esac
  13585. rm -f conf$$ conf$$.exe conf$$.file
  13586. if test -d conf$$.dir; then
  13587. rm -f conf$$.dir/conf$$.file
  13588. else
  13589. rm -f conf$$.dir
  13590. mkdir conf$$.dir 2>/dev/null
  13591. fi
  13592. if (echo >conf$$.file) 2>/dev/null; then
  13593. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13594. as_ln_s='ln -s'
  13595. # ... but there are two gotchas:
  13596. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13597. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13598. # In both cases, we have to default to `cp -pR'.
  13599. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13600. as_ln_s='cp -pR'
  13601. elif ln conf$$.file conf$$ 2>/dev/null; then
  13602. as_ln_s=ln
  13603. else
  13604. as_ln_s='cp -pR'
  13605. fi
  13606. else
  13607. as_ln_s='cp -pR'
  13608. fi
  13609. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13610. rmdir conf$$.dir 2>/dev/null
  13611. # as_fn_mkdir_p
  13612. # -------------
  13613. # Create "$as_dir" as a directory, including parents if necessary.
  13614. as_fn_mkdir_p ()
  13615. {
  13616. case $as_dir in #(
  13617. -*) as_dir=./$as_dir;;
  13618. esac
  13619. test -d "$as_dir" || eval $as_mkdir_p || {
  13620. as_dirs=
  13621. while :; do
  13622. case $as_dir in #(
  13623. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13624. *) as_qdir=$as_dir;;
  13625. esac
  13626. as_dirs="'$as_qdir' $as_dirs"
  13627. as_dir=`$as_dirname -- "$as_dir" ||
  13628. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13629. X"$as_dir" : 'X\(//\)[^/]' \| \
  13630. X"$as_dir" : 'X\(//\)$' \| \
  13631. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13632. $as_echo X"$as_dir" |
  13633. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13634. s//\1/
  13635. q
  13636. }
  13637. /^X\(\/\/\)[^/].*/{
  13638. s//\1/
  13639. q
  13640. }
  13641. /^X\(\/\/\)$/{
  13642. s//\1/
  13643. q
  13644. }
  13645. /^X\(\/\).*/{
  13646. s//\1/
  13647. q
  13648. }
  13649. s/.*/./; q'`
  13650. test -d "$as_dir" && break
  13651. done
  13652. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13653. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13654. } # as_fn_mkdir_p
  13655. if mkdir -p . 2>/dev/null; then
  13656. as_mkdir_p='mkdir -p "$as_dir"'
  13657. else
  13658. test -d ./-p && rmdir ./-p
  13659. as_mkdir_p=false
  13660. fi
  13661. # as_fn_executable_p FILE
  13662. # -----------------------
  13663. # Test if FILE is an executable regular file.
  13664. as_fn_executable_p ()
  13665. {
  13666. test -f "$1" && test -x "$1"
  13667. } # as_fn_executable_p
  13668. as_test_x='test -x'
  13669. as_executable_p=as_fn_executable_p
  13670. # Sed expression to map a string onto a valid CPP name.
  13671. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13672. # Sed expression to map a string onto a valid variable name.
  13673. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13674. exec 6>&1
  13675. ## ----------------------------------- ##
  13676. ## Main body of $CONFIG_STATUS script. ##
  13677. ## ----------------------------------- ##
  13678. _ASEOF
  13679. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13680. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13681. # Save the log message, to keep $0 and so on meaningful, and to
  13682. # report actual input values of CONFIG_FILES etc. instead of their
  13683. # values after options handling.
  13684. ac_log="
  13685. This file was extended by gmm $as_me 5.0, which was
  13686. generated by GNU Autoconf 2.69. Invocation command line was
  13687. CONFIG_FILES = $CONFIG_FILES
  13688. CONFIG_HEADERS = $CONFIG_HEADERS
  13689. CONFIG_LINKS = $CONFIG_LINKS
  13690. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13691. $ $0 $@
  13692. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13693. "
  13694. _ACEOF
  13695. case $ac_config_files in *"
  13696. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13697. esac
  13698. case $ac_config_headers in *"
  13699. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13700. esac
  13701. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13702. # Files that config.status was made for.
  13703. config_files="$ac_config_files"
  13704. config_headers="$ac_config_headers"
  13705. config_commands="$ac_config_commands"
  13706. _ACEOF
  13707. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13708. ac_cs_usage="\
  13709. \`$as_me' instantiates files and other configuration actions
  13710. from templates according to the current configuration. Unless the files
  13711. and actions are specified as TAGs, all are instantiated by default.
  13712. Usage: $0 [OPTION]... [TAG]...
  13713. -h, --help print this help, then exit
  13714. -V, --version print version number and configuration settings, then exit
  13715. --config print configuration, then exit
  13716. -q, --quiet, --silent
  13717. do not print progress messages
  13718. -d, --debug don't remove temporary files
  13719. --recheck update $as_me by reconfiguring in the same conditions
  13720. --file=FILE[:TEMPLATE]
  13721. instantiate the configuration file FILE
  13722. --header=FILE[:TEMPLATE]
  13723. instantiate the configuration header FILE
  13724. Configuration files:
  13725. $config_files
  13726. Configuration headers:
  13727. $config_headers
  13728. Configuration commands:
  13729. $config_commands
  13730. Report bugs to the package provider."
  13731. _ACEOF
  13732. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13733. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13734. ac_cs_version="\\
  13735. gmm config.status 5.0
  13736. configured by $0, generated by GNU Autoconf 2.69,
  13737. with options \\"\$ac_cs_config\\"
  13738. Copyright (C) 2012 Free Software Foundation, Inc.
  13739. This config.status script is free software; the Free Software Foundation
  13740. gives unlimited permission to copy, distribute and modify it."
  13741. ac_pwd='$ac_pwd'
  13742. srcdir='$srcdir'
  13743. INSTALL='$INSTALL'
  13744. MKDIR_P='$MKDIR_P'
  13745. AWK='$AWK'
  13746. test -n "\$AWK" || AWK=awk
  13747. _ACEOF
  13748. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13749. # The default lists apply if the user does not specify any file.
  13750. ac_need_defaults=:
  13751. while test $# != 0
  13752. do
  13753. case $1 in
  13754. --*=?*)
  13755. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13756. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13757. ac_shift=:
  13758. ;;
  13759. --*=)
  13760. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13761. ac_optarg=
  13762. ac_shift=:
  13763. ;;
  13764. *)
  13765. ac_option=$1
  13766. ac_optarg=$2
  13767. ac_shift=shift
  13768. ;;
  13769. esac
  13770. case $ac_option in
  13771. # Handling of the options.
  13772. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13773. ac_cs_recheck=: ;;
  13774. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13775. $as_echo "$ac_cs_version"; exit ;;
  13776. --config | --confi | --conf | --con | --co | --c )
  13777. $as_echo "$ac_cs_config"; exit ;;
  13778. --debug | --debu | --deb | --de | --d | -d )
  13779. debug=: ;;
  13780. --file | --fil | --fi | --f )
  13781. $ac_shift
  13782. case $ac_optarg in
  13783. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13784. '') as_fn_error $? "missing file argument" ;;
  13785. esac
  13786. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13787. ac_need_defaults=false;;
  13788. --header | --heade | --head | --hea )
  13789. $ac_shift
  13790. case $ac_optarg in
  13791. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13792. esac
  13793. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13794. ac_need_defaults=false;;
  13795. --he | --h)
  13796. # Conflict between --help and --header
  13797. as_fn_error $? "ambiguous option: \`$1'
  13798. Try \`$0 --help' for more information.";;
  13799. --help | --hel | -h )
  13800. $as_echo "$ac_cs_usage"; exit ;;
  13801. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13802. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13803. ac_cs_silent=: ;;
  13804. # This is an error.
  13805. -*) as_fn_error $? "unrecognized option: \`$1'
  13806. Try \`$0 --help' for more information." ;;
  13807. *) as_fn_append ac_config_targets " $1"
  13808. ac_need_defaults=false ;;
  13809. esac
  13810. shift
  13811. done
  13812. ac_configure_extra_args=
  13813. if $ac_cs_silent; then
  13814. exec 6>/dev/null
  13815. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13816. fi
  13817. _ACEOF
  13818. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13819. if \$ac_cs_recheck; then
  13820. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13821. shift
  13822. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13823. CONFIG_SHELL='$SHELL'
  13824. export CONFIG_SHELL
  13825. exec "\$@"
  13826. fi
  13827. _ACEOF
  13828. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13829. exec 5>>config.log
  13830. {
  13831. echo
  13832. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13833. ## Running $as_me. ##
  13834. _ASBOX
  13835. $as_echo "$ac_log"
  13836. } >&5
  13837. _ACEOF
  13838. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13839. #
  13840. # INIT-COMMANDS
  13841. #
  13842. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13843. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13844. # if CDPATH is set.
  13845. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13846. sed_quote_subst='$sed_quote_subst'
  13847. double_quote_subst='$double_quote_subst'
  13848. delay_variable_subst='$delay_variable_subst'
  13849. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13850. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13851. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13852. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13853. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13854. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13855. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13856. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13857. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13858. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13859. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13860. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13861. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13862. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13863. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13864. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13865. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13866. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13867. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13868. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13869. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13870. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13871. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13872. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13873. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13874. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13875. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13876. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13877. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13878. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13879. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13880. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13881. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13882. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13883. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13884. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13885. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13886. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13887. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13888. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13889. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13890. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13891. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  13892. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13893. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13894. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13895. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13896. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13897. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13898. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13899. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13900. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13901. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13902. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13903. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13904. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13905. 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"`'
  13906. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  13907. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  13908. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13909. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13910. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13911. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13912. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13913. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13914. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13915. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13916. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  13917. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13918. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13919. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13920. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13921. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13922. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13923. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13924. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13925. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13926. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13927. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13928. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13929. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13930. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13931. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13932. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13933. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13934. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13935. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13936. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13937. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13938. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13939. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13940. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13941. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13942. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13943. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13944. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13945. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13946. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13947. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13948. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13949. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13950. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13951. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13952. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13953. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13954. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13955. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13956. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13957. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13958. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13959. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13960. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13961. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13962. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13963. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13964. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13965. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13966. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13967. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13968. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13969. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13970. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13971. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13972. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13973. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13974. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13975. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13976. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13977. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13978. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13979. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  13980. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  13981. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  13982. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  13983. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  13984. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  13985. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  13986. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13987. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13988. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13989. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  13990. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  13991. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13992. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  13993. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  13994. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  13995. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  13996. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  13997. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  13998. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13999. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14000. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14001. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14002. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14003. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14004. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14005. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14006. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14007. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14008. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14009. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14010. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14011. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14012. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14013. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14014. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14015. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14016. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14017. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14018. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14019. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14020. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14021. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14022. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14023. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14024. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14025. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14026. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14027. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14028. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14029. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14030. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14031. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14032. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14033. LTCC='$LTCC'
  14034. LTCFLAGS='$LTCFLAGS'
  14035. compiler='$compiler_DEFAULT'
  14036. # A function that is used when there is no print builtin or printf.
  14037. func_fallback_echo ()
  14038. {
  14039. eval 'cat <<_LTECHO_EOF
  14040. \$1
  14041. _LTECHO_EOF'
  14042. }
  14043. # Quote evaled strings.
  14044. for var in SHELL \
  14045. ECHO \
  14046. PATH_SEPARATOR \
  14047. SED \
  14048. GREP \
  14049. EGREP \
  14050. FGREP \
  14051. LD \
  14052. NM \
  14053. LN_S \
  14054. lt_SP2NL \
  14055. lt_NL2SP \
  14056. reload_flag \
  14057. OBJDUMP \
  14058. deplibs_check_method \
  14059. file_magic_cmd \
  14060. file_magic_glob \
  14061. want_nocaseglob \
  14062. DLLTOOL \
  14063. sharedlib_from_linklib_cmd \
  14064. AR \
  14065. AR_FLAGS \
  14066. archiver_list_spec \
  14067. STRIP \
  14068. RANLIB \
  14069. CC \
  14070. CFLAGS \
  14071. compiler \
  14072. lt_cv_sys_global_symbol_pipe \
  14073. lt_cv_sys_global_symbol_to_cdecl \
  14074. lt_cv_sys_global_symbol_to_c_name_address \
  14075. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14076. nm_file_list_spec \
  14077. lt_prog_compiler_no_builtin_flag \
  14078. lt_prog_compiler_pic \
  14079. lt_prog_compiler_wl \
  14080. lt_prog_compiler_static \
  14081. lt_cv_prog_compiler_c_o \
  14082. need_locks \
  14083. MANIFEST_TOOL \
  14084. DSYMUTIL \
  14085. NMEDIT \
  14086. LIPO \
  14087. OTOOL \
  14088. OTOOL64 \
  14089. shrext_cmds \
  14090. export_dynamic_flag_spec \
  14091. whole_archive_flag_spec \
  14092. compiler_needs_object \
  14093. with_gnu_ld \
  14094. allow_undefined_flag \
  14095. no_undefined_flag \
  14096. hardcode_libdir_flag_spec \
  14097. hardcode_libdir_separator \
  14098. exclude_expsyms \
  14099. include_expsyms \
  14100. file_list_spec \
  14101. variables_saved_for_relink \
  14102. libname_spec \
  14103. library_names_spec \
  14104. soname_spec \
  14105. install_override_mode \
  14106. finish_eval \
  14107. old_striplib \
  14108. striplib \
  14109. compiler_lib_search_dirs \
  14110. predep_objects \
  14111. postdep_objects \
  14112. predeps \
  14113. postdeps \
  14114. compiler_lib_search_path \
  14115. LD_CXX \
  14116. reload_flag_CXX \
  14117. compiler_CXX \
  14118. lt_prog_compiler_no_builtin_flag_CXX \
  14119. lt_prog_compiler_pic_CXX \
  14120. lt_prog_compiler_wl_CXX \
  14121. lt_prog_compiler_static_CXX \
  14122. lt_cv_prog_compiler_c_o_CXX \
  14123. export_dynamic_flag_spec_CXX \
  14124. whole_archive_flag_spec_CXX \
  14125. compiler_needs_object_CXX \
  14126. with_gnu_ld_CXX \
  14127. allow_undefined_flag_CXX \
  14128. no_undefined_flag_CXX \
  14129. hardcode_libdir_flag_spec_CXX \
  14130. hardcode_libdir_separator_CXX \
  14131. exclude_expsyms_CXX \
  14132. include_expsyms_CXX \
  14133. file_list_spec_CXX \
  14134. compiler_lib_search_dirs_CXX \
  14135. predep_objects_CXX \
  14136. postdep_objects_CXX \
  14137. predeps_CXX \
  14138. postdeps_CXX \
  14139. compiler_lib_search_path_CXX; do
  14140. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14141. *[\\\\\\\`\\"\\\$]*)
  14142. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14143. ;;
  14144. *)
  14145. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14146. ;;
  14147. esac
  14148. done
  14149. # Double-quote double-evaled strings.
  14150. for var in reload_cmds \
  14151. old_postinstall_cmds \
  14152. old_postuninstall_cmds \
  14153. old_archive_cmds \
  14154. extract_expsyms_cmds \
  14155. old_archive_from_new_cmds \
  14156. old_archive_from_expsyms_cmds \
  14157. archive_cmds \
  14158. archive_expsym_cmds \
  14159. module_cmds \
  14160. module_expsym_cmds \
  14161. export_symbols_cmds \
  14162. prelink_cmds \
  14163. postlink_cmds \
  14164. postinstall_cmds \
  14165. postuninstall_cmds \
  14166. finish_cmds \
  14167. sys_lib_search_path_spec \
  14168. sys_lib_dlsearch_path_spec \
  14169. reload_cmds_CXX \
  14170. old_archive_cmds_CXX \
  14171. old_archive_from_new_cmds_CXX \
  14172. old_archive_from_expsyms_cmds_CXX \
  14173. archive_cmds_CXX \
  14174. archive_expsym_cmds_CXX \
  14175. module_cmds_CXX \
  14176. module_expsym_cmds_CXX \
  14177. export_symbols_cmds_CXX \
  14178. prelink_cmds_CXX \
  14179. postlink_cmds_CXX; do
  14180. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14181. *[\\\\\\\`\\"\\\$]*)
  14182. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14183. ;;
  14184. *)
  14185. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14186. ;;
  14187. esac
  14188. done
  14189. ac_aux_dir='$ac_aux_dir'
  14190. xsi_shell='$xsi_shell'
  14191. lt_shell_append='$lt_shell_append'
  14192. # See if we are running on zsh, and set the options which allow our
  14193. # commands through without removal of \ escapes INIT.
  14194. if test -n "\${ZSH_VERSION+set}" ; then
  14195. setopt NO_GLOB_SUBST
  14196. fi
  14197. PACKAGE='$PACKAGE'
  14198. VERSION='$VERSION'
  14199. TIMESTAMP='$TIMESTAMP'
  14200. RM='$RM'
  14201. ofile='$ofile'
  14202. _ACEOF
  14203. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14204. # Handling of arguments.
  14205. for ac_config_target in $ac_config_targets
  14206. do
  14207. case $ac_config_target in
  14208. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14209. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14210. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14211. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14212. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  14213. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  14214. "gmm-config") CONFIG_FILES="$CONFIG_FILES gmm-config" ;;
  14215. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14216. esac
  14217. done
  14218. # If the user did not use the arguments to specify the items to instantiate,
  14219. # then the envvar interface is used. Set only those that are not.
  14220. # We use the long form for the default assignment because of an extremely
  14221. # bizarre bug on SunOS 4.1.3.
  14222. if $ac_need_defaults; then
  14223. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14224. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14225. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14226. fi
  14227. # Have a temporary directory for convenience. Make it in the build tree
  14228. # simply because there is no reason against having it here, and in addition,
  14229. # creating and moving files from /tmp can sometimes cause problems.
  14230. # Hook for its removal unless debugging.
  14231. # Note that there is a small window in which the directory will not be cleaned:
  14232. # after its creation but before its name has been assigned to `$tmp'.
  14233. $debug ||
  14234. {
  14235. tmp= ac_tmp=
  14236. trap 'exit_status=$?
  14237. : "${ac_tmp:=$tmp}"
  14238. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14239. ' 0
  14240. trap 'as_fn_exit 1' 1 2 13 15
  14241. }
  14242. # Create a (secure) tmp directory for tmp files.
  14243. {
  14244. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14245. test -d "$tmp"
  14246. } ||
  14247. {
  14248. tmp=./conf$$-$RANDOM
  14249. (umask 077 && mkdir "$tmp")
  14250. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14251. ac_tmp=$tmp
  14252. # Set up the scripts for CONFIG_FILES section.
  14253. # No need to generate them if there are no CONFIG_FILES.
  14254. # This happens for instance with `./config.status config.h'.
  14255. if test -n "$CONFIG_FILES"; then
  14256. ac_cr=`echo X | tr X '\015'`
  14257. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14258. # But we know of no other shell where ac_cr would be empty at this
  14259. # point, so we can use a bashism as a fallback.
  14260. if test "x$ac_cr" = x; then
  14261. eval ac_cr=\$\'\\r\'
  14262. fi
  14263. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14264. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14265. ac_cs_awk_cr='\\r'
  14266. else
  14267. ac_cs_awk_cr=$ac_cr
  14268. fi
  14269. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14270. _ACEOF
  14271. {
  14272. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14273. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14274. echo "_ACEOF"
  14275. } >conf$$subs.sh ||
  14276. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14277. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14278. ac_delim='%!_!# '
  14279. for ac_last_try in false false false false false :; do
  14280. . ./conf$$subs.sh ||
  14281. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14282. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14283. if test $ac_delim_n = $ac_delim_num; then
  14284. break
  14285. elif $ac_last_try; then
  14286. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14287. else
  14288. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14289. fi
  14290. done
  14291. rm -f conf$$subs.sh
  14292. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14293. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14294. _ACEOF
  14295. sed -n '
  14296. h
  14297. s/^/S["/; s/!.*/"]=/
  14298. p
  14299. g
  14300. s/^[^!]*!//
  14301. :repl
  14302. t repl
  14303. s/'"$ac_delim"'$//
  14304. t delim
  14305. :nl
  14306. h
  14307. s/\(.\{148\}\)..*/\1/
  14308. t more1
  14309. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14310. p
  14311. n
  14312. b repl
  14313. :more1
  14314. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14315. p
  14316. g
  14317. s/.\{148\}//
  14318. t nl
  14319. :delim
  14320. h
  14321. s/\(.\{148\}\)..*/\1/
  14322. t more2
  14323. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14324. p
  14325. b
  14326. :more2
  14327. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14328. p
  14329. g
  14330. s/.\{148\}//
  14331. t delim
  14332. ' <conf$$subs.awk | sed '
  14333. /^[^""]/{
  14334. N
  14335. s/\n//
  14336. }
  14337. ' >>$CONFIG_STATUS || ac_write_fail=1
  14338. rm -f conf$$subs.awk
  14339. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14340. _ACAWK
  14341. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14342. for (key in S) S_is_set[key] = 1
  14343. FS = ""
  14344. }
  14345. {
  14346. line = $ 0
  14347. nfields = split(line, field, "@")
  14348. substed = 0
  14349. len = length(field[1])
  14350. for (i = 2; i < nfields; i++) {
  14351. key = field[i]
  14352. keylen = length(key)
  14353. if (S_is_set[key]) {
  14354. value = S[key]
  14355. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14356. len += length(value) + length(field[++i])
  14357. substed = 1
  14358. } else
  14359. len += 1 + keylen
  14360. }
  14361. print line
  14362. }
  14363. _ACAWK
  14364. _ACEOF
  14365. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14366. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14367. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14368. else
  14369. cat
  14370. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14371. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14372. _ACEOF
  14373. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14374. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14375. # trailing colons and then remove the whole line if VPATH becomes empty
  14376. # (actually we leave an empty line to preserve line numbers).
  14377. if test "x$srcdir" = x.; then
  14378. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14379. h
  14380. s///
  14381. s/^/:/
  14382. s/[ ]*$/:/
  14383. s/:\$(srcdir):/:/g
  14384. s/:\${srcdir}:/:/g
  14385. s/:@srcdir@:/:/g
  14386. s/^:*//
  14387. s/:*$//
  14388. x
  14389. s/\(=[ ]*\).*/\1/
  14390. G
  14391. s/\n//
  14392. s/^[^=]*=[ ]*$//
  14393. }'
  14394. fi
  14395. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14396. fi # test -n "$CONFIG_FILES"
  14397. # Set up the scripts for CONFIG_HEADERS section.
  14398. # No need to generate them if there are no CONFIG_HEADERS.
  14399. # This happens for instance with `./config.status Makefile'.
  14400. if test -n "$CONFIG_HEADERS"; then
  14401. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14402. BEGIN {
  14403. _ACEOF
  14404. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14405. # here-document in config.status, that substitutes the proper values into
  14406. # config.h.in to produce config.h.
  14407. # Create a delimiter string that does not exist in confdefs.h, to ease
  14408. # handling of long lines.
  14409. ac_delim='%!_!# '
  14410. for ac_last_try in false false :; do
  14411. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14412. if test -z "$ac_tt"; then
  14413. break
  14414. elif $ac_last_try; then
  14415. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14416. else
  14417. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14418. fi
  14419. done
  14420. # For the awk script, D is an array of macro values keyed by name,
  14421. # likewise P contains macro parameters if any. Preserve backslash
  14422. # newline sequences.
  14423. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14424. sed -n '
  14425. s/.\{148\}/&'"$ac_delim"'/g
  14426. t rset
  14427. :rset
  14428. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14429. t def
  14430. d
  14431. :def
  14432. s/\\$//
  14433. t bsnl
  14434. s/["\\]/\\&/g
  14435. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14436. D["\1"]=" \3"/p
  14437. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14438. d
  14439. :bsnl
  14440. s/["\\]/\\&/g
  14441. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14442. D["\1"]=" \3\\\\\\n"\\/p
  14443. t cont
  14444. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14445. t cont
  14446. d
  14447. :cont
  14448. n
  14449. s/.\{148\}/&'"$ac_delim"'/g
  14450. t clear
  14451. :clear
  14452. s/\\$//
  14453. t bsnlc
  14454. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14455. d
  14456. :bsnlc
  14457. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14458. b cont
  14459. ' <confdefs.h | sed '
  14460. s/'"$ac_delim"'/"\\\
  14461. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14462. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14463. for (key in D) D_is_set[key] = 1
  14464. FS = ""
  14465. }
  14466. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14467. line = \$ 0
  14468. split(line, arg, " ")
  14469. if (arg[1] == "#") {
  14470. defundef = arg[2]
  14471. mac1 = arg[3]
  14472. } else {
  14473. defundef = substr(arg[1], 2)
  14474. mac1 = arg[2]
  14475. }
  14476. split(mac1, mac2, "(") #)
  14477. macro = mac2[1]
  14478. prefix = substr(line, 1, index(line, defundef) - 1)
  14479. if (D_is_set[macro]) {
  14480. # Preserve the white space surrounding the "#".
  14481. print prefix "define", macro P[macro] D[macro]
  14482. next
  14483. } else {
  14484. # Replace #undef with comments. This is necessary, for example,
  14485. # in the case of _POSIX_SOURCE, which is predefined and required
  14486. # on some systems where configure will not decide to define it.
  14487. if (defundef == "undef") {
  14488. print "/*", prefix defundef, macro, "*/"
  14489. next
  14490. }
  14491. }
  14492. }
  14493. { print }
  14494. _ACAWK
  14495. _ACEOF
  14496. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14497. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14498. fi # test -n "$CONFIG_HEADERS"
  14499. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14500. shift
  14501. for ac_tag
  14502. do
  14503. case $ac_tag in
  14504. :[FHLC]) ac_mode=$ac_tag; continue;;
  14505. esac
  14506. case $ac_mode$ac_tag in
  14507. :[FHL]*:*);;
  14508. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14509. :[FH]-) ac_tag=-:-;;
  14510. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14511. esac
  14512. ac_save_IFS=$IFS
  14513. IFS=:
  14514. set x $ac_tag
  14515. IFS=$ac_save_IFS
  14516. shift
  14517. ac_file=$1
  14518. shift
  14519. case $ac_mode in
  14520. :L) ac_source=$1;;
  14521. :[FH])
  14522. ac_file_inputs=
  14523. for ac_f
  14524. do
  14525. case $ac_f in
  14526. -) ac_f="$ac_tmp/stdin";;
  14527. *) # Look for the file first in the build tree, then in the source tree
  14528. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14529. # because $ac_f cannot contain `:'.
  14530. test -f "$ac_f" ||
  14531. case $ac_f in
  14532. [\\/$]*) false;;
  14533. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14534. esac ||
  14535. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14536. esac
  14537. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14538. as_fn_append ac_file_inputs " '$ac_f'"
  14539. done
  14540. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14541. # use $as_me), people would be surprised to read:
  14542. # /* config.h. Generated by config.status. */
  14543. configure_input='Generated from '`
  14544. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14545. `' by configure.'
  14546. if test x"$ac_file" != x-; then
  14547. configure_input="$ac_file. $configure_input"
  14548. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14549. $as_echo "$as_me: creating $ac_file" >&6;}
  14550. fi
  14551. # Neutralize special characters interpreted by sed in replacement strings.
  14552. case $configure_input in #(
  14553. *\&* | *\|* | *\\* )
  14554. ac_sed_conf_input=`$as_echo "$configure_input" |
  14555. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14556. *) ac_sed_conf_input=$configure_input;;
  14557. esac
  14558. case $ac_tag in
  14559. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14560. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14561. esac
  14562. ;;
  14563. esac
  14564. ac_dir=`$as_dirname -- "$ac_file" ||
  14565. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14566. X"$ac_file" : 'X\(//\)[^/]' \| \
  14567. X"$ac_file" : 'X\(//\)$' \| \
  14568. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14569. $as_echo X"$ac_file" |
  14570. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14571. s//\1/
  14572. q
  14573. }
  14574. /^X\(\/\/\)[^/].*/{
  14575. s//\1/
  14576. q
  14577. }
  14578. /^X\(\/\/\)$/{
  14579. s//\1/
  14580. q
  14581. }
  14582. /^X\(\/\).*/{
  14583. s//\1/
  14584. q
  14585. }
  14586. s/.*/./; q'`
  14587. as_dir="$ac_dir"; as_fn_mkdir_p
  14588. ac_builddir=.
  14589. case "$ac_dir" in
  14590. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14591. *)
  14592. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14593. # A ".." for each directory in $ac_dir_suffix.
  14594. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14595. case $ac_top_builddir_sub in
  14596. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14597. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14598. esac ;;
  14599. esac
  14600. ac_abs_top_builddir=$ac_pwd
  14601. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14602. # for backward compatibility:
  14603. ac_top_builddir=$ac_top_build_prefix
  14604. case $srcdir in
  14605. .) # We are building in place.
  14606. ac_srcdir=.
  14607. ac_top_srcdir=$ac_top_builddir_sub
  14608. ac_abs_top_srcdir=$ac_pwd ;;
  14609. [\\/]* | ?:[\\/]* ) # Absolute name.
  14610. ac_srcdir=$srcdir$ac_dir_suffix;
  14611. ac_top_srcdir=$srcdir
  14612. ac_abs_top_srcdir=$srcdir ;;
  14613. *) # Relative name.
  14614. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14615. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14616. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14617. esac
  14618. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14619. case $ac_mode in
  14620. :F)
  14621. #
  14622. # CONFIG_FILE
  14623. #
  14624. case $INSTALL in
  14625. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14626. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14627. esac
  14628. ac_MKDIR_P=$MKDIR_P
  14629. case $MKDIR_P in
  14630. [\\/$]* | ?:[\\/]* ) ;;
  14631. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14632. esac
  14633. _ACEOF
  14634. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14635. # If the template does not know about datarootdir, expand it.
  14636. # FIXME: This hack should be removed a few years after 2.60.
  14637. ac_datarootdir_hack=; ac_datarootdir_seen=
  14638. ac_sed_dataroot='
  14639. /datarootdir/ {
  14640. p
  14641. q
  14642. }
  14643. /@datadir@/p
  14644. /@docdir@/p
  14645. /@infodir@/p
  14646. /@localedir@/p
  14647. /@mandir@/p'
  14648. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14649. *datarootdir*) ac_datarootdir_seen=yes;;
  14650. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14652. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14653. _ACEOF
  14654. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14655. ac_datarootdir_hack='
  14656. s&@datadir@&$datadir&g
  14657. s&@docdir@&$docdir&g
  14658. s&@infodir@&$infodir&g
  14659. s&@localedir@&$localedir&g
  14660. s&@mandir@&$mandir&g
  14661. s&\\\${datarootdir}&$datarootdir&g' ;;
  14662. esac
  14663. _ACEOF
  14664. # Neutralize VPATH when `$srcdir' = `.'.
  14665. # Shell code in configure.ac might set extrasub.
  14666. # FIXME: do we really want to maintain this feature?
  14667. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14668. ac_sed_extra="$ac_vpsub
  14669. $extrasub
  14670. _ACEOF
  14671. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14672. :t
  14673. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14674. s|@configure_input@|$ac_sed_conf_input|;t t
  14675. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14676. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14677. s&@srcdir@&$ac_srcdir&;t t
  14678. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14679. s&@top_srcdir@&$ac_top_srcdir&;t t
  14680. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14681. s&@builddir@&$ac_builddir&;t t
  14682. s&@abs_builddir@&$ac_abs_builddir&;t t
  14683. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14684. s&@INSTALL@&$ac_INSTALL&;t t
  14685. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14686. $ac_datarootdir_hack
  14687. "
  14688. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14689. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14690. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14691. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14692. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14693. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14694. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14695. which seems to be undefined. Please make sure it is defined" >&5
  14696. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14697. which seems to be undefined. Please make sure it is defined" >&2;}
  14698. rm -f "$ac_tmp/stdin"
  14699. case $ac_file in
  14700. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14701. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14702. esac \
  14703. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14704. ;;
  14705. :H)
  14706. #
  14707. # CONFIG_HEADER
  14708. #
  14709. if test x"$ac_file" != x-; then
  14710. {
  14711. $as_echo "/* $configure_input */" \
  14712. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14713. } >"$ac_tmp/config.h" \
  14714. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14715. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14716. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14717. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14718. else
  14719. rm -f "$ac_file"
  14720. mv "$ac_tmp/config.h" "$ac_file" \
  14721. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14722. fi
  14723. else
  14724. $as_echo "/* $configure_input */" \
  14725. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14726. || as_fn_error $? "could not create -" "$LINENO" 5
  14727. fi
  14728. # Compute "$ac_file"'s index in $config_headers.
  14729. _am_arg="$ac_file"
  14730. _am_stamp_count=1
  14731. for _am_header in $config_headers :; do
  14732. case $_am_header in
  14733. $_am_arg | $_am_arg:* )
  14734. break ;;
  14735. * )
  14736. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14737. esac
  14738. done
  14739. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14740. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14741. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14742. X"$_am_arg" : 'X\(//\)$' \| \
  14743. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14744. $as_echo X"$_am_arg" |
  14745. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14746. s//\1/
  14747. q
  14748. }
  14749. /^X\(\/\/\)[^/].*/{
  14750. s//\1/
  14751. q
  14752. }
  14753. /^X\(\/\/\)$/{
  14754. s//\1/
  14755. q
  14756. }
  14757. /^X\(\/\).*/{
  14758. s//\1/
  14759. q
  14760. }
  14761. s/.*/./; q'`/stamp-h$_am_stamp_count
  14762. ;;
  14763. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14764. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14765. ;;
  14766. esac
  14767. case $ac_file$ac_mode in
  14768. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14769. # Older Autoconf quotes --file arguments for eval, but not when files
  14770. # are listed without --file. Let's play safe and only enable the eval
  14771. # if we detect the quoting.
  14772. case $CONFIG_FILES in
  14773. *\'*) eval set x "$CONFIG_FILES" ;;
  14774. *) set x $CONFIG_FILES ;;
  14775. esac
  14776. shift
  14777. for mf
  14778. do
  14779. # Strip MF so we end up with the name of the file.
  14780. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14781. # Check whether this is an Automake generated Makefile or not.
  14782. # We used to match only the files named 'Makefile.in', but
  14783. # some people rename them; so instead we look at the file content.
  14784. # Grep'ing the first line is not enough: some people post-process
  14785. # each Makefile.in and add a new line on top of each file to say so.
  14786. # Grep'ing the whole file is not good either: AIX grep has a line
  14787. # limit of 2048, but all sed's we know have understand at least 4000.
  14788. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14789. dirpart=`$as_dirname -- "$mf" ||
  14790. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14791. X"$mf" : 'X\(//\)[^/]' \| \
  14792. X"$mf" : 'X\(//\)$' \| \
  14793. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14794. $as_echo X"$mf" |
  14795. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14796. s//\1/
  14797. q
  14798. }
  14799. /^X\(\/\/\)[^/].*/{
  14800. s//\1/
  14801. q
  14802. }
  14803. /^X\(\/\/\)$/{
  14804. s//\1/
  14805. q
  14806. }
  14807. /^X\(\/\).*/{
  14808. s//\1/
  14809. q
  14810. }
  14811. s/.*/./; q'`
  14812. else
  14813. continue
  14814. fi
  14815. # Extract the definition of DEPDIR, am__include, and am__quote
  14816. # from the Makefile without running 'make'.
  14817. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14818. test -z "$DEPDIR" && continue
  14819. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14820. test -z "$am__include" && continue
  14821. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14822. # Find all dependency output files, they are included files with
  14823. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14824. # simplest approach to changing $(DEPDIR) to its actual value in the
  14825. # expansion.
  14826. for file in `sed -n "
  14827. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14828. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  14829. # Make sure the directory exists.
  14830. test -f "$dirpart/$file" && continue
  14831. fdir=`$as_dirname -- "$file" ||
  14832. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14833. X"$file" : 'X\(//\)[^/]' \| \
  14834. X"$file" : 'X\(//\)$' \| \
  14835. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14836. $as_echo X"$file" |
  14837. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14838. s//\1/
  14839. q
  14840. }
  14841. /^X\(\/\/\)[^/].*/{
  14842. s//\1/
  14843. q
  14844. }
  14845. /^X\(\/\/\)$/{
  14846. s//\1/
  14847. q
  14848. }
  14849. /^X\(\/\).*/{
  14850. s//\1/
  14851. q
  14852. }
  14853. s/.*/./; q'`
  14854. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14855. # echo "creating $dirpart/$file"
  14856. echo '# dummy' > "$dirpart/$file"
  14857. done
  14858. done
  14859. }
  14860. ;;
  14861. "libtool":C)
  14862. # See if we are running on zsh, and set the options which allow our
  14863. # commands through without removal of \ escapes.
  14864. if test -n "${ZSH_VERSION+set}" ; then
  14865. setopt NO_GLOB_SUBST
  14866. fi
  14867. cfgfile="${ofile}T"
  14868. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14869. $RM "$cfgfile"
  14870. cat <<_LT_EOF >> "$cfgfile"
  14871. #! $SHELL
  14872. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14873. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14874. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14875. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14876. #
  14877. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14878. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  14879. # Foundation, Inc.
  14880. # Written by Gordon Matzigkeit, 1996
  14881. #
  14882. # This file is part of GNU Libtool.
  14883. #
  14884. # GNU Libtool is free software; you can redistribute it and/or
  14885. # modify it under the terms of the GNU General Public License as
  14886. # published by the Free Software Foundation; either version 2 of
  14887. # the License, or (at your option) any later version.
  14888. #
  14889. # As a special exception to the GNU General Public License,
  14890. # if you distribute this file as part of a program or library that
  14891. # is built using GNU Libtool, you may include this file under the
  14892. # same distribution terms that you use for the rest of that program.
  14893. #
  14894. # GNU Libtool is distributed in the hope that it will be useful,
  14895. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14896. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14897. # GNU General Public License for more details.
  14898. #
  14899. # You should have received a copy of the GNU General Public License
  14900. # along with GNU Libtool; see the file COPYING. If not, a copy
  14901. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14902. # obtained by writing to the Free Software Foundation, Inc.,
  14903. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14904. # The names of the tagged configurations supported by this script.
  14905. available_tags="CXX "
  14906. # ### BEGIN LIBTOOL CONFIG
  14907. # Whether or not to build static libraries.
  14908. build_old_libs=$enable_static
  14909. # Which release of libtool.m4 was used?
  14910. macro_version=$macro_version
  14911. macro_revision=$macro_revision
  14912. # Whether or not to build shared libraries.
  14913. build_libtool_libs=$enable_shared
  14914. # What type of objects to build.
  14915. pic_mode=$pic_mode
  14916. # Whether or not to optimize for fast installation.
  14917. fast_install=$enable_fast_install
  14918. # Shell to use when invoking shell scripts.
  14919. SHELL=$lt_SHELL
  14920. # An echo program that protects backslashes.
  14921. ECHO=$lt_ECHO
  14922. # The PATH separator for the build system.
  14923. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  14924. # The host system.
  14925. host_alias=$host_alias
  14926. host=$host
  14927. host_os=$host_os
  14928. # The build system.
  14929. build_alias=$build_alias
  14930. build=$build
  14931. build_os=$build_os
  14932. # A sed program that does not truncate output.
  14933. SED=$lt_SED
  14934. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14935. Xsed="\$SED -e 1s/^X//"
  14936. # A grep program that handles long lines.
  14937. GREP=$lt_GREP
  14938. # An ERE matcher.
  14939. EGREP=$lt_EGREP
  14940. # A literal string matcher.
  14941. FGREP=$lt_FGREP
  14942. # A BSD- or MS-compatible name lister.
  14943. NM=$lt_NM
  14944. # Whether we need soft or hard links.
  14945. LN_S=$lt_LN_S
  14946. # What is the maximum length of a command?
  14947. max_cmd_len=$max_cmd_len
  14948. # Object file suffix (normally "o").
  14949. objext=$ac_objext
  14950. # Executable file suffix (normally "").
  14951. exeext=$exeext
  14952. # whether the shell understands "unset".
  14953. lt_unset=$lt_unset
  14954. # turn spaces into newlines.
  14955. SP2NL=$lt_lt_SP2NL
  14956. # turn newlines into spaces.
  14957. NL2SP=$lt_lt_NL2SP
  14958. # convert \$build file names to \$host format.
  14959. to_host_file_cmd=$lt_cv_to_host_file_cmd
  14960. # convert \$build files to toolchain format.
  14961. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  14962. # An object symbol dumper.
  14963. OBJDUMP=$lt_OBJDUMP
  14964. # Method to check whether dependent libraries are shared objects.
  14965. deplibs_check_method=$lt_deplibs_check_method
  14966. # Command to use when deplibs_check_method = "file_magic".
  14967. file_magic_cmd=$lt_file_magic_cmd
  14968. # How to find potential files when deplibs_check_method = "file_magic".
  14969. file_magic_glob=$lt_file_magic_glob
  14970. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  14971. want_nocaseglob=$lt_want_nocaseglob
  14972. # DLL creation program.
  14973. DLLTOOL=$lt_DLLTOOL
  14974. # Command to associate shared and link libraries.
  14975. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  14976. # The archiver.
  14977. AR=$lt_AR
  14978. # Flags to create an archive.
  14979. AR_FLAGS=$lt_AR_FLAGS
  14980. # How to feed a file listing to the archiver.
  14981. archiver_list_spec=$lt_archiver_list_spec
  14982. # A symbol stripping program.
  14983. STRIP=$lt_STRIP
  14984. # Commands used to install an old-style archive.
  14985. RANLIB=$lt_RANLIB
  14986. old_postinstall_cmds=$lt_old_postinstall_cmds
  14987. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14988. # Whether to use a lock for old archive extraction.
  14989. lock_old_archive_extraction=$lock_old_archive_extraction
  14990. # A C compiler.
  14991. LTCC=$lt_CC
  14992. # LTCC compiler flags.
  14993. LTCFLAGS=$lt_CFLAGS
  14994. # Take the output of nm and produce a listing of raw symbols and C names.
  14995. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14996. # Transform the output of nm in a proper C declaration.
  14997. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14998. # Transform the output of nm in a C name address pair.
  14999. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15000. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15001. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15002. # Specify filename containing input files for \$NM.
  15003. nm_file_list_spec=$lt_nm_file_list_spec
  15004. # The root where to search for dependent libraries,and in which our libraries should be installed.
  15005. lt_sysroot=$lt_sysroot
  15006. # The name of the directory that contains temporary libtool files.
  15007. objdir=$objdir
  15008. # Used to examine libraries when file_magic_cmd begins with "file".
  15009. MAGIC_CMD=$MAGIC_CMD
  15010. # Must we lock files when doing compilation?
  15011. need_locks=$lt_need_locks
  15012. # Manifest tool.
  15013. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15014. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15015. DSYMUTIL=$lt_DSYMUTIL
  15016. # Tool to change global to local symbols on Mac OS X.
  15017. NMEDIT=$lt_NMEDIT
  15018. # Tool to manipulate fat objects and archives on Mac OS X.
  15019. LIPO=$lt_LIPO
  15020. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15021. OTOOL=$lt_OTOOL
  15022. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15023. OTOOL64=$lt_OTOOL64
  15024. # Old archive suffix (normally "a").
  15025. libext=$libext
  15026. # Shared library suffix (normally ".so").
  15027. shrext_cmds=$lt_shrext_cmds
  15028. # The commands to extract the exported symbol list from a shared archive.
  15029. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15030. # Variables whose values should be saved in libtool wrapper scripts and
  15031. # restored at link time.
  15032. variables_saved_for_relink=$lt_variables_saved_for_relink
  15033. # Do we need the "lib" prefix for modules?
  15034. need_lib_prefix=$need_lib_prefix
  15035. # Do we need a version for libraries?
  15036. need_version=$need_version
  15037. # Library versioning type.
  15038. version_type=$version_type
  15039. # Shared library runtime path variable.
  15040. runpath_var=$runpath_var
  15041. # Shared library path variable.
  15042. shlibpath_var=$shlibpath_var
  15043. # Is shlibpath searched before the hard-coded library search path?
  15044. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15045. # Format of library name prefix.
  15046. libname_spec=$lt_libname_spec
  15047. # List of archive names. First name is the real one, the rest are links.
  15048. # The last name is the one that the linker finds with -lNAME
  15049. library_names_spec=$lt_library_names_spec
  15050. # The coded name of the library, if different from the real name.
  15051. soname_spec=$lt_soname_spec
  15052. # Permission mode override for installation of shared libraries.
  15053. install_override_mode=$lt_install_override_mode
  15054. # Command to use after installation of a shared archive.
  15055. postinstall_cmds=$lt_postinstall_cmds
  15056. # Command to use after uninstallation of a shared archive.
  15057. postuninstall_cmds=$lt_postuninstall_cmds
  15058. # Commands used to finish a libtool library installation in a directory.
  15059. finish_cmds=$lt_finish_cmds
  15060. # As "finish_cmds", except a single script fragment to be evaled but
  15061. # not shown.
  15062. finish_eval=$lt_finish_eval
  15063. # Whether we should hardcode library paths into libraries.
  15064. hardcode_into_libs=$hardcode_into_libs
  15065. # Compile-time system search path for libraries.
  15066. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15067. # Run-time system search path for libraries.
  15068. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15069. # Whether dlopen is supported.
  15070. dlopen_support=$enable_dlopen
  15071. # Whether dlopen of programs is supported.
  15072. dlopen_self=$enable_dlopen_self
  15073. # Whether dlopen of statically linked programs is supported.
  15074. dlopen_self_static=$enable_dlopen_self_static
  15075. # Commands to strip libraries.
  15076. old_striplib=$lt_old_striplib
  15077. striplib=$lt_striplib
  15078. # The linker used to build libraries.
  15079. LD=$lt_LD
  15080. # How to create reloadable object files.
  15081. reload_flag=$lt_reload_flag
  15082. reload_cmds=$lt_reload_cmds
  15083. # Commands used to build an old-style archive.
  15084. old_archive_cmds=$lt_old_archive_cmds
  15085. # A language specific compiler.
  15086. CC=$lt_compiler
  15087. # Is the compiler the GNU compiler?
  15088. with_gcc=$GCC
  15089. # Compiler flag to turn off builtin functions.
  15090. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15091. # Additional compiler flags for building library objects.
  15092. pic_flag=$lt_lt_prog_compiler_pic
  15093. # How to pass a linker flag through the compiler.
  15094. wl=$lt_lt_prog_compiler_wl
  15095. # Compiler flag to prevent dynamic linking.
  15096. link_static_flag=$lt_lt_prog_compiler_static
  15097. # Does compiler simultaneously support -c and -o options?
  15098. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15099. # Whether or not to add -lc for building shared libraries.
  15100. build_libtool_need_lc=$archive_cmds_need_lc
  15101. # Whether or not to disallow shared libs when runtime libs are static.
  15102. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15103. # Compiler flag to allow reflexive dlopens.
  15104. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15105. # Compiler flag to generate shared objects directly from archives.
  15106. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15107. # Whether the compiler copes with passing no objects directly.
  15108. compiler_needs_object=$lt_compiler_needs_object
  15109. # Create an old-style archive from a shared archive.
  15110. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15111. # Create a temporary old-style archive to link instead of a shared archive.
  15112. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15113. # Commands used to build a shared archive.
  15114. archive_cmds=$lt_archive_cmds
  15115. archive_expsym_cmds=$lt_archive_expsym_cmds
  15116. # Commands used to build a loadable module if different from building
  15117. # a shared archive.
  15118. module_cmds=$lt_module_cmds
  15119. module_expsym_cmds=$lt_module_expsym_cmds
  15120. # Whether we are building with GNU ld or not.
  15121. with_gnu_ld=$lt_with_gnu_ld
  15122. # Flag that allows shared libraries with undefined symbols to be built.
  15123. allow_undefined_flag=$lt_allow_undefined_flag
  15124. # Flag that enforces no undefined symbols.
  15125. no_undefined_flag=$lt_no_undefined_flag
  15126. # Flag to hardcode \$libdir into a binary during linking.
  15127. # This must work even if \$libdir does not exist
  15128. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15129. # Whether we need a single "-rpath" flag with a separated argument.
  15130. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15131. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15132. # DIR into the resulting binary.
  15133. hardcode_direct=$hardcode_direct
  15134. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15135. # DIR into the resulting binary and the resulting library dependency is
  15136. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15137. # library is relocated.
  15138. hardcode_direct_absolute=$hardcode_direct_absolute
  15139. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15140. # into the resulting binary.
  15141. hardcode_minus_L=$hardcode_minus_L
  15142. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15143. # into the resulting binary.
  15144. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15145. # Set to "yes" if building a shared library automatically hardcodes DIR
  15146. # into the library and all subsequent libraries and executables linked
  15147. # against it.
  15148. hardcode_automatic=$hardcode_automatic
  15149. # Set to yes if linker adds runtime paths of dependent libraries
  15150. # to runtime path list.
  15151. inherit_rpath=$inherit_rpath
  15152. # Whether libtool must link a program against all its dependency libraries.
  15153. link_all_deplibs=$link_all_deplibs
  15154. # Set to "yes" if exported symbols are required.
  15155. always_export_symbols=$always_export_symbols
  15156. # The commands to list exported symbols.
  15157. export_symbols_cmds=$lt_export_symbols_cmds
  15158. # Symbols that should not be listed in the preloaded symbols.
  15159. exclude_expsyms=$lt_exclude_expsyms
  15160. # Symbols that must always be exported.
  15161. include_expsyms=$lt_include_expsyms
  15162. # Commands necessary for linking programs (against libraries) with templates.
  15163. prelink_cmds=$lt_prelink_cmds
  15164. # Commands necessary for finishing linking programs.
  15165. postlink_cmds=$lt_postlink_cmds
  15166. # Specify filename containing input files.
  15167. file_list_spec=$lt_file_list_spec
  15168. # How to hardcode a shared library path into an executable.
  15169. hardcode_action=$hardcode_action
  15170. # The directories searched by this compiler when creating a shared library.
  15171. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15172. # Dependencies to place before and after the objects being linked to
  15173. # create a shared library.
  15174. predep_objects=$lt_predep_objects
  15175. postdep_objects=$lt_postdep_objects
  15176. predeps=$lt_predeps
  15177. postdeps=$lt_postdeps
  15178. # The library search path used internally by the compiler when linking
  15179. # a shared library.
  15180. compiler_lib_search_path=$lt_compiler_lib_search_path
  15181. # ### END LIBTOOL CONFIG
  15182. _LT_EOF
  15183. case $host_os in
  15184. aix3*)
  15185. cat <<\_LT_EOF >> "$cfgfile"
  15186. # AIX sometimes has problems with the GCC collect2 program. For some
  15187. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15188. # vanish in a puff of smoke.
  15189. if test "X${COLLECT_NAMES+set}" != Xset; then
  15190. COLLECT_NAMES=
  15191. export COLLECT_NAMES
  15192. fi
  15193. _LT_EOF
  15194. ;;
  15195. esac
  15196. ltmain="$ac_aux_dir/ltmain.sh"
  15197. # We use sed instead of cat because bash on DJGPP gets confused if
  15198. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15199. # text mode, it properly converts lines to CR/LF. This bash problem
  15200. # is reportedly fixed, but why not run on old versions too?
  15201. sed '$q' "$ltmain" >> "$cfgfile" \
  15202. || (rm -f "$cfgfile"; exit 1)
  15203. if test x"$xsi_shell" = xyes; then
  15204. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  15205. func_dirname ()\
  15206. {\
  15207. \ case ${1} in\
  15208. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15209. \ * ) func_dirname_result="${3}" ;;\
  15210. \ esac\
  15211. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  15212. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15213. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15214. test 0 -eq $? || _lt_function_replace_fail=:
  15215. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  15216. func_basename ()\
  15217. {\
  15218. \ func_basename_result="${1##*/}"\
  15219. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15220. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15221. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15222. test 0 -eq $? || _lt_function_replace_fail=:
  15223. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  15224. func_dirname_and_basename ()\
  15225. {\
  15226. \ case ${1} in\
  15227. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15228. \ * ) func_dirname_result="${3}" ;;\
  15229. \ esac\
  15230. \ func_basename_result="${1##*/}"\
  15231. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15232. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15233. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15234. test 0 -eq $? || _lt_function_replace_fail=:
  15235. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  15236. func_stripname ()\
  15237. {\
  15238. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  15239. \ # positional parameters, so assign one to ordinary parameter first.\
  15240. \ func_stripname_result=${3}\
  15241. \ func_stripname_result=${func_stripname_result#"${1}"}\
  15242. \ func_stripname_result=${func_stripname_result%"${2}"}\
  15243. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  15244. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15245. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15246. test 0 -eq $? || _lt_function_replace_fail=:
  15247. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  15248. func_split_long_opt ()\
  15249. {\
  15250. \ func_split_long_opt_name=${1%%=*}\
  15251. \ func_split_long_opt_arg=${1#*=}\
  15252. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15253. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15254. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15255. test 0 -eq $? || _lt_function_replace_fail=:
  15256. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  15257. func_split_short_opt ()\
  15258. {\
  15259. \ func_split_short_opt_arg=${1#??}\
  15260. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  15261. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15262. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15263. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15264. test 0 -eq $? || _lt_function_replace_fail=:
  15265. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  15266. func_lo2o ()\
  15267. {\
  15268. \ case ${1} in\
  15269. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  15270. \ *) func_lo2o_result=${1} ;;\
  15271. \ esac\
  15272. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  15273. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15274. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15275. test 0 -eq $? || _lt_function_replace_fail=:
  15276. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  15277. func_xform ()\
  15278. {\
  15279. func_xform_result=${1%.*}.lo\
  15280. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  15281. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15282. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15283. test 0 -eq $? || _lt_function_replace_fail=:
  15284. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  15285. func_arith ()\
  15286. {\
  15287. func_arith_result=$(( $* ))\
  15288. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  15289. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15290. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15291. test 0 -eq $? || _lt_function_replace_fail=:
  15292. sed -e '/^func_len ()$/,/^} # func_len /c\
  15293. func_len ()\
  15294. {\
  15295. func_len_result=${#1}\
  15296. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  15297. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15298. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15299. test 0 -eq $? || _lt_function_replace_fail=:
  15300. fi
  15301. if test x"$lt_shell_append" = xyes; then
  15302. sed -e '/^func_append ()$/,/^} # func_append /c\
  15303. func_append ()\
  15304. {\
  15305. eval "${1}+=\\${2}"\
  15306. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  15307. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15308. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15309. test 0 -eq $? || _lt_function_replace_fail=:
  15310. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  15311. func_append_quoted ()\
  15312. {\
  15313. \ func_quote_for_eval "${2}"\
  15314. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  15315. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  15316. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15317. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15318. test 0 -eq $? || _lt_function_replace_fail=:
  15319. # Save a `func_append' function call where possible by direct use of '+='
  15320. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  15321. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15322. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15323. test 0 -eq $? || _lt_function_replace_fail=:
  15324. else
  15325. # Save a `func_append' function call even when '+=' is not available
  15326. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  15327. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15328. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15329. test 0 -eq $? || _lt_function_replace_fail=:
  15330. fi
  15331. if test x"$_lt_function_replace_fail" = x":"; then
  15332. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  15333. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  15334. fi
  15335. mv -f "$cfgfile" "$ofile" ||
  15336. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15337. chmod +x "$ofile"
  15338. cat <<_LT_EOF >> "$ofile"
  15339. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15340. # The linker used to build libraries.
  15341. LD=$lt_LD_CXX
  15342. # How to create reloadable object files.
  15343. reload_flag=$lt_reload_flag_CXX
  15344. reload_cmds=$lt_reload_cmds_CXX
  15345. # Commands used to build an old-style archive.
  15346. old_archive_cmds=$lt_old_archive_cmds_CXX
  15347. # A language specific compiler.
  15348. CC=$lt_compiler_CXX
  15349. # Is the compiler the GNU compiler?
  15350. with_gcc=$GCC_CXX
  15351. # Compiler flag to turn off builtin functions.
  15352. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15353. # Additional compiler flags for building library objects.
  15354. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15355. # How to pass a linker flag through the compiler.
  15356. wl=$lt_lt_prog_compiler_wl_CXX
  15357. # Compiler flag to prevent dynamic linking.
  15358. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15359. # Does compiler simultaneously support -c and -o options?
  15360. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15361. # Whether or not to add -lc for building shared libraries.
  15362. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15363. # Whether or not to disallow shared libs when runtime libs are static.
  15364. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15365. # Compiler flag to allow reflexive dlopens.
  15366. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15367. # Compiler flag to generate shared objects directly from archives.
  15368. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15369. # Whether the compiler copes with passing no objects directly.
  15370. compiler_needs_object=$lt_compiler_needs_object_CXX
  15371. # Create an old-style archive from a shared archive.
  15372. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15373. # Create a temporary old-style archive to link instead of a shared archive.
  15374. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15375. # Commands used to build a shared archive.
  15376. archive_cmds=$lt_archive_cmds_CXX
  15377. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15378. # Commands used to build a loadable module if different from building
  15379. # a shared archive.
  15380. module_cmds=$lt_module_cmds_CXX
  15381. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15382. # Whether we are building with GNU ld or not.
  15383. with_gnu_ld=$lt_with_gnu_ld_CXX
  15384. # Flag that allows shared libraries with undefined symbols to be built.
  15385. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15386. # Flag that enforces no undefined symbols.
  15387. no_undefined_flag=$lt_no_undefined_flag_CXX
  15388. # Flag to hardcode \$libdir into a binary during linking.
  15389. # This must work even if \$libdir does not exist
  15390. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15391. # Whether we need a single "-rpath" flag with a separated argument.
  15392. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15393. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15394. # DIR into the resulting binary.
  15395. hardcode_direct=$hardcode_direct_CXX
  15396. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15397. # DIR into the resulting binary and the resulting library dependency is
  15398. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15399. # library is relocated.
  15400. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15401. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15402. # into the resulting binary.
  15403. hardcode_minus_L=$hardcode_minus_L_CXX
  15404. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15405. # into the resulting binary.
  15406. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15407. # Set to "yes" if building a shared library automatically hardcodes DIR
  15408. # into the library and all subsequent libraries and executables linked
  15409. # against it.
  15410. hardcode_automatic=$hardcode_automatic_CXX
  15411. # Set to yes if linker adds runtime paths of dependent libraries
  15412. # to runtime path list.
  15413. inherit_rpath=$inherit_rpath_CXX
  15414. # Whether libtool must link a program against all its dependency libraries.
  15415. link_all_deplibs=$link_all_deplibs_CXX
  15416. # Set to "yes" if exported symbols are required.
  15417. always_export_symbols=$always_export_symbols_CXX
  15418. # The commands to list exported symbols.
  15419. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15420. # Symbols that should not be listed in the preloaded symbols.
  15421. exclude_expsyms=$lt_exclude_expsyms_CXX
  15422. # Symbols that must always be exported.
  15423. include_expsyms=$lt_include_expsyms_CXX
  15424. # Commands necessary for linking programs (against libraries) with templates.
  15425. prelink_cmds=$lt_prelink_cmds_CXX
  15426. # Commands necessary for finishing linking programs.
  15427. postlink_cmds=$lt_postlink_cmds_CXX
  15428. # Specify filename containing input files.
  15429. file_list_spec=$lt_file_list_spec_CXX
  15430. # How to hardcode a shared library path into an executable.
  15431. hardcode_action=$hardcode_action_CXX
  15432. # The directories searched by this compiler when creating a shared library.
  15433. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15434. # Dependencies to place before and after the objects being linked to
  15435. # create a shared library.
  15436. predep_objects=$lt_predep_objects_CXX
  15437. postdep_objects=$lt_postdep_objects_CXX
  15438. predeps=$lt_predeps_CXX
  15439. postdeps=$lt_postdeps_CXX
  15440. # The library search path used internally by the compiler when linking
  15441. # a shared library.
  15442. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15443. # ### END LIBTOOL TAG CONFIG: CXX
  15444. _LT_EOF
  15445. ;;
  15446. esac
  15447. done # for ac_tag
  15448. as_fn_exit 0
  15449. _ACEOF
  15450. ac_clean_files=$ac_clean_files_save
  15451. test $ac_write_fail = 0 ||
  15452. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15453. # configure is writing to config.log, and then calls config.status.
  15454. # config.status does its own redirection, appending to config.log.
  15455. # Unfortunately, on DOS this fails, as config.log is still kept open
  15456. # by configure, so config.status won't be able to write to it; its
  15457. # output is simply discarded. So we exec the FD to /dev/null,
  15458. # effectively closing config.log, so it can be properly (re)opened and
  15459. # appended to by config.status. When coming back to configure, we
  15460. # need to make the FD available again.
  15461. if test "$no_create" != yes; then
  15462. ac_cs_success=:
  15463. ac_config_status_args=
  15464. test "$silent" = yes &&
  15465. ac_config_status_args="$ac_config_status_args --quiet"
  15466. exec 5>/dev/null
  15467. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15468. exec 5>>config.log
  15469. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15470. # would make configure fail if this is the last instruction.
  15471. $ac_cs_success || as_fn_exit 1
  15472. fi
  15473. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15475. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15476. fi
  15477. chmod a+x gmm-config
  15478. chmod a+x gmm-config