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.

17833 lines
538 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  127. emulate sh
  128. NULLCMD=:
  129. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  130. # is contrary to our usage. Disable this feature.
  131. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  132. setopt NO_GLOB_SUBST
  133. else
  134. case \`(set -o) 2>/dev/null\` in #(
  135. *posix*) :
  136. set -o posix ;; #(
  137. *) :
  138. ;;
  139. esac
  140. fi
  141. "
  142. as_required="as_fn_return () { (exit \$1); }
  143. as_fn_success () { as_fn_return 0; }
  144. as_fn_failure () { as_fn_return 1; }
  145. as_fn_ret_success () { return 0; }
  146. as_fn_ret_failure () { return 1; }
  147. exitcode=0
  148. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  149. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  150. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  151. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  152. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  153. else
  154. exitcode=1; echo positional parameters were not saved.
  155. fi
  156. test x\$exitcode = x0 || exit 1"
  157. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  158. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  159. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  160. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  161. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  162. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  163. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. PATH=/empty FPATH=/empty; export PATH FPATH
  166. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  167. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  168. test \$(( 1 + 1 )) = 2 || exit 1"
  169. if (eval "$as_required") 2>/dev/null; then :
  170. as_have_required=yes
  171. else
  172. as_have_required=no
  173. fi
  174. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  175. else
  176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  177. as_found=false
  178. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  179. do
  180. IFS=$as_save_IFS
  181. test -z "$as_dir" && as_dir=.
  182. as_found=:
  183. case $as_dir in #(
  184. /*)
  185. for as_base in sh bash ksh sh5; do
  186. # Try only shells that exist, to save several forks.
  187. as_shell=$as_dir/$as_base
  188. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  189. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  190. CONFIG_SHELL=$as_shell as_have_required=yes
  191. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. break 2
  193. fi
  194. fi
  195. done;;
  196. esac
  197. as_found=false
  198. done
  199. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  200. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  201. CONFIG_SHELL=$SHELL as_have_required=yes
  202. fi; }
  203. IFS=$as_save_IFS
  204. if test "x$CONFIG_SHELL" != x; then :
  205. # We cannot yet assume a decent shell, so we have to provide a
  206. # neutralization value for shells without unset; and this also
  207. # works around shells that cannot unset nonexistent variables.
  208. # Preserve -v and -x to the replacement shell.
  209. BASH_ENV=/dev/null
  210. ENV=/dev/null
  211. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  212. export CONFIG_SHELL
  213. case $- in # ((((
  214. *v*x* | *x*v* ) as_opts=-vx ;;
  215. *v* ) as_opts=-v ;;
  216. *x* ) as_opts=-x ;;
  217. * ) as_opts= ;;
  218. esac
  219. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  220. fi
  221. if test x$as_have_required = xno; then :
  222. $as_echo "$0: This script requires a shell more modern than all"
  223. $as_echo "$0: the shells that I found on your system."
  224. if test x${ZSH_VERSION+set} = xset ; then
  225. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  226. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  227. else
  228. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  229. $0: including any error possibly output before this
  230. $0: message. Then install a modern shell, or manually run
  231. $0: the script under such a shell if you do have one."
  232. fi
  233. exit 1
  234. fi
  235. fi
  236. fi
  237. SHELL=${CONFIG_SHELL-/bin/sh}
  238. export SHELL
  239. # Unset more variables known to interfere with behavior of common tools.
  240. CLICOLOR_FORCE= GREP_OPTIONS=
  241. unset CLICOLOR_FORCE GREP_OPTIONS
  242. ## --------------------- ##
  243. ## M4sh Shell Functions. ##
  244. ## --------------------- ##
  245. # as_fn_unset VAR
  246. # ---------------
  247. # Portably unset VAR.
  248. as_fn_unset ()
  249. {
  250. { eval $1=; unset $1;}
  251. }
  252. as_unset=as_fn_unset
  253. # as_fn_set_status STATUS
  254. # -----------------------
  255. # Set $? to STATUS, without forking.
  256. as_fn_set_status ()
  257. {
  258. return $1
  259. } # as_fn_set_status
  260. # as_fn_exit STATUS
  261. # -----------------
  262. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  263. as_fn_exit ()
  264. {
  265. set +e
  266. as_fn_set_status $1
  267. exit $1
  268. } # as_fn_exit
  269. # as_fn_mkdir_p
  270. # -------------
  271. # Create "$as_dir" as a directory, including parents if necessary.
  272. as_fn_mkdir_p ()
  273. {
  274. case $as_dir in #(
  275. -*) as_dir=./$as_dir;;
  276. esac
  277. test -d "$as_dir" || eval $as_mkdir_p || {
  278. as_dirs=
  279. while :; do
  280. case $as_dir in #(
  281. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  282. *) as_qdir=$as_dir;;
  283. esac
  284. as_dirs="'$as_qdir' $as_dirs"
  285. as_dir=`$as_dirname -- "$as_dir" ||
  286. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  287. X"$as_dir" : 'X\(//\)[^/]' \| \
  288. X"$as_dir" : 'X\(//\)$' \| \
  289. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  290. $as_echo X"$as_dir" |
  291. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)[^/].*/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\/\)$/{
  300. s//\1/
  301. q
  302. }
  303. /^X\(\/\).*/{
  304. s//\1/
  305. q
  306. }
  307. s/.*/./; q'`
  308. test -d "$as_dir" && break
  309. done
  310. test -z "$as_dirs" || eval "mkdir $as_dirs"
  311. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  312. } # as_fn_mkdir_p
  313. # as_fn_append VAR VALUE
  314. # ----------------------
  315. # Append the text in VALUE to the end of the definition contained in VAR. Take
  316. # advantage of any shell optimizations that allow amortized linear growth over
  317. # repeated appends, instead of the typical quadratic growth present in naive
  318. # implementations.
  319. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  320. eval 'as_fn_append ()
  321. {
  322. eval $1+=\$2
  323. }'
  324. else
  325. as_fn_append ()
  326. {
  327. eval $1=\$$1\$2
  328. }
  329. fi # as_fn_append
  330. # as_fn_arith ARG...
  331. # ------------------
  332. # Perform arithmetic evaluation on the ARGs, and store the result in the
  333. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  334. # must be portable across $(()) and expr.
  335. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  336. eval 'as_fn_arith ()
  337. {
  338. as_val=$(( $* ))
  339. }'
  340. else
  341. as_fn_arith ()
  342. {
  343. as_val=`expr "$@" || test $? -eq 1`
  344. }
  345. fi # as_fn_arith
  346. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  347. # ----------------------------------------
  348. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  349. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  350. # script with STATUS, using 1 if that was 0.
  351. as_fn_error ()
  352. {
  353. as_status=$1; test $as_status -eq 0 && as_status=1
  354. if test "$4"; then
  355. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  356. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  357. fi
  358. $as_echo "$as_me: error: $2" >&2
  359. as_fn_exit $as_status
  360. } # as_fn_error
  361. if expr a : '\(a\)' >/dev/null 2>&1 &&
  362. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  363. as_expr=expr
  364. else
  365. as_expr=false
  366. fi
  367. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  368. as_basename=basename
  369. else
  370. as_basename=false
  371. fi
  372. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  373. as_dirname=dirname
  374. else
  375. as_dirname=false
  376. fi
  377. as_me=`$as_basename -- "$0" ||
  378. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  379. X"$0" : 'X\(//\)$' \| \
  380. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  381. $as_echo X/"$0" |
  382. sed '/^.*\/\([^/][^/]*\)\/*$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\/\)$/{
  387. s//\1/
  388. q
  389. }
  390. /^X\/\(\/\).*/{
  391. s//\1/
  392. q
  393. }
  394. s/.*/./; q'`
  395. # Avoid depending upon Character Ranges.
  396. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  397. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  398. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  399. as_cr_digits='0123456789'
  400. as_cr_alnum=$as_cr_Letters$as_cr_digits
  401. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  402. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  403. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  404. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  405. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  406. sed -n '
  407. p
  408. /[$]LINENO/=
  409. ' <$as_myself |
  410. sed '
  411. s/[$]LINENO.*/&-/
  412. t lineno
  413. b
  414. :lineno
  415. N
  416. :loop
  417. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  418. t loop
  419. s/-\n.*//
  420. ' >$as_me.lineno &&
  421. chmod +x "$as_me.lineno" ||
  422. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  423. # Don't try to exec as it changes $[0], causing all sort of problems
  424. # (the dirname of $[0] is not the place where we might find the
  425. # original and so on. Autoconf is especially sensitive to this).
  426. . "./$as_me.lineno"
  427. # Exit status is that of the last command.
  428. exit
  429. }
  430. ECHO_C= ECHO_N= ECHO_T=
  431. case `echo -n x` in #(((((
  432. -n*)
  433. case `echo 'xy\c'` in
  434. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  435. xy) ECHO_C='\c';;
  436. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  437. ECHO_T=' ';;
  438. esac;;
  439. *)
  440. ECHO_N='-n';;
  441. esac
  442. rm -f conf$$ conf$$.exe conf$$.file
  443. if test -d conf$$.dir; then
  444. rm -f conf$$.dir/conf$$.file
  445. else
  446. rm -f conf$$.dir
  447. mkdir conf$$.dir 2>/dev/null
  448. fi
  449. if (echo >conf$$.file) 2>/dev/null; then
  450. if ln -s conf$$.file conf$$ 2>/dev/null; then
  451. as_ln_s='ln -s'
  452. # ... but there are two gotchas:
  453. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  454. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  455. # In both cases, we have to default to `cp -p'.
  456. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  457. as_ln_s='cp -p'
  458. elif ln conf$$.file conf$$ 2>/dev/null; then
  459. as_ln_s=ln
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  467. rmdir conf$$.dir 2>/dev/null
  468. if mkdir -p . 2>/dev/null; then
  469. as_mkdir_p='mkdir -p "$as_dir"'
  470. else
  471. test -d ./-p && rmdir ./-p
  472. as_mkdir_p=false
  473. fi
  474. if test -x / >/dev/null 2>&1; then
  475. as_test_x='test -x'
  476. else
  477. if ls -dL / >/dev/null 2>&1; then
  478. as_ls_L_option=L
  479. else
  480. as_ls_L_option=
  481. fi
  482. as_test_x='
  483. eval sh -c '\''
  484. if test -d "$1"; then
  485. test -d "$1/.";
  486. else
  487. case $1 in #(
  488. -*)set "./$1";;
  489. esac;
  490. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  491. ???[sx]*):;;*)false;;esac;fi
  492. '\'' sh
  493. '
  494. fi
  495. as_executable_p=$as_test_x
  496. # Sed expression to map a string onto a valid CPP name.
  497. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  498. # Sed expression to map a string onto a valid variable name.
  499. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  500. SHELL=${CONFIG_SHELL-/bin/sh}
  501. test -n "$DJDIR" || exec 7<&0 </dev/null
  502. exec 6>&1
  503. # Name of the host.
  504. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  505. # so uname gets run too.
  506. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  507. #
  508. # Initializations.
  509. #
  510. ac_default_prefix=/usr/local
  511. ac_clean_files=
  512. ac_config_libobj_dir=.
  513. LIBOBJS=
  514. cross_compiling=no
  515. subdirs=
  516. MFLAGS=
  517. MAKEFLAGS=
  518. # Identity of this package.
  519. PACKAGE_NAME=
  520. PACKAGE_TARNAME=
  521. PACKAGE_VERSION=
  522. PACKAGE_STRING=
  523. PACKAGE_BUGREPORT=
  524. PACKAGE_URL=
  525. # Factoring default headers for most tests.
  526. ac_includes_default="\
  527. #include <stdio.h>
  528. #ifdef HAVE_SYS_TYPES_H
  529. # include <sys/types.h>
  530. #endif
  531. #ifdef HAVE_SYS_STAT_H
  532. # include <sys/stat.h>
  533. #endif
  534. #ifdef STDC_HEADERS
  535. # include <stdlib.h>
  536. # include <stddef.h>
  537. #else
  538. # ifdef HAVE_STDLIB_H
  539. # include <stdlib.h>
  540. # endif
  541. #endif
  542. #ifdef HAVE_STRING_H
  543. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  544. # include <memory.h>
  545. # endif
  546. # include <string.h>
  547. #endif
  548. #ifdef HAVE_STRINGS_H
  549. # include <strings.h>
  550. #endif
  551. #ifdef HAVE_INTTYPES_H
  552. # include <inttypes.h>
  553. #endif
  554. #ifdef HAVE_STDINT_H
  555. # include <stdint.h>
  556. #endif
  557. #ifdef HAVE_UNISTD_H
  558. # include <unistd.h>
  559. #endif"
  560. ac_subst_vars='am__EXEEXT_FALSE
  561. am__EXEEXT_TRUE
  562. LTLIBOBJS
  563. LIBOBJS
  564. LIBTOOL_VERSION_INFO
  565. CONFIGURE_ARGS
  566. BUILDDATE
  567. BUILDER
  568. LIBTOOL_DEPS
  569. CPP
  570. OTOOL64
  571. OTOOL
  572. LIPO
  573. NMEDIT
  574. DSYMUTIL
  575. MANIFEST_TOOL
  576. RANLIB
  577. ac_ct_AR
  578. AR
  579. DLLTOOL
  580. OBJDUMP
  581. LN_S
  582. NM
  583. ac_ct_DUMPBIN
  584. DUMPBIN
  585. LD
  586. FGREP
  587. EGREP
  588. GREP
  589. SED
  590. am__fastdepCC_FALSE
  591. am__fastdepCC_TRUE
  592. CCDEPMODE
  593. ac_ct_CC
  594. CFLAGS
  595. CC
  596. LIBTOOL
  597. SUPLDFLAGS
  598. host_os
  599. host_vendor
  600. host_cpu
  601. host
  602. build_os
  603. build_vendor
  604. build_cpu
  605. build
  606. CXXCPP
  607. am__fastdepCXX_FALSE
  608. am__fastdepCXX_TRUE
  609. CXXDEPMODE
  610. am__nodep
  611. AMDEPBACKSLASH
  612. AMDEP_FALSE
  613. AMDEP_TRUE
  614. am__quote
  615. am__include
  616. DEPDIR
  617. OBJEXT
  618. EXEEXT
  619. ac_ct_CXX
  620. CPPFLAGS
  621. LDFLAGS
  622. CXXFLAGS
  623. CXX
  624. am__untar
  625. am__tar
  626. AMTAR
  627. am__leading_dot
  628. SET_MAKE
  629. AWK
  630. mkdir_p
  631. MKDIR_P
  632. INSTALL_STRIP_PROGRAM
  633. STRIP
  634. install_sh
  635. MAKEINFO
  636. AUTOHEADER
  637. AUTOMAKE
  638. AUTOCONF
  639. ACLOCAL
  640. VERSION
  641. PACKAGE
  642. CYGPATH_W
  643. am__isrc
  644. INSTALL_DATA
  645. INSTALL_SCRIPT
  646. INSTALL_PROGRAM
  647. target_alias
  648. host_alias
  649. build_alias
  650. LIBS
  651. ECHO_T
  652. ECHO_N
  653. ECHO_C
  654. DEFS
  655. mandir
  656. localedir
  657. libdir
  658. psdir
  659. pdfdir
  660. dvidir
  661. htmldir
  662. infodir
  663. docdir
  664. oldincludedir
  665. includedir
  666. localstatedir
  667. sharedstatedir
  668. sysconfdir
  669. datadir
  670. datarootdir
  671. libexecdir
  672. sbindir
  673. bindir
  674. program_transform_name
  675. prefix
  676. exec_prefix
  677. PACKAGE_URL
  678. PACKAGE_BUGREPORT
  679. PACKAGE_STRING
  680. PACKAGE_VERSION
  681. PACKAGE_TARNAME
  682. PACKAGE_NAME
  683. PATH_SEPARATOR
  684. SHELL'
  685. ac_subst_files=''
  686. ac_user_opts='
  687. enable_option_checking
  688. enable_dependency_tracking
  689. enable_static
  690. enable_shared
  691. with_pic
  692. enable_fast_install
  693. with_gnu_ld
  694. with_sysroot
  695. enable_libtool_lock
  696. '
  697. ac_precious_vars='build_alias
  698. host_alias
  699. target_alias
  700. CXX
  701. CXXFLAGS
  702. LDFLAGS
  703. LIBS
  704. CPPFLAGS
  705. CCC
  706. CXXCPP
  707. CC
  708. CFLAGS
  709. CPP'
  710. # Initialize some variables set by options.
  711. ac_init_help=
  712. ac_init_version=false
  713. ac_unrecognized_opts=
  714. ac_unrecognized_sep=
  715. # The variables have the same names as the options, with
  716. # dashes changed to underlines.
  717. cache_file=/dev/null
  718. exec_prefix=NONE
  719. no_create=
  720. no_recursion=
  721. prefix=NONE
  722. program_prefix=NONE
  723. program_suffix=NONE
  724. program_transform_name=s,x,x,
  725. silent=
  726. site=
  727. srcdir=
  728. verbose=
  729. x_includes=NONE
  730. x_libraries=NONE
  731. # Installation directory options.
  732. # These are left unexpanded so users can "make install exec_prefix=/foo"
  733. # and all the variables that are supposed to be based on exec_prefix
  734. # by default will actually change.
  735. # Use braces instead of parens because sh, perl, etc. also accept them.
  736. # (The list follows the same order as the GNU Coding Standards.)
  737. bindir='${exec_prefix}/bin'
  738. sbindir='${exec_prefix}/sbin'
  739. libexecdir='${exec_prefix}/libexec'
  740. datarootdir='${prefix}/share'
  741. datadir='${datarootdir}'
  742. sysconfdir='${prefix}/etc'
  743. sharedstatedir='${prefix}/com'
  744. localstatedir='${prefix}/var'
  745. includedir='${prefix}/include'
  746. oldincludedir='/usr/include'
  747. docdir='${datarootdir}/doc/${PACKAGE}'
  748. infodir='${datarootdir}/info'
  749. htmldir='${docdir}'
  750. dvidir='${docdir}'
  751. pdfdir='${docdir}'
  752. psdir='${docdir}'
  753. libdir='${exec_prefix}/lib'
  754. localedir='${datarootdir}/locale'
  755. mandir='${datarootdir}/man'
  756. ac_prev=
  757. ac_dashdash=
  758. for ac_option
  759. do
  760. # If the previous option needs an argument, assign it.
  761. if test -n "$ac_prev"; then
  762. eval $ac_prev=\$ac_option
  763. ac_prev=
  764. continue
  765. fi
  766. case $ac_option in
  767. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  768. *=) ac_optarg= ;;
  769. *) ac_optarg=yes ;;
  770. esac
  771. # Accept the important Cygnus configure options, so we can diagnose typos.
  772. case $ac_dashdash$ac_option in
  773. --)
  774. ac_dashdash=yes ;;
  775. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  776. ac_prev=bindir ;;
  777. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  778. bindir=$ac_optarg ;;
  779. -build | --build | --buil | --bui | --bu)
  780. ac_prev=build_alias ;;
  781. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  782. build_alias=$ac_optarg ;;
  783. -cache-file | --cache-file | --cache-fil | --cache-fi \
  784. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  785. ac_prev=cache_file ;;
  786. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  787. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  788. cache_file=$ac_optarg ;;
  789. --config-cache | -C)
  790. cache_file=config.cache ;;
  791. -datadir | --datadir | --datadi | --datad)
  792. ac_prev=datadir ;;
  793. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  794. datadir=$ac_optarg ;;
  795. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  796. | --dataroo | --dataro | --datar)
  797. ac_prev=datarootdir ;;
  798. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  799. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  800. datarootdir=$ac_optarg ;;
  801. -disable-* | --disable-*)
  802. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  803. # Reject names that are not valid shell variable names.
  804. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  805. as_fn_error $? "invalid feature name: $ac_useropt"
  806. ac_useropt_orig=$ac_useropt
  807. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  808. case $ac_user_opts in
  809. *"
  810. "enable_$ac_useropt"
  811. "*) ;;
  812. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  813. ac_unrecognized_sep=', ';;
  814. esac
  815. eval enable_$ac_useropt=no ;;
  816. -docdir | --docdir | --docdi | --doc | --do)
  817. ac_prev=docdir ;;
  818. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  819. docdir=$ac_optarg ;;
  820. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  821. ac_prev=dvidir ;;
  822. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  823. dvidir=$ac_optarg ;;
  824. -enable-* | --enable-*)
  825. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  826. # Reject names that are not valid shell variable names.
  827. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  828. as_fn_error $? "invalid feature name: $ac_useropt"
  829. ac_useropt_orig=$ac_useropt
  830. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  831. case $ac_user_opts in
  832. *"
  833. "enable_$ac_useropt"
  834. "*) ;;
  835. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  836. ac_unrecognized_sep=', ';;
  837. esac
  838. eval enable_$ac_useropt=\$ac_optarg ;;
  839. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  840. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  841. | --exec | --exe | --ex)
  842. ac_prev=exec_prefix ;;
  843. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  844. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  845. | --exec=* | --exe=* | --ex=*)
  846. exec_prefix=$ac_optarg ;;
  847. -gas | --gas | --ga | --g)
  848. # Obsolete; use --with-gas.
  849. with_gas=yes ;;
  850. -help | --help | --hel | --he | -h)
  851. ac_init_help=long ;;
  852. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  853. ac_init_help=recursive ;;
  854. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  855. ac_init_help=short ;;
  856. -host | --host | --hos | --ho)
  857. ac_prev=host_alias ;;
  858. -host=* | --host=* | --hos=* | --ho=*)
  859. host_alias=$ac_optarg ;;
  860. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  861. ac_prev=htmldir ;;
  862. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  863. | --ht=*)
  864. htmldir=$ac_optarg ;;
  865. -includedir | --includedir | --includedi | --included | --include \
  866. | --includ | --inclu | --incl | --inc)
  867. ac_prev=includedir ;;
  868. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  869. | --includ=* | --inclu=* | --incl=* | --inc=*)
  870. includedir=$ac_optarg ;;
  871. -infodir | --infodir | --infodi | --infod | --info | --inf)
  872. ac_prev=infodir ;;
  873. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  874. infodir=$ac_optarg ;;
  875. -libdir | --libdir | --libdi | --libd)
  876. ac_prev=libdir ;;
  877. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  878. libdir=$ac_optarg ;;
  879. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  880. | --libexe | --libex | --libe)
  881. ac_prev=libexecdir ;;
  882. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  883. | --libexe=* | --libex=* | --libe=*)
  884. libexecdir=$ac_optarg ;;
  885. -localedir | --localedir | --localedi | --localed | --locale)
  886. ac_prev=localedir ;;
  887. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  888. localedir=$ac_optarg ;;
  889. -localstatedir | --localstatedir | --localstatedi | --localstated \
  890. | --localstate | --localstat | --localsta | --localst | --locals)
  891. ac_prev=localstatedir ;;
  892. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  893. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  894. localstatedir=$ac_optarg ;;
  895. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  896. ac_prev=mandir ;;
  897. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  898. mandir=$ac_optarg ;;
  899. -nfp | --nfp | --nf)
  900. # Obsolete; use --without-fp.
  901. with_fp=no ;;
  902. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  903. | --no-cr | --no-c | -n)
  904. no_create=yes ;;
  905. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  906. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  907. no_recursion=yes ;;
  908. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  909. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  910. | --oldin | --oldi | --old | --ol | --o)
  911. ac_prev=oldincludedir ;;
  912. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  913. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  914. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  915. oldincludedir=$ac_optarg ;;
  916. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  917. ac_prev=prefix ;;
  918. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  919. prefix=$ac_optarg ;;
  920. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  921. | --program-pre | --program-pr | --program-p)
  922. ac_prev=program_prefix ;;
  923. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  924. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  925. program_prefix=$ac_optarg ;;
  926. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  927. | --program-suf | --program-su | --program-s)
  928. ac_prev=program_suffix ;;
  929. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  930. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  931. program_suffix=$ac_optarg ;;
  932. -program-transform-name | --program-transform-name \
  933. | --program-transform-nam | --program-transform-na \
  934. | --program-transform-n | --program-transform- \
  935. | --program-transform | --program-transfor \
  936. | --program-transfo | --program-transf \
  937. | --program-trans | --program-tran \
  938. | --progr-tra | --program-tr | --program-t)
  939. ac_prev=program_transform_name ;;
  940. -program-transform-name=* | --program-transform-name=* \
  941. | --program-transform-nam=* | --program-transform-na=* \
  942. | --program-transform-n=* | --program-transform-=* \
  943. | --program-transform=* | --program-transfor=* \
  944. | --program-transfo=* | --program-transf=* \
  945. | --program-trans=* | --program-tran=* \
  946. | --progr-tra=* | --program-tr=* | --program-t=*)
  947. program_transform_name=$ac_optarg ;;
  948. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  949. ac_prev=pdfdir ;;
  950. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  951. pdfdir=$ac_optarg ;;
  952. -psdir | --psdir | --psdi | --psd | --ps)
  953. ac_prev=psdir ;;
  954. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  955. psdir=$ac_optarg ;;
  956. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  957. | -silent | --silent | --silen | --sile | --sil)
  958. silent=yes ;;
  959. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  960. ac_prev=sbindir ;;
  961. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  962. | --sbi=* | --sb=*)
  963. sbindir=$ac_optarg ;;
  964. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  965. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  966. | --sharedst | --shareds | --shared | --share | --shar \
  967. | --sha | --sh)
  968. ac_prev=sharedstatedir ;;
  969. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  970. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  971. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  972. | --sha=* | --sh=*)
  973. sharedstatedir=$ac_optarg ;;
  974. -site | --site | --sit)
  975. ac_prev=site ;;
  976. -site=* | --site=* | --sit=*)
  977. site=$ac_optarg ;;
  978. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  979. ac_prev=srcdir ;;
  980. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  981. srcdir=$ac_optarg ;;
  982. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  983. | --syscon | --sysco | --sysc | --sys | --sy)
  984. ac_prev=sysconfdir ;;
  985. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  986. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  987. sysconfdir=$ac_optarg ;;
  988. -target | --target | --targe | --targ | --tar | --ta | --t)
  989. ac_prev=target_alias ;;
  990. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  991. target_alias=$ac_optarg ;;
  992. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  993. verbose=yes ;;
  994. -version | --version | --versio | --versi | --vers | -V)
  995. ac_init_version=: ;;
  996. -with-* | --with-*)
  997. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  998. # Reject names that are not valid shell variable names.
  999. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1000. as_fn_error $? "invalid package name: $ac_useropt"
  1001. ac_useropt_orig=$ac_useropt
  1002. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1003. case $ac_user_opts in
  1004. *"
  1005. "with_$ac_useropt"
  1006. "*) ;;
  1007. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1008. ac_unrecognized_sep=', ';;
  1009. esac
  1010. eval with_$ac_useropt=\$ac_optarg ;;
  1011. -without-* | --without-*)
  1012. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1013. # Reject names that are not valid shell variable names.
  1014. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1015. as_fn_error $? "invalid package name: $ac_useropt"
  1016. ac_useropt_orig=$ac_useropt
  1017. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1018. case $ac_user_opts in
  1019. *"
  1020. "with_$ac_useropt"
  1021. "*) ;;
  1022. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1023. ac_unrecognized_sep=', ';;
  1024. esac
  1025. eval with_$ac_useropt=no ;;
  1026. --x)
  1027. # Obsolete; use --with-x.
  1028. with_x=yes ;;
  1029. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1030. | --x-incl | --x-inc | --x-in | --x-i)
  1031. ac_prev=x_includes ;;
  1032. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1033. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1034. x_includes=$ac_optarg ;;
  1035. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1036. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1037. ac_prev=x_libraries ;;
  1038. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1039. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1040. x_libraries=$ac_optarg ;;
  1041. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1042. Try \`$0 --help' for more information"
  1043. ;;
  1044. *=*)
  1045. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1046. # Reject names that are not valid shell variable names.
  1047. case $ac_envvar in #(
  1048. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1049. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1050. esac
  1051. eval $ac_envvar=\$ac_optarg
  1052. export $ac_envvar ;;
  1053. *)
  1054. # FIXME: should be removed in autoconf 3.0.
  1055. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1056. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1057. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1058. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1059. ;;
  1060. esac
  1061. done
  1062. if test -n "$ac_prev"; then
  1063. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1064. as_fn_error $? "missing argument to $ac_option"
  1065. fi
  1066. if test -n "$ac_unrecognized_opts"; then
  1067. case $enable_option_checking in
  1068. no) ;;
  1069. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1070. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1071. esac
  1072. fi
  1073. # Check all directory arguments for consistency.
  1074. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1075. datadir sysconfdir sharedstatedir localstatedir includedir \
  1076. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1077. libdir localedir mandir
  1078. do
  1079. eval ac_val=\$$ac_var
  1080. # Remove trailing slashes.
  1081. case $ac_val in
  1082. */ )
  1083. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1084. eval $ac_var=\$ac_val;;
  1085. esac
  1086. # Be sure to have absolute directory names.
  1087. case $ac_val in
  1088. [\\/$]* | ?:[\\/]* ) continue;;
  1089. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1090. esac
  1091. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1092. done
  1093. # There might be people who depend on the old broken behavior: `$host'
  1094. # used to hold the argument of --host etc.
  1095. # FIXME: To remove some day.
  1096. build=$build_alias
  1097. host=$host_alias
  1098. target=$target_alias
  1099. # FIXME: To remove some day.
  1100. if test "x$host_alias" != x; then
  1101. if test "x$build_alias" = x; then
  1102. cross_compiling=maybe
  1103. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1104. If a cross compiler is detected then cross compile mode will be used" >&2
  1105. elif test "x$build_alias" != "x$host_alias"; then
  1106. cross_compiling=yes
  1107. fi
  1108. fi
  1109. ac_tool_prefix=
  1110. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1111. test "$silent" = yes && exec 6>/dev/null
  1112. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1113. ac_ls_di=`ls -di .` &&
  1114. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1115. as_fn_error $? "working directory cannot be determined"
  1116. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1117. as_fn_error $? "pwd does not report name of working directory"
  1118. # Find the source files, if location was not specified.
  1119. if test -z "$srcdir"; then
  1120. ac_srcdir_defaulted=yes
  1121. # Try the directory containing this script, then the parent directory.
  1122. ac_confdir=`$as_dirname -- "$as_myself" ||
  1123. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1124. X"$as_myself" : 'X\(//\)[^/]' \| \
  1125. X"$as_myself" : 'X\(//\)$' \| \
  1126. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1127. $as_echo X"$as_myself" |
  1128. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1129. s//\1/
  1130. q
  1131. }
  1132. /^X\(\/\/\)[^/].*/{
  1133. s//\1/
  1134. q
  1135. }
  1136. /^X\(\/\/\)$/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\).*/{
  1141. s//\1/
  1142. q
  1143. }
  1144. s/.*/./; q'`
  1145. srcdir=$ac_confdir
  1146. if test ! -r "$srcdir/$ac_unique_file"; then
  1147. srcdir=..
  1148. fi
  1149. else
  1150. ac_srcdir_defaulted=no
  1151. fi
  1152. if test ! -r "$srcdir/$ac_unique_file"; then
  1153. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1154. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1155. fi
  1156. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1157. ac_abs_confdir=`(
  1158. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1159. pwd)`
  1160. # When building in place, set srcdir=.
  1161. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1162. srcdir=.
  1163. fi
  1164. # Remove unnecessary trailing slashes from srcdir.
  1165. # Double slashes in file names in object file debugging info
  1166. # mess up M-x gdb in Emacs.
  1167. case $srcdir in
  1168. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1169. esac
  1170. for ac_var in $ac_precious_vars; do
  1171. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1172. eval ac_env_${ac_var}_value=\$${ac_var}
  1173. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1174. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1175. done
  1176. #
  1177. # Report the --help message.
  1178. #
  1179. if test "$ac_init_help" = "long"; then
  1180. # Omit some internal or obsolete options to make the list less imposing.
  1181. # This message is too long to be a string in the A/UX 3.1 sh.
  1182. cat <<_ACEOF
  1183. \`configure' configures this package to adapt to many kinds of systems.
  1184. Usage: $0 [OPTION]... [VAR=VALUE]...
  1185. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1186. VAR=VALUE. See below for descriptions of some of the useful variables.
  1187. Defaults for the options are specified in brackets.
  1188. Configuration:
  1189. -h, --help display this help and exit
  1190. --help=short display options specific to this package
  1191. --help=recursive display the short help of all the included packages
  1192. -V, --version display version information and exit
  1193. -q, --quiet, --silent do not print \`checking ...' messages
  1194. --cache-file=FILE cache test results in FILE [disabled]
  1195. -C, --config-cache alias for \`--cache-file=config.cache'
  1196. -n, --no-create do not create output files
  1197. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1198. Installation directories:
  1199. --prefix=PREFIX install architecture-independent files in PREFIX
  1200. [$ac_default_prefix]
  1201. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1202. [PREFIX]
  1203. By default, \`make install' will install all the files in
  1204. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1205. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1206. for instance \`--prefix=\$HOME'.
  1207. For better control, use the options below.
  1208. Fine tuning of the installation directories:
  1209. --bindir=DIR user executables [EPREFIX/bin]
  1210. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1211. --libexecdir=DIR program executables [EPREFIX/libexec]
  1212. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1213. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1214. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1215. --libdir=DIR object code libraries [EPREFIX/lib]
  1216. --includedir=DIR C header files [PREFIX/include]
  1217. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1218. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1219. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1220. --infodir=DIR info documentation [DATAROOTDIR/info]
  1221. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1222. --mandir=DIR man documentation [DATAROOTDIR/man]
  1223. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1224. --htmldir=DIR html documentation [DOCDIR]
  1225. --dvidir=DIR dvi documentation [DOCDIR]
  1226. --pdfdir=DIR pdf documentation [DOCDIR]
  1227. --psdir=DIR ps documentation [DOCDIR]
  1228. _ACEOF
  1229. cat <<\_ACEOF
  1230. Program names:
  1231. --program-prefix=PREFIX prepend PREFIX to installed program names
  1232. --program-suffix=SUFFIX append SUFFIX to installed program names
  1233. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1234. System types:
  1235. --build=BUILD configure for building on BUILD [guessed]
  1236. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1237. _ACEOF
  1238. fi
  1239. if test -n "$ac_init_help"; then
  1240. cat <<\_ACEOF
  1241. Optional Features:
  1242. --disable-option-checking ignore unrecognized --enable/--with options
  1243. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1244. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1245. --disable-dependency-tracking speeds up one-time build
  1246. --enable-dependency-tracking do not reject slow dependency extractors
  1247. --enable-static[=PKGS] build static libraries [default=yes]
  1248. --enable-shared[=PKGS] build shared libraries [default=yes]
  1249. --enable-fast-install[=PKGS]
  1250. optimize for fast installation [default=yes]
  1251. --disable-libtool-lock avoid locking (might break parallel builds)
  1252. Optional Packages:
  1253. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1254. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1255. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1256. both]
  1257. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1258. --with-sysroot=DIR Search for dependent libraries within DIR
  1259. (or the compiler's sysroot if not specified).
  1260. Some influential environment variables:
  1261. CXX C++ compiler command
  1262. CXXFLAGS C++ compiler flags
  1263. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1264. nonstandard directory <lib dir>
  1265. LIBS libraries to pass to the linker, e.g. -l<library>
  1266. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1267. you have headers in a nonstandard directory <include dir>
  1268. CXXCPP C++ preprocessor
  1269. CC C compiler command
  1270. CFLAGS C compiler flags
  1271. CPP C preprocessor
  1272. Use these variables to override the choices made by `configure' or to help
  1273. it to find libraries and programs with nonstandard names/locations.
  1274. Report bugs to the package provider.
  1275. _ACEOF
  1276. ac_status=$?
  1277. fi
  1278. if test "$ac_init_help" = "recursive"; then
  1279. # If there are subdirs, report their specific --help.
  1280. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1281. test -d "$ac_dir" ||
  1282. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1283. continue
  1284. ac_builddir=.
  1285. case "$ac_dir" in
  1286. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1287. *)
  1288. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1289. # A ".." for each directory in $ac_dir_suffix.
  1290. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1291. case $ac_top_builddir_sub in
  1292. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1293. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1294. esac ;;
  1295. esac
  1296. ac_abs_top_builddir=$ac_pwd
  1297. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1298. # for backward compatibility:
  1299. ac_top_builddir=$ac_top_build_prefix
  1300. case $srcdir in
  1301. .) # We are building in place.
  1302. ac_srcdir=.
  1303. ac_top_srcdir=$ac_top_builddir_sub
  1304. ac_abs_top_srcdir=$ac_pwd ;;
  1305. [\\/]* | ?:[\\/]* ) # Absolute name.
  1306. ac_srcdir=$srcdir$ac_dir_suffix;
  1307. ac_top_srcdir=$srcdir
  1308. ac_abs_top_srcdir=$srcdir ;;
  1309. *) # Relative name.
  1310. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1311. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1312. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1313. esac
  1314. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1315. cd "$ac_dir" || { ac_status=$?; continue; }
  1316. # Check for guested configure.
  1317. if test -f "$ac_srcdir/configure.gnu"; then
  1318. echo &&
  1319. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1320. elif test -f "$ac_srcdir/configure"; then
  1321. echo &&
  1322. $SHELL "$ac_srcdir/configure" --help=recursive
  1323. else
  1324. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1325. fi || ac_status=$?
  1326. cd "$ac_pwd" || { ac_status=$?; break; }
  1327. done
  1328. fi
  1329. test -n "$ac_init_help" && exit $ac_status
  1330. if $ac_init_version; then
  1331. cat <<\_ACEOF
  1332. configure
  1333. generated by GNU Autoconf 2.68
  1334. Copyright (C) 2010 Free Software Foundation, Inc.
  1335. This configure script is free software; the Free Software Foundation
  1336. gives unlimited permission to copy, distribute and modify it.
  1337. _ACEOF
  1338. exit
  1339. fi
  1340. ## ------------------------ ##
  1341. ## Autoconf initialization. ##
  1342. ## ------------------------ ##
  1343. # ac_fn_cxx_try_compile LINENO
  1344. # ----------------------------
  1345. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1346. ac_fn_cxx_try_compile ()
  1347. {
  1348. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1349. rm -f conftest.$ac_objext
  1350. if { { ac_try="$ac_compile"
  1351. case "(($ac_try" in
  1352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1353. *) ac_try_echo=$ac_try;;
  1354. esac
  1355. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1356. $as_echo "$ac_try_echo"; } >&5
  1357. (eval "$ac_compile") 2>conftest.err
  1358. ac_status=$?
  1359. if test -s conftest.err; then
  1360. grep -v '^ *+' conftest.err >conftest.er1
  1361. cat conftest.er1 >&5
  1362. mv -f conftest.er1 conftest.err
  1363. fi
  1364. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1365. test $ac_status = 0; } && {
  1366. test -z "$ac_cxx_werror_flag" ||
  1367. test ! -s conftest.err
  1368. } && test -s conftest.$ac_objext; then :
  1369. ac_retval=0
  1370. else
  1371. $as_echo "$as_me: failed program was:" >&5
  1372. sed 's/^/| /' conftest.$ac_ext >&5
  1373. ac_retval=1
  1374. fi
  1375. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1376. as_fn_set_status $ac_retval
  1377. } # ac_fn_cxx_try_compile
  1378. # ac_fn_cxx_try_cpp LINENO
  1379. # ------------------------
  1380. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1381. ac_fn_cxx_try_cpp ()
  1382. {
  1383. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1384. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1385. case "(($ac_try" in
  1386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1387. *) ac_try_echo=$ac_try;;
  1388. esac
  1389. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1390. $as_echo "$ac_try_echo"; } >&5
  1391. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1392. ac_status=$?
  1393. if test -s conftest.err; then
  1394. grep -v '^ *+' conftest.err >conftest.er1
  1395. cat conftest.er1 >&5
  1396. mv -f conftest.er1 conftest.err
  1397. fi
  1398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1399. test $ac_status = 0; } > conftest.i && {
  1400. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1401. test ! -s conftest.err
  1402. }; then :
  1403. ac_retval=0
  1404. else
  1405. $as_echo "$as_me: failed program was:" >&5
  1406. sed 's/^/| /' conftest.$ac_ext >&5
  1407. ac_retval=1
  1408. fi
  1409. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1410. as_fn_set_status $ac_retval
  1411. } # ac_fn_cxx_try_cpp
  1412. # ac_fn_c_try_compile LINENO
  1413. # --------------------------
  1414. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1415. ac_fn_c_try_compile ()
  1416. {
  1417. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1418. rm -f conftest.$ac_objext
  1419. if { { ac_try="$ac_compile"
  1420. case "(($ac_try" in
  1421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1422. *) ac_try_echo=$ac_try;;
  1423. esac
  1424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1425. $as_echo "$ac_try_echo"; } >&5
  1426. (eval "$ac_compile") 2>conftest.err
  1427. ac_status=$?
  1428. if test -s conftest.err; then
  1429. grep -v '^ *+' conftest.err >conftest.er1
  1430. cat conftest.er1 >&5
  1431. mv -f conftest.er1 conftest.err
  1432. fi
  1433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1434. test $ac_status = 0; } && {
  1435. test -z "$ac_c_werror_flag" ||
  1436. test ! -s conftest.err
  1437. } && test -s conftest.$ac_objext; then :
  1438. ac_retval=0
  1439. else
  1440. $as_echo "$as_me: failed program was:" >&5
  1441. sed 's/^/| /' conftest.$ac_ext >&5
  1442. ac_retval=1
  1443. fi
  1444. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1445. as_fn_set_status $ac_retval
  1446. } # ac_fn_c_try_compile
  1447. # ac_fn_c_try_link LINENO
  1448. # -----------------------
  1449. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1450. ac_fn_c_try_link ()
  1451. {
  1452. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1453. rm -f conftest.$ac_objext conftest$ac_exeext
  1454. if { { ac_try="$ac_link"
  1455. case "(($ac_try" in
  1456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1457. *) ac_try_echo=$ac_try;;
  1458. esac
  1459. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1460. $as_echo "$ac_try_echo"; } >&5
  1461. (eval "$ac_link") 2>conftest.err
  1462. ac_status=$?
  1463. if test -s conftest.err; then
  1464. grep -v '^ *+' conftest.err >conftest.er1
  1465. cat conftest.er1 >&5
  1466. mv -f conftest.er1 conftest.err
  1467. fi
  1468. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1469. test $ac_status = 0; } && {
  1470. test -z "$ac_c_werror_flag" ||
  1471. test ! -s conftest.err
  1472. } && test -s conftest$ac_exeext && {
  1473. test "$cross_compiling" = yes ||
  1474. $as_test_x conftest$ac_exeext
  1475. }; then :
  1476. ac_retval=0
  1477. else
  1478. $as_echo "$as_me: failed program was:" >&5
  1479. sed 's/^/| /' conftest.$ac_ext >&5
  1480. ac_retval=1
  1481. fi
  1482. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1483. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1484. # interfere with the next link command; also delete a directory that is
  1485. # left behind by Apple's compiler. We do this before executing the actions.
  1486. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1487. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1488. as_fn_set_status $ac_retval
  1489. } # ac_fn_c_try_link
  1490. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1491. # -------------------------------------------------------
  1492. # Tests whether HEADER exists and can be compiled using the include files in
  1493. # INCLUDES, setting the cache variable VAR accordingly.
  1494. ac_fn_c_check_header_compile ()
  1495. {
  1496. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1498. $as_echo_n "checking for $2... " >&6; }
  1499. if eval \${$3+:} false; then :
  1500. $as_echo_n "(cached) " >&6
  1501. else
  1502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1503. /* end confdefs.h. */
  1504. $4
  1505. #include <$2>
  1506. _ACEOF
  1507. if ac_fn_c_try_compile "$LINENO"; then :
  1508. eval "$3=yes"
  1509. else
  1510. eval "$3=no"
  1511. fi
  1512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1513. fi
  1514. eval ac_res=\$$3
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1516. $as_echo "$ac_res" >&6; }
  1517. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1518. } # ac_fn_c_check_header_compile
  1519. # ac_fn_c_try_cpp LINENO
  1520. # ----------------------
  1521. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1522. ac_fn_c_try_cpp ()
  1523. {
  1524. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1525. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1526. case "(($ac_try" in
  1527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1528. *) ac_try_echo=$ac_try;;
  1529. esac
  1530. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1531. $as_echo "$ac_try_echo"; } >&5
  1532. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1533. ac_status=$?
  1534. if test -s conftest.err; then
  1535. grep -v '^ *+' conftest.err >conftest.er1
  1536. cat conftest.er1 >&5
  1537. mv -f conftest.er1 conftest.err
  1538. fi
  1539. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1540. test $ac_status = 0; } > conftest.i && {
  1541. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1542. test ! -s conftest.err
  1543. }; then :
  1544. ac_retval=0
  1545. else
  1546. $as_echo "$as_me: failed program was:" >&5
  1547. sed 's/^/| /' conftest.$ac_ext >&5
  1548. ac_retval=1
  1549. fi
  1550. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1551. as_fn_set_status $ac_retval
  1552. } # ac_fn_c_try_cpp
  1553. # ac_fn_c_try_run LINENO
  1554. # ----------------------
  1555. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1556. # that executables *can* be run.
  1557. ac_fn_c_try_run ()
  1558. {
  1559. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1560. if { { ac_try="$ac_link"
  1561. case "(($ac_try" in
  1562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1563. *) ac_try_echo=$ac_try;;
  1564. esac
  1565. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1566. $as_echo "$ac_try_echo"; } >&5
  1567. (eval "$ac_link") 2>&5
  1568. ac_status=$?
  1569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1570. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1571. { { case "(($ac_try" in
  1572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1573. *) ac_try_echo=$ac_try;;
  1574. esac
  1575. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1576. $as_echo "$ac_try_echo"; } >&5
  1577. (eval "$ac_try") 2>&5
  1578. ac_status=$?
  1579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1580. test $ac_status = 0; }; }; then :
  1581. ac_retval=0
  1582. else
  1583. $as_echo "$as_me: program exited with status $ac_status" >&5
  1584. $as_echo "$as_me: failed program was:" >&5
  1585. sed 's/^/| /' conftest.$ac_ext >&5
  1586. ac_retval=$ac_status
  1587. fi
  1588. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1589. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1590. as_fn_set_status $ac_retval
  1591. } # ac_fn_c_try_run
  1592. # ac_fn_c_check_func LINENO FUNC VAR
  1593. # ----------------------------------
  1594. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1595. ac_fn_c_check_func ()
  1596. {
  1597. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1599. $as_echo_n "checking for $2... " >&6; }
  1600. if eval \${$3+:} false; then :
  1601. $as_echo_n "(cached) " >&6
  1602. else
  1603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1604. /* end confdefs.h. */
  1605. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1606. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1607. #define $2 innocuous_$2
  1608. /* System header to define __stub macros and hopefully few prototypes,
  1609. which can conflict with char $2 (); below.
  1610. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1611. <limits.h> exists even on freestanding compilers. */
  1612. #ifdef __STDC__
  1613. # include <limits.h>
  1614. #else
  1615. # include <assert.h>
  1616. #endif
  1617. #undef $2
  1618. /* Override any GCC internal prototype to avoid an error.
  1619. Use char because int might match the return type of a GCC
  1620. builtin and then its argument prototype would still apply. */
  1621. #ifdef __cplusplus
  1622. extern "C"
  1623. #endif
  1624. char $2 ();
  1625. /* The GNU C library defines this for functions which it implements
  1626. to always fail with ENOSYS. Some functions are actually named
  1627. something starting with __ and the normal name is an alias. */
  1628. #if defined __stub_$2 || defined __stub___$2
  1629. choke me
  1630. #endif
  1631. int
  1632. main ()
  1633. {
  1634. return $2 ();
  1635. ;
  1636. return 0;
  1637. }
  1638. _ACEOF
  1639. if ac_fn_c_try_link "$LINENO"; then :
  1640. eval "$3=yes"
  1641. else
  1642. eval "$3=no"
  1643. fi
  1644. rm -f core conftest.err conftest.$ac_objext \
  1645. conftest$ac_exeext conftest.$ac_ext
  1646. fi
  1647. eval ac_res=\$$3
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1649. $as_echo "$ac_res" >&6; }
  1650. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1651. } # ac_fn_c_check_func
  1652. # ac_fn_cxx_try_link LINENO
  1653. # -------------------------
  1654. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1655. ac_fn_cxx_try_link ()
  1656. {
  1657. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1658. rm -f conftest.$ac_objext conftest$ac_exeext
  1659. if { { ac_try="$ac_link"
  1660. case "(($ac_try" in
  1661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1662. *) ac_try_echo=$ac_try;;
  1663. esac
  1664. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1665. $as_echo "$ac_try_echo"; } >&5
  1666. (eval "$ac_link") 2>conftest.err
  1667. ac_status=$?
  1668. if test -s conftest.err; then
  1669. grep -v '^ *+' conftest.err >conftest.er1
  1670. cat conftest.er1 >&5
  1671. mv -f conftest.er1 conftest.err
  1672. fi
  1673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1674. test $ac_status = 0; } && {
  1675. test -z "$ac_cxx_werror_flag" ||
  1676. test ! -s conftest.err
  1677. } && test -s conftest$ac_exeext && {
  1678. test "$cross_compiling" = yes ||
  1679. $as_test_x conftest$ac_exeext
  1680. }; then :
  1681. ac_retval=0
  1682. else
  1683. $as_echo "$as_me: failed program was:" >&5
  1684. sed 's/^/| /' conftest.$ac_ext >&5
  1685. ac_retval=1
  1686. fi
  1687. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1688. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1689. # interfere with the next link command; also delete a directory that is
  1690. # left behind by Apple's compiler. We do this before executing the actions.
  1691. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1692. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1693. as_fn_set_status $ac_retval
  1694. } # ac_fn_cxx_try_link
  1695. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1696. # ---------------------------------------------------------
  1697. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1698. # the include files in INCLUDES and setting the cache variable VAR
  1699. # accordingly.
  1700. ac_fn_cxx_check_header_mongrel ()
  1701. {
  1702. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1703. if eval \${$3+:} false; then :
  1704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1705. $as_echo_n "checking for $2... " >&6; }
  1706. if eval \${$3+:} false; then :
  1707. $as_echo_n "(cached) " >&6
  1708. fi
  1709. eval ac_res=\$$3
  1710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1711. $as_echo "$ac_res" >&6; }
  1712. else
  1713. # Is the header compilable?
  1714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1715. $as_echo_n "checking $2 usability... " >&6; }
  1716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1717. /* end confdefs.h. */
  1718. $4
  1719. #include <$2>
  1720. _ACEOF
  1721. if ac_fn_cxx_try_compile "$LINENO"; then :
  1722. ac_header_compiler=yes
  1723. else
  1724. ac_header_compiler=no
  1725. fi
  1726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1728. $as_echo "$ac_header_compiler" >&6; }
  1729. # Is the header present?
  1730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1731. $as_echo_n "checking $2 presence... " >&6; }
  1732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1733. /* end confdefs.h. */
  1734. #include <$2>
  1735. _ACEOF
  1736. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1737. ac_header_preproc=yes
  1738. else
  1739. ac_header_preproc=no
  1740. fi
  1741. rm -f conftest.err conftest.i conftest.$ac_ext
  1742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1743. $as_echo "$ac_header_preproc" >&6; }
  1744. # So? What about this header?
  1745. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1746. yes:no: )
  1747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1748. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1750. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1751. ;;
  1752. no:yes:* )
  1753. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1754. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1756. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1758. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1759. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1760. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1762. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1763. ;;
  1764. esac
  1765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1766. $as_echo_n "checking for $2... " >&6; }
  1767. if eval \${$3+:} false; then :
  1768. $as_echo_n "(cached) " >&6
  1769. else
  1770. eval "$3=\$ac_header_compiler"
  1771. fi
  1772. eval ac_res=\$$3
  1773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1774. $as_echo "$ac_res" >&6; }
  1775. fi
  1776. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1777. } # ac_fn_cxx_check_header_mongrel
  1778. cat >config.log <<_ACEOF
  1779. This file contains any messages produced by compilers while
  1780. running configure, to aid debugging if configure makes a mistake.
  1781. It was created by $as_me, which was
  1782. generated by GNU Autoconf 2.68. Invocation command line was
  1783. $ $0 $@
  1784. _ACEOF
  1785. exec 5>>config.log
  1786. {
  1787. cat <<_ASUNAME
  1788. ## --------- ##
  1789. ## Platform. ##
  1790. ## --------- ##
  1791. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1792. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1793. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1794. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1795. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1796. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1797. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1798. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1799. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1800. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1801. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1802. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1803. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1804. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1805. _ASUNAME
  1806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1807. for as_dir in $PATH
  1808. do
  1809. IFS=$as_save_IFS
  1810. test -z "$as_dir" && as_dir=.
  1811. $as_echo "PATH: $as_dir"
  1812. done
  1813. IFS=$as_save_IFS
  1814. } >&5
  1815. cat >&5 <<_ACEOF
  1816. ## ----------- ##
  1817. ## Core tests. ##
  1818. ## ----------- ##
  1819. _ACEOF
  1820. # Keep a trace of the command line.
  1821. # Strip out --no-create and --no-recursion so they do not pile up.
  1822. # Strip out --silent because we don't want to record it for future runs.
  1823. # Also quote any args containing shell meta-characters.
  1824. # Make two passes to allow for proper duplicate-argument suppression.
  1825. ac_configure_args=
  1826. ac_configure_args0=
  1827. ac_configure_args1=
  1828. ac_must_keep_next=false
  1829. for ac_pass in 1 2
  1830. do
  1831. for ac_arg
  1832. do
  1833. case $ac_arg in
  1834. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1835. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1836. | -silent | --silent | --silen | --sile | --sil)
  1837. continue ;;
  1838. *\'*)
  1839. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1840. esac
  1841. case $ac_pass in
  1842. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1843. 2)
  1844. as_fn_append ac_configure_args1 " '$ac_arg'"
  1845. if test $ac_must_keep_next = true; then
  1846. ac_must_keep_next=false # Got value, back to normal.
  1847. else
  1848. case $ac_arg in
  1849. *=* | --config-cache | -C | -disable-* | --disable-* \
  1850. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1851. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1852. | -with-* | --with-* | -without-* | --without-* | --x)
  1853. case "$ac_configure_args0 " in
  1854. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1855. esac
  1856. ;;
  1857. -* ) ac_must_keep_next=true ;;
  1858. esac
  1859. fi
  1860. as_fn_append ac_configure_args " '$ac_arg'"
  1861. ;;
  1862. esac
  1863. done
  1864. done
  1865. { ac_configure_args0=; unset ac_configure_args0;}
  1866. { ac_configure_args1=; unset ac_configure_args1;}
  1867. # When interrupted or exit'd, cleanup temporary files, and complete
  1868. # config.log. We remove comments because anyway the quotes in there
  1869. # would cause problems or look ugly.
  1870. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1871. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1872. trap 'exit_status=$?
  1873. # Save into config.log some information that might help in debugging.
  1874. {
  1875. echo
  1876. $as_echo "## ---------------- ##
  1877. ## Cache variables. ##
  1878. ## ---------------- ##"
  1879. echo
  1880. # The following way of writing the cache mishandles newlines in values,
  1881. (
  1882. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1883. eval ac_val=\$$ac_var
  1884. case $ac_val in #(
  1885. *${as_nl}*)
  1886. case $ac_var in #(
  1887. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1888. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1889. esac
  1890. case $ac_var in #(
  1891. _ | IFS | as_nl) ;; #(
  1892. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1893. *) { eval $ac_var=; unset $ac_var;} ;;
  1894. esac ;;
  1895. esac
  1896. done
  1897. (set) 2>&1 |
  1898. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1899. *${as_nl}ac_space=\ *)
  1900. sed -n \
  1901. "s/'\''/'\''\\\\'\'''\''/g;
  1902. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1903. ;; #(
  1904. *)
  1905. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1906. ;;
  1907. esac |
  1908. sort
  1909. )
  1910. echo
  1911. $as_echo "## ----------------- ##
  1912. ## Output variables. ##
  1913. ## ----------------- ##"
  1914. echo
  1915. for ac_var in $ac_subst_vars
  1916. do
  1917. eval ac_val=\$$ac_var
  1918. case $ac_val in
  1919. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1920. esac
  1921. $as_echo "$ac_var='\''$ac_val'\''"
  1922. done | sort
  1923. echo
  1924. if test -n "$ac_subst_files"; then
  1925. $as_echo "## ------------------- ##
  1926. ## File substitutions. ##
  1927. ## ------------------- ##"
  1928. echo
  1929. for ac_var in $ac_subst_files
  1930. do
  1931. eval ac_val=\$$ac_var
  1932. case $ac_val in
  1933. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1934. esac
  1935. $as_echo "$ac_var='\''$ac_val'\''"
  1936. done | sort
  1937. echo
  1938. fi
  1939. if test -s confdefs.h; then
  1940. $as_echo "## ----------- ##
  1941. ## confdefs.h. ##
  1942. ## ----------- ##"
  1943. echo
  1944. cat confdefs.h
  1945. echo
  1946. fi
  1947. test "$ac_signal" != 0 &&
  1948. $as_echo "$as_me: caught signal $ac_signal"
  1949. $as_echo "$as_me: exit $exit_status"
  1950. } >&5
  1951. rm -f core *.core core.conftest.* &&
  1952. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1953. exit $exit_status
  1954. ' 0
  1955. for ac_signal in 1 2 13 15; do
  1956. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1957. done
  1958. ac_signal=0
  1959. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1960. rm -f -r conftest* confdefs.h
  1961. $as_echo "/* confdefs.h */" > confdefs.h
  1962. # Predefined preprocessor variables.
  1963. cat >>confdefs.h <<_ACEOF
  1964. #define PACKAGE_NAME "$PACKAGE_NAME"
  1965. _ACEOF
  1966. cat >>confdefs.h <<_ACEOF
  1967. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1968. _ACEOF
  1969. cat >>confdefs.h <<_ACEOF
  1970. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1971. _ACEOF
  1972. cat >>confdefs.h <<_ACEOF
  1973. #define PACKAGE_STRING "$PACKAGE_STRING"
  1974. _ACEOF
  1975. cat >>confdefs.h <<_ACEOF
  1976. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1977. _ACEOF
  1978. cat >>confdefs.h <<_ACEOF
  1979. #define PACKAGE_URL "$PACKAGE_URL"
  1980. _ACEOF
  1981. # Let the site file select an alternate cache file if it wants to.
  1982. # Prefer an explicitly selected file to automatically selected ones.
  1983. ac_site_file1=NONE
  1984. ac_site_file2=NONE
  1985. if test -n "$CONFIG_SITE"; then
  1986. # We do not want a PATH search for config.site.
  1987. case $CONFIG_SITE in #((
  1988. -*) ac_site_file1=./$CONFIG_SITE;;
  1989. */*) ac_site_file1=$CONFIG_SITE;;
  1990. *) ac_site_file1=./$CONFIG_SITE;;
  1991. esac
  1992. elif test "x$prefix" != xNONE; then
  1993. ac_site_file1=$prefix/share/config.site
  1994. ac_site_file2=$prefix/etc/config.site
  1995. else
  1996. ac_site_file1=$ac_default_prefix/share/config.site
  1997. ac_site_file2=$ac_default_prefix/etc/config.site
  1998. fi
  1999. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2000. do
  2001. test "x$ac_site_file" = xNONE && continue
  2002. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2004. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2005. sed 's/^/| /' "$ac_site_file" >&5
  2006. . "$ac_site_file" \
  2007. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2008. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2009. as_fn_error $? "failed to load site script $ac_site_file
  2010. See \`config.log' for more details" "$LINENO" 5; }
  2011. fi
  2012. done
  2013. # Check that the precious variables saved in the cache have kept the same
  2014. # value.
  2015. ac_cache_corrupted=false
  2016. for ac_var in $ac_precious_vars; do
  2017. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2018. eval ac_new_set=\$ac_env_${ac_var}_set
  2019. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2020. eval ac_new_val=\$ac_env_${ac_var}_value
  2021. case $ac_old_set,$ac_new_set in
  2022. set,)
  2023. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2024. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2025. ac_cache_corrupted=: ;;
  2026. ,set)
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2028. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2029. ac_cache_corrupted=: ;;
  2030. ,);;
  2031. *)
  2032. if test "x$ac_old_val" != "x$ac_new_val"; then
  2033. # differences in whitespace do not lead to failure.
  2034. ac_old_val_w=`echo x $ac_old_val`
  2035. ac_new_val_w=`echo x $ac_new_val`
  2036. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2037. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2038. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2039. ac_cache_corrupted=:
  2040. else
  2041. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2042. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2043. eval $ac_var=\$ac_old_val
  2044. fi
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2046. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2048. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2049. fi;;
  2050. esac
  2051. # Pass precious variables to config.status.
  2052. if test "$ac_new_set" = set; then
  2053. case $ac_new_val in
  2054. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2055. *) ac_arg=$ac_var=$ac_new_val ;;
  2056. esac
  2057. case " $ac_configure_args " in
  2058. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2059. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2060. esac
  2061. fi
  2062. done
  2063. if $ac_cache_corrupted; then
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2065. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2067. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2068. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2069. fi
  2070. ## -------------------- ##
  2071. ## Main body of script. ##
  2072. ## -------------------- ##
  2073. ac_ext=c
  2074. ac_cpp='$CPP $CPPFLAGS'
  2075. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2076. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2077. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2078. ac_config_headers="$ac_config_headers config.h"
  2079. test "$program_prefix" != NONE &&
  2080. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2081. # Use a double $ so make ignores it.
  2082. test "$program_suffix" != NONE &&
  2083. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2084. # Double any \ or $.
  2085. # By default was `s,x,x', remove it if useless.
  2086. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2087. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2088. PACKAGE="gmm"
  2089. MAJOR_VERSION="4"
  2090. MINOR_VERSION="2"
  2091. VERSION=$MAJOR_VERSION.$MINOR_VERSION
  2092. echo "configuring $PACKAGE $VERSION..."
  2093. am__api_version='1.11'
  2094. ac_aux_dir=
  2095. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2096. if test -f "$ac_dir/install-sh"; then
  2097. ac_aux_dir=$ac_dir
  2098. ac_install_sh="$ac_aux_dir/install-sh -c"
  2099. break
  2100. elif test -f "$ac_dir/install.sh"; then
  2101. ac_aux_dir=$ac_dir
  2102. ac_install_sh="$ac_aux_dir/install.sh -c"
  2103. break
  2104. elif test -f "$ac_dir/shtool"; then
  2105. ac_aux_dir=$ac_dir
  2106. ac_install_sh="$ac_aux_dir/shtool install -c"
  2107. break
  2108. fi
  2109. done
  2110. if test -z "$ac_aux_dir"; then
  2111. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2112. fi
  2113. # These three variables are undocumented and unsupported,
  2114. # and are intended to be withdrawn in a future Autoconf release.
  2115. # They can cause serious problems if a builder's source tree is in a directory
  2116. # whose full name contains unusual characters.
  2117. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2118. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2119. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2120. # Find a good install program. We prefer a C program (faster),
  2121. # so one script is as good as another. But avoid the broken or
  2122. # incompatible versions:
  2123. # SysV /etc/install, /usr/sbin/install
  2124. # SunOS /usr/etc/install
  2125. # IRIX /sbin/install
  2126. # AIX /bin/install
  2127. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2128. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2129. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2130. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2131. # OS/2's system install, which has a completely different semantic
  2132. # ./install, which can be erroneously created by make from ./install.sh.
  2133. # Reject install programs that cannot install multiple files.
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2135. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2136. if test -z "$INSTALL"; then
  2137. if ${ac_cv_path_install+:} false; then :
  2138. $as_echo_n "(cached) " >&6
  2139. else
  2140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2141. for as_dir in $PATH
  2142. do
  2143. IFS=$as_save_IFS
  2144. test -z "$as_dir" && as_dir=.
  2145. # Account for people who put trailing slashes in PATH elements.
  2146. case $as_dir/ in #((
  2147. ./ | .// | /[cC]/* | \
  2148. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2149. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2150. /usr/ucb/* ) ;;
  2151. *)
  2152. # OSF1 and SCO ODT 3.0 have their own names for install.
  2153. # Don't use installbsd from OSF since it installs stuff as root
  2154. # by default.
  2155. for ac_prog in ginstall scoinst install; do
  2156. for ac_exec_ext in '' $ac_executable_extensions; do
  2157. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2158. if test $ac_prog = install &&
  2159. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2160. # AIX install. It has an incompatible calling convention.
  2161. :
  2162. elif test $ac_prog = install &&
  2163. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2164. # program-specific install script used by HP pwplus--don't use.
  2165. :
  2166. else
  2167. rm -rf conftest.one conftest.two conftest.dir
  2168. echo one > conftest.one
  2169. echo two > conftest.two
  2170. mkdir conftest.dir
  2171. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2172. test -s conftest.one && test -s conftest.two &&
  2173. test -s conftest.dir/conftest.one &&
  2174. test -s conftest.dir/conftest.two
  2175. then
  2176. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2177. break 3
  2178. fi
  2179. fi
  2180. fi
  2181. done
  2182. done
  2183. ;;
  2184. esac
  2185. done
  2186. IFS=$as_save_IFS
  2187. rm -rf conftest.one conftest.two conftest.dir
  2188. fi
  2189. if test "${ac_cv_path_install+set}" = set; then
  2190. INSTALL=$ac_cv_path_install
  2191. else
  2192. # As a last resort, use the slow shell script. Don't cache a
  2193. # value for INSTALL within a source directory, because that will
  2194. # break other packages using the cache if that directory is
  2195. # removed, or if the value is a relative name.
  2196. INSTALL=$ac_install_sh
  2197. fi
  2198. fi
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2200. $as_echo "$INSTALL" >&6; }
  2201. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2202. # It thinks the first close brace ends the variable substitution.
  2203. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2204. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2205. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2207. $as_echo_n "checking whether build environment is sane... " >&6; }
  2208. # Just in case
  2209. sleep 1
  2210. echo timestamp > conftest.file
  2211. # Reject unsafe characters in $srcdir or the absolute working directory
  2212. # name. Accept space and tab only in the latter.
  2213. am_lf='
  2214. '
  2215. case `pwd` in
  2216. *[\\\"\#\$\&\'\`$am_lf]*)
  2217. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2218. esac
  2219. case $srcdir in
  2220. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2221. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2222. esac
  2223. # Do `set' in a subshell so we don't clobber the current shell's
  2224. # arguments. Must try -L first in case configure is actually a
  2225. # symlink; some systems play weird games with the mod time of symlinks
  2226. # (eg FreeBSD returns the mod time of the symlink's containing
  2227. # directory).
  2228. if (
  2229. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2230. if test "$*" = "X"; then
  2231. # -L didn't work.
  2232. set X `ls -t "$srcdir/configure" conftest.file`
  2233. fi
  2234. rm -f conftest.file
  2235. if test "$*" != "X $srcdir/configure conftest.file" \
  2236. && test "$*" != "X conftest.file $srcdir/configure"; then
  2237. # If neither matched, then we have a broken ls. This can happen
  2238. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2239. # broken ls alias from the environment. This has actually
  2240. # happened. Such a system could not be considered "sane".
  2241. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2242. alias in your environment" "$LINENO" 5
  2243. fi
  2244. test "$2" = conftest.file
  2245. )
  2246. then
  2247. # Ok.
  2248. :
  2249. else
  2250. as_fn_error $? "newly created file is older than distributed files!
  2251. Check your system clock" "$LINENO" 5
  2252. fi
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2254. $as_echo "yes" >&6; }
  2255. # expand $ac_aux_dir to an absolute path
  2256. am_aux_dir=`cd $ac_aux_dir && pwd`
  2257. if test x"${MISSING+set}" != xset; then
  2258. case $am_aux_dir in
  2259. *\ * | *\ *)
  2260. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2261. *)
  2262. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2263. esac
  2264. fi
  2265. # Use eval to expand $SHELL
  2266. if eval "$MISSING --run true"; then
  2267. am_missing_run="$MISSING --run "
  2268. else
  2269. am_missing_run=
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2271. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2272. fi
  2273. if test x"${install_sh}" != xset; then
  2274. case $am_aux_dir in
  2275. *\ * | *\ *)
  2276. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2277. *)
  2278. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2279. esac
  2280. fi
  2281. # Installed binaries are usually stripped using `strip' when the user
  2282. # run `make install-strip'. However `strip' might not be the right
  2283. # tool to use in cross-compilation environments, therefore Automake
  2284. # will honor the `STRIP' environment variable to overrule this program.
  2285. if test "$cross_compiling" != no; then
  2286. if test -n "$ac_tool_prefix"; then
  2287. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2288. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2290. $as_echo_n "checking for $ac_word... " >&6; }
  2291. if ${ac_cv_prog_STRIP+:} false; then :
  2292. $as_echo_n "(cached) " >&6
  2293. else
  2294. if test -n "$STRIP"; then
  2295. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2296. else
  2297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2298. for as_dir in $PATH
  2299. do
  2300. IFS=$as_save_IFS
  2301. test -z "$as_dir" && as_dir=.
  2302. for ac_exec_ext in '' $ac_executable_extensions; do
  2303. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2304. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2306. break 2
  2307. fi
  2308. done
  2309. done
  2310. IFS=$as_save_IFS
  2311. fi
  2312. fi
  2313. STRIP=$ac_cv_prog_STRIP
  2314. if test -n "$STRIP"; then
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2316. $as_echo "$STRIP" >&6; }
  2317. else
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2319. $as_echo "no" >&6; }
  2320. fi
  2321. fi
  2322. if test -z "$ac_cv_prog_STRIP"; then
  2323. ac_ct_STRIP=$STRIP
  2324. # Extract the first word of "strip", so it can be a program name with args.
  2325. set dummy strip; ac_word=$2
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2327. $as_echo_n "checking for $ac_word... " >&6; }
  2328. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2329. $as_echo_n "(cached) " >&6
  2330. else
  2331. if test -n "$ac_ct_STRIP"; then
  2332. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2333. else
  2334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2335. for as_dir in $PATH
  2336. do
  2337. IFS=$as_save_IFS
  2338. test -z "$as_dir" && as_dir=.
  2339. for ac_exec_ext in '' $ac_executable_extensions; do
  2340. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2341. ac_cv_prog_ac_ct_STRIP="strip"
  2342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2343. break 2
  2344. fi
  2345. done
  2346. done
  2347. IFS=$as_save_IFS
  2348. fi
  2349. fi
  2350. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2351. if test -n "$ac_ct_STRIP"; then
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2353. $as_echo "$ac_ct_STRIP" >&6; }
  2354. else
  2355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2356. $as_echo "no" >&6; }
  2357. fi
  2358. if test "x$ac_ct_STRIP" = x; then
  2359. STRIP=":"
  2360. else
  2361. case $cross_compiling:$ac_tool_warned in
  2362. yes:)
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2364. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2365. ac_tool_warned=yes ;;
  2366. esac
  2367. STRIP=$ac_ct_STRIP
  2368. fi
  2369. else
  2370. STRIP="$ac_cv_prog_STRIP"
  2371. fi
  2372. fi
  2373. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2375. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2376. if test -z "$MKDIR_P"; then
  2377. if ${ac_cv_path_mkdir+:} false; then :
  2378. $as_echo_n "(cached) " >&6
  2379. else
  2380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2381. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2382. do
  2383. IFS=$as_save_IFS
  2384. test -z "$as_dir" && as_dir=.
  2385. for ac_prog in mkdir gmkdir; do
  2386. for ac_exec_ext in '' $ac_executable_extensions; do
  2387. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2388. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2389. 'mkdir (GNU coreutils) '* | \
  2390. 'mkdir (coreutils) '* | \
  2391. 'mkdir (fileutils) '4.1*)
  2392. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2393. break 3;;
  2394. esac
  2395. done
  2396. done
  2397. done
  2398. IFS=$as_save_IFS
  2399. fi
  2400. test -d ./--version && rmdir ./--version
  2401. if test "${ac_cv_path_mkdir+set}" = set; then
  2402. MKDIR_P="$ac_cv_path_mkdir -p"
  2403. else
  2404. # As a last resort, use the slow shell script. Don't cache a
  2405. # value for MKDIR_P within a source directory, because that will
  2406. # break other packages using the cache if that directory is
  2407. # removed, or if the value is a relative name.
  2408. MKDIR_P="$ac_install_sh -d"
  2409. fi
  2410. fi
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2412. $as_echo "$MKDIR_P" >&6; }
  2413. mkdir_p="$MKDIR_P"
  2414. case $mkdir_p in
  2415. [\\/$]* | ?:[\\/]*) ;;
  2416. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2417. esac
  2418. for ac_prog in gawk mawk nawk awk
  2419. do
  2420. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2421. set dummy $ac_prog; ac_word=$2
  2422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2423. $as_echo_n "checking for $ac_word... " >&6; }
  2424. if ${ac_cv_prog_AWK+:} false; then :
  2425. $as_echo_n "(cached) " >&6
  2426. else
  2427. if test -n "$AWK"; then
  2428. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2429. else
  2430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2431. for as_dir in $PATH
  2432. do
  2433. IFS=$as_save_IFS
  2434. test -z "$as_dir" && as_dir=.
  2435. for ac_exec_ext in '' $ac_executable_extensions; do
  2436. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2437. ac_cv_prog_AWK="$ac_prog"
  2438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2439. break 2
  2440. fi
  2441. done
  2442. done
  2443. IFS=$as_save_IFS
  2444. fi
  2445. fi
  2446. AWK=$ac_cv_prog_AWK
  2447. if test -n "$AWK"; then
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2449. $as_echo "$AWK" >&6; }
  2450. else
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2452. $as_echo "no" >&6; }
  2453. fi
  2454. test -n "$AWK" && break
  2455. done
  2456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2457. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2458. set x ${MAKE-make}
  2459. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2460. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2461. $as_echo_n "(cached) " >&6
  2462. else
  2463. cat >conftest.make <<\_ACEOF
  2464. SHELL = /bin/sh
  2465. all:
  2466. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2467. _ACEOF
  2468. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2469. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2470. *@@@%%%=?*=@@@%%%*)
  2471. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2472. *)
  2473. eval ac_cv_prog_make_${ac_make}_set=no;;
  2474. esac
  2475. rm -f conftest.make
  2476. fi
  2477. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2479. $as_echo "yes" >&6; }
  2480. SET_MAKE=
  2481. else
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2483. $as_echo "no" >&6; }
  2484. SET_MAKE="MAKE=${MAKE-make}"
  2485. fi
  2486. rm -rf .tst 2>/dev/null
  2487. mkdir .tst 2>/dev/null
  2488. if test -d .tst; then
  2489. am__leading_dot=.
  2490. else
  2491. am__leading_dot=_
  2492. fi
  2493. rmdir .tst 2>/dev/null
  2494. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2495. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2496. # is not polluted with repeated "-I."
  2497. am__isrc=' -I$(srcdir)'
  2498. # test to see if srcdir already configured
  2499. if test -f $srcdir/config.status; then
  2500. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2501. fi
  2502. fi
  2503. # test whether we have cygpath
  2504. if test -z "$CYGPATH_W"; then
  2505. if (cygpath --version) >/dev/null 2>/dev/null; then
  2506. CYGPATH_W='cygpath -w'
  2507. else
  2508. CYGPATH_W=echo
  2509. fi
  2510. fi
  2511. # Define the identity of the package.
  2512. PACKAGE=$PACKAGE
  2513. VERSION=$VERSION
  2514. cat >>confdefs.h <<_ACEOF
  2515. #define PACKAGE "$PACKAGE"
  2516. _ACEOF
  2517. cat >>confdefs.h <<_ACEOF
  2518. #define VERSION "$VERSION"
  2519. _ACEOF
  2520. # Some tools Automake needs.
  2521. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2522. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2523. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2524. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2525. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2526. # We need awk for the "check" target. The system "awk" is bad on
  2527. # some platforms.
  2528. # Always define AMTAR for backward compatibility. Yes, it's still used
  2529. # in the wild :-( We should find a proper way to deprecate it ...
  2530. AMTAR='$${TAR-tar}'
  2531. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2532. USER_CXXFLAGS="$CXXFLAGS"
  2533. ac_ext=cpp
  2534. ac_cpp='$CXXCPP $CPPFLAGS'
  2535. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2536. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2537. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2538. if test -z "$CXX"; then
  2539. if test -n "$CCC"; then
  2540. CXX=$CCC
  2541. else
  2542. if test -n "$ac_tool_prefix"; then
  2543. for ac_prog in cxx KCC CC cc++ xlC aCC g++ c++ icc
  2544. do
  2545. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2546. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2548. $as_echo_n "checking for $ac_word... " >&6; }
  2549. if ${ac_cv_prog_CXX+:} false; then :
  2550. $as_echo_n "(cached) " >&6
  2551. else
  2552. if test -n "$CXX"; then
  2553. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2554. else
  2555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2556. for as_dir in $PATH
  2557. do
  2558. IFS=$as_save_IFS
  2559. test -z "$as_dir" && as_dir=.
  2560. for ac_exec_ext in '' $ac_executable_extensions; do
  2561. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2562. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2564. break 2
  2565. fi
  2566. done
  2567. done
  2568. IFS=$as_save_IFS
  2569. fi
  2570. fi
  2571. CXX=$ac_cv_prog_CXX
  2572. if test -n "$CXX"; then
  2573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2574. $as_echo "$CXX" >&6; }
  2575. else
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2577. $as_echo "no" >&6; }
  2578. fi
  2579. test -n "$CXX" && break
  2580. done
  2581. fi
  2582. if test -z "$CXX"; then
  2583. ac_ct_CXX=$CXX
  2584. for ac_prog in cxx KCC CC cc++ xlC aCC g++ c++ icc
  2585. do
  2586. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2587. set dummy $ac_prog; ac_word=$2
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2589. $as_echo_n "checking for $ac_word... " >&6; }
  2590. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2591. $as_echo_n "(cached) " >&6
  2592. else
  2593. if test -n "$ac_ct_CXX"; then
  2594. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2595. else
  2596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2597. for as_dir in $PATH
  2598. do
  2599. IFS=$as_save_IFS
  2600. test -z "$as_dir" && as_dir=.
  2601. for ac_exec_ext in '' $ac_executable_extensions; do
  2602. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2603. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2605. break 2
  2606. fi
  2607. done
  2608. done
  2609. IFS=$as_save_IFS
  2610. fi
  2611. fi
  2612. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2613. if test -n "$ac_ct_CXX"; then
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2615. $as_echo "$ac_ct_CXX" >&6; }
  2616. else
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2618. $as_echo "no" >&6; }
  2619. fi
  2620. test -n "$ac_ct_CXX" && break
  2621. done
  2622. if test "x$ac_ct_CXX" = x; then
  2623. CXX="g++"
  2624. else
  2625. case $cross_compiling:$ac_tool_warned in
  2626. yes:)
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2628. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2629. ac_tool_warned=yes ;;
  2630. esac
  2631. CXX=$ac_ct_CXX
  2632. fi
  2633. fi
  2634. fi
  2635. fi
  2636. # Provide some information about the compiler.
  2637. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2638. set X $ac_compile
  2639. ac_compiler=$2
  2640. for ac_option in --version -v -V -qversion; do
  2641. { { ac_try="$ac_compiler $ac_option >&5"
  2642. case "(($ac_try" in
  2643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2644. *) ac_try_echo=$ac_try;;
  2645. esac
  2646. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2647. $as_echo "$ac_try_echo"; } >&5
  2648. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2649. ac_status=$?
  2650. if test -s conftest.err; then
  2651. sed '10a\
  2652. ... rest of stderr output deleted ...
  2653. 10q' conftest.err >conftest.er1
  2654. cat conftest.er1 >&5
  2655. fi
  2656. rm -f conftest.er1 conftest.err
  2657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2658. test $ac_status = 0; }
  2659. done
  2660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2661. /* end confdefs.h. */
  2662. int
  2663. main ()
  2664. {
  2665. ;
  2666. return 0;
  2667. }
  2668. _ACEOF
  2669. ac_clean_files_save=$ac_clean_files
  2670. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2671. # Try to create an executable without -o first, disregard a.out.
  2672. # It will help us diagnose broken compilers, and finding out an intuition
  2673. # of exeext.
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2675. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2676. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2677. # The possible output files:
  2678. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2679. ac_rmfiles=
  2680. for ac_file in $ac_files
  2681. do
  2682. case $ac_file in
  2683. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2684. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2685. esac
  2686. done
  2687. rm -f $ac_rmfiles
  2688. if { { ac_try="$ac_link_default"
  2689. case "(($ac_try" in
  2690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2691. *) ac_try_echo=$ac_try;;
  2692. esac
  2693. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2694. $as_echo "$ac_try_echo"; } >&5
  2695. (eval "$ac_link_default") 2>&5
  2696. ac_status=$?
  2697. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2698. test $ac_status = 0; }; then :
  2699. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2700. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2701. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2702. # so that the user can short-circuit this test for compilers unknown to
  2703. # Autoconf.
  2704. for ac_file in $ac_files ''
  2705. do
  2706. test -f "$ac_file" || continue
  2707. case $ac_file in
  2708. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2709. ;;
  2710. [ab].out )
  2711. # We found the default executable, but exeext='' is most
  2712. # certainly right.
  2713. break;;
  2714. *.* )
  2715. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2716. then :; else
  2717. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2718. fi
  2719. # We set ac_cv_exeext here because the later test for it is not
  2720. # safe: cross compilers may not add the suffix if given an `-o'
  2721. # argument, so we may need to know it at that point already.
  2722. # Even if this section looks crufty: it has the advantage of
  2723. # actually working.
  2724. break;;
  2725. * )
  2726. break;;
  2727. esac
  2728. done
  2729. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2730. else
  2731. ac_file=''
  2732. fi
  2733. if test -z "$ac_file"; then :
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2735. $as_echo "no" >&6; }
  2736. $as_echo "$as_me: failed program was:" >&5
  2737. sed 's/^/| /' conftest.$ac_ext >&5
  2738. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2739. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2740. as_fn_error 77 "C++ compiler cannot create executables
  2741. See \`config.log' for more details" "$LINENO" 5; }
  2742. else
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2744. $as_echo "yes" >&6; }
  2745. fi
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2747. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2749. $as_echo "$ac_file" >&6; }
  2750. ac_exeext=$ac_cv_exeext
  2751. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2752. ac_clean_files=$ac_clean_files_save
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2754. $as_echo_n "checking for suffix of executables... " >&6; }
  2755. if { { ac_try="$ac_link"
  2756. case "(($ac_try" in
  2757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2758. *) ac_try_echo=$ac_try;;
  2759. esac
  2760. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2761. $as_echo "$ac_try_echo"; } >&5
  2762. (eval "$ac_link") 2>&5
  2763. ac_status=$?
  2764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2765. test $ac_status = 0; }; then :
  2766. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2767. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2768. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2769. # `rm'.
  2770. for ac_file in conftest.exe conftest conftest.*; do
  2771. test -f "$ac_file" || continue
  2772. case $ac_file in
  2773. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2774. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2775. break;;
  2776. * ) break;;
  2777. esac
  2778. done
  2779. else
  2780. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2781. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2782. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2783. See \`config.log' for more details" "$LINENO" 5; }
  2784. fi
  2785. rm -f conftest conftest$ac_cv_exeext
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2787. $as_echo "$ac_cv_exeext" >&6; }
  2788. rm -f conftest.$ac_ext
  2789. EXEEXT=$ac_cv_exeext
  2790. ac_exeext=$EXEEXT
  2791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2792. /* end confdefs.h. */
  2793. #include <stdio.h>
  2794. int
  2795. main ()
  2796. {
  2797. FILE *f = fopen ("conftest.out", "w");
  2798. return ferror (f) || fclose (f) != 0;
  2799. ;
  2800. return 0;
  2801. }
  2802. _ACEOF
  2803. ac_clean_files="$ac_clean_files conftest.out"
  2804. # Check that the compiler produces executables we can run. If not, either
  2805. # the compiler is broken, or we cross compile.
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2807. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2808. if test "$cross_compiling" != yes; then
  2809. { { ac_try="$ac_link"
  2810. case "(($ac_try" in
  2811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2812. *) ac_try_echo=$ac_try;;
  2813. esac
  2814. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2815. $as_echo "$ac_try_echo"; } >&5
  2816. (eval "$ac_link") 2>&5
  2817. ac_status=$?
  2818. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2819. test $ac_status = 0; }
  2820. if { ac_try='./conftest$ac_cv_exeext'
  2821. { { case "(($ac_try" in
  2822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2823. *) ac_try_echo=$ac_try;;
  2824. esac
  2825. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2826. $as_echo "$ac_try_echo"; } >&5
  2827. (eval "$ac_try") 2>&5
  2828. ac_status=$?
  2829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2830. test $ac_status = 0; }; }; then
  2831. cross_compiling=no
  2832. else
  2833. if test "$cross_compiling" = maybe; then
  2834. cross_compiling=yes
  2835. else
  2836. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2837. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2838. as_fn_error $? "cannot run C++ compiled programs.
  2839. If you meant to cross compile, use \`--host'.
  2840. See \`config.log' for more details" "$LINENO" 5; }
  2841. fi
  2842. fi
  2843. fi
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2845. $as_echo "$cross_compiling" >&6; }
  2846. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2847. ac_clean_files=$ac_clean_files_save
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2849. $as_echo_n "checking for suffix of object files... " >&6; }
  2850. if ${ac_cv_objext+:} false; then :
  2851. $as_echo_n "(cached) " >&6
  2852. else
  2853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2854. /* end confdefs.h. */
  2855. int
  2856. main ()
  2857. {
  2858. ;
  2859. return 0;
  2860. }
  2861. _ACEOF
  2862. rm -f conftest.o conftest.obj
  2863. if { { ac_try="$ac_compile"
  2864. case "(($ac_try" in
  2865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2866. *) ac_try_echo=$ac_try;;
  2867. esac
  2868. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2869. $as_echo "$ac_try_echo"; } >&5
  2870. (eval "$ac_compile") 2>&5
  2871. ac_status=$?
  2872. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2873. test $ac_status = 0; }; then :
  2874. for ac_file in conftest.o conftest.obj conftest.*; do
  2875. test -f "$ac_file" || continue;
  2876. case $ac_file in
  2877. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2878. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2879. break;;
  2880. esac
  2881. done
  2882. else
  2883. $as_echo "$as_me: failed program was:" >&5
  2884. sed 's/^/| /' conftest.$ac_ext >&5
  2885. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2886. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2887. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2888. See \`config.log' for more details" "$LINENO" 5; }
  2889. fi
  2890. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2891. fi
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2893. $as_echo "$ac_cv_objext" >&6; }
  2894. OBJEXT=$ac_cv_objext
  2895. ac_objext=$OBJEXT
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2897. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2898. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2899. $as_echo_n "(cached) " >&6
  2900. else
  2901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2902. /* end confdefs.h. */
  2903. int
  2904. main ()
  2905. {
  2906. #ifndef __GNUC__
  2907. choke me
  2908. #endif
  2909. ;
  2910. return 0;
  2911. }
  2912. _ACEOF
  2913. if ac_fn_cxx_try_compile "$LINENO"; then :
  2914. ac_compiler_gnu=yes
  2915. else
  2916. ac_compiler_gnu=no
  2917. fi
  2918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2919. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2920. fi
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2922. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2923. if test $ac_compiler_gnu = yes; then
  2924. GXX=yes
  2925. else
  2926. GXX=
  2927. fi
  2928. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2929. ac_save_CXXFLAGS=$CXXFLAGS
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2931. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2932. if ${ac_cv_prog_cxx_g+:} false; then :
  2933. $as_echo_n "(cached) " >&6
  2934. else
  2935. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2936. ac_cxx_werror_flag=yes
  2937. ac_cv_prog_cxx_g=no
  2938. CXXFLAGS="-g"
  2939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2940. /* end confdefs.h. */
  2941. int
  2942. main ()
  2943. {
  2944. ;
  2945. return 0;
  2946. }
  2947. _ACEOF
  2948. if ac_fn_cxx_try_compile "$LINENO"; then :
  2949. ac_cv_prog_cxx_g=yes
  2950. else
  2951. CXXFLAGS=""
  2952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2953. /* end confdefs.h. */
  2954. int
  2955. main ()
  2956. {
  2957. ;
  2958. return 0;
  2959. }
  2960. _ACEOF
  2961. if ac_fn_cxx_try_compile "$LINENO"; then :
  2962. else
  2963. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2964. CXXFLAGS="-g"
  2965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2966. /* end confdefs.h. */
  2967. int
  2968. main ()
  2969. {
  2970. ;
  2971. return 0;
  2972. }
  2973. _ACEOF
  2974. if ac_fn_cxx_try_compile "$LINENO"; then :
  2975. ac_cv_prog_cxx_g=yes
  2976. fi
  2977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2978. fi
  2979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2980. fi
  2981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2982. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2983. fi
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2985. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2986. if test "$ac_test_CXXFLAGS" = set; then
  2987. CXXFLAGS=$ac_save_CXXFLAGS
  2988. elif test $ac_cv_prog_cxx_g = yes; then
  2989. if test "$GXX" = yes; then
  2990. CXXFLAGS="-g -O2"
  2991. else
  2992. CXXFLAGS="-g"
  2993. fi
  2994. else
  2995. if test "$GXX" = yes; then
  2996. CXXFLAGS="-O2"
  2997. else
  2998. CXXFLAGS=
  2999. fi
  3000. fi
  3001. ac_ext=c
  3002. ac_cpp='$CPP $CPPFLAGS'
  3003. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3004. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3005. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3006. DEPDIR="${am__leading_dot}deps"
  3007. ac_config_commands="$ac_config_commands depfiles"
  3008. am_make=${MAKE-make}
  3009. cat > confinc << 'END'
  3010. am__doit:
  3011. @echo this is the am__doit target
  3012. .PHONY: am__doit
  3013. END
  3014. # If we don't find an include directive, just comment out the code.
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3016. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3017. am__include="#"
  3018. am__quote=
  3019. _am_result=none
  3020. # First try GNU make style include.
  3021. echo "include confinc" > confmf
  3022. # Ignore all kinds of additional output from `make'.
  3023. case `$am_make -s -f confmf 2> /dev/null` in #(
  3024. *the\ am__doit\ target*)
  3025. am__include=include
  3026. am__quote=
  3027. _am_result=GNU
  3028. ;;
  3029. esac
  3030. # Now try BSD make style include.
  3031. if test "$am__include" = "#"; then
  3032. echo '.include "confinc"' > confmf
  3033. case `$am_make -s -f confmf 2> /dev/null` in #(
  3034. *the\ am__doit\ target*)
  3035. am__include=.include
  3036. am__quote="\""
  3037. _am_result=BSD
  3038. ;;
  3039. esac
  3040. fi
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3042. $as_echo "$_am_result" >&6; }
  3043. rm -f confinc confmf
  3044. # Check whether --enable-dependency-tracking was given.
  3045. if test "${enable_dependency_tracking+set}" = set; then :
  3046. enableval=$enable_dependency_tracking;
  3047. fi
  3048. if test "x$enable_dependency_tracking" != xno; then
  3049. am_depcomp="$ac_aux_dir/depcomp"
  3050. AMDEPBACKSLASH='\'
  3051. am__nodep='_no'
  3052. fi
  3053. if test "x$enable_dependency_tracking" != xno; then
  3054. AMDEP_TRUE=
  3055. AMDEP_FALSE='#'
  3056. else
  3057. AMDEP_TRUE='#'
  3058. AMDEP_FALSE=
  3059. fi
  3060. depcc="$CXX" am_compiler_list=
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3062. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3063. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3064. $as_echo_n "(cached) " >&6
  3065. else
  3066. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3067. # We make a subdir and do the tests there. Otherwise we can end up
  3068. # making bogus files that we don't know about and never remove. For
  3069. # instance it was reported that on HP-UX the gcc test will end up
  3070. # making a dummy file named `D' -- because `-MD' means `put the output
  3071. # in D'.
  3072. rm -rf conftest.dir
  3073. mkdir conftest.dir
  3074. # Copy depcomp to subdir because otherwise we won't find it if we're
  3075. # using a relative directory.
  3076. cp "$am_depcomp" conftest.dir
  3077. cd conftest.dir
  3078. # We will build objects and dependencies in a subdirectory because
  3079. # it helps to detect inapplicable dependency modes. For instance
  3080. # both Tru64's cc and ICC support -MD to output dependencies as a
  3081. # side effect of compilation, but ICC will put the dependencies in
  3082. # the current directory while Tru64 will put them in the object
  3083. # directory.
  3084. mkdir sub
  3085. am_cv_CXX_dependencies_compiler_type=none
  3086. if test "$am_compiler_list" = ""; then
  3087. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3088. fi
  3089. am__universal=false
  3090. case " $depcc " in #(
  3091. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3092. esac
  3093. for depmode in $am_compiler_list; do
  3094. # Setup a source with many dependencies, because some compilers
  3095. # like to wrap large dependency lists on column 80 (with \), and
  3096. # we should not choose a depcomp mode which is confused by this.
  3097. #
  3098. # We need to recreate these files for each test, as the compiler may
  3099. # overwrite some of them when testing with obscure command lines.
  3100. # This happens at least with the AIX C compiler.
  3101. : > sub/conftest.c
  3102. for i in 1 2 3 4 5 6; do
  3103. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3104. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3105. # Solaris 8's {/usr,}/bin/sh.
  3106. touch sub/conftst$i.h
  3107. done
  3108. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3109. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3110. # mode. It turns out that the SunPro C++ compiler does not properly
  3111. # handle `-M -o', and we need to detect this. Also, some Intel
  3112. # versions had trouble with output in subdirs
  3113. am__obj=sub/conftest.${OBJEXT-o}
  3114. am__minus_obj="-o $am__obj"
  3115. case $depmode in
  3116. gcc)
  3117. # This depmode causes a compiler race in universal mode.
  3118. test "$am__universal" = false || continue
  3119. ;;
  3120. nosideeffect)
  3121. # after this tag, mechanisms are not by side-effect, so they'll
  3122. # only be used when explicitly requested
  3123. if test "x$enable_dependency_tracking" = xyes; then
  3124. continue
  3125. else
  3126. break
  3127. fi
  3128. ;;
  3129. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3130. # This compiler won't grok `-c -o', but also, the minuso test has
  3131. # not run yet. These depmodes are late enough in the game, and
  3132. # so weak that their functioning should not be impacted.
  3133. am__obj=conftest.${OBJEXT-o}
  3134. am__minus_obj=
  3135. ;;
  3136. none) break ;;
  3137. esac
  3138. if depmode=$depmode \
  3139. source=sub/conftest.c object=$am__obj \
  3140. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3141. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3142. >/dev/null 2>conftest.err &&
  3143. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3144. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3145. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3146. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3147. # icc doesn't choke on unknown options, it will just issue warnings
  3148. # or remarks (even with -Werror). So we grep stderr for any message
  3149. # that says an option was ignored or not supported.
  3150. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3151. # icc: Command line warning: ignoring option '-M'; no argument required
  3152. # The diagnosis changed in icc 8.0:
  3153. # icc: Command line remark: option '-MP' not supported
  3154. if (grep 'ignoring option' conftest.err ||
  3155. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3156. am_cv_CXX_dependencies_compiler_type=$depmode
  3157. break
  3158. fi
  3159. fi
  3160. done
  3161. cd ..
  3162. rm -rf conftest.dir
  3163. else
  3164. am_cv_CXX_dependencies_compiler_type=none
  3165. fi
  3166. fi
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3168. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3169. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3170. if
  3171. test "x$enable_dependency_tracking" != xno \
  3172. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3173. am__fastdepCXX_TRUE=
  3174. am__fastdepCXX_FALSE='#'
  3175. else
  3176. am__fastdepCXX_TRUE='#'
  3177. am__fastdepCXX_FALSE=
  3178. fi
  3179. ac_ext=cpp
  3180. ac_cpp='$CXXCPP $CPPFLAGS'
  3181. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3182. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3183. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  3185. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  3186. if test -z "$CXXCPP"; then
  3187. if ${ac_cv_prog_CXXCPP+:} false; then :
  3188. $as_echo_n "(cached) " >&6
  3189. else
  3190. # Double quotes because CXXCPP needs to be expanded
  3191. for CXXCPP in "$CXX -E" "/lib/cpp"
  3192. do
  3193. ac_preproc_ok=false
  3194. for ac_cxx_preproc_warn_flag in '' yes
  3195. do
  3196. # Use a header file that comes with gcc, so configuring glibc
  3197. # with a fresh cross-compiler works.
  3198. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3199. # <limits.h> exists even on freestanding compilers.
  3200. # On the NeXT, cc -E runs the code through the compiler's parser,
  3201. # not just through cpp. "Syntax error" is here to catch this case.
  3202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3203. /* end confdefs.h. */
  3204. #ifdef __STDC__
  3205. # include <limits.h>
  3206. #else
  3207. # include <assert.h>
  3208. #endif
  3209. Syntax error
  3210. _ACEOF
  3211. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3212. else
  3213. # Broken: fails on valid input.
  3214. continue
  3215. fi
  3216. rm -f conftest.err conftest.i conftest.$ac_ext
  3217. # OK, works on sane cases. Now check whether nonexistent headers
  3218. # can be detected and how.
  3219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3220. /* end confdefs.h. */
  3221. #include <ac_nonexistent.h>
  3222. _ACEOF
  3223. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3224. # Broken: success on invalid input.
  3225. continue
  3226. else
  3227. # Passes both tests.
  3228. ac_preproc_ok=:
  3229. break
  3230. fi
  3231. rm -f conftest.err conftest.i conftest.$ac_ext
  3232. done
  3233. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3234. rm -f conftest.i conftest.err conftest.$ac_ext
  3235. if $ac_preproc_ok; then :
  3236. break
  3237. fi
  3238. done
  3239. ac_cv_prog_CXXCPP=$CXXCPP
  3240. fi
  3241. CXXCPP=$ac_cv_prog_CXXCPP
  3242. else
  3243. ac_cv_prog_CXXCPP=$CXXCPP
  3244. fi
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  3246. $as_echo "$CXXCPP" >&6; }
  3247. ac_preproc_ok=false
  3248. for ac_cxx_preproc_warn_flag in '' yes
  3249. do
  3250. # Use a header file that comes with gcc, so configuring glibc
  3251. # with a fresh cross-compiler works.
  3252. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3253. # <limits.h> exists even on freestanding compilers.
  3254. # On the NeXT, cc -E runs the code through the compiler's parser,
  3255. # not just through cpp. "Syntax error" is here to catch this case.
  3256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3257. /* end confdefs.h. */
  3258. #ifdef __STDC__
  3259. # include <limits.h>
  3260. #else
  3261. # include <assert.h>
  3262. #endif
  3263. Syntax error
  3264. _ACEOF
  3265. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3266. else
  3267. # Broken: fails on valid input.
  3268. continue
  3269. fi
  3270. rm -f conftest.err conftest.i conftest.$ac_ext
  3271. # OK, works on sane cases. Now check whether nonexistent headers
  3272. # can be detected and how.
  3273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3274. /* end confdefs.h. */
  3275. #include <ac_nonexistent.h>
  3276. _ACEOF
  3277. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3278. # Broken: success on invalid input.
  3279. continue
  3280. else
  3281. # Passes both tests.
  3282. ac_preproc_ok=:
  3283. break
  3284. fi
  3285. rm -f conftest.err conftest.i conftest.$ac_ext
  3286. done
  3287. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3288. rm -f conftest.i conftest.err conftest.$ac_ext
  3289. if $ac_preproc_ok; then :
  3290. else
  3291. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3292. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3293. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  3294. See \`config.log' for more details" "$LINENO" 5; }
  3295. fi
  3296. ac_ext=c
  3297. ac_cpp='$CPP $CPPFLAGS'
  3298. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3299. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3300. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3301. CXXFLAGS="${USER_CXXFLAGS}"
  3302. SUPLDFLAGS=""
  3303. ac_ext=cpp
  3304. ac_cpp='$CXXCPP $CPPFLAGS'
  3305. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3306. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3307. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3308. if test "x$prefix" = "xNONE"; then
  3309. GFPREFIX=/usr/local;
  3310. else
  3311. GFPREFIX="$prefix";
  3312. fi;
  3313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes the partial specialization syntax" >&5
  3314. $as_echo_n "checking whether the compiler recognizes the partial specialization syntax... " >&6; }
  3315. if ${ac_cv_cxx_partial_specialization_syntax+:} false; then :
  3316. $as_echo_n "(cached) " >&6
  3317. else
  3318. ac_ext=cpp
  3319. ac_cpp='$CXXCPP $CPPFLAGS'
  3320. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3321. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3322. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3324. /* end confdefs.h. */
  3325. template<class T> class A { public : int f () const { return 1; } };
  3326. template<class T> class A<T*> { public: int f () const { return 0; } };
  3327. int
  3328. main ()
  3329. {
  3330. A<float*> a; return a.f();
  3331. ;
  3332. return 0;
  3333. }
  3334. _ACEOF
  3335. if ac_fn_cxx_try_compile "$LINENO"; then :
  3336. ac_cv_cxx_partial_specialization_syntax=yes
  3337. else
  3338. ac_cv_cxx_partial_specialization_s
  3339. yntax=no
  3340. fi
  3341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3342. ac_ext=cpp
  3343. ac_cpp='$CXXCPP $CPPFLAGS'
  3344. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3345. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3346. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3347. fi
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_partial_specialization_syntax" >&5
  3349. $as_echo "$ac_cv_cxx_partial_specialization_syntax" >&6; }
  3350. if test "$ac_cv_cxx_partial_specialization_syntax" != yes; then
  3351. echo "Your compiler ($CXX) does not support partial template specialization, trash it"
  3352. exit 1;
  3353. fi
  3354. # Make sure we can run config.sub.
  3355. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3356. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3358. $as_echo_n "checking build system type... " >&6; }
  3359. if ${ac_cv_build+:} false; then :
  3360. $as_echo_n "(cached) " >&6
  3361. else
  3362. ac_build_alias=$build_alias
  3363. test "x$ac_build_alias" = x &&
  3364. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3365. test "x$ac_build_alias" = x &&
  3366. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3367. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3368. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3369. fi
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3371. $as_echo "$ac_cv_build" >&6; }
  3372. case $ac_cv_build in
  3373. *-*-*) ;;
  3374. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3375. esac
  3376. build=$ac_cv_build
  3377. ac_save_IFS=$IFS; IFS='-'
  3378. set x $ac_cv_build
  3379. shift
  3380. build_cpu=$1
  3381. build_vendor=$2
  3382. shift; shift
  3383. # Remember, the first character of IFS is used to create $*,
  3384. # except with old shells:
  3385. build_os=$*
  3386. IFS=$ac_save_IFS
  3387. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3389. $as_echo_n "checking host system type... " >&6; }
  3390. if ${ac_cv_host+:} false; then :
  3391. $as_echo_n "(cached) " >&6
  3392. else
  3393. if test "x$host_alias" = x; then
  3394. ac_cv_host=$ac_cv_build
  3395. else
  3396. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3397. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3398. fi
  3399. fi
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3401. $as_echo "$ac_cv_host" >&6; }
  3402. case $ac_cv_host in
  3403. *-*-*) ;;
  3404. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3405. esac
  3406. host=$ac_cv_host
  3407. ac_save_IFS=$IFS; IFS='-'
  3408. set x $ac_cv_host
  3409. shift
  3410. host_cpu=$1
  3411. host_vendor=$2
  3412. shift; shift
  3413. # Remember, the first character of IFS is used to create $*,
  3414. # except with old shells:
  3415. host_os=$*
  3416. IFS=$ac_save_IFS
  3417. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3418. echo "you are compiling gmm on a $host"
  3419. case $CXX in
  3420. cxx)
  3421. echo "Using Compaq cxx compiler"
  3422. echo "WARNING : Control that you have at least Compaq C++ V6.3"
  3423. here=`pwd`
  3424. cd $srcdir
  3425. CXXFLAGS="$CXXFLAGS -tweak -std strict_ansi -fast -Wl,-S -nopure_cname"
  3426. cd $here
  3427. ;;
  3428. CC)
  3429. case $host in
  3430. *irix*)
  3431. echo "Using MIPSPRO CC on IRIX (LD is set to CC)"
  3432. LD=CC
  3433. CXXFLAGS="$CXXFLAGS -LANG:std -O3 "
  3434. SUPLDFLAGS="-lCio"
  3435. ;;
  3436. *sun*)
  3437. echo "Using SUN C++ WorkShop Compiler"
  3438. CXXFLAGS="$CXXFLAGS +w2 -O3"
  3439. ;;
  3440. esac
  3441. ;;
  3442. aCC)
  3443. echo "Using HP ANSI C++ Compiler aCC"
  3444. CXXFLAGS="$CXXFLAGS -AA -fast"
  3445. ;;
  3446. g++* | c++)
  3447. GCCVER=`$CXX --version | head -1 | cut -d ' ' -f3`
  3448. echo "Using the GNU g++ compiler $GCCVER"
  3449. case $GCCVER in
  3450. 2.95*)
  3451. WSHADOW=""
  3452. ;;
  3453. *)
  3454. WSHADOW="-Wshadow"
  3455. ;;
  3456. esac
  3457. CXXFLAGS="$CXXFLAGS -ftemplate-depth-40 -pedantic -O3 -Wall -W $WSHADOW -Wpointer-arith -Wcast-qual -Wwrite-strings -Wconversion -Wredundant-decls -Wno-long-long"
  3458. ;;
  3459. icc | icpc)
  3460. echo "Using INTEL icc"
  3461. CXXFLAGS="$CXXFLAGS -O3 -tpp6"
  3462. ;;
  3463. *)
  3464. echo "Using a unknown compiler"
  3465. CXXFLAGS="$CXXFLAGS -O3"
  3466. ;;
  3467. esac
  3468. # Check whether --enable-static was given.
  3469. if test "${enable_static+set}" = set; then :
  3470. enableval=$enable_static; p=${PACKAGE-default}
  3471. case $enableval in
  3472. yes) enable_static=yes ;;
  3473. no) enable_static=no ;;
  3474. *)
  3475. enable_static=no
  3476. # Look at the argument we got. We use all the common list separators.
  3477. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3478. for pkg in $enableval; do
  3479. IFS="$lt_save_ifs"
  3480. if test "X$pkg" = "X$p"; then
  3481. enable_static=yes
  3482. fi
  3483. done
  3484. IFS="$lt_save_ifs"
  3485. ;;
  3486. esac
  3487. else
  3488. enable_static=yes
  3489. fi
  3490. case `pwd` in
  3491. *\ * | *\ *)
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3493. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3494. esac
  3495. macro_version='2.4.2'
  3496. macro_revision='1.3337'
  3497. ltmain="$ac_aux_dir/ltmain.sh"
  3498. # Backslashify metacharacters that are still active within
  3499. # double-quoted strings.
  3500. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3501. # Same as above, but do not quote variable references.
  3502. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3503. # Sed substitution to delay expansion of an escaped shell variable in a
  3504. # double_quote_subst'ed string.
  3505. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3506. # Sed substitution to delay expansion of an escaped single quote.
  3507. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3508. # Sed substitution to avoid accidental globbing in evaled expressions
  3509. no_glob_subst='s/\*/\\\*/g'
  3510. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3511. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3512. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3514. $as_echo_n "checking how to print strings... " >&6; }
  3515. # Test print first, because it will be a builtin if present.
  3516. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3517. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3518. ECHO='print -r --'
  3519. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3520. ECHO='printf %s\n'
  3521. else
  3522. # Use this function as a fallback that always works.
  3523. func_fallback_echo ()
  3524. {
  3525. eval 'cat <<_LTECHO_EOF
  3526. $1
  3527. _LTECHO_EOF'
  3528. }
  3529. ECHO='func_fallback_echo'
  3530. fi
  3531. # func_echo_all arg...
  3532. # Invoke $ECHO with all args, space-separated.
  3533. func_echo_all ()
  3534. {
  3535. $ECHO ""
  3536. }
  3537. case "$ECHO" in
  3538. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3539. $as_echo "printf" >&6; } ;;
  3540. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3541. $as_echo "print -r" >&6; } ;;
  3542. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3543. $as_echo "cat" >&6; } ;;
  3544. esac
  3545. ac_ext=c
  3546. ac_cpp='$CPP $CPPFLAGS'
  3547. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3548. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3549. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3550. if test -n "$ac_tool_prefix"; then
  3551. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3552. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3554. $as_echo_n "checking for $ac_word... " >&6; }
  3555. if ${ac_cv_prog_CC+:} false; then :
  3556. $as_echo_n "(cached) " >&6
  3557. else
  3558. if test -n "$CC"; then
  3559. ac_cv_prog_CC="$CC" # Let the user override the test.
  3560. else
  3561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3562. for as_dir in $PATH
  3563. do
  3564. IFS=$as_save_IFS
  3565. test -z "$as_dir" && as_dir=.
  3566. for ac_exec_ext in '' $ac_executable_extensions; do
  3567. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3568. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3570. break 2
  3571. fi
  3572. done
  3573. done
  3574. IFS=$as_save_IFS
  3575. fi
  3576. fi
  3577. CC=$ac_cv_prog_CC
  3578. if test -n "$CC"; then
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3580. $as_echo "$CC" >&6; }
  3581. else
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3583. $as_echo "no" >&6; }
  3584. fi
  3585. fi
  3586. if test -z "$ac_cv_prog_CC"; then
  3587. ac_ct_CC=$CC
  3588. # Extract the first word of "gcc", so it can be a program name with args.
  3589. set dummy gcc; ac_word=$2
  3590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3591. $as_echo_n "checking for $ac_word... " >&6; }
  3592. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3593. $as_echo_n "(cached) " >&6
  3594. else
  3595. if test -n "$ac_ct_CC"; then
  3596. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3597. else
  3598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3599. for as_dir in $PATH
  3600. do
  3601. IFS=$as_save_IFS
  3602. test -z "$as_dir" && as_dir=.
  3603. for ac_exec_ext in '' $ac_executable_extensions; do
  3604. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3605. ac_cv_prog_ac_ct_CC="gcc"
  3606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3607. break 2
  3608. fi
  3609. done
  3610. done
  3611. IFS=$as_save_IFS
  3612. fi
  3613. fi
  3614. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3615. if test -n "$ac_ct_CC"; then
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3617. $as_echo "$ac_ct_CC" >&6; }
  3618. else
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3620. $as_echo "no" >&6; }
  3621. fi
  3622. if test "x$ac_ct_CC" = x; then
  3623. CC=""
  3624. else
  3625. case $cross_compiling:$ac_tool_warned in
  3626. yes:)
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3628. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3629. ac_tool_warned=yes ;;
  3630. esac
  3631. CC=$ac_ct_CC
  3632. fi
  3633. else
  3634. CC="$ac_cv_prog_CC"
  3635. fi
  3636. if test -z "$CC"; then
  3637. if test -n "$ac_tool_prefix"; then
  3638. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3639. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3641. $as_echo_n "checking for $ac_word... " >&6; }
  3642. if ${ac_cv_prog_CC+:} false; then :
  3643. $as_echo_n "(cached) " >&6
  3644. else
  3645. if test -n "$CC"; then
  3646. ac_cv_prog_CC="$CC" # Let the user override the test.
  3647. else
  3648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3649. for as_dir in $PATH
  3650. do
  3651. IFS=$as_save_IFS
  3652. test -z "$as_dir" && as_dir=.
  3653. for ac_exec_ext in '' $ac_executable_extensions; do
  3654. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3655. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3657. break 2
  3658. fi
  3659. done
  3660. done
  3661. IFS=$as_save_IFS
  3662. fi
  3663. fi
  3664. CC=$ac_cv_prog_CC
  3665. if test -n "$CC"; then
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3667. $as_echo "$CC" >&6; }
  3668. else
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3670. $as_echo "no" >&6; }
  3671. fi
  3672. fi
  3673. fi
  3674. if test -z "$CC"; then
  3675. # Extract the first word of "cc", so it can be a program name with args.
  3676. set dummy cc; ac_word=$2
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3678. $as_echo_n "checking for $ac_word... " >&6; }
  3679. if ${ac_cv_prog_CC+:} false; then :
  3680. $as_echo_n "(cached) " >&6
  3681. else
  3682. if test -n "$CC"; then
  3683. ac_cv_prog_CC="$CC" # Let the user override the test.
  3684. else
  3685. ac_prog_rejected=no
  3686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3687. for as_dir in $PATH
  3688. do
  3689. IFS=$as_save_IFS
  3690. test -z "$as_dir" && as_dir=.
  3691. for ac_exec_ext in '' $ac_executable_extensions; do
  3692. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3693. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3694. ac_prog_rejected=yes
  3695. continue
  3696. fi
  3697. ac_cv_prog_CC="cc"
  3698. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3699. break 2
  3700. fi
  3701. done
  3702. done
  3703. IFS=$as_save_IFS
  3704. if test $ac_prog_rejected = yes; then
  3705. # We found a bogon in the path, so make sure we never use it.
  3706. set dummy $ac_cv_prog_CC
  3707. shift
  3708. if test $# != 0; then
  3709. # We chose a different compiler from the bogus one.
  3710. # However, it has the same basename, so the bogon will be chosen
  3711. # first if we set CC to just the basename; use the full file name.
  3712. shift
  3713. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3714. fi
  3715. fi
  3716. fi
  3717. fi
  3718. CC=$ac_cv_prog_CC
  3719. if test -n "$CC"; then
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3721. $as_echo "$CC" >&6; }
  3722. else
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3724. $as_echo "no" >&6; }
  3725. fi
  3726. fi
  3727. if test -z "$CC"; then
  3728. if test -n "$ac_tool_prefix"; then
  3729. for ac_prog in cl.exe
  3730. do
  3731. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3732. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3734. $as_echo_n "checking for $ac_word... " >&6; }
  3735. if ${ac_cv_prog_CC+:} false; then :
  3736. $as_echo_n "(cached) " >&6
  3737. else
  3738. if test -n "$CC"; then
  3739. ac_cv_prog_CC="$CC" # Let the user override the test.
  3740. else
  3741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3742. for as_dir in $PATH
  3743. do
  3744. IFS=$as_save_IFS
  3745. test -z "$as_dir" && as_dir=.
  3746. for ac_exec_ext in '' $ac_executable_extensions; do
  3747. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3748. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3750. break 2
  3751. fi
  3752. done
  3753. done
  3754. IFS=$as_save_IFS
  3755. fi
  3756. fi
  3757. CC=$ac_cv_prog_CC
  3758. if test -n "$CC"; then
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3760. $as_echo "$CC" >&6; }
  3761. else
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3763. $as_echo "no" >&6; }
  3764. fi
  3765. test -n "$CC" && break
  3766. done
  3767. fi
  3768. if test -z "$CC"; then
  3769. ac_ct_CC=$CC
  3770. for ac_prog in cl.exe
  3771. do
  3772. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3773. set dummy $ac_prog; ac_word=$2
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3775. $as_echo_n "checking for $ac_word... " >&6; }
  3776. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3777. $as_echo_n "(cached) " >&6
  3778. else
  3779. if test -n "$ac_ct_CC"; then
  3780. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3781. else
  3782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3783. for as_dir in $PATH
  3784. do
  3785. IFS=$as_save_IFS
  3786. test -z "$as_dir" && as_dir=.
  3787. for ac_exec_ext in '' $ac_executable_extensions; do
  3788. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3789. ac_cv_prog_ac_ct_CC="$ac_prog"
  3790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3791. break 2
  3792. fi
  3793. done
  3794. done
  3795. IFS=$as_save_IFS
  3796. fi
  3797. fi
  3798. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3799. if test -n "$ac_ct_CC"; then
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3801. $as_echo "$ac_ct_CC" >&6; }
  3802. else
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3804. $as_echo "no" >&6; }
  3805. fi
  3806. test -n "$ac_ct_CC" && break
  3807. done
  3808. if test "x$ac_ct_CC" = x; then
  3809. CC=""
  3810. else
  3811. case $cross_compiling:$ac_tool_warned in
  3812. yes:)
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3814. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3815. ac_tool_warned=yes ;;
  3816. esac
  3817. CC=$ac_ct_CC
  3818. fi
  3819. fi
  3820. fi
  3821. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3822. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3823. as_fn_error $? "no acceptable C compiler found in \$PATH
  3824. See \`config.log' for more details" "$LINENO" 5; }
  3825. # Provide some information about the compiler.
  3826. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3827. set X $ac_compile
  3828. ac_compiler=$2
  3829. for ac_option in --version -v -V -qversion; do
  3830. { { ac_try="$ac_compiler $ac_option >&5"
  3831. case "(($ac_try" in
  3832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3833. *) ac_try_echo=$ac_try;;
  3834. esac
  3835. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3836. $as_echo "$ac_try_echo"; } >&5
  3837. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3838. ac_status=$?
  3839. if test -s conftest.err; then
  3840. sed '10a\
  3841. ... rest of stderr output deleted ...
  3842. 10q' conftest.err >conftest.er1
  3843. cat conftest.er1 >&5
  3844. fi
  3845. rm -f conftest.er1 conftest.err
  3846. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3847. test $ac_status = 0; }
  3848. done
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3850. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3851. if ${ac_cv_c_compiler_gnu+:} false; then :
  3852. $as_echo_n "(cached) " >&6
  3853. else
  3854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3855. /* end confdefs.h. */
  3856. int
  3857. main ()
  3858. {
  3859. #ifndef __GNUC__
  3860. choke me
  3861. #endif
  3862. ;
  3863. return 0;
  3864. }
  3865. _ACEOF
  3866. if ac_fn_c_try_compile "$LINENO"; then :
  3867. ac_compiler_gnu=yes
  3868. else
  3869. ac_compiler_gnu=no
  3870. fi
  3871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3872. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3873. fi
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3875. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3876. if test $ac_compiler_gnu = yes; then
  3877. GCC=yes
  3878. else
  3879. GCC=
  3880. fi
  3881. ac_test_CFLAGS=${CFLAGS+set}
  3882. ac_save_CFLAGS=$CFLAGS
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3884. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3885. if ${ac_cv_prog_cc_g+:} false; then :
  3886. $as_echo_n "(cached) " >&6
  3887. else
  3888. ac_save_c_werror_flag=$ac_c_werror_flag
  3889. ac_c_werror_flag=yes
  3890. ac_cv_prog_cc_g=no
  3891. CFLAGS="-g"
  3892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3893. /* end confdefs.h. */
  3894. int
  3895. main ()
  3896. {
  3897. ;
  3898. return 0;
  3899. }
  3900. _ACEOF
  3901. if ac_fn_c_try_compile "$LINENO"; then :
  3902. ac_cv_prog_cc_g=yes
  3903. else
  3904. CFLAGS=""
  3905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3906. /* end confdefs.h. */
  3907. int
  3908. main ()
  3909. {
  3910. ;
  3911. return 0;
  3912. }
  3913. _ACEOF
  3914. if ac_fn_c_try_compile "$LINENO"; then :
  3915. else
  3916. ac_c_werror_flag=$ac_save_c_werror_flag
  3917. CFLAGS="-g"
  3918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3919. /* end confdefs.h. */
  3920. int
  3921. main ()
  3922. {
  3923. ;
  3924. return 0;
  3925. }
  3926. _ACEOF
  3927. if ac_fn_c_try_compile "$LINENO"; then :
  3928. ac_cv_prog_cc_g=yes
  3929. fi
  3930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3931. fi
  3932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3933. fi
  3934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3935. ac_c_werror_flag=$ac_save_c_werror_flag
  3936. fi
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3938. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3939. if test "$ac_test_CFLAGS" = set; then
  3940. CFLAGS=$ac_save_CFLAGS
  3941. elif test $ac_cv_prog_cc_g = yes; then
  3942. if test "$GCC" = yes; then
  3943. CFLAGS="-g -O2"
  3944. else
  3945. CFLAGS="-g"
  3946. fi
  3947. else
  3948. if test "$GCC" = yes; then
  3949. CFLAGS="-O2"
  3950. else
  3951. CFLAGS=
  3952. fi
  3953. fi
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3955. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3956. if ${ac_cv_prog_cc_c89+:} false; then :
  3957. $as_echo_n "(cached) " >&6
  3958. else
  3959. ac_cv_prog_cc_c89=no
  3960. ac_save_CC=$CC
  3961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3962. /* end confdefs.h. */
  3963. #include <stdarg.h>
  3964. #include <stdio.h>
  3965. #include <sys/types.h>
  3966. #include <sys/stat.h>
  3967. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3968. struct buf { int x; };
  3969. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3970. static char *e (p, i)
  3971. char **p;
  3972. int i;
  3973. {
  3974. return p[i];
  3975. }
  3976. static char *f (char * (*g) (char **, int), char **p, ...)
  3977. {
  3978. char *s;
  3979. va_list v;
  3980. va_start (v,p);
  3981. s = g (p, va_arg (v,int));
  3982. va_end (v);
  3983. return s;
  3984. }
  3985. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3986. function prototypes and stuff, but not '\xHH' hex character constants.
  3987. These don't provoke an error unfortunately, instead are silently treated
  3988. as 'x'. The following induces an error, until -std is added to get
  3989. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3990. array size at least. It's necessary to write '\x00'==0 to get something
  3991. that's true only with -std. */
  3992. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3993. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3994. inside strings and character constants. */
  3995. #define FOO(x) 'x'
  3996. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3997. int test (int i, double x);
  3998. struct s1 {int (*f) (int a);};
  3999. struct s2 {int (*f) (double a);};
  4000. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4001. int argc;
  4002. char **argv;
  4003. int
  4004. main ()
  4005. {
  4006. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4007. ;
  4008. return 0;
  4009. }
  4010. _ACEOF
  4011. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4012. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4013. do
  4014. CC="$ac_save_CC $ac_arg"
  4015. if ac_fn_c_try_compile "$LINENO"; then :
  4016. ac_cv_prog_cc_c89=$ac_arg
  4017. fi
  4018. rm -f core conftest.err conftest.$ac_objext
  4019. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4020. done
  4021. rm -f conftest.$ac_ext
  4022. CC=$ac_save_CC
  4023. fi
  4024. # AC_CACHE_VAL
  4025. case "x$ac_cv_prog_cc_c89" in
  4026. x)
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4028. $as_echo "none needed" >&6; } ;;
  4029. xno)
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4031. $as_echo "unsupported" >&6; } ;;
  4032. *)
  4033. CC="$CC $ac_cv_prog_cc_c89"
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4035. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4036. esac
  4037. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4038. fi
  4039. ac_ext=cpp
  4040. ac_cpp='$CXXCPP $CPPFLAGS'
  4041. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4042. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4043. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4044. depcc="$CC" am_compiler_list=
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4046. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4047. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4048. $as_echo_n "(cached) " >&6
  4049. else
  4050. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4051. # We make a subdir and do the tests there. Otherwise we can end up
  4052. # making bogus files that we don't know about and never remove. For
  4053. # instance it was reported that on HP-UX the gcc test will end up
  4054. # making a dummy file named `D' -- because `-MD' means `put the output
  4055. # in D'.
  4056. rm -rf conftest.dir
  4057. mkdir conftest.dir
  4058. # Copy depcomp to subdir because otherwise we won't find it if we're
  4059. # using a relative directory.
  4060. cp "$am_depcomp" conftest.dir
  4061. cd conftest.dir
  4062. # We will build objects and dependencies in a subdirectory because
  4063. # it helps to detect inapplicable dependency modes. For instance
  4064. # both Tru64's cc and ICC support -MD to output dependencies as a
  4065. # side effect of compilation, but ICC will put the dependencies in
  4066. # the current directory while Tru64 will put them in the object
  4067. # directory.
  4068. mkdir sub
  4069. am_cv_CC_dependencies_compiler_type=none
  4070. if test "$am_compiler_list" = ""; then
  4071. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4072. fi
  4073. am__universal=false
  4074. case " $depcc " in #(
  4075. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4076. esac
  4077. for depmode in $am_compiler_list; do
  4078. # Setup a source with many dependencies, because some compilers
  4079. # like to wrap large dependency lists on column 80 (with \), and
  4080. # we should not choose a depcomp mode which is confused by this.
  4081. #
  4082. # We need to recreate these files for each test, as the compiler may
  4083. # overwrite some of them when testing with obscure command lines.
  4084. # This happens at least with the AIX C compiler.
  4085. : > sub/conftest.c
  4086. for i in 1 2 3 4 5 6; do
  4087. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4088. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4089. # Solaris 8's {/usr,}/bin/sh.
  4090. touch sub/conftst$i.h
  4091. done
  4092. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4093. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4094. # mode. It turns out that the SunPro C++ compiler does not properly
  4095. # handle `-M -o', and we need to detect this. Also, some Intel
  4096. # versions had trouble with output in subdirs
  4097. am__obj=sub/conftest.${OBJEXT-o}
  4098. am__minus_obj="-o $am__obj"
  4099. case $depmode in
  4100. gcc)
  4101. # This depmode causes a compiler race in universal mode.
  4102. test "$am__universal" = false || continue
  4103. ;;
  4104. nosideeffect)
  4105. # after this tag, mechanisms are not by side-effect, so they'll
  4106. # only be used when explicitly requested
  4107. if test "x$enable_dependency_tracking" = xyes; then
  4108. continue
  4109. else
  4110. break
  4111. fi
  4112. ;;
  4113. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4114. # This compiler won't grok `-c -o', but also, the minuso test has
  4115. # not run yet. These depmodes are late enough in the game, and
  4116. # so weak that their functioning should not be impacted.
  4117. am__obj=conftest.${OBJEXT-o}
  4118. am__minus_obj=
  4119. ;;
  4120. none) break ;;
  4121. esac
  4122. if depmode=$depmode \
  4123. source=sub/conftest.c object=$am__obj \
  4124. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4125. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4126. >/dev/null 2>conftest.err &&
  4127. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4128. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4129. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4130. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4131. # icc doesn't choke on unknown options, it will just issue warnings
  4132. # or remarks (even with -Werror). So we grep stderr for any message
  4133. # that says an option was ignored or not supported.
  4134. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4135. # icc: Command line warning: ignoring option '-M'; no argument required
  4136. # The diagnosis changed in icc 8.0:
  4137. # icc: Command line remark: option '-MP' not supported
  4138. if (grep 'ignoring option' conftest.err ||
  4139. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4140. am_cv_CC_dependencies_compiler_type=$depmode
  4141. break
  4142. fi
  4143. fi
  4144. done
  4145. cd ..
  4146. rm -rf conftest.dir
  4147. else
  4148. am_cv_CC_dependencies_compiler_type=none
  4149. fi
  4150. fi
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4152. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4153. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4154. if
  4155. test "x$enable_dependency_tracking" != xno \
  4156. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4157. am__fastdepCC_TRUE=
  4158. am__fastdepCC_FALSE='#'
  4159. else
  4160. am__fastdepCC_TRUE='#'
  4161. am__fastdepCC_FALSE=
  4162. fi
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4164. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4165. if ${ac_cv_path_SED+:} false; then :
  4166. $as_echo_n "(cached) " >&6
  4167. else
  4168. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4169. for ac_i in 1 2 3 4 5 6 7; do
  4170. ac_script="$ac_script$as_nl$ac_script"
  4171. done
  4172. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4173. { ac_script=; unset ac_script;}
  4174. if test -z "$SED"; then
  4175. ac_path_SED_found=false
  4176. # Loop through the user's path and test for each of PROGNAME-LIST
  4177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4178. for as_dir in $PATH
  4179. do
  4180. IFS=$as_save_IFS
  4181. test -z "$as_dir" && as_dir=.
  4182. for ac_prog in sed gsed; do
  4183. for ac_exec_ext in '' $ac_executable_extensions; do
  4184. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4185. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4186. # Check for GNU ac_path_SED and select it if it is found.
  4187. # Check for GNU $ac_path_SED
  4188. case `"$ac_path_SED" --version 2>&1` in
  4189. *GNU*)
  4190. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4191. *)
  4192. ac_count=0
  4193. $as_echo_n 0123456789 >"conftest.in"
  4194. while :
  4195. do
  4196. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4197. mv "conftest.tmp" "conftest.in"
  4198. cp "conftest.in" "conftest.nl"
  4199. $as_echo '' >> "conftest.nl"
  4200. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4201. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4202. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4203. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4204. # Best one so far, save it but keep looking for a better one
  4205. ac_cv_path_SED="$ac_path_SED"
  4206. ac_path_SED_max=$ac_count
  4207. fi
  4208. # 10*(2^10) chars as input seems more than enough
  4209. test $ac_count -gt 10 && break
  4210. done
  4211. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4212. esac
  4213. $ac_path_SED_found && break 3
  4214. done
  4215. done
  4216. done
  4217. IFS=$as_save_IFS
  4218. if test -z "$ac_cv_path_SED"; then
  4219. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4220. fi
  4221. else
  4222. ac_cv_path_SED=$SED
  4223. fi
  4224. fi
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4226. $as_echo "$ac_cv_path_SED" >&6; }
  4227. SED="$ac_cv_path_SED"
  4228. rm -f conftest.sed
  4229. test -z "$SED" && SED=sed
  4230. Xsed="$SED -e 1s/^X//"
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4232. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4233. if ${ac_cv_path_GREP+:} false; then :
  4234. $as_echo_n "(cached) " >&6
  4235. else
  4236. if test -z "$GREP"; then
  4237. ac_path_GREP_found=false
  4238. # Loop through the user's path and test for each of PROGNAME-LIST
  4239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4240. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4241. do
  4242. IFS=$as_save_IFS
  4243. test -z "$as_dir" && as_dir=.
  4244. for ac_prog in grep ggrep; do
  4245. for ac_exec_ext in '' $ac_executable_extensions; do
  4246. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4247. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4248. # Check for GNU ac_path_GREP and select it if it is found.
  4249. # Check for GNU $ac_path_GREP
  4250. case `"$ac_path_GREP" --version 2>&1` in
  4251. *GNU*)
  4252. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4253. *)
  4254. ac_count=0
  4255. $as_echo_n 0123456789 >"conftest.in"
  4256. while :
  4257. do
  4258. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4259. mv "conftest.tmp" "conftest.in"
  4260. cp "conftest.in" "conftest.nl"
  4261. $as_echo 'GREP' >> "conftest.nl"
  4262. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4263. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4264. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4265. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4266. # Best one so far, save it but keep looking for a better one
  4267. ac_cv_path_GREP="$ac_path_GREP"
  4268. ac_path_GREP_max=$ac_count
  4269. fi
  4270. # 10*(2^10) chars as input seems more than enough
  4271. test $ac_count -gt 10 && break
  4272. done
  4273. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4274. esac
  4275. $ac_path_GREP_found && break 3
  4276. done
  4277. done
  4278. done
  4279. IFS=$as_save_IFS
  4280. if test -z "$ac_cv_path_GREP"; then
  4281. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4282. fi
  4283. else
  4284. ac_cv_path_GREP=$GREP
  4285. fi
  4286. fi
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4288. $as_echo "$ac_cv_path_GREP" >&6; }
  4289. GREP="$ac_cv_path_GREP"
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4291. $as_echo_n "checking for egrep... " >&6; }
  4292. if ${ac_cv_path_EGREP+:} false; then :
  4293. $as_echo_n "(cached) " >&6
  4294. else
  4295. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4296. then ac_cv_path_EGREP="$GREP -E"
  4297. else
  4298. if test -z "$EGREP"; then
  4299. ac_path_EGREP_found=false
  4300. # Loop through the user's path and test for each of PROGNAME-LIST
  4301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4302. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4303. do
  4304. IFS=$as_save_IFS
  4305. test -z "$as_dir" && as_dir=.
  4306. for ac_prog in egrep; do
  4307. for ac_exec_ext in '' $ac_executable_extensions; do
  4308. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4309. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4310. # Check for GNU ac_path_EGREP and select it if it is found.
  4311. # Check for GNU $ac_path_EGREP
  4312. case `"$ac_path_EGREP" --version 2>&1` in
  4313. *GNU*)
  4314. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4315. *)
  4316. ac_count=0
  4317. $as_echo_n 0123456789 >"conftest.in"
  4318. while :
  4319. do
  4320. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4321. mv "conftest.tmp" "conftest.in"
  4322. cp "conftest.in" "conftest.nl"
  4323. $as_echo 'EGREP' >> "conftest.nl"
  4324. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4325. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4326. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4327. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4328. # Best one so far, save it but keep looking for a better one
  4329. ac_cv_path_EGREP="$ac_path_EGREP"
  4330. ac_path_EGREP_max=$ac_count
  4331. fi
  4332. # 10*(2^10) chars as input seems more than enough
  4333. test $ac_count -gt 10 && break
  4334. done
  4335. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4336. esac
  4337. $ac_path_EGREP_found && break 3
  4338. done
  4339. done
  4340. done
  4341. IFS=$as_save_IFS
  4342. if test -z "$ac_cv_path_EGREP"; then
  4343. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4344. fi
  4345. else
  4346. ac_cv_path_EGREP=$EGREP
  4347. fi
  4348. fi
  4349. fi
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4351. $as_echo "$ac_cv_path_EGREP" >&6; }
  4352. EGREP="$ac_cv_path_EGREP"
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4354. $as_echo_n "checking for fgrep... " >&6; }
  4355. if ${ac_cv_path_FGREP+:} false; then :
  4356. $as_echo_n "(cached) " >&6
  4357. else
  4358. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4359. then ac_cv_path_FGREP="$GREP -F"
  4360. else
  4361. if test -z "$FGREP"; then
  4362. ac_path_FGREP_found=false
  4363. # Loop through the user's path and test for each of PROGNAME-LIST
  4364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4365. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4366. do
  4367. IFS=$as_save_IFS
  4368. test -z "$as_dir" && as_dir=.
  4369. for ac_prog in fgrep; do
  4370. for ac_exec_ext in '' $ac_executable_extensions; do
  4371. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4372. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4373. # Check for GNU ac_path_FGREP and select it if it is found.
  4374. # Check for GNU $ac_path_FGREP
  4375. case `"$ac_path_FGREP" --version 2>&1` in
  4376. *GNU*)
  4377. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4378. *)
  4379. ac_count=0
  4380. $as_echo_n 0123456789 >"conftest.in"
  4381. while :
  4382. do
  4383. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4384. mv "conftest.tmp" "conftest.in"
  4385. cp "conftest.in" "conftest.nl"
  4386. $as_echo 'FGREP' >> "conftest.nl"
  4387. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4388. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4389. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4390. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4391. # Best one so far, save it but keep looking for a better one
  4392. ac_cv_path_FGREP="$ac_path_FGREP"
  4393. ac_path_FGREP_max=$ac_count
  4394. fi
  4395. # 10*(2^10) chars as input seems more than enough
  4396. test $ac_count -gt 10 && break
  4397. done
  4398. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4399. esac
  4400. $ac_path_FGREP_found && break 3
  4401. done
  4402. done
  4403. done
  4404. IFS=$as_save_IFS
  4405. if test -z "$ac_cv_path_FGREP"; then
  4406. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4407. fi
  4408. else
  4409. ac_cv_path_FGREP=$FGREP
  4410. fi
  4411. fi
  4412. fi
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4414. $as_echo "$ac_cv_path_FGREP" >&6; }
  4415. FGREP="$ac_cv_path_FGREP"
  4416. test -z "$GREP" && GREP=grep
  4417. # Check whether --with-gnu-ld was given.
  4418. if test "${with_gnu_ld+set}" = set; then :
  4419. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4420. else
  4421. with_gnu_ld=no
  4422. fi
  4423. ac_prog=ld
  4424. if test "$GCC" = yes; then
  4425. # Check if gcc -print-prog-name=ld gives a path.
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4427. $as_echo_n "checking for ld used by $CC... " >&6; }
  4428. case $host in
  4429. *-*-mingw*)
  4430. # gcc leaves a trailing carriage return which upsets mingw
  4431. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4432. *)
  4433. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4434. esac
  4435. case $ac_prog in
  4436. # Accept absolute paths.
  4437. [\\/]* | ?:[\\/]*)
  4438. re_direlt='/[^/][^/]*/\.\./'
  4439. # Canonicalize the pathname of ld
  4440. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4441. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4442. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4443. done
  4444. test -z "$LD" && LD="$ac_prog"
  4445. ;;
  4446. "")
  4447. # If it fails, then pretend we aren't using GCC.
  4448. ac_prog=ld
  4449. ;;
  4450. *)
  4451. # If it is relative, then search for the first ld in PATH.
  4452. with_gnu_ld=unknown
  4453. ;;
  4454. esac
  4455. elif test "$with_gnu_ld" = yes; then
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4457. $as_echo_n "checking for GNU ld... " >&6; }
  4458. else
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4460. $as_echo_n "checking for non-GNU ld... " >&6; }
  4461. fi
  4462. if ${lt_cv_path_LD+:} false; then :
  4463. $as_echo_n "(cached) " >&6
  4464. else
  4465. if test -z "$LD"; then
  4466. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4467. for ac_dir in $PATH; do
  4468. IFS="$lt_save_ifs"
  4469. test -z "$ac_dir" && ac_dir=.
  4470. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4471. lt_cv_path_LD="$ac_dir/$ac_prog"
  4472. # Check to see if the program is GNU ld. I'd rather use --version,
  4473. # but apparently some variants of GNU ld only accept -v.
  4474. # Break only if it was the GNU/non-GNU ld that we prefer.
  4475. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4476. *GNU* | *'with BFD'*)
  4477. test "$with_gnu_ld" != no && break
  4478. ;;
  4479. *)
  4480. test "$with_gnu_ld" != yes && break
  4481. ;;
  4482. esac
  4483. fi
  4484. done
  4485. IFS="$lt_save_ifs"
  4486. else
  4487. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4488. fi
  4489. fi
  4490. LD="$lt_cv_path_LD"
  4491. if test -n "$LD"; then
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4493. $as_echo "$LD" >&6; }
  4494. else
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4496. $as_echo "no" >&6; }
  4497. fi
  4498. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4500. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4501. if ${lt_cv_prog_gnu_ld+:} false; then :
  4502. $as_echo_n "(cached) " >&6
  4503. else
  4504. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4505. case `$LD -v 2>&1 </dev/null` in
  4506. *GNU* | *'with BFD'*)
  4507. lt_cv_prog_gnu_ld=yes
  4508. ;;
  4509. *)
  4510. lt_cv_prog_gnu_ld=no
  4511. ;;
  4512. esac
  4513. fi
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4515. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4516. with_gnu_ld=$lt_cv_prog_gnu_ld
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4518. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4519. if ${lt_cv_path_NM+:} false; then :
  4520. $as_echo_n "(cached) " >&6
  4521. else
  4522. if test -n "$NM"; then
  4523. # Let the user override the test.
  4524. lt_cv_path_NM="$NM"
  4525. else
  4526. lt_nm_to_check="${ac_tool_prefix}nm"
  4527. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4528. lt_nm_to_check="$lt_nm_to_check nm"
  4529. fi
  4530. for lt_tmp_nm in $lt_nm_to_check; do
  4531. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4532. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4533. IFS="$lt_save_ifs"
  4534. test -z "$ac_dir" && ac_dir=.
  4535. tmp_nm="$ac_dir/$lt_tmp_nm"
  4536. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4537. # Check to see if the nm accepts a BSD-compat flag.
  4538. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4539. # nm: unknown option "B" ignored
  4540. # Tru64's nm complains that /dev/null is an invalid object file
  4541. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4542. */dev/null* | *'Invalid file or object type'*)
  4543. lt_cv_path_NM="$tmp_nm -B"
  4544. break
  4545. ;;
  4546. *)
  4547. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4548. */dev/null*)
  4549. lt_cv_path_NM="$tmp_nm -p"
  4550. break
  4551. ;;
  4552. *)
  4553. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4554. continue # so that we can try to find one that supports BSD flags
  4555. ;;
  4556. esac
  4557. ;;
  4558. esac
  4559. fi
  4560. done
  4561. IFS="$lt_save_ifs"
  4562. done
  4563. : ${lt_cv_path_NM=no}
  4564. fi
  4565. fi
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4567. $as_echo "$lt_cv_path_NM" >&6; }
  4568. if test "$lt_cv_path_NM" != "no"; then
  4569. NM="$lt_cv_path_NM"
  4570. else
  4571. # Didn't find any BSD compatible name lister, look for dumpbin.
  4572. if test -n "$DUMPBIN"; then :
  4573. # Let the user override the test.
  4574. else
  4575. if test -n "$ac_tool_prefix"; then
  4576. for ac_prog in dumpbin "link -dump"
  4577. do
  4578. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4579. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4581. $as_echo_n "checking for $ac_word... " >&6; }
  4582. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4583. $as_echo_n "(cached) " >&6
  4584. else
  4585. if test -n "$DUMPBIN"; then
  4586. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4587. else
  4588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4589. for as_dir in $PATH
  4590. do
  4591. IFS=$as_save_IFS
  4592. test -z "$as_dir" && as_dir=.
  4593. for ac_exec_ext in '' $ac_executable_extensions; do
  4594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4595. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4597. break 2
  4598. fi
  4599. done
  4600. done
  4601. IFS=$as_save_IFS
  4602. fi
  4603. fi
  4604. DUMPBIN=$ac_cv_prog_DUMPBIN
  4605. if test -n "$DUMPBIN"; then
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4607. $as_echo "$DUMPBIN" >&6; }
  4608. else
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4610. $as_echo "no" >&6; }
  4611. fi
  4612. test -n "$DUMPBIN" && break
  4613. done
  4614. fi
  4615. if test -z "$DUMPBIN"; then
  4616. ac_ct_DUMPBIN=$DUMPBIN
  4617. for ac_prog in dumpbin "link -dump"
  4618. do
  4619. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4620. set dummy $ac_prog; ac_word=$2
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4622. $as_echo_n "checking for $ac_word... " >&6; }
  4623. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4624. $as_echo_n "(cached) " >&6
  4625. else
  4626. if test -n "$ac_ct_DUMPBIN"; then
  4627. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4628. else
  4629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4630. for as_dir in $PATH
  4631. do
  4632. IFS=$as_save_IFS
  4633. test -z "$as_dir" && as_dir=.
  4634. for ac_exec_ext in '' $ac_executable_extensions; do
  4635. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4636. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4638. break 2
  4639. fi
  4640. done
  4641. done
  4642. IFS=$as_save_IFS
  4643. fi
  4644. fi
  4645. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4646. if test -n "$ac_ct_DUMPBIN"; then
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4648. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4649. else
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4651. $as_echo "no" >&6; }
  4652. fi
  4653. test -n "$ac_ct_DUMPBIN" && break
  4654. done
  4655. if test "x$ac_ct_DUMPBIN" = x; then
  4656. DUMPBIN=":"
  4657. else
  4658. case $cross_compiling:$ac_tool_warned in
  4659. yes:)
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4661. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4662. ac_tool_warned=yes ;;
  4663. esac
  4664. DUMPBIN=$ac_ct_DUMPBIN
  4665. fi
  4666. fi
  4667. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4668. *COFF*)
  4669. DUMPBIN="$DUMPBIN -symbols"
  4670. ;;
  4671. *)
  4672. DUMPBIN=:
  4673. ;;
  4674. esac
  4675. fi
  4676. if test "$DUMPBIN" != ":"; then
  4677. NM="$DUMPBIN"
  4678. fi
  4679. fi
  4680. test -z "$NM" && NM=nm
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4682. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4683. if ${lt_cv_nm_interface+:} false; then :
  4684. $as_echo_n "(cached) " >&6
  4685. else
  4686. lt_cv_nm_interface="BSD nm"
  4687. echo "int some_variable = 0;" > conftest.$ac_ext
  4688. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4689. (eval "$ac_compile" 2>conftest.err)
  4690. cat conftest.err >&5
  4691. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4692. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4693. cat conftest.err >&5
  4694. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4695. cat conftest.out >&5
  4696. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4697. lt_cv_nm_interface="MS dumpbin"
  4698. fi
  4699. rm -f conftest*
  4700. fi
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4702. $as_echo "$lt_cv_nm_interface" >&6; }
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4704. $as_echo_n "checking whether ln -s works... " >&6; }
  4705. LN_S=$as_ln_s
  4706. if test "$LN_S" = "ln -s"; then
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4708. $as_echo "yes" >&6; }
  4709. else
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4711. $as_echo "no, using $LN_S" >&6; }
  4712. fi
  4713. # find the maximum length of command line arguments
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4715. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4716. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4717. $as_echo_n "(cached) " >&6
  4718. else
  4719. i=0
  4720. teststring="ABCD"
  4721. case $build_os in
  4722. msdosdjgpp*)
  4723. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4724. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4725. # during glob expansion). Even if it were fixed, the result of this
  4726. # check would be larger than it should be.
  4727. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4728. ;;
  4729. gnu*)
  4730. # Under GNU Hurd, this test is not required because there is
  4731. # no limit to the length of command line arguments.
  4732. # Libtool will interpret -1 as no limit whatsoever
  4733. lt_cv_sys_max_cmd_len=-1;
  4734. ;;
  4735. cygwin* | mingw* | cegcc*)
  4736. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4737. # about 5 minutes as the teststring grows exponentially.
  4738. # Worse, since 9x/ME are not pre-emptively multitasking,
  4739. # you end up with a "frozen" computer, even though with patience
  4740. # the test eventually succeeds (with a max line length of 256k).
  4741. # Instead, let's just punt: use the minimum linelength reported by
  4742. # all of the supported platforms: 8192 (on NT/2K/XP).
  4743. lt_cv_sys_max_cmd_len=8192;
  4744. ;;
  4745. mint*)
  4746. # On MiNT this can take a long time and run out of memory.
  4747. lt_cv_sys_max_cmd_len=8192;
  4748. ;;
  4749. amigaos*)
  4750. # On AmigaOS with pdksh, this test takes hours, literally.
  4751. # So we just punt and use a minimum line length of 8192.
  4752. lt_cv_sys_max_cmd_len=8192;
  4753. ;;
  4754. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4755. # This has been around since 386BSD, at least. Likely further.
  4756. if test -x /sbin/sysctl; then
  4757. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4758. elif test -x /usr/sbin/sysctl; then
  4759. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4760. else
  4761. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4762. fi
  4763. # And add a safety zone
  4764. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4765. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4766. ;;
  4767. interix*)
  4768. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4769. lt_cv_sys_max_cmd_len=196608
  4770. ;;
  4771. os2*)
  4772. # The test takes a long time on OS/2.
  4773. lt_cv_sys_max_cmd_len=8192
  4774. ;;
  4775. osf*)
  4776. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4777. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4778. # nice to cause kernel panics so lets avoid the loop below.
  4779. # First set a reasonable default.
  4780. lt_cv_sys_max_cmd_len=16384
  4781. #
  4782. if test -x /sbin/sysconfig; then
  4783. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4784. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4785. esac
  4786. fi
  4787. ;;
  4788. sco3.2v5*)
  4789. lt_cv_sys_max_cmd_len=102400
  4790. ;;
  4791. sysv5* | sco5v6* | sysv4.2uw2*)
  4792. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4793. if test -n "$kargmax"; then
  4794. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4795. else
  4796. lt_cv_sys_max_cmd_len=32768
  4797. fi
  4798. ;;
  4799. *)
  4800. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4801. if test -n "$lt_cv_sys_max_cmd_len"; then
  4802. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4803. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4804. else
  4805. # Make teststring a little bigger before we do anything with it.
  4806. # a 1K string should be a reasonable start.
  4807. for i in 1 2 3 4 5 6 7 8 ; do
  4808. teststring=$teststring$teststring
  4809. done
  4810. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4811. # If test is not a shell built-in, we'll probably end up computing a
  4812. # maximum length that is only half of the actual maximum length, but
  4813. # we can't tell.
  4814. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4815. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4816. test $i != 17 # 1/2 MB should be enough
  4817. do
  4818. i=`expr $i + 1`
  4819. teststring=$teststring$teststring
  4820. done
  4821. # Only check the string length outside the loop.
  4822. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4823. teststring=
  4824. # Add a significant safety factor because C++ compilers can tack on
  4825. # massive amounts of additional arguments before passing them to the
  4826. # linker. It appears as though 1/2 is a usable value.
  4827. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4828. fi
  4829. ;;
  4830. esac
  4831. fi
  4832. if test -n $lt_cv_sys_max_cmd_len ; then
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4834. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4835. else
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4837. $as_echo "none" >&6; }
  4838. fi
  4839. max_cmd_len=$lt_cv_sys_max_cmd_len
  4840. : ${CP="cp -f"}
  4841. : ${MV="mv -f"}
  4842. : ${RM="rm -f"}
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4844. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4845. # Try some XSI features
  4846. xsi_shell=no
  4847. ( _lt_dummy="a/b/c"
  4848. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4849. = c,a/b,b/c, \
  4850. && eval 'test $(( 1 + 1 )) -eq 2 \
  4851. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4852. && xsi_shell=yes
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4854. $as_echo "$xsi_shell" >&6; }
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4856. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4857. lt_shell_append=no
  4858. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4859. >/dev/null 2>&1 \
  4860. && lt_shell_append=yes
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4862. $as_echo "$lt_shell_append" >&6; }
  4863. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4864. lt_unset=unset
  4865. else
  4866. lt_unset=false
  4867. fi
  4868. # test EBCDIC or ASCII
  4869. case `echo X|tr X '\101'` in
  4870. A) # ASCII based system
  4871. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4872. lt_SP2NL='tr \040 \012'
  4873. lt_NL2SP='tr \015\012 \040\040'
  4874. ;;
  4875. *) # EBCDIC based system
  4876. lt_SP2NL='tr \100 \n'
  4877. lt_NL2SP='tr \r\n \100\100'
  4878. ;;
  4879. esac
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4881. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4882. if ${lt_cv_to_host_file_cmd+:} false; then :
  4883. $as_echo_n "(cached) " >&6
  4884. else
  4885. case $host in
  4886. *-*-mingw* )
  4887. case $build in
  4888. *-*-mingw* ) # actually msys
  4889. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4890. ;;
  4891. *-*-cygwin* )
  4892. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4893. ;;
  4894. * ) # otherwise, assume *nix
  4895. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4896. ;;
  4897. esac
  4898. ;;
  4899. *-*-cygwin* )
  4900. case $build in
  4901. *-*-mingw* ) # actually msys
  4902. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4903. ;;
  4904. *-*-cygwin* )
  4905. lt_cv_to_host_file_cmd=func_convert_file_noop
  4906. ;;
  4907. * ) # otherwise, assume *nix
  4908. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4909. ;;
  4910. esac
  4911. ;;
  4912. * ) # unhandled hosts (and "normal" native builds)
  4913. lt_cv_to_host_file_cmd=func_convert_file_noop
  4914. ;;
  4915. esac
  4916. fi
  4917. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4919. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4921. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4922. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4923. $as_echo_n "(cached) " >&6
  4924. else
  4925. #assume ordinary cross tools, or native build.
  4926. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4927. case $host in
  4928. *-*-mingw* )
  4929. case $build in
  4930. *-*-mingw* ) # actually msys
  4931. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4932. ;;
  4933. esac
  4934. ;;
  4935. esac
  4936. fi
  4937. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4939. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4941. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4942. if ${lt_cv_ld_reload_flag+:} false; then :
  4943. $as_echo_n "(cached) " >&6
  4944. else
  4945. lt_cv_ld_reload_flag='-r'
  4946. fi
  4947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4948. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4949. reload_flag=$lt_cv_ld_reload_flag
  4950. case $reload_flag in
  4951. "" | " "*) ;;
  4952. *) reload_flag=" $reload_flag" ;;
  4953. esac
  4954. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4955. case $host_os in
  4956. cygwin* | mingw* | pw32* | cegcc*)
  4957. if test "$GCC" != yes; then
  4958. reload_cmds=false
  4959. fi
  4960. ;;
  4961. darwin*)
  4962. if test "$GCC" = yes; then
  4963. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4964. else
  4965. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4966. fi
  4967. ;;
  4968. esac
  4969. if test -n "$ac_tool_prefix"; then
  4970. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4971. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4973. $as_echo_n "checking for $ac_word... " >&6; }
  4974. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4975. $as_echo_n "(cached) " >&6
  4976. else
  4977. if test -n "$OBJDUMP"; then
  4978. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4979. else
  4980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4981. for as_dir in $PATH
  4982. do
  4983. IFS=$as_save_IFS
  4984. test -z "$as_dir" && as_dir=.
  4985. for ac_exec_ext in '' $ac_executable_extensions; do
  4986. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4987. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4988. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4989. break 2
  4990. fi
  4991. done
  4992. done
  4993. IFS=$as_save_IFS
  4994. fi
  4995. fi
  4996. OBJDUMP=$ac_cv_prog_OBJDUMP
  4997. if test -n "$OBJDUMP"; then
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4999. $as_echo "$OBJDUMP" >&6; }
  5000. else
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5002. $as_echo "no" >&6; }
  5003. fi
  5004. fi
  5005. if test -z "$ac_cv_prog_OBJDUMP"; then
  5006. ac_ct_OBJDUMP=$OBJDUMP
  5007. # Extract the first word of "objdump", so it can be a program name with args.
  5008. set dummy objdump; ac_word=$2
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5010. $as_echo_n "checking for $ac_word... " >&6; }
  5011. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5012. $as_echo_n "(cached) " >&6
  5013. else
  5014. if test -n "$ac_ct_OBJDUMP"; then
  5015. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5016. else
  5017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5018. for as_dir in $PATH
  5019. do
  5020. IFS=$as_save_IFS
  5021. test -z "$as_dir" && as_dir=.
  5022. for ac_exec_ext in '' $ac_executable_extensions; do
  5023. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5024. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5025. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5026. break 2
  5027. fi
  5028. done
  5029. done
  5030. IFS=$as_save_IFS
  5031. fi
  5032. fi
  5033. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5034. if test -n "$ac_ct_OBJDUMP"; then
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5036. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5037. else
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5039. $as_echo "no" >&6; }
  5040. fi
  5041. if test "x$ac_ct_OBJDUMP" = x; then
  5042. OBJDUMP="false"
  5043. else
  5044. case $cross_compiling:$ac_tool_warned in
  5045. yes:)
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5047. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5048. ac_tool_warned=yes ;;
  5049. esac
  5050. OBJDUMP=$ac_ct_OBJDUMP
  5051. fi
  5052. else
  5053. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5054. fi
  5055. test -z "$OBJDUMP" && OBJDUMP=objdump
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5057. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5058. if ${lt_cv_deplibs_check_method+:} false; then :
  5059. $as_echo_n "(cached) " >&6
  5060. else
  5061. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5062. lt_cv_file_magic_test_file=
  5063. lt_cv_deplibs_check_method='unknown'
  5064. # Need to set the preceding variable on all platforms that support
  5065. # interlibrary dependencies.
  5066. # 'none' -- dependencies not supported.
  5067. # `unknown' -- same as none, but documents that we really don't know.
  5068. # 'pass_all' -- all dependencies passed with no checks.
  5069. # 'test_compile' -- check by making test program.
  5070. # 'file_magic [[regex]]' -- check by looking for files in library path
  5071. # which responds to the $file_magic_cmd with a given extended regex.
  5072. # If you have `file' or equivalent on your system and you're not sure
  5073. # whether `pass_all' will *always* work, you probably want this one.
  5074. case $host_os in
  5075. aix[4-9]*)
  5076. lt_cv_deplibs_check_method=pass_all
  5077. ;;
  5078. beos*)
  5079. lt_cv_deplibs_check_method=pass_all
  5080. ;;
  5081. bsdi[45]*)
  5082. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5083. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5084. lt_cv_file_magic_test_file=/shlib/libc.so
  5085. ;;
  5086. cygwin*)
  5087. # func_win32_libid is a shell function defined in ltmain.sh
  5088. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5089. lt_cv_file_magic_cmd='func_win32_libid'
  5090. ;;
  5091. mingw* | pw32*)
  5092. # Base MSYS/MinGW do not provide the 'file' command needed by
  5093. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5094. # unless we find 'file', for example because we are cross-compiling.
  5095. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5096. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5097. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5098. lt_cv_file_magic_cmd='func_win32_libid'
  5099. else
  5100. # Keep this pattern in sync with the one in func_win32_libid.
  5101. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5102. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5103. fi
  5104. ;;
  5105. cegcc*)
  5106. # use the weaker test based on 'objdump'. See mingw*.
  5107. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5108. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5109. ;;
  5110. darwin* | rhapsody*)
  5111. lt_cv_deplibs_check_method=pass_all
  5112. ;;
  5113. freebsd* | dragonfly*)
  5114. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5115. case $host_cpu in
  5116. i*86 )
  5117. # Not sure whether the presence of OpenBSD here was a mistake.
  5118. # Let's accept both of them until this is cleared up.
  5119. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5120. lt_cv_file_magic_cmd=/usr/bin/file
  5121. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5122. ;;
  5123. esac
  5124. else
  5125. lt_cv_deplibs_check_method=pass_all
  5126. fi
  5127. ;;
  5128. gnu*)
  5129. lt_cv_deplibs_check_method=pass_all
  5130. ;;
  5131. haiku*)
  5132. lt_cv_deplibs_check_method=pass_all
  5133. ;;
  5134. hpux10.20* | hpux11*)
  5135. lt_cv_file_magic_cmd=/usr/bin/file
  5136. case $host_cpu in
  5137. ia64*)
  5138. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5139. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5140. ;;
  5141. hppa*64*)
  5142. 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]'
  5143. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5144. ;;
  5145. *)
  5146. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5147. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5148. ;;
  5149. esac
  5150. ;;
  5151. interix[3-9]*)
  5152. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5153. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5154. ;;
  5155. irix5* | irix6* | nonstopux*)
  5156. case $LD in
  5157. *-32|*"-32 ") libmagic=32-bit;;
  5158. *-n32|*"-n32 ") libmagic=N32;;
  5159. *-64|*"-64 ") libmagic=64-bit;;
  5160. *) libmagic=never-match;;
  5161. esac
  5162. lt_cv_deplibs_check_method=pass_all
  5163. ;;
  5164. # This must be glibc/ELF.
  5165. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5166. lt_cv_deplibs_check_method=pass_all
  5167. ;;
  5168. netbsd* | netbsdelf*-gnu)
  5169. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5170. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5171. else
  5172. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5173. fi
  5174. ;;
  5175. newos6*)
  5176. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5177. lt_cv_file_magic_cmd=/usr/bin/file
  5178. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5179. ;;
  5180. *nto* | *qnx*)
  5181. lt_cv_deplibs_check_method=pass_all
  5182. ;;
  5183. openbsd*)
  5184. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5185. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5186. else
  5187. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5188. fi
  5189. ;;
  5190. osf3* | osf4* | osf5*)
  5191. lt_cv_deplibs_check_method=pass_all
  5192. ;;
  5193. rdos*)
  5194. lt_cv_deplibs_check_method=pass_all
  5195. ;;
  5196. solaris*)
  5197. lt_cv_deplibs_check_method=pass_all
  5198. ;;
  5199. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5200. lt_cv_deplibs_check_method=pass_all
  5201. ;;
  5202. sysv4 | sysv4.3*)
  5203. case $host_vendor in
  5204. motorola)
  5205. 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]'
  5206. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5207. ;;
  5208. ncr)
  5209. lt_cv_deplibs_check_method=pass_all
  5210. ;;
  5211. sequent)
  5212. lt_cv_file_magic_cmd='/bin/file'
  5213. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5214. ;;
  5215. sni)
  5216. lt_cv_file_magic_cmd='/bin/file'
  5217. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5218. lt_cv_file_magic_test_file=/lib/libc.so
  5219. ;;
  5220. siemens)
  5221. lt_cv_deplibs_check_method=pass_all
  5222. ;;
  5223. pc)
  5224. lt_cv_deplibs_check_method=pass_all
  5225. ;;
  5226. esac
  5227. ;;
  5228. tpf*)
  5229. lt_cv_deplibs_check_method=pass_all
  5230. ;;
  5231. esac
  5232. fi
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5234. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5235. file_magic_glob=
  5236. want_nocaseglob=no
  5237. if test "$build" = "$host"; then
  5238. case $host_os in
  5239. mingw* | pw32*)
  5240. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5241. want_nocaseglob=yes
  5242. else
  5243. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5244. fi
  5245. ;;
  5246. esac
  5247. fi
  5248. file_magic_cmd=$lt_cv_file_magic_cmd
  5249. deplibs_check_method=$lt_cv_deplibs_check_method
  5250. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5251. if test -n "$ac_tool_prefix"; then
  5252. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5253. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5255. $as_echo_n "checking for $ac_word... " >&6; }
  5256. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5257. $as_echo_n "(cached) " >&6
  5258. else
  5259. if test -n "$DLLTOOL"; then
  5260. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5261. else
  5262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5263. for as_dir in $PATH
  5264. do
  5265. IFS=$as_save_IFS
  5266. test -z "$as_dir" && as_dir=.
  5267. for ac_exec_ext in '' $ac_executable_extensions; do
  5268. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5269. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5271. break 2
  5272. fi
  5273. done
  5274. done
  5275. IFS=$as_save_IFS
  5276. fi
  5277. fi
  5278. DLLTOOL=$ac_cv_prog_DLLTOOL
  5279. if test -n "$DLLTOOL"; then
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5281. $as_echo "$DLLTOOL" >&6; }
  5282. else
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5284. $as_echo "no" >&6; }
  5285. fi
  5286. fi
  5287. if test -z "$ac_cv_prog_DLLTOOL"; then
  5288. ac_ct_DLLTOOL=$DLLTOOL
  5289. # Extract the first word of "dlltool", so it can be a program name with args.
  5290. set dummy dlltool; ac_word=$2
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5292. $as_echo_n "checking for $ac_word... " >&6; }
  5293. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5294. $as_echo_n "(cached) " >&6
  5295. else
  5296. if test -n "$ac_ct_DLLTOOL"; then
  5297. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5298. else
  5299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5300. for as_dir in $PATH
  5301. do
  5302. IFS=$as_save_IFS
  5303. test -z "$as_dir" && as_dir=.
  5304. for ac_exec_ext in '' $ac_executable_extensions; do
  5305. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5306. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5308. break 2
  5309. fi
  5310. done
  5311. done
  5312. IFS=$as_save_IFS
  5313. fi
  5314. fi
  5315. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5316. if test -n "$ac_ct_DLLTOOL"; then
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5318. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5319. else
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5321. $as_echo "no" >&6; }
  5322. fi
  5323. if test "x$ac_ct_DLLTOOL" = x; then
  5324. DLLTOOL="false"
  5325. else
  5326. case $cross_compiling:$ac_tool_warned in
  5327. yes:)
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5329. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5330. ac_tool_warned=yes ;;
  5331. esac
  5332. DLLTOOL=$ac_ct_DLLTOOL
  5333. fi
  5334. else
  5335. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5336. fi
  5337. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5339. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5340. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5341. $as_echo_n "(cached) " >&6
  5342. else
  5343. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5344. case $host_os in
  5345. cygwin* | mingw* | pw32* | cegcc*)
  5346. # two different shell functions defined in ltmain.sh
  5347. # decide which to use based on capabilities of $DLLTOOL
  5348. case `$DLLTOOL --help 2>&1` in
  5349. *--identify-strict*)
  5350. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5351. ;;
  5352. *)
  5353. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5354. ;;
  5355. esac
  5356. ;;
  5357. *)
  5358. # fallback: assume linklib IS sharedlib
  5359. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5360. ;;
  5361. esac
  5362. fi
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5364. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5365. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5366. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5367. if test -n "$ac_tool_prefix"; then
  5368. for ac_prog in ar
  5369. do
  5370. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5371. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5373. $as_echo_n "checking for $ac_word... " >&6; }
  5374. if ${ac_cv_prog_AR+:} false; then :
  5375. $as_echo_n "(cached) " >&6
  5376. else
  5377. if test -n "$AR"; then
  5378. ac_cv_prog_AR="$AR" # Let the user override the test.
  5379. else
  5380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5381. for as_dir in $PATH
  5382. do
  5383. IFS=$as_save_IFS
  5384. test -z "$as_dir" && as_dir=.
  5385. for ac_exec_ext in '' $ac_executable_extensions; do
  5386. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5387. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5389. break 2
  5390. fi
  5391. done
  5392. done
  5393. IFS=$as_save_IFS
  5394. fi
  5395. fi
  5396. AR=$ac_cv_prog_AR
  5397. if test -n "$AR"; then
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5399. $as_echo "$AR" >&6; }
  5400. else
  5401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5402. $as_echo "no" >&6; }
  5403. fi
  5404. test -n "$AR" && break
  5405. done
  5406. fi
  5407. if test -z "$AR"; then
  5408. ac_ct_AR=$AR
  5409. for ac_prog in ar
  5410. do
  5411. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5412. set dummy $ac_prog; ac_word=$2
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5414. $as_echo_n "checking for $ac_word... " >&6; }
  5415. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5416. $as_echo_n "(cached) " >&6
  5417. else
  5418. if test -n "$ac_ct_AR"; then
  5419. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5420. else
  5421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5422. for as_dir in $PATH
  5423. do
  5424. IFS=$as_save_IFS
  5425. test -z "$as_dir" && as_dir=.
  5426. for ac_exec_ext in '' $ac_executable_extensions; do
  5427. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5428. ac_cv_prog_ac_ct_AR="$ac_prog"
  5429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5430. break 2
  5431. fi
  5432. done
  5433. done
  5434. IFS=$as_save_IFS
  5435. fi
  5436. fi
  5437. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5438. if test -n "$ac_ct_AR"; then
  5439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5440. $as_echo "$ac_ct_AR" >&6; }
  5441. else
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5443. $as_echo "no" >&6; }
  5444. fi
  5445. test -n "$ac_ct_AR" && break
  5446. done
  5447. if test "x$ac_ct_AR" = x; then
  5448. AR="false"
  5449. else
  5450. case $cross_compiling:$ac_tool_warned in
  5451. yes:)
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5453. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5454. ac_tool_warned=yes ;;
  5455. esac
  5456. AR=$ac_ct_AR
  5457. fi
  5458. fi
  5459. : ${AR=ar}
  5460. : ${AR_FLAGS=cru}
  5461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5462. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5463. if ${lt_cv_ar_at_file+:} false; then :
  5464. $as_echo_n "(cached) " >&6
  5465. else
  5466. lt_cv_ar_at_file=no
  5467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5468. /* end confdefs.h. */
  5469. int
  5470. main ()
  5471. {
  5472. ;
  5473. return 0;
  5474. }
  5475. _ACEOF
  5476. if ac_fn_cxx_try_compile "$LINENO"; then :
  5477. echo conftest.$ac_objext > conftest.lst
  5478. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5479. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5480. (eval $lt_ar_try) 2>&5
  5481. ac_status=$?
  5482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5483. test $ac_status = 0; }
  5484. if test "$ac_status" -eq 0; then
  5485. # Ensure the archiver fails upon bogus file names.
  5486. rm -f conftest.$ac_objext libconftest.a
  5487. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5488. (eval $lt_ar_try) 2>&5
  5489. ac_status=$?
  5490. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5491. test $ac_status = 0; }
  5492. if test "$ac_status" -ne 0; then
  5493. lt_cv_ar_at_file=@
  5494. fi
  5495. fi
  5496. rm -f conftest.* libconftest.a
  5497. fi
  5498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5499. fi
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5501. $as_echo "$lt_cv_ar_at_file" >&6; }
  5502. if test "x$lt_cv_ar_at_file" = xno; then
  5503. archiver_list_spec=
  5504. else
  5505. archiver_list_spec=$lt_cv_ar_at_file
  5506. fi
  5507. if test -n "$ac_tool_prefix"; then
  5508. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5509. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5511. $as_echo_n "checking for $ac_word... " >&6; }
  5512. if ${ac_cv_prog_STRIP+:} false; then :
  5513. $as_echo_n "(cached) " >&6
  5514. else
  5515. if test -n "$STRIP"; then
  5516. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5517. else
  5518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5519. for as_dir in $PATH
  5520. do
  5521. IFS=$as_save_IFS
  5522. test -z "$as_dir" && as_dir=.
  5523. for ac_exec_ext in '' $ac_executable_extensions; do
  5524. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5525. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5527. break 2
  5528. fi
  5529. done
  5530. done
  5531. IFS=$as_save_IFS
  5532. fi
  5533. fi
  5534. STRIP=$ac_cv_prog_STRIP
  5535. if test -n "$STRIP"; then
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5537. $as_echo "$STRIP" >&6; }
  5538. else
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5540. $as_echo "no" >&6; }
  5541. fi
  5542. fi
  5543. if test -z "$ac_cv_prog_STRIP"; then
  5544. ac_ct_STRIP=$STRIP
  5545. # Extract the first word of "strip", so it can be a program name with args.
  5546. set dummy strip; ac_word=$2
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5548. $as_echo_n "checking for $ac_word... " >&6; }
  5549. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5550. $as_echo_n "(cached) " >&6
  5551. else
  5552. if test -n "$ac_ct_STRIP"; then
  5553. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5554. else
  5555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5556. for as_dir in $PATH
  5557. do
  5558. IFS=$as_save_IFS
  5559. test -z "$as_dir" && as_dir=.
  5560. for ac_exec_ext in '' $ac_executable_extensions; do
  5561. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5562. ac_cv_prog_ac_ct_STRIP="strip"
  5563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5564. break 2
  5565. fi
  5566. done
  5567. done
  5568. IFS=$as_save_IFS
  5569. fi
  5570. fi
  5571. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5572. if test -n "$ac_ct_STRIP"; then
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5574. $as_echo "$ac_ct_STRIP" >&6; }
  5575. else
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5577. $as_echo "no" >&6; }
  5578. fi
  5579. if test "x$ac_ct_STRIP" = x; then
  5580. STRIP=":"
  5581. else
  5582. case $cross_compiling:$ac_tool_warned in
  5583. yes:)
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5585. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5586. ac_tool_warned=yes ;;
  5587. esac
  5588. STRIP=$ac_ct_STRIP
  5589. fi
  5590. else
  5591. STRIP="$ac_cv_prog_STRIP"
  5592. fi
  5593. test -z "$STRIP" && STRIP=:
  5594. if test -n "$ac_tool_prefix"; then
  5595. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5596. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5598. $as_echo_n "checking for $ac_word... " >&6; }
  5599. if ${ac_cv_prog_RANLIB+:} false; then :
  5600. $as_echo_n "(cached) " >&6
  5601. else
  5602. if test -n "$RANLIB"; then
  5603. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5604. else
  5605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5606. for as_dir in $PATH
  5607. do
  5608. IFS=$as_save_IFS
  5609. test -z "$as_dir" && as_dir=.
  5610. for ac_exec_ext in '' $ac_executable_extensions; do
  5611. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5612. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5614. break 2
  5615. fi
  5616. done
  5617. done
  5618. IFS=$as_save_IFS
  5619. fi
  5620. fi
  5621. RANLIB=$ac_cv_prog_RANLIB
  5622. if test -n "$RANLIB"; then
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5624. $as_echo "$RANLIB" >&6; }
  5625. else
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5627. $as_echo "no" >&6; }
  5628. fi
  5629. fi
  5630. if test -z "$ac_cv_prog_RANLIB"; then
  5631. ac_ct_RANLIB=$RANLIB
  5632. # Extract the first word of "ranlib", so it can be a program name with args.
  5633. set dummy ranlib; ac_word=$2
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5635. $as_echo_n "checking for $ac_word... " >&6; }
  5636. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5637. $as_echo_n "(cached) " >&6
  5638. else
  5639. if test -n "$ac_ct_RANLIB"; then
  5640. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5641. else
  5642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5643. for as_dir in $PATH
  5644. do
  5645. IFS=$as_save_IFS
  5646. test -z "$as_dir" && as_dir=.
  5647. for ac_exec_ext in '' $ac_executable_extensions; do
  5648. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5649. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5651. break 2
  5652. fi
  5653. done
  5654. done
  5655. IFS=$as_save_IFS
  5656. fi
  5657. fi
  5658. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5659. if test -n "$ac_ct_RANLIB"; then
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5661. $as_echo "$ac_ct_RANLIB" >&6; }
  5662. else
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5664. $as_echo "no" >&6; }
  5665. fi
  5666. if test "x$ac_ct_RANLIB" = x; then
  5667. RANLIB=":"
  5668. else
  5669. case $cross_compiling:$ac_tool_warned in
  5670. yes:)
  5671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5672. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5673. ac_tool_warned=yes ;;
  5674. esac
  5675. RANLIB=$ac_ct_RANLIB
  5676. fi
  5677. else
  5678. RANLIB="$ac_cv_prog_RANLIB"
  5679. fi
  5680. test -z "$RANLIB" && RANLIB=:
  5681. # Determine commands to create old-style static archives.
  5682. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5683. old_postinstall_cmds='chmod 644 $oldlib'
  5684. old_postuninstall_cmds=
  5685. if test -n "$RANLIB"; then
  5686. case $host_os in
  5687. openbsd*)
  5688. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5689. ;;
  5690. *)
  5691. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5692. ;;
  5693. esac
  5694. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5695. fi
  5696. case $host_os in
  5697. darwin*)
  5698. lock_old_archive_extraction=yes ;;
  5699. *)
  5700. lock_old_archive_extraction=no ;;
  5701. esac
  5702. # If no C compiler was specified, use CC.
  5703. LTCC=${LTCC-"$CC"}
  5704. # If no C compiler flags were specified, use CFLAGS.
  5705. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5706. # Allow CC to be a program name with arguments.
  5707. compiler=$CC
  5708. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5710. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5711. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5712. $as_echo_n "(cached) " >&6
  5713. else
  5714. # These are sane defaults that work on at least a few old systems.
  5715. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5716. # Character class describing NM global symbol codes.
  5717. symcode='[BCDEGRST]'
  5718. # Regexp to match symbols that can be accessed directly from C.
  5719. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5720. # Define system-specific variables.
  5721. case $host_os in
  5722. aix*)
  5723. symcode='[BCDT]'
  5724. ;;
  5725. cygwin* | mingw* | pw32* | cegcc*)
  5726. symcode='[ABCDGISTW]'
  5727. ;;
  5728. hpux*)
  5729. if test "$host_cpu" = ia64; then
  5730. symcode='[ABCDEGRST]'
  5731. fi
  5732. ;;
  5733. irix* | nonstopux*)
  5734. symcode='[BCDEGRST]'
  5735. ;;
  5736. osf*)
  5737. symcode='[BCDEGQRST]'
  5738. ;;
  5739. solaris*)
  5740. symcode='[BDRT]'
  5741. ;;
  5742. sco3.2v5*)
  5743. symcode='[DT]'
  5744. ;;
  5745. sysv4.2uw2*)
  5746. symcode='[DT]'
  5747. ;;
  5748. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5749. symcode='[ABDT]'
  5750. ;;
  5751. sysv4)
  5752. symcode='[DFNSTU]'
  5753. ;;
  5754. esac
  5755. # If we're using GNU nm, then use its standard symbol codes.
  5756. case `$NM -V 2>&1` in
  5757. *GNU* | *'with BFD'*)
  5758. symcode='[ABCDGIRSTW]' ;;
  5759. esac
  5760. # Transform an extracted symbol line into a proper C declaration.
  5761. # Some systems (esp. on ia64) link data and code symbols differently,
  5762. # so use this general approach.
  5763. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5764. # Transform an extracted symbol line into symbol name and symbol address
  5765. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5766. 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'"
  5767. # Handle CRLF in mingw tool chain
  5768. opt_cr=
  5769. case $build_os in
  5770. mingw*)
  5771. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5772. ;;
  5773. esac
  5774. # Try without a prefix underscore, then with it.
  5775. for ac_symprfx in "" "_"; do
  5776. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5777. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5778. # Write the raw and C identifiers.
  5779. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5780. # Fake it for dumpbin and say T for any non-static function
  5781. # and D for any global variable.
  5782. # Also find C++ and __fastcall symbols from MSVC++,
  5783. # which start with @ or ?.
  5784. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5785. " {last_section=section; section=\$ 3};"\
  5786. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5787. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5788. " \$ 0!~/External *\|/{next};"\
  5789. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5790. " {if(hide[section]) next};"\
  5791. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5792. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5793. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5794. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5795. " ' prfx=^$ac_symprfx"
  5796. else
  5797. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5798. fi
  5799. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5800. # Check to see that the pipe works correctly.
  5801. pipe_works=no
  5802. rm -f conftest*
  5803. cat > conftest.$ac_ext <<_LT_EOF
  5804. #ifdef __cplusplus
  5805. extern "C" {
  5806. #endif
  5807. char nm_test_var;
  5808. void nm_test_func(void);
  5809. void nm_test_func(void){}
  5810. #ifdef __cplusplus
  5811. }
  5812. #endif
  5813. int main(){nm_test_var='a';nm_test_func();return(0);}
  5814. _LT_EOF
  5815. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5816. (eval $ac_compile) 2>&5
  5817. ac_status=$?
  5818. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5819. test $ac_status = 0; }; then
  5820. # Now try to grab the symbols.
  5821. nlist=conftest.nm
  5822. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5823. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5824. ac_status=$?
  5825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5826. test $ac_status = 0; } && test -s "$nlist"; then
  5827. # Try sorting and uniquifying the output.
  5828. if sort "$nlist" | uniq > "$nlist"T; then
  5829. mv -f "$nlist"T "$nlist"
  5830. else
  5831. rm -f "$nlist"T
  5832. fi
  5833. # Make sure that we snagged all the symbols we need.
  5834. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5835. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5836. cat <<_LT_EOF > conftest.$ac_ext
  5837. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5838. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5839. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5840. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5841. # define LT_DLSYM_CONST
  5842. #elif defined(__osf__)
  5843. /* This system does not cope well with relocations in const data. */
  5844. # define LT_DLSYM_CONST
  5845. #else
  5846. # define LT_DLSYM_CONST const
  5847. #endif
  5848. #ifdef __cplusplus
  5849. extern "C" {
  5850. #endif
  5851. _LT_EOF
  5852. # Now generate the symbol file.
  5853. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5854. cat <<_LT_EOF >> conftest.$ac_ext
  5855. /* The mapping between symbol names and symbols. */
  5856. LT_DLSYM_CONST struct {
  5857. const char *name;
  5858. void *address;
  5859. }
  5860. lt__PROGRAM__LTX_preloaded_symbols[] =
  5861. {
  5862. { "@PROGRAM@", (void *) 0 },
  5863. _LT_EOF
  5864. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5865. cat <<\_LT_EOF >> conftest.$ac_ext
  5866. {0, (void *) 0}
  5867. };
  5868. /* This works around a problem in FreeBSD linker */
  5869. #ifdef FREEBSD_WORKAROUND
  5870. static const void *lt_preloaded_setup() {
  5871. return lt__PROGRAM__LTX_preloaded_symbols;
  5872. }
  5873. #endif
  5874. #ifdef __cplusplus
  5875. }
  5876. #endif
  5877. _LT_EOF
  5878. # Now try linking the two files.
  5879. mv conftest.$ac_objext conftstm.$ac_objext
  5880. lt_globsym_save_LIBS=$LIBS
  5881. lt_globsym_save_CFLAGS=$CFLAGS
  5882. LIBS="conftstm.$ac_objext"
  5883. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5884. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5885. (eval $ac_link) 2>&5
  5886. ac_status=$?
  5887. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5888. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5889. pipe_works=yes
  5890. fi
  5891. LIBS=$lt_globsym_save_LIBS
  5892. CFLAGS=$lt_globsym_save_CFLAGS
  5893. else
  5894. echo "cannot find nm_test_func in $nlist" >&5
  5895. fi
  5896. else
  5897. echo "cannot find nm_test_var in $nlist" >&5
  5898. fi
  5899. else
  5900. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5901. fi
  5902. else
  5903. echo "$progname: failed program was:" >&5
  5904. cat conftest.$ac_ext >&5
  5905. fi
  5906. rm -rf conftest* conftst*
  5907. # Do not use the global_symbol_pipe unless it works.
  5908. if test "$pipe_works" = yes; then
  5909. break
  5910. else
  5911. lt_cv_sys_global_symbol_pipe=
  5912. fi
  5913. done
  5914. fi
  5915. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5916. lt_cv_sys_global_symbol_to_cdecl=
  5917. fi
  5918. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5920. $as_echo "failed" >&6; }
  5921. else
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5923. $as_echo "ok" >&6; }
  5924. fi
  5925. # Response file support.
  5926. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5927. nm_file_list_spec='@'
  5928. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5929. nm_file_list_spec='@'
  5930. fi
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5932. $as_echo_n "checking for sysroot... " >&6; }
  5933. # Check whether --with-sysroot was given.
  5934. if test "${with_sysroot+set}" = set; then :
  5935. withval=$with_sysroot;
  5936. else
  5937. with_sysroot=no
  5938. fi
  5939. lt_sysroot=
  5940. case ${with_sysroot} in #(
  5941. yes)
  5942. if test "$GCC" = yes; then
  5943. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5944. fi
  5945. ;; #(
  5946. /*)
  5947. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5948. ;; #(
  5949. no|'')
  5950. ;; #(
  5951. *)
  5952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5953. $as_echo "${with_sysroot}" >&6; }
  5954. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5955. ;;
  5956. esac
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5958. $as_echo "${lt_sysroot:-no}" >&6; }
  5959. # Check whether --enable-libtool-lock was given.
  5960. if test "${enable_libtool_lock+set}" = set; then :
  5961. enableval=$enable_libtool_lock;
  5962. fi
  5963. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5964. # Some flags need to be propagated to the compiler or linker for good
  5965. # libtool support.
  5966. case $host in
  5967. ia64-*-hpux*)
  5968. # Find out which ABI we are using.
  5969. echo 'int i;' > conftest.$ac_ext
  5970. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5971. (eval $ac_compile) 2>&5
  5972. ac_status=$?
  5973. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5974. test $ac_status = 0; }; then
  5975. case `/usr/bin/file conftest.$ac_objext` in
  5976. *ELF-32*)
  5977. HPUX_IA64_MODE="32"
  5978. ;;
  5979. *ELF-64*)
  5980. HPUX_IA64_MODE="64"
  5981. ;;
  5982. esac
  5983. fi
  5984. rm -rf conftest*
  5985. ;;
  5986. *-*-irix6*)
  5987. # Find out which ABI we are using.
  5988. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5989. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5990. (eval $ac_compile) 2>&5
  5991. ac_status=$?
  5992. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5993. test $ac_status = 0; }; then
  5994. if test "$lt_cv_prog_gnu_ld" = yes; then
  5995. case `/usr/bin/file conftest.$ac_objext` in
  5996. *32-bit*)
  5997. LD="${LD-ld} -melf32bsmip"
  5998. ;;
  5999. *N32*)
  6000. LD="${LD-ld} -melf32bmipn32"
  6001. ;;
  6002. *64-bit*)
  6003. LD="${LD-ld} -melf64bmip"
  6004. ;;
  6005. esac
  6006. else
  6007. case `/usr/bin/file conftest.$ac_objext` in
  6008. *32-bit*)
  6009. LD="${LD-ld} -32"
  6010. ;;
  6011. *N32*)
  6012. LD="${LD-ld} -n32"
  6013. ;;
  6014. *64-bit*)
  6015. LD="${LD-ld} -64"
  6016. ;;
  6017. esac
  6018. fi
  6019. fi
  6020. rm -rf conftest*
  6021. ;;
  6022. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6023. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6024. # Find out which ABI we are using.
  6025. echo 'int i;' > conftest.$ac_ext
  6026. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6027. (eval $ac_compile) 2>&5
  6028. ac_status=$?
  6029. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6030. test $ac_status = 0; }; then
  6031. case `/usr/bin/file conftest.o` in
  6032. *32-bit*)
  6033. case $host in
  6034. x86_64-*kfreebsd*-gnu)
  6035. LD="${LD-ld} -m elf_i386_fbsd"
  6036. ;;
  6037. x86_64-*linux*)
  6038. LD="${LD-ld} -m elf_i386"
  6039. ;;
  6040. ppc64-*linux*|powerpc64-*linux*)
  6041. LD="${LD-ld} -m elf32ppclinux"
  6042. ;;
  6043. s390x-*linux*)
  6044. LD="${LD-ld} -m elf_s390"
  6045. ;;
  6046. sparc64-*linux*)
  6047. LD="${LD-ld} -m elf32_sparc"
  6048. ;;
  6049. esac
  6050. ;;
  6051. *64-bit*)
  6052. case $host in
  6053. x86_64-*kfreebsd*-gnu)
  6054. LD="${LD-ld} -m elf_x86_64_fbsd"
  6055. ;;
  6056. x86_64-*linux*)
  6057. LD="${LD-ld} -m elf_x86_64"
  6058. ;;
  6059. ppc*-*linux*|powerpc*-*linux*)
  6060. LD="${LD-ld} -m elf64ppc"
  6061. ;;
  6062. s390*-*linux*|s390*-*tpf*)
  6063. LD="${LD-ld} -m elf64_s390"
  6064. ;;
  6065. sparc*-*linux*)
  6066. LD="${LD-ld} -m elf64_sparc"
  6067. ;;
  6068. esac
  6069. ;;
  6070. esac
  6071. fi
  6072. rm -rf conftest*
  6073. ;;
  6074. *-*-sco3.2v5*)
  6075. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6076. SAVE_CFLAGS="$CFLAGS"
  6077. CFLAGS="$CFLAGS -belf"
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6079. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6080. if ${lt_cv_cc_needs_belf+:} false; then :
  6081. $as_echo_n "(cached) " >&6
  6082. else
  6083. ac_ext=c
  6084. ac_cpp='$CPP $CPPFLAGS'
  6085. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6086. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6087. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6089. /* end confdefs.h. */
  6090. int
  6091. main ()
  6092. {
  6093. ;
  6094. return 0;
  6095. }
  6096. _ACEOF
  6097. if ac_fn_c_try_link "$LINENO"; then :
  6098. lt_cv_cc_needs_belf=yes
  6099. else
  6100. lt_cv_cc_needs_belf=no
  6101. fi
  6102. rm -f core conftest.err conftest.$ac_objext \
  6103. conftest$ac_exeext conftest.$ac_ext
  6104. ac_ext=c
  6105. ac_cpp='$CPP $CPPFLAGS'
  6106. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6107. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6108. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6109. fi
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6111. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6112. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6113. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6114. CFLAGS="$SAVE_CFLAGS"
  6115. fi
  6116. ;;
  6117. *-*solaris*)
  6118. # Find out which ABI we are using.
  6119. echo 'int i;' > conftest.$ac_ext
  6120. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6121. (eval $ac_compile) 2>&5
  6122. ac_status=$?
  6123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6124. test $ac_status = 0; }; then
  6125. case `/usr/bin/file conftest.o` in
  6126. *64-bit*)
  6127. case $lt_cv_prog_gnu_ld in
  6128. yes*)
  6129. case $host in
  6130. i?86-*-solaris*)
  6131. LD="${LD-ld} -m elf_x86_64"
  6132. ;;
  6133. sparc*-*-solaris*)
  6134. LD="${LD-ld} -m elf64_sparc"
  6135. ;;
  6136. esac
  6137. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6138. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6139. LD="${LD-ld}_sol2"
  6140. fi
  6141. ;;
  6142. *)
  6143. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6144. LD="${LD-ld} -64"
  6145. fi
  6146. ;;
  6147. esac
  6148. ;;
  6149. esac
  6150. fi
  6151. rm -rf conftest*
  6152. ;;
  6153. esac
  6154. need_locks="$enable_libtool_lock"
  6155. if test -n "$ac_tool_prefix"; then
  6156. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6157. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6159. $as_echo_n "checking for $ac_word... " >&6; }
  6160. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6161. $as_echo_n "(cached) " >&6
  6162. else
  6163. if test -n "$MANIFEST_TOOL"; then
  6164. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6165. else
  6166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6167. for as_dir in $PATH
  6168. do
  6169. IFS=$as_save_IFS
  6170. test -z "$as_dir" && as_dir=.
  6171. for ac_exec_ext in '' $ac_executable_extensions; do
  6172. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6173. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6175. break 2
  6176. fi
  6177. done
  6178. done
  6179. IFS=$as_save_IFS
  6180. fi
  6181. fi
  6182. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6183. if test -n "$MANIFEST_TOOL"; then
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6185. $as_echo "$MANIFEST_TOOL" >&6; }
  6186. else
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6188. $as_echo "no" >&6; }
  6189. fi
  6190. fi
  6191. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6192. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6193. # Extract the first word of "mt", so it can be a program name with args.
  6194. set dummy mt; ac_word=$2
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6196. $as_echo_n "checking for $ac_word... " >&6; }
  6197. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6198. $as_echo_n "(cached) " >&6
  6199. else
  6200. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6201. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6202. else
  6203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6204. for as_dir in $PATH
  6205. do
  6206. IFS=$as_save_IFS
  6207. test -z "$as_dir" && as_dir=.
  6208. for ac_exec_ext in '' $ac_executable_extensions; do
  6209. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6210. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6211. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6212. break 2
  6213. fi
  6214. done
  6215. done
  6216. IFS=$as_save_IFS
  6217. fi
  6218. fi
  6219. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6220. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6222. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6223. else
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6225. $as_echo "no" >&6; }
  6226. fi
  6227. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6228. MANIFEST_TOOL=":"
  6229. else
  6230. case $cross_compiling:$ac_tool_warned in
  6231. yes:)
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6233. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6234. ac_tool_warned=yes ;;
  6235. esac
  6236. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6237. fi
  6238. else
  6239. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6240. fi
  6241. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6243. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6244. if ${lt_cv_path_mainfest_tool+:} false; then :
  6245. $as_echo_n "(cached) " >&6
  6246. else
  6247. lt_cv_path_mainfest_tool=no
  6248. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6249. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6250. cat conftest.err >&5
  6251. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6252. lt_cv_path_mainfest_tool=yes
  6253. fi
  6254. rm -f conftest*
  6255. fi
  6256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6257. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6258. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6259. MANIFEST_TOOL=:
  6260. fi
  6261. case $host_os in
  6262. rhapsody* | darwin*)
  6263. if test -n "$ac_tool_prefix"; then
  6264. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6265. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6267. $as_echo_n "checking for $ac_word... " >&6; }
  6268. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6269. $as_echo_n "(cached) " >&6
  6270. else
  6271. if test -n "$DSYMUTIL"; then
  6272. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6273. else
  6274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6275. for as_dir in $PATH
  6276. do
  6277. IFS=$as_save_IFS
  6278. test -z "$as_dir" && as_dir=.
  6279. for ac_exec_ext in '' $ac_executable_extensions; do
  6280. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6281. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6283. break 2
  6284. fi
  6285. done
  6286. done
  6287. IFS=$as_save_IFS
  6288. fi
  6289. fi
  6290. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6291. if test -n "$DSYMUTIL"; then
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6293. $as_echo "$DSYMUTIL" >&6; }
  6294. else
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6296. $as_echo "no" >&6; }
  6297. fi
  6298. fi
  6299. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6300. ac_ct_DSYMUTIL=$DSYMUTIL
  6301. # Extract the first word of "dsymutil", so it can be a program name with args.
  6302. set dummy dsymutil; ac_word=$2
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6304. $as_echo_n "checking for $ac_word... " >&6; }
  6305. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6306. $as_echo_n "(cached) " >&6
  6307. else
  6308. if test -n "$ac_ct_DSYMUTIL"; then
  6309. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6310. else
  6311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6312. for as_dir in $PATH
  6313. do
  6314. IFS=$as_save_IFS
  6315. test -z "$as_dir" && as_dir=.
  6316. for ac_exec_ext in '' $ac_executable_extensions; do
  6317. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6318. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6320. break 2
  6321. fi
  6322. done
  6323. done
  6324. IFS=$as_save_IFS
  6325. fi
  6326. fi
  6327. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6328. if test -n "$ac_ct_DSYMUTIL"; then
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6330. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6331. else
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6333. $as_echo "no" >&6; }
  6334. fi
  6335. if test "x$ac_ct_DSYMUTIL" = x; then
  6336. DSYMUTIL=":"
  6337. else
  6338. case $cross_compiling:$ac_tool_warned in
  6339. yes:)
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6342. ac_tool_warned=yes ;;
  6343. esac
  6344. DSYMUTIL=$ac_ct_DSYMUTIL
  6345. fi
  6346. else
  6347. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6348. fi
  6349. if test -n "$ac_tool_prefix"; then
  6350. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6351. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6353. $as_echo_n "checking for $ac_word... " >&6; }
  6354. if ${ac_cv_prog_NMEDIT+:} false; then :
  6355. $as_echo_n "(cached) " >&6
  6356. else
  6357. if test -n "$NMEDIT"; then
  6358. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6359. else
  6360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6361. for as_dir in $PATH
  6362. do
  6363. IFS=$as_save_IFS
  6364. test -z "$as_dir" && as_dir=.
  6365. for ac_exec_ext in '' $ac_executable_extensions; do
  6366. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6367. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6369. break 2
  6370. fi
  6371. done
  6372. done
  6373. IFS=$as_save_IFS
  6374. fi
  6375. fi
  6376. NMEDIT=$ac_cv_prog_NMEDIT
  6377. if test -n "$NMEDIT"; then
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6379. $as_echo "$NMEDIT" >&6; }
  6380. else
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6382. $as_echo "no" >&6; }
  6383. fi
  6384. fi
  6385. if test -z "$ac_cv_prog_NMEDIT"; then
  6386. ac_ct_NMEDIT=$NMEDIT
  6387. # Extract the first word of "nmedit", so it can be a program name with args.
  6388. set dummy nmedit; ac_word=$2
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6390. $as_echo_n "checking for $ac_word... " >&6; }
  6391. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6392. $as_echo_n "(cached) " >&6
  6393. else
  6394. if test -n "$ac_ct_NMEDIT"; then
  6395. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6396. else
  6397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6398. for as_dir in $PATH
  6399. do
  6400. IFS=$as_save_IFS
  6401. test -z "$as_dir" && as_dir=.
  6402. for ac_exec_ext in '' $ac_executable_extensions; do
  6403. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6404. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6406. break 2
  6407. fi
  6408. done
  6409. done
  6410. IFS=$as_save_IFS
  6411. fi
  6412. fi
  6413. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6414. if test -n "$ac_ct_NMEDIT"; then
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6416. $as_echo "$ac_ct_NMEDIT" >&6; }
  6417. else
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6419. $as_echo "no" >&6; }
  6420. fi
  6421. if test "x$ac_ct_NMEDIT" = x; then
  6422. NMEDIT=":"
  6423. else
  6424. case $cross_compiling:$ac_tool_warned in
  6425. yes:)
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6427. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6428. ac_tool_warned=yes ;;
  6429. esac
  6430. NMEDIT=$ac_ct_NMEDIT
  6431. fi
  6432. else
  6433. NMEDIT="$ac_cv_prog_NMEDIT"
  6434. fi
  6435. if test -n "$ac_tool_prefix"; then
  6436. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6437. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6439. $as_echo_n "checking for $ac_word... " >&6; }
  6440. if ${ac_cv_prog_LIPO+:} false; then :
  6441. $as_echo_n "(cached) " >&6
  6442. else
  6443. if test -n "$LIPO"; then
  6444. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6445. else
  6446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6447. for as_dir in $PATH
  6448. do
  6449. IFS=$as_save_IFS
  6450. test -z "$as_dir" && as_dir=.
  6451. for ac_exec_ext in '' $ac_executable_extensions; do
  6452. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6453. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6455. break 2
  6456. fi
  6457. done
  6458. done
  6459. IFS=$as_save_IFS
  6460. fi
  6461. fi
  6462. LIPO=$ac_cv_prog_LIPO
  6463. if test -n "$LIPO"; then
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6465. $as_echo "$LIPO" >&6; }
  6466. else
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6468. $as_echo "no" >&6; }
  6469. fi
  6470. fi
  6471. if test -z "$ac_cv_prog_LIPO"; then
  6472. ac_ct_LIPO=$LIPO
  6473. # Extract the first word of "lipo", so it can be a program name with args.
  6474. set dummy lipo; ac_word=$2
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6476. $as_echo_n "checking for $ac_word... " >&6; }
  6477. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6478. $as_echo_n "(cached) " >&6
  6479. else
  6480. if test -n "$ac_ct_LIPO"; then
  6481. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6482. else
  6483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6484. for as_dir in $PATH
  6485. do
  6486. IFS=$as_save_IFS
  6487. test -z "$as_dir" && as_dir=.
  6488. for ac_exec_ext in '' $ac_executable_extensions; do
  6489. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6490. ac_cv_prog_ac_ct_LIPO="lipo"
  6491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6492. break 2
  6493. fi
  6494. done
  6495. done
  6496. IFS=$as_save_IFS
  6497. fi
  6498. fi
  6499. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6500. if test -n "$ac_ct_LIPO"; then
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6502. $as_echo "$ac_ct_LIPO" >&6; }
  6503. else
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6505. $as_echo "no" >&6; }
  6506. fi
  6507. if test "x$ac_ct_LIPO" = x; then
  6508. LIPO=":"
  6509. else
  6510. case $cross_compiling:$ac_tool_warned in
  6511. yes:)
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6513. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6514. ac_tool_warned=yes ;;
  6515. esac
  6516. LIPO=$ac_ct_LIPO
  6517. fi
  6518. else
  6519. LIPO="$ac_cv_prog_LIPO"
  6520. fi
  6521. if test -n "$ac_tool_prefix"; then
  6522. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6523. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6525. $as_echo_n "checking for $ac_word... " >&6; }
  6526. if ${ac_cv_prog_OTOOL+:} false; then :
  6527. $as_echo_n "(cached) " >&6
  6528. else
  6529. if test -n "$OTOOL"; then
  6530. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6531. else
  6532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6533. for as_dir in $PATH
  6534. do
  6535. IFS=$as_save_IFS
  6536. test -z "$as_dir" && as_dir=.
  6537. for ac_exec_ext in '' $ac_executable_extensions; do
  6538. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6539. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6541. break 2
  6542. fi
  6543. done
  6544. done
  6545. IFS=$as_save_IFS
  6546. fi
  6547. fi
  6548. OTOOL=$ac_cv_prog_OTOOL
  6549. if test -n "$OTOOL"; then
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6551. $as_echo "$OTOOL" >&6; }
  6552. else
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6554. $as_echo "no" >&6; }
  6555. fi
  6556. fi
  6557. if test -z "$ac_cv_prog_OTOOL"; then
  6558. ac_ct_OTOOL=$OTOOL
  6559. # Extract the first word of "otool", so it can be a program name with args.
  6560. set dummy otool; ac_word=$2
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6562. $as_echo_n "checking for $ac_word... " >&6; }
  6563. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6564. $as_echo_n "(cached) " >&6
  6565. else
  6566. if test -n "$ac_ct_OTOOL"; then
  6567. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6568. else
  6569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6570. for as_dir in $PATH
  6571. do
  6572. IFS=$as_save_IFS
  6573. test -z "$as_dir" && as_dir=.
  6574. for ac_exec_ext in '' $ac_executable_extensions; do
  6575. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6576. ac_cv_prog_ac_ct_OTOOL="otool"
  6577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6578. break 2
  6579. fi
  6580. done
  6581. done
  6582. IFS=$as_save_IFS
  6583. fi
  6584. fi
  6585. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6586. if test -n "$ac_ct_OTOOL"; then
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6588. $as_echo "$ac_ct_OTOOL" >&6; }
  6589. else
  6590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6591. $as_echo "no" >&6; }
  6592. fi
  6593. if test "x$ac_ct_OTOOL" = x; then
  6594. OTOOL=":"
  6595. else
  6596. case $cross_compiling:$ac_tool_warned in
  6597. yes:)
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6599. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6600. ac_tool_warned=yes ;;
  6601. esac
  6602. OTOOL=$ac_ct_OTOOL
  6603. fi
  6604. else
  6605. OTOOL="$ac_cv_prog_OTOOL"
  6606. fi
  6607. if test -n "$ac_tool_prefix"; then
  6608. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6609. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6611. $as_echo_n "checking for $ac_word... " >&6; }
  6612. if ${ac_cv_prog_OTOOL64+:} false; then :
  6613. $as_echo_n "(cached) " >&6
  6614. else
  6615. if test -n "$OTOOL64"; then
  6616. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6617. else
  6618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6619. for as_dir in $PATH
  6620. do
  6621. IFS=$as_save_IFS
  6622. test -z "$as_dir" && as_dir=.
  6623. for ac_exec_ext in '' $ac_executable_extensions; do
  6624. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6625. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6627. break 2
  6628. fi
  6629. done
  6630. done
  6631. IFS=$as_save_IFS
  6632. fi
  6633. fi
  6634. OTOOL64=$ac_cv_prog_OTOOL64
  6635. if test -n "$OTOOL64"; then
  6636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6637. $as_echo "$OTOOL64" >&6; }
  6638. else
  6639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6640. $as_echo "no" >&6; }
  6641. fi
  6642. fi
  6643. if test -z "$ac_cv_prog_OTOOL64"; then
  6644. ac_ct_OTOOL64=$OTOOL64
  6645. # Extract the first word of "otool64", so it can be a program name with args.
  6646. set dummy otool64; ac_word=$2
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6648. $as_echo_n "checking for $ac_word... " >&6; }
  6649. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6650. $as_echo_n "(cached) " >&6
  6651. else
  6652. if test -n "$ac_ct_OTOOL64"; then
  6653. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6654. else
  6655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6656. for as_dir in $PATH
  6657. do
  6658. IFS=$as_save_IFS
  6659. test -z "$as_dir" && as_dir=.
  6660. for ac_exec_ext in '' $ac_executable_extensions; do
  6661. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6662. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6664. break 2
  6665. fi
  6666. done
  6667. done
  6668. IFS=$as_save_IFS
  6669. fi
  6670. fi
  6671. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6672. if test -n "$ac_ct_OTOOL64"; then
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6674. $as_echo "$ac_ct_OTOOL64" >&6; }
  6675. else
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6677. $as_echo "no" >&6; }
  6678. fi
  6679. if test "x$ac_ct_OTOOL64" = x; then
  6680. OTOOL64=":"
  6681. else
  6682. case $cross_compiling:$ac_tool_warned in
  6683. yes:)
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6685. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6686. ac_tool_warned=yes ;;
  6687. esac
  6688. OTOOL64=$ac_ct_OTOOL64
  6689. fi
  6690. else
  6691. OTOOL64="$ac_cv_prog_OTOOL64"
  6692. fi
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6694. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6695. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6696. $as_echo_n "(cached) " >&6
  6697. else
  6698. lt_cv_apple_cc_single_mod=no
  6699. if test -z "${LT_MULTI_MODULE}"; then
  6700. # By default we will add the -single_module flag. You can override
  6701. # by either setting the environment variable LT_MULTI_MODULE
  6702. # non-empty at configure time, or by adding -multi_module to the
  6703. # link flags.
  6704. rm -rf libconftest.dylib*
  6705. echo "int foo(void){return 1;}" > conftest.c
  6706. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6707. -dynamiclib -Wl,-single_module conftest.c" >&5
  6708. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6709. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6710. _lt_result=$?
  6711. # If there is a non-empty error log, and "single_module"
  6712. # appears in it, assume the flag caused a linker warning
  6713. if test -s conftest.err && $GREP single_module conftest.err; then
  6714. cat conftest.err >&5
  6715. # Otherwise, if the output was created with a 0 exit code from
  6716. # the compiler, it worked.
  6717. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6718. lt_cv_apple_cc_single_mod=yes
  6719. else
  6720. cat conftest.err >&5
  6721. fi
  6722. rm -rf libconftest.dylib*
  6723. rm -f conftest.*
  6724. fi
  6725. fi
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6727. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6729. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6730. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6731. $as_echo_n "(cached) " >&6
  6732. else
  6733. lt_cv_ld_exported_symbols_list=no
  6734. save_LDFLAGS=$LDFLAGS
  6735. echo "_main" > conftest.sym
  6736. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6738. /* end confdefs.h. */
  6739. int
  6740. main ()
  6741. {
  6742. ;
  6743. return 0;
  6744. }
  6745. _ACEOF
  6746. if ac_fn_c_try_link "$LINENO"; then :
  6747. lt_cv_ld_exported_symbols_list=yes
  6748. else
  6749. lt_cv_ld_exported_symbols_list=no
  6750. fi
  6751. rm -f core conftest.err conftest.$ac_objext \
  6752. conftest$ac_exeext conftest.$ac_ext
  6753. LDFLAGS="$save_LDFLAGS"
  6754. fi
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6756. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6758. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6759. if ${lt_cv_ld_force_load+:} false; then :
  6760. $as_echo_n "(cached) " >&6
  6761. else
  6762. lt_cv_ld_force_load=no
  6763. cat > conftest.c << _LT_EOF
  6764. int forced_loaded() { return 2;}
  6765. _LT_EOF
  6766. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6767. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6768. echo "$AR cru libconftest.a conftest.o" >&5
  6769. $AR cru libconftest.a conftest.o 2>&5
  6770. echo "$RANLIB libconftest.a" >&5
  6771. $RANLIB libconftest.a 2>&5
  6772. cat > conftest.c << _LT_EOF
  6773. int main() { return 0;}
  6774. _LT_EOF
  6775. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6776. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6777. _lt_result=$?
  6778. if test -s conftest.err && $GREP force_load conftest.err; then
  6779. cat conftest.err >&5
  6780. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6781. lt_cv_ld_force_load=yes
  6782. else
  6783. cat conftest.err >&5
  6784. fi
  6785. rm -f conftest.err libconftest.a conftest conftest.c
  6786. rm -rf conftest.dSYM
  6787. fi
  6788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6789. $as_echo "$lt_cv_ld_force_load" >&6; }
  6790. case $host_os in
  6791. rhapsody* | darwin1.[012])
  6792. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6793. darwin1.*)
  6794. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6795. darwin*) # darwin 5.x on
  6796. # if running on 10.5 or later, the deployment target defaults
  6797. # to the OS version, if on x86, and 10.4, the deployment
  6798. # target defaults to 10.4. Don't you love it?
  6799. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6800. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6801. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6802. 10.[012]*)
  6803. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6804. 10.*)
  6805. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6806. esac
  6807. ;;
  6808. esac
  6809. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6810. _lt_dar_single_mod='$single_module'
  6811. fi
  6812. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6813. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6814. else
  6815. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6816. fi
  6817. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6818. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6819. else
  6820. _lt_dsymutil=
  6821. fi
  6822. ;;
  6823. esac
  6824. ac_ext=c
  6825. ac_cpp='$CPP $CPPFLAGS'
  6826. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6827. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6828. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6830. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6831. # On Suns, sometimes $CPP names a directory.
  6832. if test -n "$CPP" && test -d "$CPP"; then
  6833. CPP=
  6834. fi
  6835. if test -z "$CPP"; then
  6836. if ${ac_cv_prog_CPP+:} false; then :
  6837. $as_echo_n "(cached) " >&6
  6838. else
  6839. # Double quotes because CPP needs to be expanded
  6840. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6841. do
  6842. ac_preproc_ok=false
  6843. for ac_c_preproc_warn_flag in '' yes
  6844. do
  6845. # Use a header file that comes with gcc, so configuring glibc
  6846. # with a fresh cross-compiler works.
  6847. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6848. # <limits.h> exists even on freestanding compilers.
  6849. # On the NeXT, cc -E runs the code through the compiler's parser,
  6850. # not just through cpp. "Syntax error" is here to catch this case.
  6851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6852. /* end confdefs.h. */
  6853. #ifdef __STDC__
  6854. # include <limits.h>
  6855. #else
  6856. # include <assert.h>
  6857. #endif
  6858. Syntax error
  6859. _ACEOF
  6860. if ac_fn_c_try_cpp "$LINENO"; then :
  6861. else
  6862. # Broken: fails on valid input.
  6863. continue
  6864. fi
  6865. rm -f conftest.err conftest.i conftest.$ac_ext
  6866. # OK, works on sane cases. Now check whether nonexistent headers
  6867. # can be detected and how.
  6868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6869. /* end confdefs.h. */
  6870. #include <ac_nonexistent.h>
  6871. _ACEOF
  6872. if ac_fn_c_try_cpp "$LINENO"; then :
  6873. # Broken: success on invalid input.
  6874. continue
  6875. else
  6876. # Passes both tests.
  6877. ac_preproc_ok=:
  6878. break
  6879. fi
  6880. rm -f conftest.err conftest.i conftest.$ac_ext
  6881. done
  6882. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6883. rm -f conftest.i conftest.err conftest.$ac_ext
  6884. if $ac_preproc_ok; then :
  6885. break
  6886. fi
  6887. done
  6888. ac_cv_prog_CPP=$CPP
  6889. fi
  6890. CPP=$ac_cv_prog_CPP
  6891. else
  6892. ac_cv_prog_CPP=$CPP
  6893. fi
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6895. $as_echo "$CPP" >&6; }
  6896. ac_preproc_ok=false
  6897. for ac_c_preproc_warn_flag in '' yes
  6898. do
  6899. # Use a header file that comes with gcc, so configuring glibc
  6900. # with a fresh cross-compiler works.
  6901. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6902. # <limits.h> exists even on freestanding compilers.
  6903. # On the NeXT, cc -E runs the code through the compiler's parser,
  6904. # not just through cpp. "Syntax error" is here to catch this case.
  6905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6906. /* end confdefs.h. */
  6907. #ifdef __STDC__
  6908. # include <limits.h>
  6909. #else
  6910. # include <assert.h>
  6911. #endif
  6912. Syntax error
  6913. _ACEOF
  6914. if ac_fn_c_try_cpp "$LINENO"; then :
  6915. else
  6916. # Broken: fails on valid input.
  6917. continue
  6918. fi
  6919. rm -f conftest.err conftest.i conftest.$ac_ext
  6920. # OK, works on sane cases. Now check whether nonexistent headers
  6921. # can be detected and how.
  6922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6923. /* end confdefs.h. */
  6924. #include <ac_nonexistent.h>
  6925. _ACEOF
  6926. if ac_fn_c_try_cpp "$LINENO"; then :
  6927. # Broken: success on invalid input.
  6928. continue
  6929. else
  6930. # Passes both tests.
  6931. ac_preproc_ok=:
  6932. break
  6933. fi
  6934. rm -f conftest.err conftest.i conftest.$ac_ext
  6935. done
  6936. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6937. rm -f conftest.i conftest.err conftest.$ac_ext
  6938. if $ac_preproc_ok; then :
  6939. else
  6940. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6941. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6942. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6943. See \`config.log' for more details" "$LINENO" 5; }
  6944. fi
  6945. ac_ext=c
  6946. ac_cpp='$CPP $CPPFLAGS'
  6947. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6948. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6949. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6951. $as_echo_n "checking for ANSI C header files... " >&6; }
  6952. if ${ac_cv_header_stdc+:} false; then :
  6953. $as_echo_n "(cached) " >&6
  6954. else
  6955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6956. /* end confdefs.h. */
  6957. #include <stdlib.h>
  6958. #include <stdarg.h>
  6959. #include <string.h>
  6960. #include <float.h>
  6961. int
  6962. main ()
  6963. {
  6964. ;
  6965. return 0;
  6966. }
  6967. _ACEOF
  6968. if ac_fn_c_try_compile "$LINENO"; then :
  6969. ac_cv_header_stdc=yes
  6970. else
  6971. ac_cv_header_stdc=no
  6972. fi
  6973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6974. if test $ac_cv_header_stdc = yes; then
  6975. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6977. /* end confdefs.h. */
  6978. #include <string.h>
  6979. _ACEOF
  6980. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6981. $EGREP "memchr" >/dev/null 2>&1; then :
  6982. else
  6983. ac_cv_header_stdc=no
  6984. fi
  6985. rm -f conftest*
  6986. fi
  6987. if test $ac_cv_header_stdc = yes; then
  6988. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6990. /* end confdefs.h. */
  6991. #include <stdlib.h>
  6992. _ACEOF
  6993. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6994. $EGREP "free" >/dev/null 2>&1; then :
  6995. else
  6996. ac_cv_header_stdc=no
  6997. fi
  6998. rm -f conftest*
  6999. fi
  7000. if test $ac_cv_header_stdc = yes; then
  7001. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7002. if test "$cross_compiling" = yes; then :
  7003. :
  7004. else
  7005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7006. /* end confdefs.h. */
  7007. #include <ctype.h>
  7008. #include <stdlib.h>
  7009. #if ((' ' & 0x0FF) == 0x020)
  7010. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7011. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7012. #else
  7013. # define ISLOWER(c) \
  7014. (('a' <= (c) && (c) <= 'i') \
  7015. || ('j' <= (c) && (c) <= 'r') \
  7016. || ('s' <= (c) && (c) <= 'z'))
  7017. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7018. #endif
  7019. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7020. int
  7021. main ()
  7022. {
  7023. int i;
  7024. for (i = 0; i < 256; i++)
  7025. if (XOR (islower (i), ISLOWER (i))
  7026. || toupper (i) != TOUPPER (i))
  7027. return 2;
  7028. return 0;
  7029. }
  7030. _ACEOF
  7031. if ac_fn_c_try_run "$LINENO"; then :
  7032. else
  7033. ac_cv_header_stdc=no
  7034. fi
  7035. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7036. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7037. fi
  7038. fi
  7039. fi
  7040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7041. $as_echo "$ac_cv_header_stdc" >&6; }
  7042. if test $ac_cv_header_stdc = yes; then
  7043. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7044. fi
  7045. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7046. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7047. inttypes.h stdint.h unistd.h
  7048. do :
  7049. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7050. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7051. "
  7052. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7053. cat >>confdefs.h <<_ACEOF
  7054. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7055. _ACEOF
  7056. fi
  7057. done
  7058. for ac_header in dlfcn.h
  7059. do :
  7060. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7061. "
  7062. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7063. cat >>confdefs.h <<_ACEOF
  7064. #define HAVE_DLFCN_H 1
  7065. _ACEOF
  7066. fi
  7067. done
  7068. func_stripname_cnf ()
  7069. {
  7070. case ${2} in
  7071. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7072. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7073. esac
  7074. } # func_stripname_cnf
  7075. # Set options
  7076. enable_dlopen=no
  7077. enable_win32_dll=no
  7078. # Check whether --enable-shared was given.
  7079. if test "${enable_shared+set}" = set; then :
  7080. enableval=$enable_shared; p=${PACKAGE-default}
  7081. case $enableval in
  7082. yes) enable_shared=yes ;;
  7083. no) enable_shared=no ;;
  7084. *)
  7085. enable_shared=no
  7086. # Look at the argument we got. We use all the common list separators.
  7087. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7088. for pkg in $enableval; do
  7089. IFS="$lt_save_ifs"
  7090. if test "X$pkg" = "X$p"; then
  7091. enable_shared=yes
  7092. fi
  7093. done
  7094. IFS="$lt_save_ifs"
  7095. ;;
  7096. esac
  7097. else
  7098. enable_shared=yes
  7099. fi
  7100. # Check whether --with-pic was given.
  7101. if test "${with_pic+set}" = set; then :
  7102. withval=$with_pic; lt_p=${PACKAGE-default}
  7103. case $withval in
  7104. yes|no) pic_mode=$withval ;;
  7105. *)
  7106. pic_mode=default
  7107. # Look at the argument we got. We use all the common list separators.
  7108. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7109. for lt_pkg in $withval; do
  7110. IFS="$lt_save_ifs"
  7111. if test "X$lt_pkg" = "X$lt_p"; then
  7112. pic_mode=yes
  7113. fi
  7114. done
  7115. IFS="$lt_save_ifs"
  7116. ;;
  7117. esac
  7118. else
  7119. pic_mode=default
  7120. fi
  7121. test -z "$pic_mode" && pic_mode=default
  7122. # Check whether --enable-fast-install was given.
  7123. if test "${enable_fast_install+set}" = set; then :
  7124. enableval=$enable_fast_install; p=${PACKAGE-default}
  7125. case $enableval in
  7126. yes) enable_fast_install=yes ;;
  7127. no) enable_fast_install=no ;;
  7128. *)
  7129. enable_fast_install=no
  7130. # Look at the argument we got. We use all the common list separators.
  7131. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7132. for pkg in $enableval; do
  7133. IFS="$lt_save_ifs"
  7134. if test "X$pkg" = "X$p"; then
  7135. enable_fast_install=yes
  7136. fi
  7137. done
  7138. IFS="$lt_save_ifs"
  7139. ;;
  7140. esac
  7141. else
  7142. enable_fast_install=yes
  7143. fi
  7144. # This can be used to rebuild libtool when needed
  7145. LIBTOOL_DEPS="$ltmain"
  7146. # Always use our own libtool.
  7147. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7148. test -z "$LN_S" && LN_S="ln -s"
  7149. if test -n "${ZSH_VERSION+set}" ; then
  7150. setopt NO_GLOB_SUBST
  7151. fi
  7152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7153. $as_echo_n "checking for objdir... " >&6; }
  7154. if ${lt_cv_objdir+:} false; then :
  7155. $as_echo_n "(cached) " >&6
  7156. else
  7157. rm -f .libs 2>/dev/null
  7158. mkdir .libs 2>/dev/null
  7159. if test -d .libs; then
  7160. lt_cv_objdir=.libs
  7161. else
  7162. # MS-DOS does not allow filenames that begin with a dot.
  7163. lt_cv_objdir=_libs
  7164. fi
  7165. rmdir .libs 2>/dev/null
  7166. fi
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7168. $as_echo "$lt_cv_objdir" >&6; }
  7169. objdir=$lt_cv_objdir
  7170. cat >>confdefs.h <<_ACEOF
  7171. #define LT_OBJDIR "$lt_cv_objdir/"
  7172. _ACEOF
  7173. case $host_os in
  7174. aix3*)
  7175. # AIX sometimes has problems with the GCC collect2 program. For some
  7176. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7177. # vanish in a puff of smoke.
  7178. if test "X${COLLECT_NAMES+set}" != Xset; then
  7179. COLLECT_NAMES=
  7180. export COLLECT_NAMES
  7181. fi
  7182. ;;
  7183. esac
  7184. # Global variables:
  7185. ofile=libtool
  7186. can_build_shared=yes
  7187. # All known linkers require a `.a' archive for static linking (except MSVC,
  7188. # which needs '.lib').
  7189. libext=a
  7190. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7191. old_CC="$CC"
  7192. old_CFLAGS="$CFLAGS"
  7193. # Set sane defaults for various variables
  7194. test -z "$CC" && CC=cc
  7195. test -z "$LTCC" && LTCC=$CC
  7196. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7197. test -z "$LD" && LD=ld
  7198. test -z "$ac_objext" && ac_objext=o
  7199. for cc_temp in $compiler""; do
  7200. case $cc_temp in
  7201. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7202. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7203. \-*) ;;
  7204. *) break;;
  7205. esac
  7206. done
  7207. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7208. # Only perform the check for file, if the check method requires it
  7209. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7210. case $deplibs_check_method in
  7211. file_magic*)
  7212. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7214. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7215. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7216. $as_echo_n "(cached) " >&6
  7217. else
  7218. case $MAGIC_CMD in
  7219. [\\/*] | ?:[\\/]*)
  7220. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7221. ;;
  7222. *)
  7223. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7224. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7225. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7226. for ac_dir in $ac_dummy; do
  7227. IFS="$lt_save_ifs"
  7228. test -z "$ac_dir" && ac_dir=.
  7229. if test -f $ac_dir/${ac_tool_prefix}file; then
  7230. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7231. if test -n "$file_magic_test_file"; then
  7232. case $deplibs_check_method in
  7233. "file_magic "*)
  7234. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7235. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7236. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7237. $EGREP "$file_magic_regex" > /dev/null; then
  7238. :
  7239. else
  7240. cat <<_LT_EOF 1>&2
  7241. *** Warning: the command libtool uses to detect shared libraries,
  7242. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7243. *** The result is that libtool may fail to recognize shared libraries
  7244. *** as such. This will affect the creation of libtool libraries that
  7245. *** depend on shared libraries, but programs linked with such libtool
  7246. *** libraries will work regardless of this problem. Nevertheless, you
  7247. *** may want to report the problem to your system manager and/or to
  7248. *** bug-libtool@gnu.org
  7249. _LT_EOF
  7250. fi ;;
  7251. esac
  7252. fi
  7253. break
  7254. fi
  7255. done
  7256. IFS="$lt_save_ifs"
  7257. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7258. ;;
  7259. esac
  7260. fi
  7261. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7262. if test -n "$MAGIC_CMD"; then
  7263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7264. $as_echo "$MAGIC_CMD" >&6; }
  7265. else
  7266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7267. $as_echo "no" >&6; }
  7268. fi
  7269. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7270. if test -n "$ac_tool_prefix"; then
  7271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7272. $as_echo_n "checking for file... " >&6; }
  7273. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7274. $as_echo_n "(cached) " >&6
  7275. else
  7276. case $MAGIC_CMD in
  7277. [\\/*] | ?:[\\/]*)
  7278. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7279. ;;
  7280. *)
  7281. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7282. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7283. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7284. for ac_dir in $ac_dummy; do
  7285. IFS="$lt_save_ifs"
  7286. test -z "$ac_dir" && ac_dir=.
  7287. if test -f $ac_dir/file; then
  7288. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7289. if test -n "$file_magic_test_file"; then
  7290. case $deplibs_check_method in
  7291. "file_magic "*)
  7292. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7293. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7294. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7295. $EGREP "$file_magic_regex" > /dev/null; then
  7296. :
  7297. else
  7298. cat <<_LT_EOF 1>&2
  7299. *** Warning: the command libtool uses to detect shared libraries,
  7300. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7301. *** The result is that libtool may fail to recognize shared libraries
  7302. *** as such. This will affect the creation of libtool libraries that
  7303. *** depend on shared libraries, but programs linked with such libtool
  7304. *** libraries will work regardless of this problem. Nevertheless, you
  7305. *** may want to report the problem to your system manager and/or to
  7306. *** bug-libtool@gnu.org
  7307. _LT_EOF
  7308. fi ;;
  7309. esac
  7310. fi
  7311. break
  7312. fi
  7313. done
  7314. IFS="$lt_save_ifs"
  7315. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7316. ;;
  7317. esac
  7318. fi
  7319. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7320. if test -n "$MAGIC_CMD"; then
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7322. $as_echo "$MAGIC_CMD" >&6; }
  7323. else
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7325. $as_echo "no" >&6; }
  7326. fi
  7327. else
  7328. MAGIC_CMD=:
  7329. fi
  7330. fi
  7331. fi
  7332. ;;
  7333. esac
  7334. # Use C for the default configuration in the libtool script
  7335. lt_save_CC="$CC"
  7336. ac_ext=c
  7337. ac_cpp='$CPP $CPPFLAGS'
  7338. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7339. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7340. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7341. # Source file extension for C test sources.
  7342. ac_ext=c
  7343. # Object file extension for compiled C test sources.
  7344. objext=o
  7345. objext=$objext
  7346. # Code to be used in simple compile tests
  7347. lt_simple_compile_test_code="int some_variable = 0;"
  7348. # Code to be used in simple link tests
  7349. lt_simple_link_test_code='int main(){return(0);}'
  7350. # If no C compiler was specified, use CC.
  7351. LTCC=${LTCC-"$CC"}
  7352. # If no C compiler flags were specified, use CFLAGS.
  7353. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7354. # Allow CC to be a program name with arguments.
  7355. compiler=$CC
  7356. # Save the default compiler, since it gets overwritten when the other
  7357. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7358. compiler_DEFAULT=$CC
  7359. # save warnings/boilerplate of simple test code
  7360. ac_outfile=conftest.$ac_objext
  7361. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7362. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7363. _lt_compiler_boilerplate=`cat conftest.err`
  7364. $RM conftest*
  7365. ac_outfile=conftest.$ac_objext
  7366. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7367. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7368. _lt_linker_boilerplate=`cat conftest.err`
  7369. $RM -r conftest*
  7370. ## CAVEAT EMPTOR:
  7371. ## There is no encapsulation within the following macros, do not change
  7372. ## the running order or otherwise move them around unless you know exactly
  7373. ## what you are doing...
  7374. if test -n "$compiler"; then
  7375. lt_prog_compiler_no_builtin_flag=
  7376. if test "$GCC" = yes; then
  7377. case $cc_basename in
  7378. nvcc*)
  7379. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7380. *)
  7381. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7382. esac
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7384. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7385. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7386. $as_echo_n "(cached) " >&6
  7387. else
  7388. lt_cv_prog_compiler_rtti_exceptions=no
  7389. ac_outfile=conftest.$ac_objext
  7390. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7391. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7392. # Insert the option either (1) after the last *FLAGS variable, or
  7393. # (2) before a word containing "conftest.", or (3) at the end.
  7394. # Note that $ac_compile itself does not contain backslashes and begins
  7395. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7396. # The option is referenced via a variable to avoid confusing sed.
  7397. lt_compile=`echo "$ac_compile" | $SED \
  7398. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7399. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7400. -e 's:$: $lt_compiler_flag:'`
  7401. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7402. (eval "$lt_compile" 2>conftest.err)
  7403. ac_status=$?
  7404. cat conftest.err >&5
  7405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7406. if (exit $ac_status) && test -s "$ac_outfile"; then
  7407. # The compiler can only warn and ignore the option if not recognized
  7408. # So say no if there are warnings other than the usual output.
  7409. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7410. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7411. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7412. lt_cv_prog_compiler_rtti_exceptions=yes
  7413. fi
  7414. fi
  7415. $RM conftest*
  7416. fi
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7418. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7419. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7420. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7421. else
  7422. :
  7423. fi
  7424. fi
  7425. lt_prog_compiler_wl=
  7426. lt_prog_compiler_pic=
  7427. lt_prog_compiler_static=
  7428. if test "$GCC" = yes; then
  7429. lt_prog_compiler_wl='-Wl,'
  7430. lt_prog_compiler_static='-static'
  7431. case $host_os in
  7432. aix*)
  7433. # All AIX code is PIC.
  7434. if test "$host_cpu" = ia64; then
  7435. # AIX 5 now supports IA64 processor
  7436. lt_prog_compiler_static='-Bstatic'
  7437. fi
  7438. ;;
  7439. amigaos*)
  7440. case $host_cpu in
  7441. powerpc)
  7442. # see comment about AmigaOS4 .so support
  7443. lt_prog_compiler_pic='-fPIC'
  7444. ;;
  7445. m68k)
  7446. # FIXME: we need at least 68020 code to build shared libraries, but
  7447. # adding the `-m68020' flag to GCC prevents building anything better,
  7448. # like `-m68040'.
  7449. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7450. ;;
  7451. esac
  7452. ;;
  7453. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7454. # PIC is the default for these OSes.
  7455. ;;
  7456. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7457. # This hack is so that the source file can tell whether it is being
  7458. # built for inclusion in a dll (and should export symbols for example).
  7459. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7460. # (--disable-auto-import) libraries
  7461. lt_prog_compiler_pic='-DDLL_EXPORT'
  7462. ;;
  7463. darwin* | rhapsody*)
  7464. # PIC is the default on this platform
  7465. # Common symbols not allowed in MH_DYLIB files
  7466. lt_prog_compiler_pic='-fno-common'
  7467. ;;
  7468. haiku*)
  7469. # PIC is the default for Haiku.
  7470. # The "-static" flag exists, but is broken.
  7471. lt_prog_compiler_static=
  7472. ;;
  7473. hpux*)
  7474. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7475. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7476. # sets the default TLS model and affects inlining.
  7477. case $host_cpu in
  7478. hppa*64*)
  7479. # +Z the default
  7480. ;;
  7481. *)
  7482. lt_prog_compiler_pic='-fPIC'
  7483. ;;
  7484. esac
  7485. ;;
  7486. interix[3-9]*)
  7487. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7488. # Instead, we relocate shared libraries at runtime.
  7489. ;;
  7490. msdosdjgpp*)
  7491. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7492. # on systems that don't support them.
  7493. lt_prog_compiler_can_build_shared=no
  7494. enable_shared=no
  7495. ;;
  7496. *nto* | *qnx*)
  7497. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7498. # it will coredump.
  7499. lt_prog_compiler_pic='-fPIC -shared'
  7500. ;;
  7501. sysv4*MP*)
  7502. if test -d /usr/nec; then
  7503. lt_prog_compiler_pic=-Kconform_pic
  7504. fi
  7505. ;;
  7506. *)
  7507. lt_prog_compiler_pic='-fPIC'
  7508. ;;
  7509. esac
  7510. case $cc_basename in
  7511. nvcc*) # Cuda Compiler Driver 2.2
  7512. lt_prog_compiler_wl='-Xlinker '
  7513. if test -n "$lt_prog_compiler_pic"; then
  7514. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7515. fi
  7516. ;;
  7517. esac
  7518. else
  7519. # PORTME Check for flag to pass linker flags through the system compiler.
  7520. case $host_os in
  7521. aix*)
  7522. lt_prog_compiler_wl='-Wl,'
  7523. if test "$host_cpu" = ia64; then
  7524. # AIX 5 now supports IA64 processor
  7525. lt_prog_compiler_static='-Bstatic'
  7526. else
  7527. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7528. fi
  7529. ;;
  7530. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7531. # This hack is so that the source file can tell whether it is being
  7532. # built for inclusion in a dll (and should export symbols for example).
  7533. lt_prog_compiler_pic='-DDLL_EXPORT'
  7534. ;;
  7535. hpux9* | hpux10* | hpux11*)
  7536. lt_prog_compiler_wl='-Wl,'
  7537. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7538. # not for PA HP-UX.
  7539. case $host_cpu in
  7540. hppa*64*|ia64*)
  7541. # +Z the default
  7542. ;;
  7543. *)
  7544. lt_prog_compiler_pic='+Z'
  7545. ;;
  7546. esac
  7547. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7548. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7549. ;;
  7550. irix5* | irix6* | nonstopux*)
  7551. lt_prog_compiler_wl='-Wl,'
  7552. # PIC (with -KPIC) is the default.
  7553. lt_prog_compiler_static='-non_shared'
  7554. ;;
  7555. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7556. case $cc_basename in
  7557. # old Intel for x86_64 which still supported -KPIC.
  7558. ecc*)
  7559. lt_prog_compiler_wl='-Wl,'
  7560. lt_prog_compiler_pic='-KPIC'
  7561. lt_prog_compiler_static='-static'
  7562. ;;
  7563. # icc used to be incompatible with GCC.
  7564. # ICC 10 doesn't accept -KPIC any more.
  7565. icc* | ifort*)
  7566. lt_prog_compiler_wl='-Wl,'
  7567. lt_prog_compiler_pic='-fPIC'
  7568. lt_prog_compiler_static='-static'
  7569. ;;
  7570. # Lahey Fortran 8.1.
  7571. lf95*)
  7572. lt_prog_compiler_wl='-Wl,'
  7573. lt_prog_compiler_pic='--shared'
  7574. lt_prog_compiler_static='--static'
  7575. ;;
  7576. nagfor*)
  7577. # NAG Fortran compiler
  7578. lt_prog_compiler_wl='-Wl,-Wl,,'
  7579. lt_prog_compiler_pic='-PIC'
  7580. lt_prog_compiler_static='-Bstatic'
  7581. ;;
  7582. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7583. # Portland Group compilers (*not* the Pentium gcc compiler,
  7584. # which looks to be a dead project)
  7585. lt_prog_compiler_wl='-Wl,'
  7586. lt_prog_compiler_pic='-fpic'
  7587. lt_prog_compiler_static='-Bstatic'
  7588. ;;
  7589. ccc*)
  7590. lt_prog_compiler_wl='-Wl,'
  7591. # All Alpha code is PIC.
  7592. lt_prog_compiler_static='-non_shared'
  7593. ;;
  7594. xl* | bgxl* | bgf* | mpixl*)
  7595. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7596. lt_prog_compiler_wl='-Wl,'
  7597. lt_prog_compiler_pic='-qpic'
  7598. lt_prog_compiler_static='-qstaticlink'
  7599. ;;
  7600. *)
  7601. case `$CC -V 2>&1 | sed 5q` in
  7602. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7603. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7604. lt_prog_compiler_pic='-KPIC'
  7605. lt_prog_compiler_static='-Bstatic'
  7606. lt_prog_compiler_wl=''
  7607. ;;
  7608. *Sun\ F* | *Sun*Fortran*)
  7609. lt_prog_compiler_pic='-KPIC'
  7610. lt_prog_compiler_static='-Bstatic'
  7611. lt_prog_compiler_wl='-Qoption ld '
  7612. ;;
  7613. *Sun\ C*)
  7614. # Sun C 5.9
  7615. lt_prog_compiler_pic='-KPIC'
  7616. lt_prog_compiler_static='-Bstatic'
  7617. lt_prog_compiler_wl='-Wl,'
  7618. ;;
  7619. *Intel*\ [CF]*Compiler*)
  7620. lt_prog_compiler_wl='-Wl,'
  7621. lt_prog_compiler_pic='-fPIC'
  7622. lt_prog_compiler_static='-static'
  7623. ;;
  7624. *Portland\ Group*)
  7625. lt_prog_compiler_wl='-Wl,'
  7626. lt_prog_compiler_pic='-fpic'
  7627. lt_prog_compiler_static='-Bstatic'
  7628. ;;
  7629. esac
  7630. ;;
  7631. esac
  7632. ;;
  7633. newsos6)
  7634. lt_prog_compiler_pic='-KPIC'
  7635. lt_prog_compiler_static='-Bstatic'
  7636. ;;
  7637. *nto* | *qnx*)
  7638. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7639. # it will coredump.
  7640. lt_prog_compiler_pic='-fPIC -shared'
  7641. ;;
  7642. osf3* | osf4* | osf5*)
  7643. lt_prog_compiler_wl='-Wl,'
  7644. # All OSF/1 code is PIC.
  7645. lt_prog_compiler_static='-non_shared'
  7646. ;;
  7647. rdos*)
  7648. lt_prog_compiler_static='-non_shared'
  7649. ;;
  7650. solaris*)
  7651. lt_prog_compiler_pic='-KPIC'
  7652. lt_prog_compiler_static='-Bstatic'
  7653. case $cc_basename in
  7654. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7655. lt_prog_compiler_wl='-Qoption ld ';;
  7656. *)
  7657. lt_prog_compiler_wl='-Wl,';;
  7658. esac
  7659. ;;
  7660. sunos4*)
  7661. lt_prog_compiler_wl='-Qoption ld '
  7662. lt_prog_compiler_pic='-PIC'
  7663. lt_prog_compiler_static='-Bstatic'
  7664. ;;
  7665. sysv4 | sysv4.2uw2* | sysv4.3*)
  7666. lt_prog_compiler_wl='-Wl,'
  7667. lt_prog_compiler_pic='-KPIC'
  7668. lt_prog_compiler_static='-Bstatic'
  7669. ;;
  7670. sysv4*MP*)
  7671. if test -d /usr/nec ;then
  7672. lt_prog_compiler_pic='-Kconform_pic'
  7673. lt_prog_compiler_static='-Bstatic'
  7674. fi
  7675. ;;
  7676. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7677. lt_prog_compiler_wl='-Wl,'
  7678. lt_prog_compiler_pic='-KPIC'
  7679. lt_prog_compiler_static='-Bstatic'
  7680. ;;
  7681. unicos*)
  7682. lt_prog_compiler_wl='-Wl,'
  7683. lt_prog_compiler_can_build_shared=no
  7684. ;;
  7685. uts4*)
  7686. lt_prog_compiler_pic='-pic'
  7687. lt_prog_compiler_static='-Bstatic'
  7688. ;;
  7689. *)
  7690. lt_prog_compiler_can_build_shared=no
  7691. ;;
  7692. esac
  7693. fi
  7694. case $host_os in
  7695. # For platforms which do not support PIC, -DPIC is meaningless:
  7696. *djgpp*)
  7697. lt_prog_compiler_pic=
  7698. ;;
  7699. *)
  7700. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7701. ;;
  7702. esac
  7703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7704. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7705. if ${lt_cv_prog_compiler_pic+:} false; then :
  7706. $as_echo_n "(cached) " >&6
  7707. else
  7708. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7709. fi
  7710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7711. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7712. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7713. #
  7714. # Check to make sure the PIC flag actually works.
  7715. #
  7716. if test -n "$lt_prog_compiler_pic"; then
  7717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7718. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7719. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7720. $as_echo_n "(cached) " >&6
  7721. else
  7722. lt_cv_prog_compiler_pic_works=no
  7723. ac_outfile=conftest.$ac_objext
  7724. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7725. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7726. # Insert the option either (1) after the last *FLAGS variable, or
  7727. # (2) before a word containing "conftest.", or (3) at the end.
  7728. # Note that $ac_compile itself does not contain backslashes and begins
  7729. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7730. # The option is referenced via a variable to avoid confusing sed.
  7731. lt_compile=`echo "$ac_compile" | $SED \
  7732. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7733. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7734. -e 's:$: $lt_compiler_flag:'`
  7735. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7736. (eval "$lt_compile" 2>conftest.err)
  7737. ac_status=$?
  7738. cat conftest.err >&5
  7739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7740. if (exit $ac_status) && test -s "$ac_outfile"; then
  7741. # The compiler can only warn and ignore the option if not recognized
  7742. # So say no if there are warnings other than the usual output.
  7743. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7744. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7745. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7746. lt_cv_prog_compiler_pic_works=yes
  7747. fi
  7748. fi
  7749. $RM conftest*
  7750. fi
  7751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7752. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7753. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7754. case $lt_prog_compiler_pic in
  7755. "" | " "*) ;;
  7756. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7757. esac
  7758. else
  7759. lt_prog_compiler_pic=
  7760. lt_prog_compiler_can_build_shared=no
  7761. fi
  7762. fi
  7763. #
  7764. # Check to make sure the static flag actually works.
  7765. #
  7766. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7768. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7769. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7770. $as_echo_n "(cached) " >&6
  7771. else
  7772. lt_cv_prog_compiler_static_works=no
  7773. save_LDFLAGS="$LDFLAGS"
  7774. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7775. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7776. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7777. # The linker can only warn and ignore the option if not recognized
  7778. # So say no if there are warnings
  7779. if test -s conftest.err; then
  7780. # Append any errors to the config.log.
  7781. cat conftest.err 1>&5
  7782. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7783. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7784. if diff conftest.exp conftest.er2 >/dev/null; then
  7785. lt_cv_prog_compiler_static_works=yes
  7786. fi
  7787. else
  7788. lt_cv_prog_compiler_static_works=yes
  7789. fi
  7790. fi
  7791. $RM -r conftest*
  7792. LDFLAGS="$save_LDFLAGS"
  7793. fi
  7794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7795. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7796. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7797. :
  7798. else
  7799. lt_prog_compiler_static=
  7800. fi
  7801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7802. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7803. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7804. $as_echo_n "(cached) " >&6
  7805. else
  7806. lt_cv_prog_compiler_c_o=no
  7807. $RM -r conftest 2>/dev/null
  7808. mkdir conftest
  7809. cd conftest
  7810. mkdir out
  7811. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7812. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7813. # Insert the option either (1) after the last *FLAGS variable, or
  7814. # (2) before a word containing "conftest.", or (3) at the end.
  7815. # Note that $ac_compile itself does not contain backslashes and begins
  7816. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7817. lt_compile=`echo "$ac_compile" | $SED \
  7818. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7819. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7820. -e 's:$: $lt_compiler_flag:'`
  7821. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7822. (eval "$lt_compile" 2>out/conftest.err)
  7823. ac_status=$?
  7824. cat out/conftest.err >&5
  7825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7826. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7827. then
  7828. # The compiler can only warn and ignore the option if not recognized
  7829. # So say no if there are warnings
  7830. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7831. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7832. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7833. lt_cv_prog_compiler_c_o=yes
  7834. fi
  7835. fi
  7836. chmod u+w . 2>&5
  7837. $RM conftest*
  7838. # SGI C++ compiler will create directory out/ii_files/ for
  7839. # template instantiation
  7840. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7841. $RM out/* && rmdir out
  7842. cd ..
  7843. $RM -r conftest
  7844. $RM conftest*
  7845. fi
  7846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7847. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7849. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7850. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7851. $as_echo_n "(cached) " >&6
  7852. else
  7853. lt_cv_prog_compiler_c_o=no
  7854. $RM -r conftest 2>/dev/null
  7855. mkdir conftest
  7856. cd conftest
  7857. mkdir out
  7858. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7859. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7860. # Insert the option either (1) after the last *FLAGS variable, or
  7861. # (2) before a word containing "conftest.", or (3) at the end.
  7862. # Note that $ac_compile itself does not contain backslashes and begins
  7863. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7864. lt_compile=`echo "$ac_compile" | $SED \
  7865. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7866. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7867. -e 's:$: $lt_compiler_flag:'`
  7868. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7869. (eval "$lt_compile" 2>out/conftest.err)
  7870. ac_status=$?
  7871. cat out/conftest.err >&5
  7872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7873. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7874. then
  7875. # The compiler can only warn and ignore the option if not recognized
  7876. # So say no if there are warnings
  7877. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7878. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7879. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7880. lt_cv_prog_compiler_c_o=yes
  7881. fi
  7882. fi
  7883. chmod u+w . 2>&5
  7884. $RM conftest*
  7885. # SGI C++ compiler will create directory out/ii_files/ for
  7886. # template instantiation
  7887. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7888. $RM out/* && rmdir out
  7889. cd ..
  7890. $RM -r conftest
  7891. $RM conftest*
  7892. fi
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7894. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7895. hard_links="nottested"
  7896. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7897. # do not overwrite the value of need_locks provided by the user
  7898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7899. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7900. hard_links=yes
  7901. $RM conftest*
  7902. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7903. touch conftest.a
  7904. ln conftest.a conftest.b 2>&5 || hard_links=no
  7905. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7907. $as_echo "$hard_links" >&6; }
  7908. if test "$hard_links" = no; then
  7909. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7910. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7911. need_locks=warn
  7912. fi
  7913. else
  7914. need_locks=no
  7915. fi
  7916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7917. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7918. runpath_var=
  7919. allow_undefined_flag=
  7920. always_export_symbols=no
  7921. archive_cmds=
  7922. archive_expsym_cmds=
  7923. compiler_needs_object=no
  7924. enable_shared_with_static_runtimes=no
  7925. export_dynamic_flag_spec=
  7926. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7927. hardcode_automatic=no
  7928. hardcode_direct=no
  7929. hardcode_direct_absolute=no
  7930. hardcode_libdir_flag_spec=
  7931. hardcode_libdir_separator=
  7932. hardcode_minus_L=no
  7933. hardcode_shlibpath_var=unsupported
  7934. inherit_rpath=no
  7935. link_all_deplibs=unknown
  7936. module_cmds=
  7937. module_expsym_cmds=
  7938. old_archive_from_new_cmds=
  7939. old_archive_from_expsyms_cmds=
  7940. thread_safe_flag_spec=
  7941. whole_archive_flag_spec=
  7942. # include_expsyms should be a list of space-separated symbols to be *always*
  7943. # included in the symbol list
  7944. include_expsyms=
  7945. # exclude_expsyms can be an extended regexp of symbols to exclude
  7946. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7947. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7948. # as well as any symbol that contains `d'.
  7949. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7950. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7951. # platforms (ab)use it in PIC code, but their linkers get confused if
  7952. # the symbol is explicitly referenced. Since portable code cannot
  7953. # rely on this symbol name, it's probably fine to never include it in
  7954. # preloaded symbol tables.
  7955. # Exclude shared library initialization/finalization symbols.
  7956. extract_expsyms_cmds=
  7957. case $host_os in
  7958. cygwin* | mingw* | pw32* | cegcc*)
  7959. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7960. # When not using gcc, we currently assume that we are using
  7961. # Microsoft Visual C++.
  7962. if test "$GCC" != yes; then
  7963. with_gnu_ld=no
  7964. fi
  7965. ;;
  7966. interix*)
  7967. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7968. with_gnu_ld=yes
  7969. ;;
  7970. openbsd*)
  7971. with_gnu_ld=no
  7972. ;;
  7973. linux* | k*bsd*-gnu | gnu*)
  7974. link_all_deplibs=no
  7975. ;;
  7976. esac
  7977. ld_shlibs=yes
  7978. # On some targets, GNU ld is compatible enough with the native linker
  7979. # that we're better off using the native interface for both.
  7980. lt_use_gnu_ld_interface=no
  7981. if test "$with_gnu_ld" = yes; then
  7982. case $host_os in
  7983. aix*)
  7984. # The AIX port of GNU ld has always aspired to compatibility
  7985. # with the native linker. However, as the warning in the GNU ld
  7986. # block says, versions before 2.19.5* couldn't really create working
  7987. # shared libraries, regardless of the interface used.
  7988. case `$LD -v 2>&1` in
  7989. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7990. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7991. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7992. *)
  7993. lt_use_gnu_ld_interface=yes
  7994. ;;
  7995. esac
  7996. ;;
  7997. *)
  7998. lt_use_gnu_ld_interface=yes
  7999. ;;
  8000. esac
  8001. fi
  8002. if test "$lt_use_gnu_ld_interface" = yes; then
  8003. # If archive_cmds runs LD, not CC, wlarc should be empty
  8004. wlarc='${wl}'
  8005. # Set some defaults for GNU ld with shared library support. These
  8006. # are reset later if shared libraries are not supported. Putting them
  8007. # here allows them to be overridden if necessary.
  8008. runpath_var=LD_RUN_PATH
  8009. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8010. export_dynamic_flag_spec='${wl}--export-dynamic'
  8011. # ancient GNU ld didn't support --whole-archive et. al.
  8012. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8013. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8014. else
  8015. whole_archive_flag_spec=
  8016. fi
  8017. supports_anon_versioning=no
  8018. case `$LD -v 2>&1` in
  8019. *GNU\ gold*) supports_anon_versioning=yes ;;
  8020. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8021. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8022. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8023. *\ 2.11.*) ;; # other 2.11 versions
  8024. *) supports_anon_versioning=yes ;;
  8025. esac
  8026. # See if GNU ld supports shared libraries.
  8027. case $host_os in
  8028. aix[3-9]*)
  8029. # On AIX/PPC, the GNU linker is very broken
  8030. if test "$host_cpu" != ia64; then
  8031. ld_shlibs=no
  8032. cat <<_LT_EOF 1>&2
  8033. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8034. *** to be unable to reliably create shared libraries on AIX.
  8035. *** Therefore, libtool is disabling shared libraries support. If you
  8036. *** really care for shared libraries, you may want to install binutils
  8037. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8038. *** You will then need to restart the configuration process.
  8039. _LT_EOF
  8040. fi
  8041. ;;
  8042. amigaos*)
  8043. case $host_cpu in
  8044. powerpc)
  8045. # see comment about AmigaOS4 .so support
  8046. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8047. archive_expsym_cmds=''
  8048. ;;
  8049. m68k)
  8050. 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)'
  8051. hardcode_libdir_flag_spec='-L$libdir'
  8052. hardcode_minus_L=yes
  8053. ;;
  8054. esac
  8055. ;;
  8056. beos*)
  8057. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8058. allow_undefined_flag=unsupported
  8059. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8060. # support --undefined. This deserves some investigation. FIXME
  8061. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8062. else
  8063. ld_shlibs=no
  8064. fi
  8065. ;;
  8066. cygwin* | mingw* | pw32* | cegcc*)
  8067. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8068. # as there is no search path for DLLs.
  8069. hardcode_libdir_flag_spec='-L$libdir'
  8070. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8071. allow_undefined_flag=unsupported
  8072. always_export_symbols=no
  8073. enable_shared_with_static_runtimes=yes
  8074. 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'
  8075. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8076. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8077. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8078. # If the export-symbols file already is a .def file (1st line
  8079. # is EXPORTS), use it as is; otherwise, prepend...
  8080. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8081. cp $export_symbols $output_objdir/$soname.def;
  8082. else
  8083. echo EXPORTS > $output_objdir/$soname.def;
  8084. cat $export_symbols >> $output_objdir/$soname.def;
  8085. fi~
  8086. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8087. else
  8088. ld_shlibs=no
  8089. fi
  8090. ;;
  8091. haiku*)
  8092. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8093. link_all_deplibs=yes
  8094. ;;
  8095. interix[3-9]*)
  8096. hardcode_direct=no
  8097. hardcode_shlibpath_var=no
  8098. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8099. export_dynamic_flag_spec='${wl}-E'
  8100. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8101. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8102. # default) and relocated if they conflict, which is a slow very memory
  8103. # consuming and fragmenting process. To avoid this, we pick a random,
  8104. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8105. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8106. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8107. 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'
  8108. ;;
  8109. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8110. tmp_diet=no
  8111. if test "$host_os" = linux-dietlibc; then
  8112. case $cc_basename in
  8113. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8114. esac
  8115. fi
  8116. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8117. && test "$tmp_diet" = no
  8118. then
  8119. tmp_addflag=' $pic_flag'
  8120. tmp_sharedflag='-shared'
  8121. case $cc_basename,$host_cpu in
  8122. pgcc*) # Portland Group C compiler
  8123. 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'
  8124. tmp_addflag=' $pic_flag'
  8125. ;;
  8126. pgf77* | pgf90* | pgf95* | pgfortran*)
  8127. # Portland Group f77 and f90 compilers
  8128. 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'
  8129. tmp_addflag=' $pic_flag -Mnomain' ;;
  8130. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8131. tmp_addflag=' -i_dynamic' ;;
  8132. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8133. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8134. ifc* | ifort*) # Intel Fortran compiler
  8135. tmp_addflag=' -nofor_main' ;;
  8136. lf95*) # Lahey Fortran 8.1
  8137. whole_archive_flag_spec=
  8138. tmp_sharedflag='--shared' ;;
  8139. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8140. tmp_sharedflag='-qmkshrobj'
  8141. tmp_addflag= ;;
  8142. nvcc*) # Cuda Compiler Driver 2.2
  8143. 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'
  8144. compiler_needs_object=yes
  8145. ;;
  8146. esac
  8147. case `$CC -V 2>&1 | sed 5q` in
  8148. *Sun\ C*) # Sun C 5.9
  8149. 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'
  8150. compiler_needs_object=yes
  8151. tmp_sharedflag='-G' ;;
  8152. *Sun\ F*) # Sun Fortran 8.3
  8153. tmp_sharedflag='-G' ;;
  8154. esac
  8155. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8156. if test "x$supports_anon_versioning" = xyes; then
  8157. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8158. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8159. echo "local: *; };" >> $output_objdir/$libname.ver~
  8160. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8161. fi
  8162. case $cc_basename in
  8163. xlf* | bgf* | bgxlf* | mpixlf*)
  8164. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8165. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8166. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8167. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8168. if test "x$supports_anon_versioning" = xyes; then
  8169. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8170. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8171. echo "local: *; };" >> $output_objdir/$libname.ver~
  8172. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8173. fi
  8174. ;;
  8175. esac
  8176. else
  8177. ld_shlibs=no
  8178. fi
  8179. ;;
  8180. netbsd* | netbsdelf*-gnu)
  8181. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8182. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8183. wlarc=
  8184. else
  8185. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8186. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8187. fi
  8188. ;;
  8189. solaris*)
  8190. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8191. ld_shlibs=no
  8192. cat <<_LT_EOF 1>&2
  8193. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8194. *** create shared libraries on Solaris systems. Therefore, libtool
  8195. *** is disabling shared libraries support. We urge you to upgrade GNU
  8196. *** binutils to release 2.9.1 or newer. Another option is to modify
  8197. *** your PATH or compiler configuration so that the native linker is
  8198. *** used, and then restart.
  8199. _LT_EOF
  8200. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8201. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8202. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8203. else
  8204. ld_shlibs=no
  8205. fi
  8206. ;;
  8207. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8208. case `$LD -v 2>&1` in
  8209. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8210. ld_shlibs=no
  8211. cat <<_LT_EOF 1>&2
  8212. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8213. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8214. *** is disabling shared libraries support. We urge you to upgrade GNU
  8215. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8216. *** your PATH or compiler configuration so that the native linker is
  8217. *** used, and then restart.
  8218. _LT_EOF
  8219. ;;
  8220. *)
  8221. # For security reasons, it is highly recommended that you always
  8222. # use absolute paths for naming shared libraries, and exclude the
  8223. # DT_RUNPATH tag from executables and libraries. But doing so
  8224. # requires that you compile everything twice, which is a pain.
  8225. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8226. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8227. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8228. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8229. else
  8230. ld_shlibs=no
  8231. fi
  8232. ;;
  8233. esac
  8234. ;;
  8235. sunos4*)
  8236. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8237. wlarc=
  8238. hardcode_direct=yes
  8239. hardcode_shlibpath_var=no
  8240. ;;
  8241. *)
  8242. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8243. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8244. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8245. else
  8246. ld_shlibs=no
  8247. fi
  8248. ;;
  8249. esac
  8250. if test "$ld_shlibs" = no; then
  8251. runpath_var=
  8252. hardcode_libdir_flag_spec=
  8253. export_dynamic_flag_spec=
  8254. whole_archive_flag_spec=
  8255. fi
  8256. else
  8257. # PORTME fill in a description of your system's linker (not GNU ld)
  8258. case $host_os in
  8259. aix3*)
  8260. allow_undefined_flag=unsupported
  8261. always_export_symbols=yes
  8262. 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'
  8263. # Note: this linker hardcodes the directories in LIBPATH if there
  8264. # are no directories specified by -L.
  8265. hardcode_minus_L=yes
  8266. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8267. # Neither direct hardcoding nor static linking is supported with a
  8268. # broken collect2.
  8269. hardcode_direct=unsupported
  8270. fi
  8271. ;;
  8272. aix[4-9]*)
  8273. if test "$host_cpu" = ia64; then
  8274. # On IA64, the linker does run time linking by default, so we don't
  8275. # have to do anything special.
  8276. aix_use_runtimelinking=no
  8277. exp_sym_flag='-Bexport'
  8278. no_entry_flag=""
  8279. else
  8280. # If we're using GNU nm, then we don't want the "-C" option.
  8281. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8282. # Also, AIX nm treats weak defined symbols like other global
  8283. # defined symbols, whereas GNU nm marks them as "W".
  8284. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8285. 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'
  8286. else
  8287. 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'
  8288. fi
  8289. aix_use_runtimelinking=no
  8290. # Test if we are trying to use run time linking or normal
  8291. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8292. # need to do runtime linking.
  8293. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8294. for ld_flag in $LDFLAGS; do
  8295. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8296. aix_use_runtimelinking=yes
  8297. break
  8298. fi
  8299. done
  8300. ;;
  8301. esac
  8302. exp_sym_flag='-bexport'
  8303. no_entry_flag='-bnoentry'
  8304. fi
  8305. # When large executables or shared objects are built, AIX ld can
  8306. # have problems creating the table of contents. If linking a library
  8307. # or program results in "error TOC overflow" add -mminimal-toc to
  8308. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8309. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8310. archive_cmds=''
  8311. hardcode_direct=yes
  8312. hardcode_direct_absolute=yes
  8313. hardcode_libdir_separator=':'
  8314. link_all_deplibs=yes
  8315. file_list_spec='${wl}-f,'
  8316. if test "$GCC" = yes; then
  8317. case $host_os in aix4.[012]|aix4.[012].*)
  8318. # We only want to do this on AIX 4.2 and lower, the check
  8319. # below for broken collect2 doesn't work under 4.3+
  8320. collect2name=`${CC} -print-prog-name=collect2`
  8321. if test -f "$collect2name" &&
  8322. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8323. then
  8324. # We have reworked collect2
  8325. :
  8326. else
  8327. # We have old collect2
  8328. hardcode_direct=unsupported
  8329. # It fails to find uninstalled libraries when the uninstalled
  8330. # path is not listed in the libpath. Setting hardcode_minus_L
  8331. # to unsupported forces relinking
  8332. hardcode_minus_L=yes
  8333. hardcode_libdir_flag_spec='-L$libdir'
  8334. hardcode_libdir_separator=
  8335. fi
  8336. ;;
  8337. esac
  8338. shared_flag='-shared'
  8339. if test "$aix_use_runtimelinking" = yes; then
  8340. shared_flag="$shared_flag "'${wl}-G'
  8341. fi
  8342. link_all_deplibs=no
  8343. else
  8344. # not using gcc
  8345. if test "$host_cpu" = ia64; then
  8346. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8347. # chokes on -Wl,-G. The following line is correct:
  8348. shared_flag='-G'
  8349. else
  8350. if test "$aix_use_runtimelinking" = yes; then
  8351. shared_flag='${wl}-G'
  8352. else
  8353. shared_flag='${wl}-bM:SRE'
  8354. fi
  8355. fi
  8356. fi
  8357. export_dynamic_flag_spec='${wl}-bexpall'
  8358. # It seems that -bexpall does not export symbols beginning with
  8359. # underscore (_), so it is better to generate a list of symbols to export.
  8360. always_export_symbols=yes
  8361. if test "$aix_use_runtimelinking" = yes; then
  8362. # Warning - without using the other runtime loading flags (-brtl),
  8363. # -berok will link without error, but may produce a broken library.
  8364. allow_undefined_flag='-berok'
  8365. # Determine the default libpath from the value encoded in an
  8366. # empty executable.
  8367. if test "${lt_cv_aix_libpath+set}" = set; then
  8368. aix_libpath=$lt_cv_aix_libpath
  8369. else
  8370. if ${lt_cv_aix_libpath_+:} false; then :
  8371. $as_echo_n "(cached) " >&6
  8372. else
  8373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8374. /* end confdefs.h. */
  8375. int
  8376. main ()
  8377. {
  8378. ;
  8379. return 0;
  8380. }
  8381. _ACEOF
  8382. if ac_fn_c_try_link "$LINENO"; then :
  8383. lt_aix_libpath_sed='
  8384. /Import File Strings/,/^$/ {
  8385. /^0/ {
  8386. s/^0 *\([^ ]*\) *$/\1/
  8387. p
  8388. }
  8389. }'
  8390. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8391. # Check for a 64-bit object if we didn't find anything.
  8392. if test -z "$lt_cv_aix_libpath_"; then
  8393. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8394. fi
  8395. fi
  8396. rm -f core conftest.err conftest.$ac_objext \
  8397. conftest$ac_exeext conftest.$ac_ext
  8398. if test -z "$lt_cv_aix_libpath_"; then
  8399. lt_cv_aix_libpath_="/usr/lib:/lib"
  8400. fi
  8401. fi
  8402. aix_libpath=$lt_cv_aix_libpath_
  8403. fi
  8404. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8405. 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"
  8406. else
  8407. if test "$host_cpu" = ia64; then
  8408. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8409. allow_undefined_flag="-z nodefs"
  8410. 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"
  8411. else
  8412. # Determine the default libpath from the value encoded in an
  8413. # empty executable.
  8414. if test "${lt_cv_aix_libpath+set}" = set; then
  8415. aix_libpath=$lt_cv_aix_libpath
  8416. else
  8417. if ${lt_cv_aix_libpath_+:} false; then :
  8418. $as_echo_n "(cached) " >&6
  8419. else
  8420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8421. /* end confdefs.h. */
  8422. int
  8423. main ()
  8424. {
  8425. ;
  8426. return 0;
  8427. }
  8428. _ACEOF
  8429. if ac_fn_c_try_link "$LINENO"; then :
  8430. lt_aix_libpath_sed='
  8431. /Import File Strings/,/^$/ {
  8432. /^0/ {
  8433. s/^0 *\([^ ]*\) *$/\1/
  8434. p
  8435. }
  8436. }'
  8437. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8438. # Check for a 64-bit object if we didn't find anything.
  8439. if test -z "$lt_cv_aix_libpath_"; then
  8440. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8441. fi
  8442. fi
  8443. rm -f core conftest.err conftest.$ac_objext \
  8444. conftest$ac_exeext conftest.$ac_ext
  8445. if test -z "$lt_cv_aix_libpath_"; then
  8446. lt_cv_aix_libpath_="/usr/lib:/lib"
  8447. fi
  8448. fi
  8449. aix_libpath=$lt_cv_aix_libpath_
  8450. fi
  8451. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8452. # Warning - without using the other run time loading flags,
  8453. # -berok will link without error, but may produce a broken library.
  8454. no_undefined_flag=' ${wl}-bernotok'
  8455. allow_undefined_flag=' ${wl}-berok'
  8456. if test "$with_gnu_ld" = yes; then
  8457. # We only use this code for GNU lds that support --whole-archive.
  8458. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8459. else
  8460. # Exported symbols can be pulled into shared objects from archives
  8461. whole_archive_flag_spec='$convenience'
  8462. fi
  8463. archive_cmds_need_lc=yes
  8464. # This is similar to how AIX traditionally builds its shared libraries.
  8465. 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'
  8466. fi
  8467. fi
  8468. ;;
  8469. amigaos*)
  8470. case $host_cpu in
  8471. powerpc)
  8472. # see comment about AmigaOS4 .so support
  8473. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8474. archive_expsym_cmds=''
  8475. ;;
  8476. m68k)
  8477. 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)'
  8478. hardcode_libdir_flag_spec='-L$libdir'
  8479. hardcode_minus_L=yes
  8480. ;;
  8481. esac
  8482. ;;
  8483. bsdi[45]*)
  8484. export_dynamic_flag_spec=-rdynamic
  8485. ;;
  8486. cygwin* | mingw* | pw32* | cegcc*)
  8487. # When not using gcc, we currently assume that we are using
  8488. # Microsoft Visual C++.
  8489. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8490. # no search path for DLLs.
  8491. case $cc_basename in
  8492. cl*)
  8493. # Native MSVC
  8494. hardcode_libdir_flag_spec=' '
  8495. allow_undefined_flag=unsupported
  8496. always_export_symbols=yes
  8497. file_list_spec='@'
  8498. # Tell ltmain to make .lib files, not .a files.
  8499. libext=lib
  8500. # Tell ltmain to make .dll files, not .so files.
  8501. shrext_cmds=".dll"
  8502. # FIXME: Setting linknames here is a bad hack.
  8503. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8504. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8505. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8506. else
  8507. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8508. fi~
  8509. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8510. linknames='
  8511. # The linker will not automatically build a static lib if we build a DLL.
  8512. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8513. enable_shared_with_static_runtimes=yes
  8514. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8515. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8516. # Don't use ranlib
  8517. old_postinstall_cmds='chmod 644 $oldlib'
  8518. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8519. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8520. case $lt_outputfile in
  8521. *.exe|*.EXE) ;;
  8522. *)
  8523. lt_outputfile="$lt_outputfile.exe"
  8524. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8525. ;;
  8526. esac~
  8527. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8528. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8529. $RM "$lt_outputfile.manifest";
  8530. fi'
  8531. ;;
  8532. *)
  8533. # Assume MSVC wrapper
  8534. hardcode_libdir_flag_spec=' '
  8535. allow_undefined_flag=unsupported
  8536. # Tell ltmain to make .lib files, not .a files.
  8537. libext=lib
  8538. # Tell ltmain to make .dll files, not .so files.
  8539. shrext_cmds=".dll"
  8540. # FIXME: Setting linknames here is a bad hack.
  8541. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8542. # The linker will automatically build a .lib file if we build a DLL.
  8543. old_archive_from_new_cmds='true'
  8544. # FIXME: Should let the user specify the lib program.
  8545. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8546. enable_shared_with_static_runtimes=yes
  8547. ;;
  8548. esac
  8549. ;;
  8550. darwin* | rhapsody*)
  8551. archive_cmds_need_lc=no
  8552. hardcode_direct=no
  8553. hardcode_automatic=yes
  8554. hardcode_shlibpath_var=unsupported
  8555. if test "$lt_cv_ld_force_load" = "yes"; then
  8556. 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\"`'
  8557. else
  8558. whole_archive_flag_spec=''
  8559. fi
  8560. link_all_deplibs=yes
  8561. allow_undefined_flag="$_lt_dar_allow_undefined"
  8562. case $cc_basename in
  8563. ifort*) _lt_dar_can_shared=yes ;;
  8564. *) _lt_dar_can_shared=$GCC ;;
  8565. esac
  8566. if test "$_lt_dar_can_shared" = "yes"; then
  8567. output_verbose_link_cmd=func_echo_all
  8568. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8569. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8570. 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}"
  8571. 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}"
  8572. else
  8573. ld_shlibs=no
  8574. fi
  8575. ;;
  8576. dgux*)
  8577. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8578. hardcode_libdir_flag_spec='-L$libdir'
  8579. hardcode_shlibpath_var=no
  8580. ;;
  8581. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8582. # support. Future versions do this automatically, but an explicit c++rt0.o
  8583. # does not break anything, and helps significantly (at the cost of a little
  8584. # extra space).
  8585. freebsd2.2*)
  8586. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8587. hardcode_libdir_flag_spec='-R$libdir'
  8588. hardcode_direct=yes
  8589. hardcode_shlibpath_var=no
  8590. ;;
  8591. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8592. freebsd2.*)
  8593. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8594. hardcode_direct=yes
  8595. hardcode_minus_L=yes
  8596. hardcode_shlibpath_var=no
  8597. ;;
  8598. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8599. freebsd* | dragonfly*)
  8600. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8601. hardcode_libdir_flag_spec='-R$libdir'
  8602. hardcode_direct=yes
  8603. hardcode_shlibpath_var=no
  8604. ;;
  8605. hpux9*)
  8606. if test "$GCC" = yes; then
  8607. 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'
  8608. else
  8609. 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'
  8610. fi
  8611. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8612. hardcode_libdir_separator=:
  8613. hardcode_direct=yes
  8614. # hardcode_minus_L: Not really in the search PATH,
  8615. # but as the default location of the library.
  8616. hardcode_minus_L=yes
  8617. export_dynamic_flag_spec='${wl}-E'
  8618. ;;
  8619. hpux10*)
  8620. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8621. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8622. else
  8623. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8624. fi
  8625. if test "$with_gnu_ld" = no; then
  8626. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8627. hardcode_libdir_separator=:
  8628. hardcode_direct=yes
  8629. hardcode_direct_absolute=yes
  8630. export_dynamic_flag_spec='${wl}-E'
  8631. # hardcode_minus_L: Not really in the search PATH,
  8632. # but as the default location of the library.
  8633. hardcode_minus_L=yes
  8634. fi
  8635. ;;
  8636. hpux11*)
  8637. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8638. case $host_cpu in
  8639. hppa*64*)
  8640. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8641. ;;
  8642. ia64*)
  8643. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8644. ;;
  8645. *)
  8646. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8647. ;;
  8648. esac
  8649. else
  8650. case $host_cpu in
  8651. hppa*64*)
  8652. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8653. ;;
  8654. ia64*)
  8655. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8656. ;;
  8657. *)
  8658. # Older versions of the 11.00 compiler do not understand -b yet
  8659. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8661. $as_echo_n "checking if $CC understands -b... " >&6; }
  8662. if ${lt_cv_prog_compiler__b+:} false; then :
  8663. $as_echo_n "(cached) " >&6
  8664. else
  8665. lt_cv_prog_compiler__b=no
  8666. save_LDFLAGS="$LDFLAGS"
  8667. LDFLAGS="$LDFLAGS -b"
  8668. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8669. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8670. # The linker can only warn and ignore the option if not recognized
  8671. # So say no if there are warnings
  8672. if test -s conftest.err; then
  8673. # Append any errors to the config.log.
  8674. cat conftest.err 1>&5
  8675. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8676. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8677. if diff conftest.exp conftest.er2 >/dev/null; then
  8678. lt_cv_prog_compiler__b=yes
  8679. fi
  8680. else
  8681. lt_cv_prog_compiler__b=yes
  8682. fi
  8683. fi
  8684. $RM -r conftest*
  8685. LDFLAGS="$save_LDFLAGS"
  8686. fi
  8687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8688. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8689. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8690. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8691. else
  8692. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8693. fi
  8694. ;;
  8695. esac
  8696. fi
  8697. if test "$with_gnu_ld" = no; then
  8698. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8699. hardcode_libdir_separator=:
  8700. case $host_cpu in
  8701. hppa*64*|ia64*)
  8702. hardcode_direct=no
  8703. hardcode_shlibpath_var=no
  8704. ;;
  8705. *)
  8706. hardcode_direct=yes
  8707. hardcode_direct_absolute=yes
  8708. export_dynamic_flag_spec='${wl}-E'
  8709. # hardcode_minus_L: Not really in the search PATH,
  8710. # but as the default location of the library.
  8711. hardcode_minus_L=yes
  8712. ;;
  8713. esac
  8714. fi
  8715. ;;
  8716. irix5* | irix6* | nonstopux*)
  8717. if test "$GCC" = yes; then
  8718. 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'
  8719. # Try to use the -exported_symbol ld option, if it does not
  8720. # work, assume that -exports_file does not work either and
  8721. # implicitly export all symbols.
  8722. # This should be the same for all languages, so no per-tag cache variable.
  8723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8724. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8725. if ${lt_cv_irix_exported_symbol+:} false; then :
  8726. $as_echo_n "(cached) " >&6
  8727. else
  8728. save_LDFLAGS="$LDFLAGS"
  8729. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8731. /* end confdefs.h. */
  8732. int foo (void) { return 0; }
  8733. _ACEOF
  8734. if ac_fn_c_try_link "$LINENO"; then :
  8735. lt_cv_irix_exported_symbol=yes
  8736. else
  8737. lt_cv_irix_exported_symbol=no
  8738. fi
  8739. rm -f core conftest.err conftest.$ac_objext \
  8740. conftest$ac_exeext conftest.$ac_ext
  8741. LDFLAGS="$save_LDFLAGS"
  8742. fi
  8743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8744. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8745. if test "$lt_cv_irix_exported_symbol" = yes; then
  8746. 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'
  8747. fi
  8748. else
  8749. 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'
  8750. 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'
  8751. fi
  8752. archive_cmds_need_lc='no'
  8753. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8754. hardcode_libdir_separator=:
  8755. inherit_rpath=yes
  8756. link_all_deplibs=yes
  8757. ;;
  8758. netbsd* | netbsdelf*-gnu)
  8759. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8760. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8761. else
  8762. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8763. fi
  8764. hardcode_libdir_flag_spec='-R$libdir'
  8765. hardcode_direct=yes
  8766. hardcode_shlibpath_var=no
  8767. ;;
  8768. newsos6)
  8769. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8770. hardcode_direct=yes
  8771. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8772. hardcode_libdir_separator=:
  8773. hardcode_shlibpath_var=no
  8774. ;;
  8775. *nto* | *qnx*)
  8776. ;;
  8777. openbsd*)
  8778. if test -f /usr/libexec/ld.so; then
  8779. hardcode_direct=yes
  8780. hardcode_shlibpath_var=no
  8781. hardcode_direct_absolute=yes
  8782. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8783. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8784. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8785. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8786. export_dynamic_flag_spec='${wl}-E'
  8787. else
  8788. case $host_os in
  8789. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8790. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8791. hardcode_libdir_flag_spec='-R$libdir'
  8792. ;;
  8793. *)
  8794. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8795. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8796. ;;
  8797. esac
  8798. fi
  8799. else
  8800. ld_shlibs=no
  8801. fi
  8802. ;;
  8803. os2*)
  8804. hardcode_libdir_flag_spec='-L$libdir'
  8805. hardcode_minus_L=yes
  8806. allow_undefined_flag=unsupported
  8807. 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'
  8808. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8809. ;;
  8810. osf3*)
  8811. if test "$GCC" = yes; then
  8812. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8813. 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'
  8814. else
  8815. allow_undefined_flag=' -expect_unresolved \*'
  8816. 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'
  8817. fi
  8818. archive_cmds_need_lc='no'
  8819. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8820. hardcode_libdir_separator=:
  8821. ;;
  8822. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8823. if test "$GCC" = yes; then
  8824. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8825. 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'
  8826. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8827. else
  8828. allow_undefined_flag=' -expect_unresolved \*'
  8829. 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'
  8830. 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~
  8831. $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'
  8832. # Both c and cxx compiler support -rpath directly
  8833. hardcode_libdir_flag_spec='-rpath $libdir'
  8834. fi
  8835. archive_cmds_need_lc='no'
  8836. hardcode_libdir_separator=:
  8837. ;;
  8838. solaris*)
  8839. no_undefined_flag=' -z defs'
  8840. if test "$GCC" = yes; then
  8841. wlarc='${wl}'
  8842. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8843. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8844. $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'
  8845. else
  8846. case `$CC -V 2>&1` in
  8847. *"Compilers 5.0"*)
  8848. wlarc=''
  8849. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8850. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8851. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8852. ;;
  8853. *)
  8854. wlarc='${wl}'
  8855. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8856. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8857. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8858. ;;
  8859. esac
  8860. fi
  8861. hardcode_libdir_flag_spec='-R$libdir'
  8862. hardcode_shlibpath_var=no
  8863. case $host_os in
  8864. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8865. *)
  8866. # The compiler driver will combine and reorder linker options,
  8867. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8868. # but is careful enough not to reorder.
  8869. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8870. if test "$GCC" = yes; then
  8871. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8872. else
  8873. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8874. fi
  8875. ;;
  8876. esac
  8877. link_all_deplibs=yes
  8878. ;;
  8879. sunos4*)
  8880. if test "x$host_vendor" = xsequent; then
  8881. # Use $CC to link under sequent, because it throws in some extra .o
  8882. # files that make .init and .fini sections work.
  8883. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8884. else
  8885. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8886. fi
  8887. hardcode_libdir_flag_spec='-L$libdir'
  8888. hardcode_direct=yes
  8889. hardcode_minus_L=yes
  8890. hardcode_shlibpath_var=no
  8891. ;;
  8892. sysv4)
  8893. case $host_vendor in
  8894. sni)
  8895. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8896. hardcode_direct=yes # is this really true???
  8897. ;;
  8898. siemens)
  8899. ## LD is ld it makes a PLAMLIB
  8900. ## CC just makes a GrossModule.
  8901. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8902. reload_cmds='$CC -r -o $output$reload_objs'
  8903. hardcode_direct=no
  8904. ;;
  8905. motorola)
  8906. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8907. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8908. ;;
  8909. esac
  8910. runpath_var='LD_RUN_PATH'
  8911. hardcode_shlibpath_var=no
  8912. ;;
  8913. sysv4.3*)
  8914. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8915. hardcode_shlibpath_var=no
  8916. export_dynamic_flag_spec='-Bexport'
  8917. ;;
  8918. sysv4*MP*)
  8919. if test -d /usr/nec; then
  8920. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8921. hardcode_shlibpath_var=no
  8922. runpath_var=LD_RUN_PATH
  8923. hardcode_runpath_var=yes
  8924. ld_shlibs=yes
  8925. fi
  8926. ;;
  8927. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8928. no_undefined_flag='${wl}-z,text'
  8929. archive_cmds_need_lc=no
  8930. hardcode_shlibpath_var=no
  8931. runpath_var='LD_RUN_PATH'
  8932. if test "$GCC" = yes; then
  8933. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8934. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8935. else
  8936. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8937. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8938. fi
  8939. ;;
  8940. sysv5* | sco3.2v5* | sco5v6*)
  8941. # Note: We can NOT use -z defs as we might desire, because we do not
  8942. # link with -lc, and that would cause any symbols used from libc to
  8943. # always be unresolved, which means just about no library would
  8944. # ever link correctly. If we're not using GNU ld we use -z text
  8945. # though, which does catch some bad symbols but isn't as heavy-handed
  8946. # as -z defs.
  8947. no_undefined_flag='${wl}-z,text'
  8948. allow_undefined_flag='${wl}-z,nodefs'
  8949. archive_cmds_need_lc=no
  8950. hardcode_shlibpath_var=no
  8951. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8952. hardcode_libdir_separator=':'
  8953. link_all_deplibs=yes
  8954. export_dynamic_flag_spec='${wl}-Bexport'
  8955. runpath_var='LD_RUN_PATH'
  8956. if test "$GCC" = yes; then
  8957. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8958. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8959. else
  8960. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8961. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8962. fi
  8963. ;;
  8964. uts4*)
  8965. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8966. hardcode_libdir_flag_spec='-L$libdir'
  8967. hardcode_shlibpath_var=no
  8968. ;;
  8969. *)
  8970. ld_shlibs=no
  8971. ;;
  8972. esac
  8973. if test x$host_vendor = xsni; then
  8974. case $host in
  8975. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8976. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8977. ;;
  8978. esac
  8979. fi
  8980. fi
  8981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8982. $as_echo "$ld_shlibs" >&6; }
  8983. test "$ld_shlibs" = no && can_build_shared=no
  8984. with_gnu_ld=$with_gnu_ld
  8985. #
  8986. # Do we need to explicitly link libc?
  8987. #
  8988. case "x$archive_cmds_need_lc" in
  8989. x|xyes)
  8990. # Assume -lc should be added
  8991. archive_cmds_need_lc=yes
  8992. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8993. case $archive_cmds in
  8994. *'~'*)
  8995. # FIXME: we may have to deal with multi-command sequences.
  8996. ;;
  8997. '$CC '*)
  8998. # Test whether the compiler implicitly links with -lc since on some
  8999. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9000. # to ld, don't add -lc before -lgcc.
  9001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9002. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9003. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9004. $as_echo_n "(cached) " >&6
  9005. else
  9006. $RM conftest*
  9007. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9008. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9009. (eval $ac_compile) 2>&5
  9010. ac_status=$?
  9011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9012. test $ac_status = 0; } 2>conftest.err; then
  9013. soname=conftest
  9014. lib=conftest
  9015. libobjs=conftest.$ac_objext
  9016. deplibs=
  9017. wl=$lt_prog_compiler_wl
  9018. pic_flag=$lt_prog_compiler_pic
  9019. compiler_flags=-v
  9020. linker_flags=-v
  9021. verstring=
  9022. output_objdir=.
  9023. libname=conftest
  9024. lt_save_allow_undefined_flag=$allow_undefined_flag
  9025. allow_undefined_flag=
  9026. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9027. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9028. ac_status=$?
  9029. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9030. test $ac_status = 0; }
  9031. then
  9032. lt_cv_archive_cmds_need_lc=no
  9033. else
  9034. lt_cv_archive_cmds_need_lc=yes
  9035. fi
  9036. allow_undefined_flag=$lt_save_allow_undefined_flag
  9037. else
  9038. cat conftest.err 1>&5
  9039. fi
  9040. $RM conftest*
  9041. fi
  9042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9043. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9044. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9045. ;;
  9046. esac
  9047. fi
  9048. ;;
  9049. esac
  9050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9051. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9052. if test "$GCC" = yes; then
  9053. case $host_os in
  9054. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9055. *) lt_awk_arg="/^libraries:/" ;;
  9056. esac
  9057. case $host_os in
  9058. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9059. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9060. esac
  9061. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9062. case $lt_search_path_spec in
  9063. *\;*)
  9064. # if the path contains ";" then we assume it to be the separator
  9065. # otherwise default to the standard path separator (i.e. ":") - it is
  9066. # assumed that no part of a normal pathname contains ";" but that should
  9067. # okay in the real world where ";" in dirpaths is itself problematic.
  9068. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9069. ;;
  9070. *)
  9071. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9072. ;;
  9073. esac
  9074. # Ok, now we have the path, separated by spaces, we can step through it
  9075. # and add multilib dir if necessary.
  9076. lt_tmp_lt_search_path_spec=
  9077. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9078. for lt_sys_path in $lt_search_path_spec; do
  9079. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9080. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9081. else
  9082. test -d "$lt_sys_path" && \
  9083. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9084. fi
  9085. done
  9086. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9087. BEGIN {RS=" "; FS="/|\n";} {
  9088. lt_foo="";
  9089. lt_count=0;
  9090. for (lt_i = NF; lt_i > 0; lt_i--) {
  9091. if ($lt_i != "" && $lt_i != ".") {
  9092. if ($lt_i == "..") {
  9093. lt_count++;
  9094. } else {
  9095. if (lt_count == 0) {
  9096. lt_foo="/" $lt_i lt_foo;
  9097. } else {
  9098. lt_count--;
  9099. }
  9100. }
  9101. }
  9102. }
  9103. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9104. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9105. }'`
  9106. # AWK program above erroneously prepends '/' to C:/dos/paths
  9107. # for these hosts.
  9108. case $host_os in
  9109. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9110. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9111. esac
  9112. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9113. else
  9114. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9115. fi
  9116. library_names_spec=
  9117. libname_spec='lib$name'
  9118. soname_spec=
  9119. shrext_cmds=".so"
  9120. postinstall_cmds=
  9121. postuninstall_cmds=
  9122. finish_cmds=
  9123. finish_eval=
  9124. shlibpath_var=
  9125. shlibpath_overrides_runpath=unknown
  9126. version_type=none
  9127. dynamic_linker="$host_os ld.so"
  9128. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9129. need_lib_prefix=unknown
  9130. hardcode_into_libs=no
  9131. # when you set need_version to no, make sure it does not cause -set_version
  9132. # flags to be left without arguments
  9133. need_version=unknown
  9134. case $host_os in
  9135. aix3*)
  9136. version_type=linux # correct to gnu/linux during the next big refactor
  9137. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9138. shlibpath_var=LIBPATH
  9139. # AIX 3 has no versioning support, so we append a major version to the name.
  9140. soname_spec='${libname}${release}${shared_ext}$major'
  9141. ;;
  9142. aix[4-9]*)
  9143. version_type=linux # correct to gnu/linux during the next big refactor
  9144. need_lib_prefix=no
  9145. need_version=no
  9146. hardcode_into_libs=yes
  9147. if test "$host_cpu" = ia64; then
  9148. # AIX 5 supports IA64
  9149. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9150. shlibpath_var=LD_LIBRARY_PATH
  9151. else
  9152. # With GCC up to 2.95.x, collect2 would create an import file
  9153. # for dependence libraries. The import file would start with
  9154. # the line `#! .'. This would cause the generated library to
  9155. # depend on `.', always an invalid library. This was fixed in
  9156. # development snapshots of GCC prior to 3.0.
  9157. case $host_os in
  9158. aix4 | aix4.[01] | aix4.[01].*)
  9159. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9160. echo ' yes '
  9161. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9162. :
  9163. else
  9164. can_build_shared=no
  9165. fi
  9166. ;;
  9167. esac
  9168. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9169. # soname into executable. Probably we can add versioning support to
  9170. # collect2, so additional links can be useful in future.
  9171. if test "$aix_use_runtimelinking" = yes; then
  9172. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9173. # instead of lib<name>.a to let people know that these are not
  9174. # typical AIX shared libraries.
  9175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9176. else
  9177. # We preserve .a as extension for shared libraries through AIX4.2
  9178. # and later when we are not doing run time linking.
  9179. library_names_spec='${libname}${release}.a $libname.a'
  9180. soname_spec='${libname}${release}${shared_ext}$major'
  9181. fi
  9182. shlibpath_var=LIBPATH
  9183. fi
  9184. ;;
  9185. amigaos*)
  9186. case $host_cpu in
  9187. powerpc)
  9188. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9189. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9191. ;;
  9192. m68k)
  9193. library_names_spec='$libname.ixlibrary $libname.a'
  9194. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9195. 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'
  9196. ;;
  9197. esac
  9198. ;;
  9199. beos*)
  9200. library_names_spec='${libname}${shared_ext}'
  9201. dynamic_linker="$host_os ld.so"
  9202. shlibpath_var=LIBRARY_PATH
  9203. ;;
  9204. bsdi[45]*)
  9205. version_type=linux # correct to gnu/linux during the next big refactor
  9206. need_version=no
  9207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9208. soname_spec='${libname}${release}${shared_ext}$major'
  9209. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9210. shlibpath_var=LD_LIBRARY_PATH
  9211. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9212. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9213. # the default ld.so.conf also contains /usr/contrib/lib and
  9214. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9215. # libtool to hard-code these into programs
  9216. ;;
  9217. cygwin* | mingw* | pw32* | cegcc*)
  9218. version_type=windows
  9219. shrext_cmds=".dll"
  9220. need_version=no
  9221. need_lib_prefix=no
  9222. case $GCC,$cc_basename in
  9223. yes,*)
  9224. # gcc
  9225. library_names_spec='$libname.dll.a'
  9226. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9227. postinstall_cmds='base_file=`basename \${file}`~
  9228. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9229. dldir=$destdir/`dirname \$dlpath`~
  9230. test -d \$dldir || mkdir -p \$dldir~
  9231. $install_prog $dir/$dlname \$dldir/$dlname~
  9232. chmod a+x \$dldir/$dlname~
  9233. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9234. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9235. fi'
  9236. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9237. dlpath=$dir/\$dldll~
  9238. $RM \$dlpath'
  9239. shlibpath_overrides_runpath=yes
  9240. case $host_os in
  9241. cygwin*)
  9242. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9243. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9244. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9245. ;;
  9246. mingw* | cegcc*)
  9247. # MinGW DLLs use traditional 'lib' prefix
  9248. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9249. ;;
  9250. pw32*)
  9251. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9252. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9253. ;;
  9254. esac
  9255. dynamic_linker='Win32 ld.exe'
  9256. ;;
  9257. *,cl*)
  9258. # Native MSVC
  9259. libname_spec='$name'
  9260. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9261. library_names_spec='${libname}.dll.lib'
  9262. case $build_os in
  9263. mingw*)
  9264. sys_lib_search_path_spec=
  9265. lt_save_ifs=$IFS
  9266. IFS=';'
  9267. for lt_path in $LIB
  9268. do
  9269. IFS=$lt_save_ifs
  9270. # Let DOS variable expansion print the short 8.3 style file name.
  9271. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9272. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9273. done
  9274. IFS=$lt_save_ifs
  9275. # Convert to MSYS style.
  9276. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9277. ;;
  9278. cygwin*)
  9279. # Convert to unix form, then to dos form, then back to unix form
  9280. # but this time dos style (no spaces!) so that the unix form looks
  9281. # like /cygdrive/c/PROGRA~1:/cygdr...
  9282. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9283. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9284. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9285. ;;
  9286. *)
  9287. sys_lib_search_path_spec="$LIB"
  9288. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9289. # It is most probably a Windows format PATH.
  9290. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9291. else
  9292. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9293. fi
  9294. # FIXME: find the short name or the path components, as spaces are
  9295. # common. (e.g. "Program Files" -> "PROGRA~1")
  9296. ;;
  9297. esac
  9298. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9299. postinstall_cmds='base_file=`basename \${file}`~
  9300. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9301. dldir=$destdir/`dirname \$dlpath`~
  9302. test -d \$dldir || mkdir -p \$dldir~
  9303. $install_prog $dir/$dlname \$dldir/$dlname'
  9304. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9305. dlpath=$dir/\$dldll~
  9306. $RM \$dlpath'
  9307. shlibpath_overrides_runpath=yes
  9308. dynamic_linker='Win32 link.exe'
  9309. ;;
  9310. *)
  9311. # Assume MSVC wrapper
  9312. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9313. dynamic_linker='Win32 ld.exe'
  9314. ;;
  9315. esac
  9316. # FIXME: first we should search . and the directory the executable is in
  9317. shlibpath_var=PATH
  9318. ;;
  9319. darwin* | rhapsody*)
  9320. dynamic_linker="$host_os dyld"
  9321. version_type=darwin
  9322. need_lib_prefix=no
  9323. need_version=no
  9324. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9325. soname_spec='${libname}${release}${major}$shared_ext'
  9326. shlibpath_overrides_runpath=yes
  9327. shlibpath_var=DYLD_LIBRARY_PATH
  9328. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9329. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9330. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9331. ;;
  9332. dgux*)
  9333. version_type=linux # correct to gnu/linux during the next big refactor
  9334. need_lib_prefix=no
  9335. need_version=no
  9336. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9337. soname_spec='${libname}${release}${shared_ext}$major'
  9338. shlibpath_var=LD_LIBRARY_PATH
  9339. ;;
  9340. freebsd* | dragonfly*)
  9341. # DragonFly does not have aout. When/if they implement a new
  9342. # versioning mechanism, adjust this.
  9343. if test -x /usr/bin/objformat; then
  9344. objformat=`/usr/bin/objformat`
  9345. else
  9346. case $host_os in
  9347. freebsd[23].*) objformat=aout ;;
  9348. *) objformat=elf ;;
  9349. esac
  9350. fi
  9351. version_type=freebsd-$objformat
  9352. case $version_type in
  9353. freebsd-elf*)
  9354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9355. need_version=no
  9356. need_lib_prefix=no
  9357. ;;
  9358. freebsd-*)
  9359. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9360. need_version=yes
  9361. ;;
  9362. esac
  9363. shlibpath_var=LD_LIBRARY_PATH
  9364. case $host_os in
  9365. freebsd2.*)
  9366. shlibpath_overrides_runpath=yes
  9367. ;;
  9368. freebsd3.[01]* | freebsdelf3.[01]*)
  9369. shlibpath_overrides_runpath=yes
  9370. hardcode_into_libs=yes
  9371. ;;
  9372. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9373. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9374. shlibpath_overrides_runpath=no
  9375. hardcode_into_libs=yes
  9376. ;;
  9377. *) # from 4.6 on, and DragonFly
  9378. shlibpath_overrides_runpath=yes
  9379. hardcode_into_libs=yes
  9380. ;;
  9381. esac
  9382. ;;
  9383. gnu*)
  9384. version_type=linux # correct to gnu/linux during the next big refactor
  9385. need_lib_prefix=no
  9386. need_version=no
  9387. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9388. soname_spec='${libname}${release}${shared_ext}$major'
  9389. shlibpath_var=LD_LIBRARY_PATH
  9390. shlibpath_overrides_runpath=no
  9391. hardcode_into_libs=yes
  9392. ;;
  9393. haiku*)
  9394. version_type=linux # correct to gnu/linux during the next big refactor
  9395. need_lib_prefix=no
  9396. need_version=no
  9397. dynamic_linker="$host_os runtime_loader"
  9398. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9399. soname_spec='${libname}${release}${shared_ext}$major'
  9400. shlibpath_var=LIBRARY_PATH
  9401. shlibpath_overrides_runpath=yes
  9402. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9403. hardcode_into_libs=yes
  9404. ;;
  9405. hpux9* | hpux10* | hpux11*)
  9406. # Give a soname corresponding to the major version so that dld.sl refuses to
  9407. # link against other versions.
  9408. version_type=sunos
  9409. need_lib_prefix=no
  9410. need_version=no
  9411. case $host_cpu in
  9412. ia64*)
  9413. shrext_cmds='.so'
  9414. hardcode_into_libs=yes
  9415. dynamic_linker="$host_os dld.so"
  9416. shlibpath_var=LD_LIBRARY_PATH
  9417. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9418. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9419. soname_spec='${libname}${release}${shared_ext}$major'
  9420. if test "X$HPUX_IA64_MODE" = X32; then
  9421. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9422. else
  9423. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9424. fi
  9425. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9426. ;;
  9427. hppa*64*)
  9428. shrext_cmds='.sl'
  9429. hardcode_into_libs=yes
  9430. dynamic_linker="$host_os dld.sl"
  9431. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9432. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9434. soname_spec='${libname}${release}${shared_ext}$major'
  9435. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9436. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9437. ;;
  9438. *)
  9439. shrext_cmds='.sl'
  9440. dynamic_linker="$host_os dld.sl"
  9441. shlibpath_var=SHLIB_PATH
  9442. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9443. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9444. soname_spec='${libname}${release}${shared_ext}$major'
  9445. ;;
  9446. esac
  9447. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9448. postinstall_cmds='chmod 555 $lib'
  9449. # or fails outright, so override atomically:
  9450. install_override_mode=555
  9451. ;;
  9452. interix[3-9]*)
  9453. version_type=linux # correct to gnu/linux during the next big refactor
  9454. need_lib_prefix=no
  9455. need_version=no
  9456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9457. soname_spec='${libname}${release}${shared_ext}$major'
  9458. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9459. shlibpath_var=LD_LIBRARY_PATH
  9460. shlibpath_overrides_runpath=no
  9461. hardcode_into_libs=yes
  9462. ;;
  9463. irix5* | irix6* | nonstopux*)
  9464. case $host_os in
  9465. nonstopux*) version_type=nonstopux ;;
  9466. *)
  9467. if test "$lt_cv_prog_gnu_ld" = yes; then
  9468. version_type=linux # correct to gnu/linux during the next big refactor
  9469. else
  9470. version_type=irix
  9471. fi ;;
  9472. esac
  9473. need_lib_prefix=no
  9474. need_version=no
  9475. soname_spec='${libname}${release}${shared_ext}$major'
  9476. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9477. case $host_os in
  9478. irix5* | nonstopux*)
  9479. libsuff= shlibsuff=
  9480. ;;
  9481. *)
  9482. case $LD in # libtool.m4 will add one of these switches to LD
  9483. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9484. libsuff= shlibsuff= libmagic=32-bit;;
  9485. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9486. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9487. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9488. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9489. *) libsuff= shlibsuff= libmagic=never-match;;
  9490. esac
  9491. ;;
  9492. esac
  9493. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9494. shlibpath_overrides_runpath=no
  9495. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9496. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9497. hardcode_into_libs=yes
  9498. ;;
  9499. # No shared lib support for Linux oldld, aout, or coff.
  9500. linux*oldld* | linux*aout* | linux*coff*)
  9501. dynamic_linker=no
  9502. ;;
  9503. # This must be glibc/ELF.
  9504. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9505. version_type=linux # correct to gnu/linux during the next big refactor
  9506. need_lib_prefix=no
  9507. need_version=no
  9508. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9509. soname_spec='${libname}${release}${shared_ext}$major'
  9510. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9511. shlibpath_var=LD_LIBRARY_PATH
  9512. shlibpath_overrides_runpath=no
  9513. # Some binutils ld are patched to set DT_RUNPATH
  9514. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9515. $as_echo_n "(cached) " >&6
  9516. else
  9517. lt_cv_shlibpath_overrides_runpath=no
  9518. save_LDFLAGS=$LDFLAGS
  9519. save_libdir=$libdir
  9520. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9521. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9523. /* end confdefs.h. */
  9524. int
  9525. main ()
  9526. {
  9527. ;
  9528. return 0;
  9529. }
  9530. _ACEOF
  9531. if ac_fn_c_try_link "$LINENO"; then :
  9532. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9533. lt_cv_shlibpath_overrides_runpath=yes
  9534. fi
  9535. fi
  9536. rm -f core conftest.err conftest.$ac_objext \
  9537. conftest$ac_exeext conftest.$ac_ext
  9538. LDFLAGS=$save_LDFLAGS
  9539. libdir=$save_libdir
  9540. fi
  9541. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9542. # This implies no fast_install, which is unacceptable.
  9543. # Some rework will be needed to allow for fast_install
  9544. # before this can be enabled.
  9545. hardcode_into_libs=yes
  9546. # Append ld.so.conf contents to the search path
  9547. if test -f /etc/ld.so.conf; then
  9548. 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' ' '`
  9549. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9550. fi
  9551. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9552. # powerpc, because MkLinux only supported shared libraries with the
  9553. # GNU dynamic linker. Since this was broken with cross compilers,
  9554. # most powerpc-linux boxes support dynamic linking these days and
  9555. # people can always --disable-shared, the test was removed, and we
  9556. # assume the GNU/Linux dynamic linker is in use.
  9557. dynamic_linker='GNU/Linux ld.so'
  9558. ;;
  9559. netbsdelf*-gnu)
  9560. version_type=linux
  9561. need_lib_prefix=no
  9562. need_version=no
  9563. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9564. soname_spec='${libname}${release}${shared_ext}$major'
  9565. shlibpath_var=LD_LIBRARY_PATH
  9566. shlibpath_overrides_runpath=no
  9567. hardcode_into_libs=yes
  9568. dynamic_linker='NetBSD ld.elf_so'
  9569. ;;
  9570. netbsd*)
  9571. version_type=sunos
  9572. need_lib_prefix=no
  9573. need_version=no
  9574. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9576. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9577. dynamic_linker='NetBSD (a.out) ld.so'
  9578. else
  9579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9580. soname_spec='${libname}${release}${shared_ext}$major'
  9581. dynamic_linker='NetBSD ld.elf_so'
  9582. fi
  9583. shlibpath_var=LD_LIBRARY_PATH
  9584. shlibpath_overrides_runpath=yes
  9585. hardcode_into_libs=yes
  9586. ;;
  9587. newsos6)
  9588. version_type=linux # correct to gnu/linux during the next big refactor
  9589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9590. shlibpath_var=LD_LIBRARY_PATH
  9591. shlibpath_overrides_runpath=yes
  9592. ;;
  9593. *nto* | *qnx*)
  9594. version_type=qnx
  9595. need_lib_prefix=no
  9596. need_version=no
  9597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9598. soname_spec='${libname}${release}${shared_ext}$major'
  9599. shlibpath_var=LD_LIBRARY_PATH
  9600. shlibpath_overrides_runpath=no
  9601. hardcode_into_libs=yes
  9602. dynamic_linker='ldqnx.so'
  9603. ;;
  9604. openbsd*)
  9605. version_type=sunos
  9606. sys_lib_dlsearch_path_spec="/usr/lib"
  9607. need_lib_prefix=no
  9608. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9609. case $host_os in
  9610. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9611. *) need_version=no ;;
  9612. esac
  9613. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9614. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9615. shlibpath_var=LD_LIBRARY_PATH
  9616. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9617. case $host_os in
  9618. openbsd2.[89] | openbsd2.[89].*)
  9619. shlibpath_overrides_runpath=no
  9620. ;;
  9621. *)
  9622. shlibpath_overrides_runpath=yes
  9623. ;;
  9624. esac
  9625. else
  9626. shlibpath_overrides_runpath=yes
  9627. fi
  9628. ;;
  9629. os2*)
  9630. libname_spec='$name'
  9631. shrext_cmds=".dll"
  9632. need_lib_prefix=no
  9633. library_names_spec='$libname${shared_ext} $libname.a'
  9634. dynamic_linker='OS/2 ld.exe'
  9635. shlibpath_var=LIBPATH
  9636. ;;
  9637. osf3* | osf4* | osf5*)
  9638. version_type=osf
  9639. need_lib_prefix=no
  9640. need_version=no
  9641. soname_spec='${libname}${release}${shared_ext}$major'
  9642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9643. shlibpath_var=LD_LIBRARY_PATH
  9644. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9645. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9646. ;;
  9647. rdos*)
  9648. dynamic_linker=no
  9649. ;;
  9650. solaris*)
  9651. version_type=linux # correct to gnu/linux during the next big refactor
  9652. need_lib_prefix=no
  9653. need_version=no
  9654. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9655. soname_spec='${libname}${release}${shared_ext}$major'
  9656. shlibpath_var=LD_LIBRARY_PATH
  9657. shlibpath_overrides_runpath=yes
  9658. hardcode_into_libs=yes
  9659. # ldd complains unless libraries are executable
  9660. postinstall_cmds='chmod +x $lib'
  9661. ;;
  9662. sunos4*)
  9663. version_type=sunos
  9664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9665. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9666. shlibpath_var=LD_LIBRARY_PATH
  9667. shlibpath_overrides_runpath=yes
  9668. if test "$with_gnu_ld" = yes; then
  9669. need_lib_prefix=no
  9670. fi
  9671. need_version=yes
  9672. ;;
  9673. sysv4 | sysv4.3*)
  9674. version_type=linux # correct to gnu/linux during the next big refactor
  9675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9676. soname_spec='${libname}${release}${shared_ext}$major'
  9677. shlibpath_var=LD_LIBRARY_PATH
  9678. case $host_vendor in
  9679. sni)
  9680. shlibpath_overrides_runpath=no
  9681. need_lib_prefix=no
  9682. runpath_var=LD_RUN_PATH
  9683. ;;
  9684. siemens)
  9685. need_lib_prefix=no
  9686. ;;
  9687. motorola)
  9688. need_lib_prefix=no
  9689. need_version=no
  9690. shlibpath_overrides_runpath=no
  9691. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9692. ;;
  9693. esac
  9694. ;;
  9695. sysv4*MP*)
  9696. if test -d /usr/nec ;then
  9697. version_type=linux # correct to gnu/linux during the next big refactor
  9698. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9699. soname_spec='$libname${shared_ext}.$major'
  9700. shlibpath_var=LD_LIBRARY_PATH
  9701. fi
  9702. ;;
  9703. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9704. version_type=freebsd-elf
  9705. need_lib_prefix=no
  9706. need_version=no
  9707. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9708. soname_spec='${libname}${release}${shared_ext}$major'
  9709. shlibpath_var=LD_LIBRARY_PATH
  9710. shlibpath_overrides_runpath=yes
  9711. hardcode_into_libs=yes
  9712. if test "$with_gnu_ld" = yes; then
  9713. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9714. else
  9715. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9716. case $host_os in
  9717. sco3.2v5*)
  9718. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9719. ;;
  9720. esac
  9721. fi
  9722. sys_lib_dlsearch_path_spec='/usr/lib'
  9723. ;;
  9724. tpf*)
  9725. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9726. version_type=linux # correct to gnu/linux during the next big refactor
  9727. need_lib_prefix=no
  9728. need_version=no
  9729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9730. shlibpath_var=LD_LIBRARY_PATH
  9731. shlibpath_overrides_runpath=no
  9732. hardcode_into_libs=yes
  9733. ;;
  9734. uts4*)
  9735. version_type=linux # correct to gnu/linux during the next big refactor
  9736. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9737. soname_spec='${libname}${release}${shared_ext}$major'
  9738. shlibpath_var=LD_LIBRARY_PATH
  9739. ;;
  9740. *)
  9741. dynamic_linker=no
  9742. ;;
  9743. esac
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9745. $as_echo "$dynamic_linker" >&6; }
  9746. test "$dynamic_linker" = no && can_build_shared=no
  9747. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9748. if test "$GCC" = yes; then
  9749. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9750. fi
  9751. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9752. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9753. fi
  9754. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9755. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9756. fi
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9758. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9759. hardcode_action=
  9760. if test -n "$hardcode_libdir_flag_spec" ||
  9761. test -n "$runpath_var" ||
  9762. test "X$hardcode_automatic" = "Xyes" ; then
  9763. # We can hardcode non-existent directories.
  9764. if test "$hardcode_direct" != no &&
  9765. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9766. # have to relink, otherwise we might link with an installed library
  9767. # when we should be linking with a yet-to-be-installed one
  9768. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9769. test "$hardcode_minus_L" != no; then
  9770. # Linking always hardcodes the temporary library directory.
  9771. hardcode_action=relink
  9772. else
  9773. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9774. hardcode_action=immediate
  9775. fi
  9776. else
  9777. # We cannot hardcode anything, or else we can only hardcode existing
  9778. # directories.
  9779. hardcode_action=unsupported
  9780. fi
  9781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9782. $as_echo "$hardcode_action" >&6; }
  9783. if test "$hardcode_action" = relink ||
  9784. test "$inherit_rpath" = yes; then
  9785. # Fast installation is not supported
  9786. enable_fast_install=no
  9787. elif test "$shlibpath_overrides_runpath" = yes ||
  9788. test "$enable_shared" = no; then
  9789. # Fast installation is not necessary
  9790. enable_fast_install=needless
  9791. fi
  9792. if test "x$enable_dlopen" != xyes; then
  9793. enable_dlopen=unknown
  9794. enable_dlopen_self=unknown
  9795. enable_dlopen_self_static=unknown
  9796. else
  9797. lt_cv_dlopen=no
  9798. lt_cv_dlopen_libs=
  9799. case $host_os in
  9800. beos*)
  9801. lt_cv_dlopen="load_add_on"
  9802. lt_cv_dlopen_libs=
  9803. lt_cv_dlopen_self=yes
  9804. ;;
  9805. mingw* | pw32* | cegcc*)
  9806. lt_cv_dlopen="LoadLibrary"
  9807. lt_cv_dlopen_libs=
  9808. ;;
  9809. cygwin*)
  9810. lt_cv_dlopen="dlopen"
  9811. lt_cv_dlopen_libs=
  9812. ;;
  9813. darwin*)
  9814. # if libdl is installed we need to link against it
  9815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9816. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9817. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9818. $as_echo_n "(cached) " >&6
  9819. else
  9820. ac_check_lib_save_LIBS=$LIBS
  9821. LIBS="-ldl $LIBS"
  9822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9823. /* end confdefs.h. */
  9824. /* Override any GCC internal prototype to avoid an error.
  9825. Use char because int might match the return type of a GCC
  9826. builtin and then its argument prototype would still apply. */
  9827. #ifdef __cplusplus
  9828. extern "C"
  9829. #endif
  9830. char dlopen ();
  9831. int
  9832. main ()
  9833. {
  9834. return dlopen ();
  9835. ;
  9836. return 0;
  9837. }
  9838. _ACEOF
  9839. if ac_fn_c_try_link "$LINENO"; then :
  9840. ac_cv_lib_dl_dlopen=yes
  9841. else
  9842. ac_cv_lib_dl_dlopen=no
  9843. fi
  9844. rm -f core conftest.err conftest.$ac_objext \
  9845. conftest$ac_exeext conftest.$ac_ext
  9846. LIBS=$ac_check_lib_save_LIBS
  9847. fi
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9849. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9850. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9851. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9852. else
  9853. lt_cv_dlopen="dyld"
  9854. lt_cv_dlopen_libs=
  9855. lt_cv_dlopen_self=yes
  9856. fi
  9857. ;;
  9858. *)
  9859. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9860. if test "x$ac_cv_func_shl_load" = xyes; then :
  9861. lt_cv_dlopen="shl_load"
  9862. else
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9864. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9865. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9866. $as_echo_n "(cached) " >&6
  9867. else
  9868. ac_check_lib_save_LIBS=$LIBS
  9869. LIBS="-ldld $LIBS"
  9870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9871. /* end confdefs.h. */
  9872. /* Override any GCC internal prototype to avoid an error.
  9873. Use char because int might match the return type of a GCC
  9874. builtin and then its argument prototype would still apply. */
  9875. #ifdef __cplusplus
  9876. extern "C"
  9877. #endif
  9878. char shl_load ();
  9879. int
  9880. main ()
  9881. {
  9882. return shl_load ();
  9883. ;
  9884. return 0;
  9885. }
  9886. _ACEOF
  9887. if ac_fn_c_try_link "$LINENO"; then :
  9888. ac_cv_lib_dld_shl_load=yes
  9889. else
  9890. ac_cv_lib_dld_shl_load=no
  9891. fi
  9892. rm -f core conftest.err conftest.$ac_objext \
  9893. conftest$ac_exeext conftest.$ac_ext
  9894. LIBS=$ac_check_lib_save_LIBS
  9895. fi
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9897. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9898. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9899. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9900. else
  9901. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9902. if test "x$ac_cv_func_dlopen" = xyes; then :
  9903. lt_cv_dlopen="dlopen"
  9904. else
  9905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9906. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9907. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9908. $as_echo_n "(cached) " >&6
  9909. else
  9910. ac_check_lib_save_LIBS=$LIBS
  9911. LIBS="-ldl $LIBS"
  9912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9913. /* end confdefs.h. */
  9914. /* Override any GCC internal prototype to avoid an error.
  9915. Use char because int might match the return type of a GCC
  9916. builtin and then its argument prototype would still apply. */
  9917. #ifdef __cplusplus
  9918. extern "C"
  9919. #endif
  9920. char dlopen ();
  9921. int
  9922. main ()
  9923. {
  9924. return dlopen ();
  9925. ;
  9926. return 0;
  9927. }
  9928. _ACEOF
  9929. if ac_fn_c_try_link "$LINENO"; then :
  9930. ac_cv_lib_dl_dlopen=yes
  9931. else
  9932. ac_cv_lib_dl_dlopen=no
  9933. fi
  9934. rm -f core conftest.err conftest.$ac_objext \
  9935. conftest$ac_exeext conftest.$ac_ext
  9936. LIBS=$ac_check_lib_save_LIBS
  9937. fi
  9938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9939. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9940. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9941. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9942. else
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9944. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9945. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9946. $as_echo_n "(cached) " >&6
  9947. else
  9948. ac_check_lib_save_LIBS=$LIBS
  9949. LIBS="-lsvld $LIBS"
  9950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9951. /* end confdefs.h. */
  9952. /* Override any GCC internal prototype to avoid an error.
  9953. Use char because int might match the return type of a GCC
  9954. builtin and then its argument prototype would still apply. */
  9955. #ifdef __cplusplus
  9956. extern "C"
  9957. #endif
  9958. char dlopen ();
  9959. int
  9960. main ()
  9961. {
  9962. return dlopen ();
  9963. ;
  9964. return 0;
  9965. }
  9966. _ACEOF
  9967. if ac_fn_c_try_link "$LINENO"; then :
  9968. ac_cv_lib_svld_dlopen=yes
  9969. else
  9970. ac_cv_lib_svld_dlopen=no
  9971. fi
  9972. rm -f core conftest.err conftest.$ac_objext \
  9973. conftest$ac_exeext conftest.$ac_ext
  9974. LIBS=$ac_check_lib_save_LIBS
  9975. fi
  9976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9977. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9978. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9979. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9980. else
  9981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9982. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9983. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9984. $as_echo_n "(cached) " >&6
  9985. else
  9986. ac_check_lib_save_LIBS=$LIBS
  9987. LIBS="-ldld $LIBS"
  9988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9989. /* end confdefs.h. */
  9990. /* Override any GCC internal prototype to avoid an error.
  9991. Use char because int might match the return type of a GCC
  9992. builtin and then its argument prototype would still apply. */
  9993. #ifdef __cplusplus
  9994. extern "C"
  9995. #endif
  9996. char dld_link ();
  9997. int
  9998. main ()
  9999. {
  10000. return dld_link ();
  10001. ;
  10002. return 0;
  10003. }
  10004. _ACEOF
  10005. if ac_fn_c_try_link "$LINENO"; then :
  10006. ac_cv_lib_dld_dld_link=yes
  10007. else
  10008. ac_cv_lib_dld_dld_link=no
  10009. fi
  10010. rm -f core conftest.err conftest.$ac_objext \
  10011. conftest$ac_exeext conftest.$ac_ext
  10012. LIBS=$ac_check_lib_save_LIBS
  10013. fi
  10014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10015. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10016. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10017. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10018. fi
  10019. fi
  10020. fi
  10021. fi
  10022. fi
  10023. fi
  10024. ;;
  10025. esac
  10026. if test "x$lt_cv_dlopen" != xno; then
  10027. enable_dlopen=yes
  10028. else
  10029. enable_dlopen=no
  10030. fi
  10031. case $lt_cv_dlopen in
  10032. dlopen)
  10033. save_CPPFLAGS="$CPPFLAGS"
  10034. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10035. save_LDFLAGS="$LDFLAGS"
  10036. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10037. save_LIBS="$LIBS"
  10038. LIBS="$lt_cv_dlopen_libs $LIBS"
  10039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10040. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10041. if ${lt_cv_dlopen_self+:} false; then :
  10042. $as_echo_n "(cached) " >&6
  10043. else
  10044. if test "$cross_compiling" = yes; then :
  10045. lt_cv_dlopen_self=cross
  10046. else
  10047. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10048. lt_status=$lt_dlunknown
  10049. cat > conftest.$ac_ext <<_LT_EOF
  10050. #line $LINENO "configure"
  10051. #include "confdefs.h"
  10052. #if HAVE_DLFCN_H
  10053. #include <dlfcn.h>
  10054. #endif
  10055. #include <stdio.h>
  10056. #ifdef RTLD_GLOBAL
  10057. # define LT_DLGLOBAL RTLD_GLOBAL
  10058. #else
  10059. # ifdef DL_GLOBAL
  10060. # define LT_DLGLOBAL DL_GLOBAL
  10061. # else
  10062. # define LT_DLGLOBAL 0
  10063. # endif
  10064. #endif
  10065. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10066. find out it does not work in some platform. */
  10067. #ifndef LT_DLLAZY_OR_NOW
  10068. # ifdef RTLD_LAZY
  10069. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10070. # else
  10071. # ifdef DL_LAZY
  10072. # define LT_DLLAZY_OR_NOW DL_LAZY
  10073. # else
  10074. # ifdef RTLD_NOW
  10075. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10076. # else
  10077. # ifdef DL_NOW
  10078. # define LT_DLLAZY_OR_NOW DL_NOW
  10079. # else
  10080. # define LT_DLLAZY_OR_NOW 0
  10081. # endif
  10082. # endif
  10083. # endif
  10084. # endif
  10085. #endif
  10086. /* When -fvisbility=hidden is used, assume the code has been annotated
  10087. correspondingly for the symbols needed. */
  10088. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10089. int fnord () __attribute__((visibility("default")));
  10090. #endif
  10091. int fnord () { return 42; }
  10092. int main ()
  10093. {
  10094. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10095. int status = $lt_dlunknown;
  10096. if (self)
  10097. {
  10098. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10099. else
  10100. {
  10101. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10102. else puts (dlerror ());
  10103. }
  10104. /* dlclose (self); */
  10105. }
  10106. else
  10107. puts (dlerror ());
  10108. return status;
  10109. }
  10110. _LT_EOF
  10111. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10112. (eval $ac_link) 2>&5
  10113. ac_status=$?
  10114. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10115. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10116. (./conftest; exit; ) >&5 2>/dev/null
  10117. lt_status=$?
  10118. case x$lt_status in
  10119. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10120. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10121. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10122. esac
  10123. else :
  10124. # compilation failed
  10125. lt_cv_dlopen_self=no
  10126. fi
  10127. fi
  10128. rm -fr conftest*
  10129. fi
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10131. $as_echo "$lt_cv_dlopen_self" >&6; }
  10132. if test "x$lt_cv_dlopen_self" = xyes; then
  10133. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10135. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10136. if ${lt_cv_dlopen_self_static+:} false; then :
  10137. $as_echo_n "(cached) " >&6
  10138. else
  10139. if test "$cross_compiling" = yes; then :
  10140. lt_cv_dlopen_self_static=cross
  10141. else
  10142. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10143. lt_status=$lt_dlunknown
  10144. cat > conftest.$ac_ext <<_LT_EOF
  10145. #line $LINENO "configure"
  10146. #include "confdefs.h"
  10147. #if HAVE_DLFCN_H
  10148. #include <dlfcn.h>
  10149. #endif
  10150. #include <stdio.h>
  10151. #ifdef RTLD_GLOBAL
  10152. # define LT_DLGLOBAL RTLD_GLOBAL
  10153. #else
  10154. # ifdef DL_GLOBAL
  10155. # define LT_DLGLOBAL DL_GLOBAL
  10156. # else
  10157. # define LT_DLGLOBAL 0
  10158. # endif
  10159. #endif
  10160. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10161. find out it does not work in some platform. */
  10162. #ifndef LT_DLLAZY_OR_NOW
  10163. # ifdef RTLD_LAZY
  10164. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10165. # else
  10166. # ifdef DL_LAZY
  10167. # define LT_DLLAZY_OR_NOW DL_LAZY
  10168. # else
  10169. # ifdef RTLD_NOW
  10170. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10171. # else
  10172. # ifdef DL_NOW
  10173. # define LT_DLLAZY_OR_NOW DL_NOW
  10174. # else
  10175. # define LT_DLLAZY_OR_NOW 0
  10176. # endif
  10177. # endif
  10178. # endif
  10179. # endif
  10180. #endif
  10181. /* When -fvisbility=hidden is used, assume the code has been annotated
  10182. correspondingly for the symbols needed. */
  10183. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10184. int fnord () __attribute__((visibility("default")));
  10185. #endif
  10186. int fnord () { return 42; }
  10187. int main ()
  10188. {
  10189. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10190. int status = $lt_dlunknown;
  10191. if (self)
  10192. {
  10193. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10194. else
  10195. {
  10196. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10197. else puts (dlerror ());
  10198. }
  10199. /* dlclose (self); */
  10200. }
  10201. else
  10202. puts (dlerror ());
  10203. return status;
  10204. }
  10205. _LT_EOF
  10206. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10207. (eval $ac_link) 2>&5
  10208. ac_status=$?
  10209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10210. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10211. (./conftest; exit; ) >&5 2>/dev/null
  10212. lt_status=$?
  10213. case x$lt_status in
  10214. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10215. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10216. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10217. esac
  10218. else :
  10219. # compilation failed
  10220. lt_cv_dlopen_self_static=no
  10221. fi
  10222. fi
  10223. rm -fr conftest*
  10224. fi
  10225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10226. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10227. fi
  10228. CPPFLAGS="$save_CPPFLAGS"
  10229. LDFLAGS="$save_LDFLAGS"
  10230. LIBS="$save_LIBS"
  10231. ;;
  10232. esac
  10233. case $lt_cv_dlopen_self in
  10234. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10235. *) enable_dlopen_self=unknown ;;
  10236. esac
  10237. case $lt_cv_dlopen_self_static in
  10238. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10239. *) enable_dlopen_self_static=unknown ;;
  10240. esac
  10241. fi
  10242. striplib=
  10243. old_striplib=
  10244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10245. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10246. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10247. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10248. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10250. $as_echo "yes" >&6; }
  10251. else
  10252. # FIXME - insert some real tests, host_os isn't really good enough
  10253. case $host_os in
  10254. darwin*)
  10255. if test -n "$STRIP" ; then
  10256. striplib="$STRIP -x"
  10257. old_striplib="$STRIP -S"
  10258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10259. $as_echo "yes" >&6; }
  10260. else
  10261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10262. $as_echo "no" >&6; }
  10263. fi
  10264. ;;
  10265. *)
  10266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10267. $as_echo "no" >&6; }
  10268. ;;
  10269. esac
  10270. fi
  10271. # Report which library types will actually be built
  10272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10273. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10275. $as_echo "$can_build_shared" >&6; }
  10276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10277. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10278. test "$can_build_shared" = "no" && enable_shared=no
  10279. # On AIX, shared libraries and static libraries use the same namespace, and
  10280. # are all built from PIC.
  10281. case $host_os in
  10282. aix3*)
  10283. test "$enable_shared" = yes && enable_static=no
  10284. if test -n "$RANLIB"; then
  10285. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10286. postinstall_cmds='$RANLIB $lib'
  10287. fi
  10288. ;;
  10289. aix[4-9]*)
  10290. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10291. test "$enable_shared" = yes && enable_static=no
  10292. fi
  10293. ;;
  10294. esac
  10295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10296. $as_echo "$enable_shared" >&6; }
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10298. $as_echo_n "checking whether to build static libraries... " >&6; }
  10299. # Make sure either enable_shared or enable_static is yes.
  10300. test "$enable_shared" = yes || enable_static=yes
  10301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10302. $as_echo "$enable_static" >&6; }
  10303. fi
  10304. ac_ext=cpp
  10305. ac_cpp='$CXXCPP $CPPFLAGS'
  10306. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10307. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10308. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10309. CC="$lt_save_CC"
  10310. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10311. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10312. (test "X$CXX" != "Xg++"))) ; then
  10313. ac_ext=cpp
  10314. ac_cpp='$CXXCPP $CPPFLAGS'
  10315. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10316. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10317. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10319. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10320. if test -z "$CXXCPP"; then
  10321. if ${ac_cv_prog_CXXCPP+:} false; then :
  10322. $as_echo_n "(cached) " >&6
  10323. else
  10324. # Double quotes because CXXCPP needs to be expanded
  10325. for CXXCPP in "$CXX -E" "/lib/cpp"
  10326. do
  10327. ac_preproc_ok=false
  10328. for ac_cxx_preproc_warn_flag in '' yes
  10329. do
  10330. # Use a header file that comes with gcc, so configuring glibc
  10331. # with a fresh cross-compiler works.
  10332. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10333. # <limits.h> exists even on freestanding compilers.
  10334. # On the NeXT, cc -E runs the code through the compiler's parser,
  10335. # not just through cpp. "Syntax error" is here to catch this case.
  10336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10337. /* end confdefs.h. */
  10338. #ifdef __STDC__
  10339. # include <limits.h>
  10340. #else
  10341. # include <assert.h>
  10342. #endif
  10343. Syntax error
  10344. _ACEOF
  10345. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10346. else
  10347. # Broken: fails on valid input.
  10348. continue
  10349. fi
  10350. rm -f conftest.err conftest.i conftest.$ac_ext
  10351. # OK, works on sane cases. Now check whether nonexistent headers
  10352. # can be detected and how.
  10353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10354. /* end confdefs.h. */
  10355. #include <ac_nonexistent.h>
  10356. _ACEOF
  10357. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10358. # Broken: success on invalid input.
  10359. continue
  10360. else
  10361. # Passes both tests.
  10362. ac_preproc_ok=:
  10363. break
  10364. fi
  10365. rm -f conftest.err conftest.i conftest.$ac_ext
  10366. done
  10367. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10368. rm -f conftest.i conftest.err conftest.$ac_ext
  10369. if $ac_preproc_ok; then :
  10370. break
  10371. fi
  10372. done
  10373. ac_cv_prog_CXXCPP=$CXXCPP
  10374. fi
  10375. CXXCPP=$ac_cv_prog_CXXCPP
  10376. else
  10377. ac_cv_prog_CXXCPP=$CXXCPP
  10378. fi
  10379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10380. $as_echo "$CXXCPP" >&6; }
  10381. ac_preproc_ok=false
  10382. for ac_cxx_preproc_warn_flag in '' yes
  10383. do
  10384. # Use a header file that comes with gcc, so configuring glibc
  10385. # with a fresh cross-compiler works.
  10386. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10387. # <limits.h> exists even on freestanding compilers.
  10388. # On the NeXT, cc -E runs the code through the compiler's parser,
  10389. # not just through cpp. "Syntax error" is here to catch this case.
  10390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10391. /* end confdefs.h. */
  10392. #ifdef __STDC__
  10393. # include <limits.h>
  10394. #else
  10395. # include <assert.h>
  10396. #endif
  10397. Syntax error
  10398. _ACEOF
  10399. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10400. else
  10401. # Broken: fails on valid input.
  10402. continue
  10403. fi
  10404. rm -f conftest.err conftest.i conftest.$ac_ext
  10405. # OK, works on sane cases. Now check whether nonexistent headers
  10406. # can be detected and how.
  10407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10408. /* end confdefs.h. */
  10409. #include <ac_nonexistent.h>
  10410. _ACEOF
  10411. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10412. # Broken: success on invalid input.
  10413. continue
  10414. else
  10415. # Passes both tests.
  10416. ac_preproc_ok=:
  10417. break
  10418. fi
  10419. rm -f conftest.err conftest.i conftest.$ac_ext
  10420. done
  10421. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10422. rm -f conftest.i conftest.err conftest.$ac_ext
  10423. if $ac_preproc_ok; then :
  10424. else
  10425. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10426. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10427. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10428. See \`config.log' for more details" "$LINENO" 5; }
  10429. fi
  10430. ac_ext=cpp
  10431. ac_cpp='$CXXCPP $CPPFLAGS'
  10432. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10433. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10434. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10435. else
  10436. _lt_caught_CXX_error=yes
  10437. fi
  10438. ac_ext=cpp
  10439. ac_cpp='$CXXCPP $CPPFLAGS'
  10440. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10441. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10442. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10443. archive_cmds_need_lc_CXX=no
  10444. allow_undefined_flag_CXX=
  10445. always_export_symbols_CXX=no
  10446. archive_expsym_cmds_CXX=
  10447. compiler_needs_object_CXX=no
  10448. export_dynamic_flag_spec_CXX=
  10449. hardcode_direct_CXX=no
  10450. hardcode_direct_absolute_CXX=no
  10451. hardcode_libdir_flag_spec_CXX=
  10452. hardcode_libdir_separator_CXX=
  10453. hardcode_minus_L_CXX=no
  10454. hardcode_shlibpath_var_CXX=unsupported
  10455. hardcode_automatic_CXX=no
  10456. inherit_rpath_CXX=no
  10457. module_cmds_CXX=
  10458. module_expsym_cmds_CXX=
  10459. link_all_deplibs_CXX=unknown
  10460. old_archive_cmds_CXX=$old_archive_cmds
  10461. reload_flag_CXX=$reload_flag
  10462. reload_cmds_CXX=$reload_cmds
  10463. no_undefined_flag_CXX=
  10464. whole_archive_flag_spec_CXX=
  10465. enable_shared_with_static_runtimes_CXX=no
  10466. # Source file extension for C++ test sources.
  10467. ac_ext=cpp
  10468. # Object file extension for compiled C++ test sources.
  10469. objext=o
  10470. objext_CXX=$objext
  10471. # No sense in running all these tests if we already determined that
  10472. # the CXX compiler isn't working. Some variables (like enable_shared)
  10473. # are currently assumed to apply to all compilers on this platform,
  10474. # and will be corrupted by setting them based on a non-working compiler.
  10475. if test "$_lt_caught_CXX_error" != yes; then
  10476. # Code to be used in simple compile tests
  10477. lt_simple_compile_test_code="int some_variable = 0;"
  10478. # Code to be used in simple link tests
  10479. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10480. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10481. # If no C compiler was specified, use CC.
  10482. LTCC=${LTCC-"$CC"}
  10483. # If no C compiler flags were specified, use CFLAGS.
  10484. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10485. # Allow CC to be a program name with arguments.
  10486. compiler=$CC
  10487. # save warnings/boilerplate of simple test code
  10488. ac_outfile=conftest.$ac_objext
  10489. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10490. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10491. _lt_compiler_boilerplate=`cat conftest.err`
  10492. $RM conftest*
  10493. ac_outfile=conftest.$ac_objext
  10494. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10495. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10496. _lt_linker_boilerplate=`cat conftest.err`
  10497. $RM -r conftest*
  10498. # Allow CC to be a program name with arguments.
  10499. lt_save_CC=$CC
  10500. lt_save_CFLAGS=$CFLAGS
  10501. lt_save_LD=$LD
  10502. lt_save_GCC=$GCC
  10503. GCC=$GXX
  10504. lt_save_with_gnu_ld=$with_gnu_ld
  10505. lt_save_path_LD=$lt_cv_path_LD
  10506. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10507. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10508. else
  10509. $as_unset lt_cv_prog_gnu_ld
  10510. fi
  10511. if test -n "${lt_cv_path_LDCXX+set}"; then
  10512. lt_cv_path_LD=$lt_cv_path_LDCXX
  10513. else
  10514. $as_unset lt_cv_path_LD
  10515. fi
  10516. test -z "${LDCXX+set}" || LD=$LDCXX
  10517. CC=${CXX-"c++"}
  10518. CFLAGS=$CXXFLAGS
  10519. compiler=$CC
  10520. compiler_CXX=$CC
  10521. for cc_temp in $compiler""; do
  10522. case $cc_temp in
  10523. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10524. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10525. \-*) ;;
  10526. *) break;;
  10527. esac
  10528. done
  10529. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10530. if test -n "$compiler"; then
  10531. # We don't want -fno-exception when compiling C++ code, so set the
  10532. # no_builtin_flag separately
  10533. if test "$GXX" = yes; then
  10534. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10535. else
  10536. lt_prog_compiler_no_builtin_flag_CXX=
  10537. fi
  10538. if test "$GXX" = yes; then
  10539. # Set up default GNU C++ configuration
  10540. # Check whether --with-gnu-ld was given.
  10541. if test "${with_gnu_ld+set}" = set; then :
  10542. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10543. else
  10544. with_gnu_ld=no
  10545. fi
  10546. ac_prog=ld
  10547. if test "$GCC" = yes; then
  10548. # Check if gcc -print-prog-name=ld gives a path.
  10549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10550. $as_echo_n "checking for ld used by $CC... " >&6; }
  10551. case $host in
  10552. *-*-mingw*)
  10553. # gcc leaves a trailing carriage return which upsets mingw
  10554. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10555. *)
  10556. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10557. esac
  10558. case $ac_prog in
  10559. # Accept absolute paths.
  10560. [\\/]* | ?:[\\/]*)
  10561. re_direlt='/[^/][^/]*/\.\./'
  10562. # Canonicalize the pathname of ld
  10563. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10564. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10565. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10566. done
  10567. test -z "$LD" && LD="$ac_prog"
  10568. ;;
  10569. "")
  10570. # If it fails, then pretend we aren't using GCC.
  10571. ac_prog=ld
  10572. ;;
  10573. *)
  10574. # If it is relative, then search for the first ld in PATH.
  10575. with_gnu_ld=unknown
  10576. ;;
  10577. esac
  10578. elif test "$with_gnu_ld" = yes; then
  10579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10580. $as_echo_n "checking for GNU ld... " >&6; }
  10581. else
  10582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10583. $as_echo_n "checking for non-GNU ld... " >&6; }
  10584. fi
  10585. if ${lt_cv_path_LD+:} false; then :
  10586. $as_echo_n "(cached) " >&6
  10587. else
  10588. if test -z "$LD"; then
  10589. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10590. for ac_dir in $PATH; do
  10591. IFS="$lt_save_ifs"
  10592. test -z "$ac_dir" && ac_dir=.
  10593. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10594. lt_cv_path_LD="$ac_dir/$ac_prog"
  10595. # Check to see if the program is GNU ld. I'd rather use --version,
  10596. # but apparently some variants of GNU ld only accept -v.
  10597. # Break only if it was the GNU/non-GNU ld that we prefer.
  10598. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10599. *GNU* | *'with BFD'*)
  10600. test "$with_gnu_ld" != no && break
  10601. ;;
  10602. *)
  10603. test "$with_gnu_ld" != yes && break
  10604. ;;
  10605. esac
  10606. fi
  10607. done
  10608. IFS="$lt_save_ifs"
  10609. else
  10610. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10611. fi
  10612. fi
  10613. LD="$lt_cv_path_LD"
  10614. if test -n "$LD"; then
  10615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10616. $as_echo "$LD" >&6; }
  10617. else
  10618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10619. $as_echo "no" >&6; }
  10620. fi
  10621. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10623. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10624. if ${lt_cv_prog_gnu_ld+:} false; then :
  10625. $as_echo_n "(cached) " >&6
  10626. else
  10627. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10628. case `$LD -v 2>&1 </dev/null` in
  10629. *GNU* | *'with BFD'*)
  10630. lt_cv_prog_gnu_ld=yes
  10631. ;;
  10632. *)
  10633. lt_cv_prog_gnu_ld=no
  10634. ;;
  10635. esac
  10636. fi
  10637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10638. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10639. with_gnu_ld=$lt_cv_prog_gnu_ld
  10640. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10641. # archiving commands below assume that GNU ld is being used.
  10642. if test "$with_gnu_ld" = yes; then
  10643. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10644. 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'
  10645. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10646. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10647. # If archive_cmds runs LD, not CC, wlarc should be empty
  10648. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10649. # investigate it a little bit more. (MM)
  10650. wlarc='${wl}'
  10651. # ancient GNU ld didn't support --whole-archive et. al.
  10652. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10653. $GREP 'no-whole-archive' > /dev/null; then
  10654. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10655. else
  10656. whole_archive_flag_spec_CXX=
  10657. fi
  10658. else
  10659. with_gnu_ld=no
  10660. wlarc=
  10661. # A generic and very simple default shared library creation
  10662. # command for GNU C++ for the case where it uses the native
  10663. # linker, instead of GNU ld. If possible, this setting should
  10664. # overridden to take advantage of the native linker features on
  10665. # the platform it is being used on.
  10666. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10667. fi
  10668. # Commands to make compiler produce verbose output that lists
  10669. # what "hidden" libraries, object files and flags are used when
  10670. # linking a shared library.
  10671. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10672. else
  10673. GXX=no
  10674. with_gnu_ld=no
  10675. wlarc=
  10676. fi
  10677. # PORTME: fill in a description of your system's C++ link characteristics
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10679. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10680. ld_shlibs_CXX=yes
  10681. case $host_os in
  10682. aix3*)
  10683. # FIXME: insert proper C++ library support
  10684. ld_shlibs_CXX=no
  10685. ;;
  10686. aix[4-9]*)
  10687. if test "$host_cpu" = ia64; then
  10688. # On IA64, the linker does run time linking by default, so we don't
  10689. # have to do anything special.
  10690. aix_use_runtimelinking=no
  10691. exp_sym_flag='-Bexport'
  10692. no_entry_flag=""
  10693. else
  10694. aix_use_runtimelinking=no
  10695. # Test if we are trying to use run time linking or normal
  10696. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10697. # need to do runtime linking.
  10698. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10699. for ld_flag in $LDFLAGS; do
  10700. case $ld_flag in
  10701. *-brtl*)
  10702. aix_use_runtimelinking=yes
  10703. break
  10704. ;;
  10705. esac
  10706. done
  10707. ;;
  10708. esac
  10709. exp_sym_flag='-bexport'
  10710. no_entry_flag='-bnoentry'
  10711. fi
  10712. # When large executables or shared objects are built, AIX ld can
  10713. # have problems creating the table of contents. If linking a library
  10714. # or program results in "error TOC overflow" add -mminimal-toc to
  10715. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10716. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10717. archive_cmds_CXX=''
  10718. hardcode_direct_CXX=yes
  10719. hardcode_direct_absolute_CXX=yes
  10720. hardcode_libdir_separator_CXX=':'
  10721. link_all_deplibs_CXX=yes
  10722. file_list_spec_CXX='${wl}-f,'
  10723. if test "$GXX" = yes; then
  10724. case $host_os in aix4.[012]|aix4.[012].*)
  10725. # We only want to do this on AIX 4.2 and lower, the check
  10726. # below for broken collect2 doesn't work under 4.3+
  10727. collect2name=`${CC} -print-prog-name=collect2`
  10728. if test -f "$collect2name" &&
  10729. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10730. then
  10731. # We have reworked collect2
  10732. :
  10733. else
  10734. # We have old collect2
  10735. hardcode_direct_CXX=unsupported
  10736. # It fails to find uninstalled libraries when the uninstalled
  10737. # path is not listed in the libpath. Setting hardcode_minus_L
  10738. # to unsupported forces relinking
  10739. hardcode_minus_L_CXX=yes
  10740. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10741. hardcode_libdir_separator_CXX=
  10742. fi
  10743. esac
  10744. shared_flag='-shared'
  10745. if test "$aix_use_runtimelinking" = yes; then
  10746. shared_flag="$shared_flag "'${wl}-G'
  10747. fi
  10748. else
  10749. # not using gcc
  10750. if test "$host_cpu" = ia64; then
  10751. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10752. # chokes on -Wl,-G. The following line is correct:
  10753. shared_flag='-G'
  10754. else
  10755. if test "$aix_use_runtimelinking" = yes; then
  10756. shared_flag='${wl}-G'
  10757. else
  10758. shared_flag='${wl}-bM:SRE'
  10759. fi
  10760. fi
  10761. fi
  10762. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10763. # It seems that -bexpall does not export symbols beginning with
  10764. # underscore (_), so it is better to generate a list of symbols to
  10765. # export.
  10766. always_export_symbols_CXX=yes
  10767. if test "$aix_use_runtimelinking" = yes; then
  10768. # Warning - without using the other runtime loading flags (-brtl),
  10769. # -berok will link without error, but may produce a broken library.
  10770. allow_undefined_flag_CXX='-berok'
  10771. # Determine the default libpath from the value encoded in an empty
  10772. # executable.
  10773. if test "${lt_cv_aix_libpath+set}" = set; then
  10774. aix_libpath=$lt_cv_aix_libpath
  10775. else
  10776. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10777. $as_echo_n "(cached) " >&6
  10778. else
  10779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10780. /* end confdefs.h. */
  10781. int
  10782. main ()
  10783. {
  10784. ;
  10785. return 0;
  10786. }
  10787. _ACEOF
  10788. if ac_fn_cxx_try_link "$LINENO"; then :
  10789. lt_aix_libpath_sed='
  10790. /Import File Strings/,/^$/ {
  10791. /^0/ {
  10792. s/^0 *\([^ ]*\) *$/\1/
  10793. p
  10794. }
  10795. }'
  10796. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10797. # Check for a 64-bit object if we didn't find anything.
  10798. if test -z "$lt_cv_aix_libpath__CXX"; then
  10799. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10800. fi
  10801. fi
  10802. rm -f core conftest.err conftest.$ac_objext \
  10803. conftest$ac_exeext conftest.$ac_ext
  10804. if test -z "$lt_cv_aix_libpath__CXX"; then
  10805. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10806. fi
  10807. fi
  10808. aix_libpath=$lt_cv_aix_libpath__CXX
  10809. fi
  10810. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10811. 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"
  10812. else
  10813. if test "$host_cpu" = ia64; then
  10814. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10815. allow_undefined_flag_CXX="-z nodefs"
  10816. 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"
  10817. else
  10818. # Determine the default libpath from the value encoded in an
  10819. # empty executable.
  10820. if test "${lt_cv_aix_libpath+set}" = set; then
  10821. aix_libpath=$lt_cv_aix_libpath
  10822. else
  10823. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10824. $as_echo_n "(cached) " >&6
  10825. else
  10826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10827. /* end confdefs.h. */
  10828. int
  10829. main ()
  10830. {
  10831. ;
  10832. return 0;
  10833. }
  10834. _ACEOF
  10835. if ac_fn_cxx_try_link "$LINENO"; then :
  10836. lt_aix_libpath_sed='
  10837. /Import File Strings/,/^$/ {
  10838. /^0/ {
  10839. s/^0 *\([^ ]*\) *$/\1/
  10840. p
  10841. }
  10842. }'
  10843. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10844. # Check for a 64-bit object if we didn't find anything.
  10845. if test -z "$lt_cv_aix_libpath__CXX"; then
  10846. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10847. fi
  10848. fi
  10849. rm -f core conftest.err conftest.$ac_objext \
  10850. conftest$ac_exeext conftest.$ac_ext
  10851. if test -z "$lt_cv_aix_libpath__CXX"; then
  10852. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10853. fi
  10854. fi
  10855. aix_libpath=$lt_cv_aix_libpath__CXX
  10856. fi
  10857. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10858. # Warning - without using the other run time loading flags,
  10859. # -berok will link without error, but may produce a broken library.
  10860. no_undefined_flag_CXX=' ${wl}-bernotok'
  10861. allow_undefined_flag_CXX=' ${wl}-berok'
  10862. if test "$with_gnu_ld" = yes; then
  10863. # We only use this code for GNU lds that support --whole-archive.
  10864. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10865. else
  10866. # Exported symbols can be pulled into shared objects from archives
  10867. whole_archive_flag_spec_CXX='$convenience'
  10868. fi
  10869. archive_cmds_need_lc_CXX=yes
  10870. # This is similar to how AIX traditionally builds its shared
  10871. # libraries.
  10872. 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'
  10873. fi
  10874. fi
  10875. ;;
  10876. beos*)
  10877. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10878. allow_undefined_flag_CXX=unsupported
  10879. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10880. # support --undefined. This deserves some investigation. FIXME
  10881. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10882. else
  10883. ld_shlibs_CXX=no
  10884. fi
  10885. ;;
  10886. chorus*)
  10887. case $cc_basename in
  10888. *)
  10889. # FIXME: insert proper C++ library support
  10890. ld_shlibs_CXX=no
  10891. ;;
  10892. esac
  10893. ;;
  10894. cygwin* | mingw* | pw32* | cegcc*)
  10895. case $GXX,$cc_basename in
  10896. ,cl* | no,cl*)
  10897. # Native MSVC
  10898. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10899. # no search path for DLLs.
  10900. hardcode_libdir_flag_spec_CXX=' '
  10901. allow_undefined_flag_CXX=unsupported
  10902. always_export_symbols_CXX=yes
  10903. file_list_spec_CXX='@'
  10904. # Tell ltmain to make .lib files, not .a files.
  10905. libext=lib
  10906. # Tell ltmain to make .dll files, not .so files.
  10907. shrext_cmds=".dll"
  10908. # FIXME: Setting linknames here is a bad hack.
  10909. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10910. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10911. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10912. else
  10913. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10914. fi~
  10915. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10916. linknames='
  10917. # The linker will not automatically build a static lib if we build a DLL.
  10918. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  10919. enable_shared_with_static_runtimes_CXX=yes
  10920. # Don't use ranlib
  10921. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  10922. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  10923. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10924. case $lt_outputfile in
  10925. *.exe|*.EXE) ;;
  10926. *)
  10927. lt_outputfile="$lt_outputfile.exe"
  10928. lt_tool_outputfile="$lt_tool_outputfile.exe"
  10929. ;;
  10930. esac~
  10931. func_to_tool_file "$lt_outputfile"~
  10932. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  10933. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10934. $RM "$lt_outputfile.manifest";
  10935. fi'
  10936. ;;
  10937. *)
  10938. # g++
  10939. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10940. # as there is no search path for DLLs.
  10941. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10942. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10943. allow_undefined_flag_CXX=unsupported
  10944. always_export_symbols_CXX=no
  10945. enable_shared_with_static_runtimes_CXX=yes
  10946. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10947. 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'
  10948. # If the export-symbols file already is a .def file (1st line
  10949. # is EXPORTS), use it as is; otherwise, prepend...
  10950. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10951. cp $export_symbols $output_objdir/$soname.def;
  10952. else
  10953. echo EXPORTS > $output_objdir/$soname.def;
  10954. cat $export_symbols >> $output_objdir/$soname.def;
  10955. fi~
  10956. $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'
  10957. else
  10958. ld_shlibs_CXX=no
  10959. fi
  10960. ;;
  10961. esac
  10962. ;;
  10963. darwin* | rhapsody*)
  10964. archive_cmds_need_lc_CXX=no
  10965. hardcode_direct_CXX=no
  10966. hardcode_automatic_CXX=yes
  10967. hardcode_shlibpath_var_CXX=unsupported
  10968. if test "$lt_cv_ld_force_load" = "yes"; then
  10969. 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\"`'
  10970. else
  10971. whole_archive_flag_spec_CXX=''
  10972. fi
  10973. link_all_deplibs_CXX=yes
  10974. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10975. case $cc_basename in
  10976. ifort*) _lt_dar_can_shared=yes ;;
  10977. *) _lt_dar_can_shared=$GCC ;;
  10978. esac
  10979. if test "$_lt_dar_can_shared" = "yes"; then
  10980. output_verbose_link_cmd=func_echo_all
  10981. 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}"
  10982. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10983. 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}"
  10984. 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}"
  10985. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10986. 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}"
  10987. 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}"
  10988. fi
  10989. else
  10990. ld_shlibs_CXX=no
  10991. fi
  10992. ;;
  10993. dgux*)
  10994. case $cc_basename in
  10995. ec++*)
  10996. # FIXME: insert proper C++ library support
  10997. ld_shlibs_CXX=no
  10998. ;;
  10999. ghcx*)
  11000. # Green Hills C++ Compiler
  11001. # FIXME: insert proper C++ library support
  11002. ld_shlibs_CXX=no
  11003. ;;
  11004. *)
  11005. # FIXME: insert proper C++ library support
  11006. ld_shlibs_CXX=no
  11007. ;;
  11008. esac
  11009. ;;
  11010. freebsd2.*)
  11011. # C++ shared libraries reported to be fairly broken before
  11012. # switch to ELF
  11013. ld_shlibs_CXX=no
  11014. ;;
  11015. freebsd-elf*)
  11016. archive_cmds_need_lc_CXX=no
  11017. ;;
  11018. freebsd* | dragonfly*)
  11019. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11020. # conventions
  11021. ld_shlibs_CXX=yes
  11022. ;;
  11023. gnu*)
  11024. ;;
  11025. haiku*)
  11026. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11027. link_all_deplibs_CXX=yes
  11028. ;;
  11029. hpux9*)
  11030. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11031. hardcode_libdir_separator_CXX=:
  11032. export_dynamic_flag_spec_CXX='${wl}-E'
  11033. hardcode_direct_CXX=yes
  11034. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11035. # but as the default
  11036. # location of the library.
  11037. case $cc_basename in
  11038. CC*)
  11039. # FIXME: insert proper C++ library support
  11040. ld_shlibs_CXX=no
  11041. ;;
  11042. aCC*)
  11043. 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'
  11044. # Commands to make compiler produce verbose output that lists
  11045. # what "hidden" libraries, object files and flags are used when
  11046. # linking a shared library.
  11047. #
  11048. # There doesn't appear to be a way to prevent this compiler from
  11049. # explicitly linking system object files so we need to strip them
  11050. # from the output so that they don't get included in the library
  11051. # dependencies.
  11052. 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"'
  11053. ;;
  11054. *)
  11055. if test "$GXX" = yes; then
  11056. 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'
  11057. else
  11058. # FIXME: insert proper C++ library support
  11059. ld_shlibs_CXX=no
  11060. fi
  11061. ;;
  11062. esac
  11063. ;;
  11064. hpux10*|hpux11*)
  11065. if test $with_gnu_ld = no; then
  11066. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11067. hardcode_libdir_separator_CXX=:
  11068. case $host_cpu in
  11069. hppa*64*|ia64*)
  11070. ;;
  11071. *)
  11072. export_dynamic_flag_spec_CXX='${wl}-E'
  11073. ;;
  11074. esac
  11075. fi
  11076. case $host_cpu in
  11077. hppa*64*|ia64*)
  11078. hardcode_direct_CXX=no
  11079. hardcode_shlibpath_var_CXX=no
  11080. ;;
  11081. *)
  11082. hardcode_direct_CXX=yes
  11083. hardcode_direct_absolute_CXX=yes
  11084. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11085. # but as the default
  11086. # location of the library.
  11087. ;;
  11088. esac
  11089. case $cc_basename in
  11090. CC*)
  11091. # FIXME: insert proper C++ library support
  11092. ld_shlibs_CXX=no
  11093. ;;
  11094. aCC*)
  11095. case $host_cpu in
  11096. hppa*64*)
  11097. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11098. ;;
  11099. ia64*)
  11100. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11101. ;;
  11102. *)
  11103. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11104. ;;
  11105. esac
  11106. # Commands to make compiler produce verbose output that lists
  11107. # what "hidden" libraries, object files and flags are used when
  11108. # linking a shared library.
  11109. #
  11110. # There doesn't appear to be a way to prevent this compiler from
  11111. # explicitly linking system object files so we need to strip them
  11112. # from the output so that they don't get included in the library
  11113. # dependencies.
  11114. 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"'
  11115. ;;
  11116. *)
  11117. if test "$GXX" = yes; then
  11118. if test $with_gnu_ld = no; then
  11119. case $host_cpu in
  11120. hppa*64*)
  11121. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11122. ;;
  11123. ia64*)
  11124. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11125. ;;
  11126. *)
  11127. 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'
  11128. ;;
  11129. esac
  11130. fi
  11131. else
  11132. # FIXME: insert proper C++ library support
  11133. ld_shlibs_CXX=no
  11134. fi
  11135. ;;
  11136. esac
  11137. ;;
  11138. interix[3-9]*)
  11139. hardcode_direct_CXX=no
  11140. hardcode_shlibpath_var_CXX=no
  11141. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11142. export_dynamic_flag_spec_CXX='${wl}-E'
  11143. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11144. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11145. # default) and relocated if they conflict, which is a slow very memory
  11146. # consuming and fragmenting process. To avoid this, we pick a random,
  11147. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11148. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11149. 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'
  11150. 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'
  11151. ;;
  11152. irix5* | irix6*)
  11153. case $cc_basename in
  11154. CC*)
  11155. # SGI C++
  11156. 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'
  11157. # Archives containing C++ object files must be created using
  11158. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11159. # necessary to make sure instantiated templates are included
  11160. # in the archive.
  11161. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11162. ;;
  11163. *)
  11164. if test "$GXX" = yes; then
  11165. if test "$with_gnu_ld" = no; then
  11166. 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'
  11167. else
  11168. 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'
  11169. fi
  11170. fi
  11171. link_all_deplibs_CXX=yes
  11172. ;;
  11173. esac
  11174. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11175. hardcode_libdir_separator_CXX=:
  11176. inherit_rpath_CXX=yes
  11177. ;;
  11178. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11179. case $cc_basename in
  11180. KCC*)
  11181. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11182. # KCC will only create a shared library if the output file
  11183. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11184. # to its proper name (with version) after linking.
  11185. 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'
  11186. 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'
  11187. # Commands to make compiler produce verbose output that lists
  11188. # what "hidden" libraries, object files and flags are used when
  11189. # linking a shared library.
  11190. #
  11191. # There doesn't appear to be a way to prevent this compiler from
  11192. # explicitly linking system object files so we need to strip them
  11193. # from the output so that they don't get included in the library
  11194. # dependencies.
  11195. 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"'
  11196. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11197. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11198. # Archives containing C++ object files must be created using
  11199. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11200. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11201. ;;
  11202. icpc* | ecpc* )
  11203. # Intel C++
  11204. with_gnu_ld=yes
  11205. # version 8.0 and above of icpc choke on multiply defined symbols
  11206. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11207. # earlier do not add the objects themselves.
  11208. case `$CC -V 2>&1` in
  11209. *"Version 7."*)
  11210. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11211. 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'
  11212. ;;
  11213. *) # Version 8.0 or newer
  11214. tmp_idyn=
  11215. case $host_cpu in
  11216. ia64*) tmp_idyn=' -i_dynamic';;
  11217. esac
  11218. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11219. 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'
  11220. ;;
  11221. esac
  11222. archive_cmds_need_lc_CXX=no
  11223. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11224. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11225. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11226. ;;
  11227. pgCC* | pgcpp*)
  11228. # Portland Group C++ compiler
  11229. case `$CC -V` in
  11230. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11231. prelink_cmds_CXX='tpldir=Template.dir~
  11232. rm -rf $tpldir~
  11233. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11234. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11235. old_archive_cmds_CXX='tpldir=Template.dir~
  11236. rm -rf $tpldir~
  11237. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11238. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11239. $RANLIB $oldlib'
  11240. archive_cmds_CXX='tpldir=Template.dir~
  11241. rm -rf $tpldir~
  11242. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11243. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11244. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11245. rm -rf $tpldir~
  11246. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11247. $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'
  11248. ;;
  11249. *) # Version 6 and above use weak symbols
  11250. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11251. 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'
  11252. ;;
  11253. esac
  11254. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11255. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11256. 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'
  11257. ;;
  11258. cxx*)
  11259. # Compaq C++
  11260. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11261. 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'
  11262. runpath_var=LD_RUN_PATH
  11263. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11264. hardcode_libdir_separator_CXX=:
  11265. # Commands to make compiler produce verbose output that lists
  11266. # what "hidden" libraries, object files and flags are used when
  11267. # linking a shared library.
  11268. #
  11269. # There doesn't appear to be a way to prevent this compiler from
  11270. # explicitly linking system object files so we need to strip them
  11271. # from the output so that they don't get included in the library
  11272. # dependencies.
  11273. 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'
  11274. ;;
  11275. xl* | mpixl* | bgxl*)
  11276. # IBM XL 8.0 on PPC, with GNU ld
  11277. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11278. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11279. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11280. if test "x$supports_anon_versioning" = xyes; then
  11281. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11282. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11283. echo "local: *; };" >> $output_objdir/$libname.ver~
  11284. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11285. fi
  11286. ;;
  11287. *)
  11288. case `$CC -V 2>&1 | sed 5q` in
  11289. *Sun\ C*)
  11290. # Sun C++ 5.9
  11291. no_undefined_flag_CXX=' -zdefs'
  11292. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11293. 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'
  11294. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11295. 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'
  11296. compiler_needs_object_CXX=yes
  11297. # Not sure whether something based on
  11298. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11299. # would be better.
  11300. output_verbose_link_cmd='func_echo_all'
  11301. # Archives containing C++ object files must be created using
  11302. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11303. # necessary to make sure instantiated templates are included
  11304. # in the archive.
  11305. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11306. ;;
  11307. esac
  11308. ;;
  11309. esac
  11310. ;;
  11311. lynxos*)
  11312. # FIXME: insert proper C++ library support
  11313. ld_shlibs_CXX=no
  11314. ;;
  11315. m88k*)
  11316. # FIXME: insert proper C++ library support
  11317. ld_shlibs_CXX=no
  11318. ;;
  11319. mvs*)
  11320. case $cc_basename in
  11321. cxx*)
  11322. # FIXME: insert proper C++ library support
  11323. ld_shlibs_CXX=no
  11324. ;;
  11325. *)
  11326. # FIXME: insert proper C++ library support
  11327. ld_shlibs_CXX=no
  11328. ;;
  11329. esac
  11330. ;;
  11331. netbsd*)
  11332. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11333. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11334. wlarc=
  11335. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11336. hardcode_direct_CXX=yes
  11337. hardcode_shlibpath_var_CXX=no
  11338. fi
  11339. # Workaround some broken pre-1.5 toolchains
  11340. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11341. ;;
  11342. *nto* | *qnx*)
  11343. ld_shlibs_CXX=yes
  11344. ;;
  11345. openbsd2*)
  11346. # C++ shared libraries are fairly broken
  11347. ld_shlibs_CXX=no
  11348. ;;
  11349. openbsd*)
  11350. if test -f /usr/libexec/ld.so; then
  11351. hardcode_direct_CXX=yes
  11352. hardcode_shlibpath_var_CXX=no
  11353. hardcode_direct_absolute_CXX=yes
  11354. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11355. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11356. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11357. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11358. export_dynamic_flag_spec_CXX='${wl}-E'
  11359. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11360. fi
  11361. output_verbose_link_cmd=func_echo_all
  11362. else
  11363. ld_shlibs_CXX=no
  11364. fi
  11365. ;;
  11366. osf3* | osf4* | osf5*)
  11367. case $cc_basename in
  11368. KCC*)
  11369. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11370. # KCC will only create a shared library if the output file
  11371. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11372. # to its proper name (with version) after linking.
  11373. 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'
  11374. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11375. hardcode_libdir_separator_CXX=:
  11376. # Archives containing C++ object files must be created using
  11377. # the KAI C++ compiler.
  11378. case $host in
  11379. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11380. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11381. esac
  11382. ;;
  11383. RCC*)
  11384. # Rational C++ 2.4.1
  11385. # FIXME: insert proper C++ library support
  11386. ld_shlibs_CXX=no
  11387. ;;
  11388. cxx*)
  11389. case $host in
  11390. osf3*)
  11391. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11392. 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'
  11393. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11394. ;;
  11395. *)
  11396. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11397. 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'
  11398. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11399. echo "-hidden">> $lib.exp~
  11400. $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~
  11401. $RM $lib.exp'
  11402. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11403. ;;
  11404. esac
  11405. hardcode_libdir_separator_CXX=:
  11406. # Commands to make compiler produce verbose output that lists
  11407. # what "hidden" libraries, object files and flags are used when
  11408. # linking a shared library.
  11409. #
  11410. # There doesn't appear to be a way to prevent this compiler from
  11411. # explicitly linking system object files so we need to strip them
  11412. # from the output so that they don't get included in the library
  11413. # dependencies.
  11414. 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"'
  11415. ;;
  11416. *)
  11417. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11418. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11419. case $host in
  11420. osf3*)
  11421. 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'
  11422. ;;
  11423. *)
  11424. 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'
  11425. ;;
  11426. esac
  11427. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11428. hardcode_libdir_separator_CXX=:
  11429. # Commands to make compiler produce verbose output that lists
  11430. # what "hidden" libraries, object files and flags are used when
  11431. # linking a shared library.
  11432. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11433. else
  11434. # FIXME: insert proper C++ library support
  11435. ld_shlibs_CXX=no
  11436. fi
  11437. ;;
  11438. esac
  11439. ;;
  11440. psos*)
  11441. # FIXME: insert proper C++ library support
  11442. ld_shlibs_CXX=no
  11443. ;;
  11444. sunos4*)
  11445. case $cc_basename in
  11446. CC*)
  11447. # Sun C++ 4.x
  11448. # FIXME: insert proper C++ library support
  11449. ld_shlibs_CXX=no
  11450. ;;
  11451. lcc*)
  11452. # Lucid
  11453. # FIXME: insert proper C++ library support
  11454. ld_shlibs_CXX=no
  11455. ;;
  11456. *)
  11457. # FIXME: insert proper C++ library support
  11458. ld_shlibs_CXX=no
  11459. ;;
  11460. esac
  11461. ;;
  11462. solaris*)
  11463. case $cc_basename in
  11464. CC* | sunCC*)
  11465. # Sun C++ 4.2, 5.x and Centerline C++
  11466. archive_cmds_need_lc_CXX=yes
  11467. no_undefined_flag_CXX=' -zdefs'
  11468. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11469. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11470. $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'
  11471. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11472. hardcode_shlibpath_var_CXX=no
  11473. case $host_os in
  11474. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11475. *)
  11476. # The compiler driver will combine and reorder linker options,
  11477. # but understands `-z linker_flag'.
  11478. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11479. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11480. ;;
  11481. esac
  11482. link_all_deplibs_CXX=yes
  11483. output_verbose_link_cmd='func_echo_all'
  11484. # Archives containing C++ object files must be created using
  11485. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11486. # necessary to make sure instantiated templates are included
  11487. # in the archive.
  11488. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11489. ;;
  11490. gcx*)
  11491. # Green Hills C++ Compiler
  11492. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11493. # The C++ compiler must be used to create the archive.
  11494. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11495. ;;
  11496. *)
  11497. # GNU C++ compiler with Solaris linker
  11498. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11499. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11500. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11501. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11502. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11503. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11504. # Commands to make compiler produce verbose output that lists
  11505. # what "hidden" libraries, object files and flags are used when
  11506. # linking a shared library.
  11507. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11508. else
  11509. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11510. # platform.
  11511. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11512. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11513. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11514. # Commands to make compiler produce verbose output that lists
  11515. # what "hidden" libraries, object files and flags are used when
  11516. # linking a shared library.
  11517. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11518. fi
  11519. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11520. case $host_os in
  11521. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11522. *)
  11523. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11524. ;;
  11525. esac
  11526. fi
  11527. ;;
  11528. esac
  11529. ;;
  11530. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11531. no_undefined_flag_CXX='${wl}-z,text'
  11532. archive_cmds_need_lc_CXX=no
  11533. hardcode_shlibpath_var_CXX=no
  11534. runpath_var='LD_RUN_PATH'
  11535. case $cc_basename in
  11536. CC*)
  11537. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11538. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11539. ;;
  11540. *)
  11541. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11542. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11543. ;;
  11544. esac
  11545. ;;
  11546. sysv5* | sco3.2v5* | sco5v6*)
  11547. # Note: We can NOT use -z defs as we might desire, because we do not
  11548. # link with -lc, and that would cause any symbols used from libc to
  11549. # always be unresolved, which means just about no library would
  11550. # ever link correctly. If we're not using GNU ld we use -z text
  11551. # though, which does catch some bad symbols but isn't as heavy-handed
  11552. # as -z defs.
  11553. no_undefined_flag_CXX='${wl}-z,text'
  11554. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11555. archive_cmds_need_lc_CXX=no
  11556. hardcode_shlibpath_var_CXX=no
  11557. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11558. hardcode_libdir_separator_CXX=':'
  11559. link_all_deplibs_CXX=yes
  11560. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11561. runpath_var='LD_RUN_PATH'
  11562. case $cc_basename in
  11563. CC*)
  11564. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11565. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11566. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11567. '"$old_archive_cmds_CXX"
  11568. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11569. '"$reload_cmds_CXX"
  11570. ;;
  11571. *)
  11572. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11573. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11574. ;;
  11575. esac
  11576. ;;
  11577. tandem*)
  11578. case $cc_basename in
  11579. NCC*)
  11580. # NonStop-UX NCC 3.20
  11581. # FIXME: insert proper C++ library support
  11582. ld_shlibs_CXX=no
  11583. ;;
  11584. *)
  11585. # FIXME: insert proper C++ library support
  11586. ld_shlibs_CXX=no
  11587. ;;
  11588. esac
  11589. ;;
  11590. vxworks*)
  11591. # FIXME: insert proper C++ library support
  11592. ld_shlibs_CXX=no
  11593. ;;
  11594. *)
  11595. # FIXME: insert proper C++ library support
  11596. ld_shlibs_CXX=no
  11597. ;;
  11598. esac
  11599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11600. $as_echo "$ld_shlibs_CXX" >&6; }
  11601. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11602. GCC_CXX="$GXX"
  11603. LD_CXX="$LD"
  11604. ## CAVEAT EMPTOR:
  11605. ## There is no encapsulation within the following macros, do not change
  11606. ## the running order or otherwise move them around unless you know exactly
  11607. ## what you are doing...
  11608. # Dependencies to place before and after the object being linked:
  11609. predep_objects_CXX=
  11610. postdep_objects_CXX=
  11611. predeps_CXX=
  11612. postdeps_CXX=
  11613. compiler_lib_search_path_CXX=
  11614. cat > conftest.$ac_ext <<_LT_EOF
  11615. class Foo
  11616. {
  11617. public:
  11618. Foo (void) { a = 0; }
  11619. private:
  11620. int a;
  11621. };
  11622. _LT_EOF
  11623. _lt_libdeps_save_CFLAGS=$CFLAGS
  11624. case "$CC $CFLAGS " in #(
  11625. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11626. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11627. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11628. esac
  11629. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11630. (eval $ac_compile) 2>&5
  11631. ac_status=$?
  11632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11633. test $ac_status = 0; }; then
  11634. # Parse the compiler output and extract the necessary
  11635. # objects, libraries and library flags.
  11636. # Sentinel used to keep track of whether or not we are before
  11637. # the conftest object file.
  11638. pre_test_object_deps_done=no
  11639. for p in `eval "$output_verbose_link_cmd"`; do
  11640. case ${prev}${p} in
  11641. -L* | -R* | -l*)
  11642. # Some compilers place space between "-{L,R}" and the path.
  11643. # Remove the space.
  11644. if test $p = "-L" ||
  11645. test $p = "-R"; then
  11646. prev=$p
  11647. continue
  11648. fi
  11649. # Expand the sysroot to ease extracting the directories later.
  11650. if test -z "$prev"; then
  11651. case $p in
  11652. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11653. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11654. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11655. esac
  11656. fi
  11657. case $p in
  11658. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11659. esac
  11660. if test "$pre_test_object_deps_done" = no; then
  11661. case ${prev} in
  11662. -L | -R)
  11663. # Internal compiler library paths should come after those
  11664. # provided the user. The postdeps already come after the
  11665. # user supplied libs so there is no need to process them.
  11666. if test -z "$compiler_lib_search_path_CXX"; then
  11667. compiler_lib_search_path_CXX="${prev}${p}"
  11668. else
  11669. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11670. fi
  11671. ;;
  11672. # The "-l" case would never come before the object being
  11673. # linked, so don't bother handling this case.
  11674. esac
  11675. else
  11676. if test -z "$postdeps_CXX"; then
  11677. postdeps_CXX="${prev}${p}"
  11678. else
  11679. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11680. fi
  11681. fi
  11682. prev=
  11683. ;;
  11684. *.lto.$objext) ;; # Ignore GCC LTO objects
  11685. *.$objext)
  11686. # This assumes that the test object file only shows up
  11687. # once in the compiler output.
  11688. if test "$p" = "conftest.$objext"; then
  11689. pre_test_object_deps_done=yes
  11690. continue
  11691. fi
  11692. if test "$pre_test_object_deps_done" = no; then
  11693. if test -z "$predep_objects_CXX"; then
  11694. predep_objects_CXX="$p"
  11695. else
  11696. predep_objects_CXX="$predep_objects_CXX $p"
  11697. fi
  11698. else
  11699. if test -z "$postdep_objects_CXX"; then
  11700. postdep_objects_CXX="$p"
  11701. else
  11702. postdep_objects_CXX="$postdep_objects_CXX $p"
  11703. fi
  11704. fi
  11705. ;;
  11706. *) ;; # Ignore the rest.
  11707. esac
  11708. done
  11709. # Clean up.
  11710. rm -f a.out a.exe
  11711. else
  11712. echo "libtool.m4: error: problem compiling CXX test program"
  11713. fi
  11714. $RM -f confest.$objext
  11715. CFLAGS=$_lt_libdeps_save_CFLAGS
  11716. # PORTME: override above test on systems where it is broken
  11717. case $host_os in
  11718. interix[3-9]*)
  11719. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11720. # hack all around it, let's just trust "g++" to DTRT.
  11721. predep_objects_CXX=
  11722. postdep_objects_CXX=
  11723. postdeps_CXX=
  11724. ;;
  11725. linux*)
  11726. case `$CC -V 2>&1 | sed 5q` in
  11727. *Sun\ C*)
  11728. # Sun C++ 5.9
  11729. # The more standards-conforming stlport4 library is
  11730. # incompatible with the Cstd library. Avoid specifying
  11731. # it if it's in CXXFLAGS. Ignore libCrun as
  11732. # -library=stlport4 depends on it.
  11733. case " $CXX $CXXFLAGS " in
  11734. *" -library=stlport4 "*)
  11735. solaris_use_stlport4=yes
  11736. ;;
  11737. esac
  11738. if test "$solaris_use_stlport4" != yes; then
  11739. postdeps_CXX='-library=Cstd -library=Crun'
  11740. fi
  11741. ;;
  11742. esac
  11743. ;;
  11744. solaris*)
  11745. case $cc_basename in
  11746. CC* | sunCC*)
  11747. # The more standards-conforming stlport4 library is
  11748. # incompatible with the Cstd library. Avoid specifying
  11749. # it if it's in CXXFLAGS. Ignore libCrun as
  11750. # -library=stlport4 depends on it.
  11751. case " $CXX $CXXFLAGS " in
  11752. *" -library=stlport4 "*)
  11753. solaris_use_stlport4=yes
  11754. ;;
  11755. esac
  11756. # Adding this requires a known-good setup of shared libraries for
  11757. # Sun compiler versions before 5.6, else PIC objects from an old
  11758. # archive will be linked into the output, leading to subtle bugs.
  11759. if test "$solaris_use_stlport4" != yes; then
  11760. postdeps_CXX='-library=Cstd -library=Crun'
  11761. fi
  11762. ;;
  11763. esac
  11764. ;;
  11765. esac
  11766. case " $postdeps_CXX " in
  11767. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11768. esac
  11769. compiler_lib_search_dirs_CXX=
  11770. if test -n "${compiler_lib_search_path_CXX}"; then
  11771. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11772. fi
  11773. lt_prog_compiler_wl_CXX=
  11774. lt_prog_compiler_pic_CXX=
  11775. lt_prog_compiler_static_CXX=
  11776. # C++ specific cases for pic, static, wl, etc.
  11777. if test "$GXX" = yes; then
  11778. lt_prog_compiler_wl_CXX='-Wl,'
  11779. lt_prog_compiler_static_CXX='-static'
  11780. case $host_os in
  11781. aix*)
  11782. # All AIX code is PIC.
  11783. if test "$host_cpu" = ia64; then
  11784. # AIX 5 now supports IA64 processor
  11785. lt_prog_compiler_static_CXX='-Bstatic'
  11786. fi
  11787. ;;
  11788. amigaos*)
  11789. case $host_cpu in
  11790. powerpc)
  11791. # see comment about AmigaOS4 .so support
  11792. lt_prog_compiler_pic_CXX='-fPIC'
  11793. ;;
  11794. m68k)
  11795. # FIXME: we need at least 68020 code to build shared libraries, but
  11796. # adding the `-m68020' flag to GCC prevents building anything better,
  11797. # like `-m68040'.
  11798. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11799. ;;
  11800. esac
  11801. ;;
  11802. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11803. # PIC is the default for these OSes.
  11804. ;;
  11805. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11806. # This hack is so that the source file can tell whether it is being
  11807. # built for inclusion in a dll (and should export symbols for example).
  11808. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11809. # (--disable-auto-import) libraries
  11810. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11811. ;;
  11812. darwin* | rhapsody*)
  11813. # PIC is the default on this platform
  11814. # Common symbols not allowed in MH_DYLIB files
  11815. lt_prog_compiler_pic_CXX='-fno-common'
  11816. ;;
  11817. *djgpp*)
  11818. # DJGPP does not support shared libraries at all
  11819. lt_prog_compiler_pic_CXX=
  11820. ;;
  11821. haiku*)
  11822. # PIC is the default for Haiku.
  11823. # The "-static" flag exists, but is broken.
  11824. lt_prog_compiler_static_CXX=
  11825. ;;
  11826. interix[3-9]*)
  11827. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11828. # Instead, we relocate shared libraries at runtime.
  11829. ;;
  11830. sysv4*MP*)
  11831. if test -d /usr/nec; then
  11832. lt_prog_compiler_pic_CXX=-Kconform_pic
  11833. fi
  11834. ;;
  11835. hpux*)
  11836. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11837. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11838. # sets the default TLS model and affects inlining.
  11839. case $host_cpu in
  11840. hppa*64*)
  11841. ;;
  11842. *)
  11843. lt_prog_compiler_pic_CXX='-fPIC'
  11844. ;;
  11845. esac
  11846. ;;
  11847. *qnx* | *nto*)
  11848. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11849. # it will coredump.
  11850. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11851. ;;
  11852. *)
  11853. lt_prog_compiler_pic_CXX='-fPIC'
  11854. ;;
  11855. esac
  11856. else
  11857. case $host_os in
  11858. aix[4-9]*)
  11859. # All AIX code is PIC.
  11860. if test "$host_cpu" = ia64; then
  11861. # AIX 5 now supports IA64 processor
  11862. lt_prog_compiler_static_CXX='-Bstatic'
  11863. else
  11864. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11865. fi
  11866. ;;
  11867. chorus*)
  11868. case $cc_basename in
  11869. cxch68*)
  11870. # Green Hills C++ Compiler
  11871. # _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"
  11872. ;;
  11873. esac
  11874. ;;
  11875. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11876. # This hack is so that the source file can tell whether it is being
  11877. # built for inclusion in a dll (and should export symbols for example).
  11878. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11879. ;;
  11880. dgux*)
  11881. case $cc_basename in
  11882. ec++*)
  11883. lt_prog_compiler_pic_CXX='-KPIC'
  11884. ;;
  11885. ghcx*)
  11886. # Green Hills C++ Compiler
  11887. lt_prog_compiler_pic_CXX='-pic'
  11888. ;;
  11889. *)
  11890. ;;
  11891. esac
  11892. ;;
  11893. freebsd* | dragonfly*)
  11894. # FreeBSD uses GNU C++
  11895. ;;
  11896. hpux9* | hpux10* | hpux11*)
  11897. case $cc_basename in
  11898. CC*)
  11899. lt_prog_compiler_wl_CXX='-Wl,'
  11900. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11901. if test "$host_cpu" != ia64; then
  11902. lt_prog_compiler_pic_CXX='+Z'
  11903. fi
  11904. ;;
  11905. aCC*)
  11906. lt_prog_compiler_wl_CXX='-Wl,'
  11907. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11908. case $host_cpu in
  11909. hppa*64*|ia64*)
  11910. # +Z the default
  11911. ;;
  11912. *)
  11913. lt_prog_compiler_pic_CXX='+Z'
  11914. ;;
  11915. esac
  11916. ;;
  11917. *)
  11918. ;;
  11919. esac
  11920. ;;
  11921. interix*)
  11922. # This is c89, which is MS Visual C++ (no shared libs)
  11923. # Anyone wants to do a port?
  11924. ;;
  11925. irix5* | irix6* | nonstopux*)
  11926. case $cc_basename in
  11927. CC*)
  11928. lt_prog_compiler_wl_CXX='-Wl,'
  11929. lt_prog_compiler_static_CXX='-non_shared'
  11930. # CC pic flag -KPIC is the default.
  11931. ;;
  11932. *)
  11933. ;;
  11934. esac
  11935. ;;
  11936. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11937. case $cc_basename in
  11938. KCC*)
  11939. # KAI C++ Compiler
  11940. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11941. lt_prog_compiler_pic_CXX='-fPIC'
  11942. ;;
  11943. ecpc* )
  11944. # old Intel C++ for x86_64 which still supported -KPIC.
  11945. lt_prog_compiler_wl_CXX='-Wl,'
  11946. lt_prog_compiler_pic_CXX='-KPIC'
  11947. lt_prog_compiler_static_CXX='-static'
  11948. ;;
  11949. icpc* )
  11950. # Intel C++, used to be incompatible with GCC.
  11951. # ICC 10 doesn't accept -KPIC any more.
  11952. lt_prog_compiler_wl_CXX='-Wl,'
  11953. lt_prog_compiler_pic_CXX='-fPIC'
  11954. lt_prog_compiler_static_CXX='-static'
  11955. ;;
  11956. pgCC* | pgcpp*)
  11957. # Portland Group C++ compiler
  11958. lt_prog_compiler_wl_CXX='-Wl,'
  11959. lt_prog_compiler_pic_CXX='-fpic'
  11960. lt_prog_compiler_static_CXX='-Bstatic'
  11961. ;;
  11962. cxx*)
  11963. # Compaq C++
  11964. # Make sure the PIC flag is empty. It appears that all Alpha
  11965. # Linux and Compaq Tru64 Unix objects are PIC.
  11966. lt_prog_compiler_pic_CXX=
  11967. lt_prog_compiler_static_CXX='-non_shared'
  11968. ;;
  11969. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11970. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11971. lt_prog_compiler_wl_CXX='-Wl,'
  11972. lt_prog_compiler_pic_CXX='-qpic'
  11973. lt_prog_compiler_static_CXX='-qstaticlink'
  11974. ;;
  11975. *)
  11976. case `$CC -V 2>&1 | sed 5q` in
  11977. *Sun\ C*)
  11978. # Sun C++ 5.9
  11979. lt_prog_compiler_pic_CXX='-KPIC'
  11980. lt_prog_compiler_static_CXX='-Bstatic'
  11981. lt_prog_compiler_wl_CXX='-Qoption ld '
  11982. ;;
  11983. esac
  11984. ;;
  11985. esac
  11986. ;;
  11987. lynxos*)
  11988. ;;
  11989. m88k*)
  11990. ;;
  11991. mvs*)
  11992. case $cc_basename in
  11993. cxx*)
  11994. lt_prog_compiler_pic_CXX='-W c,exportall'
  11995. ;;
  11996. *)
  11997. ;;
  11998. esac
  11999. ;;
  12000. netbsd* | netbsdelf*-gnu)
  12001. ;;
  12002. *qnx* | *nto*)
  12003. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12004. # it will coredump.
  12005. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12006. ;;
  12007. osf3* | osf4* | osf5*)
  12008. case $cc_basename in
  12009. KCC*)
  12010. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12011. ;;
  12012. RCC*)
  12013. # Rational C++ 2.4.1
  12014. lt_prog_compiler_pic_CXX='-pic'
  12015. ;;
  12016. cxx*)
  12017. # Digital/Compaq C++
  12018. lt_prog_compiler_wl_CXX='-Wl,'
  12019. # Make sure the PIC flag is empty. It appears that all Alpha
  12020. # Linux and Compaq Tru64 Unix objects are PIC.
  12021. lt_prog_compiler_pic_CXX=
  12022. lt_prog_compiler_static_CXX='-non_shared'
  12023. ;;
  12024. *)
  12025. ;;
  12026. esac
  12027. ;;
  12028. psos*)
  12029. ;;
  12030. solaris*)
  12031. case $cc_basename in
  12032. CC* | sunCC*)
  12033. # Sun C++ 4.2, 5.x and Centerline C++
  12034. lt_prog_compiler_pic_CXX='-KPIC'
  12035. lt_prog_compiler_static_CXX='-Bstatic'
  12036. lt_prog_compiler_wl_CXX='-Qoption ld '
  12037. ;;
  12038. gcx*)
  12039. # Green Hills C++ Compiler
  12040. lt_prog_compiler_pic_CXX='-PIC'
  12041. ;;
  12042. *)
  12043. ;;
  12044. esac
  12045. ;;
  12046. sunos4*)
  12047. case $cc_basename in
  12048. CC*)
  12049. # Sun C++ 4.x
  12050. lt_prog_compiler_pic_CXX='-pic'
  12051. lt_prog_compiler_static_CXX='-Bstatic'
  12052. ;;
  12053. lcc*)
  12054. # Lucid
  12055. lt_prog_compiler_pic_CXX='-pic'
  12056. ;;
  12057. *)
  12058. ;;
  12059. esac
  12060. ;;
  12061. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12062. case $cc_basename in
  12063. CC*)
  12064. lt_prog_compiler_wl_CXX='-Wl,'
  12065. lt_prog_compiler_pic_CXX='-KPIC'
  12066. lt_prog_compiler_static_CXX='-Bstatic'
  12067. ;;
  12068. esac
  12069. ;;
  12070. tandem*)
  12071. case $cc_basename in
  12072. NCC*)
  12073. # NonStop-UX NCC 3.20
  12074. lt_prog_compiler_pic_CXX='-KPIC'
  12075. ;;
  12076. *)
  12077. ;;
  12078. esac
  12079. ;;
  12080. vxworks*)
  12081. ;;
  12082. *)
  12083. lt_prog_compiler_can_build_shared_CXX=no
  12084. ;;
  12085. esac
  12086. fi
  12087. case $host_os in
  12088. # For platforms which do not support PIC, -DPIC is meaningless:
  12089. *djgpp*)
  12090. lt_prog_compiler_pic_CXX=
  12091. ;;
  12092. *)
  12093. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12094. ;;
  12095. esac
  12096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12097. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12098. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12099. $as_echo_n "(cached) " >&6
  12100. else
  12101. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12102. fi
  12103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12104. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12105. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12106. #
  12107. # Check to make sure the PIC flag actually works.
  12108. #
  12109. if test -n "$lt_prog_compiler_pic_CXX"; then
  12110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12111. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12112. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12113. $as_echo_n "(cached) " >&6
  12114. else
  12115. lt_cv_prog_compiler_pic_works_CXX=no
  12116. ac_outfile=conftest.$ac_objext
  12117. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12118. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12119. # Insert the option either (1) after the last *FLAGS variable, or
  12120. # (2) before a word containing "conftest.", or (3) at the end.
  12121. # Note that $ac_compile itself does not contain backslashes and begins
  12122. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12123. # The option is referenced via a variable to avoid confusing sed.
  12124. lt_compile=`echo "$ac_compile" | $SED \
  12125. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12126. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12127. -e 's:$: $lt_compiler_flag:'`
  12128. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12129. (eval "$lt_compile" 2>conftest.err)
  12130. ac_status=$?
  12131. cat conftest.err >&5
  12132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12133. if (exit $ac_status) && test -s "$ac_outfile"; then
  12134. # The compiler can only warn and ignore the option if not recognized
  12135. # So say no if there are warnings other than the usual output.
  12136. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12137. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12138. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12139. lt_cv_prog_compiler_pic_works_CXX=yes
  12140. fi
  12141. fi
  12142. $RM conftest*
  12143. fi
  12144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12145. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12146. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12147. case $lt_prog_compiler_pic_CXX in
  12148. "" | " "*) ;;
  12149. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12150. esac
  12151. else
  12152. lt_prog_compiler_pic_CXX=
  12153. lt_prog_compiler_can_build_shared_CXX=no
  12154. fi
  12155. fi
  12156. #
  12157. # Check to make sure the static flag actually works.
  12158. #
  12159. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12161. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12162. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12163. $as_echo_n "(cached) " >&6
  12164. else
  12165. lt_cv_prog_compiler_static_works_CXX=no
  12166. save_LDFLAGS="$LDFLAGS"
  12167. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12168. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12169. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12170. # The linker can only warn and ignore the option if not recognized
  12171. # So say no if there are warnings
  12172. if test -s conftest.err; then
  12173. # Append any errors to the config.log.
  12174. cat conftest.err 1>&5
  12175. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12176. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12177. if diff conftest.exp conftest.er2 >/dev/null; then
  12178. lt_cv_prog_compiler_static_works_CXX=yes
  12179. fi
  12180. else
  12181. lt_cv_prog_compiler_static_works_CXX=yes
  12182. fi
  12183. fi
  12184. $RM -r conftest*
  12185. LDFLAGS="$save_LDFLAGS"
  12186. fi
  12187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12188. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12189. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12190. :
  12191. else
  12192. lt_prog_compiler_static_CXX=
  12193. fi
  12194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12195. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12196. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12197. $as_echo_n "(cached) " >&6
  12198. else
  12199. lt_cv_prog_compiler_c_o_CXX=no
  12200. $RM -r conftest 2>/dev/null
  12201. mkdir conftest
  12202. cd conftest
  12203. mkdir out
  12204. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12205. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12206. # Insert the option either (1) after the last *FLAGS variable, or
  12207. # (2) before a word containing "conftest.", or (3) at the end.
  12208. # Note that $ac_compile itself does not contain backslashes and begins
  12209. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12210. lt_compile=`echo "$ac_compile" | $SED \
  12211. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12212. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12213. -e 's:$: $lt_compiler_flag:'`
  12214. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12215. (eval "$lt_compile" 2>out/conftest.err)
  12216. ac_status=$?
  12217. cat out/conftest.err >&5
  12218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12219. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12220. then
  12221. # The compiler can only warn and ignore the option if not recognized
  12222. # So say no if there are warnings
  12223. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12224. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12225. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12226. lt_cv_prog_compiler_c_o_CXX=yes
  12227. fi
  12228. fi
  12229. chmod u+w . 2>&5
  12230. $RM conftest*
  12231. # SGI C++ compiler will create directory out/ii_files/ for
  12232. # template instantiation
  12233. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12234. $RM out/* && rmdir out
  12235. cd ..
  12236. $RM -r conftest
  12237. $RM conftest*
  12238. fi
  12239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12240. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12242. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12243. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12244. $as_echo_n "(cached) " >&6
  12245. else
  12246. lt_cv_prog_compiler_c_o_CXX=no
  12247. $RM -r conftest 2>/dev/null
  12248. mkdir conftest
  12249. cd conftest
  12250. mkdir out
  12251. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12252. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12253. # Insert the option either (1) after the last *FLAGS variable, or
  12254. # (2) before a word containing "conftest.", or (3) at the end.
  12255. # Note that $ac_compile itself does not contain backslashes and begins
  12256. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12257. lt_compile=`echo "$ac_compile" | $SED \
  12258. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12259. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12260. -e 's:$: $lt_compiler_flag:'`
  12261. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12262. (eval "$lt_compile" 2>out/conftest.err)
  12263. ac_status=$?
  12264. cat out/conftest.err >&5
  12265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12266. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12267. then
  12268. # The compiler can only warn and ignore the option if not recognized
  12269. # So say no if there are warnings
  12270. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12271. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12272. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12273. lt_cv_prog_compiler_c_o_CXX=yes
  12274. fi
  12275. fi
  12276. chmod u+w . 2>&5
  12277. $RM conftest*
  12278. # SGI C++ compiler will create directory out/ii_files/ for
  12279. # template instantiation
  12280. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12281. $RM out/* && rmdir out
  12282. cd ..
  12283. $RM -r conftest
  12284. $RM conftest*
  12285. fi
  12286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12287. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12288. hard_links="nottested"
  12289. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12290. # do not overwrite the value of need_locks provided by the user
  12291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12292. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12293. hard_links=yes
  12294. $RM conftest*
  12295. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12296. touch conftest.a
  12297. ln conftest.a conftest.b 2>&5 || hard_links=no
  12298. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12300. $as_echo "$hard_links" >&6; }
  12301. if test "$hard_links" = no; then
  12302. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12303. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12304. need_locks=warn
  12305. fi
  12306. else
  12307. need_locks=no
  12308. fi
  12309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12310. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12311. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12312. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12313. case $host_os in
  12314. aix[4-9]*)
  12315. # If we're using GNU nm, then we don't want the "-C" option.
  12316. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12317. # Also, AIX nm treats weak defined symbols like other global defined
  12318. # symbols, whereas GNU nm marks them as "W".
  12319. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12320. 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'
  12321. else
  12322. 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'
  12323. fi
  12324. ;;
  12325. pw32*)
  12326. export_symbols_cmds_CXX="$ltdll_cmds"
  12327. ;;
  12328. cygwin* | mingw* | cegcc*)
  12329. case $cc_basename in
  12330. cl*)
  12331. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12332. ;;
  12333. *)
  12334. 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'
  12335. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12336. ;;
  12337. esac
  12338. ;;
  12339. linux* | k*bsd*-gnu | gnu*)
  12340. link_all_deplibs_CXX=no
  12341. ;;
  12342. *)
  12343. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12344. ;;
  12345. esac
  12346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12347. $as_echo "$ld_shlibs_CXX" >&6; }
  12348. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12349. with_gnu_ld_CXX=$with_gnu_ld
  12350. #
  12351. # Do we need to explicitly link libc?
  12352. #
  12353. case "x$archive_cmds_need_lc_CXX" in
  12354. x|xyes)
  12355. # Assume -lc should be added
  12356. archive_cmds_need_lc_CXX=yes
  12357. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12358. case $archive_cmds_CXX in
  12359. *'~'*)
  12360. # FIXME: we may have to deal with multi-command sequences.
  12361. ;;
  12362. '$CC '*)
  12363. # Test whether the compiler implicitly links with -lc since on some
  12364. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12365. # to ld, don't add -lc before -lgcc.
  12366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12367. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12368. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12369. $as_echo_n "(cached) " >&6
  12370. else
  12371. $RM conftest*
  12372. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12373. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12374. (eval $ac_compile) 2>&5
  12375. ac_status=$?
  12376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12377. test $ac_status = 0; } 2>conftest.err; then
  12378. soname=conftest
  12379. lib=conftest
  12380. libobjs=conftest.$ac_objext
  12381. deplibs=
  12382. wl=$lt_prog_compiler_wl_CXX
  12383. pic_flag=$lt_prog_compiler_pic_CXX
  12384. compiler_flags=-v
  12385. linker_flags=-v
  12386. verstring=
  12387. output_objdir=.
  12388. libname=conftest
  12389. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12390. allow_undefined_flag_CXX=
  12391. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12392. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12393. ac_status=$?
  12394. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12395. test $ac_status = 0; }
  12396. then
  12397. lt_cv_archive_cmds_need_lc_CXX=no
  12398. else
  12399. lt_cv_archive_cmds_need_lc_CXX=yes
  12400. fi
  12401. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12402. else
  12403. cat conftest.err 1>&5
  12404. fi
  12405. $RM conftest*
  12406. fi
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12408. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12409. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12410. ;;
  12411. esac
  12412. fi
  12413. ;;
  12414. esac
  12415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12416. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12417. library_names_spec=
  12418. libname_spec='lib$name'
  12419. soname_spec=
  12420. shrext_cmds=".so"
  12421. postinstall_cmds=
  12422. postuninstall_cmds=
  12423. finish_cmds=
  12424. finish_eval=
  12425. shlibpath_var=
  12426. shlibpath_overrides_runpath=unknown
  12427. version_type=none
  12428. dynamic_linker="$host_os ld.so"
  12429. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12430. need_lib_prefix=unknown
  12431. hardcode_into_libs=no
  12432. # when you set need_version to no, make sure it does not cause -set_version
  12433. # flags to be left without arguments
  12434. need_version=unknown
  12435. case $host_os in
  12436. aix3*)
  12437. version_type=linux # correct to gnu/linux during the next big refactor
  12438. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12439. shlibpath_var=LIBPATH
  12440. # AIX 3 has no versioning support, so we append a major version to the name.
  12441. soname_spec='${libname}${release}${shared_ext}$major'
  12442. ;;
  12443. aix[4-9]*)
  12444. version_type=linux # correct to gnu/linux during the next big refactor
  12445. need_lib_prefix=no
  12446. need_version=no
  12447. hardcode_into_libs=yes
  12448. if test "$host_cpu" = ia64; then
  12449. # AIX 5 supports IA64
  12450. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12451. shlibpath_var=LD_LIBRARY_PATH
  12452. else
  12453. # With GCC up to 2.95.x, collect2 would create an import file
  12454. # for dependence libraries. The import file would start with
  12455. # the line `#! .'. This would cause the generated library to
  12456. # depend on `.', always an invalid library. This was fixed in
  12457. # development snapshots of GCC prior to 3.0.
  12458. case $host_os in
  12459. aix4 | aix4.[01] | aix4.[01].*)
  12460. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12461. echo ' yes '
  12462. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12463. :
  12464. else
  12465. can_build_shared=no
  12466. fi
  12467. ;;
  12468. esac
  12469. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12470. # soname into executable. Probably we can add versioning support to
  12471. # collect2, so additional links can be useful in future.
  12472. if test "$aix_use_runtimelinking" = yes; then
  12473. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12474. # instead of lib<name>.a to let people know that these are not
  12475. # typical AIX shared libraries.
  12476. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12477. else
  12478. # We preserve .a as extension for shared libraries through AIX4.2
  12479. # and later when we are not doing run time linking.
  12480. library_names_spec='${libname}${release}.a $libname.a'
  12481. soname_spec='${libname}${release}${shared_ext}$major'
  12482. fi
  12483. shlibpath_var=LIBPATH
  12484. fi
  12485. ;;
  12486. amigaos*)
  12487. case $host_cpu in
  12488. powerpc)
  12489. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12490. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12491. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12492. ;;
  12493. m68k)
  12494. library_names_spec='$libname.ixlibrary $libname.a'
  12495. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12496. 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'
  12497. ;;
  12498. esac
  12499. ;;
  12500. beos*)
  12501. library_names_spec='${libname}${shared_ext}'
  12502. dynamic_linker="$host_os ld.so"
  12503. shlibpath_var=LIBRARY_PATH
  12504. ;;
  12505. bsdi[45]*)
  12506. version_type=linux # correct to gnu/linux during the next big refactor
  12507. need_version=no
  12508. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12509. soname_spec='${libname}${release}${shared_ext}$major'
  12510. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12511. shlibpath_var=LD_LIBRARY_PATH
  12512. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12513. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12514. # the default ld.so.conf also contains /usr/contrib/lib and
  12515. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12516. # libtool to hard-code these into programs
  12517. ;;
  12518. cygwin* | mingw* | pw32* | cegcc*)
  12519. version_type=windows
  12520. shrext_cmds=".dll"
  12521. need_version=no
  12522. need_lib_prefix=no
  12523. case $GCC,$cc_basename in
  12524. yes,*)
  12525. # gcc
  12526. library_names_spec='$libname.dll.a'
  12527. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12528. postinstall_cmds='base_file=`basename \${file}`~
  12529. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12530. dldir=$destdir/`dirname \$dlpath`~
  12531. test -d \$dldir || mkdir -p \$dldir~
  12532. $install_prog $dir/$dlname \$dldir/$dlname~
  12533. chmod a+x \$dldir/$dlname~
  12534. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12535. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12536. fi'
  12537. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12538. dlpath=$dir/\$dldll~
  12539. $RM \$dlpath'
  12540. shlibpath_overrides_runpath=yes
  12541. case $host_os in
  12542. cygwin*)
  12543. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12544. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12545. ;;
  12546. mingw* | cegcc*)
  12547. # MinGW DLLs use traditional 'lib' prefix
  12548. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12549. ;;
  12550. pw32*)
  12551. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12552. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12553. ;;
  12554. esac
  12555. dynamic_linker='Win32 ld.exe'
  12556. ;;
  12557. *,cl*)
  12558. # Native MSVC
  12559. libname_spec='$name'
  12560. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12561. library_names_spec='${libname}.dll.lib'
  12562. case $build_os in
  12563. mingw*)
  12564. sys_lib_search_path_spec=
  12565. lt_save_ifs=$IFS
  12566. IFS=';'
  12567. for lt_path in $LIB
  12568. do
  12569. IFS=$lt_save_ifs
  12570. # Let DOS variable expansion print the short 8.3 style file name.
  12571. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12572. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12573. done
  12574. IFS=$lt_save_ifs
  12575. # Convert to MSYS style.
  12576. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12577. ;;
  12578. cygwin*)
  12579. # Convert to unix form, then to dos form, then back to unix form
  12580. # but this time dos style (no spaces!) so that the unix form looks
  12581. # like /cygdrive/c/PROGRA~1:/cygdr...
  12582. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12583. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12584. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12585. ;;
  12586. *)
  12587. sys_lib_search_path_spec="$LIB"
  12588. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12589. # It is most probably a Windows format PATH.
  12590. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12591. else
  12592. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12593. fi
  12594. # FIXME: find the short name or the path components, as spaces are
  12595. # common. (e.g. "Program Files" -> "PROGRA~1")
  12596. ;;
  12597. esac
  12598. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12599. postinstall_cmds='base_file=`basename \${file}`~
  12600. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12601. dldir=$destdir/`dirname \$dlpath`~
  12602. test -d \$dldir || mkdir -p \$dldir~
  12603. $install_prog $dir/$dlname \$dldir/$dlname'
  12604. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12605. dlpath=$dir/\$dldll~
  12606. $RM \$dlpath'
  12607. shlibpath_overrides_runpath=yes
  12608. dynamic_linker='Win32 link.exe'
  12609. ;;
  12610. *)
  12611. # Assume MSVC wrapper
  12612. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12613. dynamic_linker='Win32 ld.exe'
  12614. ;;
  12615. esac
  12616. # FIXME: first we should search . and the directory the executable is in
  12617. shlibpath_var=PATH
  12618. ;;
  12619. darwin* | rhapsody*)
  12620. dynamic_linker="$host_os dyld"
  12621. version_type=darwin
  12622. need_lib_prefix=no
  12623. need_version=no
  12624. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12625. soname_spec='${libname}${release}${major}$shared_ext'
  12626. shlibpath_overrides_runpath=yes
  12627. shlibpath_var=DYLD_LIBRARY_PATH
  12628. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12629. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12630. ;;
  12631. dgux*)
  12632. version_type=linux # correct to gnu/linux during the next big refactor
  12633. need_lib_prefix=no
  12634. need_version=no
  12635. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12636. soname_spec='${libname}${release}${shared_ext}$major'
  12637. shlibpath_var=LD_LIBRARY_PATH
  12638. ;;
  12639. freebsd* | dragonfly*)
  12640. # DragonFly does not have aout. When/if they implement a new
  12641. # versioning mechanism, adjust this.
  12642. if test -x /usr/bin/objformat; then
  12643. objformat=`/usr/bin/objformat`
  12644. else
  12645. case $host_os in
  12646. freebsd[23].*) objformat=aout ;;
  12647. *) objformat=elf ;;
  12648. esac
  12649. fi
  12650. version_type=freebsd-$objformat
  12651. case $version_type in
  12652. freebsd-elf*)
  12653. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12654. need_version=no
  12655. need_lib_prefix=no
  12656. ;;
  12657. freebsd-*)
  12658. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12659. need_version=yes
  12660. ;;
  12661. esac
  12662. shlibpath_var=LD_LIBRARY_PATH
  12663. case $host_os in
  12664. freebsd2.*)
  12665. shlibpath_overrides_runpath=yes
  12666. ;;
  12667. freebsd3.[01]* | freebsdelf3.[01]*)
  12668. shlibpath_overrides_runpath=yes
  12669. hardcode_into_libs=yes
  12670. ;;
  12671. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12672. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12673. shlibpath_overrides_runpath=no
  12674. hardcode_into_libs=yes
  12675. ;;
  12676. *) # from 4.6 on, and DragonFly
  12677. shlibpath_overrides_runpath=yes
  12678. hardcode_into_libs=yes
  12679. ;;
  12680. esac
  12681. ;;
  12682. gnu*)
  12683. version_type=linux # correct to gnu/linux during the next big refactor
  12684. need_lib_prefix=no
  12685. need_version=no
  12686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12687. soname_spec='${libname}${release}${shared_ext}$major'
  12688. shlibpath_var=LD_LIBRARY_PATH
  12689. shlibpath_overrides_runpath=no
  12690. hardcode_into_libs=yes
  12691. ;;
  12692. haiku*)
  12693. version_type=linux # correct to gnu/linux during the next big refactor
  12694. need_lib_prefix=no
  12695. need_version=no
  12696. dynamic_linker="$host_os runtime_loader"
  12697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12698. soname_spec='${libname}${release}${shared_ext}$major'
  12699. shlibpath_var=LIBRARY_PATH
  12700. shlibpath_overrides_runpath=yes
  12701. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12702. hardcode_into_libs=yes
  12703. ;;
  12704. hpux9* | hpux10* | hpux11*)
  12705. # Give a soname corresponding to the major version so that dld.sl refuses to
  12706. # link against other versions.
  12707. version_type=sunos
  12708. need_lib_prefix=no
  12709. need_version=no
  12710. case $host_cpu in
  12711. ia64*)
  12712. shrext_cmds='.so'
  12713. hardcode_into_libs=yes
  12714. dynamic_linker="$host_os dld.so"
  12715. shlibpath_var=LD_LIBRARY_PATH
  12716. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12717. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12718. soname_spec='${libname}${release}${shared_ext}$major'
  12719. if test "X$HPUX_IA64_MODE" = X32; then
  12720. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12721. else
  12722. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12723. fi
  12724. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12725. ;;
  12726. hppa*64*)
  12727. shrext_cmds='.sl'
  12728. hardcode_into_libs=yes
  12729. dynamic_linker="$host_os dld.sl"
  12730. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12731. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12733. soname_spec='${libname}${release}${shared_ext}$major'
  12734. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12735. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12736. ;;
  12737. *)
  12738. shrext_cmds='.sl'
  12739. dynamic_linker="$host_os dld.sl"
  12740. shlibpath_var=SHLIB_PATH
  12741. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12743. soname_spec='${libname}${release}${shared_ext}$major'
  12744. ;;
  12745. esac
  12746. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12747. postinstall_cmds='chmod 555 $lib'
  12748. # or fails outright, so override atomically:
  12749. install_override_mode=555
  12750. ;;
  12751. interix[3-9]*)
  12752. version_type=linux # correct to gnu/linux during the next big refactor
  12753. need_lib_prefix=no
  12754. need_version=no
  12755. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12756. soname_spec='${libname}${release}${shared_ext}$major'
  12757. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12758. shlibpath_var=LD_LIBRARY_PATH
  12759. shlibpath_overrides_runpath=no
  12760. hardcode_into_libs=yes
  12761. ;;
  12762. irix5* | irix6* | nonstopux*)
  12763. case $host_os in
  12764. nonstopux*) version_type=nonstopux ;;
  12765. *)
  12766. if test "$lt_cv_prog_gnu_ld" = yes; then
  12767. version_type=linux # correct to gnu/linux during the next big refactor
  12768. else
  12769. version_type=irix
  12770. fi ;;
  12771. esac
  12772. need_lib_prefix=no
  12773. need_version=no
  12774. soname_spec='${libname}${release}${shared_ext}$major'
  12775. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12776. case $host_os in
  12777. irix5* | nonstopux*)
  12778. libsuff= shlibsuff=
  12779. ;;
  12780. *)
  12781. case $LD in # libtool.m4 will add one of these switches to LD
  12782. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12783. libsuff= shlibsuff= libmagic=32-bit;;
  12784. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12785. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12786. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12787. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12788. *) libsuff= shlibsuff= libmagic=never-match;;
  12789. esac
  12790. ;;
  12791. esac
  12792. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12793. shlibpath_overrides_runpath=no
  12794. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12795. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12796. hardcode_into_libs=yes
  12797. ;;
  12798. # No shared lib support for Linux oldld, aout, or coff.
  12799. linux*oldld* | linux*aout* | linux*coff*)
  12800. dynamic_linker=no
  12801. ;;
  12802. # This must be glibc/ELF.
  12803. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12804. version_type=linux # correct to gnu/linux during the next big refactor
  12805. need_lib_prefix=no
  12806. need_version=no
  12807. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12808. soname_spec='${libname}${release}${shared_ext}$major'
  12809. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12810. shlibpath_var=LD_LIBRARY_PATH
  12811. shlibpath_overrides_runpath=no
  12812. # Some binutils ld are patched to set DT_RUNPATH
  12813. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12814. $as_echo_n "(cached) " >&6
  12815. else
  12816. lt_cv_shlibpath_overrides_runpath=no
  12817. save_LDFLAGS=$LDFLAGS
  12818. save_libdir=$libdir
  12819. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12820. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12822. /* end confdefs.h. */
  12823. int
  12824. main ()
  12825. {
  12826. ;
  12827. return 0;
  12828. }
  12829. _ACEOF
  12830. if ac_fn_cxx_try_link "$LINENO"; then :
  12831. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12832. lt_cv_shlibpath_overrides_runpath=yes
  12833. fi
  12834. fi
  12835. rm -f core conftest.err conftest.$ac_objext \
  12836. conftest$ac_exeext conftest.$ac_ext
  12837. LDFLAGS=$save_LDFLAGS
  12838. libdir=$save_libdir
  12839. fi
  12840. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12841. # This implies no fast_install, which is unacceptable.
  12842. # Some rework will be needed to allow for fast_install
  12843. # before this can be enabled.
  12844. hardcode_into_libs=yes
  12845. # Append ld.so.conf contents to the search path
  12846. if test -f /etc/ld.so.conf; then
  12847. 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' ' '`
  12848. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12849. fi
  12850. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12851. # powerpc, because MkLinux only supported shared libraries with the
  12852. # GNU dynamic linker. Since this was broken with cross compilers,
  12853. # most powerpc-linux boxes support dynamic linking these days and
  12854. # people can always --disable-shared, the test was removed, and we
  12855. # assume the GNU/Linux dynamic linker is in use.
  12856. dynamic_linker='GNU/Linux ld.so'
  12857. ;;
  12858. netbsdelf*-gnu)
  12859. version_type=linux
  12860. need_lib_prefix=no
  12861. need_version=no
  12862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12863. soname_spec='${libname}${release}${shared_ext}$major'
  12864. shlibpath_var=LD_LIBRARY_PATH
  12865. shlibpath_overrides_runpath=no
  12866. hardcode_into_libs=yes
  12867. dynamic_linker='NetBSD ld.elf_so'
  12868. ;;
  12869. netbsd*)
  12870. version_type=sunos
  12871. need_lib_prefix=no
  12872. need_version=no
  12873. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12875. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12876. dynamic_linker='NetBSD (a.out) ld.so'
  12877. else
  12878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12879. soname_spec='${libname}${release}${shared_ext}$major'
  12880. dynamic_linker='NetBSD ld.elf_so'
  12881. fi
  12882. shlibpath_var=LD_LIBRARY_PATH
  12883. shlibpath_overrides_runpath=yes
  12884. hardcode_into_libs=yes
  12885. ;;
  12886. newsos6)
  12887. version_type=linux # correct to gnu/linux during the next big refactor
  12888. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12889. shlibpath_var=LD_LIBRARY_PATH
  12890. shlibpath_overrides_runpath=yes
  12891. ;;
  12892. *nto* | *qnx*)
  12893. version_type=qnx
  12894. need_lib_prefix=no
  12895. need_version=no
  12896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12897. soname_spec='${libname}${release}${shared_ext}$major'
  12898. shlibpath_var=LD_LIBRARY_PATH
  12899. shlibpath_overrides_runpath=no
  12900. hardcode_into_libs=yes
  12901. dynamic_linker='ldqnx.so'
  12902. ;;
  12903. openbsd*)
  12904. version_type=sunos
  12905. sys_lib_dlsearch_path_spec="/usr/lib"
  12906. need_lib_prefix=no
  12907. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12908. case $host_os in
  12909. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12910. *) need_version=no ;;
  12911. esac
  12912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12913. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12914. shlibpath_var=LD_LIBRARY_PATH
  12915. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12916. case $host_os in
  12917. openbsd2.[89] | openbsd2.[89].*)
  12918. shlibpath_overrides_runpath=no
  12919. ;;
  12920. *)
  12921. shlibpath_overrides_runpath=yes
  12922. ;;
  12923. esac
  12924. else
  12925. shlibpath_overrides_runpath=yes
  12926. fi
  12927. ;;
  12928. os2*)
  12929. libname_spec='$name'
  12930. shrext_cmds=".dll"
  12931. need_lib_prefix=no
  12932. library_names_spec='$libname${shared_ext} $libname.a'
  12933. dynamic_linker='OS/2 ld.exe'
  12934. shlibpath_var=LIBPATH
  12935. ;;
  12936. osf3* | osf4* | osf5*)
  12937. version_type=osf
  12938. need_lib_prefix=no
  12939. need_version=no
  12940. soname_spec='${libname}${release}${shared_ext}$major'
  12941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12942. shlibpath_var=LD_LIBRARY_PATH
  12943. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12944. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12945. ;;
  12946. rdos*)
  12947. dynamic_linker=no
  12948. ;;
  12949. solaris*)
  12950. version_type=linux # correct to gnu/linux during the next big refactor
  12951. need_lib_prefix=no
  12952. need_version=no
  12953. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12954. soname_spec='${libname}${release}${shared_ext}$major'
  12955. shlibpath_var=LD_LIBRARY_PATH
  12956. shlibpath_overrides_runpath=yes
  12957. hardcode_into_libs=yes
  12958. # ldd complains unless libraries are executable
  12959. postinstall_cmds='chmod +x $lib'
  12960. ;;
  12961. sunos4*)
  12962. version_type=sunos
  12963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12964. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12965. shlibpath_var=LD_LIBRARY_PATH
  12966. shlibpath_overrides_runpath=yes
  12967. if test "$with_gnu_ld" = yes; then
  12968. need_lib_prefix=no
  12969. fi
  12970. need_version=yes
  12971. ;;
  12972. sysv4 | sysv4.3*)
  12973. version_type=linux # correct to gnu/linux during the next big refactor
  12974. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12975. soname_spec='${libname}${release}${shared_ext}$major'
  12976. shlibpath_var=LD_LIBRARY_PATH
  12977. case $host_vendor in
  12978. sni)
  12979. shlibpath_overrides_runpath=no
  12980. need_lib_prefix=no
  12981. runpath_var=LD_RUN_PATH
  12982. ;;
  12983. siemens)
  12984. need_lib_prefix=no
  12985. ;;
  12986. motorola)
  12987. need_lib_prefix=no
  12988. need_version=no
  12989. shlibpath_overrides_runpath=no
  12990. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12991. ;;
  12992. esac
  12993. ;;
  12994. sysv4*MP*)
  12995. if test -d /usr/nec ;then
  12996. version_type=linux # correct to gnu/linux during the next big refactor
  12997. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12998. soname_spec='$libname${shared_ext}.$major'
  12999. shlibpath_var=LD_LIBRARY_PATH
  13000. fi
  13001. ;;
  13002. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13003. version_type=freebsd-elf
  13004. need_lib_prefix=no
  13005. need_version=no
  13006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13007. soname_spec='${libname}${release}${shared_ext}$major'
  13008. shlibpath_var=LD_LIBRARY_PATH
  13009. shlibpath_overrides_runpath=yes
  13010. hardcode_into_libs=yes
  13011. if test "$with_gnu_ld" = yes; then
  13012. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13013. else
  13014. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13015. case $host_os in
  13016. sco3.2v5*)
  13017. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13018. ;;
  13019. esac
  13020. fi
  13021. sys_lib_dlsearch_path_spec='/usr/lib'
  13022. ;;
  13023. tpf*)
  13024. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13025. version_type=linux # correct to gnu/linux during the next big refactor
  13026. need_lib_prefix=no
  13027. need_version=no
  13028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13029. shlibpath_var=LD_LIBRARY_PATH
  13030. shlibpath_overrides_runpath=no
  13031. hardcode_into_libs=yes
  13032. ;;
  13033. uts4*)
  13034. version_type=linux # correct to gnu/linux during the next big refactor
  13035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13036. soname_spec='${libname}${release}${shared_ext}$major'
  13037. shlibpath_var=LD_LIBRARY_PATH
  13038. ;;
  13039. *)
  13040. dynamic_linker=no
  13041. ;;
  13042. esac
  13043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13044. $as_echo "$dynamic_linker" >&6; }
  13045. test "$dynamic_linker" = no && can_build_shared=no
  13046. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13047. if test "$GCC" = yes; then
  13048. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13049. fi
  13050. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13051. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13052. fi
  13053. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13054. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13055. fi
  13056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13057. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13058. hardcode_action_CXX=
  13059. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13060. test -n "$runpath_var_CXX" ||
  13061. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13062. # We can hardcode non-existent directories.
  13063. if test "$hardcode_direct_CXX" != no &&
  13064. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13065. # have to relink, otherwise we might link with an installed library
  13066. # when we should be linking with a yet-to-be-installed one
  13067. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13068. test "$hardcode_minus_L_CXX" != no; then
  13069. # Linking always hardcodes the temporary library directory.
  13070. hardcode_action_CXX=relink
  13071. else
  13072. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13073. hardcode_action_CXX=immediate
  13074. fi
  13075. else
  13076. # We cannot hardcode anything, or else we can only hardcode existing
  13077. # directories.
  13078. hardcode_action_CXX=unsupported
  13079. fi
  13080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13081. $as_echo "$hardcode_action_CXX" >&6; }
  13082. if test "$hardcode_action_CXX" = relink ||
  13083. test "$inherit_rpath_CXX" = yes; then
  13084. # Fast installation is not supported
  13085. enable_fast_install=no
  13086. elif test "$shlibpath_overrides_runpath" = yes ||
  13087. test "$enable_shared" = no; then
  13088. # Fast installation is not necessary
  13089. enable_fast_install=needless
  13090. fi
  13091. fi # test -n "$compiler"
  13092. CC=$lt_save_CC
  13093. CFLAGS=$lt_save_CFLAGS
  13094. LDCXX=$LD
  13095. LD=$lt_save_LD
  13096. GCC=$lt_save_GCC
  13097. with_gnu_ld=$lt_save_with_gnu_ld
  13098. lt_cv_path_LDCXX=$lt_cv_path_LD
  13099. lt_cv_path_LD=$lt_save_path_LD
  13100. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13101. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13102. fi # test "$_lt_caught_CXX_error" != yes
  13103. ac_ext=cpp
  13104. ac_cpp='$CXXCPP $CPPFLAGS'
  13105. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13106. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13107. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13108. ac_config_commands="$ac_config_commands libtool"
  13109. # Only expand once:
  13110. for ac_header in sys/times.h
  13111. do :
  13112. ac_fn_cxx_check_header_mongrel "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
  13113. if test "x$ac_cv_header_sys_times_h" = xyes; then :
  13114. cat >>confdefs.h <<_ACEOF
  13115. #define HAVE_SYS_TIMES_H 1
  13116. _ACEOF
  13117. fi
  13118. done
  13119. BUILDER=`whoami`
  13120. BUILDDATE=`date +%D,%H:%M:%S`
  13121. CONFIGURE_ARGS=$ac_configure_args
  13122. LIBTOOL_VERSION_INFO="-version-info ${MAJOR_VERSION}:${MINOR_VERSION}:0"
  13123. ac_config_files="$ac_config_files Makefile tests/Makefile include/Makefile gmm-config"
  13124. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13125. # Let make expand exec_prefix.
  13126. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13127. DEFS=-DHAVE_CONFIG_H
  13128. ac_libobjs=
  13129. ac_ltlibobjs=
  13130. U=
  13131. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13132. # 1. Remove the extension, and $U if already installed.
  13133. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13134. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13135. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13136. # will be set to the directory where LIBOBJS objects are built.
  13137. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13138. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13139. done
  13140. LIBOBJS=$ac_libobjs
  13141. LTLIBOBJS=$ac_ltlibobjs
  13142. if test -n "$EXEEXT"; then
  13143. am__EXEEXT_TRUE=
  13144. am__EXEEXT_FALSE='#'
  13145. else
  13146. am__EXEEXT_TRUE='#'
  13147. am__EXEEXT_FALSE=
  13148. fi
  13149. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13150. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13151. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13152. fi
  13153. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13154. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  13155. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13156. fi
  13157. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13158. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13159. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13160. fi
  13161. : "${CONFIG_STATUS=./config.status}"
  13162. ac_write_fail=0
  13163. ac_clean_files_save=$ac_clean_files
  13164. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13165. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13166. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13167. as_write_fail=0
  13168. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13169. #! $SHELL
  13170. # Generated by $as_me.
  13171. # Run this file to recreate the current configuration.
  13172. # Compiler output produced by configure, useful for debugging
  13173. # configure, is in config.log if it exists.
  13174. debug=false
  13175. ac_cs_recheck=false
  13176. ac_cs_silent=false
  13177. SHELL=\${CONFIG_SHELL-$SHELL}
  13178. export SHELL
  13179. _ASEOF
  13180. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13181. ## -------------------- ##
  13182. ## M4sh Initialization. ##
  13183. ## -------------------- ##
  13184. # Be more Bourne compatible
  13185. DUALCASE=1; export DUALCASE # for MKS sh
  13186. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13187. emulate sh
  13188. NULLCMD=:
  13189. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13190. # is contrary to our usage. Disable this feature.
  13191. alias -g '${1+"$@"}'='"$@"'
  13192. setopt NO_GLOB_SUBST
  13193. else
  13194. case `(set -o) 2>/dev/null` in #(
  13195. *posix*) :
  13196. set -o posix ;; #(
  13197. *) :
  13198. ;;
  13199. esac
  13200. fi
  13201. as_nl='
  13202. '
  13203. export as_nl
  13204. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13205. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13206. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13207. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13208. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13209. # but without wasting forks for bash or zsh.
  13210. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13211. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13212. as_echo='print -r --'
  13213. as_echo_n='print -rn --'
  13214. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13215. as_echo='printf %s\n'
  13216. as_echo_n='printf %s'
  13217. else
  13218. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13219. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13220. as_echo_n='/usr/ucb/echo -n'
  13221. else
  13222. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13223. as_echo_n_body='eval
  13224. arg=$1;
  13225. case $arg in #(
  13226. *"$as_nl"*)
  13227. expr "X$arg" : "X\\(.*\\)$as_nl";
  13228. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13229. esac;
  13230. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13231. '
  13232. export as_echo_n_body
  13233. as_echo_n='sh -c $as_echo_n_body as_echo'
  13234. fi
  13235. export as_echo_body
  13236. as_echo='sh -c $as_echo_body as_echo'
  13237. fi
  13238. # The user is always right.
  13239. if test "${PATH_SEPARATOR+set}" != set; then
  13240. PATH_SEPARATOR=:
  13241. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13242. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13243. PATH_SEPARATOR=';'
  13244. }
  13245. fi
  13246. # IFS
  13247. # We need space, tab and new line, in precisely that order. Quoting is
  13248. # there to prevent editors from complaining about space-tab.
  13249. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13250. # splitting by setting IFS to empty value.)
  13251. IFS=" "" $as_nl"
  13252. # Find who we are. Look in the path if we contain no directory separator.
  13253. as_myself=
  13254. case $0 in #((
  13255. *[\\/]* ) as_myself=$0 ;;
  13256. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13257. for as_dir in $PATH
  13258. do
  13259. IFS=$as_save_IFS
  13260. test -z "$as_dir" && as_dir=.
  13261. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13262. done
  13263. IFS=$as_save_IFS
  13264. ;;
  13265. esac
  13266. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13267. # in which case we are not to be found in the path.
  13268. if test "x$as_myself" = x; then
  13269. as_myself=$0
  13270. fi
  13271. if test ! -f "$as_myself"; then
  13272. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13273. exit 1
  13274. fi
  13275. # Unset variables that we do not need and which cause bugs (e.g. in
  13276. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13277. # suppresses any "Segmentation fault" message there. '((' could
  13278. # trigger a bug in pdksh 5.2.14.
  13279. for as_var in BASH_ENV ENV MAIL MAILPATH
  13280. do eval test x\${$as_var+set} = xset \
  13281. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13282. done
  13283. PS1='$ '
  13284. PS2='> '
  13285. PS4='+ '
  13286. # NLS nuisances.
  13287. LC_ALL=C
  13288. export LC_ALL
  13289. LANGUAGE=C
  13290. export LANGUAGE
  13291. # CDPATH.
  13292. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13293. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13294. # ----------------------------------------
  13295. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13296. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13297. # script with STATUS, using 1 if that was 0.
  13298. as_fn_error ()
  13299. {
  13300. as_status=$1; test $as_status -eq 0 && as_status=1
  13301. if test "$4"; then
  13302. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13303. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13304. fi
  13305. $as_echo "$as_me: error: $2" >&2
  13306. as_fn_exit $as_status
  13307. } # as_fn_error
  13308. # as_fn_set_status STATUS
  13309. # -----------------------
  13310. # Set $? to STATUS, without forking.
  13311. as_fn_set_status ()
  13312. {
  13313. return $1
  13314. } # as_fn_set_status
  13315. # as_fn_exit STATUS
  13316. # -----------------
  13317. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13318. as_fn_exit ()
  13319. {
  13320. set +e
  13321. as_fn_set_status $1
  13322. exit $1
  13323. } # as_fn_exit
  13324. # as_fn_unset VAR
  13325. # ---------------
  13326. # Portably unset VAR.
  13327. as_fn_unset ()
  13328. {
  13329. { eval $1=; unset $1;}
  13330. }
  13331. as_unset=as_fn_unset
  13332. # as_fn_append VAR VALUE
  13333. # ----------------------
  13334. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13335. # advantage of any shell optimizations that allow amortized linear growth over
  13336. # repeated appends, instead of the typical quadratic growth present in naive
  13337. # implementations.
  13338. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13339. eval 'as_fn_append ()
  13340. {
  13341. eval $1+=\$2
  13342. }'
  13343. else
  13344. as_fn_append ()
  13345. {
  13346. eval $1=\$$1\$2
  13347. }
  13348. fi # as_fn_append
  13349. # as_fn_arith ARG...
  13350. # ------------------
  13351. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13352. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13353. # must be portable across $(()) and expr.
  13354. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13355. eval 'as_fn_arith ()
  13356. {
  13357. as_val=$(( $* ))
  13358. }'
  13359. else
  13360. as_fn_arith ()
  13361. {
  13362. as_val=`expr "$@" || test $? -eq 1`
  13363. }
  13364. fi # as_fn_arith
  13365. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13366. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13367. as_expr=expr
  13368. else
  13369. as_expr=false
  13370. fi
  13371. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13372. as_basename=basename
  13373. else
  13374. as_basename=false
  13375. fi
  13376. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13377. as_dirname=dirname
  13378. else
  13379. as_dirname=false
  13380. fi
  13381. as_me=`$as_basename -- "$0" ||
  13382. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13383. X"$0" : 'X\(//\)$' \| \
  13384. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13385. $as_echo X/"$0" |
  13386. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13387. s//\1/
  13388. q
  13389. }
  13390. /^X\/\(\/\/\)$/{
  13391. s//\1/
  13392. q
  13393. }
  13394. /^X\/\(\/\).*/{
  13395. s//\1/
  13396. q
  13397. }
  13398. s/.*/./; q'`
  13399. # Avoid depending upon Character Ranges.
  13400. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13401. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13402. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13403. as_cr_digits='0123456789'
  13404. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13405. ECHO_C= ECHO_N= ECHO_T=
  13406. case `echo -n x` in #(((((
  13407. -n*)
  13408. case `echo 'xy\c'` in
  13409. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13410. xy) ECHO_C='\c';;
  13411. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13412. ECHO_T=' ';;
  13413. esac;;
  13414. *)
  13415. ECHO_N='-n';;
  13416. esac
  13417. rm -f conf$$ conf$$.exe conf$$.file
  13418. if test -d conf$$.dir; then
  13419. rm -f conf$$.dir/conf$$.file
  13420. else
  13421. rm -f conf$$.dir
  13422. mkdir conf$$.dir 2>/dev/null
  13423. fi
  13424. if (echo >conf$$.file) 2>/dev/null; then
  13425. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13426. as_ln_s='ln -s'
  13427. # ... but there are two gotchas:
  13428. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13429. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13430. # In both cases, we have to default to `cp -p'.
  13431. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13432. as_ln_s='cp -p'
  13433. elif ln conf$$.file conf$$ 2>/dev/null; then
  13434. as_ln_s=ln
  13435. else
  13436. as_ln_s='cp -p'
  13437. fi
  13438. else
  13439. as_ln_s='cp -p'
  13440. fi
  13441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13442. rmdir conf$$.dir 2>/dev/null
  13443. # as_fn_mkdir_p
  13444. # -------------
  13445. # Create "$as_dir" as a directory, including parents if necessary.
  13446. as_fn_mkdir_p ()
  13447. {
  13448. case $as_dir in #(
  13449. -*) as_dir=./$as_dir;;
  13450. esac
  13451. test -d "$as_dir" || eval $as_mkdir_p || {
  13452. as_dirs=
  13453. while :; do
  13454. case $as_dir in #(
  13455. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13456. *) as_qdir=$as_dir;;
  13457. esac
  13458. as_dirs="'$as_qdir' $as_dirs"
  13459. as_dir=`$as_dirname -- "$as_dir" ||
  13460. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13461. X"$as_dir" : 'X\(//\)[^/]' \| \
  13462. X"$as_dir" : 'X\(//\)$' \| \
  13463. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13464. $as_echo X"$as_dir" |
  13465. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13466. s//\1/
  13467. q
  13468. }
  13469. /^X\(\/\/\)[^/].*/{
  13470. s//\1/
  13471. q
  13472. }
  13473. /^X\(\/\/\)$/{
  13474. s//\1/
  13475. q
  13476. }
  13477. /^X\(\/\).*/{
  13478. s//\1/
  13479. q
  13480. }
  13481. s/.*/./; q'`
  13482. test -d "$as_dir" && break
  13483. done
  13484. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13485. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13486. } # as_fn_mkdir_p
  13487. if mkdir -p . 2>/dev/null; then
  13488. as_mkdir_p='mkdir -p "$as_dir"'
  13489. else
  13490. test -d ./-p && rmdir ./-p
  13491. as_mkdir_p=false
  13492. fi
  13493. if test -x / >/dev/null 2>&1; then
  13494. as_test_x='test -x'
  13495. else
  13496. if ls -dL / >/dev/null 2>&1; then
  13497. as_ls_L_option=L
  13498. else
  13499. as_ls_L_option=
  13500. fi
  13501. as_test_x='
  13502. eval sh -c '\''
  13503. if test -d "$1"; then
  13504. test -d "$1/.";
  13505. else
  13506. case $1 in #(
  13507. -*)set "./$1";;
  13508. esac;
  13509. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13510. ???[sx]*):;;*)false;;esac;fi
  13511. '\'' sh
  13512. '
  13513. fi
  13514. as_executable_p=$as_test_x
  13515. # Sed expression to map a string onto a valid CPP name.
  13516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13517. # Sed expression to map a string onto a valid variable name.
  13518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13519. exec 6>&1
  13520. ## ----------------------------------- ##
  13521. ## Main body of $CONFIG_STATUS script. ##
  13522. ## ----------------------------------- ##
  13523. _ASEOF
  13524. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13525. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13526. # Save the log message, to keep $0 and so on meaningful, and to
  13527. # report actual input values of CONFIG_FILES etc. instead of their
  13528. # values after options handling.
  13529. ac_log="
  13530. This file was extended by $as_me, which was
  13531. generated by GNU Autoconf 2.68. Invocation command line was
  13532. CONFIG_FILES = $CONFIG_FILES
  13533. CONFIG_HEADERS = $CONFIG_HEADERS
  13534. CONFIG_LINKS = $CONFIG_LINKS
  13535. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13536. $ $0 $@
  13537. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13538. "
  13539. _ACEOF
  13540. case $ac_config_files in *"
  13541. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13542. esac
  13543. case $ac_config_headers in *"
  13544. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13545. esac
  13546. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13547. # Files that config.status was made for.
  13548. config_files="$ac_config_files"
  13549. config_headers="$ac_config_headers"
  13550. config_commands="$ac_config_commands"
  13551. _ACEOF
  13552. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13553. ac_cs_usage="\
  13554. \`$as_me' instantiates files and other configuration actions
  13555. from templates according to the current configuration. Unless the files
  13556. and actions are specified as TAGs, all are instantiated by default.
  13557. Usage: $0 [OPTION]... [TAG]...
  13558. -h, --help print this help, then exit
  13559. -V, --version print version number and configuration settings, then exit
  13560. --config print configuration, then exit
  13561. -q, --quiet, --silent
  13562. do not print progress messages
  13563. -d, --debug don't remove temporary files
  13564. --recheck update $as_me by reconfiguring in the same conditions
  13565. --file=FILE[:TEMPLATE]
  13566. instantiate the configuration file FILE
  13567. --header=FILE[:TEMPLATE]
  13568. instantiate the configuration header FILE
  13569. Configuration files:
  13570. $config_files
  13571. Configuration headers:
  13572. $config_headers
  13573. Configuration commands:
  13574. $config_commands
  13575. Report bugs to the package provider."
  13576. _ACEOF
  13577. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13578. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13579. ac_cs_version="\\
  13580. config.status
  13581. configured by $0, generated by GNU Autoconf 2.68,
  13582. with options \\"\$ac_cs_config\\"
  13583. Copyright (C) 2010 Free Software Foundation, Inc.
  13584. This config.status script is free software; the Free Software Foundation
  13585. gives unlimited permission to copy, distribute and modify it."
  13586. ac_pwd='$ac_pwd'
  13587. srcdir='$srcdir'
  13588. INSTALL='$INSTALL'
  13589. MKDIR_P='$MKDIR_P'
  13590. AWK='$AWK'
  13591. test -n "\$AWK" || AWK=awk
  13592. _ACEOF
  13593. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13594. # The default lists apply if the user does not specify any file.
  13595. ac_need_defaults=:
  13596. while test $# != 0
  13597. do
  13598. case $1 in
  13599. --*=?*)
  13600. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13601. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13602. ac_shift=:
  13603. ;;
  13604. --*=)
  13605. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13606. ac_optarg=
  13607. ac_shift=:
  13608. ;;
  13609. *)
  13610. ac_option=$1
  13611. ac_optarg=$2
  13612. ac_shift=shift
  13613. ;;
  13614. esac
  13615. case $ac_option in
  13616. # Handling of the options.
  13617. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13618. ac_cs_recheck=: ;;
  13619. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13620. $as_echo "$ac_cs_version"; exit ;;
  13621. --config | --confi | --conf | --con | --co | --c )
  13622. $as_echo "$ac_cs_config"; exit ;;
  13623. --debug | --debu | --deb | --de | --d | -d )
  13624. debug=: ;;
  13625. --file | --fil | --fi | --f )
  13626. $ac_shift
  13627. case $ac_optarg in
  13628. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13629. '') as_fn_error $? "missing file argument" ;;
  13630. esac
  13631. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13632. ac_need_defaults=false;;
  13633. --header | --heade | --head | --hea )
  13634. $ac_shift
  13635. case $ac_optarg in
  13636. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13637. esac
  13638. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13639. ac_need_defaults=false;;
  13640. --he | --h)
  13641. # Conflict between --help and --header
  13642. as_fn_error $? "ambiguous option: \`$1'
  13643. Try \`$0 --help' for more information.";;
  13644. --help | --hel | -h )
  13645. $as_echo "$ac_cs_usage"; exit ;;
  13646. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13647. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13648. ac_cs_silent=: ;;
  13649. # This is an error.
  13650. -*) as_fn_error $? "unrecognized option: \`$1'
  13651. Try \`$0 --help' for more information." ;;
  13652. *) as_fn_append ac_config_targets " $1"
  13653. ac_need_defaults=false ;;
  13654. esac
  13655. shift
  13656. done
  13657. ac_configure_extra_args=
  13658. if $ac_cs_silent; then
  13659. exec 6>/dev/null
  13660. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13661. fi
  13662. _ACEOF
  13663. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13664. if \$ac_cs_recheck; then
  13665. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13666. shift
  13667. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13668. CONFIG_SHELL='$SHELL'
  13669. export CONFIG_SHELL
  13670. exec "\$@"
  13671. fi
  13672. _ACEOF
  13673. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13674. exec 5>>config.log
  13675. {
  13676. echo
  13677. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13678. ## Running $as_me. ##
  13679. _ASBOX
  13680. $as_echo "$ac_log"
  13681. } >&5
  13682. _ACEOF
  13683. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13684. #
  13685. # INIT-COMMANDS
  13686. #
  13687. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13688. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13689. # if CDPATH is set.
  13690. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13691. sed_quote_subst='$sed_quote_subst'
  13692. double_quote_subst='$double_quote_subst'
  13693. delay_variable_subst='$delay_variable_subst'
  13694. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13695. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13696. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13697. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13698. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13699. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13700. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13701. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13702. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13703. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13704. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13705. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13706. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13707. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13708. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13709. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13710. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13711. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13712. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13713. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13714. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13715. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13716. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13717. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13718. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13719. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13720. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13721. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13722. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13723. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13724. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13725. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13726. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13727. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13728. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13729. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13730. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13731. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13732. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13733. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13734. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13735. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13736. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  13737. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13738. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13739. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13740. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13741. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13742. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13743. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13744. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13745. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13746. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13747. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13748. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13749. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13750. 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"`'
  13751. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  13752. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  13753. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13754. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13755. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13756. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13757. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13758. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13759. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13760. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13761. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  13762. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13763. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13764. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13765. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13766. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13767. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13768. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13769. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13770. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13771. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13772. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13773. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13774. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13775. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13776. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13777. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13778. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13779. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13780. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13781. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13782. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13783. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13784. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13785. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13786. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13787. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13788. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13789. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13790. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13791. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13792. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13793. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13794. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13795. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13796. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13797. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13798. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13799. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13800. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13801. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13802. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13803. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13804. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13805. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13806. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13807. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13808. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13809. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13810. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13811. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13812. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13813. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13814. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13815. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13816. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13817. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13818. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13819. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13820. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13821. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13822. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13823. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13824. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  13825. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  13826. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  13827. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  13828. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  13829. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  13830. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  13831. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13832. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13833. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13834. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  13835. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  13836. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13837. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  13838. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  13839. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  13840. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  13841. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  13842. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  13843. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13844. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13845. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  13846. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13847. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13848. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13849. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13850. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13851. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13852. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  13853. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13854. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13855. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13856. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  13857. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  13858. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  13859. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  13860. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  13861. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  13862. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  13863. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  13864. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  13865. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13866. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13867. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13868. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13869. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13870. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13871. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  13872. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  13873. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13874. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13875. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  13876. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  13877. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  13878. LTCC='$LTCC'
  13879. LTCFLAGS='$LTCFLAGS'
  13880. compiler='$compiler_DEFAULT'
  13881. # A function that is used when there is no print builtin or printf.
  13882. func_fallback_echo ()
  13883. {
  13884. eval 'cat <<_LTECHO_EOF
  13885. \$1
  13886. _LTECHO_EOF'
  13887. }
  13888. # Quote evaled strings.
  13889. for var in SHELL \
  13890. ECHO \
  13891. PATH_SEPARATOR \
  13892. SED \
  13893. GREP \
  13894. EGREP \
  13895. FGREP \
  13896. LD \
  13897. NM \
  13898. LN_S \
  13899. lt_SP2NL \
  13900. lt_NL2SP \
  13901. reload_flag \
  13902. OBJDUMP \
  13903. deplibs_check_method \
  13904. file_magic_cmd \
  13905. file_magic_glob \
  13906. want_nocaseglob \
  13907. DLLTOOL \
  13908. sharedlib_from_linklib_cmd \
  13909. AR \
  13910. AR_FLAGS \
  13911. archiver_list_spec \
  13912. STRIP \
  13913. RANLIB \
  13914. CC \
  13915. CFLAGS \
  13916. compiler \
  13917. lt_cv_sys_global_symbol_pipe \
  13918. lt_cv_sys_global_symbol_to_cdecl \
  13919. lt_cv_sys_global_symbol_to_c_name_address \
  13920. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13921. nm_file_list_spec \
  13922. lt_prog_compiler_no_builtin_flag \
  13923. lt_prog_compiler_pic \
  13924. lt_prog_compiler_wl \
  13925. lt_prog_compiler_static \
  13926. lt_cv_prog_compiler_c_o \
  13927. need_locks \
  13928. MANIFEST_TOOL \
  13929. DSYMUTIL \
  13930. NMEDIT \
  13931. LIPO \
  13932. OTOOL \
  13933. OTOOL64 \
  13934. shrext_cmds \
  13935. export_dynamic_flag_spec \
  13936. whole_archive_flag_spec \
  13937. compiler_needs_object \
  13938. with_gnu_ld \
  13939. allow_undefined_flag \
  13940. no_undefined_flag \
  13941. hardcode_libdir_flag_spec \
  13942. hardcode_libdir_separator \
  13943. exclude_expsyms \
  13944. include_expsyms \
  13945. file_list_spec \
  13946. variables_saved_for_relink \
  13947. libname_spec \
  13948. library_names_spec \
  13949. soname_spec \
  13950. install_override_mode \
  13951. finish_eval \
  13952. old_striplib \
  13953. striplib \
  13954. compiler_lib_search_dirs \
  13955. predep_objects \
  13956. postdep_objects \
  13957. predeps \
  13958. postdeps \
  13959. compiler_lib_search_path \
  13960. LD_CXX \
  13961. reload_flag_CXX \
  13962. compiler_CXX \
  13963. lt_prog_compiler_no_builtin_flag_CXX \
  13964. lt_prog_compiler_pic_CXX \
  13965. lt_prog_compiler_wl_CXX \
  13966. lt_prog_compiler_static_CXX \
  13967. lt_cv_prog_compiler_c_o_CXX \
  13968. export_dynamic_flag_spec_CXX \
  13969. whole_archive_flag_spec_CXX \
  13970. compiler_needs_object_CXX \
  13971. with_gnu_ld_CXX \
  13972. allow_undefined_flag_CXX \
  13973. no_undefined_flag_CXX \
  13974. hardcode_libdir_flag_spec_CXX \
  13975. hardcode_libdir_separator_CXX \
  13976. exclude_expsyms_CXX \
  13977. include_expsyms_CXX \
  13978. file_list_spec_CXX \
  13979. compiler_lib_search_dirs_CXX \
  13980. predep_objects_CXX \
  13981. postdep_objects_CXX \
  13982. predeps_CXX \
  13983. postdeps_CXX \
  13984. compiler_lib_search_path_CXX; do
  13985. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13986. *[\\\\\\\`\\"\\\$]*)
  13987. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13988. ;;
  13989. *)
  13990. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13991. ;;
  13992. esac
  13993. done
  13994. # Double-quote double-evaled strings.
  13995. for var in reload_cmds \
  13996. old_postinstall_cmds \
  13997. old_postuninstall_cmds \
  13998. old_archive_cmds \
  13999. extract_expsyms_cmds \
  14000. old_archive_from_new_cmds \
  14001. old_archive_from_expsyms_cmds \
  14002. archive_cmds \
  14003. archive_expsym_cmds \
  14004. module_cmds \
  14005. module_expsym_cmds \
  14006. export_symbols_cmds \
  14007. prelink_cmds \
  14008. postlink_cmds \
  14009. postinstall_cmds \
  14010. postuninstall_cmds \
  14011. finish_cmds \
  14012. sys_lib_search_path_spec \
  14013. sys_lib_dlsearch_path_spec \
  14014. reload_cmds_CXX \
  14015. old_archive_cmds_CXX \
  14016. old_archive_from_new_cmds_CXX \
  14017. old_archive_from_expsyms_cmds_CXX \
  14018. archive_cmds_CXX \
  14019. archive_expsym_cmds_CXX \
  14020. module_cmds_CXX \
  14021. module_expsym_cmds_CXX \
  14022. export_symbols_cmds_CXX \
  14023. prelink_cmds_CXX \
  14024. postlink_cmds_CXX; do
  14025. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14026. *[\\\\\\\`\\"\\\$]*)
  14027. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14028. ;;
  14029. *)
  14030. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14031. ;;
  14032. esac
  14033. done
  14034. ac_aux_dir='$ac_aux_dir'
  14035. xsi_shell='$xsi_shell'
  14036. lt_shell_append='$lt_shell_append'
  14037. # See if we are running on zsh, and set the options which allow our
  14038. # commands through without removal of \ escapes INIT.
  14039. if test -n "\${ZSH_VERSION+set}" ; then
  14040. setopt NO_GLOB_SUBST
  14041. fi
  14042. PACKAGE='$PACKAGE'
  14043. VERSION='$VERSION'
  14044. TIMESTAMP='$TIMESTAMP'
  14045. RM='$RM'
  14046. ofile='$ofile'
  14047. _ACEOF
  14048. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14049. # Handling of arguments.
  14050. for ac_config_target in $ac_config_targets
  14051. do
  14052. case $ac_config_target in
  14053. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14054. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14055. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14056. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14057. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  14058. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  14059. "gmm-config") CONFIG_FILES="$CONFIG_FILES gmm-config" ;;
  14060. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14061. esac
  14062. done
  14063. # If the user did not use the arguments to specify the items to instantiate,
  14064. # then the envvar interface is used. Set only those that are not.
  14065. # We use the long form for the default assignment because of an extremely
  14066. # bizarre bug on SunOS 4.1.3.
  14067. if $ac_need_defaults; then
  14068. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14069. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14070. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14071. fi
  14072. # Have a temporary directory for convenience. Make it in the build tree
  14073. # simply because there is no reason against having it here, and in addition,
  14074. # creating and moving files from /tmp can sometimes cause problems.
  14075. # Hook for its removal unless debugging.
  14076. # Note that there is a small window in which the directory will not be cleaned:
  14077. # after its creation but before its name has been assigned to `$tmp'.
  14078. $debug ||
  14079. {
  14080. tmp= ac_tmp=
  14081. trap 'exit_status=$?
  14082. : "${ac_tmp:=$tmp}"
  14083. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14084. ' 0
  14085. trap 'as_fn_exit 1' 1 2 13 15
  14086. }
  14087. # Create a (secure) tmp directory for tmp files.
  14088. {
  14089. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14090. test -d "$tmp"
  14091. } ||
  14092. {
  14093. tmp=./conf$$-$RANDOM
  14094. (umask 077 && mkdir "$tmp")
  14095. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14096. ac_tmp=$tmp
  14097. # Set up the scripts for CONFIG_FILES section.
  14098. # No need to generate them if there are no CONFIG_FILES.
  14099. # This happens for instance with `./config.status config.h'.
  14100. if test -n "$CONFIG_FILES"; then
  14101. ac_cr=`echo X | tr X '\015'`
  14102. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14103. # But we know of no other shell where ac_cr would be empty at this
  14104. # point, so we can use a bashism as a fallback.
  14105. if test "x$ac_cr" = x; then
  14106. eval ac_cr=\$\'\\r\'
  14107. fi
  14108. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14109. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14110. ac_cs_awk_cr='\\r'
  14111. else
  14112. ac_cs_awk_cr=$ac_cr
  14113. fi
  14114. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14115. _ACEOF
  14116. {
  14117. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14118. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14119. echo "_ACEOF"
  14120. } >conf$$subs.sh ||
  14121. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14122. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14123. ac_delim='%!_!# '
  14124. for ac_last_try in false false false false false :; do
  14125. . ./conf$$subs.sh ||
  14126. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14127. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14128. if test $ac_delim_n = $ac_delim_num; then
  14129. break
  14130. elif $ac_last_try; then
  14131. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14132. else
  14133. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14134. fi
  14135. done
  14136. rm -f conf$$subs.sh
  14137. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14138. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14139. _ACEOF
  14140. sed -n '
  14141. h
  14142. s/^/S["/; s/!.*/"]=/
  14143. p
  14144. g
  14145. s/^[^!]*!//
  14146. :repl
  14147. t repl
  14148. s/'"$ac_delim"'$//
  14149. t delim
  14150. :nl
  14151. h
  14152. s/\(.\{148\}\)..*/\1/
  14153. t more1
  14154. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14155. p
  14156. n
  14157. b repl
  14158. :more1
  14159. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14160. p
  14161. g
  14162. s/.\{148\}//
  14163. t nl
  14164. :delim
  14165. h
  14166. s/\(.\{148\}\)..*/\1/
  14167. t more2
  14168. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14169. p
  14170. b
  14171. :more2
  14172. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14173. p
  14174. g
  14175. s/.\{148\}//
  14176. t delim
  14177. ' <conf$$subs.awk | sed '
  14178. /^[^""]/{
  14179. N
  14180. s/\n//
  14181. }
  14182. ' >>$CONFIG_STATUS || ac_write_fail=1
  14183. rm -f conf$$subs.awk
  14184. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14185. _ACAWK
  14186. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14187. for (key in S) S_is_set[key] = 1
  14188. FS = ""
  14189. }
  14190. {
  14191. line = $ 0
  14192. nfields = split(line, field, "@")
  14193. substed = 0
  14194. len = length(field[1])
  14195. for (i = 2; i < nfields; i++) {
  14196. key = field[i]
  14197. keylen = length(key)
  14198. if (S_is_set[key]) {
  14199. value = S[key]
  14200. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14201. len += length(value) + length(field[++i])
  14202. substed = 1
  14203. } else
  14204. len += 1 + keylen
  14205. }
  14206. print line
  14207. }
  14208. _ACAWK
  14209. _ACEOF
  14210. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14211. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14212. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14213. else
  14214. cat
  14215. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14216. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14217. _ACEOF
  14218. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14219. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14220. # trailing colons and then remove the whole line if VPATH becomes empty
  14221. # (actually we leave an empty line to preserve line numbers).
  14222. if test "x$srcdir" = x.; then
  14223. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14224. h
  14225. s///
  14226. s/^/:/
  14227. s/[ ]*$/:/
  14228. s/:\$(srcdir):/:/g
  14229. s/:\${srcdir}:/:/g
  14230. s/:@srcdir@:/:/g
  14231. s/^:*//
  14232. s/:*$//
  14233. x
  14234. s/\(=[ ]*\).*/\1/
  14235. G
  14236. s/\n//
  14237. s/^[^=]*=[ ]*$//
  14238. }'
  14239. fi
  14240. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14241. fi # test -n "$CONFIG_FILES"
  14242. # Set up the scripts for CONFIG_HEADERS section.
  14243. # No need to generate them if there are no CONFIG_HEADERS.
  14244. # This happens for instance with `./config.status Makefile'.
  14245. if test -n "$CONFIG_HEADERS"; then
  14246. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14247. BEGIN {
  14248. _ACEOF
  14249. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14250. # here-document in config.status, that substitutes the proper values into
  14251. # config.h.in to produce config.h.
  14252. # Create a delimiter string that does not exist in confdefs.h, to ease
  14253. # handling of long lines.
  14254. ac_delim='%!_!# '
  14255. for ac_last_try in false false :; do
  14256. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14257. if test -z "$ac_tt"; then
  14258. break
  14259. elif $ac_last_try; then
  14260. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14261. else
  14262. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14263. fi
  14264. done
  14265. # For the awk script, D is an array of macro values keyed by name,
  14266. # likewise P contains macro parameters if any. Preserve backslash
  14267. # newline sequences.
  14268. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14269. sed -n '
  14270. s/.\{148\}/&'"$ac_delim"'/g
  14271. t rset
  14272. :rset
  14273. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14274. t def
  14275. d
  14276. :def
  14277. s/\\$//
  14278. t bsnl
  14279. s/["\\]/\\&/g
  14280. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14281. D["\1"]=" \3"/p
  14282. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14283. d
  14284. :bsnl
  14285. s/["\\]/\\&/g
  14286. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14287. D["\1"]=" \3\\\\\\n"\\/p
  14288. t cont
  14289. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14290. t cont
  14291. d
  14292. :cont
  14293. n
  14294. s/.\{148\}/&'"$ac_delim"'/g
  14295. t clear
  14296. :clear
  14297. s/\\$//
  14298. t bsnlc
  14299. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14300. d
  14301. :bsnlc
  14302. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14303. b cont
  14304. ' <confdefs.h | sed '
  14305. s/'"$ac_delim"'/"\\\
  14306. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14307. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14308. for (key in D) D_is_set[key] = 1
  14309. FS = ""
  14310. }
  14311. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14312. line = \$ 0
  14313. split(line, arg, " ")
  14314. if (arg[1] == "#") {
  14315. defundef = arg[2]
  14316. mac1 = arg[3]
  14317. } else {
  14318. defundef = substr(arg[1], 2)
  14319. mac1 = arg[2]
  14320. }
  14321. split(mac1, mac2, "(") #)
  14322. macro = mac2[1]
  14323. prefix = substr(line, 1, index(line, defundef) - 1)
  14324. if (D_is_set[macro]) {
  14325. # Preserve the white space surrounding the "#".
  14326. print prefix "define", macro P[macro] D[macro]
  14327. next
  14328. } else {
  14329. # Replace #undef with comments. This is necessary, for example,
  14330. # in the case of _POSIX_SOURCE, which is predefined and required
  14331. # on some systems where configure will not decide to define it.
  14332. if (defundef == "undef") {
  14333. print "/*", prefix defundef, macro, "*/"
  14334. next
  14335. }
  14336. }
  14337. }
  14338. { print }
  14339. _ACAWK
  14340. _ACEOF
  14341. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14342. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14343. fi # test -n "$CONFIG_HEADERS"
  14344. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14345. shift
  14346. for ac_tag
  14347. do
  14348. case $ac_tag in
  14349. :[FHLC]) ac_mode=$ac_tag; continue;;
  14350. esac
  14351. case $ac_mode$ac_tag in
  14352. :[FHL]*:*);;
  14353. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14354. :[FH]-) ac_tag=-:-;;
  14355. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14356. esac
  14357. ac_save_IFS=$IFS
  14358. IFS=:
  14359. set x $ac_tag
  14360. IFS=$ac_save_IFS
  14361. shift
  14362. ac_file=$1
  14363. shift
  14364. case $ac_mode in
  14365. :L) ac_source=$1;;
  14366. :[FH])
  14367. ac_file_inputs=
  14368. for ac_f
  14369. do
  14370. case $ac_f in
  14371. -) ac_f="$ac_tmp/stdin";;
  14372. *) # Look for the file first in the build tree, then in the source tree
  14373. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14374. # because $ac_f cannot contain `:'.
  14375. test -f "$ac_f" ||
  14376. case $ac_f in
  14377. [\\/$]*) false;;
  14378. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14379. esac ||
  14380. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14381. esac
  14382. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14383. as_fn_append ac_file_inputs " '$ac_f'"
  14384. done
  14385. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14386. # use $as_me), people would be surprised to read:
  14387. # /* config.h. Generated by config.status. */
  14388. configure_input='Generated from '`
  14389. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14390. `' by configure.'
  14391. if test x"$ac_file" != x-; then
  14392. configure_input="$ac_file. $configure_input"
  14393. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14394. $as_echo "$as_me: creating $ac_file" >&6;}
  14395. fi
  14396. # Neutralize special characters interpreted by sed in replacement strings.
  14397. case $configure_input in #(
  14398. *\&* | *\|* | *\\* )
  14399. ac_sed_conf_input=`$as_echo "$configure_input" |
  14400. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14401. *) ac_sed_conf_input=$configure_input;;
  14402. esac
  14403. case $ac_tag in
  14404. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14405. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14406. esac
  14407. ;;
  14408. esac
  14409. ac_dir=`$as_dirname -- "$ac_file" ||
  14410. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14411. X"$ac_file" : 'X\(//\)[^/]' \| \
  14412. X"$ac_file" : 'X\(//\)$' \| \
  14413. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14414. $as_echo X"$ac_file" |
  14415. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14416. s//\1/
  14417. q
  14418. }
  14419. /^X\(\/\/\)[^/].*/{
  14420. s//\1/
  14421. q
  14422. }
  14423. /^X\(\/\/\)$/{
  14424. s//\1/
  14425. q
  14426. }
  14427. /^X\(\/\).*/{
  14428. s//\1/
  14429. q
  14430. }
  14431. s/.*/./; q'`
  14432. as_dir="$ac_dir"; as_fn_mkdir_p
  14433. ac_builddir=.
  14434. case "$ac_dir" in
  14435. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14436. *)
  14437. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14438. # A ".." for each directory in $ac_dir_suffix.
  14439. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14440. case $ac_top_builddir_sub in
  14441. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14442. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14443. esac ;;
  14444. esac
  14445. ac_abs_top_builddir=$ac_pwd
  14446. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14447. # for backward compatibility:
  14448. ac_top_builddir=$ac_top_build_prefix
  14449. case $srcdir in
  14450. .) # We are building in place.
  14451. ac_srcdir=.
  14452. ac_top_srcdir=$ac_top_builddir_sub
  14453. ac_abs_top_srcdir=$ac_pwd ;;
  14454. [\\/]* | ?:[\\/]* ) # Absolute name.
  14455. ac_srcdir=$srcdir$ac_dir_suffix;
  14456. ac_top_srcdir=$srcdir
  14457. ac_abs_top_srcdir=$srcdir ;;
  14458. *) # Relative name.
  14459. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14460. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14461. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14462. esac
  14463. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14464. case $ac_mode in
  14465. :F)
  14466. #
  14467. # CONFIG_FILE
  14468. #
  14469. case $INSTALL in
  14470. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14471. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14472. esac
  14473. ac_MKDIR_P=$MKDIR_P
  14474. case $MKDIR_P in
  14475. [\\/$]* | ?:[\\/]* ) ;;
  14476. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14477. esac
  14478. _ACEOF
  14479. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14480. # If the template does not know about datarootdir, expand it.
  14481. # FIXME: This hack should be removed a few years after 2.60.
  14482. ac_datarootdir_hack=; ac_datarootdir_seen=
  14483. ac_sed_dataroot='
  14484. /datarootdir/ {
  14485. p
  14486. q
  14487. }
  14488. /@datadir@/p
  14489. /@docdir@/p
  14490. /@infodir@/p
  14491. /@localedir@/p
  14492. /@mandir@/p'
  14493. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14494. *datarootdir*) ac_datarootdir_seen=yes;;
  14495. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14497. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14498. _ACEOF
  14499. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14500. ac_datarootdir_hack='
  14501. s&@datadir@&$datadir&g
  14502. s&@docdir@&$docdir&g
  14503. s&@infodir@&$infodir&g
  14504. s&@localedir@&$localedir&g
  14505. s&@mandir@&$mandir&g
  14506. s&\\\${datarootdir}&$datarootdir&g' ;;
  14507. esac
  14508. _ACEOF
  14509. # Neutralize VPATH when `$srcdir' = `.'.
  14510. # Shell code in configure.ac might set extrasub.
  14511. # FIXME: do we really want to maintain this feature?
  14512. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14513. ac_sed_extra="$ac_vpsub
  14514. $extrasub
  14515. _ACEOF
  14516. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14517. :t
  14518. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14519. s|@configure_input@|$ac_sed_conf_input|;t t
  14520. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14521. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14522. s&@srcdir@&$ac_srcdir&;t t
  14523. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14524. s&@top_srcdir@&$ac_top_srcdir&;t t
  14525. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14526. s&@builddir@&$ac_builddir&;t t
  14527. s&@abs_builddir@&$ac_abs_builddir&;t t
  14528. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14529. s&@INSTALL@&$ac_INSTALL&;t t
  14530. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14531. $ac_datarootdir_hack
  14532. "
  14533. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14534. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14535. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14536. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14537. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14538. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14540. which seems to be undefined. Please make sure it is defined" >&5
  14541. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14542. which seems to be undefined. Please make sure it is defined" >&2;}
  14543. rm -f "$ac_tmp/stdin"
  14544. case $ac_file in
  14545. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14546. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14547. esac \
  14548. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14549. ;;
  14550. :H)
  14551. #
  14552. # CONFIG_HEADER
  14553. #
  14554. if test x"$ac_file" != x-; then
  14555. {
  14556. $as_echo "/* $configure_input */" \
  14557. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14558. } >"$ac_tmp/config.h" \
  14559. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14560. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14561. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14562. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14563. else
  14564. rm -f "$ac_file"
  14565. mv "$ac_tmp/config.h" "$ac_file" \
  14566. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14567. fi
  14568. else
  14569. $as_echo "/* $configure_input */" \
  14570. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14571. || as_fn_error $? "could not create -" "$LINENO" 5
  14572. fi
  14573. # Compute "$ac_file"'s index in $config_headers.
  14574. _am_arg="$ac_file"
  14575. _am_stamp_count=1
  14576. for _am_header in $config_headers :; do
  14577. case $_am_header in
  14578. $_am_arg | $_am_arg:* )
  14579. break ;;
  14580. * )
  14581. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14582. esac
  14583. done
  14584. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14585. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14586. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14587. X"$_am_arg" : 'X\(//\)$' \| \
  14588. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14589. $as_echo X"$_am_arg" |
  14590. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14591. s//\1/
  14592. q
  14593. }
  14594. /^X\(\/\/\)[^/].*/{
  14595. s//\1/
  14596. q
  14597. }
  14598. /^X\(\/\/\)$/{
  14599. s//\1/
  14600. q
  14601. }
  14602. /^X\(\/\).*/{
  14603. s//\1/
  14604. q
  14605. }
  14606. s/.*/./; q'`/stamp-h$_am_stamp_count
  14607. ;;
  14608. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14609. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14610. ;;
  14611. esac
  14612. case $ac_file$ac_mode in
  14613. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14614. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14615. # are listed without --file. Let's play safe and only enable the eval
  14616. # if we detect the quoting.
  14617. case $CONFIG_FILES in
  14618. *\'*) eval set x "$CONFIG_FILES" ;;
  14619. *) set x $CONFIG_FILES ;;
  14620. esac
  14621. shift
  14622. for mf
  14623. do
  14624. # Strip MF so we end up with the name of the file.
  14625. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14626. # Check whether this is an Automake generated Makefile or not.
  14627. # We used to match only the files named `Makefile.in', but
  14628. # some people rename them; so instead we look at the file content.
  14629. # Grep'ing the first line is not enough: some people post-process
  14630. # each Makefile.in and add a new line on top of each file to say so.
  14631. # Grep'ing the whole file is not good either: AIX grep has a line
  14632. # limit of 2048, but all sed's we know have understand at least 4000.
  14633. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14634. dirpart=`$as_dirname -- "$mf" ||
  14635. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14636. X"$mf" : 'X\(//\)[^/]' \| \
  14637. X"$mf" : 'X\(//\)$' \| \
  14638. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14639. $as_echo X"$mf" |
  14640. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14641. s//\1/
  14642. q
  14643. }
  14644. /^X\(\/\/\)[^/].*/{
  14645. s//\1/
  14646. q
  14647. }
  14648. /^X\(\/\/\)$/{
  14649. s//\1/
  14650. q
  14651. }
  14652. /^X\(\/\).*/{
  14653. s//\1/
  14654. q
  14655. }
  14656. s/.*/./; q'`
  14657. else
  14658. continue
  14659. fi
  14660. # Extract the definition of DEPDIR, am__include, and am__quote
  14661. # from the Makefile without running `make'.
  14662. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14663. test -z "$DEPDIR" && continue
  14664. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14665. test -z "am__include" && continue
  14666. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14667. # When using ansi2knr, U may be empty or an underscore; expand it
  14668. U=`sed -n 's/^U = //p' < "$mf"`
  14669. # Find all dependency output files, they are included files with
  14670. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14671. # simplest approach to changing $(DEPDIR) to its actual value in the
  14672. # expansion.
  14673. for file in `sed -n "
  14674. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14675. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14676. # Make sure the directory exists.
  14677. test -f "$dirpart/$file" && continue
  14678. fdir=`$as_dirname -- "$file" ||
  14679. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14680. X"$file" : 'X\(//\)[^/]' \| \
  14681. X"$file" : 'X\(//\)$' \| \
  14682. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14683. $as_echo X"$file" |
  14684. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14685. s//\1/
  14686. q
  14687. }
  14688. /^X\(\/\/\)[^/].*/{
  14689. s//\1/
  14690. q
  14691. }
  14692. /^X\(\/\/\)$/{
  14693. s//\1/
  14694. q
  14695. }
  14696. /^X\(\/\).*/{
  14697. s//\1/
  14698. q
  14699. }
  14700. s/.*/./; q'`
  14701. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14702. # echo "creating $dirpart/$file"
  14703. echo '# dummy' > "$dirpart/$file"
  14704. done
  14705. done
  14706. }
  14707. ;;
  14708. "libtool":C)
  14709. # See if we are running on zsh, and set the options which allow our
  14710. # commands through without removal of \ escapes.
  14711. if test -n "${ZSH_VERSION+set}" ; then
  14712. setopt NO_GLOB_SUBST
  14713. fi
  14714. cfgfile="${ofile}T"
  14715. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14716. $RM "$cfgfile"
  14717. cat <<_LT_EOF >> "$cfgfile"
  14718. #! $SHELL
  14719. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14720. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14721. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14722. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14723. #
  14724. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14725. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  14726. # Foundation, Inc.
  14727. # Written by Gordon Matzigkeit, 1996
  14728. #
  14729. # This file is part of GNU Libtool.
  14730. #
  14731. # GNU Libtool is free software; you can redistribute it and/or
  14732. # modify it under the terms of the GNU General Public License as
  14733. # published by the Free Software Foundation; either version 2 of
  14734. # the License, or (at your option) any later version.
  14735. #
  14736. # As a special exception to the GNU General Public License,
  14737. # if you distribute this file as part of a program or library that
  14738. # is built using GNU Libtool, you may include this file under the
  14739. # same distribution terms that you use for the rest of that program.
  14740. #
  14741. # GNU Libtool is distributed in the hope that it will be useful,
  14742. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14743. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14744. # GNU General Public License for more details.
  14745. #
  14746. # You should have received a copy of the GNU General Public License
  14747. # along with GNU Libtool; see the file COPYING. If not, a copy
  14748. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14749. # obtained by writing to the Free Software Foundation, Inc.,
  14750. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14751. # The names of the tagged configurations supported by this script.
  14752. available_tags="CXX "
  14753. # ### BEGIN LIBTOOL CONFIG
  14754. # Whether or not to build static libraries.
  14755. build_old_libs=$enable_static
  14756. # Which release of libtool.m4 was used?
  14757. macro_version=$macro_version
  14758. macro_revision=$macro_revision
  14759. # Whether or not to build shared libraries.
  14760. build_libtool_libs=$enable_shared
  14761. # What type of objects to build.
  14762. pic_mode=$pic_mode
  14763. # Whether or not to optimize for fast installation.
  14764. fast_install=$enable_fast_install
  14765. # Shell to use when invoking shell scripts.
  14766. SHELL=$lt_SHELL
  14767. # An echo program that protects backslashes.
  14768. ECHO=$lt_ECHO
  14769. # The PATH separator for the build system.
  14770. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  14771. # The host system.
  14772. host_alias=$host_alias
  14773. host=$host
  14774. host_os=$host_os
  14775. # The build system.
  14776. build_alias=$build_alias
  14777. build=$build
  14778. build_os=$build_os
  14779. # A sed program that does not truncate output.
  14780. SED=$lt_SED
  14781. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14782. Xsed="\$SED -e 1s/^X//"
  14783. # A grep program that handles long lines.
  14784. GREP=$lt_GREP
  14785. # An ERE matcher.
  14786. EGREP=$lt_EGREP
  14787. # A literal string matcher.
  14788. FGREP=$lt_FGREP
  14789. # A BSD- or MS-compatible name lister.
  14790. NM=$lt_NM
  14791. # Whether we need soft or hard links.
  14792. LN_S=$lt_LN_S
  14793. # What is the maximum length of a command?
  14794. max_cmd_len=$max_cmd_len
  14795. # Object file suffix (normally "o").
  14796. objext=$ac_objext
  14797. # Executable file suffix (normally "").
  14798. exeext=$exeext
  14799. # whether the shell understands "unset".
  14800. lt_unset=$lt_unset
  14801. # turn spaces into newlines.
  14802. SP2NL=$lt_lt_SP2NL
  14803. # turn newlines into spaces.
  14804. NL2SP=$lt_lt_NL2SP
  14805. # convert \$build file names to \$host format.
  14806. to_host_file_cmd=$lt_cv_to_host_file_cmd
  14807. # convert \$build files to toolchain format.
  14808. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  14809. # An object symbol dumper.
  14810. OBJDUMP=$lt_OBJDUMP
  14811. # Method to check whether dependent libraries are shared objects.
  14812. deplibs_check_method=$lt_deplibs_check_method
  14813. # Command to use when deplibs_check_method = "file_magic".
  14814. file_magic_cmd=$lt_file_magic_cmd
  14815. # How to find potential files when deplibs_check_method = "file_magic".
  14816. file_magic_glob=$lt_file_magic_glob
  14817. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  14818. want_nocaseglob=$lt_want_nocaseglob
  14819. # DLL creation program.
  14820. DLLTOOL=$lt_DLLTOOL
  14821. # Command to associate shared and link libraries.
  14822. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  14823. # The archiver.
  14824. AR=$lt_AR
  14825. # Flags to create an archive.
  14826. AR_FLAGS=$lt_AR_FLAGS
  14827. # How to feed a file listing to the archiver.
  14828. archiver_list_spec=$lt_archiver_list_spec
  14829. # A symbol stripping program.
  14830. STRIP=$lt_STRIP
  14831. # Commands used to install an old-style archive.
  14832. RANLIB=$lt_RANLIB
  14833. old_postinstall_cmds=$lt_old_postinstall_cmds
  14834. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14835. # Whether to use a lock for old archive extraction.
  14836. lock_old_archive_extraction=$lock_old_archive_extraction
  14837. # A C compiler.
  14838. LTCC=$lt_CC
  14839. # LTCC compiler flags.
  14840. LTCFLAGS=$lt_CFLAGS
  14841. # Take the output of nm and produce a listing of raw symbols and C names.
  14842. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14843. # Transform the output of nm in a proper C declaration.
  14844. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14845. # Transform the output of nm in a C name address pair.
  14846. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14847. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14848. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14849. # Specify filename containing input files for \$NM.
  14850. nm_file_list_spec=$lt_nm_file_list_spec
  14851. # The root where to search for dependent libraries,and in which our libraries should be installed.
  14852. lt_sysroot=$lt_sysroot
  14853. # The name of the directory that contains temporary libtool files.
  14854. objdir=$objdir
  14855. # Used to examine libraries when file_magic_cmd begins with "file".
  14856. MAGIC_CMD=$MAGIC_CMD
  14857. # Must we lock files when doing compilation?
  14858. need_locks=$lt_need_locks
  14859. # Manifest tool.
  14860. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  14861. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14862. DSYMUTIL=$lt_DSYMUTIL
  14863. # Tool to change global to local symbols on Mac OS X.
  14864. NMEDIT=$lt_NMEDIT
  14865. # Tool to manipulate fat objects and archives on Mac OS X.
  14866. LIPO=$lt_LIPO
  14867. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14868. OTOOL=$lt_OTOOL
  14869. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14870. OTOOL64=$lt_OTOOL64
  14871. # Old archive suffix (normally "a").
  14872. libext=$libext
  14873. # Shared library suffix (normally ".so").
  14874. shrext_cmds=$lt_shrext_cmds
  14875. # The commands to extract the exported symbol list from a shared archive.
  14876. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14877. # Variables whose values should be saved in libtool wrapper scripts and
  14878. # restored at link time.
  14879. variables_saved_for_relink=$lt_variables_saved_for_relink
  14880. # Do we need the "lib" prefix for modules?
  14881. need_lib_prefix=$need_lib_prefix
  14882. # Do we need a version for libraries?
  14883. need_version=$need_version
  14884. # Library versioning type.
  14885. version_type=$version_type
  14886. # Shared library runtime path variable.
  14887. runpath_var=$runpath_var
  14888. # Shared library path variable.
  14889. shlibpath_var=$shlibpath_var
  14890. # Is shlibpath searched before the hard-coded library search path?
  14891. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14892. # Format of library name prefix.
  14893. libname_spec=$lt_libname_spec
  14894. # List of archive names. First name is the real one, the rest are links.
  14895. # The last name is the one that the linker finds with -lNAME
  14896. library_names_spec=$lt_library_names_spec
  14897. # The coded name of the library, if different from the real name.
  14898. soname_spec=$lt_soname_spec
  14899. # Permission mode override for installation of shared libraries.
  14900. install_override_mode=$lt_install_override_mode
  14901. # Command to use after installation of a shared archive.
  14902. postinstall_cmds=$lt_postinstall_cmds
  14903. # Command to use after uninstallation of a shared archive.
  14904. postuninstall_cmds=$lt_postuninstall_cmds
  14905. # Commands used to finish a libtool library installation in a directory.
  14906. finish_cmds=$lt_finish_cmds
  14907. # As "finish_cmds", except a single script fragment to be evaled but
  14908. # not shown.
  14909. finish_eval=$lt_finish_eval
  14910. # Whether we should hardcode library paths into libraries.
  14911. hardcode_into_libs=$hardcode_into_libs
  14912. # Compile-time system search path for libraries.
  14913. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14914. # Run-time system search path for libraries.
  14915. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14916. # Whether dlopen is supported.
  14917. dlopen_support=$enable_dlopen
  14918. # Whether dlopen of programs is supported.
  14919. dlopen_self=$enable_dlopen_self
  14920. # Whether dlopen of statically linked programs is supported.
  14921. dlopen_self_static=$enable_dlopen_self_static
  14922. # Commands to strip libraries.
  14923. old_striplib=$lt_old_striplib
  14924. striplib=$lt_striplib
  14925. # The linker used to build libraries.
  14926. LD=$lt_LD
  14927. # How to create reloadable object files.
  14928. reload_flag=$lt_reload_flag
  14929. reload_cmds=$lt_reload_cmds
  14930. # Commands used to build an old-style archive.
  14931. old_archive_cmds=$lt_old_archive_cmds
  14932. # A language specific compiler.
  14933. CC=$lt_compiler
  14934. # Is the compiler the GNU compiler?
  14935. with_gcc=$GCC
  14936. # Compiler flag to turn off builtin functions.
  14937. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14938. # Additional compiler flags for building library objects.
  14939. pic_flag=$lt_lt_prog_compiler_pic
  14940. # How to pass a linker flag through the compiler.
  14941. wl=$lt_lt_prog_compiler_wl
  14942. # Compiler flag to prevent dynamic linking.
  14943. link_static_flag=$lt_lt_prog_compiler_static
  14944. # Does compiler simultaneously support -c and -o options?
  14945. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14946. # Whether or not to add -lc for building shared libraries.
  14947. build_libtool_need_lc=$archive_cmds_need_lc
  14948. # Whether or not to disallow shared libs when runtime libs are static.
  14949. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14950. # Compiler flag to allow reflexive dlopens.
  14951. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14952. # Compiler flag to generate shared objects directly from archives.
  14953. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14954. # Whether the compiler copes with passing no objects directly.
  14955. compiler_needs_object=$lt_compiler_needs_object
  14956. # Create an old-style archive from a shared archive.
  14957. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14958. # Create a temporary old-style archive to link instead of a shared archive.
  14959. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14960. # Commands used to build a shared archive.
  14961. archive_cmds=$lt_archive_cmds
  14962. archive_expsym_cmds=$lt_archive_expsym_cmds
  14963. # Commands used to build a loadable module if different from building
  14964. # a shared archive.
  14965. module_cmds=$lt_module_cmds
  14966. module_expsym_cmds=$lt_module_expsym_cmds
  14967. # Whether we are building with GNU ld or not.
  14968. with_gnu_ld=$lt_with_gnu_ld
  14969. # Flag that allows shared libraries with undefined symbols to be built.
  14970. allow_undefined_flag=$lt_allow_undefined_flag
  14971. # Flag that enforces no undefined symbols.
  14972. no_undefined_flag=$lt_no_undefined_flag
  14973. # Flag to hardcode \$libdir into a binary during linking.
  14974. # This must work even if \$libdir does not exist
  14975. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14976. # Whether we need a single "-rpath" flag with a separated argument.
  14977. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14978. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14979. # DIR into the resulting binary.
  14980. hardcode_direct=$hardcode_direct
  14981. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14982. # DIR into the resulting binary and the resulting library dependency is
  14983. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14984. # library is relocated.
  14985. hardcode_direct_absolute=$hardcode_direct_absolute
  14986. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14987. # into the resulting binary.
  14988. hardcode_minus_L=$hardcode_minus_L
  14989. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14990. # into the resulting binary.
  14991. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14992. # Set to "yes" if building a shared library automatically hardcodes DIR
  14993. # into the library and all subsequent libraries and executables linked
  14994. # against it.
  14995. hardcode_automatic=$hardcode_automatic
  14996. # Set to yes if linker adds runtime paths of dependent libraries
  14997. # to runtime path list.
  14998. inherit_rpath=$inherit_rpath
  14999. # Whether libtool must link a program against all its dependency libraries.
  15000. link_all_deplibs=$link_all_deplibs
  15001. # Set to "yes" if exported symbols are required.
  15002. always_export_symbols=$always_export_symbols
  15003. # The commands to list exported symbols.
  15004. export_symbols_cmds=$lt_export_symbols_cmds
  15005. # Symbols that should not be listed in the preloaded symbols.
  15006. exclude_expsyms=$lt_exclude_expsyms
  15007. # Symbols that must always be exported.
  15008. include_expsyms=$lt_include_expsyms
  15009. # Commands necessary for linking programs (against libraries) with templates.
  15010. prelink_cmds=$lt_prelink_cmds
  15011. # Commands necessary for finishing linking programs.
  15012. postlink_cmds=$lt_postlink_cmds
  15013. # Specify filename containing input files.
  15014. file_list_spec=$lt_file_list_spec
  15015. # How to hardcode a shared library path into an executable.
  15016. hardcode_action=$hardcode_action
  15017. # The directories searched by this compiler when creating a shared library.
  15018. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15019. # Dependencies to place before and after the objects being linked to
  15020. # create a shared library.
  15021. predep_objects=$lt_predep_objects
  15022. postdep_objects=$lt_postdep_objects
  15023. predeps=$lt_predeps
  15024. postdeps=$lt_postdeps
  15025. # The library search path used internally by the compiler when linking
  15026. # a shared library.
  15027. compiler_lib_search_path=$lt_compiler_lib_search_path
  15028. # ### END LIBTOOL CONFIG
  15029. _LT_EOF
  15030. case $host_os in
  15031. aix3*)
  15032. cat <<\_LT_EOF >> "$cfgfile"
  15033. # AIX sometimes has problems with the GCC collect2 program. For some
  15034. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15035. # vanish in a puff of smoke.
  15036. if test "X${COLLECT_NAMES+set}" != Xset; then
  15037. COLLECT_NAMES=
  15038. export COLLECT_NAMES
  15039. fi
  15040. _LT_EOF
  15041. ;;
  15042. esac
  15043. ltmain="$ac_aux_dir/ltmain.sh"
  15044. # We use sed instead of cat because bash on DJGPP gets confused if
  15045. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15046. # text mode, it properly converts lines to CR/LF. This bash problem
  15047. # is reportedly fixed, but why not run on old versions too?
  15048. sed '$q' "$ltmain" >> "$cfgfile" \
  15049. || (rm -f "$cfgfile"; exit 1)
  15050. if test x"$xsi_shell" = xyes; then
  15051. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  15052. func_dirname ()\
  15053. {\
  15054. \ case ${1} in\
  15055. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15056. \ * ) func_dirname_result="${3}" ;;\
  15057. \ esac\
  15058. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  15059. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15060. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15061. test 0 -eq $? || _lt_function_replace_fail=:
  15062. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  15063. func_basename ()\
  15064. {\
  15065. \ func_basename_result="${1##*/}"\
  15066. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15067. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15068. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15069. test 0 -eq $? || _lt_function_replace_fail=:
  15070. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  15071. func_dirname_and_basename ()\
  15072. {\
  15073. \ case ${1} in\
  15074. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15075. \ * ) func_dirname_result="${3}" ;;\
  15076. \ esac\
  15077. \ func_basename_result="${1##*/}"\
  15078. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15079. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15080. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15081. test 0 -eq $? || _lt_function_replace_fail=:
  15082. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  15083. func_stripname ()\
  15084. {\
  15085. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  15086. \ # positional parameters, so assign one to ordinary parameter first.\
  15087. \ func_stripname_result=${3}\
  15088. \ func_stripname_result=${func_stripname_result#"${1}"}\
  15089. \ func_stripname_result=${func_stripname_result%"${2}"}\
  15090. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  15091. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15092. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15093. test 0 -eq $? || _lt_function_replace_fail=:
  15094. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  15095. func_split_long_opt ()\
  15096. {\
  15097. \ func_split_long_opt_name=${1%%=*}\
  15098. \ func_split_long_opt_arg=${1#*=}\
  15099. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15100. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15101. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15102. test 0 -eq $? || _lt_function_replace_fail=:
  15103. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  15104. func_split_short_opt ()\
  15105. {\
  15106. \ func_split_short_opt_arg=${1#??}\
  15107. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  15108. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15109. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15110. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15111. test 0 -eq $? || _lt_function_replace_fail=:
  15112. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  15113. func_lo2o ()\
  15114. {\
  15115. \ case ${1} in\
  15116. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  15117. \ *) func_lo2o_result=${1} ;;\
  15118. \ esac\
  15119. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  15120. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15121. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15122. test 0 -eq $? || _lt_function_replace_fail=:
  15123. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  15124. func_xform ()\
  15125. {\
  15126. func_xform_result=${1%.*}.lo\
  15127. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  15128. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15129. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15130. test 0 -eq $? || _lt_function_replace_fail=:
  15131. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  15132. func_arith ()\
  15133. {\
  15134. func_arith_result=$(( $* ))\
  15135. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  15136. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15137. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15138. test 0 -eq $? || _lt_function_replace_fail=:
  15139. sed -e '/^func_len ()$/,/^} # func_len /c\
  15140. func_len ()\
  15141. {\
  15142. func_len_result=${#1}\
  15143. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  15144. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15145. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15146. test 0 -eq $? || _lt_function_replace_fail=:
  15147. fi
  15148. if test x"$lt_shell_append" = xyes; then
  15149. sed -e '/^func_append ()$/,/^} # func_append /c\
  15150. func_append ()\
  15151. {\
  15152. eval "${1}+=\\${2}"\
  15153. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  15154. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15155. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15156. test 0 -eq $? || _lt_function_replace_fail=:
  15157. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  15158. func_append_quoted ()\
  15159. {\
  15160. \ func_quote_for_eval "${2}"\
  15161. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  15162. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  15163. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15164. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15165. test 0 -eq $? || _lt_function_replace_fail=:
  15166. # Save a `func_append' function call where possible by direct use of '+='
  15167. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  15168. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15169. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15170. test 0 -eq $? || _lt_function_replace_fail=:
  15171. else
  15172. # Save a `func_append' function call even when '+=' is not available
  15173. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  15174. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15175. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15176. test 0 -eq $? || _lt_function_replace_fail=:
  15177. fi
  15178. if test x"$_lt_function_replace_fail" = x":"; then
  15179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  15180. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  15181. fi
  15182. mv -f "$cfgfile" "$ofile" ||
  15183. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15184. chmod +x "$ofile"
  15185. cat <<_LT_EOF >> "$ofile"
  15186. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15187. # The linker used to build libraries.
  15188. LD=$lt_LD_CXX
  15189. # How to create reloadable object files.
  15190. reload_flag=$lt_reload_flag_CXX
  15191. reload_cmds=$lt_reload_cmds_CXX
  15192. # Commands used to build an old-style archive.
  15193. old_archive_cmds=$lt_old_archive_cmds_CXX
  15194. # A language specific compiler.
  15195. CC=$lt_compiler_CXX
  15196. # Is the compiler the GNU compiler?
  15197. with_gcc=$GCC_CXX
  15198. # Compiler flag to turn off builtin functions.
  15199. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15200. # Additional compiler flags for building library objects.
  15201. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15202. # How to pass a linker flag through the compiler.
  15203. wl=$lt_lt_prog_compiler_wl_CXX
  15204. # Compiler flag to prevent dynamic linking.
  15205. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15206. # Does compiler simultaneously support -c and -o options?
  15207. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15208. # Whether or not to add -lc for building shared libraries.
  15209. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15210. # Whether or not to disallow shared libs when runtime libs are static.
  15211. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15212. # Compiler flag to allow reflexive dlopens.
  15213. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15214. # Compiler flag to generate shared objects directly from archives.
  15215. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15216. # Whether the compiler copes with passing no objects directly.
  15217. compiler_needs_object=$lt_compiler_needs_object_CXX
  15218. # Create an old-style archive from a shared archive.
  15219. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15220. # Create a temporary old-style archive to link instead of a shared archive.
  15221. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15222. # Commands used to build a shared archive.
  15223. archive_cmds=$lt_archive_cmds_CXX
  15224. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15225. # Commands used to build a loadable module if different from building
  15226. # a shared archive.
  15227. module_cmds=$lt_module_cmds_CXX
  15228. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15229. # Whether we are building with GNU ld or not.
  15230. with_gnu_ld=$lt_with_gnu_ld_CXX
  15231. # Flag that allows shared libraries with undefined symbols to be built.
  15232. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15233. # Flag that enforces no undefined symbols.
  15234. no_undefined_flag=$lt_no_undefined_flag_CXX
  15235. # Flag to hardcode \$libdir into a binary during linking.
  15236. # This must work even if \$libdir does not exist
  15237. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15238. # Whether we need a single "-rpath" flag with a separated argument.
  15239. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15240. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15241. # DIR into the resulting binary.
  15242. hardcode_direct=$hardcode_direct_CXX
  15243. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15244. # DIR into the resulting binary and the resulting library dependency is
  15245. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15246. # library is relocated.
  15247. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15248. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15249. # into the resulting binary.
  15250. hardcode_minus_L=$hardcode_minus_L_CXX
  15251. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15252. # into the resulting binary.
  15253. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15254. # Set to "yes" if building a shared library automatically hardcodes DIR
  15255. # into the library and all subsequent libraries and executables linked
  15256. # against it.
  15257. hardcode_automatic=$hardcode_automatic_CXX
  15258. # Set to yes if linker adds runtime paths of dependent libraries
  15259. # to runtime path list.
  15260. inherit_rpath=$inherit_rpath_CXX
  15261. # Whether libtool must link a program against all its dependency libraries.
  15262. link_all_deplibs=$link_all_deplibs_CXX
  15263. # Set to "yes" if exported symbols are required.
  15264. always_export_symbols=$always_export_symbols_CXX
  15265. # The commands to list exported symbols.
  15266. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15267. # Symbols that should not be listed in the preloaded symbols.
  15268. exclude_expsyms=$lt_exclude_expsyms_CXX
  15269. # Symbols that must always be exported.
  15270. include_expsyms=$lt_include_expsyms_CXX
  15271. # Commands necessary for linking programs (against libraries) with templates.
  15272. prelink_cmds=$lt_prelink_cmds_CXX
  15273. # Commands necessary for finishing linking programs.
  15274. postlink_cmds=$lt_postlink_cmds_CXX
  15275. # Specify filename containing input files.
  15276. file_list_spec=$lt_file_list_spec_CXX
  15277. # How to hardcode a shared library path into an executable.
  15278. hardcode_action=$hardcode_action_CXX
  15279. # The directories searched by this compiler when creating a shared library.
  15280. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15281. # Dependencies to place before and after the objects being linked to
  15282. # create a shared library.
  15283. predep_objects=$lt_predep_objects_CXX
  15284. postdep_objects=$lt_postdep_objects_CXX
  15285. predeps=$lt_predeps_CXX
  15286. postdeps=$lt_postdeps_CXX
  15287. # The library search path used internally by the compiler when linking
  15288. # a shared library.
  15289. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15290. # ### END LIBTOOL TAG CONFIG: CXX
  15291. _LT_EOF
  15292. ;;
  15293. esac
  15294. done # for ac_tag
  15295. as_fn_exit 0
  15296. _ACEOF
  15297. ac_clean_files=$ac_clean_files_save
  15298. test $ac_write_fail = 0 ||
  15299. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15300. # configure is writing to config.log, and then calls config.status.
  15301. # config.status does its own redirection, appending to config.log.
  15302. # Unfortunately, on DOS this fails, as config.log is still kept open
  15303. # by configure, so config.status won't be able to write to it; its
  15304. # output is simply discarded. So we exec the FD to /dev/null,
  15305. # effectively closing config.log, so it can be properly (re)opened and
  15306. # appended to by config.status. When coming back to configure, we
  15307. # need to make the FD available again.
  15308. if test "$no_create" != yes; then
  15309. ac_cs_success=:
  15310. ac_config_status_args=
  15311. test "$silent" = yes &&
  15312. ac_config_status_args="$ac_config_status_args --quiet"
  15313. exec 5>/dev/null
  15314. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15315. exec 5>>config.log
  15316. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15317. # would make configure fail if this is the last instruction.
  15318. $ac_cs_success || as_fn_exit 1
  15319. fi
  15320. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15322. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15323. fi
  15324. chmod a+x gmm-config
  15325. chmod a+x gmm-config